/linux/drivers/net/ethernet/cadence/ |
A 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/drivers/crypto/ccree/ |
A D | cc_driver.c | 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() 365 irq = platform_get_irq(plat_dev, 0); in init_cc_resources() 591 struct device *dev = &plat_dev->dev; in cleanup_cc_resources() 593 (struct cc_drvdata *)platform_get_drvdata(plat_dev); in cleanup_cc_resources() 617 static int ccree_probe(struct platform_device *plat_dev) in ccree_probe() argument 620 struct device *dev = &plat_dev->dev; in ccree_probe() 623 rc = init_cc_resources(plat_dev); in ccree_probe() 634 struct device *dev = &plat_dev->dev; in ccree_remove() [all …]
|
A D | cc_driver.h | 136 struct platform_device *plat_dev; member 196 return &drvdata->plat_dev->dev; in drvdata_to_dev()
|
A D | cc_debugfs.c | 77 drvdata->dir = debugfs_create_dir(drvdata->plat_dev->name, in cc_debugfs_init()
|
/linux/drivers/rtc/ |
A 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/drivers/usb/cdns3/ |
A 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/drivers/spi/ |
A D | spi-topcliff-pch.c | 182 struct platform_device *plat_dev; member 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() 1353 plat_dev->id, data->io_remap_addr); in pch_spi_pd_probe() 1363 data->plat_dev = plat_dev; in pch_spi_pd_probe() 1366 data->ch = plat_dev->id; in pch_spi_pd_probe() 1383 dev_err(&plat_dev->dev, in pch_spi_pd_probe() 1400 dev_err(&plat_dev->dev, in pch_spi_pd_probe() 1427 dev_dbg(&plat_dev->dev, "%s:[ch%d] irq=%d\n", in pch_spi_pd_remove() [all …]
|
/linux/drivers/net/fjes/ |
A D | fjes_main.c | 144 struct platform_device *plat_dev; in fjes_acpi_add() local 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 174 platform_device_unregister(plat_dev); in fjes_acpi_remove() 1200 static int fjes_probe(struct platform_device *plat_dev) in fjes_probe() argument 1217 SET_NETDEV_DEV(netdev, &plat_dev->dev); in fjes_probe() 1219 dev_set_drvdata(&plat_dev->dev, netdev); in fjes_probe() 1222 adapter->plat_dev = plat_dev; in fjes_probe() [all …]
|
A 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()
|
A D | fjes.h | 25 struct platform_device *plat_dev; member
|
A D | fjes_debugfs.c | 54 const char *name = dev_name(&adapter->plat_dev->dev); in fjes_dbg_adapter_init()
|
/linux/drivers/media/platform/mtk-vcodec/ |
A 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()
|
A 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()
|
A D | mtk_vcodec_util.c | 41 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()
|
A D | mtk_vcodec_enc_pm.c | 26 pdev = mtkdev->plat_dev; in mtk_vcodec_init_enc_pm() 46 pdev = mtkdev->plat_dev; in mtk_vcodec_init_enc_pm()
|
A D | mtk_vcodec_dec_pm.c | 25 pdev = mtkdev->plat_dev; in mtk_vcodec_init_dec_pm() 41 pdev = mtkdev->plat_dev; in mtk_vcodec_init_dec_pm()
|
A D | mtk_vcodec_dec_drv.c | 146 mtk_v4l2_debug(0, "%s decoder [%d]", dev_name(&dev->plat_dev->dev), in fops_vcodec_open() 216 dev->plat_dev = pdev; in mtk_vcodec_probe()
|
A D | mtk_vcodec_enc_drv.c | 191 mtk_v4l2_debug(0, "%s encoder [%d]", dev_name(&dev->plat_dev->dev), in fops_vcodec_open() 252 dev->plat_dev = pdev; in mtk_vcodec_probe()
|
A D | mtk_vcodec_drv.h | 436 struct platform_device *plat_dev; member
|
A D | mtk_vcodec_enc.c | 896 ret = pm_runtime_resume_and_get(&ctx->dev->plat_dev->dev); in vb2ops_venc_start_streaming() 928 pm_ret = pm_runtime_put(&ctx->dev->plat_dev->dev); in vb2ops_venc_start_streaming() 1015 ret = pm_runtime_put(&ctx->dev->plat_dev->dev); in vb2ops_venc_stop_streaming() 1429 src_vq->dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_enc_queue_init() 1443 dst_vq->dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_enc_queue_init()
|
/linux/sound/soc/intel/atom/sst/ |
A 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/drivers/media/platform/allegro-dvt/ |
A D | allegro-core.c | 149 struct platform_device *plat_dev; member 2910 src_vq->dev = &channel->dev->plat_dev->dev; in allegro_queue_init() 2923 dst_vq->dev = &channel->dev->plat_dev->dev; in allegro_queue_init() 3258 dev_name(&dev->plat_dev->dev)); in allegro_querycap() 3759 pm_runtime_enable(&dev->plat_dev->dev); in allegro_fw_callback() 3811 pm_runtime_put(&dev->plat_dev->dev); in allegro_fw_callback() 3812 pm_runtime_disable(&dev->plat_dev->dev); in allegro_fw_callback() 3826 &dev->plat_dev->dev, GFP_KERNEL, dev, in allegro_firmware_request_nowait() 3841 dev->plat_dev = pdev; in allegro_probe() 3939 pm_runtime_put(&dev->plat_dev->dev); in allegro_remove() [all …]
|
/linux/drivers/media/platform/s5p-mfc/ |
A D | s5p_mfc_pm.c | 30 pm->device = &dev->plat_dev->dev; in s5p_mfc_init_pm()
|
A 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() 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()
|
/linux/drivers/net/ethernet/sun/ |
A D | niu.c | 9343 struct niu_parent *p = dev_get_platdata(&plat_dev->dev); in show_port_phy() 9373 struct niu_parent *p = dev_get_platdata(&plat_dev->dev); in show_plat_type() 9452 struct platform_device *plat_dev; in niu_new_parent() local 9458 if (IS_ERR(plat_dev)) in niu_new_parent() 9462 int err = device_create_file(&plat_dev->dev, in niu_new_parent() 9474 plat_dev->dev.platform_data = p; in niu_new_parent() 9475 p->plat_dev = plat_dev; in niu_new_parent() 9509 platform_device_unregister(plat_dev); in niu_new_parent() 9535 err = sysfs_create_link(&p->plat_dev->dev.kobj, in niu_get_parent() 9563 sysfs_remove_link(&p->plat_dev->dev.kobj, port_name); in niu_put_parent() [all …]
|