Home
last modified time | relevance | path

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

/linux-3.4.99/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
102 struct rtc_device *rtc = rtc_device_register("test", &plat_dev->dev, in test_probe()
109 err = device_create_file(&plat_dev->dev, &dev_attr_irq); in test_probe()
113 platform_set_drvdata(plat_dev, rtc); in test_probe()
122 static int __devexit test_remove(struct platform_device *plat_dev) in test_remove() argument
124 struct rtc_device *rtc = platform_get_drvdata(plat_dev); in test_remove()
[all …]
/linux-3.4.99/drivers/i2c/busses/
Di2c-ixp2000.c88 static int ixp2000_i2c_remove(struct platform_device *plat_dev) in ixp2000_i2c_remove() argument
90 struct ixp2000_i2c_data *drv_data = platform_get_drvdata(plat_dev); in ixp2000_i2c_remove()
92 platform_set_drvdata(plat_dev, NULL); in ixp2000_i2c_remove()
101 static int ixp2000_i2c_probe(struct platform_device *plat_dev) in ixp2000_i2c_probe() argument
104 struct ixp2000_i2c_pins *gpio = plat_dev->dev.platform_data; in ixp2000_i2c_probe()
120 strlcpy(drv_data->adapter.name, plat_dev->dev.driver->name, in ixp2000_i2c_probe()
124 drv_data->adapter.dev.parent = &plat_dev->dev; in ixp2000_i2c_probe()
132 dev_err(&plat_dev->dev, "Could not install, error %d\n", err); in ixp2000_i2c_probe()
137 platform_set_drvdata(plat_dev, drv_data); in ixp2000_i2c_probe()
/linux-3.4.99/drivers/media/video/s5p-mfc/
Ds5p_mfc_pm.c41 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_CLKNAME); in s5p_mfc_init_pm()
69 pm->device = &dev->plat_dev->dev; in s5p_mfc_init_pm()
Ds5p_mfc.c959 dev->plat_dev = pdev; in s5p_mfc_probe()
960 if (!dev->plat_dev) { in s5p_mfc_probe()
1007 dev->mem_dev_l = device_find_child(&dev->plat_dev->dev, "s5p-mfc-l", in s5p_mfc_probe()
1014 dev->mem_dev_r = device_find_child(&dev->plat_dev->dev, "s5p-mfc-r", in s5p_mfc_probe()
Ds5p_mfc_common.h219 struct platform_device *plat_dev; member
Ds5p_mfc_dec.c219 strncpy(cap->driver, dev->plat_dev->name, sizeof(cap->driver) - 1); in vidioc_querycap()
220 strncpy(cap->card, dev->plat_dev->name, sizeof(cap->card) - 1); in vidioc_querycap()
Ds5p_mfc_enc.c784 strncpy(cap->driver, dev->plat_dev->name, sizeof(cap->driver) - 1); in vidioc_querycap()
785 strncpy(cap->card, dev->plat_dev->name, sizeof(cap->card) - 1); in vidioc_querycap()
/linux-3.4.99/drivers/spi/
Dspi-topcliff-pch.c194 struct platform_device *plat_dev; member
1404 static int __devinit 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 …]
/linux-3.4.99/drivers/block/
Dmg_disk.c783 static int mg_suspend(struct platform_device *plat_dev, pm_message_t state) in mg_suspend() argument
785 struct mg_drv_data *prv_data = plat_dev->dev.platform_data; in mg_suspend()
807 static int mg_resume(struct platform_device *plat_dev) in mg_resume() argument
809 struct mg_drv_data *prv_data = plat_dev->dev.platform_data; in mg_resume()
828 static int mg_probe(struct platform_device *plat_dev) in mg_probe() argument
832 struct mg_drv_data *prv_data = plat_dev->dev.platform_data; in mg_probe()
854 host->dev = &plat_dev->dev; in mg_probe()
857 rsc = platform_get_resource(plat_dev, IORESOURCE_MEM, 0); in mg_probe()
874 rsc = platform_get_resource_byname(plat_dev, IORESOURCE_IO, in mg_probe()
895 rsc = platform_get_resource_byname(plat_dev, IORESOURCE_IO, in mg_probe()
[all …]
/linux-3.4.99/drivers/net/ethernet/sun/
Dniu.c9371 struct platform_device *plat_dev = to_platform_device(dev); in show_port_phy() local
9372 struct niu_parent *p = plat_dev->dev.platform_data; in show_port_phy()
9401 struct platform_device *plat_dev = to_platform_device(dev); in show_plat_type() local
9402 struct niu_parent *p = plat_dev->dev.platform_data; in show_plat_type()
9430 struct platform_device *plat_dev = to_platform_device(dev); in __show_chan_per_port() local
9431 struct niu_parent *p = plat_dev->dev.platform_data; in __show_chan_per_port()
9463 struct platform_device *plat_dev = to_platform_device(dev); in show_num_ports() local
9464 struct niu_parent *p = plat_dev->dev.platform_data; in show_num_ports()
9482 struct platform_device *plat_dev; in niu_new_parent() local
9486 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-3.4.99/drivers/net/ethernet/toshiba/
Dtc35815.c724 struct platform_device *plat_dev = to_platform_device(dev); in tc35815_mac_match() local
727 return !strcmp(plat_dev->name, "tc35815-mac") && plat_dev->id == id; in tc35815_mac_match()