/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/common/ |
H A D | mtk_vcodec_util.c | 51 struct platform_device *plat_dev; in mtk_vcodec_mem_alloc() local 58 plat_dev = enc_ctx->dev->plat_dev; in mtk_vcodec_mem_alloc() 63 plat_dev = dec_ctx->dev->plat_dev; in mtk_vcodec_mem_alloc() 67 mem->va = dma_alloc_coherent(&plat_dev->dev, size, &mem->dma_addr, GFP_KERNEL); in mtk_vcodec_mem_alloc() 69 mtk_v4l2_err(plat_dev, "%s dma_alloc size=%ld failed!", in mtk_vcodec_mem_alloc() 70 dev_name(&plat_dev->dev), size); in mtk_vcodec_mem_alloc() 74 mtk_v4l2_debug(plat_dev, 3, "[%d] - va = %p dma = 0x%lx size = 0x%lx", id, mem->va, in mtk_vcodec_mem_alloc() 84 struct platform_device *plat_dev; in mtk_vcodec_mem_free() local [all...] |
H A D | mtk_vcodec_util.h | 34 #define mtk_v4l2_err(plat_dev, fmt, args...) \ 35 dev_err(&(plat_dev)->dev, "[MTK_V4L2][ERROR] " fmt "\n", ##args) 37 #define mtk_vcodec_err(inst_id, plat_dev, fmt, args...) \ 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...) \ 47 dev_dbg(&(plat_dev)->dev, "[MTK_V4L2] %s, %d: " fmt "\n", \ 51 #define mtk_vcodec_debug(inst_id, plat_dev, fmt, args...) \ 54 dev_dbg(&(plat_dev)->dev, "[MTK_VCODEC][%d]: %s, %d " fmt "\n", \ 58 #define mtk_v4l2_debug(plat_dev, level, fmt, args...) \ 59 dev_dbg(&(plat_dev) [all...] |
H A D | mtk_vcodec_fw_vpu.c | 51 dev_err(&dev->plat_dev->dev, "Watchdog timeout!!"); in mtk_vcodec_vpu_reset_dec_handler() 66 dev_err(&dev->plat_dev->dev, "Watchdog timeout!!"); in mtk_vcodec_vpu_reset_enc_handler() 89 struct platform_device *plat_dev; in mtk_vcodec_fw_vpu_init() local 96 plat_dev = enc_dev->plat_dev; in mtk_vcodec_fw_vpu_init() 101 plat_dev = dec_dev->plat_dev; in mtk_vcodec_fw_vpu_init() 108 fw_pdev = vpu_get_plat_device(plat_dev); in mtk_vcodec_fw_vpu_init() 110 dev_err(&plat_dev->dev, "firmware device is not ready"); in mtk_vcodec_fw_vpu_init() 119 fw = devm_kzalloc(&plat_dev in mtk_vcodec_fw_vpu_init() [all...] |
H A D | mtk_vcodec_fw_scp.c | 59 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 D | mtk_vcodec_fw.c | 10 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 D | mtk_vcodec_intr.c | 33 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()
|
/kernel/linux/linux-6.6/drivers/rtc/ |
H A 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->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 in sp_rtc_probe() 306 sp_rtc_remove(struct platform_device *plat_dev) sp_rtc_remove() argument [all...] |
H 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cadence/ |
H 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/cadence/ |
H 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()
|
/kernel/linux/linux-5.10/drivers/crypto/ccree/ |
H A D | cc_driver.c | 265 static int init_cc_resources(struct platform_device *plat_dev) in init_cc_resources() argument 269 struct device *dev = &plat_dev->dev; in init_cc_resources() 299 platform_set_drvdata(plat_dev, new_drvdata); in init_cc_resources() 300 new_drvdata->plat_dev = plat_dev; in init_cc_resources() 311 req_mem_cc_regs = platform_get_resource(plat_dev, IORESOURCE_MEM, 0); in init_cc_resources() 325 irq = platform_get_irq(plat_dev, 0); in init_cc_resources() 547 static void cleanup_cc_resources(struct platform_device *plat_dev) in cleanup_cc_resources() argument 549 struct device *dev = &plat_dev->dev; in cleanup_cc_resources() 551 (struct cc_drvdata *)platform_get_drvdata(plat_dev); in cleanup_cc_resources() 575 ccree_probe(struct platform_device *plat_dev) ccree_probe() argument 590 ccree_remove(struct platform_device *plat_dev) ccree_remove() argument [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A 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()
|
/kernel/linux/linux-6.6/drivers/crypto/ccree/ |
H A D | cc_driver.c | 306 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 ccree_probe(struct platform_device *plat_dev) ccree_probe() argument 626 ccree_remove(struct platform_device *plat_dev) ccree_remove() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/encoder/ |
H A D | mtk_vcodec_enc_drv.h | 169 * @plat_dev: platform device 195 struct platform_device *plat_dev; member 238 mtk_vcodec_err((ctx)->id, (ctx)->dev->plat_dev, fmt, ##args) 241 mtk_vcodec_debug((ctx)->id, (ctx)->dev->plat_dev, fmt, ##args) 243 #define mtk_v4l2_venc_err(ctx, fmt, args...) mtk_v4l2_err((ctx)->dev->plat_dev, fmt, ##args) 246 mtk_v4l2_debug((ctx)->dev->plat_dev, level, fmt, ##args)
|
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/decoder/ |
H A D | mtk_vcodec_dec_drv.h | 221 * @plat_dev: platform device 259 struct platform_device *plat_dev; member 314 mtk_vcodec_err((ctx)->id, (ctx)->dev->plat_dev, fmt, ##args) 317 mtk_vcodec_debug((ctx)->id, (ctx)->dev->plat_dev, fmt, ##args) 319 #define mtk_v4l2_vdec_err(ctx, fmt, args...) mtk_v4l2_err((ctx)->dev->plat_dev, fmt, ##args) 322 mtk_v4l2_debug((ctx)->dev->plat_dev, level, fmt, ##args)
|
H A D | mtk_vcodec_dec_hw.c | 39 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()
|
/kernel/linux/linux-5.10/drivers/usb/cdns3/ |
H A D | cdns3-pci-wrap.c | 18 struct platform_device *plat_dev; member 164 wrap->plat_dev = platform_device_register_full(&plat_info); in cdns3_pci_probe() 165 if (IS_ERR(wrap->plat_dev)) { in cdns3_pci_probe() 167 err = PTR_ERR(wrap->plat_dev); in cdns3_pci_probe() 186 platform_device_unregister(wrap->plat_dev); in cdns3_pci_remove()
|
/kernel/linux/linux-6.6/drivers/usb/cdns3/ |
H A D | cdns3-pci-wrap.c | 18 struct platform_device *plat_dev; member 164 wrap->plat_dev = platform_device_register_full(&plat_info); in cdns3_pci_probe() 165 if (IS_ERR(wrap->plat_dev)) { in cdns3_pci_probe() 167 err = PTR_ERR(wrap->plat_dev); in cdns3_pci_probe() 186 platform_device_unregister(wrap->plat_dev); in cdns3_pci_remove()
|
/kernel/linux/linux-5.10/drivers/spi/ |
H A D | spi-topcliff-pch.c | 153 * @plat_dev: platform_device structure 182 struct platform_device *plat_dev; member 1318 static int pch_spi_pd_probe(struct platform_device *plat_dev) in pch_spi_pd_probe() argument 1322 struct pch_spi_board_data *board_dat = dev_get_platdata(&plat_dev->dev); in pch_spi_pd_probe() 1325 dev_dbg(&plat_dev->dev, "%s:debug\n", __func__); in pch_spi_pd_probe() 1330 dev_err(&plat_dev->dev, "spi_alloc_master[%d] failed.\n", in pch_spi_pd_probe() 1331 plat_dev->id); in pch_spi_pd_probe() 1338 platform_set_drvdata(plat_dev, data); in pch_spi_pd_probe() 1342 PCH_ADDRESS_SIZE * plat_dev->id; in pch_spi_pd_probe() 1345 dev_err(&plat_dev in pch_spi_pd_probe() 1419 pch_spi_pd_remove(struct platform_device *plat_dev) pch_spi_pd_remove() argument [all...] |
/kernel/linux/linux-6.6/drivers/spi/ |
H A D | spi-topcliff-pch.c | 154 * @plat_dev: platform_device structure 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 in pch_spi_pd_probe() 1399 pch_spi_pd_remove(struct platform_device *plat_dev) pch_spi_pd_remove() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/ |
H 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()
|
H 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()
|
/kernel/linux/linux-5.10/drivers/net/fjes/ |
H 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()
|
/kernel/linux/linux-5.10/sound/soc/intel/atom/sst/ |
H A D | sst_acpi.c | 242 struct platform_device *plat_dev; in sst_acpi_probe() local 285 plat_dev = platform_device_register_data(dev, pdata->platform, -1, in sst_acpi_probe() 287 if (IS_ERR(plat_dev)) { in sst_acpi_probe() 290 return PTR_ERR(plat_dev); in sst_acpi_probe()
|
/kernel/linux/linux-6.6/drivers/net/fjes/ |
H 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()
|