Lines Matching refs:pcib
121 static void pci_hdrtypedata(device_t pcib, int b, int s, int f,
123 static void pci_read_cap(device_t pcib, pcicfgregs *cfg);
124 static int pci_read_vpd_reg(device_t pcib, pcicfgregs *cfg,
127 static int pci_write_vpd_reg(device_t pcib, pcicfgregs *cfg,
130 static void pci_read_vpd(device_t pcib, pcicfgregs *cfg);
137 static struct pci_devinfo * pci_fill_devinfo(device_t pcib, device_t bus, int d,
227 EARLY_DRIVER_MODULE(pci, pcib, pci_driver, pci_modevent, NULL, BUS_PASS_BUS);
673 pci_hdrtypedata(device_t pcib, int b, int s, int f, pcicfgregs *cfg) in pci_hdrtypedata() argument
675 #define REG(n, w) PCIB_READ_CONFIG(pcib, b, s, f, n, w) in pci_hdrtypedata()
708 pci_read_device(device_t pcib, device_t bus, int d, int b, int s, int f) in pci_read_device() argument
710 #define REG(n, w) PCIB_READ_CONFIG(pcib, b, s, f, n, w) in pci_read_device()
719 return (pci_fill_devinfo(pcib, bus, d, b, s, f, vid, did)); in pci_read_device()
731 pci_fill_devinfo(device_t pcib, device_t bus, int d, int b, int s, int f, in pci_fill_devinfo() argument
766 pci_hdrtypedata(pcib, b, s, f, cfg); in pci_fill_devinfo()
769 pci_read_cap(pcib, cfg); in pci_fill_devinfo()
797 pci_ea_fill_info(device_t pcib, pcicfgregs *cfg) in pci_ea_fill_info() argument
799 #define REG(n, w) PCIB_READ_CONFIG(pcib, cfg->bus, cfg->slot, cfg->func, \ in pci_ea_fill_info()
871 pci_read_cap(device_t pcib, pcicfgregs *cfg) in pci_read_cap() argument
873 #define REG(n, w) PCIB_READ_CONFIG(pcib, cfg->bus, cfg->slot, cfg->func, n, w) in pci_read_cap()
874 #define WREG(n, v, w) PCIB_WRITE_CONFIG(pcib, cfg->bus, cfg->slot, cfg->func, n, v, w) in pci_read_cap()
932 device_printf(pcib, in pci_read_cap()
1000 pci_ea_fill_info(pcib, cfg); in pci_read_cap()
1015 device_printf(pcib, in pci_read_cap()
1033 pci_read_vpd_reg(device_t pcib, pcicfgregs *cfg, int reg, uint32_t *data) in pci_read_vpd_reg() argument
1053 pci_write_vpd_reg(device_t pcib, pcicfgregs *cfg, int reg, uint32_t data)
1074 device_t pcib; member
1090 if (pci_read_vpd_reg(vrs->pcib, vrs->cfg, vrs->off, ®)) in vpd_nextbyte()
1313 pci_parse_vpd(device_t pcib, pcicfgregs *cfg) in pci_parse_vpd() argument
1322 vrs.pcib = pcib; in pci_parse_vpd()
1378 pci_read_vpd(device_t pcib, pcicfgregs *cfg) in pci_read_vpd() argument
1382 status = pci_parse_vpd(pcib, cfg); in pci_read_vpd()
4208 pci_identify_function(device_t pcib, device_t dev, int domain, int busno, in pci_identify_function() argument
4213 dinfo = pci_read_device(pcib, dev, domain, busno, slot, func); in pci_identify_function()
4223 #define REG(n, w) PCIB_READ_CONFIG(pcib, busno, s, f, n, w) in pci_add_children()
4224 device_t pcib = device_get_parent(dev); in pci_add_children() local
4237 dinfo = pci_identify_function(pcib, dev, domain, busno, 0, 0); in pci_add_children()
4239 PCIB_TRY_ENABLE_ARI(pcib, dinfo->cfg.dev); in pci_add_children()
4247 maxslots = PCIB_MAXSLOTS(pcib); in pci_add_children()
4260 pcifunchigh = PCIB_MAXFUNCS(pcib); in pci_add_children()
4262 pci_identify_function(pcib, dev, domain, busno, s, f); in pci_add_children()
4270 #define REG(n, w) PCIB_READ_CONFIG(pcib, busno, s, f, n, w) in pci_rescan_method()
4271 device_t pcib = device_get_parent(dev); in pci_rescan_method() local
4293 maxslots = PCIB_MAXSLOTS(pcib); in pci_rescan_method()
4304 pcifunchigh = PCIB_MAXFUNCS(pcib); in pci_rescan_method()
4324 pci_identify_function(pcib, dev, domain, busno, s, f); in pci_rescan_method()
4368 device_t pcib; in pci_add_iov_child() local
4371 pcib = device_get_parent(bus); in pci_add_iov_child()
4373 PCIB_DECODE_RID(pcib, rid, &busno, &slot, &func); in pci_add_iov_child()
4375 vf_dinfo = pci_fill_devinfo(pcib, bus, pci_get_domain(pcib), busno, in pci_add_iov_child()
4641 device_t pcib; in pci_set_power_child() local
4651 pcib = device_get_parent(dev); in pci_set_power_child()
4654 PCIB_POWER_FOR_SLEEP(pcib, child, &dstate) == 0) in pci_set_power_child()
6519 device_t pcib, bus; in pci_find_pcie_root_port() local
6534 pcib = device_get_parent(bus); in pci_find_pcie_root_port()
6535 KASSERT(pcib != NULL, ("%s: null bridge of %s", __func__, in pci_find_pcie_root_port()
6542 if (device_get_devclass(device_get_parent(pcib)) != pci_class) in pci_find_pcie_root_port()
6545 dinfo = device_get_ivars(pcib); in pci_find_pcie_root_port()
6548 return (pcib); in pci_find_pcie_root_port()
6550 dev = pcib; in pci_find_pcie_root_port()