Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/rtc/
Drtc-test.c55 struct platform_device *plat_dev = to_platform_device(dev); in test_rtc_proc() local
58 seq_printf(seq, "id\t\t: %d\n", plat_dev->id); in test_rtc_proc()
87 struct platform_device *plat_dev = to_platform_device(dev); in test_irq_store() local
88 struct rtc_device *rtc = platform_get_drvdata(plat_dev); in test_irq_store()
109 static int test_probe(struct platform_device *plat_dev) in test_probe() argument
119 rtc = devm_rtc_device_register(&plat_dev->dev, "test", in test_probe()
125 err = device_create_file(&plat_dev->dev, &dev_attr_irq); in test_probe()
127 dev_err(&plat_dev->dev, "Unable to create sysfs entry: %s\n", in test_probe()
130 platform_set_drvdata(plat_dev, rtc); in test_probe()
135 static int test_remove(struct platform_device *plat_dev) in test_remove() argument
[all …]
/linux-4.1.27/drivers/media/platform/s5p-mfc/
Ds5p_mfc_pm.c40 pm->clock_gate = clk_get(&dev->plat_dev->dev, MFC_GATE_CLK_NAME); in s5p_mfc_init_pm()
54 pm->clock = clk_get(&dev->plat_dev->dev, MFC_SCLK_NAME); in s5p_mfc_init_pm()
69 pm->device = &dev->plat_dev->dev; in s5p_mfc_init_pm()
Ds5p_mfc.c1031 dev->mem_dev_l = devm_kzalloc(&dev->plat_dev->dev, in s5p_mfc_alloc_memdevs()
1038 of_property_read_u32_array(dev->plat_dev->dev.of_node, in s5p_mfc_alloc_memdevs()
1048 dev->mem_dev_r = devm_kzalloc(&dev->plat_dev->dev, in s5p_mfc_alloc_memdevs()
1055 of_property_read_u32_array(dev->plat_dev->dev.of_node, in s5p_mfc_alloc_memdevs()
1084 dev->plat_dev = pdev; in s5p_mfc_probe()
1085 if (!dev->plat_dev) { in s5p_mfc_probe()
1123 dev->mem_dev_l = device_find_child(&dev->plat_dev->dev, in s5p_mfc_probe()
1130 dev->mem_dev_r = device_find_child(&dev->plat_dev->dev, in s5p_mfc_probe()
Ds5p_mfc_common.h301 struct platform_device *plat_dev; member
Ds5p_mfc_dec.c268 strncpy(cap->driver, dev->plat_dev->name, sizeof(cap->driver) - 1); in vidioc_querycap()
269 strncpy(cap->card, dev->plat_dev->name, sizeof(cap->card) - 1); in vidioc_querycap()
Ds5p_mfc_enc.c946 strncpy(cap->driver, dev->plat_dev->name, sizeof(cap->driver) - 1); in vidioc_querycap()
947 strncpy(cap->card, dev->plat_dev->name, sizeof(cap->card) - 1); in vidioc_querycap()
/linux-4.1.27/drivers/spi/
Dspi-topcliff-pch.c190 struct platform_device *plat_dev; member
1343 static int pch_spi_pd_probe(struct platform_device *plat_dev) in pch_spi_pd_probe() argument
1347 struct pch_spi_board_data *board_dat = dev_get_platdata(&plat_dev->dev); in pch_spi_pd_probe()
1350 dev_dbg(&plat_dev->dev, "%s:debug\n", __func__); in pch_spi_pd_probe()
1355 dev_err(&plat_dev->dev, "spi_alloc_master[%d] failed.\n", in pch_spi_pd_probe()
1356 plat_dev->id); in pch_spi_pd_probe()
1363 platform_set_drvdata(plat_dev, data); in pch_spi_pd_probe()
1367 PCH_ADDRESS_SIZE * plat_dev->id; in pch_spi_pd_probe()
1370 dev_err(&plat_dev->dev, "%s pci_iomap failed\n", __func__); in pch_spi_pd_probe()
1374 data->io_remap_addr += PCH_ADDRESS_SIZE * plat_dev->id; in pch_spi_pd_probe()
[all …]
/linux-4.1.27/sound/soc/intel/atom/sst/
Dsst_acpi.c256 struct platform_device *plat_dev; in sst_acpi_probe() local
279 plat_dev = platform_device_register_data(dev, mach->pdata->platform, -1, NULL, 0); in sst_acpi_probe()
280 if (IS_ERR(plat_dev)) { in sst_acpi_probe()
282 return PTR_ERR(plat_dev); in sst_acpi_probe()
/linux-4.1.27/drivers/block/
Dmg_disk.c832 static int mg_probe(struct platform_device *plat_dev) in mg_probe() argument
836 struct mg_drv_data *prv_data = plat_dev->dev.platform_data; in mg_probe()
858 host->dev = &plat_dev->dev; in mg_probe()
861 rsc = platform_get_resource(plat_dev, IORESOURCE_MEM, 0); in mg_probe()
878 rsc = platform_get_resource_byname(plat_dev, IORESOURCE_IO, in mg_probe()
901 rsc = platform_get_resource_byname(plat_dev, IORESOURCE_IO, in mg_probe()
933 host->irq = platform_get_irq(plat_dev, 0); in mg_probe()
1037 static int mg_remove(struct platform_device *plat_dev) in mg_remove() argument
1039 struct mg_drv_data *prv_data = plat_dev->dev.platform_data; in mg_remove()
/linux-4.1.27/drivers/media/platform/coda/
Dcoda-common.c935 dev_err(&dev->plat_dev->dev, "CODA PIC_RUN timeout\n"); in coda_pic_run_work()
1080 dev_err(&ctx->dev->plat_dev->dev, "invalid map type: %d\n", in coda_set_tiled_map_type()
1205 buf->vaddr = dma_alloc_coherent(&dev->plat_dev->dev, size, &buf->paddr, in coda_alloc_aux_buf()
1222 dev_warn(&dev->plat_dev->dev, in coda_alloc_aux_buf()
1233 dma_free_coherent(&dev->plat_dev->dev, buf->size, in coda_free_aux_buf()
1698 ret = pm_runtime_get_sync(&dev->plat_dev->dev); in coda_open()
1751 pm_runtime_put_sync(&dev->plat_dev->dev); in coda_open()
1792 pm_runtime_put_sync(&dev->plat_dev->dev); in coda_release()
1938 struct platform_device *pdev = dev->plat_dev; in coda_fw_callback()
2008 dev_dbg(&dev->plat_dev->dev, "requesting firmware '%s' for %s\n", fw, in coda_firmware_request()
[all …]
Dcoda.h75 struct platform_device *plat_dev; member
Dcoda-bit.c1377 &ctx->dev->plat_dev->dev, ctx->bitstream.size, in coda_alloc_bitstream_buffer()
1395 dma_free_writecombine(&ctx->dev->plat_dev->dev, ctx->bitstream.size, in coda_free_bitstream_buffer()
/linux-4.1.27/drivers/net/ethernet/sun/
Dniu.c9350 struct platform_device *plat_dev = to_platform_device(dev); in show_port_phy() local
9351 struct niu_parent *p = dev_get_platdata(&plat_dev->dev); in show_port_phy()
9380 struct platform_device *plat_dev = to_platform_device(dev); in show_plat_type() local
9381 struct niu_parent *p = dev_get_platdata(&plat_dev->dev); in show_plat_type()
9409 struct platform_device *plat_dev = to_platform_device(dev); in __show_chan_per_port() local
9410 struct niu_parent *p = dev_get_platdata(&plat_dev->dev); in __show_chan_per_port()
9442 struct platform_device *plat_dev = to_platform_device(dev); in show_num_ports() local
9443 struct niu_parent *p = dev_get_platdata(&plat_dev->dev); in show_num_ports()
9460 struct platform_device *plat_dev; in niu_new_parent() local
9464 plat_dev = platform_device_register_simple("niu-board", niu_parent_index, in niu_new_parent()
[all …]
Dniu.h3066 struct platform_device *plat_dev; member
/linux-4.1.27/drivers/net/ethernet/toshiba/
Dtc35815.c722 struct platform_device *plat_dev = to_platform_device(dev); in tc35815_mac_match() local
725 return !strcmp(plat_dev->name, "tc35815-mac") && plat_dev->id == id; in tc35815_mac_match()