Lines Matching refs:cmd
2253 struct devx_umem_reg_cmd *cmd, in devx_umem_reg_cmd_alloc() argument
2285 cmd->inlen = MLX5_ST_SZ_BYTES(create_umem_in) + in devx_umem_reg_cmd_alloc()
2288 cmd->in = uverbs_zalloc(attrs, cmd->inlen); in devx_umem_reg_cmd_alloc()
2289 if (IS_ERR(cmd->in)) in devx_umem_reg_cmd_alloc()
2290 return PTR_ERR(cmd->in); in devx_umem_reg_cmd_alloc()
2292 umem = MLX5_ADDR_OF(create_umem_in, cmd->in, umem); in devx_umem_reg_cmd_alloc()
2295 MLX5_SET(create_umem_in, cmd->in, opcode, MLX5_CMD_OP_CREATE_UMEM); in devx_umem_reg_cmd_alloc()
2315 struct devx_umem_reg_cmd cmd; in UVERBS_HANDLER() local
2346 err = devx_umem_reg_cmd_alloc(dev, attrs, obj, &cmd, access_flags); in UVERBS_HANDLER()
2350 MLX5_SET(create_umem_in, cmd.in, uid, c->devx_uid); in UVERBS_HANDLER()
2351 err = mlx5_cmd_exec(dev->mdev, cmd.in, cmd.inlen, cmd.out, in UVERBS_HANDLER()
2352 sizeof(cmd.out)); in UVERBS_HANDLER()
2358 devx_obj_build_destroy_cmd(cmd.in, cmd.out, obj->dinbox, &obj->dinlen, &obj_id); in UVERBS_HANDLER()