Home
last modified time | relevance | path

Searched refs:pdev (Results 76 - 100 of 13876) sorted by relevance

12345678910>>...556

/kernel/linux/linux-5.10/drivers/base/test/
H A Dtest_async_driver_probe.c23 static int test_probe(struct platform_device *pdev) in test_probe() argument
25 struct device *dev = &pdev->dev; in test_probe()
36 dev_dbg(&pdev->dev, "sleeping for %d msecs in probe\n", in test_probe()
39 dev_dbg(&pdev->dev, "done sleeping\n"); in test_probe()
82 struct platform_device *pdev; in test_platform_device_register_node() local
85 pdev = platform_device_alloc(name, id); in test_platform_device_register_node()
86 if (!pdev) in test_platform_device_register_node()
90 set_dev_node(&pdev->dev, nid); in test_platform_device_register_node()
92 ret = platform_device_add(pdev); in test_platform_device_register_node()
94 platform_device_put(pdev); in test_platform_device_register_node()
104 struct platform_device **pdev = NULL; test_async_probe_init() local
[all...]
/kernel/linux/linux-6.6/drivers/base/test/
H A Dtest_async_driver_probe.c23 static int test_probe(struct platform_device *pdev) in test_probe() argument
25 struct device *dev = &pdev->dev; in test_probe()
36 dev_dbg(&pdev->dev, "sleeping for %d msecs in probe\n", in test_probe()
39 dev_dbg(&pdev->dev, "done sleeping\n"); in test_probe()
82 struct platform_device *pdev; in test_platform_device_register_node() local
85 pdev = platform_device_alloc(name, id); in test_platform_device_register_node()
86 if (!pdev) in test_platform_device_register_node()
90 set_dev_node(&pdev->dev, nid); in test_platform_device_register_node()
92 ret = platform_device_add(pdev); in test_platform_device_register_node()
94 platform_device_put(pdev); in test_platform_device_register_node()
104 struct platform_device **pdev = NULL; test_async_probe_init() local
[all...]
/kernel/linux/linux-5.10/drivers/mcb/
H A Dmcb-pci.c25 struct pci_dev *pdev = to_pci_dev(dev); in mcb_pci_get_irq() local
27 return pdev->irq; in mcb_pci_get_irq()
30 static int mcb_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) in mcb_pci_probe() argument
37 priv = devm_kzalloc(&pdev->dev, sizeof(struct priv), GFP_KERNEL); in mcb_pci_probe()
41 ret = pci_enable_device(pdev); in mcb_pci_probe()
43 dev_err(&pdev->dev, "Failed to enable PCI device\n"); in mcb_pci_probe()
46 pci_set_master(pdev); in mcb_pci_probe()
48 priv->mapbase = pci_resource_start(pdev, 0); in mcb_pci_probe()
50 dev_err(&pdev->dev, "No PCI resource\n"); in mcb_pci_probe()
55 res = devm_request_mem_region(&pdev in mcb_pci_probe()
129 mcb_pci_remove(struct pci_dev *pdev) mcb_pci_remove() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/enetc/
H A Denetc_ptp.c29 static int enetc_ptp_probe(struct pci_dev *pdev, in enetc_ptp_probe() argument
36 if (pdev->dev.of_node && !of_device_is_available(pdev->dev.of_node)) { in enetc_ptp_probe()
37 dev_info(&pdev->dev, "device is disabled, skipping\n"); in enetc_ptp_probe()
41 err = pci_enable_device_mem(pdev); in enetc_ptp_probe()
43 return dev_err_probe(&pdev->dev, err, "device enable failed\n"); in enetc_ptp_probe()
45 err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); in enetc_ptp_probe()
47 dev_err(&pdev->dev, "DMA configuration failed: 0x%x\n", err); in enetc_ptp_probe()
51 err = pci_request_mem_regions(pdev, KBUILD_MODNAME); in enetc_ptp_probe()
53 dev_err(&pdev in enetc_ptp_probe()
117 enetc_ptp_remove(struct pci_dev *pdev) enetc_ptp_remove() argument
[all...]
/kernel/linux/linux-6.6/drivers/xen/
H A Dplatform-pci.c45 static uint64_t get_callback_via(struct pci_dev *pdev) in get_callback_via() argument
50 irq = pdev->irq; in get_callback_via()
54 pin = pdev->pin; in get_callback_via()
59 ((uint64_t)pci_domain_nr(pdev->bus) << 32) | in get_callback_via()
60 ((uint64_t)pdev->bus->number << 16) | in get_callback_via()
61 ((uint64_t)(pdev->devfn & 0xff) << 8) | in get_callback_via()
70 static int xen_allocate_irq(struct pci_dev *pdev) in xen_allocate_irq() argument
72 return request_irq(pdev->irq, do_hvm_evtchn_intr, in xen_allocate_irq()
74 "xen-platform-pci", pdev); in xen_allocate_irq()
92 static int platform_pci_probe(struct pci_dev *pdev, in platform_pci_probe() argument
[all...]
/kernel/linux/linux-6.6/drivers/mcb/
H A Dmcb-pci.c25 struct pci_dev *pdev = to_pci_dev(dev); in mcb_pci_get_irq() local
27 return pdev->irq; in mcb_pci_get_irq()
30 static int mcb_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) in mcb_pci_probe() argument
37 priv = devm_kzalloc(&pdev->dev, sizeof(struct priv), GFP_KERNEL); in mcb_pci_probe()
41 ret = pci_enable_device(pdev); in mcb_pci_probe()
43 dev_err(&pdev->dev, "Failed to enable PCI device\n"); in mcb_pci_probe()
46 pci_set_master(pdev); in mcb_pci_probe()
48 priv->mapbase = pci_resource_start(pdev, 0); in mcb_pci_probe()
50 dev_err(&pdev->dev, "No PCI resource\n"); in mcb_pci_probe()
55 res = devm_request_mem_region(&pdev in mcb_pci_probe()
129 mcb_pci_remove(struct pci_dev *pdev) mcb_pci_remove() argument
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-omap2/
H A Domap_device.c53 dev_dbg(&od->pdev->dev, "Creating %s -> %s\n", clk_alias, clk_name); in _add_clkdev()
55 r = clk_get_sys(dev_name(&od->pdev->dev), clk_alias); in _add_clkdev()
57 dev_dbg(&od->pdev->dev, in _add_clkdev()
73 dev_name(&od->pdev->dev)); in _add_clkdev()
75 rc = clk_add_alias(clk_alias, dev_name(&od->pdev->dev), in _add_clkdev()
81 dev_err(&od->pdev->dev, in _add_clkdev()
84 dev_err(&od->pdev->dev, in _add_clkdev()
122 * @pdev: The platform device to update.
128 static int omap_device_build_from_dt(struct platform_device *pdev) in omap_device_build_from_dt() argument
133 struct device_node *node = pdev in omap_device_build_from_dt()
213 struct platform_device *pdev = to_platform_device(dev); _omap_device_notifier_call() local
306 omap_device_get_context_loss_count(struct platform_device *pdev) omap_device_get_context_loss_count() argument
330 omap_device_alloc(struct platform_device *pdev, struct omap_hwmod **ohs, int oh_cnt) omap_device_alloc() argument
381 struct platform_device *pdev = to_platform_device(dev); _od_runtime_suspend() local
393 struct platform_device *pdev = to_platform_device(dev); _od_runtime_resume() local
422 struct platform_device *pdev = to_platform_device(dev); _od_suspend_noirq() local
444 struct platform_device *pdev = to_platform_device(dev); _od_resume_noirq() local
485 omap_device_register(struct platform_device *pdev) omap_device_register() argument
508 omap_device_enable(struct platform_device *pdev) omap_device_enable() argument
539 omap_device_idle(struct platform_device *pdev) omap_device_idle() argument
573 omap_device_assert_hardreset(struct platform_device *pdev, const char *name) omap_device_assert_hardreset() argument
600 omap_device_deassert_hardreset(struct platform_device *pdev, const char *name) omap_device_deassert_hardreset() argument
669 struct platform_device *pdev = to_platform_device(dev); omap_device_late_idle() local
[all...]
/kernel/linux/linux-6.6/drivers/net/can/ctucanfd/
H A Dctucanfd_pci.c56 static struct ctucan_pci_board_data *ctucan_pci_get_bdata(struct pci_dev *pdev) in ctucan_pci_get_bdata() argument
58 return (struct ctucan_pci_board_data *)pci_get_drvdata(pdev); in ctucan_pci_get_bdata()
64 struct pci_dev *pdev = container_of(dev, struct pci_dev, dev); in ctucan_pci_set_drvdata() local
66 struct ctucan_pci_board_data *bdata = ctucan_pci_get_bdata(pdev); in ctucan_pci_set_drvdata()
74 * @pdev: Handle to the pci device structure
82 static int ctucan_pci_probe(struct pci_dev *pdev, in ctucan_pci_probe() argument
85 struct device *dev = &pdev->dev; in ctucan_pci_probe()
100 ret = pci_enable_device(pdev); in ctucan_pci_probe()
106 ret = pci_request_regions(pdev, KBUILD_MODNAME); in ctucan_pci_probe()
112 ret = pci_enable_msi(pdev); in ctucan_pci_probe()
225 ctucan_pci_remove(struct pci_dev *pdev) ctucan_pci_remove() argument
[all...]
/kernel/linux/linux-5.10/drivers/pci/pcie/
H A Dedr.c24 * @pdev : PCI device structure
28 static int acpi_enable_dpc(struct pci_dev *pdev) in acpi_enable_dpc() argument
30 struct acpi_device *adev = ACPI_COMPANION(&pdev->dev); in acpi_enable_dpc()
60 pci_err(pdev, FW_BUG "Enable DPC _DSM returned non integer\n"); in acpi_enable_dpc()
65 pci_err(pdev, "Enable DPC _DSM failed to enable DPC\n"); in acpi_enable_dpc()
76 * @pdev : Device which received EDR event
81 static struct pci_dev *acpi_dpc_port_get(struct pci_dev *pdev) in acpi_dpc_port_get() argument
83 struct acpi_device *adev = ACPI_COMPANION(&pdev->dev); in acpi_dpc_port_get()
93 return pci_dev_get(pdev); in acpi_dpc_port_get()
98 return pci_dev_get(pdev); in acpi_dpc_port_get()
126 acpi_send_edr_status(struct pci_dev *pdev, struct pci_dev *edev, u16 status) acpi_send_edr_status() argument
147 struct pci_dev *pdev = data, *edev; edr_handle_event() local
206 pci_acpi_add_edr_notifier(struct pci_dev *pdev) pci_acpi_add_edr_notifier() argument
230 pci_acpi_remove_edr_notifier(struct pci_dev *pdev) pci_acpi_remove_edr_notifier() argument
[all...]
/kernel/linux/linux-6.6/drivers/pci/pcie/
H A Dedr.c24 * @pdev : PCI device structure
28 static int acpi_enable_dpc(struct pci_dev *pdev) in acpi_enable_dpc() argument
30 struct acpi_device *adev = ACPI_COMPANION(&pdev->dev); in acpi_enable_dpc()
60 pci_err(pdev, FW_BUG "Enable DPC _DSM returned non integer\n"); in acpi_enable_dpc()
65 pci_err(pdev, "Enable DPC _DSM failed to enable DPC\n"); in acpi_enable_dpc()
76 * @pdev : Device which received EDR event
81 static struct pci_dev *acpi_dpc_port_get(struct pci_dev *pdev) in acpi_dpc_port_get() argument
83 struct acpi_device *adev = ACPI_COMPANION(&pdev->dev); in acpi_dpc_port_get()
93 return pci_dev_get(pdev); in acpi_dpc_port_get()
98 return pci_dev_get(pdev); in acpi_dpc_port_get()
126 acpi_send_edr_status(struct pci_dev *pdev, struct pci_dev *edev, u16 status) acpi_send_edr_status() argument
147 struct pci_dev *pdev = data, *edev; edr_handle_event() local
215 pci_acpi_add_edr_notifier(struct pci_dev *pdev) pci_acpi_add_edr_notifier() argument
239 pci_acpi_remove_edr_notifier(struct pci_dev *pdev) pci_acpi_remove_edr_notifier() argument
[all...]
/kernel/linux/linux-6.6/drivers/pci/
H A Ddoe.c44 * @pdev: PCI device this mailbox belongs to
52 struct pci_dev *pdev; member
106 struct pci_dev *pdev = doe_mb->pdev; in pci_doe_write_ctrl() local
109 pci_write_config_dword(pdev, offset + PCI_DOE_CTRL, val); in pci_doe_write_ctrl()
114 struct pci_dev *pdev = doe_mb->pdev; in pci_doe_abort() local
118 pci_dbg(pdev, "[%x] Issuing Abort\n", offset); in pci_doe_abort()
130 pci_read_config_dword(pdev, offset + PCI_DOE_STATUS, &val); in pci_doe_abort()
140 pci_err(pdev, "[ in pci_doe_abort()
147 struct pci_dev *pdev = doe_mb->pdev; pci_doe_send_req() local
202 struct pci_dev *pdev = doe_mb->pdev; pci_doe_data_obj_ready() local
215 struct pci_dev *pdev = doe_mb->pdev; pci_doe_recv_resp() local
303 struct pci_dev *pdev = doe_mb->pdev; signal_task_abort() local
322 struct pci_dev *pdev = doe_mb->pdev; doe_statemachine_work() local
469 pci_doe_create_mb(struct pci_dev *pdev, u16 cap_offset) pci_doe_create_mb() argument
666 pci_find_doe_mailbox(struct pci_dev *pdev, u16 vendor, u8 type) pci_find_doe_mailbox() argument
680 pci_doe_init(struct pci_dev *pdev) pci_doe_init() argument
706 pci_doe_destroy(struct pci_dev *pdev) pci_doe_destroy() argument
717 pci_doe_disconnected(struct pci_dev *pdev) pci_doe_disconnected() argument
[all...]
H A Dpci-sysfs.c41 struct pci_dev *pdev; \
43 pdev = to_pci_dev(dev); \
44 return sysfs_emit(buf, format_string, pdev->field); \
59 struct pci_dev *pdev = to_pci_dev(dev); in irq_show() local
66 if (pdev->msi_enabled) in irq_show()
67 return sysfs_emit(buf, "%u\n", pci_irq_vector(pdev, 0)); in irq_show()
70 return sysfs_emit(buf, "%u\n", pdev->irq); in irq_show()
78 struct pci_dev *pdev = to_pci_dev(dev); in broken_parity_status_show() local
79 return sysfs_emit(buf, "%u\n", pdev->broken_parity_status); in broken_parity_status_show()
86 struct pci_dev *pdev in broken_parity_status_store() local
152 struct pci_dev *pdev = to_pci_dev(dev); power_state_show() local
188 struct pci_dev *pdev = to_pci_dev(dev); max_link_speed_show() local
198 struct pci_dev *pdev = to_pci_dev(dev); max_link_width_show() local
295 struct pci_dev *pdev = to_pci_dev(dev); enable_store() local
323 struct pci_dev *pdev; enable_show() local
335 struct pci_dev *pdev = to_pci_dev(dev); numa_node_store() local
369 struct pci_dev *pdev = to_pci_dev(dev); dma_mask_bits_show() local
386 struct pci_dev *pdev = to_pci_dev(dev); msi_bus_show() local
397 struct pci_dev *pdev = to_pci_dev(dev); msi_bus_store() local
467 struct pci_dev *pdev = to_pci_dev(dev); dev_rescan_store() local
525 struct pci_dev *pdev = to_pci_dev(dev); d3cold_allowed_store() local
542 struct pci_dev *pdev = to_pci_dev(dev); d3cold_allowed_show() local
552 struct pci_dev *pdev = to_pci_dev(dev); devspec_show() local
566 struct pci_dev *pdev = to_pci_dev(dev); driver_override_store() local
579 struct pci_dev *pdev = to_pci_dev(dev); driver_override_show() local
654 struct pci_dev *pdev = to_pci_dev(dev); boot_vga_show() local
820 struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj)); pci_dev_config_attr_is_visible() local
1009 pci_mmap_fits(struct pci_dev *pdev, int resno, struct vm_area_struct *vma, enum pci_mmap_api mmap_api) pci_mmap_fits() argument
1043 struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj)); pci_mmap_resource() local
1083 struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj)); pci_resource_io() local
1148 pci_remove_resource_files(struct pci_dev *pdev) pci_remove_resource_files() argument
1169 pci_create_attr(struct pci_dev *pdev, int num, int write_combine) pci_create_attr() argument
1224 pci_create_resource_files(struct pci_dev *pdev) pci_create_resource_files() argument
1268 struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj)); pci_write_rom() local
1294 struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj)); pci_read_rom() local
1327 struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj)); pci_dev_rom_attr_is_visible() local
1348 struct pci_dev *pdev = to_pci_dev(dev); reset_store() local
1376 struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj)); pci_dev_reset_attr_is_visible() local
1485 struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj)); resource_resize_is_visible() local
1495 pci_create_sysfs_dev_files(struct pci_dev *pdev) pci_create_sysfs_dev_files() argument
1509 pci_remove_sysfs_dev_files(struct pci_dev *pdev) pci_remove_sysfs_dev_files() argument
1519 struct pci_dev *pdev = NULL; pci_sysfs_init() local
1548 struct pci_dev *pdev = to_pci_dev(dev); pci_dev_attrs_are_visible() local
1567 struct pci_dev *pdev = to_pci_dev(dev); pci_dev_hp_attrs_are_visible() local
1579 struct pci_dev *pdev = to_pci_dev(dev); pci_bridge_attrs_are_visible() local
1591 struct pci_dev *pdev = to_pci_dev(dev); pcie_dev_attrs_are_visible() local
[all...]
/kernel/linux/linux-5.10/drivers/ata/
H A Dpata_sis.c102 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sis_port_base() local
107 pci_read_config_dword(pdev, 0x54, &reg54); in sis_port_base()
125 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sis_133_cable_detect() local
129 pci_read_config_word(pdev, 0x50 + 2 * ap->port_no, &tmp); in sis_133_cable_detect()
130 if ((tmp & 0x8000) && !sis_short_ata40(pdev)) in sis_133_cable_detect()
145 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sis_66_cable_detect() local
149 pci_read_config_byte(pdev, 0x48, &tmp); in sis_66_cable_detect()
151 if ((tmp & 0x10) && !sis_short_ata40(pdev)) in sis_66_cable_detect()
173 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sis_pre_reset() local
175 if (!pci_test_config_bits(pdev, in sis_pre_reset()
197 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_set_fifo() local
229 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_old_set_piomode() local
266 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_100_set_piomode() local
291 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_133_set_piomode() local
339 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_old_set_dmamode() local
378 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_66_set_dmamode() local
417 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_100_set_dmamode() local
451 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_133_early_set_dmamode() local
484 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_133_set_dmamode() local
531 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_133_mode_filter() local
654 sis_fixup(struct pci_dev *pdev, struct sis_chipset *sis) sis_fixup() argument
723 sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) sis_init_one() argument
874 sis_reinit_one(struct pci_dev *pdev) sis_reinit_one() argument
[all...]
/kernel/linux/linux-6.6/drivers/ata/
H A Dpata_sis.c102 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sis_port_base() local
107 pci_read_config_dword(pdev, 0x54, &reg54); in sis_port_base()
124 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sis_133_cable_detect() local
128 pci_read_config_word(pdev, 0x50 + 2 * ap->port_no, &tmp); in sis_133_cable_detect()
129 if ((tmp & 0x8000) && !sis_short_ata40(pdev)) in sis_133_cable_detect()
144 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sis_66_cable_detect() local
148 pci_read_config_byte(pdev, 0x48, &tmp); in sis_66_cable_detect()
150 if ((tmp & 0x10) && !sis_short_ata40(pdev)) in sis_66_cable_detect()
172 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sis_pre_reset() local
174 if (!pci_test_config_bits(pdev, in sis_pre_reset()
196 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_set_fifo() local
228 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_old_set_piomode() local
265 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_100_set_piomode() local
290 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_133_set_piomode() local
338 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_old_set_dmamode() local
377 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_66_set_dmamode() local
416 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_100_set_dmamode() local
450 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_133_early_set_dmamode() local
483 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_133_set_dmamode() local
531 struct pci_dev *pdev = to_pci_dev(ap->host->dev); sis_133_mode_filter() local
654 sis_fixup(struct pci_dev *pdev, struct sis_chipset *sis) sis_fixup() argument
723 sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) sis_init_one() argument
874 sis_reinit_one(struct pci_dev *pdev) sis_reinit_one() argument
[all...]
/kernel/linux/linux-5.10/drivers/edac/
H A Dhighbank_l2_edac.c47 static int highbank_l2_err_probe(struct platform_device *pdev) in highbank_l2_err_probe() argument
61 dci->dev = &pdev->dev; in highbank_l2_err_probe()
62 platform_set_drvdata(pdev, dci); in highbank_l2_err_probe()
64 if (!devres_open_group(&pdev->dev, NULL, GFP_KERNEL)) in highbank_l2_err_probe()
67 r = platform_get_resource(pdev, IORESOURCE_MEM, 0); in highbank_l2_err_probe()
69 dev_err(&pdev->dev, "Unable to get mem resource\n"); in highbank_l2_err_probe()
74 if (!devm_request_mem_region(&pdev->dev, r->start, in highbank_l2_err_probe()
75 resource_size(r), dev_name(&pdev->dev))) { in highbank_l2_err_probe()
76 dev_err(&pdev->dev, "Error while requesting mem region\n"); in highbank_l2_err_probe()
81 drvdata->base = devm_ioremap(&pdev in highbank_l2_err_probe()
120 highbank_l2_err_remove(struct platform_device *pdev) highbank_l2_err_remove() argument
[all...]
/kernel/linux/linux-5.10/drivers/xen/
H A Dplatform-pci.c45 static uint64_t get_callback_via(struct pci_dev *pdev) in get_callback_via() argument
50 irq = pdev->irq; in get_callback_via()
54 pin = pdev->pin; in get_callback_via()
58 ((uint64_t)pci_domain_nr(pdev->bus) << 32) | in get_callback_via()
59 ((uint64_t)pdev->bus->number << 16) | in get_callback_via()
60 ((uint64_t)(pdev->devfn & 0xff) << 8) | in get_callback_via()
70 static int xen_allocate_irq(struct pci_dev *pdev) in xen_allocate_irq() argument
72 return request_irq(pdev->irq, do_hvm_evtchn_intr, in xen_allocate_irq()
74 "xen-platform-pci", pdev); in xen_allocate_irq()
92 static int platform_pci_probe(struct pci_dev *pdev, in platform_pci_probe() argument
[all...]
/kernel/linux/linux-6.6/drivers/edac/
H A Dhighbank_l2_edac.c48 static int highbank_l2_err_probe(struct platform_device *pdev) in highbank_l2_err_probe() argument
62 dci->dev = &pdev->dev; in highbank_l2_err_probe()
63 platform_set_drvdata(pdev, dci); in highbank_l2_err_probe()
65 if (!devres_open_group(&pdev->dev, NULL, GFP_KERNEL)) in highbank_l2_err_probe()
68 r = platform_get_resource(pdev, IORESOURCE_MEM, 0); in highbank_l2_err_probe()
70 dev_err(&pdev->dev, "Unable to get mem resource\n"); in highbank_l2_err_probe()
75 if (!devm_request_mem_region(&pdev->dev, r->start, in highbank_l2_err_probe()
76 resource_size(r), dev_name(&pdev->dev))) { in highbank_l2_err_probe()
77 dev_err(&pdev->dev, "Error while requesting mem region\n"); in highbank_l2_err_probe()
82 drvdata->base = devm_ioremap(&pdev in highbank_l2_err_probe()
121 highbank_l2_err_remove(struct platform_device *pdev) highbank_l2_err_remove() argument
[all...]
/kernel/linux/linux-5.10/drivers/tty/serial/jsm/
H A Djsm_driver.c37 static pci_ers_result_t jsm_io_error_detected(struct pci_dev *pdev,
39 static pci_ers_result_t jsm_io_slot_reset(struct pci_dev *pdev);
40 static void jsm_io_resume(struct pci_dev *pdev);
52 static int jsm_probe_one(struct pci_dev *pdev, const struct pci_device_id *ent) in jsm_probe_one() argument
58 rc = pci_enable_device(pdev); in jsm_probe_one()
60 dev_err(&pdev->dev, "Device enable FAILED\n"); in jsm_probe_one()
64 rc = pci_request_regions(pdev, JSM_DRIVER_NAME); in jsm_probe_one()
66 dev_err(&pdev->dev, "pci_request_region FAILED\n"); in jsm_probe_one()
78 brd->pci_dev = pdev; in jsm_probe_one()
80 switch (pdev in jsm_probe_one()
263 jsm_remove_one(struct pci_dev *pdev) jsm_remove_one() argument
330 jsm_io_error_detected(struct pci_dev *pdev, pci_channel_state_t state) jsm_io_error_detected() argument
340 jsm_io_slot_reset(struct pci_dev *pdev) jsm_io_slot_reset() argument
354 jsm_io_resume(struct pci_dev *pdev) jsm_io_resume() argument
[all...]
/kernel/linux/linux-6.6/drivers/tty/serial/jsm/
H A Djsm_driver.c36 static pci_ers_result_t jsm_io_error_detected(struct pci_dev *pdev,
38 static pci_ers_result_t jsm_io_slot_reset(struct pci_dev *pdev);
39 static void jsm_io_resume(struct pci_dev *pdev);
51 static int jsm_probe_one(struct pci_dev *pdev, const struct pci_device_id *ent) in jsm_probe_one() argument
57 rc = pci_enable_device(pdev); in jsm_probe_one()
59 dev_err(&pdev->dev, "Device enable FAILED\n"); in jsm_probe_one()
63 rc = pci_request_regions(pdev, JSM_DRIVER_NAME); in jsm_probe_one()
65 dev_err(&pdev->dev, "pci_request_region FAILED\n"); in jsm_probe_one()
77 brd->pci_dev = pdev; in jsm_probe_one()
79 switch (pdev in jsm_probe_one()
262 jsm_remove_one(struct pci_dev *pdev) jsm_remove_one() argument
329 jsm_io_error_detected(struct pci_dev *pdev, pci_channel_state_t state) jsm_io_error_detected() argument
339 jsm_io_slot_reset(struct pci_dev *pdev) jsm_io_slot_reset() argument
353 jsm_io_resume(struct pci_dev *pdev) jsm_io_resume() argument
[all...]
/kernel/linux/linux-6.6/drivers/hid/intel-ish-hid/ipc/
H A Dpci-ish.c112 static inline bool ish_should_enter_d0i3(struct pci_dev *pdev) in ish_should_enter_d0i3() argument
114 return !pm_suspend_via_firmware() || pdev->device == CHV_DEVICE_ID; in ish_should_enter_d0i3()
117 static inline bool ish_should_leave_d0i3(struct pci_dev *pdev) in ish_should_leave_d0i3() argument
119 return !pm_resume_via_firmware() || pdev->device == CHV_DEVICE_ID; in ish_should_leave_d0i3()
156 static void enable_pme_wake(struct pci_dev *pdev) in enable_pme_wake() argument
158 if ((pci_pme_capable(pdev, PCI_D0) || in enable_pme_wake()
159 pci_pme_capable(pdev, PCI_D3hot) || in enable_pme_wake()
160 pci_pme_capable(pdev, PCI_D3cold)) && !enable_gpe(&pdev->dev)) { in enable_pme_wake()
161 pci_pme_active(pdev, tru in enable_pme_wake()
175 ish_probe(struct pci_dev *pdev, const struct pci_device_id *ent) ish_probe() argument
251 ish_remove(struct pci_dev *pdev) ish_remove() argument
275 struct pci_dev *pdev = to_pci_dev(ish_resume_device); ish_resume_handler() local
319 struct pci_dev *pdev = to_pci_dev(device); ish_suspend() local
378 struct pci_dev *pdev = to_pci_dev(device); ish_resume() local
[all...]
/kernel/linux/linux-5.10/drivers/misc/mei/
H A Dpci-me.c138 struct pci_dev *pdev = to_pci_dev(dev->dev); in mei_me_read_fws() local
140 return pci_read_config_dword(pdev, where, val); in mei_me_read_fws()
146 * @pdev: PCI device structure
151 static bool mei_me_quirk_probe(struct pci_dev *pdev, in mei_me_quirk_probe() argument
154 if (cfg->quirk_probe && cfg->quirk_probe(pdev)) { in mei_me_quirk_probe()
155 dev_info(&pdev->dev, "Device doesn't have valid ME Interface\n"); in mei_me_quirk_probe()
165 * @pdev: PCI device structure
170 static int mei_me_probe(struct pci_dev *pdev, const struct pci_device_id *ent) in mei_me_probe() argument
182 if (!mei_me_quirk_probe(pdev, cfg)) in mei_me_probe()
186 err = pcim_enable_device(pdev); in mei_me_probe()
302 mei_me_shutdown(struct pci_dev *pdev) mei_me_shutdown() argument
327 mei_me_remove(struct pci_dev *pdev) mei_me_remove() argument
353 struct pci_dev *pdev = to_pci_dev(device); mei_me_pci_suspend() local
373 struct pci_dev *pdev = to_pci_dev(device); mei_me_pci_resume() local
485 struct pci_dev *pdev = to_pci_dev(dev->dev); mei_me_set_pm_domain() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/gma500/
H A Dpower.c73 pm_runtime_disable(&dev->pdev->dev); in gma_power_uninit()
74 pm_runtime_set_suspended(&dev->pdev->dev); in gma_power_uninit()
100 static void gma_resume_display(struct pci_dev *pdev) in gma_resume_display() argument
102 struct drm_device *dev = pci_get_drvdata(pdev); in gma_resume_display()
111 pci_write_config_word(pdev, PSB_GMCH_CTRL, in gma_resume_display()
120 * @pdev: PCI device
124 static void gma_suspend_pci(struct pci_dev *pdev) in gma_suspend_pci() argument
126 struct drm_device *dev = pci_get_drvdata(pdev); in gma_suspend_pci()
133 pci_save_state(pdev); in gma_suspend_pci()
134 pci_read_config_dword(pdev, in gma_suspend_pci()
154 gma_resume_pci(struct pci_dev *pdev) gma_resume_pci() argument
190 struct pci_dev *pdev = to_pci_dev(_dev); gma_power_suspend() local
217 struct pci_dev *pdev = to_pci_dev(_dev); gma_power_resume() local
[all...]
/kernel/linux/linux-5.10/drivers/xen/xen-pciback/
H A Dpciback.h67 struct pci_dev *pcistub_get_pci_dev_by_slot(struct xen_pcibk_device *pdev,
70 struct pci_dev *pcistub_get_pci_dev(struct xen_pcibk_device *pdev,
75 void xen_pcibk_reset_device(struct pci_dev *pdev);
89 typedef int (*publish_pci_dev_cb) (struct xen_pcibk_device *pdev,
92 typedef int (*publish_pci_root_cb) (struct xen_pcibk_device *pdev,
101 int (*init)(struct xen_pcibk_device *pdev);
102 void (*free)(struct xen_pcibk_device *pdev);
103 int (*find)(struct pci_dev *pcidev, struct xen_pcibk_device *pdev,
106 int (*publish)(struct xen_pcibk_device *pdev, publish_pci_root_cb cb);
107 void (*release)(struct xen_pcibk_device *pdev, struc
120 xen_pcibk_add_pci_dev(struct xen_pcibk_device *pdev, struct pci_dev *dev, int devid, publish_pci_dev_cb publish_cb) xen_pcibk_add_pci_dev() argument
130 xen_pcibk_release_pci_dev(struct xen_pcibk_device *pdev, struct pci_dev *dev, bool lock) xen_pcibk_release_pci_dev() argument
138 xen_pcibk_get_pci_dev(struct xen_pcibk_device *pdev, unsigned int domain, unsigned int bus, unsigned int devfn) xen_pcibk_get_pci_dev() argument
152 xen_pcibk_get_pcifront_dev(struct pci_dev *pcidev, struct xen_pcibk_device *pdev, unsigned int *domain, unsigned int *bus, unsigned int *devfn) xen_pcibk_get_pcifront_dev() argument
164 xen_pcibk_init_devices(struct xen_pcibk_device *pdev) xen_pcibk_init_devices() argument
171 xen_pcibk_publish_pci_roots(struct xen_pcibk_device *pdev, publish_pci_root_cb cb) xen_pcibk_publish_pci_roots() argument
179 xen_pcibk_release_devices(struct xen_pcibk_device *pdev) xen_pcibk_release_devices() argument
189 xen_pcibk_lateeoi(struct xen_pcibk_device *pdev, unsigned int eoi_flag) xen_pcibk_lateeoi() argument
[all...]
/kernel/linux/linux-6.6/drivers/xen/xen-pciback/
H A Dpciback.h67 struct pci_dev *pcistub_get_pci_dev_by_slot(struct xen_pcibk_device *pdev,
70 struct pci_dev *pcistub_get_pci_dev(struct xen_pcibk_device *pdev,
80 void xen_pcibk_reset_device(struct pci_dev *pdev);
94 typedef int (*publish_pci_dev_cb) (struct xen_pcibk_device *pdev,
97 typedef int (*publish_pci_root_cb) (struct xen_pcibk_device *pdev,
106 int (*init)(struct xen_pcibk_device *pdev);
107 void (*free)(struct xen_pcibk_device *pdev);
108 int (*find)(struct pci_dev *pcidev, struct xen_pcibk_device *pdev,
111 int (*publish)(struct xen_pcibk_device *pdev, publish_pci_root_cb cb);
112 void (*release)(struct xen_pcibk_device *pdev, struc
125 xen_pcibk_add_pci_dev(struct xen_pcibk_device *pdev, struct pci_dev *dev, int devid, publish_pci_dev_cb publish_cb) xen_pcibk_add_pci_dev() argument
135 xen_pcibk_release_pci_dev(struct xen_pcibk_device *pdev, struct pci_dev *dev, bool lock) xen_pcibk_release_pci_dev() argument
143 xen_pcibk_get_pci_dev(struct xen_pcibk_device *pdev, unsigned int domain, unsigned int bus, unsigned int devfn) xen_pcibk_get_pci_dev() argument
157 xen_pcibk_get_pcifront_dev(struct pci_dev *pcidev, struct xen_pcibk_device *pdev, unsigned int *domain, unsigned int *bus, unsigned int *devfn) xen_pcibk_get_pcifront_dev() argument
169 xen_pcibk_init_devices(struct xen_pcibk_device *pdev) xen_pcibk_init_devices() argument
176 xen_pcibk_publish_pci_roots(struct xen_pcibk_device *pdev, publish_pci_root_cb cb) xen_pcibk_publish_pci_roots() argument
184 xen_pcibk_release_devices(struct xen_pcibk_device *pdev) xen_pcibk_release_devices() argument
194 xen_pcibk_lateeoi(struct xen_pcibk_device *pdev, unsigned int eoi_flag) xen_pcibk_lateeoi() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
H A Dqxl_drv.c67 static bool is_vga(struct pci_dev *pdev) in is_vga() argument
69 return pdev->class == PCI_CLASS_DISPLAY_VGA << 8; in is_vga()
73 qxl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) in qxl_pci_probe() argument
78 if (pdev->revision < 4) { in qxl_pci_probe()
84 qdev = devm_drm_dev_alloc(&pdev->dev, &qxl_driver, in qxl_pci_probe()
91 ret = pci_enable_device(pdev); in qxl_pci_probe()
95 ret = drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, "qxl"); in qxl_pci_probe()
99 if (is_vga(pdev) && pdev->revision < 5) { in qxl_pci_probe()
100 ret = vga_get_interruptible(pdev, VGA_RSRC_LEGACY_I in qxl_pci_probe()
152 qxl_pci_remove(struct pci_dev *pdev) qxl_pci_remove() argument
166 struct pci_dev *pdev = dev->pdev; qxl_drm_freeze() local
203 struct pci_dev *pdev = to_pci_dev(dev); qxl_pm_suspend() local
218 struct pci_dev *pdev = to_pci_dev(dev); qxl_pm_resume() local
246 struct pci_dev *pdev = to_pci_dev(dev); qxl_pm_restore() local
[all...]

Completed in 12 milliseconds

12345678910>>...556