Home
last modified time | relevance | path

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

/drivers/macintosh/ams/
Dams-core.c149 ams_info.of_dev = of_platform_device_create(ams_info.of_node, "ams", NULL); in ams_sensor_attach()
150 if (!ams_info.of_dev) { in ams_sensor_attach()
156 result = device_create_file(&ams_info.of_dev->dev, &dev_attr_current); in ams_sensor_attach()
169 device_remove_file(&ams_info.of_dev->dev, &dev_attr_current); in ams_sensor_attach()
171 of_device_unregister(ams_info.of_dev); in ams_sensor_attach()
209 device_remove_file(&ams_info.of_dev->dev, &dev_attr_current); in ams_sensor_detach()
219 of_device_unregister(ams_info.of_dev); in ams_sensor_detach()
Dams-input.c68 input->dev.parent = &ams_info.of_dev->dev; in ams_input_enable()
146 return device_create_file(&ams_info.of_dev->dev, &dev_attr_joystick); in ams_input_init()
151 device_remove_file(&ams_info.of_dev->dev, &dev_attr_joystick); in ams_input_exit()
Dams.h27 struct platform_device *of_dev; member
/drivers/macintosh/
Dtherm_windtunnel.c54 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()
534 x.of_dev = of_platform_device_create(np, "temperature", NULL); in g4fan_init()
537 if( !x.of_dev ) { in g4fan_init()
551 if( x.of_dev ) in g4fan_exit()
552 of_device_unregister( x.of_dev ); in g4fan_exit()
Dsmu.c76 struct platform_device *of_dev; member
644 &smu->of_dev->dev); in smu_expose_childs()
653 smu->of_dev = dev; in smu_platform_probe()
698 return smu->of_dev; in smu_get_ofdev()
/drivers/net/ethernet/freescale/fman/
Dfman.c2716 static struct fman *read_dts_node(struct platform_device *of_dev) in read_dts_node() argument
2732 fm_node = of_node_get(of_dev->dev.of_node); in read_dts_node()
2736 dev_err(&of_dev->dev, "%s: failed to read cell-index for %pOF\n", in read_dts_node()
2743 res = platform_get_resource(of_dev, IORESOURCE_IRQ, 0); in read_dts_node()
2745 dev_err(&of_dev->dev, "%s: Can't get FMan IRQ resource\n", in read_dts_node()
2752 res = platform_get_resource(of_dev, IORESOURCE_IRQ, 1); in read_dts_node()
2754 dev_err(&of_dev->dev, "%s: Can't get FMan Error IRQ resource\n", in read_dts_node()
2761 res = platform_get_resource(of_dev, IORESOURCE_MEM, 0); in read_dts_node()
2763 dev_err(&of_dev->dev, "%s: Can't get FMan memory resource\n", in read_dts_node()
2773 dev_err(&of_dev->dev, "%s: Failed to get FM%d clock structure\n", in read_dts_node()
[all …]
Dmac.c617 struct platform_device *of_dev; in mac_probe() local
670 of_dev = of_find_device_by_node(dev_node); in mac_probe()
671 if (!of_dev) { in mac_probe()
687 priv->fman = fman_bind(&of_dev->dev); in mac_probe()
767 of_dev = of_find_device_by_node(dev_node); in mac_probe()
768 if (!of_dev) { in mac_probe()
775 mac_dev->port[i] = fman_port_bind(&of_dev->dev); in mac_probe()
Dfman_port.c1768 static int fman_port_probe(struct platform_device *of_dev) in fman_port_probe() argument
1786 port->dev = &of_dev->dev; in fman_port_probe()
1788 port_node = of_node_get(of_dev->dev.of_node); in fman_port_probe()
1895 dev_set_drvdata(&of_dev->dev, port); in fman_port_probe()
/drivers/input/serio/
Dxilinx_ps2.c332 static int xps2_of_remove(struct platform_device *of_dev) in xps2_of_remove() argument
334 struct xps2data *drvdata = platform_get_drvdata(of_dev); in xps2_of_remove()
341 if (of_address_to_resource(of_dev->dev.of_node, 0, &r_mem)) in xps2_of_remove()
Dapbps2.c192 static int apbps2_of_remove(struct platform_device *of_dev) in apbps2_of_remove() argument
194 struct apbps2_priv *priv = platform_get_drvdata(of_dev); in apbps2_of_remove()
/drivers/net/ethernet/aeroflex/
Dgreth.c1528 static int greth_of_remove(struct platform_device *of_dev) in greth_of_remove() argument
1530 struct net_device *ndev = platform_get_drvdata(of_dev); in greth_of_remove()
1534 dma_free_coherent(&of_dev->dev, 1024, greth->rx_bd_base, greth->rx_bd_base_phys); in greth_of_remove()
1536 dma_free_coherent(&of_dev->dev, 1024, greth->tx_bd_base, greth->tx_bd_base_phys); in greth_of_remove()
1544 of_iounmap(&of_dev->resource[0], greth->regs, resource_size(&of_dev->resource[0])); in greth_of_remove()
/drivers/net/ethernet/xilinx/
Dxilinx_emaclite.c1208 static int xemaclite_of_remove(struct platform_device *of_dev) in xemaclite_of_remove() argument
1210 struct net_device *ndev = platform_get_drvdata(of_dev); in xemaclite_of_remove()