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()
67 mem->va = dma_alloc_coherent(&plat_dev->dev, size, &mem->dma_addr, GFP_KERNEL); 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()
74 mtk_v4l2_debug(plat_dev, 3, "[%d] - va = %p dma = 0x%lx size = 0x%lx", id, mem->va, 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()
[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", \
51 #define mtk_vcodec_debug(inst_id, plat_dev, fmt, args...) \ argument
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)
[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
158 struct sunplus_rtc *sp_rtc = dev_get_drvdata(&plat_dev->dev); in sp_rtc_irq_handler()
161 dev_dbg(&plat_dev->dev, "[RTC] ALARM INT\n"); in sp_rtc_irq_handler()
229 static int sp_rtc_probe(struct platform_device *plat_dev) in sp_rtc_probe() argument
234 sp_rtc = devm_kzalloc(&plat_dev->dev, sizeof(*sp_rtc), GFP_KERNEL); in sp_rtc_probe()
238 sp_rtc->reg_base = devm_platform_ioremap_resource_byname(plat_dev, RTC_REG_NAME); in sp_rtc_probe()
240 return dev_err_probe(&plat_dev->dev, PTR_ERR(sp_rtc->reg_base), in sp_rtc_probe()
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()
249 ret = devm_request_irq(&plat_dev->dev, sp_rtc->irq, sp_rtc_irq_handler, 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.c306 static int init_cc_resources(struct platform_device *plat_dev) in init_cc_resources() argument
310 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()
353 new_drvdata->cc_base = devm_platform_get_and_ioremap_resource(plat_dev, in init_cc_resources()
364 irq = platform_get_irq(plat_dev, 0); in init_cc_resources()
583 static void cleanup_cc_resources(struct platform_device *plat_dev) in cleanup_cc_resources() argument
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
[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
1297 static int pch_spi_pd_probe(struct platform_device *plat_dev) in pch_spi_pd_probe() argument
1301 struct pch_spi_board_data *board_dat = dev_get_platdata(&plat_dev->dev); in pch_spi_pd_probe()
1304 dev_dbg(&plat_dev->dev, "%s:debug\n", __func__); in pch_spi_pd_probe()
1309 dev_err(&plat_dev->dev, "spi_alloc_master[%d] failed.\n", in pch_spi_pd_probe()
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()
1324 dev_err(&plat_dev->dev, "%s pci_iomap failed\n", __func__); in pch_spi_pd_probe()
1328 data->io_remap_addr += PCH_ADDRESS_SIZE * plat_dev->id; in pch_spi_pd_probe()
[all …]
/openbmc/linux/drivers/net/fjes/
H A Dfjes_main.c123 struct platform_device *plat_dev; in fjes_acpi_add() local
138 plat_dev = platform_device_register_simple(DRV_NAME, 0, fjes_resource, in fjes_acpi_add()
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
152 plat_dev = (struct platform_device *)acpi_driver_data(device); in fjes_acpi_remove()
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()
[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
/openbmc/linux/sound/soc/intel/atom/sst/
H A Dsst_acpi.c264 struct platform_device *plat_dev; in sst_acpi_probe() local
337 plat_dev = platform_device_register_data(dev, pdata->platform, -1, in sst_acpi_probe()
339 if (IS_ERR(plat_dev)) { in sst_acpi_probe()
342 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
/openbmc/linux/drivers/media/platform/allegro-dvt/
H A Dallegro-core.c148 struct platform_device *plat_dev; member
745 buffer->vaddr = dma_alloc_coherent(&dev->plat_dev->dev, size, in allegro_alloc_buffer()
758 dma_free_coherent(&dev->plat_dev->dev, buffer->size, in allegro_free_buffer()
778 mbox = devm_kmalloc(&dev->plat_dev->dev, sizeof(*mbox), GFP_KERNEL); in allegro_mbox_init()
1668 size = nal_h264_write_sps(&dev->plat_dev->dev, dest, n, sps); in allegro_h264_write_sps()
1705 size = nal_h264_write_pps(&dev->plat_dev->dev, dest, n, pps); in allegro_h264_write_pps()
1753 size = nal_hevc_write_vps(&dev->plat_dev->dev, dest, n, vps); in allegro_hevc_write_vps()
1866 size = nal_hevc_write_sps(&dev->plat_dev->dev, dest, n, sps); in allegro_hevc_write_sps()
1913 size = nal_hevc_write_pps(&dev->plat_dev->dev, dest, n, pps); in allegro_hevc_write_pps()
2100 len = nal_h264_write_filler(&dev->plat_dev->dev, curr, free); in allegro_channel_finish_frame()
[all …]

12