Lines Matching defs:ret
80 int ret;
82 ret = regmap_read(l2->sys_regs, L2_CTL_REG, &data);
83 if (ret)
84 return ret;
106 int ret;
130 ret = regmap_update_bits(l2->sys_regs, L2_CTL_REG, mask, data);
131 if (ret)
132 return ret;
152 int ret;
158 ret = devm_add_action(dev, l2_ctl_clear_data, l2);
159 if (ret) {
161 return ERR_PTR(ret);
184 int ret = 0;
188 ret = l2_ctl_set_latency(l2, id, data);
189 if (ret)
193 return ret;
198 int ret;
200 ret = l2_ctl_of_parse_property(l2, L2_WS_STALL, "baikal,l2-ws-latency");
201 if (ret)
202 return ret;
204 ret = l2_ctl_of_parse_property(l2, L2_TAG_STALL, "baikal,l2-tag-latency");
205 if (ret)
206 return ret;
219 int ret;
221 ret = l2_ctl_get_latency(l2, devattr->id, &data);
222 if (ret)
223 return ret;
235 int ret;
240 ret = l2_ctl_set_latency(l2, devattr->id, data);
241 if (ret)
242 return ret;
268 int ret;
270 ret = device_add_groups(l2->dev, l2_ctl_sysfs_groups);
271 if (ret) {
273 return ret;
276 ret = devm_add_action_or_reset(l2->dev, l2_ctl_remove_sysfs, l2);
277 if (ret)
280 return ret;
286 int ret;
292 ret = l2_ctl_find_sys_regs(l2);
293 if (ret)
294 return ret;
296 ret = l2_ctl_of_parse(l2);
297 if (ret)
298 return ret;
300 ret = l2_ctl_init_sysfs(l2);
301 if (ret)
302 return ret;