| /freebsd-13.1/sys/arm64/broadcom/brcmmdio/ |
| H A D | mdio_mux_iproc.c | 98 struct resource * reg_base; member 166 bus_write_4(sc->reg_base, MDIO_PARAM_OFFSET, param); in brcm_iproc_switch() 178 val = bus_read_4(sc->reg_base, MDIO_STAT_OFFSET); in iproc_mdio_wait_for_idle() 207 bus_write_4(sc->reg_base, MDIO_CTRL_OFFSET, 0); in brcm_iproc_mdio_op() 208 bus_read_4(sc->reg_base, MDIO_STAT_OFFSET); in brcm_iproc_mdio_op() 213 param = bus_read_4(sc->reg_base, MDIO_PARAM_OFFSET); in brcm_iproc_mdio_op() 221 bus_write_4(sc->reg_base, MDIO_ADDR_OFFSET, reg); in brcm_iproc_mdio_op() 223 bus_write_4(sc->reg_base, MDIO_CTRL_OFFSET, op); in brcm_iproc_mdio_op() 320 if (sc->reg_base == NULL) { in brcm_iproc_mdio_attach() 393 if (sc->reg_base != NULL) { in brcm_iproc_mdio_detach() [all …]
|
| /freebsd-13.1/sys/dev/vnic/ |
| H A D | thunder_mdio.c | 145 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()
|
| H A D | thunder_bgx.c | 153 bgx->reg_base = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in thunder_bgx_attach() 155 if (bgx->reg_base == NULL) { in thunder_bgx_attach() 161 bgx->bgx_id = (rman_get_start(bgx->reg_base) >> BGX_NODE_ID_SHIFT) & in thunder_bgx_attach() 163 bgx->bgx_id += nic_get_node_id(bgx->reg_base) * MAX_BGX_PER_CN88XX; in thunder_bgx_attach() 189 rman_get_rid(bgx->reg_base), bgx->reg_base); in thunder_bgx_attach() 212 rman_get_rid(bgx->reg_base), bgx->reg_base); in thunder_bgx_detach() 227 return (bus_read_8(bgx->reg_base, addr)); in bgx_reg_read() 237 bus_write_8(bgx->reg_base, addr, val); in bgx_reg_write() 247 bus_write_8(bgx->reg_base, addr, val | bus_read_8(bgx->reg_base, addr)); in bgx_reg_modify()
|
| H A D | nic_main.c | 106 struct resource * reg_base; /* Register start address */ member 215 nic->node = nic_get_node_id(nic->reg_base); in nicpf_attach() 347 nic->reg_base = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in nicpf_alloc_res() 349 if (nic->reg_base == NULL) { in nicpf_alloc_res() 368 if (nic->reg_base != NULL) { in nicpf_free_res() 370 rman_get_rid(nic->reg_base), nic->reg_base); in nicpf_free_res() 380 bus_write_8(nic->reg_base, offset, val); in nic_reg_write() 388 val = bus_read_8(nic->reg_base, offset); in nic_reg_read()
|
| H A D | nicvf_main.c | 206 nic->reg_base = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in nicvf_attach() 208 if (nic->reg_base == NULL) { in nicvf_attach() 280 bus_release_resource(dev, SYS_RES_MEMORY, rman_get_rid(nic->reg_base), in nicvf_attach() 281 nic->reg_base); in nicvf_attach() 301 if (nic->reg_base != NULL) { in nicvf_detach() 303 rman_get_rid(nic->reg_base), nic->reg_base); in nicvf_detach() 815 bus_write_8(nic->reg_base, offset, val); in nicvf_reg_write() 822 return (bus_read_8(nic->reg_base, offset)); in nicvf_reg_read() 830 bus_write_8(nic->reg_base, offset + (qidx << NIC_Q_NUM_SHIFT), val); in nicvf_queue_reg_write() 838 return (bus_read_8(nic->reg_base, offset + (qidx << NIC_Q_NUM_SHIFT))); in nicvf_queue_reg_read()
|
| H A D | thunder_mdio_var.h | 55 struct resource * reg_base; member
|
| H A D | thunder_bgx_var.h | 54 struct resource * reg_base; member
|
| H A D | nic.h | 312 struct resource *reg_base; member
|
| /freebsd-13.1/sys/contrib/device-tree/Bindings/thermal/ |
| H A D | nvidia,tegra124-soctherm.txt | 106 reg = <0x0 0x700e2000 0x0 0x600 /* SOC_THERM reg_base */ 107 0x0 0x60006000 0x0 0x400 /* CAR reg_base */ 171 reg = <0x0 0x700e2000 0x0 0x600 /* SOC_THERM reg_base */ 172 0x0 0x70040000 0x0 0x200>; /* CCROC reg_base */;
|
| /freebsd-13.1/sys/arm64/iommu/ |
| H A D | smmu.c | 902 uint64_t reg_base; in smmu_init_strtab_2lvl() local 948 reg_base = base & STRTAB_BASE_ADDR_M; in smmu_init_strtab_2lvl() 949 KASSERT(reg_base == base, ("bad allocation 3")); in smmu_init_strtab_2lvl() 950 reg_base |= STRTAB_BASE_RA; in smmu_init_strtab_2lvl() 951 strtab->base = reg_base; in smmu_init_strtab_2lvl()
|
| /freebsd-13.1/sys/contrib/device-tree/src/arm64/nvidia/ |
| H A D | tegra132.dtsi | 865 reg = <0x0 0x700e2000 0x0 0x600>, /* 0: SOC_THERM reg_base */ 866 <0x0 0x70040000 0x0 0x200>; /* 2: CCROC reg_base */
|
| H A D | tegra210.dtsi | 1568 reg = <0x0 0x700e2000 0x0 0x600>, /* SOC_THERM reg_base */ 1569 <0x0 0x60006000 0x0 0x400>; /* CAR reg_base */
|
| /freebsd-13.1/sys/contrib/device-tree/src/arm/ |
| H A D | tegra124.dtsi | 898 reg = <0x0 0x700e2000 0x0 0x600>, /* SOC_THERM reg_base */ 899 <0x0 0x60006000 0x0 0x400>; /* CAR reg_base */
|