Lines Matching refs:ops
177 const struct rt_dma_map_ops *ops = RT_NULL; in ofw_device_dma_ops() local
230 ops = &ofw_dma_map_ops; in ofw_device_dma_ops()
233 return ops; in ofw_device_dma_ops()
239 const struct rt_dma_map_ops *ops = dev->dma_ops; in device_dma_ops() local
241 if (ops) in device_dma_ops()
243 return ops; in device_dma_ops()
247 if (dev->ofw_node && (ops = ofw_device_dma_ops(dev))) in device_dma_ops()
249 return ops; in device_dma_ops()
255 ops = &dma_map_coherent_ops; in device_dma_ops()
259 ops = &dma_map_nocoherent_ops; in device_dma_ops()
262 dev->dma_ops = ops; in device_dma_ops()
264 return ops; in device_dma_ops()
415 const struct rt_dma_map_ops *ops; in rt_dma_alloc() local
422 ops = device_dma_ops(dev); in rt_dma_alloc()
424 if (ops->alloc) in rt_dma_alloc()
426 dma_buffer = ops->alloc(dev, size, &dma_handle_s, flags); in rt_dma_alloc()
449 const struct rt_dma_map_ops *ops; in rt_dma_free() local
456 ops = device_dma_ops(dev); in rt_dma_free()
458 if (ops->free) in rt_dma_free()
460 ops->free(dev, size, cpu_addr, dma_handle, flags); in rt_dma_free()
473 const struct rt_dma_map_ops *ops; in rt_dma_sync_out_data() local
480 ops = device_dma_ops(dev); in rt_dma_sync_out_data()
481 err = ops->sync_out_data(dev, data, size, &dma_handle_s, flags); in rt_dma_sync_out_data()
495 const struct rt_dma_map_ops *ops; in rt_dma_sync_in_data() local
502 ops = device_dma_ops(dev); in rt_dma_sync_in_data()
503 err = ops->sync_in_data(dev, out_data, size, dma_handle, flags); in rt_dma_sync_in_data()