Home
last modified time | relevance | path

Searched refs:PCI_FUNC (Results 1 – 25 of 175) sorted by relevance

1234567

/linux/drivers/xen/xen-pciback/
H A Dvpci.c49 if (PCI_FUNC(entry->dev->devfn) == PCI_FUNC(devfn)) { in __xen_pcibk_get_pci_dev()
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()
251 PCI_FUNC(pcidev->devfn)); in __xen_pcibk_get_pcifront_dev()
H A Dpci_stub.c186 && func == PCI_FUNC(psdev->dev->devfn)) { in pcistub_device_find_locked()
236 int func = PCI_FUNC(sbdf); in pcistub_get_gsi_from_sbdf()
847 PCI_FUNC(dev->devfn)); in xen_pcibk_slot_reset()
904 PCI_FUNC(dev->devfn)); in xen_pcibk_mmio_enabled()
961 PCI_FUNC(dev->devfn)); in xen_pcibk_error_detected()
1014 PCI_FUNC(dev->devfn)); in xen_pcibk_error_resume()
1149 || PCI_FUNC(devfn) != func) in pcistub_device_id_add()
1175 && (func < 0 || PCI_FUNC(pci_dev_id->devfn) == func)) { in pcistub_device_id_remove()
1288 PCI_FUNC(pci_dev_id->devfn)); in slots_show()
1402 PCI_FUNC(quirk->pdev->devfn), in quirks_show()
/linux/arch/arm/plat-orion/
H A Dpcie.c213 PCIE_CONF_FUNC(PCI_FUNC(devfn)) | in orion_pcie_rd_conf()
232 PCIE_CONF_FUNC(PCI_FUNC(devfn)) | in orion_pcie_rd_conf_tlp()
239 PCI_FUNC(devfn) != 0) in orion_pcie_rd_conf_tlp()
255 PCIE_CONF_FUNC(PCI_FUNC(devfn)) | in orion_pcie_rd_conf_wa()
273 PCIE_CONF_FUNC(PCI_FUNC(devfn)) | in orion_pcie_wr_conf()
/linux/arch/powerpc/platforms/powernv/
H A Docxl.c195 link->fn_desired_actags[PCI_FUNC(dev->devfn)] = 0; in pnv_ocxl_fixup_actag()
204 link->fn_desired_actags[PCI_FUNC(dev->devfn)] += actag; in pnv_ocxl_fixup_actag()
207 link->fn_desired_actags[PCI_FUNC(dev->devfn)]); in pnv_ocxl_fixup_actag()
273 *base = link->fn_actags[PCI_FUNC(dev->devfn)].start; in pnv_ocxl_get_actag()
274 *enabled = link->fn_actags[PCI_FUNC(dev->devfn)].count; in pnv_ocxl_get_actag()
275 *supported = link->fn_desired_actags[PCI_FUNC(dev->devfn)]; in pnv_ocxl_get_actag()
306 if (link->fn_desired_actags[i] && (i == PCI_FUNC(dev->devfn))) { in pnv_ocxl_get_pasid_count()
/linux/drivers/platform/x86/
H A Dp2sb.c86 struct p2sb_res_cache *cache = &p2sb_resources[PCI_FUNC(devfn)]; in p2sb_scan_and_cache_devfn()
116 if (!p2sb_valid_resource(&p2sb_resources[PCI_FUNC(devfn)].res)) in p2sb_scan_and_cache()
182 struct p2sb_res_cache *cache = &p2sb_resources[PCI_FUNC(devfn)]; in p2sb_read_from_cache()
/linux/arch/xtensa/lib/
H A Dpci-auto.c255 if (PCI_FUNC(pci_devfn) && !found_multi) in pciauto_bus_scan()
265 if (!PCI_FUNC(pci_devfn)) in pciauto_bus_scan()
312 current_bus, PCI_SLOT(pci_devfn), PCI_FUNC(pci_devfn)); in pciauto_bus_scan()
/linux/drivers/pci/controller/
H A Dpci-ftpci100.c186 PCI_FUNC(fn), config), in faraday_raw_pci_read_config()
206 PCI_SLOT(fn), PCI_FUNC(fn), config, size, *value); in faraday_pci_read_config()
218 PCI_FUNC(fn), config), in faraday_raw_pci_write_config()
245 PCI_SLOT(fn), PCI_FUNC(fn), config, size, value); in faraday_pci_write_config()
H A Dpci-ixp4xx.c191 return (PCI_CONF1_ADDRESS(0, 0, PCI_FUNC(devfn), where) & in ixp4xx_config_addr()
196 PCI_FUNC(devfn), where) & in ixp4xx_config_addr()
310 where, size, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn), addr, cmd); in ixp4xx_pci_read_config()
358 value, where, size, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn), addr, cmd); in ixp4xx_pci_write_config()
/linux/drivers/ata/
H A Data_generic.c186 (!(PCI_FUNC(dev->devfn) & 1))) in ata_generic_init_one()
191 (!(PCI_FUNC(dev->devfn) & 1))) in ata_generic_init_one()
/linux/include/uapi/linux/
H A Dpci.h33 #define PCI_FUNC(devfn) ((devfn) & 0x07) macro
/linux/drivers/infiniband/hw/irdma/
H A Di40iw_if.c63 pr_debug("INIT: Gen1 PF[%d] close complete\n", PCI_FUNC(cdev_info->pcidev->devfn)); in i40iw_close()
155 PCI_FUNC(rf->pcidev->devfn)); in i40iw_open()
/linux/arch/mips/pci/
H A Dpci-rt2880.c68 PCI_FUNC(devfn), where); in rt2880_pci_config_read()
95 PCI_FUNC(devfn), where); in rt2880_pci_config_write()
H A Dpci-mt7620.c141 u8 func = PCI_FUNC(devfn); in pci_config_read()
173 u8 func = PCI_FUNC(devfn); in pci_config_write()
/linux/arch/x86/pci/
H A Ddirect.c108 fn = PCI_FUNC(devfn); in pci_conf2_read()
148 fn = PCI_FUNC(devfn); in pci_conf2_write()
/linux/arch/arm/mach-footbridge/
H A Debsa285-pci.c23 switch (PCI_FUNC(dev->devfn)) { in ebsa285_map_irq()
/linux/drivers/gpu/drm/
H A Ddrm_pci.c61 PCI_FUNC(pdev->devfn)); in drm_pci_set_busid()
/linux/drivers/misc/ocxl/
H A Dconfig.c105 if (!pos && PCI_FUNC(dev->devfn) == 0) { in read_dvsec_tl()
109 if (pos && PCI_FUNC(dev->devfn) != 0) { in read_dvsec_tl()
175 if (PCI_FUNC(dev->devfn) != 0) in read_dvsec_vendor()
213 if (PCI_FUNC(dev->devfn) != 0) { in get_dvsec_vendor0()
800 if (PCI_FUNC(dev->devfn) != 0) in ocxl_config_set_TL()
/linux/drivers/pcmcia/
H A Dti113x.h240 if(PCI_FUNC(socket->dev->devfn)==1) in ti1250_zoom_video()
789 if ((PCI_FUNC(socket->dev->devfn) == 0) || in ti12xx_power_hook()
848 if (disable_clkrun && PCI_FUNC(socket->dev->devfn) == 0) { in ti12xx_override()
871 if (PCI_FUNC(socket->dev->devfn) == 0) in ti12xx_override()
/linux/arch/arm/mach-orion5x/
H A Dpci.c328 if (PCI_SLOT(devfn) == 0 && PCI_FUNC(devfn) != 0) in orion5x_pci_valid_config()
351 PCI_FUNC(devfn), where, size, val); in orion5x_pci_rd_conf()
361 PCI_FUNC(devfn), where, size, val); in orion5x_pci_wr_conf()
/linux/arch/powerpc/platforms/
H A Dfsl_uli1575.c351 if ((PCI_SLOT(devfn) == 29) && (PCI_FUNC(devfn) == 1)) in uli_exclude_device()
355 if ((PCI_SLOT(devfn) == 29) && (PCI_FUNC(devfn) == 2)) in uli_exclude_device()
/linux/arch/powerpc/platforms/pasemi/
H A Dmisc.c80 i2c_register_board_info(PCI_FUNC(pdev->devfn), &info, in pasemi_register_i2c_devices()
/linux/drivers/ssb/
H A Ddriver_gige.c116 if ((PCI_SLOT(devfn) > 0) || (PCI_FUNC(devfn) > 0)) in ssb_gige_pci_read_config()
146 if ((PCI_SLOT(devfn) > 0) || (PCI_FUNC(devfn) > 0)) in ssb_gige_pci_write_config()
/linux/drivers/iommu/intel/
H A Ddebugfs.c165 PCI_FUNC(tbl_wlk->devfn), tbl_wlk->rt_entry->hi, in print_tbl_walk()
443 iommu->segment, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); in domain_translation_struct_show()
560 PCI_SLOT(ri_entry->sid), PCI_FUNC(ri_entry->sid), in ir_tbl_remap_entry_show()
584 PCI_SLOT(pi_entry->sid), PCI_FUNC(pi_entry->sid), in ir_tbl_posted_entry_show()
/linux/drivers/scsi/snic/
H A Dsnic_main.c361 PCI_FUNC(pdev->devfn)); in snic_probe()
382 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); in snic_probe()
732 PCI_FUNC(pdev->devfn)); in snic_probe()
751 PCI_FUNC(pdev->devfn)); in snic_remove()
/linux/drivers/i2c/busses/
H A Di2c-designware-pcidrv.c134 c->bus_num = PCI_FUNC(pdev->devfn) + 0 + 1; in mrfld_setup()
137 c->bus_num = PCI_FUNC(pdev->devfn) + 4 + 1; in mrfld_setup()

1234567