Lines Matching refs:rtlpriv

33 	struct rtl_priv *rtlpriv = rtl_priv(hw);  in rtl_cam_reset_sec_info()  local
35 rtlpriv->sec.use_defaultkey = false; in rtl_cam_reset_sec_info()
36 rtlpriv->sec.pairwise_enc_algorithm = NO_ENCRYPTION; in rtl_cam_reset_sec_info()
37 rtlpriv->sec.group_enc_algorithm = NO_ENCRYPTION; in rtl_cam_reset_sec_info()
38 memset(rtlpriv->sec.key_buf, 0, KEY_BUF_SIZE * MAX_KEY_LEN); in rtl_cam_reset_sec_info()
39 memset(rtlpriv->sec.key_len, 0, KEY_BUF_SIZE); in rtl_cam_reset_sec_info()
40 rtlpriv->sec.pairwise_key = NULL; in rtl_cam_reset_sec_info()
46 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_cam_program_entry() local
52 RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, in rtl_cam_program_entry()
66 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[WCAMI], in rtl_cam_program_entry()
68 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[RWCAM], in rtl_cam_program_entry()
71 RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, in rtl_cam_program_entry()
74 rtlpriv->cfg->maps[WCAMI], target_content)); in rtl_cam_program_entry()
75 RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, in rtl_cam_program_entry()
77 RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, in rtl_cam_program_entry()
80 rtlpriv->cfg->maps[RWCAM], target_command)); in rtl_cam_program_entry()
89 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[WCAMI], in rtl_cam_program_entry()
91 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[RWCAM], in rtl_cam_program_entry()
94 RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, in rtl_cam_program_entry()
97 RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, in rtl_cam_program_entry()
110 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[WCAMI], in rtl_cam_program_entry()
112 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[RWCAM], in rtl_cam_program_entry()
116 RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, in rtl_cam_program_entry()
119 RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, in rtl_cam_program_entry()
125 RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, in rtl_cam_program_entry()
134 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_cam_add_one_entry() local
136 RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, in rtl_cam_add_one_entry()
143 RT_TRACE(rtlpriv, COMP_ERR, DBG_WARNING, in rtl_cam_add_one_entry()
157 RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, ("<===\n")); in rtl_cam_add_one_entry()
168 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_cam_delete_one_entry() local
170 RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, ("key_idx:%d\n", ul_key_id)); in rtl_cam_delete_one_entry()
175 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[WCAMI], 0); in rtl_cam_delete_one_entry()
176 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[RWCAM], ul_command); in rtl_cam_delete_one_entry()
178 RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, in rtl_cam_delete_one_entry()
180 RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, in rtl_cam_delete_one_entry()
191 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_cam_reset_all_entry() local
194 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[RWCAM], ul_command); in rtl_cam_reset_all_entry()
200 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_cam_mark_invalid() local
204 u32 ul_enc_algo = rtlpriv->cfg->maps[SEC_CAM_AES]; in rtl_cam_mark_invalid()
206 switch (rtlpriv->sec.pairwise_enc_algorithm) { in rtl_cam_mark_invalid()
208 ul_enc_algo = rtlpriv->cfg->maps[SEC_CAM_WEP40]; in rtl_cam_mark_invalid()
211 ul_enc_algo = rtlpriv->cfg->maps[SEC_CAM_WEP104]; in rtl_cam_mark_invalid()
214 ul_enc_algo = rtlpriv->cfg->maps[SEC_CAM_TKIP]; in rtl_cam_mark_invalid()
217 ul_enc_algo = rtlpriv->cfg->maps[SEC_CAM_AES]; in rtl_cam_mark_invalid()
220 ul_enc_algo = rtlpriv->cfg->maps[SEC_CAM_AES]; in rtl_cam_mark_invalid()
229 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[WCAMI], ul_content); in rtl_cam_mark_invalid()
230 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[RWCAM], ul_command); in rtl_cam_mark_invalid()
232 RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, in rtl_cam_mark_invalid()
234 RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, in rtl_cam_mark_invalid()
241 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_cam_empty_entry() local
245 u32 ul_encalgo = rtlpriv->cfg->maps[SEC_CAM_AES]; in rtl_cam_empty_entry()
248 switch (rtlpriv->sec.pairwise_enc_algorithm) { in rtl_cam_empty_entry()
250 ul_encalgo = rtlpriv->cfg->maps[SEC_CAM_WEP40]; in rtl_cam_empty_entry()
253 ul_encalgo = rtlpriv->cfg->maps[SEC_CAM_WEP104]; in rtl_cam_empty_entry()
256 ul_encalgo = rtlpriv->cfg->maps[SEC_CAM_TKIP]; in rtl_cam_empty_entry()
259 ul_encalgo = rtlpriv->cfg->maps[SEC_CAM_AES]; in rtl_cam_empty_entry()
262 ul_encalgo = rtlpriv->cfg->maps[SEC_CAM_AES]; in rtl_cam_empty_entry()
279 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[WCAMI], ul_content); in rtl_cam_empty_entry()
280 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[RWCAM], ul_command); in rtl_cam_empty_entry()
282 RT_TRACE(rtlpriv, COMP_SEC, DBG_LOUD, in rtl_cam_empty_entry()
285 RT_TRACE(rtlpriv, COMP_SEC, DBG_LOUD, in rtl_cam_empty_entry()