Lines Matching refs:rv
107 int rv;
111 rv = parse_str(hotmod_ops, &ival, "operation", &curr);
112 if (rv)
113 return rv;
116 rv = parse_str(hotmod_si, &ival, "interface type", &curr);
117 if (rv)
118 return rv;
121 rv = parse_str(hotmod_as, &ival, "address space", &curr);
122 if (rv)
123 return rv;
131 rv = kstrtoul(curr, 0, &h->addr);
132 if (rv) {
133 pr_warn("Invalid hotmod address '%s': %d\n", curr, rv);
134 return rv;
149 rv = check_hotmod_int_op(curr, o, "rsp", &h->regspacing);
150 if (rv < 0)
151 return rv;
152 else if (rv)
154 rv = check_hotmod_int_op(curr, o, "rsi", &h->regsize);
155 if (rv < 0)
156 return rv;
157 else if (rv)
159 rv = check_hotmod_int_op(curr, o, "rsh", &h->regshift);
160 if (rv < 0)
161 return rv;
162 else if (rv)
164 rv = check_hotmod_int_op(curr, o, "irq", &h->irq);
165 if (rv < 0)
166 return rv;
167 else if (rv)
169 rv = check_hotmod_int_op(curr, o, "ipmb", &h->slave_addr);
170 if (rv < 0)
171 return rv;
172 else if (rv)
187 int rv;
206 rv = parse_hotmod_str(curr, &op, &h);
207 if (rv)
228 rv = strlen(val);
231 return rv;