Lines Matching refs:str_length

65 					const char *str, uint16_t str_length)  in pldm_bios_table_string_entry_encode()  argument
67 if (str_length == 0) { in pldm_bios_table_string_entry_encode()
72 size_t length = pldm_bios_table_string_entry_encode_length(str_length); in pldm_bios_table_string_entry_encode()
76 str_length) { in pldm_bios_table_string_entry_encode()
86 string_entry->string_length = htole16(str_length); in pldm_bios_table_string_entry_encode()
87 memcpy(string_entry->name, str, str_length); in pldm_bios_table_string_entry_encode()
746 uint16_t str_length = 0; in pldm_bios_table_attr_value_entry_string_decode_length() local
747 memcpy(&str_length, entry->value, sizeof(str_length)); in pldm_bios_table_attr_value_entry_string_decode_length()
748 return le16toh(str_length); in pldm_bios_table_attr_value_entry_string_decode_length()
765 uint8_t attr_type, uint16_t str_length, const char *str) in pldm_bios_table_attr_value_entry_encode_string() argument
770 if (str_length != 0 && str == NULL) { in pldm_bios_table_attr_value_entry_encode_string()
775 (sizeof(*table_entry) - 1 + sizeof(str_length))); in pldm_bios_table_attr_value_entry_encode_string()
779 if (entry_length - (sizeof(*table_entry) - 1 + sizeof(str_length)) < in pldm_bios_table_attr_value_entry_encode_string()
780 str_length) { in pldm_bios_table_attr_value_entry_encode_string()
783 memcpy(table_entry->value + sizeof(str_length), str, str_length); in pldm_bios_table_attr_value_entry_encode_string()
784 str_length = htole16(str_length); in pldm_bios_table_attr_value_entry_encode_string()
785 memcpy(table_entry->value, &str_length, sizeof(str_length)); in pldm_bios_table_attr_value_entry_encode_string()
791 uint16_t str_length = in attr_value_table_entry_length_string() local
794 str_length); in attr_value_table_entry_length_string()
1096 uint16_t str_length; member
1104 if (arg->str_length != in string_table_string_equal()
1108 if (memcmp(string_entry->name, arg->str, arg->str_length) != 0) { in string_table_string_equal()
1119 uint16_t str_length = strlen(str); in pldm_bios_table_string_find_by_string() local
1120 struct string_equal_arg arg = { str_length, str }; in pldm_bios_table_string_find_by_string()