Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_wq.c71 #define MASKED_WQE_IDX(wq, idx) ((idx) & (wq)->mask) macro
706 idx = MASKED_WQE_IDX(wq, idx); in copy_wqe_to_shadow()
723 idx = MASKED_WQE_IDX(wq, idx); in copy_wqe_from_shadow()
746 *prod_idx = MASKED_WQE_IDX(wq, atomic_read(&wq->prod_idx)); in hinic_get_wqe()
757 end_prod_idx = MASKED_WQE_IDX(wq, end_prod_idx); in hinic_get_wqe()
759 curr_prod_idx = MASKED_WQE_IDX(wq, curr_prod_idx); in hinic_get_wqe()
762 end_prod_idx = MASKED_WQE_IDX(wq, end_prod_idx - 1); in hinic_get_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()