Home
last modified time | relevance | path

Searched refs:cons_index (Results 1 – 20 of 20) sorted by relevance

/drivers/infiniband/hw/mthca/
A Dmthca_cq.c289 for (prod_index = cq->cons_index; in mthca_cq_clean()
318 cq->cons_index += nfreed; in mthca_cq_clean()
337 cq->cons_index &= cq->ibcq.cqe; in mthca_cq_resize_copy_cqes()
339 cq->cons_index -= cq->ibcq.cqe + 1; in mthca_cq_resize_copy_cqes()
384 cq->cqn, cq->cons_index); in handle_error_cqe()
648 ++cq->cons_index; in mthca_poll_one()
698 cq->cons_index &= cq->ibcq.cqe; in mthca_poll_cq()
743 db_rec[0] = cpu_to_be32(cq->cons_index); in mthca_arbel_arm_cq()
761 mthca_write64(dbhi, cq->cons_index, in mthca_arbel_arm_cq()
859 cq->cons_index = 0; in mthca_init_cq()
[all …]
A Dmthca_eq.c237 eqe = get_eqe(eq, eq->cons_index); in next_eqe_sw()
363 ++eq->cons_index; in mthca_eq_int()
379 set_eq_ci(dev, eq, eq->cons_index); in mthca_eq_int()
411 dev->eq_table.eq[i].cons_index); in mthca_tavor_interrupt()
424 tavor_set_eq_ci(dev, eq, eq->cons_index); in mthca_tavor_msi_x_interrupt()
444 dev->eq_table.eq[i].cons_index); in mthca_arbel_interrupt()
458 arbel_set_eq_ci(dev, eq, eq->cons_index); in mthca_arbel_msi_x_interrupt()
555 eq->cons_index = 0; in mthca_create_eq()
A Dmthca_provider.h91 u32 cons_index; member
188 u32 cons_index; member
/drivers/net/ethernet/mellanox/mlx5/core/lib/
A Deq.h30 u32 cons_index; member
63 struct mlx5_eqe *eqe = get_eqe(eq, eq->cons_index & eq->fbc.sz_m1); in next_eqe_sw()
65 return (eqe->owner ^ (eq->cons_index >> eq->fbc.log_sz)) & 1 ? NULL : eqe; in next_eqe_sw()
71 u32 val = (eq->cons_index & 0xffffff) | (eq->eqn << 24); in eq_update_ci()
/drivers/infiniband/hw/mlx4/
A Dcq.c90 return get_sw_cqe(cq, cq->mcq.cons_index); in next_cqe_sw()
352 i = cq->mcq.cons_index; in mlx4_ib_get_outstanding_cqes()
356 return i - cq->mcq.cons_index; in mlx4_ib_get_outstanding_cqes()
366 i = cq->mcq.cons_index; in mlx4_ib_cq_resize_copy_cqes()
381 ++cq->mcq.cons_index; in mlx4_ib_cq_resize_copy_cqes()
685 ++cq->mcq.cons_index; in mlx4_ib_poll_one()
935 for (prod_index = cq->mcq.cons_index; get_sw_cqe(cq, prod_index); ++prod_index) in __mlx4_ib_cq_clean()
936 if (prod_index == cq->mcq.cons_index + cq->ibcq.cqe) in __mlx4_ib_cq_clean()
943 while ((int) --prod_index - (int) cq->mcq.cons_index >= 0) { in __mlx4_ib_cq_clean()
963 cq->mcq.cons_index += nfreed; in __mlx4_ib_cq_clean()
/drivers/net/ethernet/mellanox/mlx4/
A Deq.c543 eq->eqn, eq->cons_index, ret); in mlx4_eq_int()
573 eq->eqn, eq->cons_index, ret); in mlx4_eq_int()
698 eq->eqn, eq->cons_index, ret); in mlx4_eq_int()
783 eq->cons_index, eqe->owner, eq->nent, in mlx4_eq_int()
786 !!(eq->cons_index & eq->nent) ? "HW" : "SW"); in mlx4_eq_int()
808 eq->cons_index, eqe->owner, eq->nent, in mlx4_eq_int()
810 !!(eq->cons_index & eq->nent) ? "HW" : "SW"); in mlx4_eq_int()
820 eq->cons_index, eqe->owner, eq->nent, in mlx4_eq_int()
823 !!(eq->cons_index & eq->nent) ? "HW" : "SW"); in mlx4_eq_int()
827 ++eq->cons_index; in mlx4_eq_int()
[all …]
A Den_tx.c434 u32 cons_index = mcq->cons_index; in mlx4_en_process_tx_cq() local
453 index = cons_index & size_mask; in mlx4_en_process_tx_cq()
462 cons_index & size) && (done < budget)) { in mlx4_en_process_tx_cq()
505 ++cons_index; in mlx4_en_process_tx_cq()
506 index = cons_index & size_mask; in mlx4_en_process_tx_cq()
514 mcq->cons_index = cons_index; in mlx4_en_process_tx_cq()
A Den_rx.c709 index = cq->mcq.cons_index & ring->size_mask; in mlx4_en_process_rx_cq()
714 cq->mcq.cons_index & cq->size)) { in mlx4_en_process_rx_cq()
930 ++cq->mcq.cons_index; in mlx4_en_process_rx_cq()
931 index = (cq->mcq.cons_index) & ring->size_mask; in mlx4_en_process_rx_cq()
948 ring->cons = cq->mcq.cons_index; in mlx4_en_process_rx_cq()
A Dcq.c410 cq->cons_index = 0; in mlx4_cq_alloc()
A Dmlx4.h397 u32 cons_index; member
/drivers/infiniband/hw/mlx5/
A Dcq.c99 return get_sw_cqe(cq, cq->mcq.cons_index); in next_cqe_sw()
472 ++cq->mcq.cons_index; in mlx5_poll_one()
666 uar_page, to_mcq(ibcq)->mcq.cons_index); in mlx5_ib_arm_cq()
1108 for (prod_index = cq->mcq.cons_index; get_sw_cqe(cq, prod_index); prod_index++) in __mlx5_ib_cq_clean()
1109 if (prod_index == cq->mcq.cons_index + cq->ibcq.cqe) in __mlx5_ib_cq_clean()
1115 while ((int) --prod_index - (int) cq->mcq.cons_index >= 0) { in __mlx5_ib_cq_clean()
1133 cq->mcq.cons_index += nfreed; in __mlx5_ib_cq_clean()
1247 i = cq->mcq.cons_index; in copy_resize_cqes()
1278 ++cq->mcq.cons_index; in copy_resize_cqes()
/drivers/net/ethernet/mellanox/mlx5/core/
A Deq.c139 ++eq->cons_index; in mlx5_eq_comp_int()
160 count_eqe = eq->core.cons_index; in mlx5_eq_poll_irq_disabled()
162 count_eqe = eq->core.cons_index - count_eqe; in mlx5_eq_poll_irq_disabled()
222 ++eq->cons_index; in mlx5_eq_async_int()
277 eq->cons_index = 0; in create_map_eq()
789 u32 ci = eq->cons_index + cc; in mlx5_eq_get_eqe()
807 eq->cons_index += cc; in mlx5_eq_update_ci()
A Dcq.c120 cq->cons_index = 0; in mlx5_create_cq()
/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dhealth.c58 devlink_fmsg_u32_pair_put(fmsg, "ci", eq->core.cons_index); in mlx5e_health_eq_diag_fmsg()
139 eq->core.eqn, eq->core.cons_index, eq->core.irqn); in mlx5e_health_channel_eq_recover()
/drivers/infiniband/hw/hns/
A Dhns_roce_restrack.c23 if (rdma_nl_put_driver_u32(msg, "cons_index", hr_cq->cons_index)) in hns_roce_fill_res_cq_entry()
A Dhns_roce_hw_v2.c3597 hr_cq->cons_index += nfreed; in __hns_roce_v2_cq_clean()
3955 cqe = get_sw_cqe_v2(hr_cq, hr_cq->cons_index); in hns_roce_v2_poll_one()
3959 ++hr_cq->cons_index; in hns_roce_v2_poll_one()
6212 hr_reg_write(&eq_db, EQ_DB_CI, eq->cons_index); in update_eq_db()
6222 (eq->cons_index & (eq->entries - 1)) * in next_aeqe_sw_v2()
6226 !!(eq->cons_index & eq->entries)) ? aeqe : NULL; in next_aeqe_sw_v2()
6269 ++eq->cons_index; in hns_roce_v2_aeq_int()
6291 (eq->cons_index & (eq->entries - 1)) * in next_ceqe_sw_v2()
6295 !!(eq->cons_index & eq->entries)) ? ceqe : NULL; in next_ceqe_sw_v2()
6556 eq->cons_index = 0; in init_eq_config()
[all …]
A Dhns_roce_device.h422 u32 cons_index; member
700 u32 cons_index; member
A Dhns_roce_cq.c420 hr_cq->cons_index = 0; in hns_roce_create_cq()
/drivers/vfio/pci/mlx5/
A Dcmd.c1210 cq->mcq.cons_index); in mlx5vf_create_cq()
1703 cqe = get_sw_cqe(cq, cq->mcq.cons_index); in mlx5vf_cq_poll_one()
1707 ++cq->mcq.cons_index; in mlx5vf_cq_poll_one()
1763 cq->mcq.cons_index); in mlx5vf_tracker_read_and_clear()
/drivers/vdpa/mlx5/net/
A Dmlx5_vnet.c496 return get_sw_cqe(cq, cq->mcq.cons_index); in next_cqe_sw()
507 vcq->mcq.cons_index++; in mlx5_vdpa_poll_one()
552 mlx5_cq_arm(&mvq->cq.mcq, MLX5_CQ_DB_REQ_NOT, uar_page, mvq->cq.mcq.cons_index); in mlx5_vdpa_cq_comp()
619 mlx5_cq_arm(&mvq->cq.mcq, MLX5_CQ_DB_REQ_NOT, uar_page, mvq->cq.mcq.cons_index); in cq_create()

Completed in 78 milliseconds