Lines Matching refs:error
302 int error; in rtas_log_read() local
325 error = -EAGAIN; in rtas_log_read()
331 error = -ENODATA; in rtas_log_read()
339 error = wait_event_interruptible(rtas_log_wait, rtas_log_size); in rtas_log_read()
340 if (error) in rtas_log_read()
352 error = copy_to_user(buf, tmp, count) ? -EFAULT : count; in rtas_log_read()
355 return error; in rtas_log_read()
376 int error; in enable_surveillance() local
378 error = rtas_set_indicator(SURVEILLANCE_TOKEN, 0, timeout); in enable_surveillance()
380 if (error == 0) in enable_surveillance()
383 if (error == -EINVAL) { in enable_surveillance()
394 int error; in do_event_scan() local
397 error = rtas_call(event_scan, 4, 1, NULL, in do_event_scan()
400 if (error == -1) { in do_event_scan()
405 if (error == 0) { in do_event_scan()
413 } while(error == 0); in do_event_scan()