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
80 r->toggle = toggle; in rm_write_header_desc()
82 r->toggle = 0; in rm_write_header_desc()
90 uint32_t toggle, in rm_write_pcie_desc() argument
100 pcie->toggle = toggle; in rm_write_pcie_desc()
102 pcie->toggle = 0; in rm_write_pcie_desc()
111 uint32_t toggle, in rm_write_src_dst_desc() argument
122 desc->toggle = toggle; in rm_write_src_dst_desc()
124 desc->toggle = 0; in rm_write_src_dst_desc()
137 static void init_toggle(void *desc, uint32_t toggle) in init_toggle() argument
141 r->toggle = toggle; in init_toggle()
155 /* if hit next table ptr, skip to next location, flip toggle */ in get_curr_desc_addr()
159 curr, nxt->toggle, (uintptr_t)nxt->addr); in get_curr_desc_addr()
162 nxt->toggle = ring->curr.toggle; in get_curr_desc_addr()
163 ring->curr.toggle = (ring->curr.toggle == 0) ? 1 : 0; in get_curr_desc_addr()
184 uint32_t toggle) in rm_write_next_table_desc() argument
190 nxt->toggle = toggle; in rm_write_next_table_desc()
198 uint32_t toggle; in prepare_ring() local
205 /* start with first buffer, valid toggle is 0x1 */ in prepare_ring()
207 toggle = 0x1; in prepare_ring()
214 init_toggle((void *)curr, toggle); in prepare_ring()
217 (void *)next, toggle); in prepare_ring()
225 /* valid toggle flips for each buffer */ in prepare_ring()
226 toggle = toggle ? 0x0 : 0x1; in prepare_ring()
241 /* valid toggle starts with 1 after reset */ in prepare_ring()
242 ring->curr.toggle = 1; in prepare_ring()
289 /* set config done 0, enable toggle mode */ in rm_cfg_start()
963 /* current toggle bit */ in dma_iproc_pax_process_dma_blocks()
964 toggle_bit = ring->curr.toggle; in dma_iproc_pax_process_dma_blocks()