Lines Matching refs:sprintf

316 	ret = sprintf(buf, "%d\n", _regulator_get_voltage(rdev));  in regulator_uV_show()
328 return sprintf(buf, "%d\n", _regulator_get_current_limit(rdev)); in regulator_uA_show()
337 return sprintf(buf, "%s\n", rdev_get_name(rdev)); in name_show()
345 return sprintf(buf, "fast\n"); in regulator_print_opmode()
347 return sprintf(buf, "normal\n"); in regulator_print_opmode()
349 return sprintf(buf, "idle\n"); in regulator_print_opmode()
351 return sprintf(buf, "standby\n"); in regulator_print_opmode()
353 return sprintf(buf, "unknown\n"); in regulator_print_opmode()
368 return sprintf(buf, "enabled\n"); in regulator_print_state()
370 return sprintf(buf, "disabled\n"); in regulator_print_state()
372 return sprintf(buf, "unknown\n"); in regulator_print_state()
432 return sprintf(buf, "%s\n", label); in regulator_status_show()
442 return sprintf(buf, "constraint not defined\n"); in regulator_min_uA_show()
444 return sprintf(buf, "%d\n", rdev->constraints->min_uA); in regulator_min_uA_show()
454 return sprintf(buf, "constraint not defined\n"); in regulator_max_uA_show()
456 return sprintf(buf, "%d\n", rdev->constraints->max_uA); in regulator_max_uA_show()
466 return sprintf(buf, "constraint not defined\n"); in regulator_min_uV_show()
468 return sprintf(buf, "%d\n", rdev->constraints->min_uV); in regulator_min_uV_show()
478 return sprintf(buf, "constraint not defined\n"); in regulator_max_uV_show()
480 return sprintf(buf, "%d\n", rdev->constraints->max_uV); in regulator_max_uV_show()
495 return sprintf(buf, "%d\n", uA); in regulator_total_uA_show()
503 return sprintf(buf, "%d\n", rdev->use_count); in num_users_show()
514 return sprintf(buf, "voltage\n"); in type_show()
516 return sprintf(buf, "current\n"); in type_show()
518 return sprintf(buf, "unknown\n"); in type_show()
527 return sprintf(buf, "%d\n", rdev->constraints->state_mem.uV); in regulator_suspend_mem_uV_show()
537 return sprintf(buf, "%d\n", rdev->constraints->state_disk.uV); in regulator_suspend_disk_uV_show()
547 return sprintf(buf, "%d\n", rdev->constraints->state_standby.uV); in regulator_suspend_standby_uV_show()
635 return sprintf(buf, "%s\n", report); in regulator_bypass_show()
793 count += sprintf(buf + count, "%d mV ", in print_constraints()
796 count += sprintf(buf + count, "%d <--> %d mV ", in print_constraints()
805 count += sprintf(buf + count, "at %d mV ", ret / 1000); in print_constraints()
809 count += sprintf(buf, "%dmV offset ", in print_constraints()
814 count += sprintf(buf + count, "%d mA ", in print_constraints()
817 count += sprintf(buf + count, "%d <--> %d mA ", in print_constraints()
826 count += sprintf(buf + count, "at %d mA ", ret / 1000); in print_constraints()
830 count += sprintf(buf + count, "fast "); in print_constraints()
832 count += sprintf(buf + count, "normal "); in print_constraints()
834 count += sprintf(buf + count, "idle "); in print_constraints()
836 count += sprintf(buf + count, "standby"); in print_constraints()
839 sprintf(buf, "no parameters"); in print_constraints()