/linux-4.1.27/drivers/infiniband/hw/mthca/ |
D | mthca_cq.c | 181 return cqe_sw(get_cqe(cq, cq->cons_index & cq->ibcq.cqe)); in next_cqe_sw() 208 *cq->set_ci_db = cpu_to_be32(cq->cons_index); in update_cons_index() 294 for (prod_index = cq->cons_index; in mthca_cq_clean() 297 if (prod_index == cq->cons_index + cq->ibcq.cqe) in mthca_cq_clean() 302 qpn, cq->cqn, cq->cons_index, prod_index); in mthca_cq_clean() 308 while ((int) --prod_index - (int) cq->cons_index >= 0) { in mthca_cq_clean() 321 set_cqe_hw(get_cqe(cq, (cq->cons_index + i) & cq->ibcq.cqe)); in mthca_cq_clean() 323 cq->cons_index += nfreed; in mthca_cq_clean() 342 cq->cons_index &= cq->ibcq.cqe; in mthca_cq_resize_copy_cqes() 344 cq->cons_index -= cq->ibcq.cqe + 1; in mthca_cq_resize_copy_cqes() [all …]
|
D | mthca_eq.c | 237 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()
|
D | mthca_provider.h | 109 u32 cons_index; member 206 u32 cons_index; member
|
/linux-4.1.27/include/linux/mlx5/ |
D | cq.h | 52 u32 cons_index; member 130 *cq->set_ci_db = cpu_to_be32(cq->cons_index & 0xffffff); in mlx5_cq_set_ci() 141 u32 cons_index) in mlx5_cq_arm() argument 148 ci = cons_index & 0xffffff; in mlx5_cq_arm()
|
D | driver.h | 347 u32 cons_index; member
|
/linux-4.1.27/include/linux/mlx4/ |
D | cq.h | 147 ci = cq->cons_index & 0xffffff; in mlx4_cq_arm() 165 *cq->set_ci_db = cpu_to_be32(cq->cons_index & 0xffffff); in mlx4_cq_set_ci()
|
D | device.h | 697 u32 cons_index; member
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
D | eq.c | 99 __raw_writel((__force u32) cpu_to_be32((eq->cons_index & 0xffffff) | in eq_set_ci() 123 struct mlx4_eqe *eqe = get_eqe(eq, eq->cons_index, eqe_factor, size); in next_eqe_sw() 124 return !!(eqe->owner & 0x80) ^ !!(eq->cons_index & eq->nent) ? NULL : eqe; in next_eqe_sw() 502 eq->eqn, eq->cons_index, ret); in mlx4_eq_int() 530 eq->eqn, eq->cons_index, ret); in mlx4_eq_int() 642 eq->eqn, eq->cons_index, ret); in mlx4_eq_int() 727 eq->cons_index, eqe->owner, eq->nent, in mlx4_eq_int() 730 !!(eq->cons_index & eq->nent) ? "HW" : "SW"); in mlx4_eq_int() 752 eq->cons_index, eqe->owner, eq->nent, in mlx4_eq_int() 754 !!(eq->cons_index & eq->nent) ? "HW" : "SW"); in mlx4_eq_int() [all …]
|
D | en_tx.c | 396 u32 cons_index = mcq->cons_index; in mlx4_en_process_tx_cq() local 414 index = cons_index & size_mask; in mlx4_en_process_tx_cq() 423 cons_index & size) && (done < budget)) { in mlx4_en_process_tx_cq() 463 ++cons_index; in mlx4_en_process_tx_cq() 464 index = cons_index & size_mask; in mlx4_en_process_tx_cq() 473 mcq->cons_index = cons_index; in mlx4_en_process_tx_cq()
|
D | en_rx.c | 777 index = cq->mcq.cons_index & ring->size_mask; in mlx4_en_process_rx_cq() 782 cq->mcq.cons_index & cq->size)) { in mlx4_en_process_rx_cq() 995 ++cq->mcq.cons_index; in mlx4_en_process_rx_cq() 996 index = (cq->mcq.cons_index) & ring->size_mask; in mlx4_en_process_rx_cq() 1006 ring->cons = cq->mcq.cons_index; in mlx4_en_process_rx_cq()
|
D | cq.c | 335 cq->cons_index = 0; in mlx4_cq_alloc()
|
D | mlx4.h | 387 u32 cons_index; member
|
/linux-4.1.27/drivers/infiniband/hw/mlx4/ |
D | cq.c | 89 return get_sw_cqe(cq, cq->mcq.cons_index); in next_cqe_sw() 331 i = cq->mcq.cons_index; in mlx4_ib_get_outstanding_cqes() 335 return i - cq->mcq.cons_index; in mlx4_ib_get_outstanding_cqes() 345 i = cq->mcq.cons_index; in mlx4_ib_cq_resize_copy_cqes() 360 ++cq->mcq.cons_index; in mlx4_ib_cq_resize_copy_cqes() 671 ++cq->mcq.cons_index; in mlx4_ib_poll_one() 940 for (prod_index = cq->mcq.cons_index; get_sw_cqe(cq, prod_index); ++prod_index) in __mlx4_ib_cq_clean() 941 if (prod_index == cq->mcq.cons_index + cq->ibcq.cqe) in __mlx4_ib_cq_clean() 948 while ((int) --prod_index - (int) cq->mcq.cons_index >= 0) { in __mlx4_ib_cq_clean() 968 cq->mcq.cons_index += nfreed; in __mlx4_ib_cq_clean()
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eq.c | 112 struct mlx5_eqe *eqe = get_eqe(eq, eq->cons_index & (eq->nent - 1)); in next_eqe_sw() 114 return ((eqe->owner & 1) ^ !!(eq->cons_index & eq->nent)) ? NULL : eqe; in next_eqe_sw() 191 u32 val = (eq->cons_index & 0xffffff) | (eq->eqn << 24); in eq_update_ci() 296 ++eq->cons_index; in mlx5_eq_int()
|
D | cq.c | 110 cq->cons_index = 0; in mlx5_core_create_cq()
|
/linux-4.1.27/drivers/infiniband/hw/mlx5/ |
D | cq.c | 99 return get_sw_cqe(cq, cq->mcq.cons_index); in next_cqe_sw() 427 ++cq->mcq.cons_index; in mlx5_poll_one() 583 to_mcq(ibcq)->mcq.cons_index); in mlx5_ib_arm_cq() 872 for (prod_index = cq->mcq.cons_index; get_sw_cqe(cq, prod_index); prod_index++) in __mlx5_ib_cq_clean() 873 if (prod_index == cq->mcq.cons_index + cq->ibcq.cqe) in __mlx5_ib_cq_clean() 879 while ((int) --prod_index - (int) cq->mcq.cons_index >= 0) { in __mlx5_ib_cq_clean() 897 cq->mcq.cons_index += nfreed; in __mlx5_ib_cq_clean() 1031 i = cq->mcq.cons_index; in copy_resize_cqes() 1063 ++cq->mcq.cons_index; in copy_resize_cqes()
|