Lines Matching defs:key_len
75 static int plpks_get_variable(const char *key, u64 key_len, u8 *data,
81 // We subtract 1 from key_len because we don't need to include the
83 var.name = kcalloc(key_len - 1, sizeof(wchar_t), GFP_KERNEL);
86 rc = utf8s_to_utf16s(key, key_len - 1, UTF16_LITTLE_ENDIAN, (wchar_t *)var.name,
87 key_len - 1);
115 static int plpks_set_variable(const char *key, u64 key_len, u8 *data,
127 // We subtract 1 from key_len because we don't need to include the
129 var.name = kcalloc(key_len - 1, sizeof(wchar_t), GFP_KERNEL);
132 rc = utf8s_to_utf16s(key, key_len - 1, UTF16_LITTLE_ENDIAN, (wchar_t *)var.name,
133 key_len - 1);