Searched refs:prod_index (Results 1 – 2 of 2) sorted by relevance
/drivers/infiniband/hw/mlx4/ |
D | cq.c | 754 u32 prod_index; in __mlx4_ib_cq_clean() local 766 for (prod_index = cq->mcq.cons_index; get_sw_cqe(cq, prod_index); ++prod_index) in __mlx4_ib_cq_clean() 767 if (prod_index == cq->mcq.cons_index + cq->ibcq.cqe) in __mlx4_ib_cq_clean() 774 while ((int) --prod_index - (int) cq->mcq.cons_index >= 0) { in __mlx4_ib_cq_clean() 775 cqe = get_cqe(cq, prod_index & cq->ibcq.cqe); in __mlx4_ib_cq_clean() 781 dest = get_cqe(cq, (prod_index + nfreed) & cq->ibcq.cqe); in __mlx4_ib_cq_clean()
|
/drivers/infiniband/hw/mthca/ |
D | mthca_cq.c | 281 u32 prod_index; in mthca_cq_clean() local 293 for (prod_index = cq->cons_index; in mthca_cq_clean() 294 cqe_sw(get_cqe(cq, prod_index & cq->ibcq.cqe)); in mthca_cq_clean() 295 ++prod_index) in mthca_cq_clean() 296 if (prod_index == cq->cons_index + cq->ibcq.cqe) in mthca_cq_clean() 301 qpn, cq->cqn, cq->cons_index, prod_index); in mthca_cq_clean() 307 while ((int) --prod_index - (int) cq->cons_index >= 0) { in mthca_cq_clean() 308 cqe = get_cqe(cq, prod_index & cq->ibcq.cqe); in mthca_cq_clean() 314 memcpy(get_cqe(cq, (prod_index + nfreed) & cq->ibcq.cqe), in mthca_cq_clean()
|