/linux-master/drivers/macintosh/ams/ |
H A D | ams-core.c | 149 ams_info.of_dev = of_platform_device_create(ams_info.of_node, "ams", NULL); 150 if (!ams_info.of_dev) { 156 result = device_create_file(&ams_info.of_dev->dev, &dev_attr_current); 169 device_remove_file(&ams_info.of_dev->dev, &dev_attr_current); 171 of_device_unregister(ams_info.of_dev); 209 device_remove_file(&ams_info.of_dev->dev, &dev_attr_current); 219 of_device_unregister(ams_info.of_dev);
|
H A D | ams-input.c | 68 input->dev.parent = &ams_info.of_dev->dev; 146 return device_create_file(&ams_info.of_dev->dev, &dev_attr_joystick); 151 device_remove_file(&ams_info.of_dev->dev, &dev_attr_joystick);
|
H A D | ams.h | 30 struct platform_device *of_dev; member in struct:ams
|
/linux-master/drivers/net/ethernet/freescale/fman/ |
H A D | mac.c | 161 struct platform_device *of_dev; local 194 of_dev = of_find_device_by_node(dev_node); 195 if (!of_dev) { 211 priv->fman = fman_bind(&of_dev->dev); 280 of_dev = of_find_device_by_node(dev_node); 281 if (!of_dev) { 288 mac_dev->port[i] = fman_port_bind(&of_dev->dev);
|
H A D | fman.c | 2690 static struct fman *read_dts_node(struct platform_device *of_dev) argument 2706 fm_node = of_node_get(of_dev->dev.of_node); 2710 dev_err(&of_dev->dev, "%s: failed to read cell-index for %pOF\n", 2717 err = platform_get_irq(of_dev, 0); 2723 err = platform_get_irq(of_dev, 1); 2729 res = platform_get_resource(of_dev, IORESOURCE_MEM, 0); 2732 dev_err(&of_dev->dev, "%s: Can't get FMan memory resource\n", 2743 dev_err(&of_dev->dev, "%s: Failed to get FM%d clock structure\n", 2751 dev_err(&of_dev->dev, "%s: Failed to determine FM%d clock rate\n", 2761 dev_err(&of_dev 2848 fman_probe(struct platform_device *of_dev) argument [all...] |
H A D | fman_port.c | 1742 static int fman_port_probe(struct platform_device *of_dev) argument 1760 port->dev = &of_dev->dev; 1762 port_node = of_node_get(of_dev->dev.of_node); 1869 dev_set_drvdata(&of_dev->dev, port);
|
/linux-master/drivers/macintosh/ |
H A D | therm_windtunnel.c | 55 struct platform_device *of_dev; member in struct:__anon278 256 err = device_create_file( &x.of_dev->dev, &dev_attr_cpu_temperature ); 257 err |= device_create_file( &x.of_dev->dev, &dev_attr_case_temperature ); 266 device_remove_file( &x.of_dev->dev, &dev_attr_cpu_temperature ); 267 device_remove_file( &x.of_dev->dev, &dev_attr_case_temperature ); 534 x.of_dev = of_platform_device_create(np, "temperature", NULL); 537 if( !x.of_dev ) { 551 if( x.of_dev ) 552 of_device_unregister( x.of_dev );
|
H A D | smu.c | 77 struct platform_device *of_dev; member in struct:smu_device 643 &smu->of_dev->dev); 652 smu->of_dev = dev; 697 return smu->of_dev;
|
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | ibmebus.c | 356 struct platform_device *of_dev; local 359 of_dev = to_platform_device(dev); 367 error = drv->probe(of_dev); 376 struct platform_device *of_dev = to_platform_device(dev); local 380 drv->remove(of_dev); 385 struct platform_device *of_dev = to_platform_device(dev); local 389 drv->shutdown(of_dev);
|
/linux-master/drivers/input/serio/ |
H A D | xilinx_ps2.c | 325 * @of_dev: pointer to OF device structure 331 static void xps2_of_remove(struct platform_device *of_dev) argument 333 struct xps2data *drvdata = platform_get_drvdata(of_dev); 340 if (of_address_to_resource(of_dev->dev.of_node, 0, &r_mem))
|
H A D | apbps2.c | 190 static void apbps2_of_remove(struct platform_device *of_dev) argument 192 struct apbps2_priv *priv = platform_get_drvdata(of_dev);
|
/linux-master/drivers/net/ethernet/aeroflex/ |
H A D | greth.c | 1528 static void greth_of_remove(struct platform_device *of_dev) argument 1530 struct net_device *ndev = platform_get_drvdata(of_dev); 1534 dma_free_coherent(&of_dev->dev, 1024, greth->rx_bd_base, greth->rx_bd_base_phys); 1536 dma_free_coherent(&of_dev->dev, 1024, greth->tx_bd_base, greth->tx_bd_base_phys); 1544 of_iounmap(&of_dev->resource[0], greth->regs, resource_size(&of_dev->resource[0]));
|
/linux-master/drivers/net/ethernet/xilinx/ |
H A D | xilinx_emaclite.c | 1177 * @of_dev: Pointer to OF device structure 1183 static void xemaclite_of_remove(struct platform_device *of_dev) argument 1185 struct net_device *ndev = platform_get_drvdata(of_dev);
|