Searched refs:cons_index (Results 1 - 9 of 9) sorted by relevance

/drivers/infiniband/hw/mthca/
H A Dmthca_cq.c181 return cqe_sw(get_cqe(cq, cq->cons_index & cq->ibcq.cqe));
201 * incr is ignored in native Arbel (mem-free) mode, so cq->cons_index
208 *cq->set_ci_db = cpu_to_be32(cq->cons_index);
294 for (prod_index = cq->cons_index;
297 if (prod_index == cq->cons_index + cq->ibcq.cqe)
302 qpn, cq->cqn, cq->cons_index, prod_index);
308 while ((int) --prod_index - (int) cq->cons_index >= 0) {
321 set_cqe_hw(get_cqe(cq, (cq->cons_index + i) & cq->ibcq.cqe));
323 cq->cons_index += nfreed;
342 cq->cons_index
[all...]
H A Dmthca_provider.h109 u32 cons_index; member in struct:mthca_eq
206 u32 cons_index; member in struct:mthca_cq
H A Dmthca_eq.c237 eqe = get_eqe(eq, eq->cons_index);
363 ++eq->cons_index;
379 set_eq_ci(dev, eq, eq->cons_index);
411 dev->eq_table.eq[i].cons_index);
424 tavor_set_eq_ci(dev, eq, eq->cons_index);
444 dev->eq_table.eq[i].cons_index);
458 arbel_set_eq_ci(dev, eq, eq->cons_index);
555 eq->cons_index = 0;
/drivers/infiniband/hw/mlx4/
H A Dcq.c87 return get_sw_cqe(cq, cq->mcq.cons_index);
320 i = cq->mcq.cons_index;
324 return i - cq->mcq.cons_index;
332 i = cq->mcq.cons_index;
342 ++cq->mcq.cons_index;
565 ++cq->mcq.cons_index;
786 for (prod_index = cq->mcq.cons_index; get_sw_cqe(cq, prod_index); ++prod_index)
787 if (prod_index == cq->mcq.cons_index + cq->ibcq.cqe)
794 while ((int) --prod_index - (int) cq->mcq.cons_index >= 0) {
810 cq->mcq.cons_index
[all...]
/drivers/net/ethernet/mellanox/mlx4/
H A Deq.c87 __raw_writel((__force u32) cpu_to_be32((eq->cons_index & 0xffffff) |
102 struct mlx4_eqe *eqe = get_eqe(eq, eq->cons_index);
103 return !!(eqe->owner & 0x80) ^ !!(eq->cons_index & eq->nent) ? NULL : eqe;
278 eq->eqn, eq->cons_index, ret);
308 eq->eqn, eq->cons_index, ret);
387 eq->eqn, eq->cons_index, ret);
469 eq->cons_index, eqe->owner, eq->nent,
472 !!(eq->cons_index & eq->nent) ? "HW" : "SW");
483 eq->cons_index, eqe->owner, eq->nent,
486 !!(eq->cons_index
[all...]
H A Den_tx.c316 u32 cons_index = mcq->cons_index; local
324 index = cons_index & size_mask;
330 cons_index & size)) {
350 ++cons_index;
351 index = cons_index & size_mask;
360 mcq->cons_index = cons_index;
H A Den_rx.c551 index = cq->mcq.cons_index & ring->size_mask;
556 cq->mcq.cons_index & cq->size)) {
681 ++cq->mcq.cons_index;
682 index = (cq->mcq.cons_index) & ring->size_mask;
695 ring->cons = cq->mcq.cons_index;
H A Dcq.c293 cq->cons_index = 0;
H A Dmlx4.h380 u32 cons_index; member in struct:mlx4_eq

Completed in 166 milliseconds