Lines Matching refs:init_attr
193 struct ib_srq_init_attr *init_attr, in mlx5_ib_create_srq() argument
204 if (init_attr->srq_type != IB_SRQT_BASIC && in mlx5_ib_create_srq()
205 init_attr->srq_type != IB_SRQT_XRC && in mlx5_ib_create_srq()
206 init_attr->srq_type != IB_SRQT_TM) in mlx5_ib_create_srq()
210 if (init_attr->attr.max_wr >= max_srq_wqes) { in mlx5_ib_create_srq()
212 init_attr->attr.max_wr, in mlx5_ib_create_srq()
219 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); in mlx5_ib_create_srq()
220 srq->msrq.max_gs = init_attr->attr.max_sge; in mlx5_ib_create_srq()
239 in.type = init_attr->srq_type; in mlx5_ib_create_srq()
257 if (init_attr->srq_type == IB_SRQT_XRC && init_attr->ext.xrc.xrcd) in mlx5_ib_create_srq()
258 in.xrcd = to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn; in mlx5_ib_create_srq()
262 if (init_attr->srq_type == IB_SRQT_TM) { in mlx5_ib_create_srq()
264 ilog2(init_attr->ext.tag_matching.max_num_tags) + 1; in mlx5_ib_create_srq()
274 if (ib_srq_has_cq(init_attr->srq_type)) in mlx5_ib_create_srq()
275 in.cqn = to_mcq(init_attr->ext.cq)->mcq.cqn; in mlx5_ib_create_srq()
306 init_attr->attr.max_wr = srq->msrq.max - 1; in mlx5_ib_create_srq()