Searched refs:regoff (Results 1 – 7 of 7) sorted by relevance
/freebsd/sys/arm/freescale/imx/ |
H A D | imx6_usbphy.c | 94 int err, regoff, rid; in usbphy_attach() local 117 regoff = 0; in usbphy_attach() 120 regoff = 0x60; in usbphy_attach() 130 imx6_anatop_write_4(IMX6_ANALOG_USB1_CHRG_DETECT + regoff, in usbphy_attach() 134 imx6_anatop_write_4(IMX6_ANALOG_USB1_CHRG_DETECT + regoff, in usbphy_attach()
|
H A D | imx6_ccm.c | 284 int phy_num, regoff; in imx_ccm_usbphy_enable() 290 regoff = 0; in imx_ccm_usbphy_enable() 293 regoff = 0x10; in imx_ccm_usbphy_enable() 301 imx6_anatop_write_4(IMX6_ANALOG_CCM_PLL_USB1 + regoff, in imx_ccm_usbphy_enable()
|
/freebsd/sys/dev/isp/ |
H A D | isp_pci.c | 765 isp_pci_rd_reg_2400(ispsoftc_t *isp, int regoff) in isp_pci_rd_reg_2400() argument 767 int block = regoff & _BLK_REG_MASK; in isp_pci_rd_reg_2400() 771 return (BXR4(isp, regoff)); in isp_pci_rd_reg_2400() 773 return (BXR2(isp, regoff)); in isp_pci_rd_reg_2400() 775 isp_prt(isp, ISP_LOGERR, "unknown block read at 0x%x", regoff); in isp_pci_rd_reg_2400() 780 isp_pci_wr_reg_2400(ispsoftc_t *isp, int regoff, uint32_t val) in isp_pci_wr_reg_2400() argument 782 int block = regoff & _BLK_REG_MASK; in isp_pci_wr_reg_2400() 786 BXW4(isp, regoff, val); in isp_pci_wr_reg_2400() 788 if (regoff == BIU2400_REQINP || in isp_pci_wr_reg_2400() 789 regoff == BIU2400_RSPOUTP || in isp_pci_wr_reg_2400() [all …]
|
/freebsd/sys/dev/intel/ |
H A D | pchtherm.c | 136 int regoff = oidp->oid_arg2; in pchtherm_temp_sysctl() local 139 temp = bus_read_2(sc->tbar, regoff); in pchtherm_temp_sysctl()
|
/freebsd/sys/dev/ntb/ntb_hw/ |
H A D | ntb_hw_intel.c | 350 static inline uint64_t db_ioread(struct ntb_softc *, uint64_t regoff); 351 static inline void db_iowrite(struct ntb_softc *, uint64_t regoff, uint64_t); 352 static inline void db_iowrite_raw(struct ntb_softc *, uint64_t regoff, uint64_t); 1408 db_ioread(struct ntb_softc *ntb, uint64_t regoff) in db_ioread() argument 1415 return (intel_ntb_reg_read(8, regoff)); in db_ioread() 1417 return (intel_ntb_reg_read(2, regoff)); in db_ioread() 1423 db_iowrite(struct ntb_softc *ntb, uint64_t regoff, uint64_t val) in db_iowrite() argument 1431 if (regoff == ntb->self_reg->db_mask) in db_iowrite() 1433 db_iowrite_raw(ntb, regoff, val); in db_iowrite() 1437 db_iowrite_raw(struct ntb_softc *ntb, uint64_t regoff, uint64_t val) in db_iowrite_raw() argument [all …]
|
/freebsd/sys/powerpc/powermac/ |
H A D | uninorth.c | 229 unin_update_reg(device_t dev, uint32_t regoff, uint32_t set, uint32_t clr) in unin_update_reg() argument 236 reg = (void *)(sc->sc_addr + regoff); in unin_update_reg()
|
/freebsd/usr.sbin/bhyve/ |
H A D | pci_ahci.c | 2339 pci_ahci_read(struct pci_devinst *pi, int baridx, uint64_t regoff, int size) in pci_ahci_read() argument 2347 assert((regoff & (size - 1)) == 0); in pci_ahci_read() 2351 offset = regoff & ~0x3; /* round down to a multiple of 4 bytes */ in pci_ahci_read() 2359 regoff); in pci_ahci_read() 2361 value >>= 8 * (regoff & 0x3); in pci_ahci_read()
|