Lines Matching refs:prod_idx

90 	u16 prod_idx;  member
96 u32 prod_idx; member
189 return p_chain->u.chain16.prod_idx; in qed_chain_get_prod_idx()
207 (u32)p_chain->u.chain16.prod_idx) - in qed_chain_get_elem_left()
210 used -= p_chain->u.chain16.prod_idx / p_chain->elem_per_page - in qed_chain_get_elem_left()
221 (u64)p_chain->u.chain32.prod_idx) - in qed_chain_get_elem_left_u32()
224 used -= p_chain->u.chain32.prod_idx / p_chain->elem_per_page - in qed_chain_get_elem_left_u32()
351 if ((p_chain->u.chain16.prod_idx & in qed_chain_produce()
353 p_prod_idx = &p_chain->u.chain16.prod_idx; in qed_chain_produce()
358 p_chain->u.chain16.prod_idx++; in qed_chain_produce()
360 if ((p_chain->u.chain32.prod_idx & in qed_chain_produce()
362 p_prod_idx = &p_chain->u.chain32.prod_idx; in qed_chain_produce()
367 p_chain->u.chain32.prod_idx++; in qed_chain_produce()
402 test_and_skip(p_chain, prod_idx); in qed_chain_recycle_consumed()
404 p_chain->u.chain16.prod_idx++; in qed_chain_recycle_consumed()
406 p_chain->u.chain32.prod_idx++; in qed_chain_recycle_consumed()
460 p_chain->u.chain16.prod_idx = 0; in qed_chain_reset()
463 p_chain->u.chain32.prod_idx = 0; in qed_chain_reset()
664 u32 prod_idx, void *p_prod_elem) in qed_chain_set_prod() argument
669 cur_prod = is_chain_u16(p_chain) ? p_chain->u.chain16.prod_idx : in qed_chain_set_prod()
670 p_chain->u.chain32.prod_idx; in qed_chain_set_prod()
683 ((prod_idx - 1) & page_mask)) / in qed_chain_set_prod()
698 p_chain->u.chain16.prod_idx = (u16) prod_idx; in qed_chain_set_prod()
700 p_chain->u.chain32.prod_idx = prod_idx; in qed_chain_set_prod()