Lines Matching refs:num_wqebbs

700 			       int num_wqebbs, u16 idx)  in copy_wqe_to_shadow()  argument
705 for (i = 0; i < num_wqebbs; i++, idx++) { in copy_wqe_to_shadow()
717 int num_wqebbs, u16 idx) in copy_wqe_from_shadow() argument
722 for (i = 0; i < num_wqebbs; i++, idx++) { in copy_wqe_from_shadow()
743 int curr_pg, end_pg, num_wqebbs; in hinic_get_wqe() local
748 num_wqebbs = ALIGN(wqe_size, wq->wqebb_size) >> wq->wqebb_size_shift; in hinic_get_wqe()
750 if (atomic_sub_return(num_wqebbs, &wq->delta) <= 0) { in hinic_get_wqe()
751 atomic_add(num_wqebbs, &wq->delta); in hinic_get_wqe()
755 end_prod_idx = atomic_add_return(num_wqebbs, &wq->prod_idx); in hinic_get_wqe()
758 curr_prod_idx = end_prod_idx - num_wqebbs; in hinic_get_wqe()
775 copy_wqe_to_shadow(wq, shadow_addr, num_wqebbs, *prod_idx); in hinic_get_wqe()
791 int num_wqebbs = ALIGN(wqe_size, wq->wqebb_size) / wq->wqebb_size; in hinic_return_wqe() local
793 atomic_sub(num_wqebbs, &wq->prod_idx); in hinic_return_wqe()
795 atomic_add(num_wqebbs, &wq->delta); in hinic_return_wqe()
805 int num_wqebbs = ALIGN(wqe_size, wq->wqebb_size) in hinic_put_wqe() local
808 atomic_add(num_wqebbs, &wq->cons_idx); in hinic_put_wqe()
810 atomic_add(num_wqebbs, &wq->delta); in hinic_put_wqe()
824 int num_wqebbs = ALIGN(wqe_size, wq->wqebb_size) in hinic_read_wqe() local
829 if ((atomic_read(&wq->delta) + num_wqebbs) > wq->q_depth) in hinic_read_wqe()
835 end_cons_idx = MASKED_WQE_IDX(wq, curr_cons_idx + num_wqebbs - 1); in hinic_read_wqe()
848 copy_wqe_to_shadow(wq, shadow_addr, num_wqebbs, *cons_idx); in hinic_read_wqe()
891 int curr_pg, num_wqebbs; in hinic_write_wqe() local
899 num_wqebbs = ALIGN(wqe_size, wq->wqebb_size) / wq->wqebb_size; in hinic_write_wqe()
902 copy_wqe_from_shadow(wq, shadow_addr, num_wqebbs, prod_idx); in hinic_write_wqe()