Lines Matching defs:num_entries
388 static void sw_comp(struct mlx5_ib_qp *qp, int num_entries, struct ib_wc *wc,
403 for (i = 0; i < cur && np < num_entries; i++) {
421 static void mlx5_ib_poll_sw_comp(struct mlx5_ib_cq *cq, int num_entries,
429 sw_comp(qp, num_entries, wc + *npolled, npolled, true);
430 if (*npolled >= num_entries)
435 sw_comp(qp, num_entries, wc + *npolled, npolled, false);
436 if (*npolled >= num_entries)
571 static int poll_soft_wc(struct mlx5_ib_cq *cq, int num_entries,
579 if (npolled >= num_entries)
597 int mlx5_ib_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc)
611 soft_polled = poll_soft_wc(cq, num_entries, wc, true);
613 mlx5_ib_poll_sw_comp(cq, num_entries - soft_polled,
619 soft_polled = poll_soft_wc(cq, num_entries, wc, false);
621 for (npolled = 0; npolled < num_entries - soft_polled; npolled++) {