Lines Matching refs:page_cnt
128 u32 page_cnt; member
242 return p_chain->page_cnt; in qed_chain_get_page_cnt()
282 if (++(*(u16 *)page_to_inc) == p_chain->page_cnt) in qed_chain_advance_page()
286 if (++(*(u32 *)page_to_inc) == p_chain->page_cnt) in qed_chain_advance_page()
475 u32 reset_val = p_chain->page_cnt - 1; in qed_chain_reset()
513 u32 page_cnt, in qed_chain_init_params() argument
534 p_chain->page_cnt = page_cnt; in qed_chain_init_params()
535 p_chain->capacity = p_chain->usable_per_page * page_cnt; in qed_chain_init_params()
536 p_chain->size = p_chain->elem_per_page * page_cnt; in qed_chain_init_params()
646 last_page_idx = p_chain->page_cnt - 1; in qed_chain_get_last_elem()
667 u32 cur_prod, page_mask, page_cnt, page_diff; in qed_chain_set_prod() local
686 page_cnt = qed_chain_get_page_cnt(p_chain); in qed_chain_set_prod()
690 page_diff + page_cnt) % page_cnt; in qed_chain_set_prod()
694 page_diff + page_cnt) % page_cnt; in qed_chain_set_prod()
711 u32 i, page_cnt; in qed_chain_pbl_zero_mem() local
716 page_cnt = qed_chain_get_page_cnt(p_chain); in qed_chain_pbl_zero_mem()
718 for (i = 0; i < page_cnt; i++) in qed_chain_pbl_zero_mem()