/linux-6.1.9/drivers/rtc/ |
D | rtc-sunplus.c | 157 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->res = platform_get_resource_byname(plat_dev, IORESOURCE_MEM, RTC_REG_NAME); in sp_rtc_probe() 239 sp_rtc->reg_base = devm_ioremap_resource(&plat_dev->dev, sp_rtc->res); in sp_rtc_probe() 241 return dev_err_probe(&plat_dev->dev, PTR_ERR(sp_rtc->reg_base), in sp_rtc_probe() 243 dev_dbg(&plat_dev->dev, "res = 0x%x, reg_base = 0x%lx\n", in sp_rtc_probe() 246 sp_rtc->irq = platform_get_irq(plat_dev, 0); in sp_rtc_probe() [all …]
|
D | rtc-test.c | 115 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-6.1.9/drivers/net/ethernet/cadence/ |
D | macb_pci.c | 31 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-6.1.9/drivers/crypto/ccree/ |
D | cc_driver.c | 307 static int init_cc_resources(struct platform_device *plat_dev) in init_cc_resources() argument 311 struct device *dev = &plat_dev->dev; in init_cc_resources() 341 platform_set_drvdata(plat_dev, new_drvdata); in init_cc_resources() 342 new_drvdata->plat_dev = plat_dev; in init_cc_resources() 353 req_mem_cc_regs = platform_get_resource(plat_dev, IORESOURCE_MEM, 0); in init_cc_resources() 365 irq = platform_get_irq(plat_dev, 0); in init_cc_resources() 584 static void cleanup_cc_resources(struct platform_device *plat_dev) in cleanup_cc_resources() argument 586 struct device *dev = &plat_dev->dev; in cleanup_cc_resources() 588 (struct cc_drvdata *)platform_get_drvdata(plat_dev); in cleanup_cc_resources() 612 static int ccree_probe(struct platform_device *plat_dev) in ccree_probe() argument [all …]
|
D | cc_driver.h | 136 struct platform_device *plat_dev; member 196 return &drvdata->plat_dev->dev; in drvdata_to_dev()
|
D | cc_debugfs.c | 77 drvdata->dir = debugfs_create_dir(drvdata->plat_dev->name, in cc_debugfs_init()
|
/linux-6.1.9/drivers/usb/cdns3/ |
D | cdns3-pci-wrap.c | 18 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-6.1.9/drivers/spi/ |
D | spi-topcliff-pch.c | 183 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 …]
|
/linux-6.1.9/drivers/media/platform/mediatek/vcodec/ |
D | mtk_vcodec_fw_scp.c | 61 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()
|
D | mtk_vcodec_dec_hw.c | 41 struct platform_device *pdev = vdec_dev->plat_dev; in mtk_vdec_hw_prob_done() 104 struct platform_device *pdev = dev->plat_dev; in mtk_vdec_hw_init_irq() 147 subdev_dev->plat_dev = pdev; in mtk_vdec_hw_probe()
|
D | mtk_vcodec_fw_vpu.c | 97 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()
|
D | mtk_vcodec_util.c | 34 struct device *dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_mem_alloc() 57 struct device *dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_mem_free()
|
D | mtk_vcodec_dec_hw.h | 47 struct platform_device *plat_dev; member
|
D | mtk_vcodec_dec_drv.c | 83 struct platform_device *pdev = dev->plat_dev; in mtk_vcodec_get_reg_bases() 107 struct platform_device *pdev = dev->plat_dev; in mtk_vcodec_init_dec_resources() 220 mtk_v4l2_debug(0, "%s decoder [%d]", dev_name(&dev->plat_dev->dev), in fops_vcodec_open() 287 dev->plat_dev = pdev; in mtk_vcodec_probe()
|
D | mtk_vcodec_enc_pm.c | 23 pdev = mtkdev->plat_dev; in mtk_vcodec_init_enc_clk()
|
D | mtk_vcodec_enc.c | 218 struct device *dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_enc_get_chip_name() 238 struct device *dev = &ctx->dev->plat_dev->dev; in vidioc_venc_querycap() 902 ret = pm_runtime_resume_and_get(&ctx->dev->plat_dev->dev); in vb2ops_venc_start_streaming() 934 pm_ret = pm_runtime_put(&ctx->dev->plat_dev->dev); in vb2ops_venc_start_streaming() 1021 ret = pm_runtime_put(&ctx->dev->plat_dev->dev); in vb2ops_venc_stop_streaming() 1442 src_vq->dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_enc_queue_init() 1456 dst_vq->dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_enc_queue_init()
|
D | mtk_vcodec_enc_drv.c | 181 mtk_v4l2_debug(0, "%s encoder [%d]", dev_name(&dev->plat_dev->dev), in fops_vcodec_open() 241 dev->plat_dev = pdev; in mtk_vcodec_probe()
|
/linux-6.1.9/drivers/net/fjes/ |
D | fjes_main.c | 123 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() 1337 static int fjes_probe(struct platform_device *plat_dev) in fjes_probe() argument 1354 SET_NETDEV_DEV(netdev, &plat_dev->dev); in fjes_probe() [all …]
|
D | fjes_ethtool.c | 150 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()
|
D | fjes.h | 25 struct platform_device *plat_dev; member
|
D | fjes_debugfs.c | 54 const char *name = dev_name(&adapter->plat_dev->dev); in fjes_dbg_adapter_init()
|
/linux-6.1.9/sound/soc/intel/atom/sst/ |
D | sst_acpi.c | 243 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-6.1.9/drivers/media/platform/allegro-dvt/ |
D | allegro-core.c | 149 struct platform_device *plat_dev; member 746 buffer->vaddr = dma_alloc_coherent(&dev->plat_dev->dev, size, in allegro_alloc_buffer() 759 dma_free_coherent(&dev->plat_dev->dev, buffer->size, in allegro_free_buffer() 779 mbox = devm_kmalloc(&dev->plat_dev->dev, sizeof(*mbox), GFP_KERNEL); in allegro_mbox_init() 1667 size = nal_h264_write_sps(&dev->plat_dev->dev, dest, n, sps); in allegro_h264_write_sps() 1704 size = nal_h264_write_pps(&dev->plat_dev->dev, dest, n, pps); in allegro_h264_write_pps() 1752 size = nal_hevc_write_vps(&dev->plat_dev->dev, dest, n, vps); in allegro_hevc_write_vps() 1865 size = nal_hevc_write_sps(&dev->plat_dev->dev, dest, n, sps); in allegro_hevc_write_sps() 1912 size = nal_hevc_write_pps(&dev->plat_dev->dev, dest, n, pps); in allegro_hevc_write_pps() 2099 len = nal_h264_write_filler(&dev->plat_dev->dev, curr, free); in allegro_channel_finish_frame() [all …]
|
/linux-6.1.9/drivers/media/platform/samsung/s5p-mfc/ |
D | s5p_mfc_pm.c | 30 pm->device = &dev->plat_dev->dev; in s5p_mfc_init_pm()
|
D | s5p_mfc.c | 1118 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() 1237 struct device *dev = &mfc_dev->plat_dev->dev; in s5p_mfc_unconfigure_common_memory() 1247 struct device *dev = &mfc_dev->plat_dev->dev; in s5p_mfc_configure_dma_memory() 1257 struct device *dev = &mfc_dev->plat_dev->dev; in s5p_mfc_unconfigure_dma_memory() 1280 dev->plat_dev = pdev; in s5p_mfc_probe() 1281 if (!dev->plat_dev) { in s5p_mfc_probe()
|