#include "bioscfg.h"
GET_INSTANCE_ID(password);
static int clear_passwords(const int instance)
{ … }
int hp_clear_all_credentials(void)
{ … }
int hp_get_password_instance_for_type(const char *name)
{ … }
static int validate_password_input(int instance_id, const char *buf)
{ … }
ATTRIBUTE_N_PROPERTY_SHOW(is_enabled, password);
static struct kobj_attribute password_is_password_set = …;
static int store_password_instance(struct kobject *kobj, const char *buf,
size_t count, bool is_current)
{ … }
static ssize_t current_password_store(struct kobject *kobj,
struct kobj_attribute *attr,
const char *buf, size_t count)
{ … }
static struct kobj_attribute password_current_password = …;
static ssize_t new_password_store(struct kobject *kobj,
struct kobj_attribute *attr,
const char *buf, size_t count)
{ … }
static struct kobj_attribute password_new_password = …;
ATTRIBUTE_N_PROPERTY_SHOW(min_password_length, password);
static struct kobj_attribute password_min_password_length = …;
ATTRIBUTE_N_PROPERTY_SHOW(max_password_length, password);
static struct kobj_attribute password_max_password_length = …;
static ssize_t role_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
{ … }
static struct kobj_attribute password_role = …;
static ssize_t mechanism_show(struct kobject *kobj, struct kobj_attribute *attr,
char *buf)
{ … }
static struct kobj_attribute password_mechanism = …;
ATTRIBUTE_VALUES_PROPERTY_SHOW(encodings, password, SEMICOLON_SEP);
static struct kobj_attribute password_encodings_val = …;
static struct attribute *password_attrs[] = …;
static const struct attribute_group password_attr_group = …;
int hp_alloc_password_data(void)
{ … }
static const acpi_object_type expected_password_types[] = …;
static int hp_populate_password_elements_from_package(union acpi_object *password_obj,
int password_obj_count,
int instance_id)
{ … }
int hp_populate_password_package_data(union acpi_object *password_obj, int instance_id,
struct kobject *attr_name_kobj)
{ … }
static int hp_populate_password_elements_from_buffer(u8 *buffer_ptr, u32 *buffer_size,
int instance_id)
{ … }
int hp_populate_password_buffer_data(u8 *buffer_ptr, u32 *buffer_size, int instance_id,
struct kobject *attr_name_kobj)
{ … }
void hp_exit_password_attributes(void)
{ … }