Lines Matching refs:msa
164 struct msa_extcontext __user *msa = buf; in save_msa_extcontext() local
187 err = __put_user(read_msa_csr(), &msa->csr); in save_msa_extcontext()
188 err |= _save_msa_all_upper(&msa->wr); in save_msa_extcontext()
194 err = __put_user(current->thread.fpu.msacsr, &msa->csr); in save_msa_extcontext()
198 err |= __put_user(val, &msa->wr[i]); in save_msa_extcontext()
202 err |= __put_user(MSA_EXTCONTEXT_MAGIC, &msa->ext.magic); in save_msa_extcontext()
203 err |= __put_user(sizeof(*msa), &msa->ext.size); in save_msa_extcontext()
205 return err ? -EFAULT : sizeof(*msa); in save_msa_extcontext()
210 struct msa_extcontext __user *msa = buf; in restore_msa_extcontext() local
215 if (size != sizeof(*msa)) in restore_msa_extcontext()
218 err = get_user(csr, &msa->csr); in restore_msa_extcontext()
235 err |= _restore_msa_all_upper(&msa->wr); in restore_msa_extcontext()
243 err |= __get_user(val, &msa->wr[i]); in restore_msa_extcontext()