Home
last modified time | relevance | path

Searched refs:curr_cons_idx (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_wq.c826 u16 curr_cons_idx, end_cons_idx; in hinic_read_wqe() local
832 curr_cons_idx = atomic_read(&wq->cons_idx); in hinic_read_wqe()
834 curr_cons_idx = MASKED_WQE_IDX(wq, curr_cons_idx); in hinic_read_wqe()
835 end_cons_idx = MASKED_WQE_IDX(wq, curr_cons_idx + num_wqebbs - 1); in hinic_read_wqe()
837 curr_pg = WQE_PAGE_NUM(wq, curr_cons_idx); in hinic_read_wqe()
840 *cons_idx = curr_cons_idx; in hinic_read_wqe()
845 if (curr_pg != end_pg || end_cons_idx < curr_cons_idx) { in hinic_read_wqe()