Home
last modified time | relevance | path

Searched refs:plat_dev (Results 1 – 25 of 45) sorted by relevance

12

/openbmc/linux/drivers/media/platform/mediatek/vcodec/common/
H A Dmtk_vcodec_util.c51 struct platform_device *plat_dev; in mtk_vcodec_mem_alloc() local
58 plat_dev = enc_ctx->dev->plat_dev; in mtk_vcodec_mem_alloc()
63 plat_dev = dec_ctx->dev->plat_dev; in mtk_vcodec_mem_alloc()
69 mtk_v4l2_err(plat_dev, "%s dma_alloc size=%ld failed!", in mtk_vcodec_mem_alloc()
70 dev_name(&plat_dev->dev), size); in mtk_vcodec_mem_alloc()
84 struct platform_device *plat_dev; in mtk_vcodec_mem_free() local
91 plat_dev = enc_ctx->dev->plat_dev; in mtk_vcodec_mem_free()
96 plat_dev = dec_ctx->dev->plat_dev; in mtk_vcodec_mem_free()
101 mtk_v4l2_err(plat_dev, "%s dma_free size=%ld failed!", in mtk_vcodec_mem_free()
102 dev_name(&plat_dev->dev), size); in mtk_vcodec_mem_free()
[all …]
H A Dmtk_vcodec_util.h34 #define mtk_v4l2_err(plat_dev, fmt, args...) \ argument
35 dev_err(&(plat_dev)->dev, "[MTK_V4L2][ERROR] " fmt "\n", ##args)
37 #define mtk_vcodec_err(inst_id, plat_dev, fmt, args...) \ argument
38 dev_err(&(plat_dev)->dev, "[MTK_VCODEC][ERROR][%d]: " fmt "\n", inst_id, ##args)
44 #define mtk_v4l2_debug(plat_dev, level, fmt, args...) \ argument
47 dev_dbg(&(plat_dev)->dev, "[MTK_V4L2] %s, %d: " fmt "\n", \
54 dev_dbg(&(plat_dev)->dev, "[MTK_VCODEC][%d]: %s, %d " fmt "\n", \
58 #define mtk_v4l2_debug(plat_dev, level, fmt, args...) \ argument
59 dev_dbg(&(plat_dev)->dev, "[MTK_V4L2]: " fmt "\n", ##args)
61 #define mtk_vcodec_debug(inst_id, plat_dev, fmt, args...) \ argument
[all …]
H A Dmtk_vcodec_fw_vpu.c51 dev_err(&dev->plat_dev->dev, "Watchdog timeout!!"); in mtk_vcodec_vpu_reset_dec_handler()
66 dev_err(&dev->plat_dev->dev, "Watchdog timeout!!"); in mtk_vcodec_vpu_reset_enc_handler()
89 struct platform_device *plat_dev; in mtk_vcodec_fw_vpu_init() local
96 plat_dev = enc_dev->plat_dev; in mtk_vcodec_fw_vpu_init()
101 plat_dev = dec_dev->plat_dev; in mtk_vcodec_fw_vpu_init()
108 fw_pdev = vpu_get_plat_device(plat_dev); in mtk_vcodec_fw_vpu_init()
110 dev_err(&plat_dev->dev, "firmware device is not ready"); in mtk_vcodec_fw_vpu_init()
119 fw = devm_kzalloc(&plat_dev->dev, sizeof(*fw), GFP_KERNEL); in mtk_vcodec_fw_vpu_init()
H A Dmtk_vcodec_fw_scp.c59 struct platform_device *plat_dev; in mtk_vcodec_fw_scp_init() local
65 plat_dev = enc_dev->plat_dev; in mtk_vcodec_fw_scp_init()
69 plat_dev = dec_dev->plat_dev; in mtk_vcodec_fw_scp_init()
75 scp = scp_get(plat_dev); in mtk_vcodec_fw_scp_init()
77 dev_err(&plat_dev->dev, "could not get vdec scp handle"); in mtk_vcodec_fw_scp_init()
81 fw = devm_kzalloc(&plat_dev->dev, sizeof(*fw), GFP_KERNEL); in mtk_vcodec_fw_scp_init()
H A Dmtk_vcodec_fw.c10 struct platform_device *plat_dev; in mtk_vcodec_fw_select() local
13 plat_dev = ((struct mtk_vcodec_enc_dev *)priv)->plat_dev; in mtk_vcodec_fw_select()
15 plat_dev = ((struct mtk_vcodec_dec_dev *)priv)->plat_dev; in mtk_vcodec_fw_select()
23 dev_err(&plat_dev->dev, "Invalid vcodec fw type"); in mtk_vcodec_fw_select()
H A Dmtk_vcodec_intr.c33 pdev = ctx->dev->plat_dev; in mtk_vcodec_wait_for_done_ctx()
43 pdev = ctx->dev->plat_dev; in mtk_vcodec_wait_for_done_ctx()
/openbmc/linux/drivers/rtc/
H A Drtc-sunplus.c157 struct platform_device *plat_dev = dev_id; in sp_rtc_irq_handler() local
161 dev_dbg(&plat_dev->dev, "[RTC] ALARM INT\n"); in sp_rtc_irq_handler()
242 dev_dbg(&plat_dev->dev, "res = %pR, reg_base = %p\n", in sp_rtc_probe()
245 sp_rtc->irq = platform_get_irq(plat_dev, 0); in sp_rtc_probe()
250 IRQF_TRIGGER_RISING, "rtc irq", plat_dev); in sp_rtc_probe()
254 sp_rtc->rtcclk = devm_clk_get(&plat_dev->dev, NULL); in sp_rtc_probe()
272 device_init_wakeup(&plat_dev->dev, 1); in sp_rtc_probe()
273 dev_set_drvdata(&plat_dev->dev, sp_rtc); in sp_rtc_probe()
290 if (plat_dev->dev.of_node) in sp_rtc_probe()
291 sp_rtc_set_trickle_charger(plat_dev->dev); in sp_rtc_probe()
[all …]
H A Drtc-test.c115 static int test_probe(struct platform_device *plat_dev) in test_probe() argument
119 rtd = devm_kzalloc(&plat_dev->dev, sizeof(*rtd), GFP_KERNEL); in test_probe()
123 platform_set_drvdata(plat_dev, rtd); in test_probe()
125 rtd->rtc = devm_rtc_allocate_device(&plat_dev->dev); in test_probe()
129 switch (plat_dev->id) { in test_probe()
135 device_init_wakeup(&plat_dev->dev, 1); in test_probe()
/openbmc/linux/drivers/net/ethernet/cadence/
H A Dmacb_pci.c31 struct platform_device *plat_dev; in macb_probe() local
89 plat_dev = platform_device_register_full(&plat_info); in macb_probe()
90 if (IS_ERR(plat_dev)) { in macb_probe()
91 err = PTR_ERR(plat_dev); in macb_probe()
95 pci_set_drvdata(pdev, plat_dev); in macb_probe()
111 struct platform_device *plat_dev = pci_get_drvdata(pdev); in macb_remove() local
112 struct macb_platform_data *plat_data = dev_get_platdata(&plat_dev->dev); in macb_remove()
116 platform_device_unregister(plat_dev); in macb_remove()
/openbmc/linux/drivers/crypto/ccree/
H A Dcc_driver.c310 struct device *dev = &plat_dev->dev; in init_cc_resources()
340 platform_set_drvdata(plat_dev, new_drvdata); in init_cc_resources()
341 new_drvdata->plat_dev = plat_dev; in init_cc_resources()
364 irq = platform_get_irq(plat_dev, 0); in init_cc_resources()
585 struct device *dev = &plat_dev->dev; in cleanup_cc_resources()
587 (struct cc_drvdata *)platform_get_drvdata(plat_dev); in cleanup_cc_resources()
611 static int ccree_probe(struct platform_device *plat_dev) in ccree_probe() argument
614 struct device *dev = &plat_dev->dev; in ccree_probe()
617 rc = init_cc_resources(plat_dev); in ccree_probe()
628 struct device *dev = &plat_dev->dev; in ccree_remove()
[all …]
H A Dcc_driver.h136 struct platform_device *plat_dev; member
196 return &drvdata->plat_dev->dev; in drvdata_to_dev()
/openbmc/linux/drivers/media/platform/mediatek/vcodec/encoder/
H A Dmtk_vcodec_enc_drv.h196 struct platform_device *plat_dev; member
240 mtk_vcodec_err((ctx)->id, (ctx)->dev->plat_dev, fmt, ##args)
243 mtk_vcodec_debug((ctx)->id, (ctx)->dev->plat_dev, fmt, ##args)
245 #define mtk_v4l2_venc_err(ctx, fmt, args...) mtk_v4l2_err((ctx)->dev->plat_dev, fmt, ##args)
248 mtk_v4l2_debug((ctx)->dev->plat_dev, level, fmt, ##args)
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/
H A Dmtk_vcodec_dec_drv.h260 struct platform_device *plat_dev; member
316 mtk_vcodec_err((ctx)->id, (ctx)->dev->plat_dev, fmt, ##args)
319 mtk_vcodec_debug((ctx)->id, (ctx)->dev->plat_dev, fmt, ##args)
321 #define mtk_v4l2_vdec_err(ctx, fmt, args...) mtk_v4l2_err((ctx)->dev->plat_dev, fmt, ##args)
324 mtk_v4l2_debug((ctx)->dev->plat_dev, level, fmt, ##args)
H A Dmtk_vcodec_dec_hw.c39 struct platform_device *pdev = vdec_dev->plat_dev; in mtk_vdec_hw_prob_done()
101 struct platform_device *pdev = dev->plat_dev; in mtk_vdec_hw_init_irq()
144 subdev_dev->plat_dev = pdev; in mtk_vdec_hw_probe()
H A Dmtk_vcodec_dec_pm.c120 dev_err(&vdec_dev->plat_dev->dev, "Failed to get hw dev\n"); in mtk_vcodec_dec_enable_irq()
138 dev_err(&vdec_dev->plat_dev->dev, "Failed to get hw dev\n"); in mtk_vcodec_dec_disable_irq()
185 dev_err(&vdec_dev->plat_dev->dev, "Failed to get hw dev\n"); in mtk_vcodec_dec_get_pm()
H A Dmtk_vcodec_dec_hw.h48 struct platform_device *plat_dev; member
H A Dmtk_vcodec_dec_drv.c90 struct platform_device *pdev = dev->plat_dev; in mtk_vcodec_get_reg_bases()
162 struct platform_device *pdev = dev->plat_dev; in mtk_vcodec_init_dec_resources()
277 mtk_v4l2_vdec_dbg(0, ctx, "%s decoder [%d]", dev_name(&dev->plat_dev->dev), ctx->id); in fops_vcodec_open()
346 dev->plat_dev = pdev; in mtk_vcodec_probe()
/openbmc/linux/drivers/usb/cdns3/
H A Dcdns3-pci-wrap.c18 struct platform_device *plat_dev; member
164 wrap->plat_dev = platform_device_register_full(&plat_info); in cdns3_pci_probe()
165 if (IS_ERR(wrap->plat_dev)) { in cdns3_pci_probe()
167 err = PTR_ERR(wrap->plat_dev); in cdns3_pci_probe()
186 platform_device_unregister(wrap->plat_dev); in cdns3_pci_remove()
/openbmc/linux/drivers/spi/
H A Dspi-topcliff-pch.c183 struct platform_device *plat_dev; member
1310 plat_dev->id); in pch_spi_pd_probe()
1317 platform_set_drvdata(plat_dev, data); in pch_spi_pd_probe()
1321 PCH_ADDRESS_SIZE * plat_dev->id; in pch_spi_pd_probe()
1331 plat_dev->id, data->io_remap_addr); in pch_spi_pd_probe()
1342 data->plat_dev = plat_dev; in pch_spi_pd_probe()
1345 data->ch = plat_dev->id; in pch_spi_pd_probe()
1362 dev_err(&plat_dev->dev, in pch_spi_pd_probe()
1379 dev_err(&plat_dev->dev, in pch_spi_pd_probe()
1406 dev_dbg(&plat_dev->dev, "%s:[ch%d] irq=%d\n", in pch_spi_pd_remove()
[all …]
/openbmc/linux/drivers/net/fjes/
H A Dfjes_main.c123 struct platform_device *plat_dev; in fjes_acpi_add() local
140 if (IS_ERR(plat_dev)) in fjes_acpi_add()
141 return PTR_ERR(plat_dev); in fjes_acpi_add()
143 device->driver_data = plat_dev; in fjes_acpi_add()
150 struct platform_device *plat_dev; in fjes_acpi_remove() local
153 platform_device_unregister(plat_dev); in fjes_acpi_remove()
1335 static int fjes_probe(struct platform_device *plat_dev) in fjes_probe() argument
1352 SET_NETDEV_DEV(netdev, &plat_dev->dev); in fjes_probe()
1354 dev_set_drvdata(&plat_dev->dev, netdev); in fjes_probe()
1357 adapter->plat_dev = plat_dev; in fjes_probe()
[all …]
H A Dfjes_ethtool.c150 struct platform_device *plat_dev; in fjes_get_drvinfo() local
152 plat_dev = adapter->plat_dev; in fjes_get_drvinfo()
160 "platform:%s", plat_dev->name); in fjes_get_drvinfo()
H A Dfjes.h25 struct platform_device *plat_dev; member
H A Dfjes_debugfs.c54 const char *name = dev_name(&adapter->plat_dev->dev); in fjes_dbg_adapter_init()
/openbmc/linux/sound/soc/intel/atom/sst/
H A Dsst_acpi.c242 struct platform_device *plat_dev; in sst_acpi_probe() local
292 plat_dev = platform_device_register_data(dev, pdata->platform, -1, in sst_acpi_probe()
294 if (IS_ERR(plat_dev)) { in sst_acpi_probe()
297 return PTR_ERR(plat_dev); in sst_acpi_probe()
/openbmc/linux/drivers/media/platform/mediatek/jpeg/
H A Dmtk_jpeg_core.h153 struct platform_device *plat_dev; member
180 struct platform_device *plat_dev; member

12