cmd_p 393 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_resource_create_2d *cmd_p; cmd_p 396 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd(vgdev, &vbuf, sizeof(*cmd_p)); cmd_p 397 drivers/gpu/drm/virtio/virtgpu_vq.c memset(cmd_p, 0, sizeof(*cmd_p)); cmd_p 399 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_CREATE_2D); cmd_p 400 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); cmd_p 401 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->format = cpu_to_le32(params->format); cmd_p 402 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->width = cpu_to_le32(params->width); cmd_p 403 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->height = cpu_to_le32(params->height); cmd_p 405 drivers/gpu/drm/virtio/virtgpu_vq.c virtio_gpu_queue_fenced_ctrl_buffer(vgdev, vbuf, &cmd_p->hdr, fence); cmd_p 412 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_resource_unref *cmd_p; cmd_p 415 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd(vgdev, &vbuf, sizeof(*cmd_p)); cmd_p 416 drivers/gpu/drm/virtio/virtgpu_vq.c memset(cmd_p, 0, sizeof(*cmd_p)); cmd_p 418 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_UNREF); cmd_p 419 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->resource_id = cpu_to_le32(resource_id); cmd_p 428 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_resource_detach_backing *cmd_p; cmd_p 431 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd(vgdev, &vbuf, sizeof(*cmd_p)); cmd_p 432 drivers/gpu/drm/virtio/virtgpu_vq.c memset(cmd_p, 0, sizeof(*cmd_p)); cmd_p 434 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_DETACH_BACKING); cmd_p 435 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->resource_id = cpu_to_le32(resource_id); cmd_p 437 drivers/gpu/drm/virtio/virtgpu_vq.c virtio_gpu_queue_fenced_ctrl_buffer(vgdev, vbuf, &cmd_p->hdr, fence); cmd_p 445 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_set_scanout *cmd_p; cmd_p 448 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd(vgdev, &vbuf, sizeof(*cmd_p)); cmd_p 449 drivers/gpu/drm/virtio/virtgpu_vq.c memset(cmd_p, 0, sizeof(*cmd_p)); cmd_p 451 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_SET_SCANOUT); cmd_p 452 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->resource_id = cpu_to_le32(resource_id); cmd_p 453 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->scanout_id = cpu_to_le32(scanout_id); cmd_p 454 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->r.width = cpu_to_le32(width); cmd_p 455 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->r.height = cpu_to_le32(height); cmd_p 456 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->r.x = cpu_to_le32(x); cmd_p 457 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->r.y = cpu_to_le32(y); cmd_p 467 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_resource_flush *cmd_p; cmd_p 470 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd(vgdev, &vbuf, sizeof(*cmd_p)); cmd_p 471 drivers/gpu/drm/virtio/virtgpu_vq.c memset(cmd_p, 0, sizeof(*cmd_p)); cmd_p 473 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_FLUSH); cmd_p 474 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->resource_id = cpu_to_le32(resource_id); cmd_p 475 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->r.width = cpu_to_le32(width); cmd_p 476 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->r.height = cpu_to_le32(height); cmd_p 477 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->r.x = cpu_to_le32(x); cmd_p 478 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->r.y = cpu_to_le32(y); cmd_p 490 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_transfer_to_host_2d *cmd_p; cmd_p 499 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd(vgdev, &vbuf, sizeof(*cmd_p)); cmd_p 500 drivers/gpu/drm/virtio/virtgpu_vq.c memset(cmd_p, 0, sizeof(*cmd_p)); cmd_p 502 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_TRANSFER_TO_HOST_2D); cmd_p 503 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); cmd_p 504 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->offset = cpu_to_le64(offset); cmd_p 505 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->r.width = width; cmd_p 506 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->r.height = height; cmd_p 507 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->r.x = x; cmd_p 508 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->r.y = y; cmd_p 510 drivers/gpu/drm/virtio/virtgpu_vq.c virtio_gpu_queue_fenced_ctrl_buffer(vgdev, vbuf, &cmd_p->hdr, fence); cmd_p 520 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_resource_attach_backing *cmd_p; cmd_p 523 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd(vgdev, &vbuf, sizeof(*cmd_p)); cmd_p 524 drivers/gpu/drm/virtio/virtgpu_vq.c memset(cmd_p, 0, sizeof(*cmd_p)); cmd_p 526 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_ATTACH_BACKING); cmd_p 527 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->resource_id = cpu_to_le32(resource_id); cmd_p 528 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->nr_entries = cpu_to_le32(nents); cmd_p 533 drivers/gpu/drm/virtio/virtgpu_vq.c virtio_gpu_queue_fenced_ctrl_buffer(vgdev, vbuf, &cmd_p->hdr, fence); cmd_p 648 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_ctrl_hdr *cmd_p; cmd_p 657 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd_resp cmd_p 659 drivers/gpu/drm/virtio/virtgpu_vq.c sizeof(*cmd_p), sizeof(struct virtio_gpu_resp_display_info), cmd_p 661 drivers/gpu/drm/virtio/virtgpu_vq.c memset(cmd_p, 0, sizeof(*cmd_p)); cmd_p 664 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->type = cpu_to_le32(VIRTIO_GPU_CMD_GET_DISPLAY_INFO); cmd_p 671 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_get_capset_info *cmd_p; cmd_p 680 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd_resp cmd_p 682 drivers/gpu/drm/virtio/virtgpu_vq.c sizeof(*cmd_p), sizeof(struct virtio_gpu_resp_capset_info), cmd_p 684 drivers/gpu/drm/virtio/virtgpu_vq.c memset(cmd_p, 0, sizeof(*cmd_p)); cmd_p 686 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_GET_CAPSET_INFO); cmd_p 687 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->capset_index = cpu_to_le32(idx); cmd_p 696 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_get_capset *cmd_p; cmd_p 755 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd_resp cmd_p 756 drivers/gpu/drm/virtio/virtgpu_vq.c (vgdev, &virtio_gpu_cmd_capset_cb, &vbuf, sizeof(*cmd_p), cmd_p 759 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_GET_CAPSET); cmd_p 760 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->capset_id = cpu_to_le32(vgdev->capsets[idx].id); cmd_p 761 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->capset_version = cpu_to_le32(version); cmd_p 770 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_cmd_get_edid *cmd_p; cmd_p 784 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd_resp cmd_p 786 drivers/gpu/drm/virtio/virtgpu_vq.c sizeof(*cmd_p), sizeof(struct virtio_gpu_resp_edid), cmd_p 788 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_GET_EDID); cmd_p 789 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->scanout = cpu_to_le32(scanout); cmd_p 799 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_ctx_create *cmd_p; cmd_p 802 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd(vgdev, &vbuf, sizeof(*cmd_p)); cmd_p 803 drivers/gpu/drm/virtio/virtgpu_vq.c memset(cmd_p, 0, sizeof(*cmd_p)); cmd_p 805 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_CTX_CREATE); cmd_p 806 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.ctx_id = cpu_to_le32(id); cmd_p 807 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->nlen = cpu_to_le32(nlen); cmd_p 808 drivers/gpu/drm/virtio/virtgpu_vq.c strncpy(cmd_p->debug_name, name, sizeof(cmd_p->debug_name) - 1); cmd_p 809 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->debug_name[sizeof(cmd_p->debug_name) - 1] = 0; cmd_p 816 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_ctx_destroy *cmd_p; cmd_p 819 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd(vgdev, &vbuf, sizeof(*cmd_p)); cmd_p 820 drivers/gpu/drm/virtio/virtgpu_vq.c memset(cmd_p, 0, sizeof(*cmd_p)); cmd_p 822 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_CTX_DESTROY); cmd_p 823 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.ctx_id = cpu_to_le32(id); cmd_p 831 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_ctx_resource *cmd_p; cmd_p 834 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd(vgdev, &vbuf, sizeof(*cmd_p)); cmd_p 835 drivers/gpu/drm/virtio/virtgpu_vq.c memset(cmd_p, 0, sizeof(*cmd_p)); cmd_p 837 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_CTX_ATTACH_RESOURCE); cmd_p 838 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); cmd_p 839 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->resource_id = cpu_to_le32(resource_id); cmd_p 848 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_ctx_resource *cmd_p; cmd_p 851 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd(vgdev, &vbuf, sizeof(*cmd_p)); cmd_p 852 drivers/gpu/drm/virtio/virtgpu_vq.c memset(cmd_p, 0, sizeof(*cmd_p)); cmd_p 854 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_CTX_DETACH_RESOURCE); cmd_p 855 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); cmd_p 856 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->resource_id = cpu_to_le32(resource_id); cmd_p 866 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_resource_create_3d *cmd_p; cmd_p 869 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd(vgdev, &vbuf, sizeof(*cmd_p)); cmd_p 870 drivers/gpu/drm/virtio/virtgpu_vq.c memset(cmd_p, 0, sizeof(*cmd_p)); cmd_p 872 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_CREATE_3D); cmd_p 873 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); cmd_p 874 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->format = cpu_to_le32(params->format); cmd_p 875 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->width = cpu_to_le32(params->width); cmd_p 876 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->height = cpu_to_le32(params->height); cmd_p 878 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->target = cpu_to_le32(params->target); cmd_p 879 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->bind = cpu_to_le32(params->bind); cmd_p 880 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->depth = cpu_to_le32(params->depth); cmd_p 881 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->array_size = cpu_to_le32(params->array_size); cmd_p 882 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->last_level = cpu_to_le32(params->last_level); cmd_p 883 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->nr_samples = cpu_to_le32(params->nr_samples); cmd_p 884 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->flags = cpu_to_le32(params->flags); cmd_p 886 drivers/gpu/drm/virtio/virtgpu_vq.c virtio_gpu_queue_fenced_ctrl_buffer(vgdev, vbuf, &cmd_p->hdr, fence); cmd_p 897 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_transfer_host_3d *cmd_p; cmd_p 906 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd(vgdev, &vbuf, sizeof(*cmd_p)); cmd_p 907 drivers/gpu/drm/virtio/virtgpu_vq.c memset(cmd_p, 0, sizeof(*cmd_p)); cmd_p 909 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_TRANSFER_TO_HOST_3D); cmd_p 910 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); cmd_p 911 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); cmd_p 912 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->box = *box; cmd_p 913 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->offset = cpu_to_le64(offset); cmd_p 914 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->level = cpu_to_le32(level); cmd_p 916 drivers/gpu/drm/virtio/virtgpu_vq.c virtio_gpu_queue_fenced_ctrl_buffer(vgdev, vbuf, &cmd_p->hdr, fence); cmd_p 925 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_transfer_host_3d *cmd_p; cmd_p 928 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd(vgdev, &vbuf, sizeof(*cmd_p)); cmd_p 929 drivers/gpu/drm/virtio/virtgpu_vq.c memset(cmd_p, 0, sizeof(*cmd_p)); cmd_p 931 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_TRANSFER_FROM_HOST_3D); cmd_p 932 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); cmd_p 933 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->resource_id = cpu_to_le32(resource_id); cmd_p 934 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->box = *box; cmd_p 935 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->offset = cpu_to_le64(offset); cmd_p 936 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->level = cpu_to_le32(level); cmd_p 938 drivers/gpu/drm/virtio/virtgpu_vq.c virtio_gpu_queue_fenced_ctrl_buffer(vgdev, vbuf, &cmd_p->hdr, fence); cmd_p 945 drivers/gpu/drm/virtio/virtgpu_vq.c struct virtio_gpu_cmd_submit *cmd_p; cmd_p 948 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p = virtio_gpu_alloc_cmd(vgdev, &vbuf, sizeof(*cmd_p)); cmd_p 949 drivers/gpu/drm/virtio/virtgpu_vq.c memset(cmd_p, 0, sizeof(*cmd_p)); cmd_p 954 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_SUBMIT_3D); cmd_p 955 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); cmd_p 956 drivers/gpu/drm/virtio/virtgpu_vq.c cmd_p->size = cpu_to_le32(data_size); cmd_p 958 drivers/gpu/drm/virtio/virtgpu_vq.c virtio_gpu_queue_fenced_ctrl_buffer(vgdev, vbuf, &cmd_p->hdr, fence); cmd_p 955 drivers/target/iscsi/iscsi_target.c struct iscsi_cmd *cmd, *cmd_p; cmd_p 963 drivers/target/iscsi/iscsi_target.c list_for_each_entry_safe(cmd, cmd_p, &conn->conn_cmd_list, i_conn_node) { cmd_p 976 drivers/target/iscsi/iscsi_target.c list_for_each_entry_safe(cmd, cmd_p, &ack_list, i_conn_node) { cmd_p 1770 drivers/target/iscsi/iscsi_target.c struct iscsi_cmd *cmd_p = NULL; cmd_p 1805 drivers/target/iscsi/iscsi_target.c cmd_p = iscsit_find_cmd_from_ttt(conn, be32_to_cpu(hdr->ttt)); cmd_p 1806 drivers/target/iscsi/iscsi_target.c if (!cmd_p) cmd_p 1811 drivers/target/iscsi/iscsi_target.c cmd_p->i_state = ISTATE_REMOVE; cmd_p 1812 drivers/target/iscsi/iscsi_target.c iscsit_add_cmd_to_immediate_queue(cmd_p, conn, cmd_p->i_state);