Lines Matching full:bd
52 struct bcom_bd *bd; member
95 /* BD based tasks helpers */
123 * bcom_queue_empty - Checks if a BestComm task BD queue is empty
133 * bcom_queue_full - Checks if a BestComm task BD queue is full
143 * bcom_get_bd - Get a BD from the queue
145 * index: Index of the BD to fetch
152 return ((void *)tsk->bd) + (index * tsk->bd_size); in bcom_get_bd()
162 struct bcom_bd *bd; in bcom_buffer_done() local
166 bd = bcom_get_bd(tsk, tsk->outdex); in bcom_buffer_done()
167 return !(bd->status & BCOM_BD_READY); in bcom_buffer_done()
179 struct bcom_bd *bd; in bcom_prepare_next_buffer() local
181 bd = bcom_get_bd(tsk, tsk->index); in bcom_prepare_next_buffer()
182 bd->status = 0; /* cleanup last status */ in bcom_prepare_next_buffer()
183 return bd; in bcom_prepare_next_buffer()
189 struct bcom_bd *bd = bcom_get_bd(tsk, tsk->index); in bcom_submit_next_buffer() local
192 mb(); /* ensure the bd is really up-to-date */ in bcom_submit_next_buffer()
193 bd->status |= BCOM_BD_READY; in bcom_submit_next_buffer()
203 struct bcom_bd *bd = bcom_get_bd(tsk, tsk->outdex); in bcom_retrieve_buffer() local
206 *p_status = bd->status; in bcom_retrieve_buffer()
208 *p_bd = bd; in bcom_retrieve_buffer()