Home
last modified time | relevance | path

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

12

/linux-6.12.1/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
49 srq = radix_tree_lookup(&srq_table->tree, srqn & (dev->caps.num_srqs - 1)); in mlx4_srq_event()
54 mlx4_warn(dev, "Async event for bogus SRQ %08x\n", srqn); in mlx4_srq_event()
93 int __mlx4_srq_alloc_icm(struct mlx4_dev *dev, int *srqn) in __mlx4_srq_alloc_icm() argument
99 *srqn = mlx4_bitmap_alloc(&srq_table->bitmap); in __mlx4_srq_alloc_icm()
100 if (*srqn == -1) in __mlx4_srq_alloc_icm()
103 err = mlx4_table_get(dev, &srq_table->table, *srqn); in __mlx4_srq_alloc_icm()
107 err = mlx4_table_get(dev, &srq_table->cmpt_table, *srqn); in __mlx4_srq_alloc_icm()
113 mlx4_table_put(dev, &srq_table->table, *srqn); in __mlx4_srq_alloc_icm()
116 mlx4_bitmap_free(&srq_table->bitmap, *srqn, MLX4_NO_RR); in __mlx4_srq_alloc_icm()
[all …]
Dresource_tracker.c1973 int srqn; in srq_alloc_res() local
1982 err = __mlx4_srq_alloc_icm(dev, &srqn); in srq_alloc_res()
1988 err = add_res_range(dev, slave, srqn, 1, RES_SRQ, 0); in srq_alloc_res()
1991 __mlx4_srq_free_icm(dev, srqn); in srq_alloc_res()
1995 set_param_l(out_param, srqn); in srq_alloc_res()
2489 int srqn; in srq_free_res() local
2494 srqn = get_param_l(&in_param); in srq_free_res()
2495 err = rem_res_range(dev, slave, srqn, 1, RES_SRQ, 0); in srq_free_res()
2500 __mlx4_srq_free_icm(dev, srqn); in srq_free_res()
2724 int srq = (be32_to_cpu(qpc->srqn) >> 24) & 1; in qp_get_mtt_size()
[all …]
Den_resources.c90 context->srqn = cpu_to_be32(7 << 28); /* this fills bits 30:28 */ in mlx4_en_fill_qp_context()
Deq.c559 __func__, be32_to_cpu(eqe->event.srq.srqn), in mlx4_eq_int()
567 be32_to_cpu(eqe->event.srq.srqn) in mlx4_eq_int()
580 be32_to_cpu(eqe->event.srq.srqn), in mlx4_eq_int()
593 mlx4_srq_event(dev, be32_to_cpu(eqe->event.srq.srqn) & in mlx4_eq_int()
Dmlx4.h985 int __mlx4_srq_alloc_icm(struct mlx4_dev *dev, int *srqn);
986 void __mlx4_srq_free_icm(struct mlx4_dev *dev, int srqn);
1237 void mlx4_srq_event(struct mlx4_dev *dev, u32 srqn, int event_type);
/linux-6.12.1/drivers/infiniband/hw/mthca/
Dmthca_srq.c136 context->state_logsize_srqn = cpu_to_be32(logsize << 24 | srq->srqn); in mthca_arbel_init_srq_context()
237 srq->srqn = mthca_alloc(&dev->srq_table.alloc); in mthca_alloc_srq()
238 if (srq->srqn == -1) in mthca_alloc_srq()
242 err = mthca_table_get(dev, dev->srq_table.table, srq->srqn); in mthca_alloc_srq()
248 srq->srqn, &srq->db); in mthca_alloc_srq()
276 err = mthca_SW2HW_SRQ(dev, mailbox, srq->srqn); in mthca_alloc_srq()
285 srq->srqn & (dev->limits.num_srqs - 1), in mthca_alloc_srq()
303 err = mthca_HW2SW_SRQ(dev, mailbox, srq->srqn); in mthca_alloc_srq()
319 mthca_table_put(dev, dev->srq_table.table, srq->srqn); in mthca_alloc_srq()
322 mthca_free(&dev->srq_table.alloc, srq->srqn); in mthca_alloc_srq()
[all …]
Dmthca_provider.h208 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()
/linux-6.12.1/drivers/infiniband/hw/mlx5/
Dsrq_cmd.c81 struct mlx5_core_srq *mlx5_cmd_get_srq(struct mlx5_ib_dev *dev, u32 srqn) in mlx5_cmd_get_srq() argument
87 srq = xa_load(&table->array, srqn); in mlx5_cmd_get_srq()
157 srq->srqn = MLX5_GET(create_srq_out, create_out, srqn); in create_srq_cmd()
169 MLX5_SET(destroy_srq_in, in, srqn, srq->srqn); in destroy_srq_cmd()
182 MLX5_SET(arm_rq_in, in, srq_number, srq->srqn); in arm_srq_cmd()
202 MLX5_SET(query_srq_in, in, srqn, srq->srqn); in query_srq_cmd()
263 srq->srqn = MLX5_GET(create_xrc_srq_out, create_out, xrc_srqn); in create_xrc_srq_cmd()
276 MLX5_SET(destroy_xrc_srq_in, in, xrc_srqn, srq->srqn); in destroy_xrc_srq_cmd()
290 MLX5_SET(arm_xrc_srq_in, in, xrc_srqn, srq->srqn); in arm_xrc_srq_cmd()
311 MLX5_SET(query_xrc_srq_in, in, xrc_srqn, srq->srqn); in query_xrc_srq_cmd()
[all …]
Dsrq.h22 u32 srqn; member
43 u32 srqn; member
65 struct mlx5_core_srq *mlx5_cmd_get_srq(struct mlx5_ib_dev *dev, u32 srqn);
Dsrq.c35 type, srq->srqn); in mlx5_ib_srq_event()
294 mlx5_ib_dbg(dev, "create SRQ with srqn 0x%x\n", srq->msrq.srqn); in mlx5_ib_create_srq()
297 srq->ibsrq.ext.xrc.srq_num = srq->msrq.srqn; in mlx5_ib_create_srq()
301 .srqn = srq->msrq.srqn, in mlx5_ib_create_srq()
/linux-6.12.1/drivers/infiniband/hw/hns/
Dhns_roce_srq.c13 void hns_roce_srq_event(struct hns_roce_dev *hr_dev, u32 srqn, int event_type) in hns_roce_srq_event() argument
19 srq = xa_load(&srq_table->xa, srqn & (hr_dev->caps.num_srqs - 1)); in hns_roce_srq_event()
25 dev_warn(hr_dev->dev, "Async event for bogus SRQ %08x\n", srqn); in hns_roce_srq_event()
55 event_type, srq->srqn); in hns_roce_ib_srq_event()
75 srq->srqn = id; in alloc_srqn()
82 ida_free(&hr_dev->srq_table.srq_ida.ida, (int)srq->srqn); in free_srqn()
105 srq->srqn); in hns_roce_create_srqc()
120 ret = hns_roce_table_get(hr_dev, &srq_table->table, srq->srqn); in alloc_srqc()
126 ret = xa_err(xa_store_irq(&srq_table->xa, srq->srqn, srq, GFP_KERNEL)); in alloc_srqc()
139 xa_erase_irq(&srq_table->xa, srq->srqn); in alloc_srqc()
[all …]
Dhns_roce_restrack.c190 if (rdma_nl_put_driver_u32_hex(msg, "srqn", hr_srq->srqn)) in hns_roce_fill_res_srq_entry()
221 ret = hr_dev->hw->query_srqc(hr_dev, hr_srq->srqn, &context); in hns_roce_fill_res_srq_entry_raw()
Dhns_roce_device.h457 unsigned long srqn; member
960 int (*query_srqc)(struct hns_roce_dev *hr_dev, u32 srqn, void *buffer);
1292 void hns_roce_srq_event(struct hns_roce_dev *hr_dev, u32 srqn, int event_type);
/linux-6.12.1/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_srq.c191 srq->srq_handle = resp->srqn; in pvrdma_create_srq()
192 srq_resp.srqn = resp->srqn; in pvrdma_create_srq()
Dpvrdma_dev_api.h524 u32 srqn; member
Dpvrdma_main.c336 static void pvrdma_srq_event(struct pvrdma_dev *dev, u32 srqn, int type) in pvrdma_srq_event() argument
343 srq = dev->srq_tbl[srqn % dev->dsr->caps.max_srq]; in pvrdma_srq_event()
/linux-6.12.1/include/linux/mlx4/
Dsrq.h42 struct mlx4_srq *mlx4_srq_lookup(struct mlx4_dev *dev, u32 srqn);
Dqp.h218 __be32 srqn; member
/linux-6.12.1/include/uapi/rdma/
Dmthca-abi.h100 __u32 srqn; member
Dhns-abi.h72 __u32 srqn; member
Dmlx4-abi.h99 __u32 srqn; member
Dvmw_pvrdma-abi.h177 __u32 srqn; member
Dmlx5-abi.h322 __u32 srqn; member
/linux-6.12.1/drivers/infiniband/hw/mlx4/
Dsrq.c64 "on SRQ %06x\n", type, srq->srqn); in mlx4_ib_srq_event()
191 srq->ibsrq.ext.xrc.srq_num = srq->msrq.srqn; in mlx4_ib_create_srq()
194 if (ib_copy_to_udata(udata, &srq->msrq.srqn, sizeof (__u32))) { in mlx4_ib_create_srq()

12