Home
last modified time | relevance | path

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

12

/linux/drivers/media/platform/mediatek/vcodec/common/
H A Dmtk_vcodec_util.c51 struct platform_device *plat_dev; in mtk_vcodec_mem_alloc() local
57 plat_dev = enc_ctx->dev->plat_dev; in mtk_vcodec_mem_alloc()
62 plat_dev = dec_ctx->dev->plat_dev; in mtk_vcodec_mem_alloc()
66 mem->va = dma_alloc_attrs(&plat_dev->dev, mem->size, &mem->dma_addr, in mtk_vcodec_mem_alloc()
69 mtk_v4l2_err(plat_dev, "%s dma_alloc size=0x%zx failed!", in mtk_vcodec_mem_alloc()
74 mtk_v4l2_debug(plat_dev, 3, "[%d] - va = %p dma = 0x%lx size = 0x%zx", id, mem->va, in mtk_vcodec_mem_alloc()
84 struct platform_device *plat_dev; in mtk_vcodec_mem_free() local
90 plat_dev = enc_ctx->dev->plat_dev; in mtk_vcodec_mem_free()
95 plat_dev = dec_ctx->dev->plat_dev; in mtk_vcodec_mem_free()
100 mtk_v4l2_err(plat_dev, "%s: Tried to free a NULL VA", __func__); 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.c52 dev_err(&dev->plat_dev->dev, "Watchdog timeout!!"); in mtk_vcodec_vpu_reset_dec_handler()
68 dev_err(&dev->plat_dev->dev, "Watchdog timeout!!"); in mtk_vcodec_vpu_reset_enc_handler()
91 struct platform_device *plat_dev; in mtk_vcodec_fw_vpu_init() local
98 plat_dev = enc_dev->plat_dev; in mtk_vcodec_fw_vpu_init()
103 plat_dev = dec_dev->plat_dev; in mtk_vcodec_fw_vpu_init()
110 fw_pdev = vpu_get_plat_device(plat_dev); in mtk_vcodec_fw_vpu_init()
112 dev_err(&plat_dev->dev, "firmware device is not ready"); in mtk_vcodec_fw_vpu_init()
121 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()
/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, true); in test_probe()
/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()
/linux/drivers/perf/
H A Ddwc_pcie_pmu.c109 struct platform_device *plat_dev; member
636 platform_device_unregister(dev_info->plat_dev); in dwc_pcie_unregister_dev()
643 struct platform_device *plat_dev; in dwc_pcie_register_dev() local
648 plat_dev = platform_device_register_simple("dwc_pcie_pmu", sbdf, NULL, 0); in dwc_pcie_register_dev()
649 if (IS_ERR(plat_dev)) in dwc_pcie_register_dev()
650 return PTR_ERR(plat_dev); in dwc_pcie_register_dev()
654 platform_device_unregister(plat_dev); in dwc_pcie_register_dev()
659 dev_info->plat_dev = plat_dev; in dwc_pcie_register_dev()
695 static int dwc_pcie_pmu_probe(struct platform_device *plat_dev) in dwc_pcie_pmu_probe() argument
704 sbdf = plat_dev->id; in dwc_pcie_pmu_probe()
[all …]
/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)
/linux/drivers/usb/cdns3/
H A Dcdns3-pci-wrap.c18 struct platform_device *plat_dev; member
159 wrap->plat_dev = platform_device_register_full(&plat_info); in cdns3_pci_probe()
160 if (IS_ERR(wrap->plat_dev)) { in cdns3_pci_probe()
161 err = PTR_ERR(wrap->plat_dev); in cdns3_pci_probe()
180 platform_device_unregister(wrap->plat_dev); in cdns3_pci_remove()
/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_host[%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 …]
/linux/drivers/net/fjes/
H A Dfjes_main.c121 struct platform_device *plat_dev; in fjes_acpi_add() local
136 plat_dev = platform_device_register_simple(DRV_NAME, 0, fjes_resource, in fjes_acpi_add()
138 if (IS_ERR(plat_dev)) in fjes_acpi_add()
139 return PTR_ERR(plat_dev); in fjes_acpi_add()
141 device->driver_data = plat_dev; in fjes_acpi_add()
148 struct platform_device *plat_dev; in fjes_acpi_remove() local
150 plat_dev = (struct platform_device *)acpi_driver_data(device); in fjes_acpi_remove()
151 platform_device_unregister(plat_dev); in fjes_acpi_remove()
1332 static int fjes_probe(struct platform_device *plat_dev) in fjes_probe() argument
1349 SET_NETDEV_DEV(netdev, &plat_dev->dev); in fjes_probe()
[all …]
H A Dfjes_ethtool.c132 struct platform_device *plat_dev; in fjes_get_drvinfo() local
134 plat_dev = adapter->plat_dev; in fjes_get_drvinfo()
142 "platform:%s", plat_dev->name); in fjes_get_drvinfo()
/linux/drivers/acpi/riscv/
H A Drimt.c112 struct device *plat_dev = dev; in rimt_match_node_callback() local
123 adev = ACPI_COMPANION(plat_dev); in rimt_match_node_callback()
127 plat_dev = plat_dev->parent; in rimt_match_node_callback()
128 } while (plat_dev); in rimt_match_node_callback()
135 dev_warn(plat_dev, "Can't get device full path name\n"); in rimt_match_node_callback()
/linux/drivers/media/platform/mediatek/vcodec/decoder/
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_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()
336 struct device *dev = &vdec_dev->plat_dev->dev; in mtk_vcodec_dec_get_chip_name()
367 dev->plat_dev = pdev; in mtk_vcodec_probe()
/linux/drivers/gpu/drm/imagination/
H A Dpvr_power.c372 struct platform_device *plat_dev = to_platform_device(dev); in pvr_power_device_suspend() local
373 struct drm_device *drm_dev = platform_get_drvdata(plat_dev); in pvr_power_device_suspend()
398 struct platform_device *plat_dev = to_platform_device(dev); in pvr_power_device_resume() local
399 struct drm_device *drm_dev = platform_get_drvdata(plat_dev); in pvr_power_device_resume()
433 struct platform_device *plat_dev = to_platform_device(dev); in pvr_power_device_idle() local
434 struct drm_device *drm_dev = platform_get_drvdata(plat_dev); in pvr_power_device_idle()
H A Dpvr_drv.c1400 pvr_probe(struct platform_device *plat_dev) in pvr_probe() argument
1406 pvr_dev = devm_drm_dev_alloc(&plat_dev->dev, &pvr_drm_driver, in pvr_probe()
1413 platform_set_drvdata(plat_dev, drm_dev); in pvr_probe()
1427 devm_pm_runtime_enable(&plat_dev->dev); in pvr_probe()
1428 pm_runtime_mark_last_busy(&plat_dev->dev); in pvr_probe()
1430 pm_runtime_set_autosuspend_delay(&plat_dev->dev, 50); in pvr_probe()
1431 pm_runtime_use_autosuspend(&plat_dev->dev); in pvr_probe()
1463 static void pvr_remove(struct platform_device *plat_dev) in pvr_remove() argument
1465 struct drm_device *drm_dev = platform_get_drvdata(plat_dev); in pvr_remove()
H A Dpvr_device.c58 struct platform_device *plat_dev = to_platform_device(drm_dev->dev); in pvr_device_reg_init() local
65 regs = devm_platform_get_and_ioremap_resource(plat_dev, 0, &regs_resource); in pvr_device_reg_init()
288 struct platform_device *plat_dev = to_platform_device(drm_dev->dev); in pvr_device_irq_init() local
294 pvr_dev->irq = platform_get_irq(plat_dev, 0); in pvr_device_irq_init()
/linux/sound/soc/intel/atom/sst/
H A Dsst_acpi.c265 struct platform_device *plat_dev; in sst_acpi_probe() local
338 plat_dev = platform_device_register_data(dev, pdata->platform, -1, in sst_acpi_probe()
340 if (IS_ERR(plat_dev)) { in sst_acpi_probe()
343 return PTR_ERR(plat_dev); in sst_acpi_probe()
/linux/drivers/media/platform/mediatek/jpeg/
H A Dmtk_jpeg_core.h156 struct platform_device *plat_dev; member
183 struct platform_device *plat_dev; member
/linux/drivers/media/platform/allegro-dvt/
H A Dallegro-core.c148 struct platform_device *plat_dev; member
772 buffer->vaddr = dma_alloc_coherent(&dev->plat_dev->dev, size, in allegro_alloc_buffer()
785 dma_free_coherent(&dev->plat_dev->dev, buffer->size, in allegro_free_buffer()
805 mbox = devm_kmalloc(&dev->plat_dev->dev, sizeof(*mbox), GFP_KERNEL); in allegro_mbox_init()
1718 size = nal_h264_write_sps(&dev->plat_dev->dev, dest, n, sps); in allegro_h264_write_sps()
1755 size = nal_h264_write_pps(&dev->plat_dev->dev, dest, n, pps); in allegro_h264_write_pps()
1803 size = nal_hevc_write_vps(&dev->plat_dev->dev, dest, n, vps); in allegro_hevc_write_vps()
1916 size = nal_hevc_write_sps(&dev->plat_dev->dev, dest, n, sps); in allegro_hevc_write_sps()
1963 size = nal_hevc_write_pps(&dev->plat_dev->dev, dest, n, pps); in allegro_hevc_write_pps()
2150 len = nal_h264_write_filler(&dev->plat_dev->dev, curr, free); in allegro_channel_finish_frame()
[all …]

12