Home
last modified time | relevance | path

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

/linux-4.4.14/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.4.14/drivers/net/fjes/
Dfjes_ethtool.c97 struct platform_device *plat_dev; in fjes_get_drvinfo() local
99 plat_dev = adapter->plat_dev; in fjes_get_drvinfo()
107 "platform:%s", plat_dev->name); in fjes_get_drvinfo()
Dfjes_main.c123 struct platform_device *plat_dev; in fjes_acpi_add() local
150 plat_dev = platform_device_register_simple(DRV_NAME, 0, fjes_resource, in fjes_acpi_add()
152 device->driver_data = plat_dev; in fjes_acpi_add()
159 struct platform_device *plat_dev; in fjes_acpi_remove() local
161 plat_dev = (struct platform_device *)acpi_driver_data(device); in fjes_acpi_remove()
162 platform_device_unregister(plat_dev); in fjes_acpi_remove()
1084 static int fjes_probe(struct platform_device *plat_dev) in fjes_probe() argument
1100 SET_NETDEV_DEV(netdev, &plat_dev->dev); in fjes_probe()
1102 dev_set_drvdata(&plat_dev->dev, netdev); in fjes_probe()
1105 adapter->plat_dev = plat_dev; in fjes_probe()
[all …]
Dfjes.h40 struct platform_device *plat_dev; member
/linux-4.4.14/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.c1038 dev->mem_dev_l = devm_kzalloc(&dev->plat_dev->dev, in s5p_mfc_alloc_memdevs()
1045 of_property_read_u32_array(dev->plat_dev->dev.of_node, in s5p_mfc_alloc_memdevs()
1055 dev->mem_dev_r = devm_kzalloc(&dev->plat_dev->dev, in s5p_mfc_alloc_memdevs()
1062 of_property_read_u32_array(dev->plat_dev->dev.of_node, in s5p_mfc_alloc_memdevs()
1091 dev->plat_dev = pdev; in s5p_mfc_probe()
1092 if (!dev->plat_dev) { in s5p_mfc_probe()
1130 dev->mem_dev_l = device_find_child(&dev->plat_dev->dev, in s5p_mfc_probe()
1137 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.c952 strncpy(cap->driver, dev->plat_dev->name, sizeof(cap->driver) - 1); in vidioc_querycap()
953 strncpy(cap->card, dev->plat_dev->name, sizeof(cap->card) - 1); in vidioc_querycap()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/drivers/media/platform/coda/
Dcoda-common.c970 dev_err(&dev->plat_dev->dev, "CODA PIC_RUN timeout\n"); in coda_pic_run_work()
1208 buf->vaddr = dma_alloc_coherent(&dev->plat_dev->dev, size, &buf->paddr, in coda_alloc_aux_buf()
1225 dev_warn(&dev->plat_dev->dev, in coda_alloc_aux_buf()
1236 dma_free_coherent(&dev->plat_dev->dev, buf->size, in coda_free_aux_buf()
1716 ret = pm_runtime_get_sync(&dev->plat_dev->dev); in coda_open()
1770 pm_runtime_put_sync(&dev->plat_dev->dev); in coda_open()
1811 pm_runtime_put_sync(&dev->plat_dev->dev); in coda_release()
1957 struct platform_device *pdev = dev->plat_dev; in coda_fw_callback()
2027 dev_dbg(&dev->plat_dev->dev, "requesting firmware '%s' for %s\n", fw, in coda_firmware_request()
2031 fw, &dev->plat_dev->dev, GFP_KERNEL, dev, coda_fw_callback); in coda_firmware_request()
[all …]
Dcoda.h75 struct platform_device *plat_dev; member
Dcoda-bit.c1459 &ctx->dev->plat_dev->dev, ctx->bitstream.size, in coda_alloc_bitstream_buffer()
1477 dma_free_writecombine(&ctx->dev->plat_dev->dev, ctx->bitstream.size, in coda_free_bitstream_buffer()
/linux-4.4.14/drivers/net/ethernet/sun/
Dniu.c9348 struct platform_device *plat_dev = to_platform_device(dev); in show_port_phy() local
9349 struct niu_parent *p = dev_get_platdata(&plat_dev->dev); in show_port_phy()
9378 struct platform_device *plat_dev = to_platform_device(dev); in show_plat_type() local
9379 struct niu_parent *p = dev_get_platdata(&plat_dev->dev); in show_plat_type()
9407 struct platform_device *plat_dev = to_platform_device(dev); in __show_chan_per_port() local
9408 struct niu_parent *p = dev_get_platdata(&plat_dev->dev); in __show_chan_per_port()
9440 struct platform_device *plat_dev = to_platform_device(dev); in show_num_ports() local
9441 struct niu_parent *p = dev_get_platdata(&plat_dev->dev); in show_num_ports()
9458 struct platform_device *plat_dev; in niu_new_parent() local
9462 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.4.14/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()