Home
last modified time | relevance | path

Searched refs:srqn (Results 1 – 18 of 18) sorted by relevance

/linux-3.4.99/drivers/net/ethernet/mellanox/mlx4/
Dsrq.c43 void mlx4_srq_event(struct mlx4_dev *dev, u32 srqn, int event_type) in mlx4_srq_event() argument
50 srq = radix_tree_lookup(&srq_table->tree, srqn & (dev->caps.num_srqs - 1)); in mlx4_srq_event()
57 mlx4_warn(dev, "Async event for bogus SRQ %08x\n", srqn); in mlx4_srq_event()
96 int __mlx4_srq_alloc_icm(struct mlx4_dev *dev, int *srqn) in __mlx4_srq_alloc_icm() argument
102 *srqn = mlx4_bitmap_alloc(&srq_table->bitmap); in __mlx4_srq_alloc_icm()
103 if (*srqn == -1) in __mlx4_srq_alloc_icm()
106 err = mlx4_table_get(dev, &srq_table->table, *srqn); in __mlx4_srq_alloc_icm()
110 err = mlx4_table_get(dev, &srq_table->cmpt_table, *srqn); in __mlx4_srq_alloc_icm()
116 mlx4_table_put(dev, &srq_table->table, *srqn); in __mlx4_srq_alloc_icm()
119 mlx4_bitmap_free(&srq_table->bitmap, *srqn); in __mlx4_srq_alloc_icm()
[all …]
Dresource_tracker.c1165 int srqn; in srq_alloc_res() local
1170 err = __mlx4_srq_alloc_icm(dev, &srqn); in srq_alloc_res()
1174 err = add_res_range(dev, slave, srqn, 1, RES_SRQ, 0); in srq_alloc_res()
1176 __mlx4_srq_free_icm(dev, srqn); in srq_alloc_res()
1180 set_param_l(out_param, srqn); in srq_alloc_res()
1451 int srqn; in srq_free_res() local
1456 srqn = get_param_l(&in_param); in srq_free_res()
1457 err = rem_res_range(dev, slave, srqn, 1, RES_SRQ, 0); in srq_free_res()
1461 __mlx4_srq_free_icm(dev, srqn); in srq_free_res()
1583 int srq = (be32_to_cpu(qpc->srqn) >> 24) & 1; in qp_get_mtt_size()
[all …]
Dmlx4.h338 __be32 srqn; member
809 int __mlx4_srq_alloc_icm(struct mlx4_dev *dev, int *srqn);
810 void __mlx4_srq_free_icm(struct mlx4_dev *dev, int srqn);
989 void mlx4_srq_event(struct mlx4_dev *dev, u32 srqn, int event_type);
Deq.c300 be32_to_cpu(eqe->event.srq.srqn) in mlx4_eq_int()
314 be32_to_cpu(eqe->event.srq.srqn), in mlx4_eq_int()
326 mlx4_srq_event(dev, be32_to_cpu(eqe->event.srq.srqn) & in mlx4_eq_int()
/linux-3.4.99/drivers/infiniband/hw/mthca/
Dmthca_srq.c128 context->state_logsize_srqn = cpu_to_be32(logsize << 24 | srq->srqn); in mthca_arbel_init_srq_context()
229 srq->srqn = mthca_alloc(&dev->srq_table.alloc); in mthca_alloc_srq()
230 if (srq->srqn == -1) in mthca_alloc_srq()
234 err = mthca_table_get(dev, dev->srq_table.table, srq->srqn); in mthca_alloc_srq()
240 srq->srqn, &srq->db); in mthca_alloc_srq()
268 err = mthca_SW2HW_SRQ(dev, mailbox, srq->srqn); in mthca_alloc_srq()
277 srq->srqn & (dev->limits.num_srqs - 1), in mthca_alloc_srq()
295 err = mthca_HW2SW_SRQ(dev, mailbox, srq->srqn); in mthca_alloc_srq()
311 mthca_table_put(dev, dev->srq_table.table, srq->srqn); in mthca_alloc_srq()
314 mthca_free(&dev->srq_table.alloc, srq->srqn); in mthca_alloc_srq()
[all …]
Dmthca_user.h99 __u32 srqn; member
Dmthca_provider.h226 int srqn; member
Dmthca_eq.c146 __be32 srqn; member
302 mthca_srq_event(dev, be32_to_cpu(eqe->event.srq.srqn) & 0xffffff, in mthca_eq_int()
Dmthca_dev.h519 void mthca_srq_event(struct mthca_dev *dev, u32 srqn,
Dmthca_qp.c151 __be32 srqn; member
767 qp_context->srqn = cpu_to_be32(1 << 24 | in __mthca_modify_qp()
768 to_msrq(ibqp->srq)->srqn); in __mthca_modify_qp()
Dmthca_provider.c479 if (context && ib_copy_to_udata(udata, &srq->srqn, sizeof (__u32))) { in mthca_create_srq()
/linux-3.4.99/drivers/infiniband/hw/mlx4/
Duser.h84 __u32 srqn; member
Dsrq.c63 "on SRQ %06x\n", type, srq->srqn); in mlx4_ib_srq_event()
190 srq->ibsrq.ext.xrc.srq_num = srq->msrq.srqn; in mlx4_ib_create_srq()
193 if (ib_copy_to_udata(udata, &srq->msrq.srqn, sizeof (__u32))) { in mlx4_ib_create_srq()
Dqp.c1195 context->srqn = cpu_to_be32(1 << 24 | to_msrq(ibqp->srq)->msrq.srqn); in __mlx4_ib_modify_qp()
/linux-3.4.99/include/linux/mlx4/
Dqp.h172 __be32 srqn; member
Ddevice.h435 int srqn; member
/linux-3.4.99/include/rdma/
Dib_user_verbs.h699 __u32 srqn; member
/linux-3.4.99/drivers/infiniband/core/
Duverbs_cmd.c2548 resp.srqn = srq->ext.xrc.srq_num; in __uverbs_create_xsrq()