Lines Matching +full:dual +full:- +full:direction

10  * This source code is distributed under a dual license of GPL v2.0 and OpenIB
43 #include <linux/dma-map-ops.h>
93 enum dma_data_direction direction, in ibmebus_map_page() argument
102 enum dma_data_direction direction, in ibmebus_unmap_page() argument
110 int nents, enum dma_data_direction direction, in ibmebus_map_sg() argument
117 sg->dma_address = (dma_addr_t) sg_virt(sg); in ibmebus_map_sg()
118 sg->dma_length = sg->length; in ibmebus_map_sg()
126 int nents, enum dma_data_direction direction, in ibmebus_unmap_sg() argument
155 struct device_node *dn = to_platform_device(dev)->dev.of_node; in ibmebus_match_path()
165 return to_platform_device(dev)->dev.of_node == data; in ibmebus_match_node()
175 return -ENOMEM; in ibmebus_create_device()
177 dev->dev.bus = &ibmebus_bus_type; in ibmebus_create_device()
178 dev->dev.dma_ops = &ibmebus_dma_ops; in ibmebus_create_device()
221 ibmebus_create_devices(drv->driver.of_match_table); in ibmebus_register_driver()
223 drv->driver.bus = &ibmebus_bus_type; in ibmebus_register_driver()
224 return driver_register(&drv->driver); in ibmebus_register_driver()
230 driver_unregister(&drv->driver); in ibmebus_unregister_driver()
241 return -EINVAL; in ibmebus_request_irq()
265 if (out[count - 1] == '\n') in ibmebus_chomp()
266 out[count - 1] = '\0'; in ibmebus_chomp()
280 return -ENOMEM; in probe_store()
288 rc = -EEXIST; in probe_store()
298 rc = -ENODEV; in probe_store()
316 return -ENOMEM; in remove_store()
330 return -ENODEV; in remove_store()
344 const struct of_device_id *matches = drv->of_match_table; in ibmebus_bus_bus_match()
354 int error = -ENODEV; in ibmebus_bus_device_probe()
358 drv = to_platform_driver(dev->driver); in ibmebus_bus_device_probe()
361 if (!drv->probe) in ibmebus_bus_device_probe()
366 if (of_driver_match_device(dev, dev->driver)) in ibmebus_bus_device_probe()
367 error = drv->probe(of_dev); in ibmebus_bus_device_probe()
377 struct platform_driver *drv = to_platform_driver(dev->driver); in ibmebus_bus_device_remove()
379 if (dev->driver && drv->remove) in ibmebus_bus_device_remove()
380 drv->remove(of_dev); in ibmebus_bus_device_remove()
386 struct platform_driver *drv = to_platform_driver(dev->driver); in ibmebus_bus_device_shutdown()
388 if (dev->driver && drv->shutdown) in ibmebus_bus_device_shutdown()
389 drv->shutdown(of_dev); in ibmebus_bus_device_shutdown()
401 return sprintf(buf, "%pOF\n", ofdev->dev.of_node); in devspec_show()
411 return sprintf(buf, "%pOFn\n", ofdev->dev.of_node); in name_show()