• Home
  • Raw
  • Download

Lines Matching refs:rc

213 	int rc = -EIO;  in sysfs_int_show()  local
220 rc = scnprintf(buf, in sysfs_int_show()
227 rc = scnprintf(buf, in sysfs_int_show()
234 rc = scnprintf(buf, in sysfs_int_show()
241 rc = scnprintf(buf, in sysfs_int_show()
248 rc = scnprintf(buf, in sysfs_int_show()
259 rc = scnprintf(buf, in sysfs_int_show()
265 rc = scnprintf(buf, in sysfs_int_show()
277 return rc; in sysfs_int_show()
283 int rc = 0; in sysfs_int_store() local
290 rc = kstrtoint(buf, 0, &op_timeout_secs); in sysfs_int_store()
293 rc = kstrtoint(buf, 0, &slot_timeout_secs); in sysfs_int_store()
296 rc = kstrtoint(buf, 0, &orangefs_cache_timeout_msecs); in sysfs_int_store()
299 rc = kstrtoint(buf, 0, &orangefs_dcache_timeout_msecs); in sysfs_int_store()
302 rc = kstrtoint(buf, 0, &orangefs_getattr_timeout_msecs); in sysfs_int_store()
309 if (rc) in sysfs_int_store()
310 rc = -EINVAL; in sysfs_int_store()
312 rc = count; in sysfs_int_store()
314 return rc; in sysfs_int_store()
324 int rc = 0; in sysfs_service_op_show() local
342 rc = is_daemon_in_service(); in sysfs_service_op_show()
343 if (rc) { in sysfs_service_op_show()
360 rc = -EINVAL; in sysfs_service_op_show()
479 rc = -EINVAL; in sysfs_service_op_show()
493 rc = service_operation(new_op, ser_op_type, ORANGEFS_OP_INTERRUPTIBLE); in sysfs_service_op_show()
496 if (!rc) { in sysfs_service_op_show()
500 rc = scnprintf(buf, PAGE_SIZE, "%d %d\n", in sysfs_service_op_show()
506 rc = scnprintf(buf, PAGE_SIZE, "%d\n", in sysfs_service_op_show()
510 rc = scnprintf( in sysfs_service_op_show()
520 return rc; in sysfs_service_op_show()
540 int rc = 0; in sysfs_service_op_store() local
551 rc = is_daemon_in_service(); in sysfs_service_op_store()
552 if (rc) { in sysfs_service_op_store()
565 rc = kstrtoint(buf, 0, &val); in sysfs_service_op_store()
566 if (rc) in sysfs_service_op_store()
579 rc = -EINVAL; in sysfs_service_op_store()
588 rc = 0; in sysfs_service_op_store()
597 rc = 0; in sysfs_service_op_store()
606 rc = 0; in sysfs_service_op_store()
615 rc = 0; in sysfs_service_op_store()
624 rc = 0; in sysfs_service_op_store()
630 rc = sscanf(buf, "%d %d", &val1, &val2); in sysfs_service_op_store()
631 if (rc < 2) { in sysfs_service_op_store()
632 rc = 0; in sysfs_service_op_store()
639 rc = 0; in sysfs_service_op_store()
651 rc = 0; in sysfs_service_op_store()
662 rc = 0; in sysfs_service_op_store()
670 rc = 0; in sysfs_service_op_store()
679 rc = 0; in sysfs_service_op_store()
687 rc = 0; in sysfs_service_op_store()
698 rc = 0; in sysfs_service_op_store()
706 rc = 0; in sysfs_service_op_store()
715 rc = 0; in sysfs_service_op_store()
723 rc = 0; in sysfs_service_op_store()
734 rc = 0; in sysfs_service_op_store()
742 rc = 0; in sysfs_service_op_store()
751 rc = 0; in sysfs_service_op_store()
759 rc = 0; in sysfs_service_op_store()
770 rc = 0; in sysfs_service_op_store()
778 rc = 0; in sysfs_service_op_store()
787 rc = 0; in sysfs_service_op_store()
795 rc = 0; in sysfs_service_op_store()
803 rc = -EINVAL; in sysfs_service_op_store()
814 rc = service_operation(new_op, "orangefs_param", ORANGEFS_OP_INTERRUPTIBLE); in sysfs_service_op_store()
816 if (rc < 0) { in sysfs_service_op_store()
818 rc); in sysfs_service_op_store()
819 rc = 0; in sysfs_service_op_store()
821 rc = count; in sysfs_service_op_store()
827 if (rc == -ENOMEM || rc == 0) in sysfs_service_op_store()
828 rc = -EINVAL; in sysfs_service_op_store()
830 return rc; in sysfs_service_op_store()
1114 int rc = -EINVAL; in orangefs_sysfs_init() local
1123 rc = kobject_init_and_add(orangefs_obj, in orangefs_sysfs_init()
1128 if (rc) in orangefs_sysfs_init()
1136 rc = -EINVAL; in orangefs_sysfs_init()
1140 rc = kobject_init_and_add(acache_orangefs_obj, in orangefs_sysfs_init()
1145 if (rc) in orangefs_sysfs_init()
1154 rc = -EINVAL; in orangefs_sysfs_init()
1158 rc = kobject_init_and_add(capcache_orangefs_obj, in orangefs_sysfs_init()
1162 if (rc) in orangefs_sysfs_init()
1171 rc = -EINVAL; in orangefs_sysfs_init()
1175 rc = kobject_init_and_add(ccache_orangefs_obj, in orangefs_sysfs_init()
1179 if (rc) in orangefs_sysfs_init()
1187 rc = -EINVAL; in orangefs_sysfs_init()
1191 rc = kobject_init_and_add(ncache_orangefs_obj, in orangefs_sysfs_init()
1196 if (rc) in orangefs_sysfs_init()
1204 rc = -EINVAL; in orangefs_sysfs_init()
1208 rc = kobject_init_and_add(pc_orangefs_obj, in orangefs_sysfs_init()
1213 if (rc) in orangefs_sysfs_init()
1221 rc = -EINVAL; in orangefs_sysfs_init()
1225 rc = kobject_init_and_add(stats_orangefs_obj, in orangefs_sysfs_init()
1230 if (rc) in orangefs_sysfs_init()
1251 return rc; in orangefs_sysfs_init()