Searched refs:of_dev (Results 1 – 10 of 10) sorted by relevance
/linux-4.4.14/drivers/macintosh/ams/ |
D | ams-core.c | 162 ams_info.of_dev = of_platform_device_create(ams_info.of_node, "ams", NULL); in ams_sensor_attach() 163 if (!ams_info.of_dev) { in ams_sensor_attach() 169 result = device_create_file(&ams_info.of_dev->dev, &dev_attr_current); in ams_sensor_attach() 182 device_remove_file(&ams_info.of_dev->dev, &dev_attr_current); in ams_sensor_attach() 184 of_device_unregister(ams_info.of_dev); in ams_sensor_attach() 222 device_remove_file(&ams_info.of_dev->dev, &dev_attr_current); in ams_sensor_detach() 232 of_device_unregister(ams_info.of_dev); in ams_sensor_detach()
|
D | ams-input.c | 77 input->dev.parent = &ams_info.of_dev->dev; in ams_input_enable() 151 return device_create_file(&ams_info.of_dev->dev, &dev_attr_joystick); in ams_input_init() 156 device_remove_file(&ams_info.of_dev->dev, &dev_attr_joystick); in ams_input_exit()
|
D | ams.h | 26 struct platform_device *of_dev; member
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | ibmebus.c | 344 struct platform_device *of_dev; in ibmebus_bus_device_probe() local 347 of_dev = to_platform_device(dev); in ibmebus_bus_device_probe() 352 of_dev_get(of_dev); in ibmebus_bus_device_probe() 355 error = drv->probe(of_dev); in ibmebus_bus_device_probe() 357 of_dev_put(of_dev); in ibmebus_bus_device_probe() 364 struct platform_device *of_dev = to_platform_device(dev); in ibmebus_bus_device_remove() local 368 drv->remove(of_dev); in ibmebus_bus_device_remove() 374 struct platform_device *of_dev = to_platform_device(dev); in ibmebus_bus_device_shutdown() local 378 drv->shutdown(of_dev); in ibmebus_bus_device_shutdown() 421 struct platform_device *of_dev = to_platform_device(dev); in ibmebus_bus_legacy_suspend() local [all …]
|
/linux-4.4.14/drivers/macintosh/ |
D | therm_windtunnel.c | 54 struct platform_device *of_dev; member 255 err = device_create_file( &x.of_dev->dev, &dev_attr_cpu_temperature ); in setup_hardware() 256 err |= device_create_file( &x.of_dev->dev, &dev_attr_case_temperature ); in setup_hardware() 265 device_remove_file( &x.of_dev->dev, &dev_attr_cpu_temperature ); in restore_regs() 266 device_remove_file( &x.of_dev->dev, &dev_attr_case_temperature ); in restore_regs() 503 x.of_dev = of_platform_device_create(np, "temperature", NULL); in g4fan_init() 506 if( !x.of_dev ) { in g4fan_init() 520 if( x.of_dev ) in g4fan_exit() 521 of_device_unregister( x.of_dev ); in g4fan_exit()
|
D | smu.c | 76 struct platform_device *of_dev; member 637 &smu->of_dev->dev); in smu_expose_childs() 646 smu->of_dev = dev; in smu_platform_probe() 691 return smu->of_dev; in smu_get_ofdev()
|
/linux-4.4.14/drivers/input/serio/ |
D | xilinx_ps2.c | 337 static int xps2_of_remove(struct platform_device *of_dev) in xps2_of_remove() argument 339 struct xps2data *drvdata = platform_get_drvdata(of_dev); in xps2_of_remove() 346 if (of_address_to_resource(of_dev->dev.of_node, 0, &r_mem)) in xps2_of_remove()
|
D | apbps2.c | 197 static int apbps2_of_remove(struct platform_device *of_dev) in apbps2_of_remove() argument 199 struct apbps2_priv *priv = platform_get_drvdata(of_dev); in apbps2_of_remove()
|
/linux-4.4.14/drivers/net/ethernet/aeroflex/ |
D | greth.c | 1567 static int greth_of_remove(struct platform_device *of_dev) in greth_of_remove() argument 1569 struct net_device *ndev = platform_get_drvdata(of_dev); in greth_of_remove() 1573 dma_free_coherent(&of_dev->dev, 1024, greth->rx_bd_base, greth->rx_bd_base_phys); in greth_of_remove() 1575 dma_free_coherent(&of_dev->dev, 1024, greth->tx_bd_base, greth->tx_bd_base_phys); in greth_of_remove() 1584 of_iounmap(&of_dev->resource[0], greth->regs, resource_size(&of_dev->resource[0])); in greth_of_remove()
|
/linux-4.4.14/drivers/net/ethernet/xilinx/ |
D | xilinx_emaclite.c | 1190 static int xemaclite_of_remove(struct platform_device *of_dev) in xemaclite_of_remove() argument 1192 struct net_device *ndev = platform_get_drvdata(of_dev); in xemaclite_of_remove()
|