Home
last modified time | relevance | path

Searched refs:devfn (Results 1 – 25 of 336) sorted by relevance

12345678910>>...14

/drivers/pci/hotplug/
A Dcpci_hotplug_pci.c39 slot->devfn, in cpci_get_attention_status()
45 slot->devfn, in cpci_get_attention_status()
59 slot->devfn, in cpci_set_attention_status()
86 slot->devfn, in cpci_get_hs_csr()
105 slot->devfn, in cpci_check_and_clear_ins()
134 slot->devfn, in cpci_check_ext()
154 slot->devfn, in cpci_clear_ext()
180 slot->devfn, in cpci_led_on()
208 slot->devfn, in cpci_led_off()
272 if (PCI_SLOT(dev->devfn) == PCI_SLOT(slot->devfn)) in cpci_configure_slot()
[all …]
A Dibmphp_pci.c93 unsigned int devfn = PCI_DEVFN(device, function); in ibmphp_configure_card() local
348 unsigned int devfn; in configure_device() local
573 unsigned int devfn; in configure_bridge() local
1052 unsigned int devfn; in scan_behind_bridge() local
1078 devfn = PCI_DEVFN(device, function); in scan_behind_bridge()
1203 unsigned int devfn; in unconfigure_boot_device() local
1213 devfn = PCI_DEVFN(device, function); in unconfigure_boot_device()
1318 unsigned int devfn; in unconfigure_boot_bridge() local
1320 devfn = PCI_DEVFN(device, function); in unconfigure_boot_bridge()
1424 unsigned int devfn; in unconfigure_boot_card() local
[all …]
A Dcpqphp_pci.c162 fakedev->devfn = dev_num << 3; in cpqhp_set_irq()
239 tdevice = cpqhp_routing_table->slots[loop].devfn; in PCI_GetBusDevHelper()
308 u16 devfn; in cpqhp_save_config() local
408 new_slot->bus, devfn); in cpqhp_save_config()
554 unsigned int devfn; in cpqhp_save_base_addr_length() local
560 devfn = PCI_DEVFN(func->device, func->function); in cpqhp_save_base_addr_length()
699 unsigned int devfn; in cpqhp_save_used_resources() local
705 devfn = PCI_DEVFN(func->device, func->function); in cpqhp_save_used_resources()
952 unsigned int devfn; in cpqhp_configure_board() local
958 devfn = PCI_DEVFN(func->device, func->function); in cpqhp_configure_board()
[all …]
/drivers/pci/controller/
A Dpci-thunder-ecam.c181 (unsigned int)where, devfn); in thunder_ecam_config_read()
229 0x10, bus, devfn, where, in thunder_ecam_config_read()
234 0x20, bus, devfn, where, in thunder_ecam_config_read()
239 0x18, bus, devfn, where, in thunder_ecam_config_read()
244 0x1a4, bus, devfn, where, in thunder_ecam_config_read()
249 0x1b4, bus, devfn, where, in thunder_ecam_config_read()
252 bool is_rsl_bridge = devfn == 0x08; in thunder_ecam_config_read()
253 bool is_rad_bridge = devfn == 0xa0; in thunder_ecam_config_read()
254 bool is_zip_bridge = devfn == 0xa8; in thunder_ecam_config_read()
255 bool is_dfa_bridge = devfn == 0xb0; in thunder_ecam_config_read()
[all …]
A Dpcie-altera.c64 #define TLP_CFG_DW2(bus, devfn, offset) \ argument
65 (((bus) << 24) | ((devfn) << 16) | (offset))
216 if (pci_is_root_bus(bus) && (devfn == 0) && in altera_pcie_hide_rc_bar()
390 headers[2] = TLP_CFG_DW2(bus, devfn, where); in get_tlp_header()
582 unsigned int devfn, int where, int size, in _altera_pcie_cfg_read() argument
609 ret = tlp_cfg_dword_read(pcie, busno, devfn, in _altera_pcie_cfg_read()
630 unsigned int devfn, int where, int size, in _altera_pcie_cfg_write() argument
669 if (altera_pcie_hide_rc_bar(bus, devfn, where)) in altera_pcie_cfg_read()
684 if (altera_pcie_hide_rc_bar(bus, devfn, where)) in altera_pcie_cfg_write()
700 unsigned int devfn, int offset, u16 *value) in altera_read_cap_word() argument
[all …]
A Dpci-host-generic.c28 static bool pci_dw_valid_device(struct pci_bus *bus, unsigned int devfn) in pci_dw_valid_device() argument
38 if (bus->number == cfg->busr.start && PCI_SLOT(devfn) > 0) in pci_dw_valid_device()
45 unsigned int devfn, int where) in pci_dw_ecam_map_bus() argument
47 if (!pci_dw_valid_device(bus, devfn)) in pci_dw_ecam_map_bus()
50 return pci_ecam_map_bus(bus, devfn, where); in pci_dw_ecam_map_bus()
A Dpci-loongson.c149 pdev->pin = 1 + (PCI_FUNC(pdev->devfn) & 3); in loongson_pci_pin_quirk()
191 unsigned int devfn, int where) in cfg0_map() argument
200 addroff |= (devfn << 8) | where; in cfg0_map()
205 unsigned int devfn, int where) in cfg1_map() argument
214 addroff |= (devfn << 8) | (where & 0xff) | ((where & 0xf00) << 16); in cfg1_map()
226 unsigned int devfn, int where) in pci_loongson_map_bus() argument
228 unsigned int device = PCI_SLOT(devfn); in pci_loongson_map_bus()
229 unsigned int function = PCI_FUNC(devfn); in pci_loongson_map_bus()
249 return cfg0_map(priv, bus, devfn, where); in pci_loongson_map_bus()
253 return cfg1_map(priv, bus, devfn, where); in pci_loongson_map_bus()
A Dpci-thunder-pem.c38 static int thunder_pem_bridge_read(struct pci_bus *bus, unsigned int devfn, in thunder_pem_bridge_read() argument
45 if (devfn != 0 || where >= 2048) in thunder_pem_bridge_read()
138 static int thunder_pem_config_read(struct pci_bus *bus, unsigned int devfn, in thunder_pem_config_read() argument
152 return thunder_pem_bridge_read(bus, devfn, where, size, val); in thunder_pem_config_read()
154 return pci_generic_config_read(bus, devfn, where, size, val); in thunder_pem_config_read()
214 static int thunder_pem_bridge_write(struct pci_bus *bus, unsigned int devfn, in thunder_pem_bridge_write() argument
224 if (devfn != 0 || where >= 2048) in thunder_pem_bridge_write()
287 static int thunder_pem_config_write(struct pci_bus *bus, unsigned int devfn, in thunder_pem_config_write() argument
300 return thunder_pem_bridge_write(bus, devfn, where, size, val); in thunder_pem_config_write()
303 return pci_generic_config_write(bus, devfn, where, size, val); in thunder_pem_config_write()
A Dpci-ixp4xx.c186 static u32 ixp4xx_config_addr(u8 bus_num, u16 devfn, int where) in ixp4xx_config_addr() argument
191 return (PCI_CONF1_ADDRESS(0, 0, PCI_FUNC(devfn), where) & in ixp4xx_config_addr()
192 ~PCI_CONF1_ENABLE) | BIT(32-PCI_SLOT(devfn)); in ixp4xx_config_addr()
195 return (PCI_CONF1_ADDRESS(bus_num, PCI_SLOT(devfn), in ixp4xx_config_addr()
196 PCI_FUNC(devfn), where) & in ixp4xx_config_addr()
293 static int ixp4xx_pci_read_config(struct pci_bus *bus, unsigned int devfn, in ixp4xx_pci_read_config() argument
307 addr = ixp4xx_config_addr(bus_num, devfn, where); in ixp4xx_pci_read_config()
310 where, size, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn), addr, cmd); in ixp4xx_pci_read_config()
340 static int ixp4xx_pci_write_config(struct pci_bus *bus, unsigned int devfn, in ixp4xx_pci_write_config() argument
353 addr = ixp4xx_config_addr(bus_num, devfn, where); in ixp4xx_pci_write_config()
[all …]
/drivers/platform/x86/
A Dp2sb.c48 static void p2sb_get_devfn(unsigned int *devfn) in p2sb_get_devfn() argument
57 *devfn = fn; in p2sb_get_devfn()
89 pdev = pci_scan_single_device(bus, devfn); in p2sb_scan_and_cache_devfn()
105 pci_bus_write_config_dword(bus, devfn, P2SBC, 0); in p2sb_scan_and_cache()
108 p2sb_scan_and_cache_devfn(bus, devfn); in p2sb_scan_and_cache()
111 if (devfn == P2SB_DEVFN_GOLDMONT) in p2sb_scan_and_cache()
201 pdev = pci_get_slot(bus, devfn); in p2sb_read_from_dev()
235 if (!devfn) in p2sb_bar()
236 p2sb_get_devfn(&devfn); in p2sb_bar()
239 return p2sb_read_from_cache(bus, devfn, mem); in p2sb_bar()
[all …]
/drivers/xen/
A Dpci.c63 add->devfn = pci_dev->devfn; in xen_add_device()
73 add->physfn.devfn = physfn->devfn; in xen_add_device()
76 if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) in xen_add_device()
127 .devfn = pci_dev->devfn, in xen_add_device()
130 .physfn.devfn = physfn->devfn, in xen_add_device()
137 else if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) { in xen_add_device()
140 .devfn = pci_dev->devfn, in xen_add_device()
149 .devfn = pci_dev->devfn, in xen_add_device()
178 .devfn = pci_dev->devfn in xen_remove_device()
188 .devfn = pci_dev->devfn in xen_remove_device()
[all …]
/drivers/pci/pcie/
A Daer_inject.c51 unsigned int devfn; member
78 unsigned int bus, unsigned int devfn, in aer_error_init() argument
84 err->devfn = devfn; in aer_error_init()
90 unsigned int devfn) in __find_aer_error() argument
97 devfn == err->devfn) in __find_aer_error()
193 rv = ops->read(bus, devfn, where, size, val); in aer_inj_read()
211 rv = ops->write(bus, devfn, where, size, val); in aer_inj_write()
243 rv = aer_inj_read(bus, devfn, where, size, val); in aer_inj_read_config()
278 rv = aer_inj_write(bus, devfn, where, size, val); in aer_inj_write_config()
423 rpdev->bus->number, rpdev->devfn, in aer_inject()
[all …]
A Dpme.c102 static bool pcie_pme_from_pci_bridge(struct pci_bus *bus, u8 devfn) in pcie_pme_from_pci_bridge() argument
107 if (devfn) in pcie_pme_from_pci_bridge()
132 u8 busnr = req_id >> 8, devfn = req_id & 0xff; in pcie_pme_handle_request() local
138 if (port->devfn == devfn && port->bus->number == busnr) { in pcie_pme_handle_request()
167 found = pcie_pme_from_pci_bridge(bus, devfn); in pcie_pme_handle_request()
175 if (dev->devfn == devfn) { in pcie_pme_handle_request()
194 } else if (devfn) { in pcie_pme_handle_request()
201 busnr, PCI_SLOT(devfn), PCI_FUNC(devfn)); in pcie_pme_handle_request()
/drivers/usb/cdns3/
A Dcdns3-pci-wrap.c20 int devfn; member
54 if (func->devfn == pdev->devfn) { in cdns3_get_second_fun()
60 if (func->devfn != PCI_DEV_FN_HOST_DEVICE && in cdns3_get_second_fun()
61 func->devfn != PCI_DEV_FN_OTG) { in cdns3_get_second_fun()
81 if (!id || (pdev->devfn != PCI_DEV_FN_HOST_DEVICE && in cdns3_pci_probe()
82 pdev->devfn != PCI_DEV_FN_OTG)) in cdns3_pci_probe()
109 if (pdev->devfn == PCI_DEV_FN_HOST_DEVICE) { in cdns3_pci_probe()
155 plat_info.id = pdev->devfn; in cdns3_pci_probe()
156 wrap->devfn = pdev->devfn; in cdns3_pci_probe()
182 if (wrap->devfn == pdev->devfn) in cdns3_pci_remove()
/drivers/pci/
A Daccess.c37 (struct pci_bus *bus, unsigned int devfn, int pos, type *value) \
47 res = bus->ops->read(bus, devfn, pos, len, &data); \
59 (struct pci_bus *bus, unsigned int devfn, int pos, type value) \
68 res = bus->ops->write(bus, devfn, pos, len, value); \
93 addr = bus->ops->map_bus(bus, devfn, where); in pci_generic_config_read()
113 addr = bus->ops->map_bus(bus, devfn, where); in pci_generic_config_write()
133 addr = bus->ops->map_bus(bus, devfn, where & ~0x3); in pci_generic_config_read32()
152 addr = bus->ops->map_bus(bus, devfn, where & ~0x3); in pci_generic_config_write32()
173 PCI_SLOT(devfn), PCI_FUNC(devfn), where); in pci_generic_config_write32()
240 ret = dev->bus->ops->read(dev->bus, dev->devfn, \
[all …]
A Dxen-pcifront.c183 .devfn = devfn, in pcifront_bus_read()
219 .devfn = devfn, in pcifront_bus_write()
230 PCI_SLOT(devfn), PCI_FUNC(devfn), where, size, val); in pcifront_bus_write()
250 .devfn = dev->devfn, in pci_frontend_enable_msix()
303 .devfn = dev->devfn, in pci_frontend_disable_msix()
322 .devfn = dev->devfn, in pci_frontend_enable_msi()
351 .devfn = dev->devfn, in pci_frontend_disable_msi()
419 for (devfn = 0; devfn < 0x100; devfn++) { in pcifront_scan_bus()
431 PCI_SLOT(devfn), PCI_FUNC(devfn)); in pcifront_scan_bus()
580 int devfn = pdev->sh_info->aer_op.devfn; in pcifront_common_process() local
[all …]
A Dsearch.c50 unsigned int devfn; in pci_for_each_dma_alias() local
52 for_each_set_bit(devfn, pdev->dma_alias_mask, MAX_NR_DEVFNS) { in pci_for_each_dma_alias()
53 ret = fn(pdev, PCI_DEVID(pdev->bus->number, devfn), in pci_for_each_dma_alias()
194 struct pci_dev *pci_get_slot(struct pci_bus *bus, unsigned int devfn) in pci_get_slot() argument
201 if (dev->devfn == devfn) in pci_get_slot()
229 unsigned int devfn) in pci_get_domain_bus_and_slot() argument
235 (dev->bus->number == bus && dev->devfn == devfn)) in pci_get_domain_bus_and_slot()
/drivers/pci/controller/dwc/
A Dpcie-hisi.c26 static int hisi_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, in hisi_pcie_rd_conf() argument
30 int dev = PCI_SLOT(devfn); in hisi_pcie_rd_conf()
37 return pci_generic_config_read32(bus, devfn, where, in hisi_pcie_rd_conf()
41 return pci_generic_config_read(bus, devfn, where, size, val); in hisi_pcie_rd_conf()
44 static int hisi_pcie_wr_conf(struct pci_bus *bus, u32 devfn, in hisi_pcie_wr_conf() argument
48 int dev = PCI_SLOT(devfn); in hisi_pcie_wr_conf()
55 return pci_generic_config_write32(bus, devfn, where, in hisi_pcie_wr_conf()
59 return pci_generic_config_write(bus, devfn, where, size, val); in hisi_pcie_wr_conf()
62 static void __iomem *hisi_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, in hisi_pcie_map_bus() argument
71 return pci_ecam_map_bus(bus, devfn, where); in hisi_pcie_map_bus()
/drivers/xen/xen-pciback/
A Dvpci.c34 unsigned int devfn) in __xen_pcibk_get_pci_dev() argument
43 if (PCI_SLOT(devfn) < PCI_SLOT_MAX) { in __xen_pcibk_get_pci_dev()
47 &vpci_dev->dev_list[PCI_SLOT(devfn)], in __xen_pcibk_get_pci_dev()
49 if (PCI_FUNC(entry->dev->devfn) == PCI_FUNC(devfn)) { in __xen_pcibk_get_pci_dev()
63 && l->bus == r->bus && PCI_SLOT(l->devfn) == PCI_SLOT(r->devfn)) in match_slot()
73 int err = 0, slot, func = PCI_FUNC(dev->devfn); in __xen_pcibk_add_pci_dev()
109 if (t->dev->is_virtfn && !PCI_FUNC(t->dev->devfn)) in __xen_pcibk_add_pci_dev()
235 unsigned int *devfn) in __xen_pcibk_get_pcifront_dev() argument
250 *devfn = PCI_DEVFN(slot, in __xen_pcibk_get_pcifront_dev()
251 PCI_FUNC(pcidev->devfn)); in __xen_pcibk_get_pcifront_dev()
A Dpassthrough.c23 unsigned int devfn) in __xen_pcibk_get_pci_dev() argument
34 && devfn == dev_entry->dev->devfn) { in __xen_pcibk_get_pci_dev()
51 unsigned int domain, bus, devfn; in __xen_pcibk_add_pci_dev() local
66 devfn = dev->devfn; in __xen_pcibk_add_pci_dev()
67 err = publish_cb(pdev, domain, bus, devfn, devid); in __xen_pcibk_add_pci_dev()
180 unsigned int *devfn) in __xen_pcibk_get_pcifront_dev() argument
184 *devfn = pcidev->devfn; in __xen_pcibk_get_pcifront_dev()
A Dpci_stub.c47 unsigned int devfn; member
140 .devfn = dev->devfn in pcistub_device_release()
345 && dev->devfn == pdev_id->devfn) in pcistub_match_one()
432 .devfn = dev->devfn in pcistub_init_device()
540 pci_dev_id->devfn == devfn) { in pcistub_device_id_add_list()
549 new->devfn = devfn; in pcistub_device_id_add_list()
826 PCI_SLOT(dev->devfn), in xen_pcibk_slot_reset()
827 PCI_FUNC(dev->devfn)); in xen_pcibk_slot_reset()
883 PCI_SLOT(dev->devfn), in xen_pcibk_mmio_enabled()
940 PCI_SLOT(dev->devfn), in xen_pcibk_error_detected()
[all …]
A Dpciback.h94 unsigned int devfn, unsigned int devid);
108 unsigned int *devfn);
116 unsigned int devfn);
142 unsigned int bus, unsigned int devfn) in xen_pcibk_get_pci_dev() argument
145 return xen_pcibk_backend->get(pdev, domain, bus, devfn); in xen_pcibk_get_pci_dev()
159 unsigned int *devfn) in xen_pcibk_get_pcifront_dev() argument
163 devfn); in xen_pcibk_get_pcifront_dev()
/drivers/gpu/drm/i915/
A Dvlv_iosf_sb.c85 u32 devfn, u32 port, u32 opcode, in vlv_sideband_rw() argument
110 (devfn << IOSF_DEVFN_SHIFT) | in vlv_sideband_rw()
180 u32 devfn, port, opcode, val = 0; in vlv_iosf_sb_read() local
182 devfn = unit_to_devfn(unit); in vlv_iosf_sb_read()
191 vlv_sideband_rw(i915, devfn, port, opcode, addr, &val); in vlv_iosf_sb_read()
199 u32 devfn, port, opcode; in vlv_iosf_sb_write() local
201 devfn = unit_to_devfn(unit); in vlv_iosf_sb_write()
210 return vlv_sideband_rw(i915, devfn, port, opcode, addr, &val); in vlv_iosf_sb_write()
/drivers/firmware/efi/
A Ddev-path-parser.c52 unsigned int devfn = *(const unsigned int *)data; in match_pci_dev() local
54 return dev_is_pci(dev) && to_pci_dev(dev)->devfn == devfn; in match_pci_dev()
60 unsigned int devfn; in parse_pci_path() local
67 devfn = PCI_DEVFN(node->pci.dev, node->pci.fn); in parse_pci_path()
69 *child = device_find_child(parent, &devfn, match_pci_dev); in parse_pci_path()
/drivers/iommu/intel/
A Ddebugfs.c23 u16 devfn; member
164 tbl_wlk->bus, PCI_SLOT(tbl_wlk->devfn), in print_tbl_walk()
165 PCI_FUNC(tbl_wlk->devfn), tbl_wlk->rt_entry->hi, in print_tbl_walk()
220 u16 devfn, pasid_dir_size; in ctx_tbl_walk() local
223 for (devfn = 0; devfn < 256; devfn++) { in ctx_tbl_walk()
239 context = iommu_context_addr(iommu, bus, devfn, 0); in ctx_tbl_walk()
247 tbl_wlk.devfn = devfn; in ctx_tbl_walk()
354 u16 devfn, bus, seg; in domain_translation_struct_show() local
357 devfn = info->devfn; in domain_translation_struct_show()
391 context = iommu_context_addr(iommu, bus, devfn, 0); in domain_translation_struct_show()
[all …]

Completed in 53 milliseconds

12345678910>>...14