Home
last modified time | relevance | path

Searched refs:pdev (Results 226 – 250 of 7436) sorted by relevance

12345678910>>...298

/openbmc/linux/drivers/platform/x86/amd/pmf/
H A Dacpi.c20 acpi_handle ahandle = ACPI_HANDLE(pdev->dev); in apmf_if_call()
42 dev_err(pdev->dev, "APMF method:%d call failed\n", fn); in apmf_if_call()
56 info = apmf_if_call(pdev, fn, NULL); in apmf_if_call_store_buffer()
61 dev_err(pdev->dev, "object is not a buffer\n"); in apmf_if_call_store_buffer()
67 dev_err(pdev->dev, "buffer too small\n"); in apmf_if_call_store_buffer()
81 dev_err(pdev->dev, "buffer too small %zu\n", size); in apmf_if_call_store_buffer()
96 return !!(pdev->supported_func & BIT(index - 1)); in is_apmf_func_supported()
99 int apmf_get_static_slider_granular(struct amd_pmf_dev *pdev, in apmf_get_static_slider_granular() argument
160 info = apmf_if_call(pdev, APMF_FUNC_SET_FAN_IDX, &params); in apmf_update_fan_idx()
218 static int apmf_if_verify_interface(struct amd_pmf_dev *pdev) in apmf_if_verify_interface() argument
[all …]
/openbmc/linux/drivers/mcb/
H A Dmcb-lpc.c22 static int mcb_lpc_probe(struct platform_device *pdev) in mcb_lpc_probe() argument
34 dev_err(&pdev->dev, "No Memory resource\n"); in mcb_lpc_probe()
42 dev_err(&pdev->dev, "Failed to request IO memory\n"); in mcb_lpc_probe()
46 priv->base = devm_ioremap(&pdev->dev, priv->mem->start, in mcb_lpc_probe()
49 dev_err(&pdev->dev, "Cannot ioremap\n"); in mcb_lpc_probe()
53 platform_set_drvdata(pdev, priv); in mcb_lpc_probe()
55 priv->bus = mcb_alloc_bus(&pdev->dev); in mcb_lpc_probe()
68 devm_iounmap(&pdev->dev, priv->base); in mcb_lpc_probe()
83 dev_err(&pdev->dev, "Cannot ioremap\n"); in mcb_lpc_probe()
88 platform_set_drvdata(pdev, priv); in mcb_lpc_probe()
[all …]
/openbmc/linux/drivers/media/dvb-frontends/
H A Drtl2832_sdr.c174 struct platform_device *pdev = dev->pdev; in rtl2832_sdr_convert_stream() local
220 struct platform_device *pdev = dev->pdev; in rtl2832_sdr_urb_complete() local
268 struct platform_device *pdev = dev->pdev; in rtl2832_sdr_kill_urbs() local
283 struct platform_device *pdev = dev->pdev; in rtl2832_sdr_submit_urbs() local
304 struct platform_device *pdev = dev->pdev; in rtl2832_sdr_free_stream_bufs() local
322 struct platform_device *pdev = dev->pdev; in rtl2832_sdr_alloc_stream_bufs() local
352 struct platform_device *pdev = dev->pdev; in rtl2832_sdr_free_urbs() local
371 struct platform_device *pdev = dev->pdev; in rtl2832_sdr_alloc_urbs() local
404 struct platform_device *pdev = dev->pdev; in rtl2832_sdr_cleanup_queued_bufs() local
425 struct platform_device *pdev = dev->pdev; in rtl2832_sdr_querycap() local
[all …]
/openbmc/linux/drivers/mmc/host/
H A Dsdhci-pltfm.c60 struct device_node *np = pdev->dev.of_node; in sdhci_get_compatibility()
77 struct device *dev = &pdev->dev; in sdhci_get_property()
99 sdhci_get_compatibility(pdev); in sdhci_get_property()
126 irq = platform_get_irq(pdev, 0); in sdhci_pltfm_init()
132 host = sdhci_alloc_host(&pdev->dev, in sdhci_pltfm_init()
142 host->hw_name = dev_name(&pdev->dev); in sdhci_pltfm_init()
152 platform_set_drvdata(pdev, host); in sdhci_pltfm_init()
176 host = sdhci_pltfm_init(pdev, pdata, priv_size); in sdhci_pltfm_init_and_add_host()
180 sdhci_get_property(pdev); in sdhci_pltfm_init_and_add_host()
184 sdhci_pltfm_free(pdev); in sdhci_pltfm_init_and_add_host()
[all …]
/openbmc/linux/samples/vfio-mdev/
H A Dmdpy-fb.c96 static int mdpy_fb_probe(struct pci_dev *pdev, in mdpy_fb_probe() argument
104 ret = pci_enable_device(pdev); in mdpy_fb_probe()
108 ret = pci_request_regions(pdev, "mdpy-fb"); in mdpy_fb_probe()
139 pci_set_drvdata(pdev, info); in mdpy_fb_probe()
144 info->fix.smem_len = pci_resource_len(pdev, 0); in mdpy_fb_probe()
157 pci_err(pdev, "ioremap(pcibar) failed\n"); in mdpy_fb_probe()
181 pci_release_regions(pdev); in mdpy_fb_probe()
184 pci_disable_device(pdev); in mdpy_fb_probe()
191 struct fb_info *info = pci_get_drvdata(pdev); in mdpy_fb_remove()
196 pci_release_regions(pdev); in mdpy_fb_remove()
[all …]
/openbmc/linux/drivers/net/wan/
H A Dwanxl.c215 pci_name(card->pdev)); in wanxl_rx_intr()
535 pci_disable_device(pdev); in wanxl_pci_remove_one()
590 switch (pdev->device) { in wanxl_pci_init_one()
609 card->pdev = pdev; in wanxl_pci_init_one()
654 pci_name(pdev)); in wanxl_pci_init_one()
743 pci_name(pdev)); in wanxl_pci_init_one()
753 pci_name(pdev), plx_phy, ramsize / 1024, mem_phy, pdev->irq); in wanxl_pci_init_one()
758 pci_name(pdev), pdev->irq); in wanxl_pci_init_one()
762 card->irq = pdev->irq; in wanxl_pci_init_one()
771 pci_name(pdev)); in wanxl_pci_init_one()
[all …]
/openbmc/linux/drivers/net/dsa/
H A Dmt7530-mmio.c20 mt7988_probe(struct platform_device *pdev) in mt7988_probe() argument
27 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); in mt7988_probe()
32 priv->dev = &pdev->dev; in mt7988_probe()
38 priv->rstc = devm_reset_control_get(&pdev->dev, NULL); in mt7988_probe()
40 dev_err(&pdev->dev, "Couldn't get our reset line\n"); in mt7988_probe()
44 base_addr = devm_platform_ioremap_resource(pdev, 0); in mt7988_probe()
67 mt7988_remove(struct platform_device *pdev) in mt7988_remove() argument
69 struct mt7530_priv *priv = platform_get_drvdata(pdev); in mt7988_remove()
77 static void mt7988_shutdown(struct platform_device *pdev) in mt7988_shutdown() argument
79 struct mt7530_priv *priv = platform_get_drvdata(pdev); in mt7988_shutdown()
[all …]
/openbmc/linux/drivers/ntb/hw/intel/
H A Dntb_hw_gen1.c370 pdev = ndev->ntb.pdev; in ndev_init_isr()
469 pdev = ndev->ntb.pdev; in ndev_deinit_isr()
503 pdev = ndev->ntb.pdev; in ndev_ntb_debugfs_read()
1302 pdev = ndev->ntb.pdev; in xeon_setup_b2b_mw()
1649 pdev = ndev->ntb.pdev; in xeon_init_dev()
1804 struct pci_dev *pdev = ndev->ntb.pdev; in intel_ntb_deinit_pci() local
1818 ndev->ntb.pdev = pdev; in ndev_init_struct()
1905 if (pdev_is_gen1(pdev) || pdev_is_gen3(pdev) || in intel_ntb_pci_probe()
1906 pdev_is_gen4(pdev) || pdev_is_gen5(pdev)) in intel_ntb_pci_probe()
1922 if (pdev_is_gen1(pdev) || pdev_is_gen3(pdev) || in intel_ntb_pci_remove()
[all …]
/openbmc/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_main.c304 pos = pci_save_state(pdev); in nitrox_device_flr()
312 pci_restore_state(pdev); in nitrox_device_flr()
442 pci_set_master(pdev); in nitrox_probe()
450 pci_set_drvdata(pdev, ndev); in nitrox_probe()
451 ndev->pdev = pdev; in nitrox_probe()
512 pci_set_drvdata(pdev, NULL); in nitrox_probe()
516 pci_disable_device(pdev); in nitrox_probe()
555 pci_set_drvdata(pdev, NULL); in nitrox_remove()
557 pci_disable_device(pdev); in nitrox_remove()
562 pci_set_drvdata(pdev, NULL); in nitrox_shutdown()
[all …]
/openbmc/linux/drivers/ata/
H A Dpata_atp867x.c256 if (atp867x_cable_override(pdev)) in atp867x_cable_detect()
281 start = pci_resource_start(pdev, i); in atp867x_check_res()
282 len = pci_resource_len(pdev, i); in atp867x_check_res()
406 struct pci_dev *pdev = to_pci_dev(gdev); in atp867x_ata_pci_sff_init_host() local
415 pcim_pin_device(pdev); in atp867x_ata_pci_sff_init_host()
418 host->iomap = pcim_iomap_table(pdev); in atp867x_ata_pci_sff_init_host()
420 atp867x_check_res(pdev); in atp867x_ata_pci_sff_init_host()
480 rc = pcim_enable_device(pdev); in atp867x_init_one()
485 pdev->device); in atp867x_init_one()
500 pci_set_master(pdev); in atp867x_init_one()
[all …]
H A Dpata_sl82c105.c89 pci_read_config_word(pdev, timing, &dummy); in sl82c105_configure_piomode()
127 pci_read_config_word(pdev, timing, &dummy); in sl82c105_configure_dmamode()
145 pci_read_config_word(pdev, 0x7E, &val); in sl82c105_reset_engine()
146 pci_write_config_word(pdev, 0x7E, val | 4); in sl82c105_reset_engine()
147 pci_write_config_word(pdev, 0x7E, val & ~4); in sl82c105_reset_engine()
235 pci_read_config_dword(pdev, 0x40, &val); in sl82c105_sff_irq_check()
271 bridge = pci_get_slot(pdev->bus, in sl82c105_bridge_revision()
296 pci_read_config_dword(pdev, 0x40, &val); in sl82c105_fixup()
298 pci_write_config_dword(pdev, 0x40, val); in sl82c105_fixup()
346 rc = ata_pci_device_do_resume(pdev); in sl82c105_reinit_one()
[all …]
/openbmc/linux/drivers/clk/mediatek/
H A Dclk-mt7629-eth.c76 struct device_node *node = pdev->dev.of_node; in clk_mt7629_ethsys_init()
83 mtk_clk_register_gates(&pdev->dev, node, eth_clks, in clk_mt7629_ethsys_init()
88 dev_err(&pdev->dev, in clk_mt7629_ethsys_init()
90 pdev->name, r); in clk_mt7629_ethsys_init()
100 struct device_node *node = pdev->dev.of_node; in clk_mt7629_sgmiisys_init()
113 dev_err(&pdev->dev, in clk_mt7629_sgmiisys_init()
115 pdev->name, r); in clk_mt7629_sgmiisys_init()
138 clk_init = of_device_get_match_data(&pdev->dev); in clk_mt7629_eth_probe()
142 r = clk_init(pdev); in clk_mt7629_eth_probe()
144 dev_err(&pdev->dev, in clk_mt7629_eth_probe()
[all …]
/openbmc/linux/drivers/gpu/drm/renesas/rcar-du/
H A Drcar_cmm.c81 int rcar_cmm_setup(struct platform_device *pdev, in rcar_cmm_setup() argument
84 struct rcar_cmm *rcmm = platform_get_drvdata(pdev); in rcar_cmm_setup()
121 int rcar_cmm_enable(struct platform_device *pdev) in rcar_cmm_enable() argument
125 ret = pm_runtime_resume_and_get(&pdev->dev); in rcar_cmm_enable()
143 void rcar_cmm_disable(struct platform_device *pdev) in rcar_cmm_disable() argument
145 struct rcar_cmm *rcmm = platform_get_drvdata(pdev); in rcar_cmm_disable()
150 pm_runtime_put(&pdev->dev); in rcar_cmm_disable()
161 int rcar_cmm_init(struct platform_device *pdev) in rcar_cmm_init() argument
179 platform_set_drvdata(pdev, rcmm); in rcar_cmm_probe()
185 pm_runtime_enable(&pdev->dev); in rcar_cmm_probe()
[all …]
/openbmc/linux/drivers/input/misc/
H A Dmax8925_onkey.c66 static int max8925_onkey_probe(struct platform_device *pdev) in max8925_onkey_probe() argument
73 irq[0] = platform_get_irq(pdev, 0); in max8925_onkey_probe()
77 irq[1] = platform_get_irq(pdev, 1); in max8925_onkey_probe()
86 input = devm_input_allocate_device(&pdev->dev); in max8925_onkey_probe()
92 info->dev = &pdev->dev; in max8925_onkey_probe()
99 input->dev.parent = &pdev->dev; in max8925_onkey_probe()
102 error = devm_request_threaded_irq(&pdev->dev, irq[0], NULL, in max8925_onkey_probe()
126 platform_set_drvdata(pdev, info); in max8925_onkey_probe()
127 device_init_wakeup(&pdev->dev, 1); in max8925_onkey_probe()
134 struct platform_device *pdev = to_platform_device(dev); in max8925_onkey_suspend() local
[all …]
/openbmc/linux/drivers/net/can/sja1000/
H A Dpeak_pcmcia.c515 struct pcmcia_device *pdev = card->pdev; in pcan_add_channels() local
582 dev_info(&pdev->dev, in pcan_add_channels()
597 pdev->io_lines = 10; in pcan_conf_check()
621 pdev->priv = NULL; in pcan_free()
640 if (!pdev->irq) { in pcan_probe()
659 card->pdev = pdev; in pcan_probe()
660 pdev->priv = card; in pcan_probe()
675 pdev->prod_id[1] ? pdev->prod_id[1] : "PCAN-PC Card", in pcan_probe()
691 dev_err(&pdev->dev, "couldn't request irq%d\n", pdev->irq); in pcan_probe()
709 pdev->priv = NULL; in pcan_probe()
[all …]
/openbmc/linux/drivers/video/backlight/
H A Daat2870_bl.c20 struct platform_device *pdev; member
43 = dev_get_drvdata(aat2870_bl->pdev->dev.parent); in aat2870_bl_enable()
61 dev_get_drvdata(aat2870_bl->pdev->dev.parent); in aat2870_bl_update_status()
113 dev_err(&pdev->dev, "No platform data\n"); in aat2870_bl_probe()
118 if (pdev->id != AAT2870_ID_BL) { in aat2870_bl_probe()
119 dev_err(&pdev->dev, "Invalid device ID, %d\n", pdev->id); in aat2870_bl_probe()
124 aat2870_bl = devm_kzalloc(&pdev->dev, in aat2870_bl_probe()
136 &pdev->dev, aat2870_bl, &aat2870_bl_ops, in aat2870_bl_probe()
139 dev_err(&pdev->dev, in aat2870_bl_probe()
145 aat2870_bl->pdev = pdev; in aat2870_bl_probe()
[all …]
/openbmc/linux/drivers/hte/
H A Dhte-tegra194-test.c53 struct device *pdev; member
107 dev_set_drvdata(&pdev->dev, &hte); in tegra_hte_test_probe()
108 hte.pdev = &pdev->dev; in tegra_hte_test_probe()
110 hte.gpio_out = gpiod_get(&pdev->dev, "out", 0); in tegra_hte_test_probe()
117 hte.gpio_in = gpiod_get(&pdev->dev, "in", 0); in tegra_hte_test_probe()
119 dev_err(&pdev->dev, "failed to get gpio in\n"); in tegra_hte_test_probe()
126 dev_err(&pdev->dev, "failed to set output\n"); in tegra_hte_test_probe()
133 dev_err(&pdev->dev, "failed to set input\n"); in tegra_hte_test_probe()
155 cnt = of_hte_req_count(hte.pdev); in tegra_hte_test_probe()
186 ret = hte_ts_get(hte.pdev, &hte.desc[i], i); in tegra_hte_test_probe()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/soc/
H A Dintel_gmch.c26 if (!i915->gmch.pdev) { in intel_gmch_bridge_setup()
32 i915->gmch.pdev); in intel_gmch_bridge_setup()
46 pci_read_config_dword(i915->gmch.pdev, reg, &temp_lo); in intel_alloc_mchbar_resource()
57 ret = pci_bus_alloc_resource(i915->gmch.pdev->bus, in intel_alloc_mchbar_resource()
62 i915->gmch.pdev); in intel_alloc_mchbar_resource()
70 pci_write_config_dword(i915->gmch.pdev, reg + 4, in intel_alloc_mchbar_resource()
73 pci_write_config_dword(i915->gmch.pdev, reg, in intel_alloc_mchbar_resource()
109 pci_write_config_dword(i915->gmch.pdev, DEVEN, in intel_gmch_bar_setup()
125 pci_read_config_dword(i915->gmch.pdev, DEVEN, in intel_gmch_bar_teardown()
128 pci_write_config_dword(i915->gmch.pdev, DEVEN, in intel_gmch_bar_teardown()
[all …]
/openbmc/linux/drivers/crypto/ccp/
H A Dsp-platform.c59 match = of_match_node(sp_of_match, pdev->dev.of_node); in sp_get_of_version()
70 match = acpi_match_device(sp_acpi_match, &pdev->dev); in sp_get_acpi_version()
84 sp_platform->irq_count = platform_irq_count(pdev); in sp_get_irqs()
86 ret = platform_get_irq(pdev, 0); in sp_get_irqs()
96 ret = platform_get_irq(pdev, 1); in sp_get_irqs()
112 struct device *dev = &pdev->dev; in sp_platform_probe()
126 sp->dev_vdata = pdev->dev.of_node ? sp_get_of_version(pdev) in sp_platform_probe()
127 : sp_get_acpi_version(pdev); in sp_platform_probe()
179 struct device *dev = &pdev->dev; in sp_platform_remove()
193 struct device *dev = &pdev->dev; in sp_platform_suspend()
[all …]
/openbmc/linux/drivers/net/wireless/intersil/orinoco/
H A Dorinoco_plx.c188 err = pci_enable_device(pdev); in orinoco_plx_init_one()
268 pci_set_drvdata(pdev, priv); in orinoco_plx_init_one()
275 free_irq(pdev->irq, priv); in orinoco_plx_init_one()
281 pci_iounmap(pdev, hermes_io); in orinoco_plx_init_one()
284 pci_iounmap(pdev, attr_io); in orinoco_plx_init_one()
287 pci_iounmap(pdev, bridge_io); in orinoco_plx_init_one()
290 pci_release_regions(pdev); in orinoco_plx_init_one()
293 pci_disable_device(pdev); in orinoco_plx_init_one()
305 free_irq(pdev->irq, priv); in orinoco_plx_remove_one()
310 pci_release_regions(pdev); in orinoco_plx_remove_one()
[all …]
H A Dorinoco_nortel.c149 err = pci_enable_device(pdev); in orinoco_nortel_init_one()
229 pci_set_drvdata(pdev, priv); in orinoco_nortel_init_one()
236 free_irq(pdev->irq, priv); in orinoco_nortel_init_one()
242 pci_iounmap(pdev, hermes_io); in orinoco_nortel_init_one()
245 pci_iounmap(pdev, attr_io); in orinoco_nortel_init_one()
248 pci_iounmap(pdev, bridge_io); in orinoco_nortel_init_one()
251 pci_release_regions(pdev); in orinoco_nortel_init_one()
254 pci_disable_device(pdev); in orinoco_nortel_init_one()
269 free_irq(pdev->irq, priv); in orinoco_nortel_remove_one()
274 pci_release_regions(pdev); in orinoco_nortel_remove_one()
[all …]
/openbmc/linux/drivers/rtc/
H A Drtc-xgene.c145 platform_set_drvdata(pdev, pdata); in xgene_rtc_probe()
155 irq = platform_get_irq(pdev, 0); in xgene_rtc_probe()
159 dev_name(&pdev->dev), pdata); in xgene_rtc_probe()
165 pdata->clk = devm_clk_get(&pdev->dev, NULL); in xgene_rtc_probe()
177 ret = device_init_wakeup(&pdev->dev, 1); in xgene_rtc_probe()
199 xgene_rtc_alarm_irq_enable(&pdev->dev, 0); in xgene_rtc_remove()
200 device_init_wakeup(&pdev->dev, 0); in xgene_rtc_remove()
210 irq = platform_get_irq(pdev, 0); in xgene_rtc_suspend()
217 if (device_may_wakeup(&pdev->dev)) { in xgene_rtc_suspend()
235 irq = platform_get_irq(pdev, 0); in xgene_rtc_resume()
[all …]
/openbmc/linux/drivers/input/keyboard/
H A Dst-keyscan.c130 if (!pdev->dev.of_node) { in keyscan_probe()
131 dev_err(&pdev->dev, "no DT data present\n"); in keyscan_probe()
146 input_dev->name = pdev->name; in keyscan_probe()
148 input_dev->dev.parent = &pdev->dev; in keyscan_probe()
165 dev_err(&pdev->dev, "failed to build keymap\n"); in keyscan_probe()
177 dev_err(&pdev->dev, "cannot get clock\n"); in keyscan_probe()
189 keypad_data->irq = platform_get_irq(pdev, 0); in keyscan_probe()
194 pdev->name, keypad_data); in keyscan_probe()
196 dev_err(&pdev->dev, "failed to request IRQ\n"); in keyscan_probe()
206 platform_set_drvdata(pdev, keypad_data); in keyscan_probe()
[all …]
/openbmc/linux/drivers/infiniband/hw/qib/
H A Dqib_pcie.c67 ret = pci_enable_device(pdev); in qib_pcie_init()
106 pci_set_master(pdev); in qib_pcie_init()
110 pci_disable_device(pdev); in qib_pcie_init()
111 pci_release_regions(pdev); in qib_pcie_init()
127 dd->pcidev = pdev; in qib_pcie_ddinit()
128 pci_set_drvdata(pdev, dd); in qib_pcie_ddinit()
131 len = pci_resource_len(pdev, 0); in qib_pcie_ddinit()
183 struct pci_dev *pdev = dd->pcidev; in qib_cache_msi_info() local
191 pci_read_config_word(pdev, in qib_cache_msi_info()
531 pci_disable_device(pdev); in qib_pci_error_detected()
[all …]
/openbmc/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_io.c110 struct pci_dev *pdev = hwif->pdev; in write_sq_ctxts() local
154 struct pci_dev *pdev = hwif->pdev; in write_rq_ctxts() local
213 struct pci_dev *pdev = hwif->pdev; in hinic_clean_queue_offload_ctxt() local
277 struct pci_dev *pdev = hwif->pdev; in init_qp() local
377 struct pci_dev *pdev = hwif->pdev; in hinic_io_create_qps() local
450 devm_kfree(&pdev->dev, func_to_io->sq_db); in hinic_io_create_qps()
453 devm_kfree(&pdev->dev, func_to_io->rq_wq); in hinic_io_create_qps()
459 devm_kfree(&pdev->dev, func_to_io->qps); in hinic_io_create_qps()
471 struct pci_dev *pdev = hwif->pdev; in hinic_io_destroy_qps() local
488 devm_kfree(&pdev->dev, func_to_io->qps); in hinic_io_destroy_qps()
[all …]

12345678910>>...298