Lines Matching refs:ret
185 int ret; in ubi_volume_notify() local
196 ret = ubi_update_fastmap(ubi); in ubi_volume_notify()
197 if (ret) in ubi_volume_notify()
198 ubi_msg(ubi, "Unable to write a new fastmap: %i", ret); in ubi_volume_notify()
220 int ret; in ubi_notify_all() local
240 ret = blocking_notifier_call_chain(&ubi_notifiers, ntype, in ubi_notify_all()
374 ssize_t ret; in dev_attribute_show() local
393 ret = sprintf(buf, "%d\n", ubi->leb_size); in dev_attribute_show()
395 ret = sprintf(buf, "%d\n", ubi->avail_pebs); in dev_attribute_show()
397 ret = sprintf(buf, "%d\n", ubi->good_peb_count); in dev_attribute_show()
399 ret = sprintf(buf, "%d\n", ubi->vol_count - UBI_INT_VOL_COUNT); in dev_attribute_show()
401 ret = sprintf(buf, "%d\n", ubi->max_ec); in dev_attribute_show()
403 ret = sprintf(buf, "%d\n", ubi->beb_rsvd_pebs); in dev_attribute_show()
405 ret = sprintf(buf, "%d\n", ubi->bad_peb_count); in dev_attribute_show()
407 ret = sprintf(buf, "%d\n", ubi->vtbl_slots); in dev_attribute_show()
409 ret = sprintf(buf, "%d\n", ubi->min_io_size); in dev_attribute_show()
411 ret = sprintf(buf, "%d\n", ubi->thread_enabled); in dev_attribute_show()
413 ret = sprintf(buf, "%d\n", ubi->mtd->index); in dev_attribute_show()
415 ret = -EINVAL; in dev_attribute_show()
418 return ret; in dev_attribute_show()