Lines Matching refs:ops
50 struct dma_map_ops *ops = get_dma_ops(dev); in dma_supported() local
52 if (unlikely(!ops)) in dma_supported()
54 if (!ops->dma_supported) in dma_supported()
56 return ops->dma_supported(dev, mask); in dma_supported()
61 struct dma_map_ops *ops = get_dma_ops(dev); in dma_set_mask() local
63 if (unlikely(ops == NULL)) in dma_set_mask()
65 if (ops->set_dma_mask) in dma_set_mask()
66 return ops->set_dma_mask(dev, dma_mask); in dma_set_mask()
93 struct dma_map_ops *ops = get_dma_ops(dev); in dma_mapping_error() local
96 if (ops->mapping_error) in dma_mapping_error()
97 return ops->mapping_error(dev, dma_addr); in dma_mapping_error()
111 struct dma_map_ops *ops = get_dma_ops(dev); in dma_alloc_attrs() local
114 BUG_ON(!ops); in dma_alloc_attrs()
116 memory = ops->alloc(dev, size, dma_handle, flag, attrs); in dma_alloc_attrs()
128 struct dma_map_ops *ops = get_dma_ops(dev); in dma_free_attrs() local
130 BUG_ON(!ops); in dma_free_attrs()
132 ops->free(dev, size, cpu_addr, dma_handle, attrs); in dma_free_attrs()