Home
last modified time | relevance | path

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

/drivers/rtc/
Drtc-test.c45 struct platform_device *plat_dev = to_platform_device(dev); in test_rtc_proc() local
48 seq_printf(seq, "id\t\t: %d\n", plat_dev->id); in test_rtc_proc()
77 struct platform_device *plat_dev = to_platform_device(dev); in test_irq_store() local
78 struct rtc_device *rtc = platform_get_drvdata(plat_dev); in test_irq_store()
99 static int test_probe(struct platform_device *plat_dev) in test_probe() argument
104 rtc = devm_rtc_device_register(&plat_dev->dev, "test", in test_probe()
111 err = device_create_file(&plat_dev->dev, &dev_attr_irq); in test_probe()
115 platform_set_drvdata(plat_dev, rtc); in test_probe()
123 static int test_remove(struct platform_device *plat_dev) in test_remove() argument
125 device_remove_file(&plat_dev->dev, &dev_attr_irq); in test_remove()
/drivers/spi/
Dspi-topcliff-pch.c194 struct platform_device *plat_dev; member
1404 static int pch_spi_pd_probe(struct platform_device *plat_dev) in pch_spi_pd_probe() argument
1408 struct pch_spi_board_data *board_dat = dev_get_platdata(&plat_dev->dev); in pch_spi_pd_probe()
1411 dev_dbg(&plat_dev->dev, "%s:debug\n", __func__); in pch_spi_pd_probe()
1416 dev_err(&plat_dev->dev, "spi_alloc_master[%d] failed.\n", in pch_spi_pd_probe()
1417 plat_dev->id); in pch_spi_pd_probe()
1424 platform_set_drvdata(plat_dev, data); in pch_spi_pd_probe()
1428 PCH_ADDRESS_SIZE * plat_dev->id; in pch_spi_pd_probe()
1430 PCH_ADDRESS_SIZE * plat_dev->id; in pch_spi_pd_probe()
1432 dev_err(&plat_dev->dev, "%s pci_iomap failed\n", __func__); in pch_spi_pd_probe()
[all …]
/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()
55 pm->device = &dev->plat_dev->dev; in s5p_mfc_init_pm()
Ds5p_mfc.c1023 dev->mem_dev_l = devm_kzalloc(&dev->plat_dev->dev, in s5p_mfc_alloc_memdevs()
1030 of_property_read_u32_array(dev->plat_dev->dev.of_node, in s5p_mfc_alloc_memdevs()
1040 dev->mem_dev_r = devm_kzalloc(&dev->plat_dev->dev, in s5p_mfc_alloc_memdevs()
1047 of_property_read_u32_array(dev->plat_dev->dev.of_node, in s5p_mfc_alloc_memdevs()
1076 dev->plat_dev = pdev; in s5p_mfc_probe()
1077 if (!dev->plat_dev) { in s5p_mfc_probe()
1115 dev->mem_dev_l = device_find_child(&dev->plat_dev->dev, in s5p_mfc_probe()
1122 dev->mem_dev_r = device_find_child(&dev->plat_dev->dev, in s5p_mfc_probe()
Ds5p_mfc_common.h303 struct platform_device *plat_dev; member
Ds5p_mfc_dec.c249 strncpy(cap->driver, dev->plat_dev->name, sizeof(cap->driver) - 1); in vidioc_querycap()
250 strncpy(cap->card, dev->plat_dev->name, sizeof(cap->card) - 1); in vidioc_querycap()
Ds5p_mfc_enc.c806 strncpy(cap->driver, dev->plat_dev->name, sizeof(cap->driver) - 1); in vidioc_querycap()
807 strncpy(cap->card, dev->plat_dev->name, sizeof(cap->card) - 1); in vidioc_querycap()
/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()
/drivers/media/platform/
Dcoda.c124 struct platform_device *plat_dev; member
900 dma_free_coherent(&ctx->dev->plat_dev->dev, in coda_free_framebuffers()
925 &dev->plat_dev->dev, ctx->internal_frames[i].size, in coda_alloc_framebuffers()
1501 ctx->parabuf.vaddr = dma_alloc_coherent(&dev->plat_dev->dev, in coda_open()
1540 dma_free_coherent(&dev->plat_dev->dev, CODA_PARA_BUF_SIZE, in coda_release()
1831 struct platform_device *pdev = dev->plat_dev; in coda_fw_callback()
1900 dev_dbg(&dev->plat_dev->dev, "requesting firmware '%s' for %s\n", fw, in coda_firmware_request()
1904 fw, &dev->plat_dev->dev, GFP_KERNEL, dev, coda_fw_callback); in coda_firmware_request()
1968 dev->plat_dev = pdev; in coda_probe()
/drivers/net/ethernet/sun/
Dniu.c9362 struct platform_device *plat_dev = to_platform_device(dev); in show_port_phy() local
9363 struct niu_parent *p = plat_dev->dev.platform_data; in show_port_phy()
9392 struct platform_device *plat_dev = to_platform_device(dev); in show_plat_type() local
9393 struct niu_parent *p = plat_dev->dev.platform_data; in show_plat_type()
9421 struct platform_device *plat_dev = to_platform_device(dev); in __show_chan_per_port() local
9422 struct niu_parent *p = plat_dev->dev.platform_data; in __show_chan_per_port()
9454 struct platform_device *plat_dev = to_platform_device(dev); in show_num_ports() local
9455 struct niu_parent *p = plat_dev->dev.platform_data; in show_num_ports()
9472 struct platform_device *plat_dev; in niu_new_parent() local
9476 plat_dev = platform_device_register_simple("niu-board", niu_parent_index, in niu_new_parent()
[all …]
Dniu.h3066 struct platform_device *plat_dev; member
/drivers/net/ethernet/toshiba/
Dtc35815.c723 struct platform_device *plat_dev = to_platform_device(dev); in tc35815_mac_match() local
726 return !strcmp(plat_dev->name, "tc35815-mac") && plat_dev->id == id; in tc35815_mac_match()