Lines Matching refs:ops
66 static inline void set_dma_ops(struct device *dev, struct dma_map_ops *ops)
68 dev->archdata.dma_ops = ops;
73 struct dma_map_ops *ops = get_dma_ops(dev);
75 if (unlikely(!ops))
77 if (!ops->dma_supported)
79 return ops->dma_supported(dev, mask);
84 struct dma_map_ops *ops = get_dma_ops(dev);
86 if (unlikely(ops == NULL))
88 if (ops->set_dma_mask)
89 return ops->set_dma_mask(dev, dma_mask);
100 struct dma_map_ops *ops = get_dma_ops(dev);
101 if (ops->mapping_error)
102 return ops->mapping_error(dev, dma_addr);
113 struct dma_map_ops *ops = get_dma_ops(dev);
116 BUG_ON(!ops);
118 memory = ops->alloc_coherent(dev, size, dma_handle, flag);
127 struct dma_map_ops *ops = get_dma_ops(dev);
129 BUG_ON(!ops);
131 ops->free_coherent(dev, size, cpu_addr, dma_handle);