Lines Matching refs:ccw
88 static inline int set_normalized_cda(struct ccw1 *ccw, void *vaddr) in set_normalized_cda() argument
93 if (ccw->flags & CCW_FLAG_IDA) in set_normalized_cda()
95 nridaws = idal_nr_words(vaddr, ccw->count); in set_normalized_cda()
100 idal_create_words(idal, vaddr, ccw->count); in set_normalized_cda()
101 ccw->flags |= CCW_FLAG_IDA; in set_normalized_cda()
104 ccw->cda = virt_to_dma32(vaddr); in set_normalized_cda()
111 static inline void clear_normalized_cda(struct ccw1 *ccw) in clear_normalized_cda() argument
113 if (ccw->flags & CCW_FLAG_IDA) { in clear_normalized_cda()
114 kfree(dma32_to_virt(ccw->cda)); in clear_normalized_cda()
115 ccw->flags &= ~CCW_FLAG_IDA; in clear_normalized_cda()
117 ccw->cda = 0; in clear_normalized_cda()
196 static inline void idal_buffer_set_cda(struct idal_buffer *ib, struct ccw1 *ccw) in idal_buffer_set_cda() argument
202 ccw->cda = virt_to_dma32(ib->data); in idal_buffer_set_cda()
203 ccw->flags |= CCW_FLAG_IDA; in idal_buffer_set_cda()
211 ccw->cda = virt_to_dma32(vaddr); in idal_buffer_set_cda()
213 ccw->count = ib->size; in idal_buffer_set_cda()