Lines Matching refs:action
58 static int mlxbf_bootctl_reset_action_to_val(const char *action) in mlxbf_bootctl_reset_action_to_val() argument
63 if (sysfs_streq(boot_names[i].name, action)) in mlxbf_bootctl_reset_action_to_val()
70 static const char *mlxbf_bootctl_action_to_string(int action) in mlxbf_bootctl_action_to_string() argument
75 if (boot_names[i].value == action) in mlxbf_bootctl_action_to_string()
113 int action; in mlxbf_bootctl_show() local
115 action = mlxbf_bootctl_smc(smc_op, 0); in mlxbf_bootctl_show()
116 if (action < 0) in mlxbf_bootctl_show()
117 return action; in mlxbf_bootctl_show()
119 return sprintf(buf, "%s\n", mlxbf_bootctl_action_to_string(action)); in mlxbf_bootctl_show()
124 int ret, action; in mlxbf_bootctl_store() local
126 action = mlxbf_bootctl_reset_action_to_val(buf); in mlxbf_bootctl_store()
127 if (action < 0) in mlxbf_bootctl_store()
128 return action; in mlxbf_bootctl_store()
130 ret = mlxbf_bootctl_smc(smc_op, action); in mlxbf_bootctl_store()