Lines Matching refs:npolled
3401 int npolled; in free_mr_send_cmd_to_hw() local
3432 npolled = hns_roce_v2_poll_cq(free_mr->rsv_cq, cqe_cnt, wc); in free_mr_send_cmd_to_hw()
3433 if (npolled < 0) { in free_mr_send_cmd_to_hw()
3446 cqe_cnt -= npolled; in free_mr_send_cmd_to_hw()
3653 int npolled = 0; in sw_comp() local
3660 while (npolled < left) { in sw_comp()
3668 npolled++; in sw_comp()
3671 return npolled; in sw_comp()
3678 int npolled = 0; in hns_roce_v2_sw_poll_cq() local
3681 npolled += sw_comp(hr_qp, &hr_qp->sq, in hns_roce_v2_sw_poll_cq()
3682 num_entries - npolled, wc + npolled); in hns_roce_v2_sw_poll_cq()
3683 if (npolled >= num_entries) in hns_roce_v2_sw_poll_cq()
3688 npolled += sw_comp(hr_qp, &hr_qp->rq, in hns_roce_v2_sw_poll_cq()
3689 num_entries - npolled, wc + npolled); in hns_roce_v2_sw_poll_cq()
3690 if (npolled >= num_entries) in hns_roce_v2_sw_poll_cq()
3695 return npolled; in hns_roce_v2_sw_poll_cq()
3997 int npolled; in hns_roce_v2_poll_cq() local
4009 npolled = hns_roce_v2_sw_poll_cq(hr_cq, num_entries, wc); in hns_roce_v2_poll_cq()
4013 for (npolled = 0; npolled < num_entries; ++npolled) { in hns_roce_v2_poll_cq()
4014 if (hns_roce_v2_poll_one(hr_cq, &cur_qp, wc + npolled)) in hns_roce_v2_poll_cq()
4018 if (npolled) in hns_roce_v2_poll_cq()
4024 return npolled; in hns_roce_v2_poll_cq()