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>
91 enum dma_data_direction direction, in ibmebus_map_page() argument
100 enum dma_data_direction direction, in ibmebus_unmap_page() argument
108 int nents, enum dma_data_direction direction, in ibmebus_map_sg() argument
115 sg->dma_address = (dma_addr_t) sg_virt(sg); in ibmebus_map_sg()
116 sg->dma_length = sg->length; in ibmebus_map_sg()
124 int nents, enum dma_data_direction direction, in ibmebus_unmap_sg() argument
153 struct device_node *dn = to_platform_device(dev)->dev.of_node; in ibmebus_match_path()
159 return to_platform_device(dev)->dev.of_node == data; in ibmebus_match_node()
169 return -ENOMEM; in ibmebus_create_device()
171 dev->dev.bus = &ibmebus_bus_type; in ibmebus_create_device()
172 dev->dev.dma_ops = &ibmebus_dma_ops; in ibmebus_create_device()
215 ibmebus_create_devices(drv->driver.of_match_table); in ibmebus_register_driver()
217 drv->driver.bus = &ibmebus_bus_type; in ibmebus_register_driver()
218 return driver_register(&drv->driver); in ibmebus_register_driver()
224 driver_unregister(&drv->driver); in ibmebus_unregister_driver()
235 return -EINVAL; in ibmebus_request_irq()
259 if (out[count - 1] == '\n') in ibmebus_chomp()
260 out[count - 1] = '\0'; in ibmebus_chomp()
274 return -ENOMEM; in probe_store()
282 rc = -EEXIST; in probe_store()
292 rc = -ENODEV; in probe_store()
310 return -ENOMEM; in remove_store()
324 return -ENODEV; in remove_store()
338 const struct of_device_id *matches = drv->of_match_table; in ibmebus_bus_bus_match()
348 int error = -ENODEV; in ibmebus_bus_device_probe()
352 drv = to_platform_driver(dev->driver); in ibmebus_bus_device_probe()
355 if (!drv->probe) in ibmebus_bus_device_probe()
360 if (of_driver_match_device(dev, dev->driver)) in ibmebus_bus_device_probe()
361 error = drv->probe(of_dev); in ibmebus_bus_device_probe()
371 struct platform_driver *drv = to_platform_driver(dev->driver); in ibmebus_bus_device_remove()
373 if (dev->driver && drv->remove) in ibmebus_bus_device_remove()
374 drv->remove(of_dev); in ibmebus_bus_device_remove()
381 struct platform_driver *drv = to_platform_driver(dev->driver); in ibmebus_bus_device_shutdown()
383 if (dev->driver && drv->shutdown) in ibmebus_bus_device_shutdown()
384 drv->shutdown(of_dev); in ibmebus_bus_device_shutdown()
396 return sprintf(buf, "%pOF\n", ofdev->dev.of_node); in devspec_show()
406 return sprintf(buf, "%pOFn\n", ofdev->dev.of_node); in name_show()