Lines Matching refs:p
207 char *p; in mips_semihosting() local
219 p = lock_user_string(fname); in mips_semihosting()
220 if (!p) { in mips_semihosting()
223 if (!strcmp("/dev/stdin", p)) { in mips_semihosting()
225 } else if (!strcmp("/dev/stdout", p)) { in mips_semihosting()
227 } else if (!strcmp("/dev/stderr", p)) { in mips_semihosting()
230 unlock_user(p, fname, 0); in mips_semihosting()
282 p = lock_user(VERIFY_WRITE, addr, len, 0); in mips_semihosting()
283 if (!p) { in mips_semihosting()
286 memcpy(p, s, len); in mips_semihosting()
287 unlock_user(p, addr, len); in mips_semihosting()
302 p = lock_user(VERIFY_READ, addr, len, 1); in mips_semihosting()
303 if (!p) { in mips_semihosting()
307 pct_d = strstr(p, "%d"); in mips_semihosting()
309 unlock_user(p, addr, 0); in mips_semihosting()
314 str = g_string_new_len(p, pct_d - p); in mips_semihosting()
316 unlock_user(p, addr, 0); in mips_semihosting()
324 p = lock_user(VERIFY_WRITE, addr, str->len, 0); in mips_semihosting()
325 if (!p) { in mips_semihosting()
328 memcpy(p, str->str, str->len); in mips_semihosting()
329 unlock_user(p, addr, str->len); in mips_semihosting()