/dragonfly/sys/cpu/x86_64/include/ |
H A D | bus_dma.h | 73 bus_space_handle_t bsh, 83 *nbshp = bsh + offset; in bus_space_subregion() 282 int _port_ = bsh + offset; in bus_space_read_region_1() 310 int _port_ = bsh + offset; in bus_space_read_region_2() 338 int _port_ = bsh + offset; in bus_space_read_region_4() 387 outb(bsh + offset, value); in bus_space_write_1() 398 outw(bsh + offset, value); in bus_space_write_2() 409 outl(bsh + offset, value); in bus_space_write_4() 536 int _port_ = bsh + offset; in bus_space_write_region_1() 564 int _port_ = bsh + offset; in bus_space_write_region_2() [all …]
|
/dragonfly/sys/dev/misc/ppc/ |
H A D | ppcreg.h | 110 bus_space_handle_t bsh; member 146 #define r_dtr(ppc) (bus_space_read_1((ppc)->bst, (ppc)->bsh, PPC_SPP_DTR)) 147 #define r_str(ppc) (bus_space_read_1((ppc)->bst, (ppc)->bsh, PPC_SPP_STR)) 148 #define r_ctr(ppc) (bus_space_read_1((ppc)->bst, (ppc)->bsh, PPC_SPP_CTR)) 150 #define r_epp_A(ppc) (bus_space_read_1((ppc)->bst, (ppc)->bsh, PPC_EPP_ADDR)) 151 #define r_epp_D(ppc) (bus_space_read_1((ppc)->bst, (ppc)->bsh, PPC_EPP_DATA)) 152 #define r_cnfgA(ppc) (bus_space_read_1((ppc)->bst, (ppc)->bsh, PPC_ECP_CNFGA)) 153 #define r_cnfgB(ppc) (bus_space_read_1((ppc)->bst, (ppc)->bsh, PPC_ECP_CNFGB)) 154 #define r_ecr(ppc) (bus_space_read_1((ppc)->bst, (ppc)->bsh, PPC_ECP_ECR)) 155 #define r_fifo(ppc) (bus_space_read_1((ppc)->bst, (ppc)->bsh, PPC_ECP_D_FIFO)) [all …]
|
H A D | ppc.c | 1359 #define r_reg(register,ppc) (bus_space_read_1((ppc)->bst, (ppc)->bsh, register)) in ppc_exec_microseq() 1360 #define w_reg(register, ppc, byte) (bus_space_write_1((ppc)->bst, (ppc)->bsh, register, byte)) in ppc_exec_microseq() 1907 ppc->bsh = rman_get_bushandle(ppc->res_ioport); in ppc_probe() 2011 bus_space_write_multi_1(ppc->bst, ppc->bsh, PPC_EPP_DATA, addr, cnt); in ppc_io() 2014 bus_space_write_multi_2(ppc->bst, ppc->bsh, PPC_EPP_DATA, (u_int16_t *)addr, cnt); in ppc_io() 2017 bus_space_write_multi_4(ppc->bst, ppc->bsh, PPC_EPP_DATA, (u_int32_t *)addr, cnt); in ppc_io() 2020 bus_space_read_multi_1(ppc->bst, ppc->bsh, PPC_EPP_DATA, addr, cnt); in ppc_io() 2023 bus_space_read_multi_2(ppc->bst, ppc->bsh, PPC_EPP_DATA, (u_int16_t *)addr, cnt); in ppc_io() 2026 bus_space_read_multi_4(ppc->bst, ppc->bsh, PPC_EPP_DATA, (u_int32_t *)addr, cnt); in ppc_io()
|
/dragonfly/contrib/gmp/mpn/generic/ |
H A D | toom53_mul.c | 61 mp_ptr bs1, bsm1, bs2, bsm2, bsh; in mpn_toom53_mul() local 94 bsh = TMP_SALLOC_LIMBS (n + 1); in mpn_toom53_mul() 202 cy = mpn_addlsh1_n (bsh, b1, b0, n); in mpn_toom53_mul() 206 cy2 = mpn_addlsh1_n (bsh, b2, bsh, t); in mpn_toom53_mul() 207 bsh[n] = 2*cy + mpn_lshift (bsh + t, bsh + t, n - t, 1); in mpn_toom53_mul() 211 bsh[n] = 2*cy + mpn_addlsh1_n (bsh, b2, bsh, n); in mpn_toom53_mul() 213 cy = mpn_lshift (bsh, b0, n, 1); in mpn_toom53_mul() 214 cy += mpn_add_n (bsh, bsh, b1, n); in mpn_toom53_mul() 215 cy = 2*cy + mpn_lshift (bsh, bsh, n, 1); in mpn_toom53_mul() 216 bsh[n] = cy + mpn_add (bsh, bsh, n, b2, t); in mpn_toom53_mul() [all …]
|
H A D | toom62_mul.c | 61 mp_ptr bs1, bsm1, bs2, bsm2, bsh; in mpn_toom62_mul() local 95 bsh = TMP_SALLOC_LIMBS (n + 1); in mpn_toom62_mul() 221 mpn_add (bsh, bs1, n + 1, b0, n); in mpn_toom62_mul() 231 ASSERT (bsh[n] <= 2); in mpn_toom62_mul() 247 mpn_mul_n (vh, ash, bsh, n + 1); /* vh, 2n+1 limbs */ in mpn_toom62_mul()
|
/dragonfly/sys/dev/netif/xe/ |
H A D | if_xevar.h | 46 bus_space_handle_t bsh; /* Bus space handle for card */ member 74 #define XE_INB(r) bus_space_read_1(scp->bst, scp->bsh, (r)) 75 #define XE_INW(r) bus_space_read_2(scp->bst, scp->bsh, (r)) 76 #define XE_OUTB(r, b) bus_space_write_1(scp->bst, scp->bsh, (r), (b)) 77 #define XE_OUTW(r, w) bus_space_write_2(scp->bst, scp->bsh, (r), (w)) 84 #define CISTPL_TYPE(tpl) bus_space_read_1(bst, bsh, tpl + 0) 85 #define CISTPL_LEN(tpl) bus_space_read_1(bst, bsh, tpl + 2) 86 #define CISTPL_DATA(tpl,pos) bus_space_read_1(bst, bsh, tpl+ 4 + ((pos)<<1))
|
H A D | if_xe_pccard.c | 170 bus_space_handle_t bsh; in xe_cemfix() local 187 bsh = rman_get_bushandle(r); in xe_cemfix() 193 bus_space_write_1(bst, bsh, DINGO_ECOR, DINGO_ECOR_IRQ_LEVEL | in xe_cemfix() 198 bus_space_write_1(bst, bsh, DINGO_EBAR0, ioport & 0xff); in xe_cemfix() 199 bus_space_write_1(bst, bsh, DINGO_EBAR1, (ioport >> 8) & 0xff); in xe_cemfix() 202 bus_space_write_1(bst, bsh, DINGO_DCOR0, DINGO_DCOR0_SF_INT); in xe_cemfix() 203 bus_space_write_1(bst, bsh, DINGO_DCOR1, in xe_cemfix() 205 bus_space_write_1(bst, bsh, DINGO_DCOR2, 0x00); in xe_cemfix() 206 bus_space_write_1(bst, bsh, DINGO_DCOR3, 0x00); in xe_cemfix() 207 bus_space_write_1(bst, bsh, DINGO_DCOR4, 0x00); in xe_cemfix()
|
H A D | if_xe.c | 822 bus_space_read_multi_2(scp->bst, scp->bsh, XE_EDP, in xe_intr() 826 bus_space_read_multi_2(scp->bst, scp->bsh, XE_EDP, in xe_intr() 1544 bus_space_write_multi_2(scp->bst, scp->bsh, XE_EDP, (u_int16_t *) data, in xe_pio_write_packet() 1994 sc->bsh = rman_get_bushandle(sc->port_res); in xe_activate()
|
/dragonfly/sys/dev/raid/ida/ |
H A D | idavar.h | 37 bus_space_read_1((ida)->tag, (ida)->bsh, port) 39 bus_space_read_2((ida)->tag, (ida)->bsh, port) 41 bus_space_read_4((ida)->tag, (ida)->bsh, port) 44 bus_space_write_1((ida)->tag, (ida)->bsh, port, val) 46 bus_space_write_2((ida)->tag, (ida)->bsh, port, val) 48 bus_space_write_4((ida)->tag, (ida)->bsh, port, val) 139 bus_space_handle_t bsh; member
|
/dragonfly/sys/dev/misc/puc/ |
H A D | puc.c | 450 bus_space_read_1(bst, bsh, efdr)) 493 bus_space_handle_t bsh; in puc_config_win877() local 496 bsh = rman_get_bushandle(res); in puc_config_win877() 499 bus_space_write_1(bst, bsh, 0x250, 0x89); in puc_config_win877() 510 puc_print_win877(bst, bsh, efir, efdr); in puc_config_win877() 526 puc_print_win877(bst, bsh, efir, efdr); in puc_config_win877() 529 bus_space_write_1(bst, bsh, 0x250, 0xaa); in puc_config_win877() 532 bus_space_write_1(bst, bsh, 0x3f0, 0x87); in puc_config_win877() 533 bus_space_write_1(bst, bsh, 0x3f0, 0x87); in puc_config_win877() 544 puc_print_win877(bst, bsh, efir, efdr); in puc_config_win877() [all …]
|
/dragonfly/sys/dev/disk/amd/ |
H A D | amd.h | 199 bus_space_handle_t bsh; member 561 bus_space_read_1((amd)->tag, (amd)->bsh, port) 564 bus_space_read_2((amd)->tag, (amd)->bsh, port) 567 bus_space_read_4((amd)->tag, (amd)->bsh, port) 570 bus_space_write_1((amd)->tag, (amd)->bsh, port, value) 573 bus_space_write_multi_1((amd)->tag, (amd)->bsh, port, ptr, len) 576 bus_space_write_2((amd)->tag, (amd)->bsh, port, value) 579 bus_space_write_4((amd)->tag, (amd)->bsh, port, value)
|
/dragonfly/sys/dev/disk/advansys/ |
H A D | advlib.h | 499 bus_space_handle_t bsh; member 795 int adv_find_signature(bus_space_tag_t tag, bus_space_handle_t bsh); 848 bus_space_read_1((adv)->tag, (adv)->bsh, offset) 850 bus_space_read_2((adv)->tag, (adv)->bsh, offset) 852 bus_space_read_multi_1((adv)->tag, (adv)->bsh, offset, valp, count) 860 *valp++ = bus_space_read_2(adv->tag, adv->bsh, offset); in ADV_INSW() 864 bus_space_write_1((adv)->tag, (adv)->bsh, offset, val) 866 bus_space_write_2((adv)->tag, (adv)->bsh, offset, val) 874 bus_space_write_2(adv->tag, adv->bsh, offset, *valp++); in ADV_OUTSW()
|
H A D | adwlib.h | 605 bus_space_handle_t bsh; member 662 bus_space_read_1((adw)->tag, (adw)->bsh, port) 664 bus_space_read_2((adw)->tag, (adw)->bsh, port) 666 bus_space_read_4((adw)->tag, (adw)->bsh, port) 669 bus_space_write_1((adw)->tag, (adw)->bsh, port, value) 671 bus_space_write_2((adw)->tag, (adw)->bsh, port, value) 673 bus_space_write_4((adw)->tag, (adw)->bsh, port, value) 676 bus_space_set_multi_2((adw)->tag, (adw)->bsh, port, value, count)
|
H A D | advansys.h | 43 bus_space_handle_t bsh);
|
/dragonfly/sys/dev/misc/cmx/ |
H A D | cmxvar.h | 45 bus_space_handle_t bsh; /* bus space handle */ member 75 (bus_space_read_1((sc)->bst, (sc)->bsh, off)) 77 (bus_space_write_1((sc)->bst, (sc)->bsh, off, val))
|
/dragonfly/sys/dev/pccard/exca/ |
H A D | exca.c | 144 return (bus_space_read_1(sc->bst, sc->bsh, sc->offset + reg)); in exca_mem_getb() 150 bus_space_write_1(sc->bst, sc->bsh, sc->offset + reg, val); in exca_mem_putb() 156 bus_space_write_1(sc->bst, sc->bsh, EXCA_REG_INDEX, reg + sc->offset); in exca_io_getb() 157 return (bus_space_read_1(sc->bst, sc->bsh, EXCA_REG_DATA)); in exca_io_getb() 163 bus_space_write_1(sc->bst, sc->bsh, EXCA_REG_INDEX, reg + sc->offset); in exca_io_putb() 164 bus_space_write_1(sc->bst, sc->bsh, EXCA_REG_DATA, val); in exca_io_putb() 611 bus_space_tag_t bst, bus_space_handle_t bsh, uint32_t offset) in exca_init() argument 617 sc->bsh = bsh; in exca_init() 659 bus_space_write_1(exca->bst, exca->bsh, EXCA_REG_INDEX, in exca_valid_slot() 661 bus_space_write_1(exca->bst, exca->bsh, EXCA_REG_INDEX, in exca_valid_slot()
|
H A D | excavar.h | 76 bus_space_handle_t bsh; member
|
/dragonfly/sys/dev/pccard/pccbb/ |
H A D | pccbbvar.h | 65 bus_space_handle_t bsh; member 162 bus_space_write_4(sc->bst, sc->bsh, reg, val); in cbb_set() 168 return (bus_space_read_4(sc->bst, sc->bsh, reg)); in cbb_get()
|
H A D | pccbb_isa.c | 161 error = exca_probe_slots(dev, &sc->exca[0], sc->bst, sc->bsh); in cbb_isa_probe()
|
H A D | pccbb_pci.c | 329 sc->bsh = rman_get_bushandle(sc->base_res); in cbb_pci_attach() 330 exca_init(&sc->exca[0], brdev, sc->bst, sc->bsh, CBB_EXCA_OFFSET); in cbb_pci_attach()
|
/dragonfly/sys/bus/firewire/ |
H A D | fwohci_pci.c | 275 sc->bsh = rman_get_bushandle(sc->bsr); in fwohci_pci_attach() 357 if (sc->bst && sc->bsh) in fwohci_pci_detach() 358 bus_space_write_4(sc->bst, sc->bsh, in fwohci_pci_detach() 379 sc->bsh = 0; in fwohci_pci_detach()
|
H A D | fwohcivar.h | 45 bus_space_handle_t bsh; member
|
/dragonfly/sys/dev/serial/sio/ |
H A D | sio_private.h | 121 bus_space_handle_t bsh; member
|
/dragonfly/sys/dev/raid/dpt/ |
H A D | dpt_scsi.c | 85 bus_space_read_4((dpt)->tag, (dpt)->bsh, port) 87 bus_space_read_1((dpt)->tag, (dpt)->bsh, port) 89 bus_space_write_4((dpt)->tag, (dpt)->bsh, port, value) 91 bus_space_write_1((dpt)->tag, (dpt)->bsh, port, value) 1166 dpt_alloc(device_t dev, bus_space_tag_t tag, bus_space_handle_t bsh) in dpt_alloc() argument 1173 dpt->bsh = bsh; in dpt_alloc()
|
/dragonfly/sys/dev/disk/ncr/ |
H A D | ncr.c | 279 #define INB(r) bus_space_read_1(np->bst, np->bsh, offsetof(struct ncr_reg, r)) 283 #define OUTB(r, val) bus_space_write_1(np->bst, np->bsh, \ 285 #define OUTW(r, val) bus_space_write_2(np->bst, np->bsh, \ 287 #define OUTL(r, val) bus_space_write_4(np->bst, np->bsh, \ 289 #define OUTL_OFF(o, val) bus_space_write_4(np->bst, np->bsh, o, val) 291 #define INB_OFF(o) bus_space_read_1(np->bst, np->bsh, o) 292 #define INW_OFF(o) bus_space_read_2(np->bst, np->bsh, o) 293 #define INL_OFF(o) bus_space_read_4(np->bst, np->bsh, o) 1005 bus_space_handle_t bsh; member 3391 np->bsh = rman_get_bushandle(np->reg_res); [all …]
|