Home
last modified time | relevance | path

Searched refs:reg_base (Results 1 – 13 of 13) sorted by relevance

/NextBSD/sys/dev/vnic/
HDthunder_mdio.c145 bus_read_8((sc)->reg_base, (reg))
148 bus_write_8((sc)->reg_base, (reg), (val))
161 sc->reg_base = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in thunder_mdio_attach()
163 if (sc->reg_base == NULL) { in thunder_mdio_attach()
184 if (sc->reg_base != NULL) { in thunder_mdio_detach()
186 sc->reg_base); in thunder_mdio_detach()
HDthunder_bgx.c148 bgx->reg_base = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in thunder_bgx_attach()
150 if (bgx->reg_base == NULL) { in thunder_bgx_attach()
156 bgx->bgx_id = (rman_get_start(bgx->reg_base) >> BGX_NODE_ID_SHIFT) & in thunder_bgx_attach()
158 bgx->bgx_id += nic_get_node_id(bgx->reg_base) * MAX_BGX_PER_CN88XX; in thunder_bgx_attach()
184 rman_get_rid(bgx->reg_base), bgx->reg_base); in thunder_bgx_attach()
216 return (bus_read_8(bgx->reg_base, addr)); in bgx_reg_read()
226 bus_write_8(bgx->reg_base, addr, val); in bgx_reg_write()
236 bus_write_8(bgx->reg_base, addr, val | bus_read_8(bgx->reg_base, addr)); in bgx_reg_modify()
HDnicvf_main.c198 nic->reg_base = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in nicvf_attach()
200 if (nic->reg_base == NULL) { in nicvf_attach()
269 bus_release_resource(dev, SYS_RES_MEMORY, rman_get_rid(nic->reg_base), in nicvf_attach()
270 nic->reg_base); in nicvf_attach()
290 if (nic->reg_base != NULL) { in nicvf_detach()
292 rman_get_rid(nic->reg_base), nic->reg_base); in nicvf_detach()
741 bus_write_8(nic->reg_base, offset, val); in nicvf_reg_write()
748 return (bus_read_8(nic->reg_base, offset)); in nicvf_reg_read()
756 bus_write_8(nic->reg_base, offset + (qidx << NIC_Q_NUM_SHIFT), val); in nicvf_queue_reg_write()
764 return (bus_read_8(nic->reg_base, offset + (qidx << NIC_Q_NUM_SHIFT))); in nicvf_queue_reg_read()
HDnic_main.c95 struct resource * reg_base; /* Register start address */ member
202 nic->node = nic_get_node_id(nic->reg_base); in nicpf_attach()
334 nic->reg_base = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in nicpf_alloc_res()
336 if (nic->reg_base == NULL) { in nicpf_alloc_res()
355 if (nic->reg_base != NULL) { in nicpf_free_res()
357 rman_get_rid(nic->reg_base), nic->reg_base); in nicpf_free_res()
367 bus_write_8(nic->reg_base, offset, val); in nic_reg_write()
375 val = bus_read_8(nic->reg_base, offset); in nic_reg_read()
HDthunder_mdio_var.h55 struct resource * reg_base; member
HDthunder_bgx_var.h52 struct resource * reg_base; member
HDnic.h290 struct resource *reg_base; member
/NextBSD/sys/dev/drm2/radeon/
HDradeon_device.c142 rdev->scratch.reg_base = RADEON_SCRATCH_REG0; in radeon_scratch_init()
145 rdev->scratch.reg[i] = rdev->scratch.reg_base + (i * 4); in radeon_scratch_init()
HDradeon_fence.c833 rdev->scratch.reg_base; in radeon_fence_driver_start_ring()
HDradeon.h536 uint32_t reg_base; member
HDsi.c1789 rdev->scratch.reg_base = SCRATCH_REG0; in si_scratch_init()
1792 rdev->scratch.reg[i] = rdev->scratch.reg_base + (i * 4); in si_scratch_init()
HDr600.c2455 rdev->scratch.reg_base = SCRATCH_REG0; in r600_scratch_init()
2458 rdev->scratch.reg[i] = rdev->scratch.reg_base + (i * 4); in r600_scratch_init()
/NextBSD/contrib/gcc/config/arm/
HDarm.c14225 int reg_base = REGNO (base); in thumb_load_double_from_address() local
14231 reg_dest + 1, reg_base, reg_offset); in thumb_load_double_from_address()