Home
last modified time | relevance | path

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

12345678910>>...73

/linux/drivers/pci/
H A Dpci.h96 bool pcie_cap_has_lnkctl(const struct pci_dev *dev);
97 bool pcie_cap_has_lnkctl2(const struct pci_dev *dev);
98 bool pcie_cap_has_rtctl(const struct pci_dev *dev);
193 int pci_mmap_fits(struct pci_dev *pdev, int resno, struct vm_area_struct *vmai,
196 bool pci_reset_supported(struct pci_dev *dev);
197 void pci_init_reset_methods(struct pci_dev *dev);
198 int pci_bridge_secondary_bus_reset(struct pci_dev *dev);
199 int pci_bus_error_reset(struct pci_dev *dev);
214 void pci_allocate_cap_save_buffers(struct pci_dev *dev);
215 void pci_free_cap_save_buffers(struct pci_dev *dev);
[all …]
H A Dsearch.c28 int pci_for_each_dma_alias(struct pci_dev *pdev, in pci_for_each_dma_alias()
29 int (*fn)(struct pci_dev *pdev, in pci_for_each_dma_alias()
61 struct pci_dev *tmp; in pci_for_each_dma_alias()
194 struct pci_dev *pci_get_slot(struct pci_bus *bus, unsigned int devfn) in pci_get_slot()
196 struct pci_dev *dev; in pci_get_slot()
228 struct pci_dev *pci_get_domain_bus_and_slot(int domain, unsigned int bus, in pci_get_domain_bus_and_slot()
231 struct pci_dev *dev = NULL; in pci_get_domain_bus_and_slot()
244 struct pci_dev *pdev = to_pci_dev(dev); in match_pci_dev_by_id()
268 static struct pci_dev *pci_get_dev_by_id(const struct pci_device_id *id, in pci_get_dev_by_id()
269 struct pci_dev *from) in pci_get_dev_by_id()
[all …]
H A Dtsm.c38 static inline bool is_dsm(struct pci_dev *pdev) in is_dsm()
43 static inline bool has_tee(struct pci_dev *pdev) in has_tee()
56 struct pci_dev *pf0 = tsm->dsm_dev; in to_pci_tsm_pf0()
68 struct pci_dev *pdev; in tsm_remove()
79 static void pci_tsm_walk_fns(struct pci_dev *pdev, in DEFINE_FREE()
80 int (*cb)(struct pci_dev *pdev, void *data), in DEFINE_FREE()
85 struct pci_dev *pf __free(pci_dev_put) = pci_get_slot( in DEFINE_FREE()
97 struct pci_dev *vf __free(pci_dev_put) = in DEFINE_FREE()
118 static void pci_tsm_walk_fns_reverse(struct pci_dev *pdev, in pci_tsm_walk_fns_reverse()
119 int (*cb)(struct pci_dev *pdev, in pci_tsm_walk_fns_reverse()
[all …]
H A Dpci-sysfs.c47 struct pci_dev *pdev; \
65 struct pci_dev *pdev = to_pci_dev(dev); in irq_show()
84 struct pci_dev *pdev = to_pci_dev(dev); in broken_parity_status_show()
92 struct pci_dev *pdev = to_pci_dev(dev); in broken_parity_status_store()
158 struct pci_dev *pdev = to_pci_dev(dev); in power_state_show()
168 struct pci_dev *pci_dev = to_pci_dev(dev); in resource_show() local
174 if (pci_dev->subordinate) in resource_show()
180 struct resource *res = &pci_dev->resource[i]; in resource_show()
188 pci_resource_to_user(pci_dev, i, res, &start, &end); in resource_show()
201 struct pci_dev *pdev = to_pci_dev(dev); in max_link_speed_show()
[all …]
H A Dquirks.c39 static bool pcie_lbms_seen(struct pci_dev *dev, u16 lnksta) in pcie_lbms_seen()
95 int pcie_failed_link_retrain(struct pci_dev *dev) in pcie_failed_link_retrain()
145 static ktime_t fixup_debug_start(struct pci_dev *dev, in fixup_debug_start()
146 void (*fn)(struct pci_dev *dev)) in fixup_debug_start()
154 static void fixup_debug_report(struct pci_dev *dev, ktime_t calltime, in fixup_debug_report()
155 void (*fn)(struct pci_dev *dev)) in fixup_debug_report()
167 static void pci_do_fixups(struct pci_dev *dev, struct pci_fixup *f, in pci_do_fixups()
179 void (*hook)(struct pci_dev *dev); in pci_do_fixups()
210 void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev) in pci_fixup_device()
267 struct pci_dev *dev = NULL; in pci_apply_final_quirks()
[all …]
/linux/include/linux/
H A Dpci.h309 enum pci_bus_speed pcie_get_speed_cap(struct pci_dev *dev);
310 enum pcie_link_width pcie_get_width_cap(struct pci_dev *dev);
338 struct pci_dev { struct
361 struct pci_dev *rcec; /* Associated RCEC device */ argument
525 struct pci_dev *physfn; /* VF: related PF */ argument
582 static inline struct pci_dev *pci_physfn(struct pci_dev *dev) in pci_physfn() argument
591 struct pci_dev *pci_alloc_dev(struct pci_bus *bus);
593 #define to_pci_dev(n) container_of(n, struct pci_dev, dev)
598 static inline int pci_channel_offline(struct pci_dev *pdev) in pci_channel_offline()
628 u8 (*swizzle_irq)(struct pci_dev *, u8 *); /* Platform IRQ swizzler */
[all …]
H A Dvga_switcheroo.h36 struct pci_dev;
122 enum vga_switcheroo_client_id (*get_client_id)(struct pci_dev *pdev);
144 void (*set_gpu_state)(struct pci_dev *dev, enum vga_switcheroo_state);
145 void (*reprobe)(struct pci_dev *dev);
146 bool (*can_switch)(struct pci_dev *dev);
147 void (*gpu_bound)(struct pci_dev *dev, enum vga_switcheroo_client_id);
151 void vga_switcheroo_unregister_client(struct pci_dev *dev);
152 int vga_switcheroo_register_client(struct pci_dev *dev,
155 int vga_switcheroo_register_audio_client(struct pci_dev *pdev,
157 struct pci_dev *vga_dev);
[all …]
H A Dvgaarb.h17 struct pci_dev;
29 void vga_set_legacy_decoding(struct pci_dev *pdev, unsigned int decodes);
30 int vga_get(struct pci_dev *pdev, unsigned int rsrc, int interruptible);
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,
36 unsigned int (*set_decode)(struct pci_dev *pdev, bool state));
38 static inline void vga_set_legacy_decoding(struct pci_dev *pdev, in vga_set_legacy_decoding()
[all …]
H A Dpci-p2pdma.h69 int pcim_p2pdma_init(struct pci_dev *pdev);
70 struct p2pdma_provider *pcim_p2pdma_provider(struct pci_dev *pdev, int bar);
71 int pci_p2pdma_add_resource(struct pci_dev *pdev, int bar, size_t size,
73 int pci_p2pdma_distance_many(struct pci_dev *provider, struct device **clients,
75 struct pci_dev *pci_p2pmem_find_many(struct device **clients, int num_clients);
76 void *pci_alloc_p2pmem(struct pci_dev *pdev, size_t size);
77 void pci_free_p2pmem(struct pci_dev *pdev, void *addr, size_t size);
78 pci_bus_addr_t pci_p2pmem_virt_to_bus(struct pci_dev *pdev, void *addr);
79 struct scatterlist *pci_p2pmem_alloc_sgl(struct pci_dev *pdev,
81 void pci_p2pmem_free_sgl(struct pci_dev *pdev, struct scatterlist *sgl);
[all …]
H A Dpci-tsm.h49 struct pci_dev *pdev);
51 int (*connect)(struct pci_dev *pdev);
52 void (*disconnect)(struct pci_dev *pdev);
53 struct pci_tdi *(*bind)(struct pci_dev *pdev,
75 struct pci_dev *pdev);
87 struct pci_dev *pdev;
111 struct pci_dev *pdev;
112 struct pci_dev *dsm_dev;
130 static inline bool is_pci_tsm_pf0(struct pci_dev *pdev) in is_pci_tsm_pf0()
205 int pci_tsm_link_constructor(struct pci_dev *pdev, struct pci_tsm *tsm,
[all …]
H A Dpci-tph.h24 int pcie_tph_set_st_entry(struct pci_dev *pdev,
26 int pcie_tph_get_cpu_st(struct pci_dev *dev,
29 void pcie_disable_tph(struct pci_dev *pdev);
30 int pcie_enable_tph(struct pci_dev *pdev, int mode);
31 u16 pcie_tph_get_st_table_size(struct pci_dev *pdev);
32 u32 pcie_tph_get_st_table_loc(struct pci_dev *pdev);
34 static inline int pcie_tph_set_st_entry(struct pci_dev *pdev, in pcie_tph_set_st_entry()
37 static inline int pcie_tph_get_cpu_st(struct pci_dev *dev, in pcie_tph_get_cpu_st()
41 static inline void pcie_disable_tph(struct pci_dev *pdev) { } in pcie_disable_tph()
42 static inline int pcie_enable_tph(struct pci_dev *pdev, int mode) in pcie_enable_tph()
/linux/drivers/misc/genwqe/
H A Dcard_base.c197 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_bus_reset() local
205 pci_iounmap(pci_dev, mmio); in genwqe_bus_reset()
207 pci_release_mem_regions(pci_dev); in genwqe_bus_reset()
214 dev_dbg(&pci_dev->dev, "[%s] pci_reset function ...\n", __func__); in genwqe_bus_reset()
215 rc = pci_reset_function(pci_dev); in genwqe_bus_reset()
217 dev_err(&pci_dev->dev, in genwqe_bus_reset()
221 dev_dbg(&pci_dev->dev, "[%s] done with rc=%d\n", __func__, rc); in genwqe_bus_reset()
231 rc = pci_request_mem_regions(pci_dev, genwqe_driver_name); in genwqe_bus_reset()
233 dev_err(&pci_dev->dev, in genwqe_bus_reset()
238 cd->mmio = pci_iomap(pci_dev, 0, 0); in genwqe_bus_reset()
[all …]
/linux/drivers/i2c/busses/
H A Di2c-amd-mp2-pci.c33 pci_warn(privdata->pci_dev, in amd_mp2_c2p_mutex_unlock()
62 pci_dbg(privdata->pci_dev, "id: %d\n", i2c_common->bus_id); in amd_mp2_bus_enable_set()
113 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
293 pci_set_drvdata(pci_dev, privdata); in amd_mp2_pci_init()
295 rc = pcim_enable_device(pci_dev); in amd_mp2_pci_init()
[all …]
/linux/drivers/media/pci/netup_unidvb/
H A Dnetup_unidvb_core.c151 dev_dbg(&ndev->pci_dev->dev, "%s(): num %d is_dvb_tc %d\n", in netup_unidvb_tuner_ctrl()
182 dev_dbg(&ndev->pci_dev->dev, in netup_unidvb_dev_enable()
194 dev_dbg(&dma->ndev->pci_dev->dev, in netup_unidvb_dma_enable()
210 struct device *dev = &dma->ndev->pci_dev->dev; in netup_dma_interrupt()
249 struct pci_dev *pci_dev = (struct pci_dev *)dev_id; in netup_unidvb_isr() local
250 struct netup_unidvb_dev *ndev = pci_get_drvdata(pci_dev); in netup_unidvb_isr()
279 dev_err(&pci_dev->dev, in netup_unidvb_isr()
298 dev_dbg(&dma->ndev->pci_dev->dev, "%s()\n", __func__); in netup_unidvb_queue_setup()
304 dev_dbg(&dma->ndev->pci_dev->dev, "%s() nbuffers=%d sizes[0]=%d\n", in netup_unidvb_queue_setup()
316 dev_dbg(&dma->ndev->pci_dev->dev, "%s(): buf 0x%p\n", __func__, buf); in netup_unidvb_buf_prepare()
[all …]
/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
43 rt2x00dev->csr.base = pci_ioremap_bar(pci_dev, 0); in rt2x00pci_alloc_reg()
65 int rt2x00pci_probe(struct pci_dev *pci_dev, const struct rt2x00_ops *ops) in rt2x00pci_probe() argument
72 retval = pci_enable_device(pci_dev); in rt2x00pci_probe()
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()
89 if (dma_set_mask(&pci_dev->dev, DMA_BIT_MASK(32))) { in rt2x00pci_probe()
102 pci_set_drvdata(pci_dev, hw); in rt2x00pci_probe()
105 rt2x00dev->dev = &pci_dev->dev; in rt2x00pci_probe()
[all …]
/linux/drivers/xen/xen-pciback/
H A Dconf_space.h15 typedef void *(*conf_field_init) (struct pci_dev *dev, int offset);
16 typedef void (*conf_field_reset) (struct pci_dev *dev, int offset, void *data);
17 typedef void (*conf_field_free) (struct pci_dev *dev, int offset, void *data);
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,
25 typedef int (*conf_dword_read) (struct pci_dev *dev, int offset, u32 *value,
27 typedef int (*conf_word_read) (struct pci_dev *dev, int offset, u16 *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,
[all …]
/linux/arch/x86/pci/
H A Dirq.c35 static int pirq_enable_irq(struct pci_dev *dev);
36 static void pirq_disable_irq(struct pci_dev *dev);
53 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,
62 int (*probe)(struct irq_router *r, struct pci_dev *router, u16 device);
65 int (*pcibios_enable_irq)(struct pci_dev *dev) = pirq_enable_irq;
66 void (*pcibios_disable_irq)(struct pci_dev *dev) = pirq_disable_irq;
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()
[all …]
/linux/include/linux/ssb/
H A Dssb_driver_gige.h55 extern bool pdev_is_ssb_gige_core(struct pci_dev *pdev);
58 static inline struct ssb_gige * pdev_to_ssb_gige(struct pci_dev *pdev) in pdev_to_ssb_gige()
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()
83 static inline bool ssb_gige_one_dma_at_once(struct pci_dev *pdev) in ssb_gige_one_dma_at_once()
93 static inline bool ssb_gige_must_flush_posted_writes(struct pci_dev *pdev) in ssb_gige_must_flush_posted_writes()
102 static inline int ssb_gige_get_macaddr(struct pci_dev *pdev, u8 *macaddr) in ssb_gige_get_macaddr()
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);
[all …]
/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()
28 rc = dma_set_mask(&pci_dev->dev, DMA_BIT_MASK(64)); in vp_legacy_probe()
30 rc = dma_set_mask_and_coherent(&pci_dev->dev, DMA_BIT_MASK(32)); in vp_legacy_probe()
36 dma_set_coherent_mask(&pci_dev->dev, in vp_legacy_probe()
41 …dev_warn(&pci_dev->dev, "Failed to enable 64-bit or 32-bit DMA. Trying to continue, but this migh… in vp_legacy_probe()
43 rc = pci_request_region(pci_dev, 0, "virtio-pci-legacy"); 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()
[all …]
/linux/drivers/usb/core/
H A Dhcd-pci.c36 static inline int is_ohci_or_uhci(struct pci_dev *pdev) in is_ohci_or_uhci()
41 typedef void (*companion_fn)(struct pci_dev *pdev, struct usb_hcd *hcd,
42 struct pci_dev *companion, struct usb_hcd *companion_hcd);
45 static void for_each_companion(struct pci_dev *pdev, struct usb_hcd *hcd, in for_each_companion()
48 struct pci_dev *companion; in for_each_companion()
84 static void ehci_pre_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_pre_add()
85 struct pci_dev *companion, struct usb_hcd *companion_hcd) in ehci_pre_add()
101 static void ehci_post_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_post_add()
102 struct pci_dev *companion, struct usb_hcd *companion_hcd) in ehci_post_add()
122 static void non_ehci_add(struct pci_dev *pdev, struct usb_hcd *hcd, in non_ehci_add()
[all …]
/linux/drivers/media/pci/tw686x/
H A Dtw686x-core.c159 dev_dbg(&dev->pci_dev->dev, "reset: stopping DMA\n"); in tw686x_reset_channels()
181 dev_dbg(&dev->pci_dev->dev, in tw686x_irq()
240 static int tw686x_probe(struct pci_dev *pci_dev, in tw686x_probe() argument
251 sprintf(dev->name, "tw%04X", pci_dev->device); in tw686x_probe()
268 pci_name(pci_dev), pci_dev->irq, in tw686x_probe()
269 (unsigned long)pci_resource_start(pci_dev, 0), in tw686x_probe()
272 dev->pci_dev = pci_dev; in tw686x_probe()
273 if (pci_enable_device(pci_dev)) { in tw686x_probe()
278 pci_set_master(pci_dev); in tw686x_probe()
279 err = dma_set_mask(&pci_dev->dev, DMA_BIT_MASK(32)); in tw686x_probe()
[all …]
/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);
96 int __pci_enable_msi_range(struct pci_dev *dev, int minvec, int maxvec, struct irq_affinity *affd);
97 int __pci_enable_msix_range(struct pci_dev *dev, struct msix_entry *entries, int minvec,
99 void __pci_restore_msi_state(struct pci_dev *dev);
100 void __pci_restore_msix_state(struct pci_dev *dev);
[all …]
/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()
40 static inline void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long max) in pci_iomap_wc()
44 static inline void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, in pci_iomap_range()
[all …]
/linux/sound/pci/asihpi/
H A Dhpioctl.c346 int asihpi_adapter_probe(struct pci_dev *pci_dev, in asihpi_adapter_probe() argument
359 dev_dbg(&pci_dev->dev, in asihpi_adapter_probe()
360 "probe %04x:%04x,%04x:%04x,%04x\n", pci_dev->vendor, in asihpi_adapter_probe()
361 pci_dev->device, pci_dev->subsystem_vendor, in asihpi_adapter_probe()
362 pci_dev->subsystem_device, pci_dev->devfn); in asihpi_adapter_probe()
364 if (pcim_enable_device(pci_dev) < 0) { in asihpi_adapter_probe()
365 dev_err(&pci_dev->dev, in asihpi_adapter_probe()
370 pci_set_master(pci_dev); /* also sets latency timer if < 16 */ in asihpi_adapter_probe()
383 &pci_dev->resource[idx]); in asihpi_adapter_probe()
385 if (pci_resource_flags(pci_dev, idx) & IORESOURCE_MEM) { in asihpi_adapter_probe()
[all …]
/linux/drivers/pci/pcie/
H A Drcec.c19 struct pci_dev *rcec;
20 int (*user_callback)(struct pci_dev *dev, void *data);
24 static bool rcec_assoc_rciep(struct pci_dev *rcec, struct pci_dev *rciep) in rcec_assoc_rciep()
41 static int link_rcec_helper(struct pci_dev *dev, void *data) in link_rcec_helper()
44 struct pci_dev *rcec = rcec_data->rcec; in link_rcec_helper()
56 static int walk_rcec_helper(struct pci_dev *dev, void *data) in walk_rcec_helper()
59 struct pci_dev *rcec = rcec_data->rcec; in walk_rcec_helper()
68 static void walk_rcec(int (*cb)(struct pci_dev *dev, void *data), in walk_rcec()
72 struct pci_dev *rcec = rcec_data->rcec; in walk_rcec()
110 void pcie_link_rcec(struct pci_dev *rcec) in pcie_link_rcec()
[all …]

12345678910>>...73