Lines Matching refs:key_count
2337 u16 key_count, expected_len; in load_link_keys() local
2347 key_count = __le16_to_cpu(cp->key_count); in load_link_keys()
2348 if (key_count > max_key_count) { in load_link_keys()
2350 key_count); in load_link_keys()
2355 expected_len = struct_size(cp, keys, key_count); in load_link_keys()
2368 key_count); in load_link_keys()
2370 for (i = 0; i < key_count; i++) { in load_link_keys()
2392 for (i = 0; i < key_count; i++) { in load_link_keys()
3613 u16 key_count, expected_len; in set_blocked_keys() local
3618 key_count = __le16_to_cpu(keys->key_count); in set_blocked_keys()
3619 if (key_count > max_key_count) { in set_blocked_keys()
3620 bt_dev_err(hdev, "too big key_count value %u", key_count); in set_blocked_keys()
3625 expected_len = struct_size(keys, keys, key_count); in set_blocked_keys()
3637 for (i = 0; i < keys->key_count; ++i) { in set_blocked_keys()
5960 u16 key_count, expected_len; in load_long_term_keys() local
5969 key_count = __le16_to_cpu(cp->key_count); in load_long_term_keys()
5970 if (key_count > max_key_count) { in load_long_term_keys()
5972 key_count); in load_long_term_keys()
5977 expected_len = struct_size(cp, keys, key_count); in load_long_term_keys()
5985 bt_dev_dbg(hdev, "key_count %u", key_count); in load_long_term_keys()
5987 for (i = 0; i < key_count; i++) { in load_long_term_keys()
6000 for (i = 0; i < key_count; i++) { in load_long_term_keys()