Lines Matching refs:msa
165 struct msa_extcontext __user *msa = buf; in save_msa_extcontext() local
188 err = __put_user(read_msa_csr(), &msa->csr); in save_msa_extcontext()
189 err |= _save_msa_all_upper(&msa->wr); in save_msa_extcontext()
195 err = __put_user(current->thread.fpu.msacsr, &msa->csr); in save_msa_extcontext()
199 err |= __put_user(val, &msa->wr[i]); in save_msa_extcontext()
203 err |= __put_user(MSA_EXTCONTEXT_MAGIC, &msa->ext.magic); in save_msa_extcontext()
204 err |= __put_user(sizeof(*msa), &msa->ext.size); in save_msa_extcontext()
206 return err ? -EFAULT : sizeof(*msa); in save_msa_extcontext()
211 struct msa_extcontext __user *msa = buf; in restore_msa_extcontext() local
216 if (size != sizeof(*msa)) in restore_msa_extcontext()
219 err = get_user(csr, &msa->csr); in restore_msa_extcontext()
236 err |= _restore_msa_all_upper(&msa->wr); in restore_msa_extcontext()
244 err |= __get_user(val, &msa->wr[i]); in restore_msa_extcontext()