Home
last modified time | relevance | path

Searched refs:sysfs_path (Results 1 – 2 of 2) sorted by relevance

/system/core/vold/
Dswitch.c30 static int mmc_bootstrap_switch(char *sysfs_path);
61 static int mmc_bootstrap_switch(char *sysfs_path) in mmc_bootstrap_switch() argument
64 LOG_VOL("bootstrap_switch(%s):", sysfs_path); in mmc_bootstrap_switch()
78 sprintf(filename, "%s/name", sysfs_path); in mmc_bootstrap_switch()
81 sysfs_path, strerror(errno)); in mmc_bootstrap_switch()
99 sprintf(filename, "%s/state", sysfs_path); in mmc_bootstrap_switch()
102 sysfs_path, strerror(errno)); in mmc_bootstrap_switch()
Dmmc.c31 static int mmc_bootstrap_controller(char *sysfs_path);
32 static int mmc_bootstrap_card(char *sysfs_path);
69 static int mmc_bootstrap_controller(char *sysfs_path) in mmc_bootstrap_controller() argument
75 LOG_VOL("bootstrap_controller(%s):", sysfs_path); in mmc_bootstrap_controller()
77 if (!(d = opendir(sysfs_path))) { in mmc_bootstrap_controller()
78 LOG_ERROR("Unable to open '%s' (%s)", sysfs_path, strerror(errno)); in mmc_bootstrap_controller()
95 sprintf(tmp, "%s/%s", sysfs_path, de->d_name); in mmc_bootstrap_controller()
105 static int mmc_bootstrap_card(char *sysfs_path) in mmc_bootstrap_card() argument
117 LOG_VOL("bootstrap_card(%s):", sysfs_path); in mmc_bootstrap_card()
128 if (chdir(sysfs_path) < 0) { in mmc_bootstrap_card()
[all …]