Lines Matching refs:variable

35                 const char *variable,  in efi_get_variable()  argument
47 assert(variable); in efi_get_variable()
49 const char *p = strjoina("/sys/firmware/efi/efivars/", variable); in efi_get_variable()
127 variable, FORMAT_TIMESPAN(end - begin, 1)); in efi_get_variable()
145 int efi_get_variable_string(const char *variable, char **ret) { in efi_get_variable_string() argument
151 r = efi_get_variable(variable, NULL, &s, &ss); in efi_get_variable_string()
163 static int efi_verify_variable(const char *variable, uint32_t attr, const void *value, size_t size)… in efi_verify_variable() argument
169 assert(variable); in efi_verify_variable()
172 r = efi_get_variable(variable, &a, &buf, &n); in efi_verify_variable()
179 int efi_set_variable(const char *variable, const void *value, size_t size) { in efi_set_variable() argument
190 assert(variable); in efi_set_variable()
193 const char *p = strjoina("/sys/firmware/efi/efivars/", variable); in efi_set_variable()
196 if (size > 0 && efi_verify_variable(variable, attr, value, size) > 0) { in efi_set_variable()
197 log_debug("Variable '%s' is already in wanted state, skipping write.", variable); in efi_set_variable()
265 int efi_set_variable_string(const char *variable, const char *value) { in efi_set_variable_string() argument
272 return efi_set_variable(variable, u16, (char16_strlen(u16) + 1) * sizeof(char16_t)); in efi_set_variable_string()
291 static int read_flag(const char *variable) { in read_flag() argument
300 r = efi_get_variable(variable, NULL, &v, &s); in read_flag()