Home
last modified time | relevance | path

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

12

/Linux-v5.15/drivers/net/ethernet/cadence/
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()
/Linux-v5.15/drivers/crypto/ccree/
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()
352 req_mem_cc_regs = platform_get_resource(plat_dev, IORESOURCE_MEM, 0); in init_cc_resources()
364 irq = platform_get_irq(plat_dev, 0); in init_cc_resources()
588 static void cleanup_cc_resources(struct platform_device *plat_dev) in cleanup_cc_resources() argument
590 struct device *dev = &plat_dev->dev; in cleanup_cc_resources()
592 (struct cc_drvdata *)platform_get_drvdata(plat_dev); in cleanup_cc_resources()
616 static int ccree_probe(struct platform_device *plat_dev) in ccree_probe() argument
[all …]
Dcc_driver.h136 struct platform_device *plat_dev; member
196 return &drvdata->plat_dev->dev; in drvdata_to_dev()
Dcc_debugfs.c77 drvdata->dir = debugfs_create_dir(drvdata->plat_dev->name, in cc_debugfs_init()
/Linux-v5.15/drivers/rtc/
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()
/Linux-v5.15/drivers/usb/cdns3/
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()
162 err = PTR_ERR(wrap->plat_dev); in cdns3_pci_probe()
181 platform_device_unregister(wrap->plat_dev); in cdns3_pci_remove()
/Linux-v5.15/drivers/spi/
Dspi-topcliff-pch.c182 struct platform_device *plat_dev; member
1319 static int pch_spi_pd_probe(struct platform_device *plat_dev) in pch_spi_pd_probe() argument
1323 struct pch_spi_board_data *board_dat = dev_get_platdata(&plat_dev->dev); in pch_spi_pd_probe()
1326 dev_dbg(&plat_dev->dev, "%s:debug\n", __func__); in pch_spi_pd_probe()
1331 dev_err(&plat_dev->dev, "spi_alloc_master[%d] failed.\n", in pch_spi_pd_probe()
1332 plat_dev->id); in pch_spi_pd_probe()
1339 platform_set_drvdata(plat_dev, data); in pch_spi_pd_probe()
1343 PCH_ADDRESS_SIZE * plat_dev->id; in pch_spi_pd_probe()
1346 dev_err(&plat_dev->dev, "%s pci_iomap failed\n", __func__); in pch_spi_pd_probe()
1350 data->io_remap_addr += PCH_ADDRESS_SIZE * plat_dev->id; in pch_spi_pd_probe()
[all …]
/Linux-v5.15/drivers/media/platform/mtk-vcodec/
Dmtk_vcodec_fw_scp.c61 scp = scp_get(dev->plat_dev); in mtk_vcodec_fw_scp_init()
67 fw = devm_kzalloc(&dev->plat_dev->dev, sizeof(*fw), GFP_KERNEL); in mtk_vcodec_fw_scp_init()
Dmtk_vcodec_fw_vpu.c97 fw_pdev = vpu_get_plat_device(dev->plat_dev); in mtk_vcodec_fw_vpu_init()
104 fw = devm_kzalloc(&dev->plat_dev->dev, sizeof(*fw), GFP_KERNEL); in mtk_vcodec_fw_vpu_init()
Dmtk_vcodec_util.c41 struct device *dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_mem_alloc()
64 struct device *dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_mem_free()
Dmtk_vcodec_enc_pm.c26 pdev = mtkdev->plat_dev; in mtk_vcodec_init_enc_pm()
46 pdev = mtkdev->plat_dev; in mtk_vcodec_init_enc_pm()
Dmtk_vcodec_dec_pm.c25 pdev = mtkdev->plat_dev; in mtk_vcodec_init_dec_pm()
41 pdev = mtkdev->plat_dev; in mtk_vcodec_init_dec_pm()
Dmtk_vcodec_dec_drv.c153 mtk_v4l2_debug(0, "%s decoder [%d]", dev_name(&dev->plat_dev->dev), in fops_vcodec_open()
225 dev->plat_dev = pdev; in mtk_vcodec_probe()
Dmtk_vcodec_enc_drv.c195 mtk_v4l2_debug(0, "%s encoder [%d]", dev_name(&dev->plat_dev->dev), in fops_vcodec_open()
256 dev->plat_dev = pdev; in mtk_vcodec_probe()
Dmtk_vcodec_drv.h382 struct platform_device *plat_dev; member
Dmtk_vcodec_enc.c816 ret = pm_runtime_resume_and_get(&ctx->dev->plat_dev->dev); in vb2ops_venc_start_streaming()
848 ret = pm_runtime_put(&ctx->dev->plat_dev->dev); in vb2ops_venc_start_streaming()
906 ret = pm_runtime_put(&ctx->dev->plat_dev->dev); in vb2ops_venc_stop_streaming()
1303 src_vq->dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_enc_queue_init()
1317 dst_vq->dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_enc_queue_init()
/Linux-v5.15/drivers/net/fjes/
Dfjes_main.c144 struct platform_device *plat_dev; in fjes_acpi_add() local
159 plat_dev = platform_device_register_simple(DRV_NAME, 0, fjes_resource, in fjes_acpi_add()
161 if (IS_ERR(plat_dev)) in fjes_acpi_add()
162 return PTR_ERR(plat_dev); in fjes_acpi_add()
164 device->driver_data = plat_dev; in fjes_acpi_add()
171 struct platform_device *plat_dev; in fjes_acpi_remove() local
173 plat_dev = (struct platform_device *)acpi_driver_data(device); in fjes_acpi_remove()
174 platform_device_unregister(plat_dev); in fjes_acpi_remove()
1200 static int fjes_probe(struct platform_device *plat_dev) in fjes_probe() argument
1216 SET_NETDEV_DEV(netdev, &plat_dev->dev); in fjes_probe()
[all …]
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()
Dfjes.h25 struct platform_device *plat_dev; member
Dfjes_debugfs.c54 const char *name = dev_name(&adapter->plat_dev->dev); in fjes_dbg_adapter_init()
/Linux-v5.15/sound/soc/intel/atom/sst/
Dsst_acpi.c243 struct platform_device *plat_dev; in sst_acpi_probe() local
293 plat_dev = platform_device_register_data(dev, pdata->platform, -1, in sst_acpi_probe()
295 if (IS_ERR(plat_dev)) { in sst_acpi_probe()
298 return PTR_ERR(plat_dev); in sst_acpi_probe()
/Linux-v5.15/drivers/media/platform/s5p-mfc/
Ds5p_mfc_pm.c30 pm->device = &dev->plat_dev->dev; in s5p_mfc_init_pm()
Ds5p_mfc.c1118 struct device *dev = &mfc_dev->plat_dev->dev; in s5p_mfc_configure_2port_memory()
1186 struct device *dev = &mfc_dev->plat_dev->dev; in s5p_mfc_configure_common_memory()
1240 struct device *dev = &mfc_dev->plat_dev->dev; in s5p_mfc_unconfigure_common_memory()
1250 struct device *dev = &mfc_dev->plat_dev->dev; in s5p_mfc_configure_dma_memory()
1260 struct device *dev = &mfc_dev->plat_dev->dev; in s5p_mfc_unconfigure_dma_memory()
1284 dev->plat_dev = pdev; in s5p_mfc_probe()
1285 if (!dev->plat_dev) { in s5p_mfc_probe()
Ds5p_mfc_ctrl.c61 dev->variant->fw_name[i], &dev->plat_dev->dev); in s5p_mfc_load_firmware()
/Linux-v5.15/drivers/media/platform/allegro-dvt/
Dallegro-core.c132 struct platform_device *plat_dev; member
720 buffer->vaddr = dma_alloc_coherent(&dev->plat_dev->dev, size, in allegro_alloc_buffer()
733 dma_free_coherent(&dev->plat_dev->dev, buffer->size, in allegro_free_buffer()
753 mbox = devm_kmalloc(&dev->plat_dev->dev, sizeof(*mbox), GFP_KERNEL); in allegro_mbox_init()
1583 size = nal_h264_write_sps(&dev->plat_dev->dev, dest, n, sps); in allegro_h264_write_sps()
1620 size = nal_h264_write_pps(&dev->plat_dev->dev, dest, n, pps); in allegro_h264_write_pps()
1668 size = nal_hevc_write_vps(&dev->plat_dev->dev, dest, n, vps); in allegro_hevc_write_vps()
1734 size = nal_hevc_write_sps(&dev->plat_dev->dev, dest, n, sps); in allegro_hevc_write_sps()
1781 size = nal_hevc_write_pps(&dev->plat_dev->dev, dest, n, pps); in allegro_hevc_write_pps()
1968 len = nal_h264_write_filler(&dev->plat_dev->dev, curr, free); in allegro_channel_finish_frame()
[all …]

12