Home
last modified time | relevance | path

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

12345678910>>...55

/drivers/pci/
Dpci-driver.c117 struct pci_dev *pdev = kzalloc(sizeof(*pdev), GFP_KERNEL); in store_new_id()
225 struct pci_dev *dev) in pci_match_id()
255 struct pci_dev *dev) in pci_match_device()
286 struct pci_dev *dev;
293 struct pci_dev *pci_dev = ddi->dev; in local_pci_probe() local
295 struct device *dev = &pci_dev->dev; in local_pci_probe()
307 pci_dev->driver = pci_drv; in local_pci_probe()
308 rc = pci_drv->probe(pci_dev, ddi->id); in local_pci_probe()
312 pci_dev->driver = NULL; in local_pci_probe()
324 static int pci_call_probe(struct pci_driver *drv, struct pci_dev *dev, in pci_call_probe()
[all …]
Dpci.h9 bool pcie_cap_has_lnkctl(const struct pci_dev *dev);
13 int pci_create_sysfs_dev_files(struct pci_dev *pdev);
14 void pci_remove_sysfs_dev_files(struct pci_dev *pdev);
16 static inline void pci_create_firmware_label_files(struct pci_dev *pdev) in pci_create_firmware_label_files()
18 static inline void pci_remove_firmware_label_files(struct pci_dev *pdev) in pci_remove_firmware_label_files()
21 void pci_create_firmware_label_files(struct pci_dev *pdev);
22 void pci_remove_firmware_label_files(struct pci_dev *pdev);
24 void pci_cleanup_rom(struct pci_dev *dev);
30 int pci_mmap_fits(struct pci_dev *pdev, int resno, struct vm_area_struct *vmai,
33 int pci_probe_reset_function(struct pci_dev *dev);
[all …]
Dpci.c53 struct pci_dev *dev;
58 static void pci_dev_d3_sleep(struct pci_dev *dev) in pci_dev_d3_sleep()
127 void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar) in pci_ioremap_bar()
173 int pci_find_next_capability(struct pci_dev *dev, u8 pos, int cap) in pci_find_next_capability()
221 int pci_find_capability(struct pci_dev *dev, int cap) in pci_find_capability()
272 int pci_find_next_ext_capability(struct pci_dev *dev, int start, int cap) in pci_find_next_ext_capability()
327 int pci_find_ext_capability(struct pci_dev *dev, int cap) in pci_find_ext_capability()
333 static int __pci_find_next_ht_cap(struct pci_dev *dev, int pos, int ht_cap) in __pci_find_next_ht_cap()
373 int pci_find_next_ht_capability(struct pci_dev *dev, int pos, int ht_cap) in pci_find_next_ht_capability()
390 int pci_find_ht_capability(struct pci_dev *dev, int ht_cap) in pci_find_ht_capability()
[all …]
Dquirks.c37 static void quirk_mmio_always_on(struct pci_dev *dev) in quirk_mmio_always_on()
48 static void quirk_mellanox_tavor(struct pci_dev *dev) in quirk_mellanox_tavor()
57 static void quirk_passive_release(struct pci_dev *dev) in quirk_passive_release()
59 struct pci_dev *d = NULL; in quirk_passive_release()
83 static void quirk_isa_dma_hangs(struct pci_dev *dev) in quirk_isa_dma_hangs()
106 static void quirk_tigerpoint_bm_sts(struct pci_dev *dev) in quirk_tigerpoint_bm_sts()
125 static void quirk_nopcipci(struct pci_dev *dev) in quirk_nopcipci()
135 static void quirk_nopciamd(struct pci_dev *dev) in quirk_nopciamd()
150 static void quirk_triton(struct pci_dev *dev) in quirk_triton()
173 static void quirk_vialatency(struct pci_dev *dev) in quirk_vialatency()
[all …]
Dpci-acpi.c245 int pci_get_hp_params(struct pci_dev *dev, struct hotplug_params *hpp) in pci_get_hp_params()
307 struct pci_dev *pci_dev; in pci_acpi_wake_dev() local
310 pci_dev = to_pci_dev(context->dev); in pci_acpi_wake_dev()
312 if (pci_dev->pme_poll) in pci_acpi_wake_dev()
313 pci_dev->pme_poll = false; in pci_acpi_wake_dev()
315 if (pci_dev->current_state == PCI_D3cold) { in pci_acpi_wake_dev()
316 pci_wakeup_event(pci_dev); in pci_acpi_wake_dev()
317 pm_runtime_resume(&pci_dev->dev); in pci_acpi_wake_dev()
322 if (pci_dev->pme_support) in pci_acpi_wake_dev()
323 pci_check_pme_status(pci_dev); in pci_acpi_wake_dev()
[all …]
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()
51 struct pci_dev *tmp; in pci_for_each_dma_alias()
185 struct pci_dev *pci_get_slot(struct pci_bus *bus, unsigned int devfn) in pci_get_slot()
187 struct pci_dev *dev; in pci_get_slot()
220 struct pci_dev *pci_get_domain_bus_and_slot(int domain, unsigned int bus, in pci_get_domain_bus_and_slot()
223 struct pci_dev *dev = NULL; in pci_get_domain_bus_and_slot()
236 struct pci_dev *pdev = to_pci_dev(dev); in match_pci_dev_by_id()
260 static struct pci_dev *pci_get_dev_by_id(const struct pci_device_id *id, in pci_get_dev_by_id()
261 struct pci_dev *from) in pci_get_dev_by_id()
[all …]
Daccess.c98 ssize_t pci_read_vpd(struct pci_dev *dev, loff_t pos, size_t count, void *buf) in pci_read_vpd()
114 ssize_t pci_write_vpd(struct pci_dev *dev, loff_t pos, size_t count, const void *buf) in pci_write_vpd()
132 static noinline void pci_wait_cfg(struct pci_dev *dev) in pci_wait_cfg()
149 (struct pci_dev *dev, int pos, type *val) \
169 (struct pci_dev *dev, int pos, type val) \
211 static int pci_vpd_pci22_wait(struct pci_dev *dev) in pci_vpd_pci22_wait()
244 static ssize_t pci_vpd_pci22_read(struct pci_dev *dev, loff_t pos, size_t count, in pci_vpd_pci22_read()
296 static ssize_t pci_vpd_pci22_write(struct pci_dev *dev, loff_t pos, size_t count, in pci_vpd_pci22_write()
344 static void pci_vpd_pci22_release(struct pci_dev *dev) in pci_vpd_pci22_release()
355 static ssize_t pci_vpd_f0_read(struct pci_dev *dev, loff_t pos, size_t count, in pci_vpd_f0_read()
[all …]
Dremove.c6 static void pci_free_resources(struct pci_dev *dev) in pci_free_resources()
18 static void pci_stop_dev(struct pci_dev *dev) in pci_stop_dev()
33 static void pci_destroy_dev(struct pci_dev *dev) in pci_destroy_dev()
62 static void pci_stop_bus_device(struct pci_dev *dev) in pci_stop_bus_device()
65 struct pci_dev *child, *tmp; in pci_stop_bus_device()
82 static void pci_remove_bus_device(struct pci_dev *dev) in pci_remove_bus_device()
85 struct pci_dev *child, *tmp; in pci_remove_bus_device()
111 void pci_stop_and_remove_bus_device(struct pci_dev *dev) in pci_stop_and_remove_bus_device()
118 void pci_stop_and_remove_bus_device_locked(struct pci_dev *dev) in pci_stop_and_remove_bus_device_locked()
128 struct pci_dev *child, *tmp; in pci_stop_root_bus()
[all …]
/drivers/misc/genwqe/
Dcard_base.c186 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_bus_reset() local
194 pci_iounmap(pci_dev, mmio); in genwqe_bus_reset()
196 bars = pci_select_bars(pci_dev, IORESOURCE_MEM); in genwqe_bus_reset()
197 pci_release_selected_regions(pci_dev, bars); in genwqe_bus_reset()
204 dev_dbg(&pci_dev->dev, "[%s] pci_reset function ...\n", __func__); in genwqe_bus_reset()
205 rc = pci_reset_function(pci_dev); in genwqe_bus_reset()
207 dev_err(&pci_dev->dev, in genwqe_bus_reset()
211 dev_dbg(&pci_dev->dev, "[%s] done with rc=%d\n", __func__, rc); in genwqe_bus_reset()
221 rc = pci_request_selected_regions(pci_dev, bars, genwqe_driver_name); in genwqe_bus_reset()
223 dev_err(&pci_dev->dev, in genwqe_bus_reset()
[all …]
Dcard_ddcb.c177 struct pci_dev *pci_dev = cd->pci_dev; in print_ddcb_info() local
181 dev_info(&pci_dev->dev, in print_ddcb_info()
187 dev_err(&pci_dev->dev, in print_ddcb_info()
376 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_check_ddcb_queue() local
419 dev_err(&pci_dev->dev, in genwqe_check_ddcb_queue()
429 dev_dbg(&pci_dev->dev, "FINISHED DDCB#%d\n", req->num); in genwqe_check_ddcb_queue()
430 genwqe_hexdump(pci_dev, pddcb, sizeof(*pddcb)); in genwqe_check_ddcb_queue()
442 GENWQE_DEVNAME, dev_name(&pci_dev->dev), in genwqe_check_ddcb_queue()
488 struct pci_dev *pci_dev = cd->pci_dev; in __genwqe_wait_ddcb() local
524 dev_err(&pci_dev->dev, in __genwqe_wait_ddcb()
[all …]
Dcard_utils.c56 struct pci_dev *pci_dev = cd->pci_dev; in __genwqe_writeq() local
64 if (pci_channel_offline(pci_dev)) in __genwqe_writeq()
107 struct pci_dev *pci_dev = cd->pci_dev; in __genwqe_writel() local
115 if (pci_channel_offline(pci_dev)) in __genwqe_writel()
223 return pci_alloc_consistent(cd->pci_dev, size, dma_handle); in __genwqe_alloc_consistent()
232 pci_free_consistent(cd->pci_dev, size, vaddr, dma_handle); in __genwqe_free_consistent()
239 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_unmap_pages() local
242 pci_unmap_page(pci_dev, dma_list[i], in genwqe_unmap_pages()
253 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_map_pages() local
260 daddr = pci_map_page(pci_dev, page_list[i], in genwqe_map_pages()
[all …]
Dcard_dev.c164 struct pci_dev *pci_dev = cfile->cd->pci_dev; in __genwqe_search_mapping() local
188 dev_err(&pci_dev->dev, in __genwqe_search_mapping()
201 struct pci_dev *pci_dev = cfile->cd->pci_dev; in genwqe_remove_mappings() local
215 dev_err(&pci_dev->dev, in genwqe_remove_mappings()
307 struct pci_dev *pci_dev; in genwqe_open() local
314 pci_dev = cd->pci_dev; in genwqe_open()
402 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_vma_close() local
409 dev_err(&pci_dev->dev, in genwqe_vma_close()
520 struct pci_dev *pci_dev = cd->pci_dev; in do_flash_update() local
565 dev_dbg(&pci_dev->dev, in do_flash_update()
[all …]
/drivers/net/wireless/rt2x00/
Drt2x00pci.c52 struct pci_dev *pci_dev = to_pci_dev(rt2x00dev->dev); in rt2x00pci_alloc_reg() local
54 rt2x00dev->csr.base = pci_ioremap_bar(pci_dev, 0); in rt2x00pci_alloc_reg()
76 int rt2x00pci_probe(struct pci_dev *pci_dev, const struct rt2x00_ops *ops) in rt2x00pci_probe() argument
83 retval = pci_enable_device(pci_dev); in rt2x00pci_probe()
89 retval = pci_request_regions(pci_dev, pci_name(pci_dev)); in rt2x00pci_probe()
95 pci_set_master(pci_dev); in rt2x00pci_probe()
97 if (pci_set_mwi(pci_dev)) in rt2x00pci_probe()
100 if (dma_set_mask(&pci_dev->dev, DMA_BIT_MASK(32))) { in rt2x00pci_probe()
113 pci_set_drvdata(pci_dev, hw); in rt2x00pci_probe()
116 rt2x00dev->dev = &pci_dev->dev; in rt2x00pci_probe()
[all …]
Drt2x00pci.h39 int rt2x00pci_probe(struct pci_dev *pci_dev, const struct rt2x00_ops *ops);
40 void rt2x00pci_remove(struct pci_dev *pci_dev);
42 int rt2x00pci_suspend(struct pci_dev *pci_dev, pm_message_t state);
43 int rt2x00pci_resume(struct pci_dev *pci_dev);
/drivers/xen/
Dpci.c38 struct pci_dev *pci_dev = to_pci_dev(dev); in xen_add_device() local
40 struct pci_dev *physfn = pci_dev->physfn; in xen_add_device()
48 .add.seg = pci_domain_nr(pci_dev->bus), in xen_add_device()
49 .add.bus = pci_dev->bus->number, in xen_add_device()
50 .add.devfn = pci_dev->devfn in xen_add_device()
59 if (pci_dev->is_virtfn) { in xen_add_device()
65 if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) in xen_add_device()
69 handle = ACPI_HANDLE(&pci_dev->dev); in xen_add_device()
70 if (!handle && pci_dev->bus->bridge) in xen_add_device()
71 handle = ACPI_HANDLE(pci_dev->bus->bridge); in xen_add_device()
[all …]
/drivers/media/pci/tw68/
Dtw68-core.c219 static int tw68_initdev(struct pci_dev *pci_dev, in tw68_initdev() argument
226 dev = devm_kzalloc(&pci_dev->dev, sizeof(*dev), GFP_KERNEL); in tw68_initdev()
233 err = v4l2_device_register(&pci_dev->dev, &dev->v4l2_dev); in tw68_initdev()
238 dev->pci = pci_dev; in tw68_initdev()
239 if (pci_enable_device(pci_dev)) { in tw68_initdev()
249 pci_write_config_byte(pci_dev, PCI_LATENCY_TIMER, latency); in tw68_initdev()
253 pci_read_config_byte(pci_dev, PCI_CLASS_REVISION, &dev->pci_rev); in tw68_initdev()
254 pci_read_config_byte(pci_dev, PCI_LATENCY_TIMER, &dev->pci_lat); in tw68_initdev()
256 dev->name, pci_name(pci_dev), dev->pci_rev, pci_dev->irq, in tw68_initdev()
257 dev->pci_lat, (u64)pci_resource_start(pci_dev, 0)); in tw68_initdev()
[all …]
/drivers/usb/core/
Dhcd-pci.c51 static inline int is_ohci_or_uhci(struct pci_dev *pdev) in is_ohci_or_uhci()
56 typedef void (*companion_fn)(struct pci_dev *pdev, struct usb_hcd *hcd,
57 struct pci_dev *companion, struct usb_hcd *companion_hcd);
60 static void for_each_companion(struct pci_dev *pdev, struct usb_hcd *hcd, in for_each_companion()
63 struct pci_dev *companion; in for_each_companion()
99 static void ehci_pre_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_pre_add()
100 struct pci_dev *companion, struct usb_hcd *companion_hcd) in ehci_pre_add()
116 static void ehci_post_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_post_add()
117 struct pci_dev *companion, struct usb_hcd *companion_hcd) in ehci_post_add()
137 static void non_ehci_add(struct pci_dev *pdev, struct usb_hcd *hcd, in non_ehci_add()
[all …]
/drivers/xen/xen-pciback/
Dconf_space.h14 typedef void *(*conf_field_init) (struct pci_dev *dev, int offset);
15 typedef void (*conf_field_reset) (struct pci_dev *dev, int offset, void *data);
16 typedef void (*conf_field_free) (struct pci_dev *dev, int offset, void *data);
18 typedef int (*conf_dword_write) (struct pci_dev *dev, int offset, u32 value,
20 typedef int (*conf_word_write) (struct pci_dev *dev, int offset, u16 value,
22 typedef int (*conf_byte_write) (struct pci_dev *dev, int offset, u8 value,
24 typedef int (*conf_dword_read) (struct pci_dev *dev, int offset, u32 *value,
26 typedef int (*conf_word_read) (struct pci_dev *dev, int offset, u16 *value,
28 typedef int (*conf_byte_read) (struct pci_dev *dev, int offset, u8 *value,
74 int xen_pcibk_config_add_field_offset(struct pci_dev *dev,
[all …]
Dpciback.h22 struct pci_dev *dev;
63 struct pci_dev *pcistub_get_pci_dev_by_slot(struct xen_pcibk_device *pdev,
66 struct pci_dev *pcistub_get_pci_dev(struct xen_pcibk_device *pdev,
67 struct pci_dev *dev);
68 void pcistub_put_pci_dev(struct pci_dev *dev);
71 void xen_pcibk_reset_device(struct pci_dev *pdev);
75 int xen_pcibk_config_init_dev(struct pci_dev *dev);
76 void xen_pcibk_config_free_dyn_fields(struct pci_dev *dev);
77 void xen_pcibk_config_reset_dev(struct pci_dev *dev);
78 void xen_pcibk_config_free_dev(struct pci_dev *dev);
[all …]
/drivers/pci/pcie/aer/
Daerdrv_acpi.c24 struct pci_dev *pci) in hest_match_pci()
33 struct pci_dev *dev) in hest_match_type()
49 struct pci_dev *pci_dev; member
78 if (!info->pci_dev) { in aer_hest_parse()
85 if (hest_match_type(hest_hdr, info->pci_dev)) in aer_hest_parse()
88 if (hest_match_pci(p, info->pci_dev)) in aer_hest_parse()
94 static void aer_set_firmware_first(struct pci_dev *pci_dev) in aer_set_firmware_first() argument
98 .pci_dev = pci_dev, in aer_set_firmware_first()
105 pci_dev->__aer_firmware_first = 0; in aer_set_firmware_first()
107 pci_dev->__aer_firmware_first = info.firmware_first; in aer_set_firmware_first()
[all …]
Daerdrv.h36 struct pci_dev *dev[AER_MAX_MULTI_ERR_DEVICES];
110 void aer_print_error(struct pci_dev *dev, struct aer_err_info *info);
111 void aer_print_port_info(struct pci_dev *dev, struct aer_err_info *info);
115 int pcie_aer_get_firmware_first(struct pci_dev *pci_dev);
117 static inline int pcie_aer_get_firmware_first(struct pci_dev *pci_dev) in pcie_aer_get_firmware_first() argument
119 if (pci_dev->__aer_firmware_first_valid) in pcie_aer_get_firmware_first()
120 return pci_dev->__aer_firmware_first; in pcie_aer_get_firmware_first()
125 static inline void pcie_aer_force_firmware_first(struct pci_dev *pci_dev, in pcie_aer_force_firmware_first() argument
128 pci_dev->__aer_firmware_first = !!enable; in pcie_aer_force_firmware_first()
129 pci_dev->__aer_firmware_first_valid = 1; in pcie_aer_force_firmware_first()
/drivers/virtio/
Dvirtio_pci.c38 struct pci_dev *pci_dev; member
178 synchronize_irq(vp_dev->pci_dev->irq); in vp_synchronize_vectors()
266 free_irq(vp_dev->pci_dev->irq, vp_dev); in vp_free_vectors()
284 pci_disable_msix(vp_dev->pci_dev); in vp_free_vectors()
329 err = pci_enable_msix_exact(vp_dev->pci_dev, in vp_request_msix_vectors()
377 err = request_irq(vp_dev->pci_dev->irq, vp_interrupt, in vp_request_intx()
616 return pci_name(vp_dev->pci_dev); in vp_bus_name()
672 static int virtio_pci_probe(struct pci_dev *pci_dev, in virtio_pci_probe() argument
679 if (pci_dev->device < 0x1000 || pci_dev->device > 0x103f) in virtio_pci_probe()
682 if (pci_dev->revision != VIRTIO_PCI_ABI_VERSION) { in virtio_pci_probe()
[all …]
/drivers/tty/serial/jsm/
Djsm_tty.c46 jsm_dbg(IOCTL, &ch->ch_bd->pci_dev, "start\n"); in jsm_get_mstat()
65 jsm_dbg(IOCTL, &ch->ch_bd->pci_dev, "finish\n"); in jsm_get_mstat()
82 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_get_mctrl()
89 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_get_mctrl()
103 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_set_mctrl()
117 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_set_mctrl()
138 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_start_tx()
143 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_start_tx()
150 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_stop_tx()
154 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_stop_tx()
[all …]
/drivers/pci/pcie/
Dportdrv.h24 int pcie_port_device_register(struct pci_dev *dev);
29 void pcie_port_device_remove(struct pci_dev *dev);
33 struct pci_dev;
35 void pcie_clear_root_pme_status(struct pci_dev *dev);
62 void pcie_pme_interrupt_enable(struct pci_dev *dev, bool enable);
66 static inline void pcie_pme_interrupt_enable(struct pci_dev *dev, bool en) {} in pcie_pme_interrupt_enable()
70 int pcie_port_acpi_setup(struct pci_dev *port, int *mask);
72 static inline int pcie_port_platform_notify(struct pci_dev *port, int *mask) in pcie_port_platform_notify()
77 static inline int pcie_port_platform_notify(struct pci_dev *port, int *mask) in pcie_port_platform_notify()
/drivers/usb/host/
Dpci-quirks.h5 void uhci_reset_hc(struct pci_dev *pdev, unsigned long base);
6 int uhci_check_and_reset_hc(struct pci_dev *pdev, unsigned long base);
8 int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *pdev);
14 void usb_enable_intel_xhci_ports(struct pci_dev *xhci_pdev);
15 void usb_disable_xhci_ports(struct pci_dev *xhci_pdev);
18 struct pci_dev;
22 static inline void usb_disable_xhci_ports(struct pci_dev *xhci_pdev) {} in usb_disable_xhci_ports()

12345678910>>...55