Home
last modified time | relevance | path

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

12345678910>>...80

/linux/drivers/pci/
A Dpci.h24 void pci_cleanup_rom(struct pci_dev *dev);
68 int pci_power_up(struct pci_dev *dev);
79 void pci_dev_complete_resume(struct pci_dev *pci_dev);
82 void pci_pm_init(struct pci_dev *dev);
83 void pci_ea_init(struct pci_dev *dev);
84 void pci_msi_init(struct pci_dev *dev);
97 static inline bool pci_has_subordinate(struct pci_dev *pci_dev) in pci_has_subordinate() argument
99 return !!(pci_dev->subordinate); in pci_has_subordinate()
102 static inline bool pci_power_manageable(struct pci_dev *pci_dev) in pci_power_manageable() argument
108 return !pci_has_subordinate(pci_dev) || pci_dev->bridge_d3; in pci_power_manageable()
[all …]
A Dpci-driver.c307 struct pci_dev *pci_dev = ddi->dev; in local_pci_probe() local
435 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_device_probe() local
459 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_device_remove() local
495 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_device_shutdown() local
591 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_legacy_suspend() local
618 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_legacy_suspend_late() local
632 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_legacy_resume() local
661 pci_dev->vendor, pci_dev->device); in pci_has_legacy_pm_support()
670 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_pm_prepare() local
694 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_pm_complete() local
[all …]
A Dpci.c60 struct pci_dev *dev;
1249 static int pci_resume_one(struct pci_dev *pci_dev, void *ign) in pci_resume_one() argument
2799 bool pci_dev_need_resume(struct pci_dev *pci_dev) in pci_dev_need_resume() argument
2830 void pci_dev_adjust_pme(struct pci_dev *pci_dev) in pci_dev_adjust_pme() argument
2851 void pci_dev_complete_resume(struct pci_dev *pci_dev) in pci_dev_complete_resume() argument
3366 static void pci_add_saved_cap(struct pci_dev *pci_dev, in pci_add_saved_cap() argument
3846 int pci_get_interrupt_pin(struct pci_dev *dev, struct pci_dev **bridge) in pci_get_interrupt_pin()
5496 struct pci_dev *dev; in pci_bus_resetable()
5514 struct pci_dev *dev; in pci_bus_lock()
5526 struct pci_dev *dev; in pci_bus_unlock()
[all …]
/linux/include/linux/
A Dpci.h312 struct pci_dev { struct
515 static inline struct pci_dev *pci_physfn(struct pci_dev *dev) in pci_physfn() argument
698 static inline struct pci_dev *pci_upstream_bridge(struct pci_dev *dev) in pci_upstream_bridge()
708 static inline bool pci_dev_msi_enabled(struct pci_dev *pci_dev) in pci_dev_msi_enabled() argument
710 return pci_dev->msi_enabled || pci_dev->msix_enabled; in pci_dev_msi_enabled()
1112 int pci_get_interrupt_pin(struct pci_dev *dev, struct pci_dev **bridge);
1114 struct pci_dev *pci_dev_get(struct pci_dev *dev);
1150 struct pci_dev *pci_get_class(unsigned int class, struct pci_dev *from);
1308 struct pci_dev *pci_real_dma_dev(struct pci_dev *dev);
2267 static inline struct pci_dev *pcie_find_root_port(struct pci_dev *dev) in pcie_find_root_port()
[all …]
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 …]
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 …]
A Dvgaarb.h36 struct pci_dev;
50 void vga_put(struct pci_dev *pdev, unsigned int rsrc);
51 struct pci_dev *vga_default_device(void);
52 void vga_set_default_device(struct pci_dev *pdev);
53 int vga_remove_vgacon(struct pci_dev *pdev);
54 int vga_client_register(struct pci_dev *pdev,
69 static inline struct pci_dev *vga_default_device(void) in vga_default_device()
76 static inline int vga_remove_vgacon(struct pci_dev *pdev) in vga_remove_vgacon()
80 static inline int vga_client_register(struct pci_dev *pdev, in vga_client_register()
96 static inline int vga_get_interruptible(struct pci_dev *pdev, in vga_get_interruptible()
[all …]
A Dpci-p2pdma.h20 int pci_p2pdma_add_resource(struct pci_dev *pdev, int bar, size_t size,
24 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);
52 static inline bool pci_has_p2pmem(struct pci_dev *pdev) in pci_has_p2pmem()
79 static inline void pci_p2pmem_free_sgl(struct pci_dev *pdev, in pci_p2pmem_free_sgl()
98 struct pci_dev **p2p_dev, bool *use_p2pdma) in pci_p2pdma_enable_store()
104 struct pci_dev *p2p_dev, bool use_p2pdma) in pci_p2pdma_enable_show()
[all …]
/linux/drivers/misc/genwqe/
A Dcard_base.c178 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_bus_reset() local
247 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_tweak_hardware() local
340 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_setup_vf_jtimer() local
411 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_read_ids() local
458 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_start() local
591 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_recover_card() local
642 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_fir_checking() local
807 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_platform_recovery() local
850 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_reload_bistream() local
916 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_health_thread() local
[all …]
A Dcard_ddcb.c168 struct pci_dev *pci_dev = cd->pci_dev; in print_ddcb_info() local
370 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_check_ddcb_queue() local
482 struct pci_dev *pci_dev = cd->pci_dev; in __genwqe_wait_ddcb() local
626 struct pci_dev *pci_dev = cd->pci_dev; in __genwqe_purge_ddcb() local
728 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_init_debug_data() local
760 struct pci_dev *pci_dev = cd->pci_dev; in __genwqe_enqueue_ddcb() local
916 struct pci_dev *pci_dev = cd->pci_dev; in __genwqe_execute_raw_ddcb() local
1027 struct pci_dev *pci_dev = cd->pci_dev; in setup_ddcb_queue() local
1124 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_pf_isr() local
1232 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_setup_service_layer() local
[all …]
/linux/drivers/i2c/busses/
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
335 static int amd_mp2_pci_probe(struct pci_dev *pci_dev, in amd_mp2_pci_probe() argument
345 privdata->pci_dev = pci_dev; in amd_mp2_pci_probe()
379 struct pci_dev *pci_dev = to_pci_dev(dev); in amd_mp2_pci_suspend() local
403 struct pci_dev *pci_dev = to_pci_dev(dev); in amd_mp2_pci_resume() local
[all …]
/linux/drivers/media/pci/netup_unidvb/
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
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()
954 free_irq(pci_dev->irq, pci_dev); in netup_unidvb_initdev()
972 dev_err(&pci_dev->dev, in netup_unidvb_initdev()
977 static void netup_unidvb_finidev(struct pci_dev *pci_dev) in netup_unidvb_finidev() argument
[all …]
/linux/drivers/media/pci/cobalt/
A Dcobalt-driver.c187 struct pci_dev *pci_dev = cobalt->pci_dev; in cobalt_pcie_status_show() local
188 struct pci_dev *pci_bus_dev = cobalt->pci_dev->bus->self; in cobalt_pcie_status_show()
236 struct pci_dev *pci_dev = cobalt->pci_dev; in pcie_link_get_lanes() local
247 struct pci_dev *pci_dev = cobalt->pci_dev->bus->self; in pcie_bus_link_get_lanes() local
256 static void msi_config_show(struct cobalt *cobalt, struct pci_dev *pci_dev) in msi_config_show() argument
278 static void cobalt_pci_iounmap(struct cobalt *cobalt, struct pci_dev *pci_dev) in cobalt_pci_iounmap() argument
290 static void cobalt_free_msi(struct cobalt *cobalt, struct pci_dev *pci_dev) in cobalt_free_msi() argument
296 static int cobalt_setup_pci(struct cobalt *cobalt, struct pci_dev *pci_dev, in cobalt_setup_pci() argument
655 static int cobalt_probe(struct pci_dev *pci_dev, in cobalt_probe() argument
668 cobalt->pci_dev = pci_dev; in cobalt_probe()
[all …]
/linux/drivers/xen/
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 …]
/linux/arch/x86/pci/
A Dirq.c51 int (*get)(struct pci_dev *router, struct pci_dev *dev, int pirq);
52 int (*set)(struct pci_dev *router, struct pci_dev *dev, int pirq,
54 int (*lvl)(struct pci_dev *router, struct pci_dev *dev, int pirq,
256 static int pirq_finali_get(struct pci_dev *router, struct pci_dev *dev, in pirq_finali_get()
273 static int pirq_finali_set(struct pci_dev *router, struct pci_dev *dev, in pirq_finali_set()
293 static int pirq_finali_lvl(struct pci_dev *router, struct pci_dev *dev, in pirq_finali_lvl()
340 static int pirq_ali_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_ali_get()
393 static int pirq_esc_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_esc_get()
465 static int pirq_ib_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_ib_get()
478 static int pirq_ib_set(struct pci_dev *router, struct pci_dev *dev, int pirq, in pirq_ib_set()
[all …]
/linux/drivers/net/wireless/ralink/rt2x00/
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 …]
/linux/drivers/xen/xen-pciback/
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 …]
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 …]
/linux/include/linux/ssb/
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 …]
/linux/drivers/staging/media/ipu3/
A Dipu3.c314 dev_err(&imgu->pci_dev->dev, in imgu_queue_buffers()
619 static int imgu_pci_probe(struct pci_dev *pci_dev, in imgu_pci_probe() argument
632 imgu->pci_dev = pci_dev; in imgu_pci_probe()
641 pci_dev->device, pci_dev->revision); in imgu_pci_probe()
646 r = pcim_iomap_regions(pci_dev, 1 << IMGU_PCI_BAR, pci_name(pci_dev)); in imgu_pci_probe()
664 pci_set_master(pci_dev); in imgu_pci_probe()
683 dev_err(&pci_dev->dev, in imgu_pci_probe()
697 dev_err(&pci_dev->dev, in imgu_pci_probe()
717 r = devm_request_threaded_irq(&pci_dev->dev, pci_dev->irq, in imgu_pci_probe()
747 static void imgu_pci_remove(struct pci_dev *pci_dev) in imgu_pci_remove() argument
[all …]
/linux/drivers/media/pci/tw68/
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 …]
/linux/drivers/media/pci/tw686x/
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()
347 free_irq(pci_dev->irq, dev); in tw686x_probe()
353 pci_disable_device(pci_dev); in tw686x_probe()
363 static void tw686x_remove(struct pci_dev *pci_dev) in tw686x_remove() argument
371 free_irq(pci_dev->irq, dev); in tw686x_remove()
379 pci_disable_device(pci_dev); in tw686x_remove()
[all …]
/linux/drivers/usb/core/
A Dhcd-pci.c49 struct pci_dev *companion; in for_each_companion()
386 static void powermac_set_asic(struct pci_dev *pci_dev, int enable) in powermac_set_asic() argument
401 static inline void powermac_set_asic(struct pci_dev *pci_dev, int enable) in powermac_set_asic() argument
426 struct pci_dev *pci_dev = to_pci_dev(dev); in suspend_common() local
475 pci_disable_device(pci_dev); in suspend_common()
481 struct pci_dev *pci_dev = to_pci_dev(dev); in resume_common() local
498 pci_set_master(pci_dev); in resume_common()
508 for_each_companion(pci_dev, hcd, in resume_common()
530 struct pci_dev *pci_dev = to_pci_dev(dev); in hcd_pci_suspend_noirq() local
538 pci_save_state(pci_dev); in hcd_pci_suspend_noirq()
[all …]
/linux/drivers/virtio/
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()
53 ldev->id.vendor = pci_dev->subsystem_vendor; in vp_legacy_probe()
54 ldev->id.device = pci_dev->subsystem_device; in vp_legacy_probe()
58 pci_release_region(pci_dev, 0); in vp_legacy_probe()
69 struct pci_dev *pci_dev = ldev->pci_dev; in vp_legacy_remove() local
71 pci_iounmap(pci_dev, ldev->ioaddr); in vp_legacy_remove()
[all …]
A Dvirtio_pci_common.c496 struct pci_dev *pci_dev = to_pci_dev(dev); in virtio_pci_freeze() local
509 struct pci_dev *pci_dev = to_pci_dev(dev); in virtio_pci_restore() local
517 pci_set_master(pci_dev); in virtio_pci_restore()
546 static int virtio_pci_probe(struct pci_dev *pci_dev, in virtio_pci_probe() argument
560 vp_dev->pci_dev = pci_dev; in virtio_pci_probe()
584 pci_set_master(pci_dev); in virtio_pci_probe()
601 pci_disable_device(pci_dev); in virtio_pci_probe()
610 static void virtio_pci_remove(struct pci_dev *pci_dev) in virtio_pci_remove() argument
622 pci_disable_sriov(pci_dev); in virtio_pci_remove()
631 pci_disable_device(pci_dev); in virtio_pci_remove()
[all …]

Completed in 95 milliseconds

12345678910>>...80