Lines Matching refs:key_count
2799 u16 key_count, expected_len; in load_link_keys() local
2809 key_count = __le16_to_cpu(cp->key_count); in load_link_keys()
2810 if (key_count > max_key_count) { in load_link_keys()
2812 key_count); in load_link_keys()
2817 expected_len = struct_size(cp, keys, key_count); in load_link_keys()
2830 key_count); in load_link_keys()
2845 for (i = 0; i < key_count; i++) { in load_link_keys()
4159 u16 key_count, expected_len; in set_blocked_keys() local
4164 key_count = __le16_to_cpu(keys->key_count); in set_blocked_keys()
4165 if (key_count > max_key_count) { in set_blocked_keys()
4166 bt_dev_err(hdev, "too big key_count value %u", key_count); in set_blocked_keys()
4171 expected_len = struct_size(keys, keys, key_count); in set_blocked_keys()
4183 for (i = 0; i < key_count; ++i) { in set_blocked_keys()
7141 u16 key_count, expected_len; in load_long_term_keys() local
7150 key_count = __le16_to_cpu(cp->key_count); in load_long_term_keys()
7151 if (key_count > max_key_count) { in load_long_term_keys()
7153 key_count); in load_long_term_keys()
7158 expected_len = struct_size(cp, keys, key_count); in load_long_term_keys()
7166 bt_dev_dbg(hdev, "key_count %u", key_count); in load_long_term_keys()
7172 for (i = 0; i < key_count; i++) { in load_long_term_keys()