Lines Matching refs:sec
9 int rtw_sec_get_free_cam(struct rtw_sec_desc *sec) in rtw_sec_get_free_cam() argument
15 if (sec->default_key_search) in rtw_sec_get_free_cam()
16 return find_next_zero_bit(sec->cam_map, RTW_MAX_SEC_CAM_NUM, in rtw_sec_get_free_cam()
19 return find_first_zero_bit(sec->cam_map, RTW_MAX_SEC_CAM_NUM); in rtw_sec_get_free_cam()
23 struct rtw_sec_desc *sec, in rtw_sec_write_cam() argument
28 struct rtw_cam_entry *cam = &sec->cam_table[hw_key_idx]; in rtw_sec_write_cam()
35 set_bit(hw_key_idx, sec->cam_map); in rtw_sec_write_cam()
83 struct rtw_sec_desc *sec, in rtw_sec_clear_cam() argument
86 struct rtw_cam_entry *cam = &sec->cam_table[hw_key_idx]; in rtw_sec_clear_cam()
91 clear_bit(hw_key_idx, sec->cam_map); in rtw_sec_clear_cam()
105 struct rtw_sec_desc *sec = &rtwdev->sec; in rtw_sec_cam_pg_backup() local
113 n = find_next_bit(sec->cam_map, RTW_MAX_SEC_CAM_NUM, offset); in rtw_sec_cam_pg_backup()
126 struct rtw_sec_desc *sec = &rtwdev->sec; in rtw_sec_enable_sec_engine() local
131 sec->default_key_search = true; in rtw_sec_enable_sec_engine()
140 if (sec->default_key_search) in rtw_sec_enable_sec_engine()