Lines Matching full:toggle

52 	return ring->curr.toggle;  in curr_toggle_val()
58 static inline void rm_write_header_desc(void *desc, uint32_t toggle, in rm_write_header_desc() argument
70 r->toggle = toggle; in rm_write_header_desc()
77 * with invalid toggle
83 /* Toggle bit is invalid until next payload configured */ in rm_write_header_next_desc()
84 rm_write_header_desc(desc, (r->curr.toggle == 0) ? 1 : 0, opq, bdcount); in rm_write_header_next_desc()
95 static inline void rm_header_set_toggle(void *desc, uint32_t toggle) in rm_header_set_toggle() argument
99 r->toggle = toggle; in rm_header_set_toggle()
151 /* if hit next table ptr, skip to next location, flip toggle */ in next_desc_addr()
155 curr, nxt->toggle, (uintptr_t)nxt->addr); in next_desc_addr()
158 ring->curr.toggle = (ring->curr.toggle == 0) ? 1 : 0; in next_desc_addr()
175 uint32_t toggle) in rm_write_next_table_desc() argument
181 nxt->toggle = toggle; in rm_write_next_table_desc()
187 uint32_t toggle; in prepare_ring() local
197 /* start with first buffer, valid toggle is 0x1 */ in prepare_ring()
198 toggle = 0x1; in prepare_ring()
205 (void *)next, toggle); in prepare_ring()
207 /* valid toggle flips for each buffer */ in prepare_ring()
208 toggle = toggle ? 0x0 : 0x1; in prepare_ring()
222 /* valid toggle starts with 1 after reset */ in prepare_ring()
223 ring->curr.toggle = 1; in prepare_ring()
268 /* set config done 0, enable toggle mode */ in rm_cfg_start()
789 /* current toggle bit */ in dma_iproc_pax_do_xfer()
790 toggle_bit = ring->curr.toggle; in dma_iproc_pax_do_xfer()
802 /* Toggle may flip, program updated toggle value */ in dma_iproc_pax_do_xfer()
814 /* RM header for next transfer, RM wait on (invalid) toggle bit */ in dma_iproc_pax_do_xfer()
820 /* Ensure memory write before toggle flip */ in dma_iproc_pax_do_xfer()
823 /* set toggle to valid in first header */ in dma_iproc_pax_do_xfer()