Lines Matching refs:rv
108 int rv;
112 rv = parse_str(hotmod_ops, &ival, "operation", &curr);
113 if (rv)
114 return rv;
117 rv = parse_str(hotmod_si, &ival, "interface type", &curr);
118 if (rv)
119 return rv;
122 rv = parse_str(hotmod_as, &ival, "address space", &curr);
123 if (rv)
124 return rv;
132 rv = kstrtoul(curr, 0, &h->addr);
133 if (rv) {
134 pr_warn("Invalid hotmod address '%s': %d\n", curr, rv);
135 return rv;
150 rv = check_hotmod_int_op(curr, o, "rsp", &h->regspacing);
151 if (rv < 0)
152 return rv;
153 else if (rv)
155 rv = check_hotmod_int_op(curr, o, "rsi", &h->regsize);
156 if (rv < 0)
157 return rv;
158 else if (rv)
160 rv = check_hotmod_int_op(curr, o, "rsh", &h->regshift);
161 if (rv < 0)
162 return rv;
163 else if (rv)
165 rv = check_hotmod_int_op(curr, o, "irq", &h->irq);
166 if (rv < 0)
167 return rv;
168 else if (rv)
170 rv = check_hotmod_int_op(curr, o, "ipmb", &h->slave_addr);
171 if (rv < 0)
172 return rv;
173 else if (rv)
189 int rv;
215 rv = parse_hotmod_str(curr, &op, &h);
216 if (rv)
238 rv = len;
241 return rv;