Home
last modified time | relevance | path

Searched refs:pci_dev (Results 1 – 25 of 2295) sorted by relevance

12345678910>>...92

/openbmc/linux/drivers/pci/
H A Dpci.h33 void pci_cleanup_rom(struct pci_dev *dev);
77 int pci_power_up(struct pci_dev *dev);
88 void pci_dev_complete_resume(struct pci_dev *pci_dev);
91 void pci_pm_init(struct pci_dev *dev);
92 void pci_ea_init(struct pci_dev *dev);
93 void pci_msi_init(struct pci_dev *dev);
106 static inline bool pci_has_subordinate(struct pci_dev *pci_dev) in pci_has_subordinate() argument
108 return !!(pci_dev->subordinate); in pci_has_subordinate()
111 static inline bool pci_power_manageable(struct pci_dev *pci_dev) in pci_power_manageable() argument
117 return !pci_has_subordinate(pci_dev) || pci_dev->bridge_d3; in pci_power_manageable()
[all …]
H A Dpci-driver.c308 struct pci_dev *pci_dev = ddi->dev; in local_pci_probe() local
447 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_device_probe() local
471 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_device_remove() local
514 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_device_shutdown() local
644 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_legacy_suspend() local
671 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_legacy_suspend_late() local
685 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_legacy_resume() local
714 pci_dev->vendor, pci_dev->device); in pci_has_legacy_pm_support()
723 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_pm_prepare() local
747 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_pm_complete() local
[all …]
/openbmc/linux/include/linux/
H A Dpci.h322 struct pci_dev { struct
534 static inline struct pci_dev *pci_physfn(struct pci_dev *dev) in pci_physfn() argument
720 static inline struct pci_dev *pci_upstream_bridge(struct pci_dev *dev) in pci_upstream_bridge()
730 static inline bool pci_dev_msi_enabled(struct pci_dev *pci_dev) in pci_dev_msi_enabled() argument
732 return pci_dev->msi_enabled || pci_dev->msix_enabled; in pci_dev_msi_enabled()
1145 int pci_get_interrupt_pin(struct pci_dev *dev, struct pci_dev **bridge);
1147 struct pci_dev *pci_dev_get(struct pci_dev *dev);
1184 struct pci_dev *pci_get_class(unsigned int class, struct pci_dev *from);
1373 struct pci_dev *pci_real_dma_dev(struct pci_dev *dev);
2454 static inline struct pci_dev *pcie_find_root_port(struct pci_dev *dev) in pcie_find_root_port()
[all …]
H A Dpci-ats.h9 bool pci_ats_supported(struct pci_dev *dev);
10 int pci_enable_ats(struct pci_dev *dev, int ps);
11 void pci_disable_ats(struct pci_dev *dev);
12 int pci_ats_queue_depth(struct pci_dev *dev);
13 int pci_ats_page_aligned(struct pci_dev *dev);
28 void pci_disable_pri(struct pci_dev *pdev);
29 int pci_reset_pri(struct pci_dev *pdev);
31 bool pci_pri_supported(struct pci_dev *pdev);
39 void pci_disable_pasid(struct pci_dev *pdev);
40 int pci_pasid_features(struct pci_dev *pdev);
[all …]
H A Dpci-p2pdma.h24 bool pci_has_p2pmem(struct pci_dev *pdev);
26 void *pci_alloc_p2pmem(struct pci_dev *pdev, size_t size);
27 void pci_free_p2pmem(struct pci_dev *pdev, void *addr, size_t size);
29 struct scatterlist *pci_p2pmem_alloc_sgl(struct pci_dev *pdev,
32 void pci_p2pmem_publish(struct pci_dev *pdev, bool publish);
35 ssize_t pci_p2pdma_enable_show(char *page, struct pci_dev *p2p_dev,
48 static inline bool pci_has_p2pmem(struct pci_dev *pdev) in pci_has_p2pmem()
75 static inline void pci_p2pmem_free_sgl(struct pci_dev *pdev, in pci_p2pmem_free_sgl()
83 struct pci_dev **p2p_dev, bool *use_p2pdma) in pci_p2pdma_enable_store()
89 struct pci_dev *p2p_dev, bool use_p2pdma) in pci_p2pdma_enable_show()
[all …]
H A Dvgaarb.h17 struct pci_dev;
31 void vga_put(struct pci_dev *pdev, unsigned int rsrc);
32 struct pci_dev *vga_default_device(void);
33 void vga_set_default_device(struct pci_dev *pdev);
34 int vga_remove_vgacon(struct pci_dev *pdev);
35 int vga_client_register(struct pci_dev *pdev,
50 static inline struct pci_dev *vga_default_device(void) in vga_default_device()
54 static inline void vga_set_default_device(struct pci_dev *pdev) in vga_set_default_device()
57 static inline int vga_remove_vgacon(struct pci_dev *pdev) in vga_remove_vgacon()
61 static inline int vga_client_register(struct pci_dev *pdev, in vga_client_register()
[all …]
H A Dvga_switcheroo.h36 struct pci_dev;
145 void (*reprobe)(struct pci_dev *dev);
146 bool (*can_switch)(struct pci_dev *dev);
151 void vga_switcheroo_unregister_client(struct pci_dev *dev);
152 int vga_switcheroo_register_client(struct pci_dev *dev,
157 struct pci_dev *vga_dev);
159 void vga_switcheroo_client_fb_set(struct pci_dev *dev,
166 int vga_switcheroo_lock_ddc(struct pci_dev *pdev);
167 int vga_switcheroo_unlock_ddc(struct pci_dev *pdev);
171 bool vga_switcheroo_client_probe_defer(struct pci_dev *pdev);
[all …]
/openbmc/linux/drivers/misc/genwqe/
H A Dcard_base.c197 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_bus_reset() local
266 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_tweak_hardware() local
359 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_setup_vf_jtimer() local
430 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_read_ids() local
477 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_start() local
610 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_recover_card() local
661 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_fir_checking() local
826 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_platform_recovery() local
869 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_reload_bistream() local
935 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_health_thread() local
[all …]
/openbmc/linux/drivers/i2c/busses/
H A Di2c-amd-mp2-pci.c113 struct pci_dev *pdev = privdata->pci_dev; in amd_mp2_pci_check_rw_event()
137 struct pci_dev *pdev = privdata->pci_dev; in __amd_mp2_process_event()
186 struct pci_dev *pdev = privdata->pci_dev; in amd_mp2_process_event()
204 struct pci_dev *pdev = privdata->pci_dev; in amd_mp2_irq_isr()
251 struct pci_dev *pdev = privdata->pci_dev; in amd_mp2_register_cb()
289 struct pci_dev *pci_dev) in amd_mp2_pci_init() argument
323 if (!pci_dev->msix_enabled && !pci_dev->msi_enabled) in amd_mp2_pci_init()
354 privdata->pci_dev = pci_dev; in amd_mp2_pci_probe()
388 struct pci_dev *pci_dev = to_pci_dev(dev); in amd_mp2_pci_suspend() local
412 struct pci_dev *pci_dev = to_pci_dev(dev); in amd_mp2_pci_resume() local
[all …]
/openbmc/linux/drivers/media/pci/netup_unidvb/
H A Dnetup_unidvb_core.c249 struct pci_dev *pci_dev = (struct pci_dev *)dev_id; in netup_unidvb_isr() local
279 dev_err(&pci_dev->dev, in netup_unidvb_isr()
721 struct pci_dev *pci_dev) in netup_unidvb_ci_setup() argument
735 static int netup_unidvb_request_mmio(struct pci_dev *pci_dev) in netup_unidvb_request_mmio() argument
739 dev_err(&pci_dev->dev, in netup_unidvb_request_mmio()
777 static int netup_unidvb_initdev(struct pci_dev *pci_dev, in netup_unidvb_initdev() argument
822 ndev->pci_dev = pci_dev; in netup_unidvb_initdev()
889 pci_dev->irq); in netup_unidvb_initdev()
973 dev_err(&pci_dev->dev, in netup_unidvb_initdev()
978 static void netup_unidvb_finidev(struct pci_dev *pci_dev) in netup_unidvb_finidev() argument
[all …]
/openbmc/linux/drivers/xen/
H A Dpci.c30 struct pci_dev *pci_dev = to_pci_dev(dev); in xen_add_device() local
32 struct pci_dev *physfn = pci_dev->physfn; in xen_add_device()
62 if (pci_dev->is_virtfn) { in xen_add_device()
68 if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) in xen_add_device()
119 .devfn = pci_dev->devfn, in xen_add_device()
129 else if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) { in xen_add_device()
141 .devfn = pci_dev->devfn, in xen_add_device()
154 struct pci_dev *pci_dev = to_pci_dev(dev); in xen_remove_device() local
160 .devfn = pci_dev->devfn in xen_remove_device()
170 .devfn = pci_dev->devfn in xen_remove_device()
[all …]
/openbmc/qemu/hw/pci/
H A Dpci_host.c72 return pci_dev && pci_dev->partially_hotplugged && in is_pci_dev_ejected()
88 if ((pci_dev->qdev.hotplugged && !pci_get_function_0(pci_dev)) || in pci_host_config_write_common()
89 !pci_dev->has_power || is_pci_dev_ejected(pci_dev)) { in pci_host_config_write_common()
93 trace_pci_cfg_write(pci_dev->name, pci_dev_bus_num(pci_dev), in pci_host_config_write_common()
96 pci_dev->config_write(pci_dev, addr, val, MIN(len, limit - addr)); in pci_host_config_write_common()
113 if ((pci_dev->qdev.hotplugged && !pci_get_function_0(pci_dev)) || in pci_host_config_read_common()
114 !pci_dev->has_power || is_pci_dev_ejected(pci_dev)) { in pci_host_config_read_common()
118 ret = pci_dev->config_read(pci_dev, addr, MIN(len, limit - addr)); in pci_host_config_read_common()
119 trace_pci_cfg_read(pci_dev->name, pci_dev_bus_num(pci_dev), in pci_host_config_read_common()
131 if (!pci_dev) { in pci_data_write()
[all …]
/openbmc/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00pci.c41 struct pci_dev *pci_dev = to_pci_dev(rt2x00dev->dev); in rt2x00pci_alloc_reg() local
65 int rt2x00pci_probe(struct pci_dev *pci_dev, const struct rt2x00_ops *ops) in rt2x00pci_probe() argument
78 retval = pci_request_regions(pci_dev, pci_name(pci_dev)); in rt2x00pci_probe()
84 pci_set_master(pci_dev); in rt2x00pci_probe()
86 if (pci_set_mwi(pci_dev)) in rt2x00pci_probe()
102 pci_set_drvdata(pci_dev, hw); in rt2x00pci_probe()
111 if (pci_is_pcie(pci_dev)) in rt2x00pci_probe()
141 pci_clear_mwi(pci_dev); in rt2x00pci_probe()
145 pci_disable_device(pci_dev); in rt2x00pci_probe()
151 void rt2x00pci_remove(struct pci_dev *pci_dev) in rt2x00pci_remove() argument
[all …]
/openbmc/linux/drivers/xen/xen-pciback/
H A Dconf_space.h15 typedef void *(*conf_field_init) (struct pci_dev *dev, int offset);
19 typedef int (*conf_dword_write) (struct pci_dev *dev, int offset, u32 value,
21 typedef int (*conf_word_write) (struct pci_dev *dev, int offset, u16 value,
23 typedef int (*conf_byte_write) (struct pci_dev *dev, int offset, u8 value,
29 typedef int (*conf_byte_read) (struct pci_dev *dev, int offset, u8 *value,
80 int xen_pcibk_config_add_field_offset(struct pci_dev *dev,
84 static inline int xen_pcibk_config_add_field(struct pci_dev *dev, in xen_pcibk_config_add_field()
90 static inline int xen_pcibk_config_add_fields(struct pci_dev *dev, in xen_pcibk_config_add_fields()
131 int xen_pcibk_config_header_add_fields(struct pci_dev *dev);
132 int xen_pcibk_config_capability_add_fields(struct pci_dev *dev);
[all …]
H A Dpciback.h24 struct pci_dev *dev;
71 struct pci_dev *dev);
72 void pcistub_put_pci_dev(struct pci_dev *dev);
80 void xen_pcibk_reset_device(struct pci_dev *pdev);
84 int xen_pcibk_config_init_dev(struct pci_dev *dev);
86 void xen_pcibk_config_reset_dev(struct pci_dev *dev);
87 void xen_pcibk_config_free_dev(struct pci_dev *dev);
116 struct pci_dev *(*get)(struct xen_pcibk_device *pdev,
126 struct pci_dev *dev, in xen_pcibk_add_pci_dev()
136 struct pci_dev *dev, bool lock) in xen_pcibk_release_pci_dev()
[all …]
/openbmc/linux/drivers/media/pci/cobalt/
H A Dcobalt-driver.c188 struct pci_dev *pci_dev = cobalt->pci_dev; in cobalt_pcie_status_show() local
189 struct pci_dev *pci_bus_dev = cobalt->pci_dev->bus->self; in cobalt_pcie_status_show()
237 struct pci_dev *pci_dev = cobalt->pci_dev; in pcie_link_get_lanes() local
248 struct pci_dev *pci_dev = cobalt->pci_dev->bus->self; in pcie_bus_link_get_lanes() local
257 static void msi_config_show(struct cobalt *cobalt, struct pci_dev *pci_dev) in msi_config_show() argument
279 static void cobalt_pci_iounmap(struct cobalt *cobalt, struct pci_dev *pci_dev) in cobalt_pci_iounmap() argument
291 static void cobalt_free_msi(struct cobalt *cobalt, struct pci_dev *pci_dev) in cobalt_free_msi() argument
297 static int cobalt_setup_pci(struct cobalt *cobalt, struct pci_dev *pci_dev, in cobalt_setup_pci() argument
656 static int cobalt_probe(struct pci_dev *pci_dev, in cobalt_probe() argument
669 cobalt->pci_dev = pci_dev; in cobalt_probe()
[all …]
/openbmc/linux/include/linux/ssb/
H A Dssb_driver_gige.h55 extern bool pdev_is_ssb_gige_core(struct pci_dev *pdev);
66 static inline bool ssb_gige_is_rgmii(struct pci_dev *pdev) in ssb_gige_is_rgmii()
73 static inline bool ssb_gige_have_roboswitch(struct pci_dev *pdev) in ssb_gige_have_roboswitch()
113 static inline int ssb_gige_get_phyaddr(struct pci_dev *pdev) in ssb_gige_get_phyaddr()
123 struct pci_dev *pdev);
125 const struct pci_dev *pdev);
143 struct pci_dev *pdev) in ssb_gige_pcibios_plat_dev_init()
148 const struct pci_dev *pdev) in ssb_gige_map_irq()
160 static inline bool pdev_is_ssb_gige_core(struct pci_dev *pdev) in pdev_is_ssb_gige_core()
168 static inline bool ssb_gige_is_rgmii(struct pci_dev *pdev) in ssb_gige_is_rgmii()
[all …]
/openbmc/linux/arch/x86/pci/
H A Dirq.c53 int (*get)(struct pci_dev *router, struct pci_dev *dev, int pirq);
54 int (*set)(struct pci_dev *router, struct pci_dev *dev, int pirq,
56 int (*lvl)(struct pci_dev *router, struct pci_dev *dev, int pirq,
349 static int pirq_finali_get(struct pci_dev *router, struct pci_dev *dev, in pirq_finali_get()
368 static int pirq_finali_set(struct pci_dev *router, struct pci_dev *dev, in pirq_finali_set()
390 static int pirq_finali_lvl(struct pci_dev *router, struct pci_dev *dev, in pirq_finali_lvl()
723 static int pirq_sis497_get(struct pci_dev *router, struct pci_dev *dev, in pirq_sis497_get()
737 static int pirq_sis497_set(struct pci_dev *router, struct pci_dev *dev, in pirq_sis497_set()
819 static int pirq_sis503_get(struct pci_dev *router, struct pci_dev *dev, in pirq_sis503_get()
832 static int pirq_sis503_set(struct pci_dev *router, struct pci_dev *dev, in pirq_sis503_set()
[all …]
/openbmc/linux/drivers/virtio/
H A Dvirtio_pci_legacy_dev.c18 struct pci_dev *pci_dev = ldev->pci_dev; in vp_legacy_probe() local
22 if (pci_dev->device < 0x1000 || pci_dev->device > 0x103f) in vp_legacy_probe()
25 if (pci_dev->revision != VIRTIO_PCI_ABI_VERSION) in vp_legacy_probe()
36 dma_set_coherent_mask(&pci_dev->dev, in vp_legacy_probe()
47 ldev->ioaddr = pci_iomap(pci_dev, 0, 0); in vp_legacy_probe()
55 ldev->id.vendor = pci_dev->subsystem_vendor; in vp_legacy_probe()
56 ldev->id.device = pci_dev->subsystem_device; in vp_legacy_probe()
60 pci_release_region(pci_dev, 0); in vp_legacy_probe()
71 struct pci_dev *pci_dev = ldev->pci_dev; in vp_legacy_remove() local
73 pci_iounmap(pci_dev, ldev->ioaddr); in vp_legacy_remove()
[all …]
/openbmc/linux/drivers/media/pci/tw68/
H A Dtw68-core.c211 static int tw68_initdev(struct pci_dev *pci_dev, in tw68_initdev() argument
230 dev->pci = pci_dev; in tw68_initdev()
231 if (pci_enable_device(pci_dev)) { in tw68_initdev()
248 dev->name, pci_name(pci_dev), dev->pci_rev, pci_dev->irq, in tw68_initdev()
250 pci_set_master(pci_dev); in tw68_initdev()
278 pci_resource_len(pci_dev, 0), in tw68_initdev()
300 err = devm_request_irq(&pci_dev->dev, pci_dev->irq, tw68_irq, in tw68_initdev()
304 dev->name, pci_dev->irq); in tw68_initdev()
340 static void tw68_finidev(struct pci_dev *pci_dev) in tw68_finidev() argument
364 struct pci_dev *pci_dev = to_pci_dev(dev_d); in tw68_suspend() local
[all …]
/openbmc/linux/drivers/pci/msi/
H A Dmsi.h8 int pci_msi_setup_msi_irqs(struct pci_dev *dev, int nvec, int type);
9 void pci_msi_teardown_msi_irqs(struct pci_dev *dev);
87 void msix_prepare_msi_desc(struct pci_dev *dev, struct msi_desc *desc);
93 void pci_msi_shutdown(struct pci_dev *dev);
94 void pci_msix_shutdown(struct pci_dev *dev);
95 void pci_free_msi_irqs(struct pci_dev *dev);
99 void __pci_restore_msi_state(struct pci_dev *dev);
100 void __pci_restore_msix_state(struct pci_dev *dev);
110 bool pci_setup_msi_device_domain(struct pci_dev *pdev);
117 void pci_msi_legacy_teardown_msi_irqs(struct pci_dev *dev);
[all …]
/openbmc/linux/drivers/usb/core/
H A Dhcd-pci.c48 struct pci_dev *companion; in for_each_companion()
380 static void powermac_set_asic(struct pci_dev *pci_dev, int enable) in powermac_set_asic() argument
395 static inline void powermac_set_asic(struct pci_dev *pci_dev, int enable) in powermac_set_asic() argument
420 struct pci_dev *pci_dev = to_pci_dev(dev); in suspend_common() local
472 pci_disable_device(pci_dev); in suspend_common()
478 struct pci_dev *pci_dev = to_pci_dev(dev); in resume_common() local
495 pci_set_master(pci_dev); in resume_common()
526 struct pci_dev *pci_dev = to_pci_dev(dev); in hcd_pci_suspend_noirq() local
534 pci_save_state(pci_dev); in hcd_pci_suspend_noirq()
559 powermac_set_asic(pci_dev, 0); in hcd_pci_suspend_noirq()
[all …]
/openbmc/linux/drivers/media/pci/tw686x/
H A Dtw686x-core.c181 dev_dbg(&dev->pci_dev->dev, in tw686x_irq()
240 static int tw686x_probe(struct pci_dev *pci_dev, in tw686x_probe() argument
268 pci_name(pci_dev), pci_dev->irq, in tw686x_probe()
272 dev->pci_dev = pci_dev; in tw686x_probe()
278 pci_set_master(pci_dev); in tw686x_probe()
352 pci_release_regions(pci_dev); in tw686x_probe()
354 pci_disable_device(pci_dev); in tw686x_probe()
364 static void tw686x_remove(struct pci_dev *pci_dev) in tw686x_remove() argument
372 free_irq(pci_dev->irq, dev); in tw686x_remove()
380 pci_disable_device(pci_dev); in tw686x_remove()
[all …]
/openbmc/linux/drivers/staging/media/ipu3/
H A Dipu3.c314 dev_err(&imgu->pci_dev->dev, in imgu_queue_buffers()
616 static int imgu_pci_probe(struct pci_dev *pci_dev, in imgu_pci_probe() argument
629 imgu->pci_dev = pci_dev; in imgu_pci_probe()
638 pci_dev->device, pci_dev->revision); in imgu_pci_probe()
643 r = pcim_iomap_regions(pci_dev, 1 << IMGU_PCI_BAR, pci_name(pci_dev)); in imgu_pci_probe()
661 pci_set_master(pci_dev); in imgu_pci_probe()
680 dev_err(&pci_dev->dev, in imgu_pci_probe()
694 dev_err(&pci_dev->dev, in imgu_pci_probe()
714 r = devm_request_threaded_irq(&pci_dev->dev, pci_dev->irq, in imgu_pci_probe()
744 static void imgu_pci_remove(struct pci_dev *pci_dev) in imgu_pci_remove() argument
[all …]
/openbmc/linux/include/asm-generic/
H A Dpci_iomap.h10 struct pci_dev;
13 extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max);
14 extern void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long max);
15 extern void __iomem *pci_iomap_range(struct pci_dev *dev, int bar,
18 extern void __iomem *pci_iomap_wc_range(struct pci_dev *dev, int bar,
21 extern void pci_iounmap(struct pci_dev *dev, void __iomem *);
26 extern void __iomem *__pci_ioport_map(struct pci_dev *dev, unsigned long port,
35 static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max) in pci_iomap()
44 static inline void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, in pci_iomap_range()
50 static inline void __iomem *pci_iomap_wc_range(struct pci_dev *dev, int bar, in pci_iomap_wc_range()
[all …]

12345678910>>...92