/Linux-v5.4/drivers/net/ethernet/cadence/ |
D | macb_pci.c | 32 struct platform_device *plat_dev; in macb_probe() local 90 plat_dev = platform_device_register_full(&plat_info); in macb_probe() 91 if (IS_ERR(plat_dev)) { in macb_probe() 92 err = PTR_ERR(plat_dev); in macb_probe() 96 pci_set_drvdata(pdev, plat_dev); in macb_probe() 112 struct platform_device *plat_dev = pci_get_drvdata(pdev); in macb_remove() local 113 struct macb_platform_data *plat_data = dev_get_platdata(&plat_dev->dev); in macb_remove() 115 platform_device_unregister(plat_dev); in macb_remove()
|
/Linux-v5.4/drivers/crypto/ccree/ |
D | cc_driver.c | 263 static int init_cc_resources(struct platform_device *plat_dev) in init_cc_resources() argument 267 struct device *dev = &plat_dev->dev; in init_cc_resources() 301 platform_set_drvdata(plat_dev, new_drvdata); in init_cc_resources() 302 new_drvdata->plat_dev = plat_dev; in init_cc_resources() 326 req_mem_cc_regs = platform_get_resource(plat_dev, IORESOURCE_MEM, 0); in init_cc_resources() 340 new_drvdata->irq = platform_get_irq(plat_dev, 0); in init_cc_resources() 346 if (!plat_dev->dev.dma_mask) in init_cc_resources() 347 plat_dev->dev.dma_mask = &plat_dev->dev.coherent_dma_mask; in init_cc_resources() 351 if (dma_supported(&plat_dev->dev, dma_mask)) { in init_cc_resources() 352 rc = dma_set_coherent_mask(&plat_dev->dev, dma_mask); in init_cc_resources() [all …]
|
D | cc_driver.h | 144 struct platform_device *plat_dev; member 203 return &drvdata->plat_dev->dev; in drvdata_to_dev()
|
D | cc_debugfs.c | 85 ctx->dir = debugfs_create_dir(drvdata->plat_dev->name, cc_debugfs_dir); in cc_debugfs_init()
|
/Linux-v5.4/drivers/rtc/ |
D | rtc-test.c | 116 static int test_probe(struct platform_device *plat_dev) in test_probe() argument 120 rtd = devm_kzalloc(&plat_dev->dev, sizeof(*rtd), GFP_KERNEL); in test_probe() 124 platform_set_drvdata(plat_dev, rtd); in test_probe() 126 rtd->rtc = devm_rtc_allocate_device(&plat_dev->dev); in test_probe() 130 switch (plat_dev->id) { in test_probe() 136 device_init_wakeup(&plat_dev->dev, 1); in test_probe()
|
/Linux-v5.4/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-v5.4/drivers/spi/ |
D | spi-topcliff-pch.c | 178 struct platform_device *plat_dev; member 1317 static int pch_spi_pd_probe(struct platform_device *plat_dev) in pch_spi_pd_probe() argument 1321 struct pch_spi_board_data *board_dat = dev_get_platdata(&plat_dev->dev); in pch_spi_pd_probe() 1324 dev_dbg(&plat_dev->dev, "%s:debug\n", __func__); in pch_spi_pd_probe() 1329 dev_err(&plat_dev->dev, "spi_alloc_master[%d] failed.\n", in pch_spi_pd_probe() 1330 plat_dev->id); in pch_spi_pd_probe() 1337 platform_set_drvdata(plat_dev, data); in pch_spi_pd_probe() 1341 PCH_ADDRESS_SIZE * plat_dev->id; in pch_spi_pd_probe() 1344 dev_err(&plat_dev->dev, "%s pci_iomap failed\n", __func__); in pch_spi_pd_probe() 1348 data->io_remap_addr += PCH_ADDRESS_SIZE * plat_dev->id; in pch_spi_pd_probe() [all …]
|
/Linux-v5.4/sound/soc/intel/atom/sst/ |
D | sst_acpi.c | 243 struct platform_device *plat_dev; in sst_acpi_probe() local 286 plat_dev = platform_device_register_data(dev, pdata->platform, -1, in sst_acpi_probe() 288 if (IS_ERR(plat_dev)) { in sst_acpi_probe() 291 return PTR_ERR(plat_dev); in sst_acpi_probe()
|
/Linux-v5.4/drivers/net/fjes/ |
D | fjes_main.c | 152 struct platform_device *plat_dev; in fjes_acpi_add() local 167 plat_dev = platform_device_register_simple(DRV_NAME, 0, fjes_resource, in fjes_acpi_add() 169 device->driver_data = plat_dev; in fjes_acpi_add() 176 struct platform_device *plat_dev; in fjes_acpi_remove() local 178 plat_dev = (struct platform_device *)acpi_driver_data(device); in fjes_acpi_remove() 179 platform_device_unregister(plat_dev); in fjes_acpi_remove() 1205 static int fjes_probe(struct platform_device *plat_dev) in fjes_probe() argument 1221 SET_NETDEV_DEV(netdev, &plat_dev->dev); in fjes_probe() 1223 dev_set_drvdata(&plat_dev->dev, netdev); in fjes_probe() 1226 adapter->plat_dev = plat_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-v5.4/drivers/media/platform/mtk-vcodec/ |
D | mtk_vcodec_util.c | 42 struct device *dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_mem_alloc() 65 struct device *dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_mem_free()
|
D | mtk_vcodec_dec_pm.c | 26 pdev = mtkdev->plat_dev; in mtk_vcodec_init_dec_pm() 42 pdev = mtkdev->plat_dev; in mtk_vcodec_init_dec_pm()
|
D | mtk_vcodec_enc_pm.c | 28 pdev = mtkdev->plat_dev; in mtk_vcodec_init_enc_pm() 63 pdev = mtkdev->plat_dev; in mtk_vcodec_init_enc_pm()
|
D | mtk_vcodec_dec_drv.c | 168 mtk_v4l2_debug(0, "%s decoder [%d]", dev_name(&dev->plat_dev->dev), in fops_vcodec_open() 238 dev->plat_dev = pdev; in mtk_vcodec_probe() 240 dev->vpu_plat_dev = vpu_get_plat_device(dev->plat_dev); in mtk_vcodec_probe()
|
D | mtk_vcodec_enc_drv.c | 186 mtk_v4l2_debug(0, "%s encoder [%d]", dev_name(&dev->plat_dev->dev), in fops_vcodec_open() 245 dev->plat_dev = pdev; in mtk_vcodec_probe() 247 dev->vpu_plat_dev = vpu_get_plat_device(dev->plat_dev); in mtk_vcodec_probe()
|
D | mtk_vcodec_drv.h | 346 struct platform_device *plat_dev; member
|
D | mtk_vcodec_enc.c | 1291 src_vq->dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_enc_queue_init() 1305 dst_vq->dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_enc_queue_init()
|
/Linux-v5.4/drivers/media/platform/s5p-mfc/ |
D | s5p_mfc_pm.c | 30 pm->device = &dev->plat_dev->dev; in s5p_mfc_init_pm()
|
D | s5p_mfc.c | 1114 struct device *dev = &mfc_dev->plat_dev->dev; in s5p_mfc_configure_2port_memory() 1182 struct device *dev = &mfc_dev->plat_dev->dev; in s5p_mfc_configure_common_memory() 1236 struct device *dev = &mfc_dev->plat_dev->dev; in s5p_mfc_unconfigure_common_memory() 1246 struct device *dev = &mfc_dev->plat_dev->dev; in s5p_mfc_configure_dma_memory() 1256 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()
|
D | s5p_mfc_ctrl.c | 61 dev->variant->fw_name[i], &dev->plat_dev->dev); in s5p_mfc_load_firmware()
|
D | s5p_mfc_common.h | 302 struct platform_device *plat_dev; member
|
/Linux-v5.4/drivers/staging/media/allegro-dvt/ |
D | allegro-core.c | 118 struct platform_device *plat_dev; member 728 buffer->vaddr = dma_alloc_coherent(&dev->plat_dev->dev, size, in allegro_alloc_buffer() 741 dma_free_coherent(&dev->plat_dev->dev, buffer->size, in allegro_free_buffer() 1387 size = nal_h264_write_sps(&dev->plat_dev->dev, dest, n, sps); in allegro_h264_write_sps() 1424 size = nal_h264_write_pps(&dev->plat_dev->dev, dest, n, pps); in allegro_h264_write_pps() 1565 len = nal_h264_write_filler(&dev->plat_dev->dev, curr, free); in allegro_channel_finish_frame() 2199 src_vq->dev = &channel->dev->plat_dev->dev; in allegro_queue_init() 2212 dst_vq->dev = &channel->dev->plat_dev->dev; in allegro_queue_init() 2374 dev_name(&dev->plat_dev->dev)); in allegro_querycap() 2820 err = request_firmware(&fw_codec, fw_codec_name, &dev->plat_dev->dev); in allegro_fw_callback() [all …]
|
/Linux-v5.4/drivers/net/ethernet/sun/ |
D | niu.c | 9329 struct platform_device *plat_dev = to_platform_device(dev); in show_port_phy() local 9330 struct niu_parent *p = dev_get_platdata(&plat_dev->dev); in show_port_phy() 9359 struct platform_device *plat_dev = to_platform_device(dev); in show_plat_type() local 9360 struct niu_parent *p = dev_get_platdata(&plat_dev->dev); in show_plat_type() 9388 struct platform_device *plat_dev = to_platform_device(dev); in __show_chan_per_port() local 9389 struct niu_parent *p = dev_get_platdata(&plat_dev->dev); in __show_chan_per_port() 9421 struct platform_device *plat_dev = to_platform_device(dev); in show_num_ports() local 9422 struct niu_parent *p = dev_get_platdata(&plat_dev->dev); in show_num_ports() 9439 struct platform_device *plat_dev; in niu_new_parent() local 9443 plat_dev = platform_device_register_simple("niu-board", niu_parent_index, in niu_new_parent() [all …]
|