Lines Matching refs:args
44 test_ufetch(void * const uaddr, struct ufetchstore_test_args * const args)
48 switch (args->size) {
50 args->fetchstore_error = ufetch_8(uaddr, &args->val8);
53 args->fetchstore_error = ufetch_16(uaddr, &args->val16);
56 args->fetchstore_error = ufetch_32(uaddr, &args->val32);
60 args->fetchstore_error = ufetch_64(uaddr, &args->val64);
71 test_ustore(void * const uaddr, struct ufetchstore_test_args * const args)
75 switch (args->size) {
77 args->fetchstore_error = ustore_8(uaddr, args->val8);
80 args->fetchstore_error = ustore_16(uaddr, args->val16);
83 args->fetchstore_error = ustore_32(uaddr, args->val32);
87 args->fetchstore_error = ustore_64(uaddr, args->val64);
98 test_ucas(void * const uaddr, struct ufetchstore_test_args * const args)
102 switch (args->size) {
104 args->fetchstore_error = ucas_32(uaddr,
105 args->ea_val32, args->val32, &args->ea_val32);
109 args->fetchstore_error = ucas_64(uaddr,
110 args->ea_val64, args->val64, &args->ea_val64);
124 struct ufetchstore_test_args *uargs, args;
140 error = copyin(uargs, &args, sizeof(args));
144 args.fetchstore_error = EBADF; /* poison */
146 void *uaddr = (void *)(uintptr_t)args.uaddr64;
148 switch (args.test_op) {
150 error = test_ufetch(uaddr, &args);
154 error = test_ustore(uaddr, &args);
158 error = test_ucas(uaddr, &args);
166 error = copyout(&args, uargs, sizeof(args));