Lines Matching full:var
45 static void plpks_init_var(struct plpks_var *var, char *keyname) in plpks_init_var() argument
54 var->name = keyname; in plpks_init_var()
55 var->namelen = strlen(keyname); in plpks_init_var()
57 var->name = PLPKS_SED_MANGLED_LABEL; in plpks_init_var()
58 var->namelen = strlen(keyname); in plpks_init_var()
60 var->policy = PLPKS_WORLDREADABLE; in plpks_init_var()
61 var->os = PLPKS_VAR_COMMON; in plpks_init_var()
62 var->data = NULL; in plpks_init_var()
63 var->datalen = 0; in plpks_init_var()
64 var->component = PLPKS_SED_COMPONENT; in plpks_init_var()
72 struct plpks_var var; in sed_read_key() local
77 plpks_init_var(&var, keyname); in sed_read_key()
82 var.data = (u8 *)&data; in sed_read_key()
83 var.datalen = sizeof(data); in sed_read_key()
85 ret = plpks_read_os_var(&var); in sed_read_key()
89 len = min_t(u16, be32_to_cpu(data.key_len), var.datalen); in sed_read_key()
102 struct plpks_var var; in sed_write_key() local
106 plpks_init_var(&var, keyname); in sed_write_key()
111 var.datalen = sizeof(struct plpks_sed_object_data); in sed_write_key()
112 var.data = (u8 *)&data; in sed_write_key()
126 vname.namelen = var.namelen; in sed_write_key()
127 vname.name = var.name; in sed_write_key()
128 plpks_remove_var(var.component, var.os, vname); in sed_write_key()
130 return plpks_write_var(var); in sed_write_key()