Lines Matching refs:basedir
663 static int _write_sysfs_int(const char *filename, const char *basedir, int val, in _write_sysfs_int() argument
669 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_int()
674 ret = sprintf(temp, "%s/%s", basedir, filename); in _write_sysfs_int()
722 val, basedir, filename); in _write_sysfs_int()
740 int write_sysfs_int(const char *filename, const char *basedir, int val) in write_sysfs_int() argument
742 return _write_sysfs_int(filename, basedir, val, 0); in write_sysfs_int()
754 int write_sysfs_int_and_verify(const char *filename, const char *basedir, in write_sysfs_int_and_verify() argument
757 return _write_sysfs_int(filename, basedir, val, 1); in write_sysfs_int_and_verify()
760 static int _write_sysfs_string(const char *filename, const char *basedir, in _write_sysfs_string() argument
765 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_string()
772 ret = sprintf(temp, "%s/%s", basedir, filename); in _write_sysfs_string()
821 basedir, filename); in _write_sysfs_string()
840 int write_sysfs_string_and_verify(const char *filename, const char *basedir, in write_sysfs_string_and_verify() argument
843 return _write_sysfs_string(filename, basedir, val, 1); in write_sysfs_string_and_verify()
854 int write_sysfs_string(const char *filename, const char *basedir, in write_sysfs_string() argument
857 return _write_sysfs_string(filename, basedir, val, 0); in write_sysfs_string()
868 int read_sysfs_posint(const char *filename, const char *basedir) in read_sysfs_posint() argument
872 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_posint()
879 ret = sprintf(temp, "%s/%s", basedir, filename); in read_sysfs_posint()
915 int read_sysfs_float(const char *filename, const char *basedir, float *val) in read_sysfs_float() argument
919 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_float()
926 ret = sprintf(temp, "%s/%s", basedir, filename); in read_sysfs_float()
962 int read_sysfs_string(const char *filename, const char *basedir, char *str) in read_sysfs_string() argument
966 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_string()
973 ret = sprintf(temp, "%s/%s", basedir, filename); in read_sysfs_string()