Lines Matching refs:rv

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