Lines Matching refs:vio
856 struct nvm_user_vio vio; in nvme_nvm_submit_vio() local
861 if (copy_from_user(&vio, uvio, sizeof(vio))) in nvme_nvm_submit_vio()
863 if (vio.flags) in nvme_nvm_submit_vio()
867 c.ph_rw.opcode = vio.opcode; in nvme_nvm_submit_vio()
869 c.ph_rw.control = cpu_to_le16(vio.control); in nvme_nvm_submit_vio()
870 c.ph_rw.length = cpu_to_le16(vio.nppas); in nvme_nvm_submit_vio()
872 length = (vio.nppas + 1) << ns->lba_shift; in nvme_nvm_submit_vio()
875 (void __user *)(uintptr_t)vio.addr, length, in nvme_nvm_submit_vio()
876 (void __user *)(uintptr_t)vio.metadata, in nvme_nvm_submit_vio()
877 vio.metadata_len, in nvme_nvm_submit_vio()
878 (void __user *)(uintptr_t)vio.ppa_list, vio.nppas, in nvme_nvm_submit_vio()
879 &vio.result, &vio.status, 0); in nvme_nvm_submit_vio()
881 if (ret && copy_to_user(uvio, &vio, sizeof(vio))) in nvme_nvm_submit_vio()