/Linux-v4.19/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 | 27 struct platform_device *of_dev; member
|
/Linux-v4.19/arch/powerpc/platforms/pseries/ |
D | ibmebus.c | 351 struct platform_device *of_dev; in ibmebus_bus_device_probe() local 354 of_dev = to_platform_device(dev); in ibmebus_bus_device_probe() 359 of_dev_get(of_dev); in ibmebus_bus_device_probe() 362 error = drv->probe(of_dev); in ibmebus_bus_device_probe() 364 of_dev_put(of_dev); in ibmebus_bus_device_probe() 371 struct platform_device *of_dev = to_platform_device(dev); in ibmebus_bus_device_remove() local 375 drv->remove(of_dev); in ibmebus_bus_device_remove() 381 struct platform_device *of_dev = to_platform_device(dev); in ibmebus_bus_device_shutdown() local 385 drv->shutdown(of_dev); in ibmebus_bus_device_shutdown()
|
/Linux-v4.19/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() 524 x.of_dev = of_platform_device_create(np, "temperature", NULL); in g4fan_init() 527 if( !x.of_dev ) { in g4fan_init() 541 if( x.of_dev ) in g4fan_exit() 542 of_device_unregister( x.of_dev ); in g4fan_exit()
|
D | smu.c | 78 struct platform_device *of_dev; member 643 &smu->of_dev->dev); in smu_expose_childs() 652 smu->of_dev = dev; in smu_platform_probe() 697 return smu->of_dev; in smu_get_ofdev()
|
/Linux-v4.19/drivers/net/ethernet/freescale/fman/ |
D | fman.c | 2703 static struct fman *read_dts_node(struct platform_device *of_dev) in read_dts_node() argument 2719 fm_node = of_node_get(of_dev->dev.of_node); in read_dts_node() 2723 dev_err(&of_dev->dev, "%s: failed to read cell-index for %pOF\n", in read_dts_node() 2730 res = platform_get_resource(of_dev, IORESOURCE_IRQ, 0); in read_dts_node() 2732 dev_err(&of_dev->dev, "%s: Can't get FMan IRQ resource\n", in read_dts_node() 2739 res = platform_get_resource(of_dev, IORESOURCE_IRQ, 1); in read_dts_node() 2741 dev_err(&of_dev->dev, "%s: Can't get FMan Error IRQ resource\n", in read_dts_node() 2748 res = platform_get_resource(of_dev, IORESOURCE_MEM, 0); in read_dts_node() 2750 dev_err(&of_dev->dev, "%s: Can't get FMan memory resource\n", in read_dts_node() 2760 dev_err(&of_dev->dev, "%s: Failed to get FM%d clock structure\n", in read_dts_node() [all …]
|
D | mac.c | 609 struct platform_device *of_dev; in mac_probe() local 663 of_dev = of_find_device_by_node(dev_node); in mac_probe() 664 if (!of_dev) { in mac_probe() 680 priv->fman = fman_bind(&of_dev->dev); in mac_probe() 764 of_dev = of_find_device_by_node(dev_node); in mac_probe() 765 if (!of_dev) { in mac_probe() 772 mac_dev->port[i] = fman_port_bind(&of_dev->dev); in mac_probe()
|
D | fman_port.c | 1754 static int fman_port_probe(struct platform_device *of_dev) in fman_port_probe() argument 1771 port->dev = &of_dev->dev; in fman_port_probe() 1773 port_node = of_node_get(of_dev->dev.of_node); in fman_port_probe() 1874 dev_set_drvdata(&of_dev->dev, port); in fman_port_probe()
|
/Linux-v4.19/drivers/input/serio/ |
D | xilinx_ps2.c | 340 static int xps2_of_remove(struct platform_device *of_dev) in xps2_of_remove() argument 342 struct xps2data *drvdata = platform_get_drvdata(of_dev); in xps2_of_remove() 349 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-v4.19/drivers/net/ethernet/aeroflex/ |
D | greth.c | 1534 static int greth_of_remove(struct platform_device *of_dev) in greth_of_remove() argument 1536 struct net_device *ndev = platform_get_drvdata(of_dev); in greth_of_remove() 1540 dma_free_coherent(&of_dev->dev, 1024, greth->rx_bd_base, greth->rx_bd_base_phys); in greth_of_remove() 1542 dma_free_coherent(&of_dev->dev, 1024, greth->tx_bd_base, greth->tx_bd_base_phys); in greth_of_remove() 1551 of_iounmap(&of_dev->resource[0], greth->regs, resource_size(&of_dev->resource[0])); in greth_of_remove()
|
/Linux-v4.19/drivers/net/ethernet/xilinx/ |
D | xilinx_emaclite.c | 1199 static int xemaclite_of_remove(struct platform_device *of_dev) in xemaclite_of_remove() argument 1201 struct net_device *ndev = platform_get_drvdata(of_dev); in xemaclite_of_remove()
|