Lines Matching refs:attrs
174 struct uverbs_attr_bundle *attrs) in copy_op_to_user() argument
182 err = uverbs_copy_to(attrs, MLX5_IB_ATTR_DM_MAP_OP_ADDR_RESP_PAGE_INDEX, in copy_op_to_user()
187 return uverbs_copy_to(attrs, in copy_op_to_user()
193 struct uverbs_attr_bundle *attrs) in map_existing_op() argument
201 return copy_op_to_user(op_entry, attrs); in map_existing_op()
205 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER()
208 attrs, MLX5_IB_ATTR_DM_MAP_OP_ADDR_REQ_HANDLE); in UVERBS_HANDLER()
216 err = uverbs_copy_from(&op, attrs, MLX5_IB_ATTR_DM_MAP_OP_ADDR_REQ_OP); in UVERBS_HANDLER()
227 err = map_existing_op(dm, op, attrs); in UVERBS_HANDLER()
255 err = copy_op_to_user(op_entry, attrs); in UVERBS_HANDLER()
276 struct uverbs_attr_bundle *attrs) in handle_alloc_dm_memic() argument
318 err = uverbs_copy_to(attrs, MLX5_IB_ATTR_ALLOC_DM_RESP_PAGE_INDEX, in handle_alloc_dm_memic()
324 err = uverbs_copy_to(attrs, in handle_alloc_dm_memic()
346 struct uverbs_attr_bundle *attrs, in handle_alloc_dm_sw_icm() argument
388 err = uverbs_copy_to(attrs, MLX5_IB_ATTR_ALLOC_DM_RESP_START_OFFSET, in handle_alloc_dm_sw_icm()
405 struct uverbs_attr_bundle *attrs) in mlx5_ib_alloc_dm() argument
410 err = uverbs_get_const_default(&type, attrs, in mlx5_ib_alloc_dm()
421 return handle_alloc_dm_memic(context, attr, attrs); in mlx5_ib_alloc_dm()
423 return handle_alloc_dm_sw_icm(context, attr, attrs, type); in mlx5_ib_alloc_dm()
425 return handle_alloc_dm_sw_icm(context, attr, attrs, type); in mlx5_ib_alloc_dm()
465 struct uverbs_attr_bundle *attrs) in mlx5_ib_dealloc_dm() argument
468 &attrs->driver_udata, struct mlx5_ib_ucontext, ibucontext); in mlx5_ib_dealloc_dm()
484 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER()
487 uverbs_attr_get_obj(attrs, MLX5_IB_ATTR_QUERY_DM_REQ_HANDLE); in UVERBS_HANDLER()
499 err = uverbs_copy_to(attrs, MLX5_IB_ATTR_QUERY_DM_RESP_PAGE_INDEX, in UVERBS_HANDLER()
505 err = uverbs_copy_to(attrs, MLX5_IB_ATTR_QUERY_DM_RESP_START_OFFSET, in UVERBS_HANDLER()
510 return uverbs_copy_to(attrs, MLX5_IB_ATTR_QUERY_DM_RESP_LENGTH, in UVERBS_HANDLER()