Lines Matching refs:cmd_in

917 static int devx_get_uid(struct mlx5_ib_ucontext *c, void *cmd_in)  in devx_get_uid()  argument
919 if (devx_is_whitelist_cmd(cmd_in)) { in devx_get_uid()
1055 void *cmd_in = uverbs_attr_get_alloced_ptr( in UVERBS_HANDLER() local
1068 uid = devx_get_uid(c, cmd_in); in UVERBS_HANDLER()
1073 if (!devx_is_general_cmd(cmd_in, dev)) in UVERBS_HANDLER()
1080 MLX5_SET(general_obj_in_cmd_hdr, cmd_in, uid, uid); in UVERBS_HANDLER()
1081 err = mlx5_cmd_do(dev->mdev, cmd_in, in UVERBS_HANDLER()
1450 void *cmd_in = uverbs_attr_get_alloced_ptr(attrs, MLX5_IB_ATTR_DEVX_OBJ_CREATE_CMD_IN); in UVERBS_HANDLER() local
1469 if (MLX5_GET(general_obj_in_cmd_hdr, cmd_in, vhca_tunnel_id)) in UVERBS_HANDLER()
1472 uid = devx_get_uid(c, cmd_in); in UVERBS_HANDLER()
1476 if (!devx_is_obj_create_cmd(cmd_in, &opcode)) in UVERBS_HANDLER()
1487 MLX5_SET(general_obj_in_cmd_hdr, cmd_in, uid, uid); in UVERBS_HANDLER()
1489 err = devx_handle_mkey_create(dev, obj, cmd_in, cmd_in_len); in UVERBS_HANDLER()
1493 devx_set_umem_valid(cmd_in); in UVERBS_HANDLER()
1498 err = mlx5_core_create_dct(dev, &obj->core_dct, cmd_in, in UVERBS_HANDLER()
1501 !is_apu_cq(dev, cmd_in)) { in UVERBS_HANDLER()
1505 cmd_in, cmd_in_len, cmd_out, in UVERBS_HANDLER()
1508 err = mlx5_cmd_do(dev->mdev, cmd_in, cmd_in_len, in UVERBS_HANDLER()
1521 cmd_in, in UVERBS_HANDLER()
1529 devx_obj_build_destroy_cmd(cmd_in, cmd_out, obj->dinbox, &obj->dinlen, in UVERBS_HANDLER()
1538 obj_type = MLX5_GET(general_obj_in_cmd_hdr, cmd_in, obj_type); in UVERBS_HANDLER()
1542 err = devx_handle_mkey_indirect(obj, dev, cmd_in, cmd_out); in UVERBS_HANDLER()
1564 void *cmd_in = uverbs_attr_get_alloced_ptr(attrs, MLX5_IB_ATTR_DEVX_OBJ_MODIFY_CMD_IN); in UVERBS_HANDLER() local
1576 if (MLX5_GET(general_obj_in_cmd_hdr, cmd_in, vhca_tunnel_id)) in UVERBS_HANDLER()
1579 uid = devx_get_uid(c, cmd_in); in UVERBS_HANDLER()
1583 if (!devx_is_obj_modify_cmd(cmd_in)) in UVERBS_HANDLER()
1586 if (!devx_is_valid_obj_id(attrs, uobj, cmd_in)) in UVERBS_HANDLER()
1593 MLX5_SET(general_obj_in_cmd_hdr, cmd_in, uid, uid); in UVERBS_HANDLER()
1594 devx_set_umem_valid(cmd_in); in UVERBS_HANDLER()
1596 err = mlx5_cmd_do(mdev->mdev, cmd_in, in UVERBS_HANDLER()
1611 void *cmd_in = uverbs_attr_get_alloced_ptr(attrs, MLX5_IB_ATTR_DEVX_OBJ_QUERY_CMD_IN); in UVERBS_HANDLER() local
1623 if (MLX5_GET(general_obj_in_cmd_hdr, cmd_in, vhca_tunnel_id)) in UVERBS_HANDLER()
1626 uid = devx_get_uid(c, cmd_in); in UVERBS_HANDLER()
1630 if (!devx_is_obj_query_cmd(cmd_in)) in UVERBS_HANDLER()
1633 if (!devx_is_valid_obj_id(attrs, uobj, cmd_in)) in UVERBS_HANDLER()
1640 MLX5_SET(general_obj_in_cmd_hdr, cmd_in, uid, uid); in UVERBS_HANDLER()
1641 err = mlx5_cmd_do(mdev->mdev, cmd_in, in UVERBS_HANDLER()
1749 void *cmd_in = uverbs_attr_get_alloced_ptr(attrs, in UVERBS_HANDLER() local
1764 if (MLX5_GET(general_obj_in_cmd_hdr, cmd_in, vhca_tunnel_id)) in UVERBS_HANDLER()
1767 uid = devx_get_uid(c, cmd_in); in UVERBS_HANDLER()
1771 if (!devx_is_obj_query_cmd(cmd_in)) in UVERBS_HANDLER()
1779 if (!devx_is_valid_obj_id(attrs, uobj, cmd_in)) in UVERBS_HANDLER()
1812 MLX5_SET(general_obj_in_cmd_hdr, cmd_in, uid, uid); in UVERBS_HANDLER()
1813 err = mlx5_cmd_exec_cb(&ev_file->async_ctx, cmd_in, in UVERBS_HANDLER()