Lines Matching defs:rc
34 int rc, *pos;
41 rc = erst_get_record_id_begin(pos);
42 if (rc)
43 return rc;
57 int rc;
63 rc = copy_from_user(&record_id, (void __user *)arg,
65 if (rc)
69 rc = erst_get_record_count();
70 if (rc < 0)
71 return rc;
72 record_count = rc;
73 rc = put_user(record_count, (u32 __user *)arg);
74 if (rc)
75 return rc;
85 int rc, *pos;
98 rc = erst_get_record_id_next(pos, &id);
99 if (rc)
114 rc = len = erst_read_record(id, erst_dbg_buf, erst_dbg_buf_len,
117 if (rc == -ENOENT)
119 if (rc < 0)
124 rc = -EIO;
129 rc = -ENOMEM;
139 rc = -EINVAL;
143 rc = -EFAULT;
146 rc = 0;
149 return rc ? rc : len;
155 int rc;
170 rc = -ENOMEM;
178 rc = copy_from_user(erst_dbg_buf, ubuf, usize);
179 if (rc) {
180 rc = -EFAULT;
184 rc = -EINVAL;
188 rc = erst_write(erst_dbg_buf);
192 return rc < 0 ? rc : usize;