cqn 445 drivers/crypto/hisilicon/qm.c u16 cqn = eqe->dw0 & QM_EQE_CQN_MASK; cqn 447 drivers/crypto/hisilicon/qm.c return qm->qp_array[cqn]; cqn 64 drivers/infiniband/hw/hns/hns_roce_cq.c event_type, hr_cq->cqn); cqn 117 drivers/infiniband/hw/hns/hns_roce_cq.c ret = hns_roce_bitmap_alloc(&cq_table->bitmap, &hr_cq->cqn); cqn 124 drivers/infiniband/hw/hns/hns_roce_cq.c ret = hns_roce_table_get(hr_dev, &cq_table->table, hr_cq->cqn); cqn 130 drivers/infiniband/hw/hns/hns_roce_cq.c ret = xa_err(xa_store(&cq_table->array, hr_cq->cqn, hr_cq, GFP_KERNEL)); cqn 147 drivers/infiniband/hw/hns/hns_roce_cq.c ret = hns_roce_sw2hw_cq(hr_dev, mailbox, hr_cq->cqn); cqn 163 drivers/infiniband/hw/hns/hns_roce_cq.c xa_erase(&cq_table->array, hr_cq->cqn); cqn 166 drivers/infiniband/hw/hns/hns_roce_cq.c hns_roce_table_put(hr_dev, &cq_table->table, hr_cq->cqn); cqn 169 drivers/infiniband/hw/hns/hns_roce_cq.c hns_roce_bitmap_free(&cq_table->bitmap, hr_cq->cqn, BITMAP_NO_RR); cqn 188 drivers/infiniband/hw/hns/hns_roce_cq.c ret = hns_roce_hw2sw_cq(hr_dev, NULL, hr_cq->cqn); cqn 191 drivers/infiniband/hw/hns/hns_roce_cq.c hr_cq->cqn); cqn 193 drivers/infiniband/hw/hns/hns_roce_cq.c xa_erase(&cq_table->array, hr_cq->cqn); cqn 203 drivers/infiniband/hw/hns/hns_roce_cq.c hns_roce_table_put(hr_dev, &cq_table->table, hr_cq->cqn); cqn 204 drivers/infiniband/hw/hns/hns_roce_cq.c hns_roce_bitmap_free(&cq_table->bitmap, hr_cq->cqn, BITMAP_NO_RR); cqn 471 drivers/infiniband/hw/hns/hns_roce_cq.c resp.cqn = hr_cq->cqn; cqn 521 drivers/infiniband/hw/hns/hns_roce_cq.c void hns_roce_cq_completion(struct hns_roce_dev *hr_dev, u32 cqn) cqn 526 drivers/infiniband/hw/hns/hns_roce_cq.c cq = xa_load(&hr_dev->cq_table.array, cqn & (hr_dev->caps.num_cqs - 1)); cqn 528 drivers/infiniband/hw/hns/hns_roce_cq.c dev_warn(dev, "Completion event for bogus CQ 0x%08x\n", cqn); cqn 536 drivers/infiniband/hw/hns/hns_roce_cq.c void hns_roce_cq_event(struct hns_roce_dev *hr_dev, u32 cqn, int event_type) cqn 542 drivers/infiniband/hw/hns/hns_roce_cq.c cq = xa_load(&cq_table->array, cqn & (hr_dev->caps.num_cqs - 1)); cqn 547 drivers/infiniband/hw/hns/hns_roce_cq.c dev_warn(dev, "Async event for bogus CQ %08x\n", cqn); cqn 507 drivers/infiniband/hw/hns/hns_roce_device.h unsigned long cqn; cqn 918 drivers/infiniband/hw/hns/hns_roce_device.h u32 cqn; cqn 924 drivers/infiniband/hw/hns/hns_roce_device.h int (*query_cqc_info)(struct hns_roce_dev *hr_dev, u32 cqn, cqn 982 drivers/infiniband/hw/hns/hns_roce_device.h struct hns_roce_srq *srq, u32 pdn, u16 xrcd, u32 cqn, cqn 1275 drivers/infiniband/hw/hns/hns_roce_device.h void hns_roce_cq_completion(struct hns_roce_dev *hr_dev, u32 cqn); cqn 1276 drivers/infiniband/hw/hns/hns_roce_device.h void hns_roce_cq_event(struct hns_roce_dev *hr_dev, u32 cqn, int event_type); cqn 2009 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ROCEE_DB_OTHERS_H_ROCEE_DB_OTH_INP_H_S, hr_cq->cqn); cqn 2088 drivers/infiniband/hw/hns/hns_roce_hw_v1.c offset = hr_cq->cqn * HNS_ROCE_V1_TPTR_ENTRY_SIZE; cqn 2097 drivers/infiniband/hw/hns/hns_roce_hw_v1.c CQ_CONTEXT_CQC_BYTE_4_CQN_S, hr_cq->cqn); cqn 2178 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_cq->cqn | notification_flag); cqn 2228 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_cq->cqn, (qpn & HNS_ROCE_CQE_QPN_MASK)); cqn 2647 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_cq(ibqp->recv_cq)->cqn); cqn 2651 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_cq(ibqp->send_cq)->cqn); cqn 2796 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_cq(ibqp->send_cq)->cqn); cqn 2800 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_cq(ibqp->recv_cq)->cqn); cqn 2862 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_cq(ibqp->send_cq)->cqn); cqn 2866 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_cq(ibqp->recv_cq)->cqn); cqn 3678 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_cq->cqn); cqn 3809 drivers/infiniband/hw/hns/hns_roce_hw_v1.c u32 cqn; cqn 3811 drivers/infiniband/hw/hns/hns_roce_hw_v1.c cqn = roce_get_field(aeqe->event.cq_event.cq, cqn 3817 drivers/infiniband/hw/hns/hns_roce_hw_v1.c dev_warn(dev, "CQ 0x%x access err.\n", cqn); cqn 3820 drivers/infiniband/hw/hns/hns_roce_hw_v1.c dev_warn(dev, "CQ 0x%x overflow\n", cqn); cqn 3823 drivers/infiniband/hw/hns/hns_roce_hw_v1.c dev_warn(dev, "CQ 0x%x ID invalid.\n", cqn); cqn 3829 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hns_roce_cq_event(hr_dev, cqn, event_type); cqn 3994 drivers/infiniband/hw/hns/hns_roce_hw_v1.c u32 cqn; cqn 4003 drivers/infiniband/hw/hns/hns_roce_hw_v1.c cqn = roce_get_field(ceqe->comp, cqn 4006 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hns_roce_cq_completion(hr_dev, cqn); cqn 2574 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_CQC_BYTE_8_CQN_S, hr_cq->cqn); cqn 2644 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hr_cq->cqn); cqn 2731 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hr_cq->cqn, (qpn & HNS_ROCE_V2_CQE_QPN_MASK)); cqn 3344 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_80_RX_CQN_S, to_hr_cq(ibqp->recv_cq)->cqn); cqn 3534 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_252_TX_CQN_S, to_hr_cq(ibqp->send_cq)->cqn); cqn 3607 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_80_RX_CQN_S, to_hr_cq(ibqp->recv_cq)->cqn); cqn 3612 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_252_TX_CQN_S, to_hr_cq(ibqp->send_cq)->cqn); cqn 4824 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_cmd_mbox(hr_dev, mailbox->dma, 0, hr_cq->cqn, 1, cqn 4873 drivers/infiniband/hw/hns/hns_roce_hw_v2.c u32 cqn = irq_work->cqn; cqn 4912 drivers/infiniband/hw/hns/hns_roce_hw_v2.c dev_err(dev, "CQ 0x%x access err.\n", cqn); cqn 4915 drivers/infiniband/hw/hns/hns_roce_hw_v2.c dev_warn(dev, "CQ 0x%x overflow\n", cqn); cqn 4932 drivers/infiniband/hw/hns/hns_roce_hw_v2.c u32 qpn, u32 cqn) cqn 4943 drivers/infiniband/hw/hns/hns_roce_hw_v2.c irq_work->cqn = cqn; cqn 5033 drivers/infiniband/hw/hns/hns_roce_hw_v2.c u32 cqn; cqn 5050 drivers/infiniband/hw/hns/hns_roce_hw_v2.c cqn = roce_get_field(aeqe->event.cq_event.cq, cqn 5074 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_cq_event(hr_dev, cqn, event_type); cqn 5102 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_v2_init_irq_work(hr_dev, eq, qpn, cqn); cqn 5159 drivers/infiniband/hw/hns/hns_roce_hw_v2.c u32 cqn; cqn 5167 drivers/infiniband/hw/hns/hns_roce_hw_v2.c cqn = roce_get_field(ceqe->comp, cqn 5171 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_cq_completion(hr_dev, cqn); cqn 6029 drivers/infiniband/hw/hns/hns_roce_hw_v2.c u32 cqn, void *mb_buf, u64 *mtts_wqe, cqn 6107 drivers/infiniband/hw/hns/hns_roce_hw_v2.c cqn); cqn 1824 drivers/infiniband/hw/hns/hns_roce_hw_v2.h int hns_roce_v2_query_cqc_info(struct hns_roce_dev *hr_dev, u32 cqn, cqn 9 drivers/infiniband/hw/hns/hns_roce_hw_v2_dfx.c int hns_roce_v2_query_cqc_info(struct hns_roce_dev *hr_dev, u32 cqn, cqn 21 drivers/infiniband/hw/hns/hns_roce_hw_v2_dfx.c ret = hns_roce_cmd_mbox(hr_dev, 0, mailbox->dma, cqn, 0, cqn 1240 drivers/infiniband/hw/hns/hns_roce_qp.c } else if (send_cq->cqn < recv_cq->cqn) { cqn 1256 drivers/infiniband/hw/hns/hns_roce_qp.c } else if (send_cq->cqn < recv_cq->cqn) { cqn 96 drivers/infiniband/hw/hns/hns_roce_restrack.c ret = hr_dev->dfx->query_cqc_info(hr_dev, hr_cq->cqn, (int *)context); cqn 80 drivers/infiniband/hw/hns/hns_roce_srq.c static int hns_roce_srq_alloc(struct hns_roce_dev *hr_dev, u32 pdn, u32 cqn, cqn 133 drivers/infiniband/hw/hns/hns_roce_srq.c hr_dev->hw->write_srqc(hr_dev, srq, pdn, xrcd, cqn, mailbox->buf, cqn 370 drivers/infiniband/hw/hns/hns_roce_srq.c u32 cqn; cqn 408 drivers/infiniband/hw/hns/hns_roce_srq.c cqn = ib_srq_has_cq(srq_init_attr->srq_type) ? cqn 409 drivers/infiniband/hw/hns/hns_roce_srq.c to_hr_cq(srq_init_attr->ext.cq)->cqn : 0; cqn 413 drivers/infiniband/hw/hns/hns_roce_srq.c ret = hns_roce_srq_alloc(hr_dev, to_hr_pd(ib_srq->pd)->pdn, cqn, 0, cqn 56 drivers/infiniband/hw/mlx4/cq.c "on CQ %06x\n", type, cq->cqn); cqn 263 drivers/infiniband/hw/mlx4/cq.c if (ib_copy_to_udata(udata, &cq->mcq.cqn, sizeof (__u32))) { cqn 1323 drivers/infiniband/hw/mlx4/qp.c } else if (send_cq->mcq.cqn < recv_cq->mcq.cqn) { cqn 1338 drivers/infiniband/hw/mlx4/qp.c } else if (send_cq->mcq.cqn < recv_cq->mcq.cqn) { cqn 2384 drivers/infiniband/hw/mlx4/qp.c context->cqn_send = cpu_to_be32(send_cq->mcq.cqn); cqn 2385 drivers/infiniband/hw/mlx4/qp.c context->cqn_recv = cpu_to_be32(recv_cq->mcq.cqn); cqn 82 drivers/infiniband/hw/mlx4/srq.c u32 cqn; cqn 174 drivers/infiniband/hw/mlx4/srq.c cqn = ib_srq_has_cq(init_attr->srq_type) ? cqn 175 drivers/infiniband/hw/mlx4/srq.c to_mcq(init_attr->ext.cq)->mcq.cqn : 0; cqn 179 drivers/infiniband/hw/mlx4/srq.c err = mlx4_srq_alloc(dev->dev, to_mpd(ib_srq->pd)->pdn, cqn, xrcdn, cqn 56 drivers/infiniband/hw/mlx5/cq.c type, mcq->cqn); cqn 521 drivers/infiniband/hw/mlx5/cq.c "Requestor" : "Responder", cq->mcq.cqn); cqn 557 drivers/infiniband/hw/mlx5/cq.c cq->mcq.cqn, mr->sig->err_item.key, cqn 582 drivers/infiniband/hw/mlx5/cq.c cq->mcq.cqn); cqn 985 drivers/infiniband/hw/mlx5/cq.c mlx5_ib_dbg(dev, "cqn 0x%x\n", cq->mcq.cqn); cqn 996 drivers/infiniband/hw/mlx5/cq.c if (ib_copy_to_udata(udata, &cq->mcq.cqn, sizeof(__u32))) { cqn 1110 drivers/infiniband/hw/mlx5/cq.c mlx5_ib_warn(dev, "modify cq 0x%x failed\n", mcq->mcq.cqn); cqn 1221 drivers/infiniband/hw/mlx5/cq.c cq->mcq.cqn); cqn 1314 drivers/infiniband/hw/mlx5/cq.c MLX5_SET(modify_cq_in, in, cqn, cq->mcq.cqn); cqn 366 drivers/infiniband/hw/mlx5/devx.c MLX5_GET(query_cq_in, in, cqn)); cqn 370 drivers/infiniband/hw/mlx5/devx.c MLX5_GET(modify_cq_in, in, cqn)); cqn 579 drivers/infiniband/hw/mlx5/devx.c to_mcq(uobj->object)->mcq.cqn) == cqn 1380 drivers/infiniband/hw/mlx5/devx.c u32 obj_id = mcq->cqn; cqn 2293 drivers/infiniband/hw/mlx5/devx.c obj_id = be32_to_cpu(eqe->data.cq_err.cqn) & 0xffffff; cqn 1257 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(sqc, sqc, cqn, MLX5_GET(qpc, qpc, cqn_snd)); cqn 1347 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(rqc, rqc, cqn, MLX5_GET(qpc, qpc, cqn_rcv)); cqn 2223 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(devr->c0)->mcq.cqn); cqn 2224 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(qpc, qpc, cqn_snd, to_mcq(devr->c0)->mcq.cqn); cqn 2229 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(devr->c0)->mcq.cqn); cqn 2244 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(qpc, qpc, cqn_snd, to_mcq(init_attr->send_cq)->mcq.cqn); cqn 2247 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(init_attr->recv_cq)->mcq.cqn); cqn 2335 drivers/infiniband/hw/mlx5/qp.c if (send_cq->mcq.cqn < recv_cq->mcq.cqn) { cqn 2339 drivers/infiniband/hw/mlx5/qp.c } else if (send_cq->mcq.cqn == recv_cq->mcq.cqn) { cqn 2365 drivers/infiniband/hw/mlx5/qp.c if (send_cq->mcq.cqn < recv_cq->mcq.cqn) { cqn 2368 drivers/infiniband/hw/mlx5/qp.c } else if (send_cq->mcq.cqn == recv_cq->mcq.cqn) { cqn 2574 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(dctc, dctc, cqn, to_mcq(attr->recv_cq)->mcq.cqn); cqn 2725 drivers/infiniband/hw/mlx5/qp.c init_attr->recv_cq ? to_mcq(init_attr->recv_cq)->mcq.cqn : -1, cqn 2726 drivers/infiniband/hw/mlx5/qp.c init_attr->send_cq ? to_mcq(init_attr->send_cq)->mcq.cqn : -1); cqn 3567 drivers/infiniband/hw/mlx5/qp.c context->cqn_send = send_cq ? cpu_to_be32(send_cq->mcq.cqn) : 0; cqn 3568 drivers/infiniband/hw/mlx5/qp.c context->cqn_recv = recv_cq ? cpu_to_be32(recv_cq->mcq.cqn) : 0; cqn 5942 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(rqc, rqc, cqn, to_mcq(init_attr->cq)->mcq.cqn); cqn 295 drivers/infiniband/hw/mlx5/srq.c in.cqn = to_mcq(init_attr->ext.cq)->mcq.cqn; cqn 297 drivers/infiniband/hw/mlx5/srq.c in.cqn = to_mcq(dev->devr.c0)->mcq.cqn; cqn 25 drivers/infiniband/hw/mlx5/srq.h u32 cqn; cqn 52 drivers/infiniband/hw/mlx5/srq_cmd.c MLX5_SET(srqc, srqc, cqn, in->cqn); cqn 464 drivers/infiniband/hw/mlx5/srq_cmd.c MLX5_SET(xrqc, xrqc, cqn, in->cqn); cqn 76 drivers/infiniband/hw/mthca/mthca_cq.c __be32 cqn; cqn 211 drivers/infiniband/hw/mthca/mthca_cq.c mthca_write64(MTHCA_TAVOR_CQ_DB_INC_CI | cq->cqn, incr - 1, cqn 217 drivers/infiniband/hw/mthca/mthca_cq.c void mthca_cq_completion(struct mthca_dev *dev, u32 cqn) cqn 221 drivers/infiniband/hw/mthca/mthca_cq.c cq = mthca_array_get(&dev->cq_table.cq, cqn & (dev->limits.num_cqs - 1)); cqn 224 drivers/infiniband/hw/mthca/mthca_cq.c mthca_warn(dev, "Completion event for bogus CQ %08x\n", cqn); cqn 233 drivers/infiniband/hw/mthca/mthca_cq.c void mthca_cq_event(struct mthca_dev *dev, u32 cqn, cqn 241 drivers/infiniband/hw/mthca/mthca_cq.c cq = mthca_array_get(&dev->cq_table.cq, cqn & (dev->limits.num_cqs - 1)); cqn 248 drivers/infiniband/hw/mthca/mthca_cq.c mthca_warn(dev, "Async event for bogus CQ %08x\n", cqn); cqn 297 drivers/infiniband/hw/mthca/mthca_cq.c qpn, cq->cqn, cq->cons_index, prod_index); cqn 384 drivers/infiniband/hw/mthca/mthca_cq.c cq->cqn, cq->cons_index); cqn 505 drivers/infiniband/hw/mthca/mthca_cq.c cq->cqn, cq->cons_index, be32_to_cpu(cqe->my_qpn), cqn 728 drivers/infiniband/hw/mthca/mthca_cq.c to_mcq(cq)->cqn; cqn 744 drivers/infiniband/hw/mthca/mthca_cq.c db_rec[1] = cpu_to_be32((cq->cqn << 8) | (2 << 5) | (sn << 3) | cqn 759 drivers/infiniband/hw/mthca/mthca_cq.c MTHCA_ARBEL_CQ_DB_REQ_NOT) | cq->cqn; cqn 779 drivers/infiniband/hw/mthca/mthca_cq.c cq->cqn = mthca_alloc(&dev->cq_table.alloc); cqn 780 drivers/infiniband/hw/mthca/mthca_cq.c if (cq->cqn == -1) cqn 784 drivers/infiniband/hw/mthca/mthca_cq.c err = mthca_table_get(dev, dev->cq_table.table, cq->cqn); cqn 794 drivers/infiniband/hw/mthca/mthca_cq.c cq->cqn, &cq->set_ci_db); cqn 799 drivers/infiniband/hw/mthca/mthca_cq.c cq->cqn, &cq->arm_db); cqn 835 drivers/infiniband/hw/mthca/mthca_cq.c cq_context->cqn = cpu_to_be32(cq->cqn); cqn 842 drivers/infiniband/hw/mthca/mthca_cq.c err = mthca_SW2HW_CQ(dev, mailbox, cq->cqn); cqn 850 drivers/infiniband/hw/mthca/mthca_cq.c cq->cqn & (dev->limits.num_cqs - 1), cqn 879 drivers/infiniband/hw/mthca/mthca_cq.c mthca_table_put(dev, dev->cq_table.table, cq->cqn); cqn 882 drivers/infiniband/hw/mthca/mthca_cq.c mthca_free(&dev->cq_table.alloc, cq->cqn); cqn 910 drivers/infiniband/hw/mthca/mthca_cq.c err = mthca_HW2SW_CQ(dev, mailbox, cq->cqn); cqn 919 drivers/infiniband/hw/mthca/mthca_cq.c cq->cqn, cq->cons_index, cqn 927 drivers/infiniband/hw/mthca/mthca_cq.c cq->cqn & (dev->limits.num_cqs - 1)); cqn 946 drivers/infiniband/hw/mthca/mthca_cq.c mthca_table_put(dev, dev->cq_table.table, cq->cqn); cqn 947 drivers/infiniband/hw/mthca/mthca_cq.c mthca_free(&dev->cq_table.alloc, cq->cqn); cqn 503 drivers/infiniband/hw/mthca/mthca_dev.h void mthca_cq_completion(struct mthca_dev *dev, u32 cqn); cqn 504 drivers/infiniband/hw/mthca/mthca_dev.h void mthca_cq_event(struct mthca_dev *dev, u32 cqn, cqn 132 drivers/infiniband/hw/mthca/mthca_eq.c __be32 cqn; cqn 149 drivers/infiniband/hw/mthca/mthca_eq.c __be32 cqn; cqn 219 drivers/infiniband/hw/mthca/mthca_eq.c static inline void disarm_cq(struct mthca_dev *dev, int eqn, int cqn) cqn 222 drivers/infiniband/hw/mthca/mthca_eq.c mthca_write64(MTHCA_EQ_DB_DISARM_CQ | eqn, cqn, cqn 276 drivers/infiniband/hw/mthca/mthca_eq.c disarm_cqn = be32_to_cpu(eqe->event.comp.cqn) & 0xffffff; cqn 343 drivers/infiniband/hw/mthca/mthca_eq.c be32_to_cpu(eqe->event.cq_err.cqn) & 0xffffff); cqn 344 drivers/infiniband/hw/mthca/mthca_eq.c mthca_cq_event(dev, be32_to_cpu(eqe->event.cq_err.cqn), cqn 657 drivers/infiniband/hw/mthca/mthca_provider.c if (udata && ib_copy_to_udata(udata, &cq->cqn, sizeof(__u32))) { cqn 757 drivers/infiniband/hw/mthca/mthca_provider.c ret = mthca_RESIZE_CQ(dev, cq->cqn, lkey, ilog2(entries)); cqn 205 drivers/infiniband/hw/mthca/mthca_provider.h int cqn; cqn 735 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->cqn_snd = cpu_to_be32(to_mcq(ibqp->send_cq)->cqn); cqn 774 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->cqn_rcv = cpu_to_be32(to_mcq(ibqp->recv_cq)->cqn); cqn 1339 drivers/infiniband/hw/mthca/mthca_qp.c } else if (send_cq->cqn < recv_cq->cqn) { cqn 1354 drivers/infiniband/hw/mthca/mthca_qp.c } else if (send_cq->cqn < recv_cq->cqn) { cqn 194 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c cq_resp.cqn = resp->cq_handle; cqn 337 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c static void pvrdma_cq_event(struct pvrdma_dev *dev, u32 cqn, int type) cqn 343 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c cq = dev->cq_tbl[cqn % dev->dsr->caps.max_cq]; cqn 104 drivers/net/ethernet/mellanox/mlx4/cq.c void mlx4_cq_completion(struct mlx4_dev *dev, u32 cqn) cqn 110 drivers/net/ethernet/mellanox/mlx4/cq.c cqn & (dev->caps.num_cqs - 1)); cqn 114 drivers/net/ethernet/mellanox/mlx4/cq.c mlx4_dbg(dev, "Completion event for bogus CQ %08x\n", cqn); cqn 126 drivers/net/ethernet/mellanox/mlx4/cq.c void mlx4_cq_event(struct mlx4_dev *dev, u32 cqn, int event_type) cqn 132 drivers/net/ethernet/mellanox/mlx4/cq.c cq = radix_tree_lookup(&cq_table->tree, cqn & (dev->caps.num_cqs - 1)); cqn 136 drivers/net/ethernet/mellanox/mlx4/cq.c mlx4_dbg(dev, "Async event for bogus CQ %08x\n", cqn); cqn 184 drivers/net/ethernet/mellanox/mlx4/cq.c err = mlx4_MODIFY_CQ(dev, mailbox, cq->cqn, 1); cqn 210 drivers/net/ethernet/mellanox/mlx4/cq.c err = mlx4_MODIFY_CQ(dev, mailbox, cq->cqn, 0); cqn 217 drivers/net/ethernet/mellanox/mlx4/cq.c int __mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn) cqn 223 drivers/net/ethernet/mellanox/mlx4/cq.c *cqn = mlx4_bitmap_alloc(&cq_table->bitmap); cqn 224 drivers/net/ethernet/mellanox/mlx4/cq.c if (*cqn == -1) cqn 227 drivers/net/ethernet/mellanox/mlx4/cq.c err = mlx4_table_get(dev, &cq_table->table, *cqn); cqn 231 drivers/net/ethernet/mellanox/mlx4/cq.c err = mlx4_table_get(dev, &cq_table->cmpt_table, *cqn); cqn 237 drivers/net/ethernet/mellanox/mlx4/cq.c mlx4_table_put(dev, &cq_table->table, *cqn); cqn 240 drivers/net/ethernet/mellanox/mlx4/cq.c mlx4_bitmap_free(&cq_table->bitmap, *cqn, MLX4_NO_RR); cqn 244 drivers/net/ethernet/mellanox/mlx4/cq.c static int mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn, u8 usage) cqn 257 drivers/net/ethernet/mellanox/mlx4/cq.c *cqn = get_param_l(&out_param); cqn 261 drivers/net/ethernet/mellanox/mlx4/cq.c return __mlx4_cq_alloc_icm(dev, cqn); cqn 264 drivers/net/ethernet/mellanox/mlx4/cq.c void __mlx4_cq_free_icm(struct mlx4_dev *dev, int cqn) cqn 269 drivers/net/ethernet/mellanox/mlx4/cq.c mlx4_table_put(dev, &cq_table->cmpt_table, cqn); cqn 270 drivers/net/ethernet/mellanox/mlx4/cq.c mlx4_table_put(dev, &cq_table->table, cqn); cqn 271 drivers/net/ethernet/mellanox/mlx4/cq.c mlx4_bitmap_free(&cq_table->bitmap, cqn, MLX4_NO_RR); cqn 274 drivers/net/ethernet/mellanox/mlx4/cq.c static void mlx4_cq_free_icm(struct mlx4_dev *dev, int cqn) cqn 280 drivers/net/ethernet/mellanox/mlx4/cq.c set_param_l(&in_param, cqn); cqn 285 drivers/net/ethernet/mellanox/mlx4/cq.c mlx4_warn(dev, "Failed freeing cq:%d\n", cqn); cqn 287 drivers/net/ethernet/mellanox/mlx4/cq.c __mlx4_cq_free_icm(dev, cqn); cqn 359 drivers/net/ethernet/mellanox/mlx4/cq.c err = mlx4_cq_alloc_icm(dev, &cq->cqn, cq->usage); cqn 364 drivers/net/ethernet/mellanox/mlx4/cq.c err = radix_tree_insert(&cq_table->tree, cq->cqn, cq); cqn 403 drivers/net/ethernet/mellanox/mlx4/cq.c err = mlx4_SW2HW_CQ(dev, mailbox, cq->cqn, sw_cq_init); cqn 425 drivers/net/ethernet/mellanox/mlx4/cq.c radix_tree_delete(&cq_table->tree, cq->cqn); cqn 429 drivers/net/ethernet/mellanox/mlx4/cq.c mlx4_cq_free_icm(dev, cq->cqn); cqn 441 drivers/net/ethernet/mellanox/mlx4/cq.c err = mlx4_HW2SW_CQ(dev, NULL, cq->cqn); cqn 443 drivers/net/ethernet/mellanox/mlx4/cq.c mlx4_warn(dev, "HW2SW_CQ failed (%d) for CQN %06x\n", err, cq->cqn); cqn 446 drivers/net/ethernet/mellanox/mlx4/cq.c radix_tree_delete(&cq_table->tree, cq->cqn); cqn 458 drivers/net/ethernet/mellanox/mlx4/cq.c mlx4_cq_free_icm(dev, cq->cqn); cqn 1682 drivers/net/ethernet/mellanox/mlx4/en_netdev.c priv->rx_ring[i]->cqn = cq->mcq.cqn; cqn 1734 drivers/net/ethernet/mellanox/mlx4/en_netdev.c cq->mcq.cqn, cqn 41 drivers/net/ethernet/mellanox/mlx4/en_resources.c int is_tx, int rss, int qpn, int cqn, cqn 72 drivers/net/ethernet/mellanox/mlx4/en_resources.c context->cqn_send = cpu_to_be32(cqn); cqn 73 drivers/net/ethernet/mellanox/mlx4/en_resources.c context->cqn_recv = cpu_to_be32(cqn); cqn 341 drivers/net/ethernet/mellanox/mlx4/en_rx.c ring->cqn = priv->rx_cq[ring_ind]->mcq.cqn; cqn 1078 drivers/net/ethernet/mellanox/mlx4/en_rx.c qpn, ring->cqn, -1, context); cqn 1195 drivers/net/ethernet/mellanox/mlx4/en_rx.c priv->rx_ring[0]->cqn, -1, &context); cqn 498 drivers/net/ethernet/mellanox/mlx4/eq.c int cqn; cqn 521 drivers/net/ethernet/mellanox/mlx4/eq.c cqn = be32_to_cpu(eqe->event.comp.cqn) & 0xffffff; cqn 522 drivers/net/ethernet/mellanox/mlx4/eq.c mlx4_cq_completion(dev, cqn); cqn 688 drivers/net/ethernet/mellanox/mlx4/eq.c be32_to_cpu(eqe->event.cq_err.cqn) & 0xffffff); cqn 692 drivers/net/ethernet/mellanox/mlx4/eq.c be32_to_cpu(eqe->event.cq_err.cqn) cqn 707 drivers/net/ethernet/mellanox/mlx4/eq.c be32_to_cpu(eqe->event.cq_err.cqn) cqn 975 drivers/net/ethernet/mellanox/mlx4/mlx4.h int __mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn); cqn 976 drivers/net/ethernet/mellanox/mlx4/mlx4.h void __mlx4_cq_free_icm(struct mlx4_dev *dev, int cqn); cqn 1221 drivers/net/ethernet/mellanox/mlx4/mlx4.h void mlx4_cq_completion(struct mlx4_dev *dev, u32 cqn); cqn 1222 drivers/net/ethernet/mellanox/mlx4/mlx4.h void mlx4_cq_event(struct mlx4_dev *dev, u32 cqn, int event_type); cqn 341 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h u16 cqn; /* index of port CQ associated with this ring */ cqn 751 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h int is_tx, int rss, int qpn, int cqn, int user_prio, cqn 1671 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int cq_res_start_move_to(struct mlx4_dev *dev, int slave, int cqn, cqn 1680 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c r = res_tracker_lookup(&tracker->res_tree[RES_CQ], cqn); cqn 1938 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int cqn; cqn 1947 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = __mlx4_cq_alloc_icm(dev, &cqn); cqn 1953 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = add_res_range(dev, slave, cqn, 1, RES_CQ, 0); cqn 1956 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c __mlx4_cq_free_icm(dev, cqn); cqn 1960 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c set_param_l(out_param, cqn); cqn 2464 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int cqn; cqn 2469 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c cqn = get_param_l(&in_param); cqn 2470 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = rem_res_range(dev, slave, cqn, 1, RES_CQ, 0); cqn 2475 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c __mlx4_cq_free_icm(dev, cqn); cqn 3440 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int cqn = vhcr->in_modifier; cqn 3446 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = cq_res_start_move_to(dev, slave, cqn, RES_CQ_HW, &cq); cqn 3461 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_end_move(dev, slave, RES_CQ, cqn); cqn 3467 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_abort_move(dev, slave, RES_CQ, cqn); cqn 3478 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int cqn = vhcr->in_modifier; cqn 3481 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = cq_res_start_move_to(dev, slave, cqn, RES_CQ_ALLOCATED, &cq); cqn 3488 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_end_move(dev, slave, RES_CQ, cqn); cqn 3492 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_abort_move(dev, slave, RES_CQ, cqn); cqn 3502 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int cqn = vhcr->in_modifier; cqn 3506 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, cqn, RES_CQ, &cq); cqn 3515 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, cqn, RES_CQ); cqn 3574 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int cqn = vhcr->in_modifier; cqn 3578 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = get_res(dev, slave, cqn, RES_CQ, &cq); cqn 3592 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c put_res(dev, slave, cqn, RES_CQ); cqn 4807 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int cqn; cqn 4819 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c cqn = cq->com.res_id; cqn 4824 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c __mlx4_cq_free_icm(dev, cqn); cqn 4838 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_cmd(dev, in_param, cqn, 1, cqn 4844 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c slave, cqn); cqn 162 drivers/net/ethernet/mellanox/mlx4/srq.c int mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, u32 cqn, u16 xrcd, cqn 192 drivers/net/ethernet/mellanox/mlx4/srq.c srq_context->pg_offset_cqn = cpu_to_be32(cqn & 0xffffff); cqn 109 drivers/net/ethernet/mellanox/mlx5/core/cq.c cq->cqn = MLX5_GET(create_cq_out, out, cqn); cqn 136 drivers/net/ethernet/mellanox/mlx5/core/cq.c cq->cqn); cqn 148 drivers/net/ethernet/mellanox/mlx5/core/cq.c MLX5_SET(destroy_cq_in, din, cqn, cq->cqn); cqn 165 drivers/net/ethernet/mellanox/mlx5/core/cq.c MLX5_SET(destroy_cq_in, in, cqn, cq->cqn); cqn 187 drivers/net/ethernet/mellanox/mlx5/core/cq.c MLX5_SET(query_cq_in, in, cqn, cq->cqn); cqn 211 drivers/net/ethernet/mellanox/mlx5/core/cq.c MLX5_SET(modify_cq_in, in, cqn, cq->cqn); cqn 507 drivers/net/ethernet/mellanox/mlx5/core/debugfs.c &cq->dbg, cq->cqn, cq_fields, cqn 56 drivers/net/ethernet/mellanox/mlx5/core/en/health.c err = devlink_fmsg_u32_pair_put(fmsg, "cqn", cq->mcq.cqn); cqn 214 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c icosq->channel->ix, icosq->sqn, rq->rqn, rq->cq.mcq.cqn); cqn 123 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c sq->channel->ix, sq->sqn, sq->cq.mcq.cqn, sq->cc, sq->pc, cqn 696 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET(rqc, rqc, cqn, rq->cq.mcq.cqn); cqn 1197 drivers/net/ethernet/mellanox/mlx5/core/en_main.c u32 cqn; cqn 1226 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET(sqc, sqc, cqn, csp->cqn); cqn 1326 drivers/net/ethernet/mellanox/mlx5/core/en_main.c csp.cqn = sq->cq.mcq.cqn; cqn 1424 drivers/net/ethernet/mellanox/mlx5/core/en_main.c csp.cqn = sq->cq.mcq.cqn; cqn 1473 drivers/net/ethernet/mellanox/mlx5/core/en_main.c csp.cqn = sq->cq.mcq.cqn; cqn 413 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c sq->cq.mcq.cqn, ci, sq->sqn, cqn 215 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c __func__, mcq->cqn, event); cqn 114 drivers/net/ethernet/mellanox/mlx5/core/eq.c static struct mlx5_core_cq *mlx5_eq_cq_get(struct mlx5_eq *eq, u32 cqn) cqn 120 drivers/net/ethernet/mellanox/mlx5/core/eq.c cq = radix_tree_lookup(&table->tree, cqn); cqn 137 drivers/net/ethernet/mellanox/mlx5/core/eq.c u32 cqn = -1; cqn 151 drivers/net/ethernet/mellanox/mlx5/core/eq.c cqn = be32_to_cpu(eqe->data.comp.cqn) & 0xffffff; cqn 153 drivers/net/ethernet/mellanox/mlx5/core/eq.c cq = mlx5_eq_cq_get(eq, cqn); cqn 159 drivers/net/ethernet/mellanox/mlx5/core/eq.c mlx5_core_warn(eq->dev, "Completion event for bogus CQ 0x%x\n", cqn); cqn 169 drivers/net/ethernet/mellanox/mlx5/core/eq.c if (cqn != -1) cqn 389 drivers/net/ethernet/mellanox/mlx5/core/eq.c err = radix_tree_insert(&table->tree, cq->cqn, cq); cqn 401 drivers/net/ethernet/mellanox/mlx5/core/eq.c tmp = radix_tree_delete(&table->tree, cq->cqn); cqn 406 drivers/net/ethernet/mellanox/mlx5/core/eq.c eq->eqn, cq->cqn); cqn 412 drivers/net/ethernet/mellanox/mlx5/core/eq.c eq->eqn, cq->cqn); cqn 481 drivers/net/ethernet/mellanox/mlx5/core/eq.c u32 cqn; cqn 489 drivers/net/ethernet/mellanox/mlx5/core/eq.c cqn = be32_to_cpu(eqe->data.cq_err.cqn) & 0xffffff; cqn 491 drivers/net/ethernet/mellanox/mlx5/core/eq.c cqn, eqe->data.cq_err.syndrome); cqn 493 drivers/net/ethernet/mellanox/mlx5/core/eq.c cq = mlx5_eq_cq_get(eq, cqn); cqn 495 drivers/net/ethernet/mellanox/mlx5/core/eq.c mlx5_core_warn(eq->dev, "Async event for bogus CQ 0x%x\n", cqn); cqn 371 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c mlx5_fpga_warn(conn->fdev, "CQ event %u on CQ #%u\n", event, mcq->cqn); cqn 502 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c mlx5_fpga_dbg(fdev, "Created CQ #0x%x\n", conn->cq.mcq.cqn); cqn 594 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(qpc, qpc, cqn_snd, conn->cq.mcq.cqn); cqn 595 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(qpc, qpc, cqn_rcv, conn->cq.mcq.cqn); cqn 699 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(qpc, qpc, cqn_snd, conn->cq.mcq.cqn); cqn 700 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(qpc, qpc, cqn_rcv, conn->cq.mcq.cqn); cqn 44 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c u32 cqn; cqn 170 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, qpc, cqn_snd, attr->cqn); cqn 171 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, qpc, cqn_rcv, attr->cqn); cqn 689 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c pr_info("CQ event %u on CQ #%u\n", event, mcq->cqn); cqn 695 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c pr_err("CQ completion CQ: #%u\n", mcq->cqn); cqn 881 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c init_attr.cqn = dmn->send_ring->cq->mcq.cqn; cqn 931 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h u32 cqn; cqn 727 drivers/net/ethernet/mellanox/mlxsw/pci.c u8 cqn; cqn 746 drivers/net/ethernet/mellanox/mlxsw/pci.c cqn = mlxsw_pci_eqe_cqn_get(eqe); cqn 747 drivers/net/ethernet/mellanox/mlxsw/pci.c set_bit(cqn, active_cqns); cqn 764 drivers/net/ethernet/mellanox/mlxsw/pci.c for_each_set_bit(cqn, active_cqns, cq_count) { cqn 765 drivers/net/ethernet/mellanox/mlxsw/pci.c q = mlxsw_pci_cq_get(mlxsw_pci, cqn); cqn 230 drivers/net/ethernet/mellanox/mlxsw/pci_hw.h MLXSW_ITEM32(pci, eqe, cqn, 0x0C, 8, 7); cqn 161 include/linux/mlx4/cq.h doorbell[0] = cpu_to_be32(sn << 28 | cmd | cq->cqn); cqn 750 include/linux/mlx4/device.h int cqn; cqn 918 include/linux/mlx4/device.h __be32 cqn; cqn 935 include/linux/mlx4/device.h __be32 cqn; cqn 1150 include/linux/mlx4/device.h int mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, u32 cqn, u16 xrcdn, cqn 41 include/linux/mlx5/cq.h u32 cqn; cqn 171 include/linux/mlx5/cq.h doorbell[1] = cpu_to_be32(cq->cqn); cqn 573 include/linux/mlx5/device.h __be32 cqn; cqn 584 include/linux/mlx5/device.h __be32 cqn; cqn 2450 include/linux/mlx5/mlx5_ifc.h u8 cqn[0x18]; cqn 2844 include/linux/mlx5/mlx5_ifc.h u8 cqn[0x18]; cqn 3002 include/linux/mlx5/mlx5_ifc.h u8 cqn[0x18]; cqn 3048 include/linux/mlx5/mlx5_ifc.h u8 cqn[0x18]; cqn 3142 include/linux/mlx5/mlx5_ifc.h u8 cqn[0x18]; cqn 3446 include/linux/mlx5/mlx5_ifc.h u8 cqn[0x18]; cqn 3635 include/linux/mlx5/mlx5_ifc.h u8 cqn[0x18]; cqn 5618 include/linux/mlx5/mlx5_ifc.h u8 cqn[0x18]; cqn 6201 include/linux/mlx5/mlx5_ifc.h u8 cqn[0x18]; cqn 6984 include/linux/mlx5/mlx5_ifc.h u8 cqn[0x18]; cqn 7732 include/linux/mlx5/mlx5_ifc.h u8 cqn[0x18]; cqn 45 include/uapi/rdma/hns-abi.h __aligned_u64 cqn; /* Only 32 bits used, 64 for compat */ cqn 85 include/uapi/rdma/mlx4-abi.h __u32 cqn; cqn 281 include/uapi/rdma/mlx5-abi.h __u32 cqn; cqn 84 include/uapi/rdma/mthca-abi.h __u32 cqn; cqn 153 include/uapi/rdma/vmw_pvrdma-abi.h __u32 cqn;