Home
last modified time | relevance | path

Searched refs:cfgoff (Results 1 – 6 of 6) sorted by relevance

/openbsd/src/sys/arch/octeon/dev/
Docteon_pcibus.c325 uint64_t cfgoff; in octeon_pcibus_pci_conf_read() local
329 cfgoff = OCTEON_PCI_CFG1 + (offset & 0xfff8); in octeon_pcibus_pci_conf_read()
331 cfgoff = OCTEON_PCI_CFG0 + (offset & 0xfff8); in octeon_pcibus_pci_conf_read()
334 cfgoff = tag + offset; in octeon_pcibus_pci_conf_read()
336 cfgoff = OCTEON_PCI_CONFIG_BASE1 + (cfgoff & 0xfffffff8); in octeon_pcibus_pci_conf_read()
338 cfgoff = OCTEON_PCI_CONFIG_BASE0 + (cfgoff & 0xfffffff8); in octeon_pcibus_pci_conf_read()
342 data = REG_READ32(cfgoff); in octeon_pcibus_pci_conf_read()
349 uint64_t cfgoff; in octeon_pcibus_pci_conf_write() local
353 cfgoff = OCTEON_PCI_CFG1 + (offset & 0xfff8); in octeon_pcibus_pci_conf_write()
355 cfgoff = OCTEON_PCI_CFG0 + (offset & 0xfff8); in octeon_pcibus_pci_conf_write()
[all …]
/openbsd/src/sys/arch/loongson/dev/
Dbonito.c781 u_int32_t *cfgoff, u_int32_t *pcimap_cfg) in bonito_conf_addr() argument
791 *cfgoff = (1 << d) | (f << 8) | offset; in bonito_conf_addr()
794 *cfgoff = tag | offset; in bonito_conf_addr()
856 u_int32_t cfgoff, pcimap_cfg; in bonito_conf_read_internal() local
860 if (bonito_conf_addr(bc, tag, offset, &cfgoff, &pcimap_cfg)) in bonito_conf_read_internal()
873 REGVAL(BONITO_PCIMAP_CFG) = (cfgoff >> 16) | pcimap_cfg; in bonito_conf_read_internal()
878 data = REGVAL(BONITO_PCICFG_BASE + (cfgoff & 0xfffc)); in bonito_conf_read_internal()
899 u_int32_t cfgoff, pcimap_cfg; in bonito_conf_write() local
911 if (bonito_conf_addr(sc->sc_bonito, tag, offset, &cfgoff, &pcimap_cfg)) in bonito_conf_write()
924 REGVAL(BONITO_PCIMAP_CFG) = (cfgoff >> 16) | pcimap_cfg; in bonito_conf_write()
[all …]
Dhtb.c264 u_int32_t *cfgoff, u_int32_t *pcimap_cfg) in htb_conf_addr() argument
/openbsd/src/sys/dev/ic/
Dcissvar.h53 int cfgoff; member
Dciss.c145 bus_space_read_region_4(sc->iot, sc->cfg_ioh, sc->cfgoff, in ciss_attach()
167 bus_space_write_region_4(sc->iot, sc->cfg_ioh, sc->cfgoff, in ciss_attach()
169 bus_space_barrier(sc->iot, sc->cfg_ioh, sc->cfgoff, sizeof(sc->cfg), in ciss_attach()
189 bus_space_read_region_4(sc->iot, sc->cfg_ioh, sc->cfgoff, in ciss_attach()
199 if (bus_space_read_4(sc->iot, sc->cfg_ioh, sc->cfgoff + in ciss_attach()
202 bus_space_barrier(sc->iot, sc->cfg_ioh, sc->cfgoff + in ciss_attach()
207 if (!(bus_space_read_4(sc->iot, sc->cfg_ioh, sc->cfgoff + in ciss_attach()
929 sc->cfgoff + offsetof(struct ciss_config, heartbeat)); in ciss_heartbeat()
/openbsd/src/sys/dev/pci/
Dciss_pci.c159 sc->cfgoff = bus_space_read_4(sc->iot, sc->ioh, CISS_CFG_OFF); in ciss_pci_attach()
172 if (sc->cfgoff + sizeof(struct ciss_config) > cfgsz) { in ciss_pci_attach()