Lines Matching defs:num_entries
437 static void sw_send_comp(struct mlx5_ib_qp *qp, int num_entries,
453 for (i = 0; i < cur && np < num_entries; i++) {
467 static void sw_recv_comp(struct mlx5_ib_qp *qp, int num_entries,
482 for (i = 0; i < cur && np < num_entries; i++) {
494 static void mlx5_ib_poll_sw_comp(struct mlx5_ib_cq *cq, int num_entries,
502 sw_send_comp(qp, num_entries, wc + *npolled, npolled);
503 if (*npolled >= num_entries)
508 sw_recv_comp(qp, num_entries, wc + *npolled, npolled);
509 if (*npolled >= num_entries)
646 static int poll_soft_wc(struct mlx5_ib_cq *cq, int num_entries,
654 if (npolled >= num_entries)
668 int mlx5_ib_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc)
680 mlx5_ib_poll_sw_comp(cq, num_entries, wc, &npolled);
685 soft_polled = poll_soft_wc(cq, num_entries, wc);
687 for (npolled = 0; npolled < num_entries - soft_polled; npolled++) {