Lines Matching refs:basedir

659 static int _write_sysfs_int(const char *filename, const char *basedir, int val,  in _write_sysfs_int()  argument
665 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_int()
670 ret = sprintf(temp, "%s/%s", basedir, filename); in _write_sysfs_int()
718 val, basedir, filename); in _write_sysfs_int()
736 int write_sysfs_int(const char *filename, const char *basedir, int val) in write_sysfs_int() argument
738 return _write_sysfs_int(filename, basedir, val, 0); in write_sysfs_int()
750 int write_sysfs_int_and_verify(const char *filename, const char *basedir, in write_sysfs_int_and_verify() argument
753 return _write_sysfs_int(filename, basedir, val, 1); in write_sysfs_int_and_verify()
756 static int _write_sysfs_string(const char *filename, const char *basedir, in _write_sysfs_string() argument
761 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_string()
768 ret = sprintf(temp, "%s/%s", basedir, filename); in _write_sysfs_string()
817 basedir, filename); in _write_sysfs_string()
836 int write_sysfs_string_and_verify(const char *filename, const char *basedir, in write_sysfs_string_and_verify() argument
839 return _write_sysfs_string(filename, basedir, val, 1); in write_sysfs_string_and_verify()
850 int write_sysfs_string(const char *filename, const char *basedir, in write_sysfs_string() argument
853 return _write_sysfs_string(filename, basedir, val, 0); in write_sysfs_string()
864 int read_sysfs_posint(const char *filename, const char *basedir) in read_sysfs_posint() argument
868 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_posint()
875 ret = sprintf(temp, "%s/%s", basedir, filename); in read_sysfs_posint()
911 int read_sysfs_float(const char *filename, const char *basedir, float *val) in read_sysfs_float() argument
915 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_float()
922 ret = sprintf(temp, "%s/%s", basedir, filename); in read_sysfs_float()
958 int read_sysfs_string(const char *filename, const char *basedir, char *str) in read_sysfs_string() argument
962 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_string()
969 ret = sprintf(temp, "%s/%s", basedir, filename); in read_sysfs_string()