Lines Matching refs:len
63 efi_uintn_t len; in efi_deserialize_load_option() local
65 len = sizeof(u32); in efi_deserialize_load_option()
66 if (*size < len + 2 * sizeof(u16)) in efi_deserialize_load_option()
69 data += len; in efi_deserialize_load_option()
70 *size -= len; in efi_deserialize_load_option()
72 len = sizeof(u16); in efi_deserialize_load_option()
74 data += len; in efi_deserialize_load_option()
75 *size -= len; in efi_deserialize_load_option()
78 len = u16_strnlen(lo->label, *size / sizeof(u16) - 1); in efi_deserialize_load_option()
79 if (lo->label[len]) in efi_deserialize_load_option()
81 len = (len + 1) * sizeof(u16); in efi_deserialize_load_option()
82 if (*size < len) in efi_deserialize_load_option()
84 data += len; in efi_deserialize_load_option()
85 *size -= len; in efi_deserialize_load_option()
87 len = lo->file_path_length; in efi_deserialize_load_option()
88 if (*size < len) in efi_deserialize_load_option()
91 if (efi_dp_check_length(lo->file_path, len) < 0) in efi_deserialize_load_option()
93 data += len; in efi_deserialize_load_option()
94 *size -= len; in efi_deserialize_load_option()