/src/sys/dev/pci/ |
pwdog.c | 84 pcireg_t memtype; local in function:pwdog_attach 87 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, PCI_MAPREG_START); 88 if (pci_mapreg_map(pa, PCI_MAPREG_START, memtype, 0, &sc->sc_iot, 92 memtype == PCI_MAPREG_TYPE_IO ? "I/O" : "memory");
|
siop_pci_common.c | 242 pcireg_t memtype; local in function:siop_pci_attach_common 278 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, 0x14); 279 switch (memtype) { 282 memh_valid = (pci_mapreg_map(pa, 0x14, memtype, 0, 308 switch (memtype) { 318 memtype); 321 if (pci_mapreg_map(pa, bar, memtype, 0,
|
if_eqos_pci.c | 112 pcireg_t memtype; local in function:eqos_pci_attach 120 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, PCI_BAR0); 121 if (pci_mapreg_map(pa, PCI_BAR0, memtype, 0, &memt, &memh, NULL,
|
ciss_pci.c | 158 int cfg_bar, memtype; local in function:ciss_pci_attach 179 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, CISS_BAR); 180 if (memtype != (PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_32BIT) && 181 memtype != (PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_64BIT)) { 185 if (pci_mapreg_map(pa, CISS_BAR, memtype, 0,
|
if_bwi_pci.c | 132 pcireg_t memtype, reg; local in function:bwi_pci_attach 145 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, BWI_PCI_BAR0); 146 switch (memtype) { 155 if (pci_mapreg_map(pa, BWI_PCI_BAR0, memtype, 0, &sc->sc_mem_bt,
|
ibmcd.c | 103 pcireg_t memtype; local in function:ibmcd_attach 106 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, PCI_MAPREG_START); 107 if (pci_mapreg_map(pa, PCI_MAPREG_START, memtype, 0, &sc->sc_iot, 111 memtype == PCI_MAPREG_TYPE_IO ? "I/O" : "memory");
|
mpt_pci.c | 133 pcireg_t reg, memtype; local in function:mpt_pci_attach 150 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, MPT_PCI_MMBA); 151 switch (memtype) { 155 memtype, 0, &memt, &memh, NULL, NULL) == 0);
|
if_athn_pci.c | 134 pcireg_t memtype, reg; local in function:athn_pci_attach 185 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, ATHN_PCI_MMBA); 186 if (memtype != PCI_MAPREG_TYPE_MEM && 187 memtype != PCI_MAPREG_MEM_TYPE_64BIT) { 189 (int)memtype); 192 error = pci_mapreg_map(pa, ATHN_PCI_MMBA, memtype, 0, &psc->psc_iot,
|
if_ral_pci.c | 169 pcireg_t memtype, reg; local in function:ral_pci_attach 204 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, RAL_PCI_BAR0); 205 error = pci_mapreg_map(pa, RAL_PCI_BAR0, memtype, 0, &sc->sc_st,
|
xhci_pci.c | 127 pcireg_t csr, memtype, usbrev; local in function:xhci_pci_attach 156 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, PCI_CBMEM); 157 if (PCI_MAPREG_TYPE(memtype) != PCI_MAPREG_TYPE_MEM) { 164 if (pci_mapreg_info(pa->pa_pc, pa->pa_tag, PCI_CBMEM, memtype,
|
if_re_pci.c | 190 pcireg_t command, memtype; local in function:re_pci_attach 210 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, RTK_PCI_LOMEM); 211 switch (memtype) { 216 memtype, 0, &memt, &memh, NULL, &memsize) == 0) ||
|
nvme_pci.c | 153 pcireg_t memtype, reg; local in function:nvme_pci_attach 172 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, NVME_PCI_BAR); 173 if (PCI_MAPREG_TYPE(memtype) != PCI_MAPREG_TYPE_MEM) { 174 aprint_error_dev(self, "invalid type (type=0x%x)\n", memtype); 191 memtype, &memaddr, &sc->sc_ios, &flags);
|
siisata_pci.c | 158 pcireg_t csr, memtype; local in function:siisata_pci_attach 178 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, SIISATA_PCI_BAR0); 179 switch (memtype) { 183 memtype, 0, &memt, &memh, NULL, &grsize) == 0); 198 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, SIISATA_PCI_BAR1); 199 switch (memtype) { 203 memtype, 0, &memt, &memh, NULL, &prsize) == 0);
|
ahcisata_pci.c | 282 pcireg_t memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, bar); local in function:ahci_pci_match 283 if (pci_mapreg_map(pa, bar, memtype, 0, ®t, ®h, NULL, &size) != 0) 400 pcireg_t memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, bar); local in function:ahci_pci_attach 401 if (pci_mapreg_map(pa, bar, memtype, 0, &sc->sc_ahcit, &sc->sc_ahcih,
|
if_age.c | 147 pcireg_t memtype; local in function:age_attach 166 memtype = pci_mapreg_type(sc->sc_pct, sc->sc_pcitag, AGE_PCIR_BAR); 167 switch (memtype) { 177 if (pci_mapreg_map(pa, AGE_PCIR_BAR, memtype, 0, &sc->sc_mem_bt,
|
if_ale.c | 392 pcireg_t memtype; local in function:ale_attach 409 memtype = pci_mapreg_type(sc->sc_pct, sc->sc_pcitag, ALE_PCIR_BAR); 410 switch (memtype) { 420 if (pci_mapreg_map(pa, ALE_PCIR_BAR, memtype, 0, &sc->sc_mem_bt,
|
if_nfe.c | 219 pcireg_t memtype, csr; local in function:nfe_attach 227 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, NFE_PCI_BA); 228 switch (memtype) { 231 if (pci_mapreg_map(pa, NFE_PCI_BA, memtype, 0, &sc->sc_memt,
|
ahd_pci.c | 323 pcireg_t memtype; local in function:ahd_pci_attach 407 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, 409 switch (memtype) { 413 memtype, 0, &ahd->tags[0], 429 ahd_name(ahd), memtype);
|
if_msk.c | 1464 pcireg_t command, memtype; local in function:mskc_attach 1509 memtype = pci_mapreg_type(pc, pa->pa_tag, SK_PCI_LOMEM); 1510 if (pci_mapreg_map(pa, SK_PCI_LOMEM, memtype, 0, &sc->sk_btag,
|
if_xge.c | 278 pcireg_t memtype; local in function:xge_attach 296 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, XGE_PIF_BAR); 297 if (pci_mapreg_map(pa, XGE_PIF_BAR, memtype, 0, 303 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, XGE_TXP_BAR); 304 if (pci_mapreg_map(pa, XGE_TXP_BAR, memtype, 0,
|
if_et.c | 178 pcireg_t memtype; local in function:et_attach 194 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, ET_PCIR_BAR); 195 if (pci_mapreg_map(pa, ET_PCIR_BAR, memtype, 0, &sc->sc_mem_bt,
|
/src/sys/arch/x86/pci/ |
dwiic_pci.c | 220 pcireg_t memtype; local in function:pci_dwiic_attach 236 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, PCI_BAR0); 237 if (pci_mapreg_map(pa, PCI_BAR0, memtype, 0, &sc->sc_dwiic.sc_iot,
|
msipic.c | 675 u_int memtype; local in function:msipic_construct_msix_pic 735 memtype = pci_mapreg_type(pc, tag, bar); 745 err = pci_mapreg_submap(pa, bar, memtype, BUS_SPACE_MAP_LINEAR, 755 if (pci_mapreg_info(pa->pa_pc, pa->pa_tag, bar, memtype,
|
/src/sys/arch/i386/stand/efiboot/ |
efimemory.c | 336 int memtype; local in function:efi_memory_probe 351 memtype = getmemtype(md); 352 if (memtype != BIM_Memory)
|
/src/sbin/efi/ |
devpath1.c | 89 static const char *memtype[] = { local in function:efi_memory_type_name 95 if (t >= __arraycount(memtype)) 98 return memtype[t];
|