Lines Matching refs:ret

74 	int ret;
77 ret = wait_parent(&info->child_sync);
78 if (ret)
79 return ret;
131 ret = prod_parent(&info->child_sync);
132 CHILD_FAIL_IF(ret, &info->child_sync);
134 ret = wait_parent(&info->child_sync);
135 if (ret)
136 return ret;
147 ret = prod_parent(&info->child_sync);
148 CHILD_FAIL_IF(ret, &info->child_sync);
150 ret = wait_parent(&info->child_sync);
151 if (ret)
152 return ret;
164 ret = prod_parent(&info->child_sync);
165 CHILD_FAIL_IF(ret, &info->child_sync);
167 ret = wait_parent(&info->child_sync);
168 if (ret)
169 return ret;
179 ret = prod_parent(&info->child_sync);
180 CHILD_FAIL_IF(ret, &info->child_sync);
188 int ret, status;
194 ret = ptrace_read_regs(pid, NT_PPC_PKEY, regs, 3);
195 PARENT_SKIP_IF_UNSUPPORTED(ret, &info->child_sync, "PKEYs not supported");
196 PARENT_FAIL_IF(ret, &info->child_sync);
203 ret = prod_child(&info->child_sync);
204 PARENT_FAIL_IF(ret, &info->child_sync);
206 ret = wait_child(&info->child_sync);
207 if (ret)
208 return ret;
211 ret = ptrace_read_regs(pid, NT_PPC_PKEY, regs, 3);
212 PARENT_FAIL_IF(ret, &info->child_sync);
222 ret = ptrace_write_regs(pid, NT_PPC_PKEY, &info->amr2, 1);
223 PARENT_FAIL_IF(ret, &info->child_sync);
228 ret = prod_child(&info->child_sync);
229 PARENT_FAIL_IF(ret, &info->child_sync);
231 ret = wait_child(&info->child_sync);
232 if (ret)
233 return ret;
236 ret = ptrace_write_regs(pid, NT_PPC_PKEY, &info->invalid_amr, 1);
237 PARENT_FAIL_IF(ret, &info->child_sync);
242 ret = prod_child(&info->child_sync);
243 PARENT_FAIL_IF(ret, &info->child_sync);
245 ret = wait_child(&info->child_sync);
246 if (ret)
247 return ret;
252 ret = ptrace_write_regs(pid, NT_PPC_PKEY, regs, 2);
253 PARENT_FAIL_IF(!ret, &info->child_sync);
260 ret = ptrace_write_regs(pid, NT_PPC_PKEY, regs, 3);
261 PARENT_FAIL_IF(!ret, &info->child_sync);
267 ret = ptrace_read_regs(pid, NT_PPC_PKEY, regs, 3);
268 PARENT_FAIL_IF(ret, &info->child_sync);
278 ret = prod_child(&info->child_sync);
279 PARENT_FAIL_IF(ret, &info->child_sync);
281 ret = wait(&status);
282 if (ret != pid) {
284 ret = TEST_PASS;
287 ret = TEST_FAIL;
289 ret = WEXITSTATUS(status) ? TEST_FAIL : TEST_PASS;
291 return ret;
298 int ret;
304 ret = init_child_sync(&info->child_sync);
305 if (ret)
306 return ret;
311 ret = TEST_FAIL;
313 ret = child(info);
315 ret = parent(info, pid);
324 return ret;