Rev 6514 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6514 | Rev 6936 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | static inline void init_dma_attrs(struct dma_attrs *attrs) |
39 | static inline void init_dma_attrs(struct dma_attrs *attrs) |
40 | { |
40 | { |
41 | bitmap_zero(attrs->flags, __DMA_ATTRS_LONGS); |
41 | bitmap_zero(attrs->flags, __DMA_ATTRS_LONGS); |
42 | } |
42 | } |
Line 43... | Line -... | ||
43 | - | ||
44 | #ifdef CONFIG_HAVE_DMA_ATTRS |
43 | |
45 | /** |
44 | /** |
46 | * dma_set_attr - set a specific attribute |
45 | * dma_set_attr - set a specific attribute |
47 | * @attr: attribute to set |
46 | * @attr: attribute to set |
48 | * @attrs: struct dma_attrs (may be NULL) |
47 | * @attrs: struct dma_attrs (may be NULL) |
Line 65... | Line 64... | ||
65 | if (attrs == NULL) |
64 | if (attrs == NULL) |
66 | return 0; |
65 | return 0; |
67 | BUG_ON(attr >= DMA_ATTR_MAX); |
66 | BUG_ON(attr >= DMA_ATTR_MAX); |
68 | return test_bit(attr, attrs->flags); |
67 | return test_bit(attr, attrs->flags); |
69 | } |
68 | } |
70 | #else /* !CONFIG_HAVE_DMA_ATTRS */ |
- | |
71 | static inline void dma_set_attr(enum dma_attr attr, struct dma_attrs *attrs) |
- | |
72 | { |
- | |
73 | } |
- | |
Line 74... | Line -... | ||
74 | - | ||
75 | static inline int dma_get_attr(enum dma_attr attr, struct dma_attrs *attrs) |
- | |
76 | { |
- | |
77 | return 0; |
- | |
78 | } |
- | |
79 | #endif /* CONFIG_HAVE_DMA_ATTRS */ |
69 |