| /linux/drivers/staging/r8188eu/core/ |
| A D | rtw_mlme_ext.c | 3208 pframe += 8; in issue_probersp_p2p() 3213 pframe += 2; in issue_probersp_p2p() 3222 pframe += 2; in issue_probersp_p2p() 4455 pframe += 8; in issue_beacon() 4462 pframe += 2; in issue_beacon() 4469 pframe += 2; in issue_beacon() 4607 pframe += 8; in issue_probersp() 4614 pframe += 2; in issue_probersp() 5106 pframe += 2; in issue_assocreq() 5113 pframe += 2; in issue_assocreq() [all …]
|
| A D | rtw_security.c | 45 iv = pframe + pattrib->hdrlen; in rtw_wep_encrypt() 65 pframe += pxmitpriv->frag_len; in rtw_wep_encrypt() 66 pframe = (u8 *)RND4((size_t)(pframe)); in rtw_wep_encrypt() 84 pframe = precvframe->rx_data; in rtw_wep_decrypt() 88 iv = pframe + prxattrib->hdrlen; in rtw_wep_decrypt() 507 pframe = (u8 *)RND4((size_t)(pframe)); in rtw_tkip_encrypt() 539 pframe = precvframe->rx_data; in rtw_tkip_decrypt() 1004 pn_vector[0] = pframe[hdrlen]; in aes_cipher() 1137 pframe = (u8 *)RND4((size_t)(pframe)); in rtw_aes_encrypt() 1149 u8 *pframe, uint plen) in aes_decipher() argument [all …]
|
| A D | rtw_p2p.c | 156 pframe = rtw_set_fixed_ie(pframe, 1, &category, &pattrib->pktlen); in issue_group_disc_req() 158 pframe = rtw_set_fixed_ie(pframe, 1, &oui_subtype, &pattrib->pktlen); in issue_group_disc_req() 159 pframe = rtw_set_fixed_ie(pframe, 1, &dialogToken, &pattrib->pktlen); in issue_group_disc_req() 215 pframe = rtw_set_fixed_ie(pframe, 1, &category, &pattrib->pktlen); in issue_p2p_devdisc_resp() 216 pframe = rtw_set_fixed_ie(pframe, 1, &action, &pattrib->pktlen); in issue_p2p_devdisc_resp() 218 pframe = rtw_set_fixed_ie(pframe, 1, &oui_subtype, &pattrib->pktlen); in issue_p2p_devdisc_resp() 219 pframe = rtw_set_fixed_ie(pframe, 1, &dialogToken, &pattrib->pktlen); in issue_p2p_devdisc_resp() 284 pframe = rtw_set_fixed_ie(pframe, 1, &category, &pattrib->pktlen); in issue_p2p_provision_resp() 285 pframe = rtw_set_fixed_ie(pframe, 1, &action, &pattrib->pktlen); in issue_p2p_provision_resp() 287 pframe = rtw_set_fixed_ie(pframe, 1, &oui_subtype, &pattrib->pktlen); in issue_p2p_provision_resp() [all …]
|
| A D | rtw_xmit.c | 589 u8 *pframe, *payload, mic[8]; in xmitframe_addmic() local 628 if (pframe[1] & 1) { /* ToDS == 1 */ in xmitframe_addmic() 647 payload = pframe; in xmitframe_addmic() 880 u8 *pframe, *mem_start; in rtw_xmitframe_coalesce() local 925 pframe = mem_start; in rtw_xmitframe_coalesce() 929 pframe += pattrib->hdrlen; in rtw_xmitframe_coalesce() 957 pframe += pattrib->iv_len; in rtw_xmitframe_coalesce() 964 pframe += llc_sz; in rtw_xmitframe_coalesce() 979 pframe += mem_sz; in rtw_xmitframe_coalesce() 983 pframe += pattrib->icv_len; in rtw_xmitframe_coalesce() [all …]
|
| A D | rtw_wlan_util.c | 845 int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len) in rtw_check_bcn_info() argument 858 u8 *pbssid = GetAddr3Ptr(pframe); in rtw_check_bcn_info() 886 subtype = GetFrameSubType(pframe) >> 4; in rtw_check_bcn_info() 895 memcpy(bssid->IEs, (pframe + sizeof(struct rtw_ieee80211_hdr_3addr)), bssid->IELength); in rtw_check_bcn_info() 1035 void update_beacon_info(struct adapter *padapter, u8 *pframe, uint pkt_len, struct sta_info *psta) in update_beacon_info() argument 1044 pIE = (struct ndis_802_11_var_ie *)(pframe + (_BEACON_IE_OFFSET_ + WLAN_HDR_A3_LEN) + i); in update_beacon_info() 1255 unsigned char check_assoc_AP(u8 *pframe, uint len) in check_assoc_AP() argument 1265 pIE = (struct ndis_802_11_var_ie *)(pframe + i); in check_assoc_AP() 1498 void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len) in update_TSF() argument 1503 pIE = pframe + sizeof(struct rtw_ieee80211_hdr_3addr); in update_TSF()
|
| A D | rtw_recv.c | 259 u8 *pframe, *payload, *pframemic; in recvframe_chkmic() local 286 pframe = precvframe->rx_data; in recvframe_chkmic() 287 payload = pframe + prxattrib->hdrlen + prxattrib->iv_len; in recvframe_chkmic() 289 rtw_seccalctkipmic(mickey, pframe, payload, datalen, &miccode[0], in recvframe_chkmic() 819 u8 *pframe = precv_frame->rx_data; in validate_recv_ctrl_frame() local 822 if (GetFrameType(pframe) != WIFI_CTRL_TYPE) in validate_recv_ctrl_frame() 826 if (memcmp(GetAddr1Ptr(pframe), myid(&padapter->eeprompriv), ETH_ALEN)) in validate_recv_ctrl_frame() 830 if (GetFrameSubType(pframe) == WIFI_PSPOLL) { in validate_recv_ctrl_frame() 835 aid = GetAid(pframe); in validate_recv_ctrl_frame() 836 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in validate_recv_ctrl_frame()
|
| /linux/drivers/staging/rtl8723bs/core/ |
| A D | rtw_mlme_ext.c | 2013 u8 *pframe; in update_mgntframe_attrib_addr() local 2206 pframe += 8; in issue_beacon() 2213 pframe += 2; in issue_beacon() 2220 pframe += 2; in issue_beacon() 2407 pframe += 8; in issue_probersp() 2414 pframe += 2; in issue_probersp() 2421 pframe += 2; in issue_probersp() 2906 pframe += 2; in issue_assocreq() 2913 pframe += 2; in issue_assocreq() 3389 u8 *pframe; in issue_action_SA_Query() local [all …]
|
| A D | rtw_security.c | 65 iv = pframe+pattrib->hdrlen; in rtw_wep_encrypt() 87 pframe += pxmitpriv->frag_len; in rtw_wep_encrypt() 88 pframe = (u8 *)round_up((SIZE_PTR)(pframe), 4); in rtw_wep_encrypt() 110 iv = pframe+prxattrib->hdrlen; in rtw_wep_decrypt() 524 pframe = (u8 *)round_up((SIZE_PTR)(pframe), 4); in rtw_tkip_encrypt() 866 u8 *pframe, uint plen) in aes_cipher() argument 930 pframe, /* message, */ in aes_cipher() 1069 pframe = (u8 *)round_up((SIZE_PTR)(pframe), 4); in rtw_aes_encrypt() 1077 u8 *pframe, uint plen) in aes_decipher() argument 1152 qc_exists, pframe, in aes_decipher() [all …]
|
| A D | rtw_xmit.c | 813 payload = pframe; in xmitframe_addmic() 1032 u8 *pframe, *mem_start; in rtw_xmitframe_coalesce() local 1068 pframe = mem_start; in rtw_xmitframe_coalesce() 1072 pframe += pattrib->hdrlen; in rtw_xmitframe_coalesce() 1079 pframe += pattrib->iv_len; in rtw_xmitframe_coalesce() 1086 pframe += llc_sz; in rtw_xmitframe_coalesce() 1100 pframe += mem_sz; in rtw_xmitframe_coalesce() 1120 addr = (SIZE_PTR)(pframe); in rtw_xmitframe_coalesce() 1191 pframe += pattrib->pktlen; in rtw_mgmt_xmitframe_coalesce() 1201 pframe = rtw_set_ie(pframe, WLAN_EID_MMIE, 16, in rtw_mgmt_xmitframe_coalesce() [all …]
|
| A D | rtw_wlan_util.c | 1150 int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len) in rtw_check_bcn_info() argument 1163 u8 *pbssid = GetAddr3Ptr(pframe); in rtw_check_bcn_info() 1192 subtype = GetFrameSubType(pframe) >> 4; in rtw_check_bcn_info() 1201 memcpy(bssid->ies, (pframe + sizeof(struct ieee80211_hdr_3addr)), bssid->ie_length); in rtw_check_bcn_info() 1339 pIE = (struct ndis_80211_var_ie *)(pframe + (_BEACON_IE_OFFSET_ + WLAN_HDR_A3_LEN) + i); in update_beacon_info() 1475 unsigned char check_assoc_AP(u8 *pframe, uint len) in check_assoc_AP() argument 1481 pIE = (struct ndis_80211_var_ie *)(pframe + i); in check_assoc_AP() 1691 void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len) in update_TSF() argument 1696 pIE = pframe + sizeof(struct ieee80211_hdr_3addr); in update_TSF() 1711 void adaptive_early_32k(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len) in adaptive_early_32k() argument [all …]
|
| A D | rtw_recv.c | 314 u8 *pframe, *payload, *pframemic; in recvframe_chkmic() local 346 pframe = precvframe->u.hdr.rx_data; in recvframe_chkmic() 347 payload = pframe+prxattrib->hdrlen+prxattrib->iv_len; in recvframe_chkmic() 349 …rtw_seccalctkipmic(mickey, pframe, payload, datalen, &miccode[0], (unsigned char)prxattrib->priori… in recvframe_chkmic() 902 u8 *pframe = precv_frame->u.hdr.rx_data; in validate_recv_ctrl_frame() local 906 if (GetFrameType(pframe) != WIFI_CTRL_TYPE) in validate_recv_ctrl_frame() 910 if (memcmp(GetAddr1Ptr(pframe), myid(&padapter->eeprompriv), ETH_ALEN)) in validate_recv_ctrl_frame() 913 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in validate_recv_ctrl_frame() 921 if (GetFrameSubType(pframe) == WIFI_PSPOLL) { in validate_recv_ctrl_frame() 925 aid = GetAid(pframe); in validate_recv_ctrl_frame()
|
| /linux/drivers/staging/rtl8712/ |
| A D | rtl871x_security.c | 172 iv = pframe + pattrib->hdrlen; in r8712_wep_encrypt() 201 pframe += pxmitpriv->frag_len; in r8712_wep_encrypt() 202 pframe = (u8 *)RND4((addr_t)(pframe)); in r8712_wep_encrypt() 628 pframe = (u8 *)RND4((addr_t)(pframe)); in r8712_tkip_encrypt() 1015 u8 *pframe, uint plen) in aes_cipher() argument 1064 pn_vector[0] = pframe[hdrlen]; in aes_cipher() 1141 u8 *pframe, *prwskey; in r8712_aes_encrypt() local 1168 pframe, length); in r8712_aes_encrypt() 1175 pframe, length); in r8712_aes_encrypt() 1177 pframe = (u8 *)RND4((addr_t)(pframe)); in r8712_aes_encrypt() [all …]
|
| A D | wifi.h | 47 static inline unsigned char get_tofr_ds(unsigned char *pframe) in get_tofr_ds() argument 49 return ((GetToDs(pframe) << 1) | GetFrDs(pframe)); in get_tofr_ds() 159 static inline unsigned char *get_hdr_bssid(unsigned char *pframe) in get_hdr_bssid() argument 162 unsigned int to_fr_ds = (GetToDs(pframe) << 1) | GetFrDs(pframe); in get_hdr_bssid() 166 sa = GetAddr3Ptr(pframe); in get_hdr_bssid() 169 sa = GetAddr2Ptr(pframe); in get_hdr_bssid() 172 sa = GetAddr1Ptr(pframe); in get_hdr_bssid()
|
| A D | rtl871x_xmit.c | 391 &pframe[24], 6); in xmitframe_addmic() 394 &pframe[10], 6); in xmitframe_addmic() 400 &pframe[16], 6); in xmitframe_addmic() 403 &pframe[10], 6); in xmitframe_addmic() 408 payload = pframe; in xmitframe_addmic() 619 pframe = mem_start; in r8712_xmitframe_coalesce() 621 pframe += pattrib->hdrlen; in r8712_xmitframe_coalesce() 652 pframe += pattrib->iv_len; in r8712_xmitframe_coalesce() 657 pframe += llc_sz; in r8712_xmitframe_coalesce() 668 pframe += mem_sz; in r8712_xmitframe_coalesce() [all …]
|
| A D | rtl871x_recv.c | 140 u8 *pframe, *payload, *pframemic; in r8712_recvframe_chkmic() local 164 pframe = precvframe->u.hdr.rx_data; in r8712_recvframe_chkmic() 165 payload = pframe + prxattrib->hdrlen + in r8712_recvframe_chkmic() 167 seccalctkipmic(mickey, pframe, payload, datalen, in r8712_recvframe_chkmic()
|
| /linux/drivers/staging/rtl8723bs/include/ |
| A D | wifi.h | 102 #define get_tofr_ds(pframe) ((GetToDs(pframe) << 1) | GetFrDs(pframe)) argument 232 ra = GetAddr1Ptr(pframe); in rtl8723bs_get_ra() 238 ta = GetAddr2Ptr(pframe); in get_ta() 245 unsigned int to_fr_ds = (GetToDs(pframe) << 1) | GetFrDs(pframe); in get_da() 249 da = GetAddr1Ptr(pframe); in get_da() 252 da = GetAddr1Ptr(pframe); in get_da() 255 da = GetAddr3Ptr(pframe); in get_da() 258 da = GetAddr3Ptr(pframe); in get_da() 269 unsigned int to_fr_ds = (GetToDs(pframe) << 1) | GetFrDs(pframe); in get_sa() 273 sa = GetAddr2Ptr(pframe); in get_sa() [all …]
|
| A D | rtw_mlme_ext.h | 530 unsigned char check_assoc_AP(u8 *pframe, uint len); 543 void update_beacon_info(struct adapter *padapter, u8 *pframe, uint len, struct sta_info *psta); 544 int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len); 659 extern void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len); 661 extern void adaptive_early_32k(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len);
|
| /linux/drivers/staging/r8188eu/hal/ |
| A D | rtl8188e_cmd.c | 231 SetFrameSubType(pframe, WIFI_BEACON); in ConstructBeacon() 237 pframe += 8; in ConstructBeacon() 243 pframe += 2; in ConstructBeacon() 249 pframe += 2; in ConstructBeacon() 262 …pframe = rtw_set_ie(pframe, _SSID_IE_, cur_network->Ssid.SsidLength, cur_network->Ssid.Ssid, &pktl… in ConstructBeacon() 269 …pframe = rtw_set_ie(pframe, _DSSET_IE_, 1, (unsigned char *)&cur_network->Configuration.DSConfig, … in ConstructBeacon() 275 pframe = rtw_set_ie(pframe, _IBSS_PARA_IE_, 2, (unsigned char *)(&ATIMWindow), &pktlen); in ConstructBeacon() 282 …pframe = rtw_set_ie(pframe, _EXT_SUPPORTEDRATES_IE_, (rate_len - 8), (cur_network->SupportedRates … in ConstructBeacon() 309 SetFrameSubType(pframe, WIFI_PSPOLL); in ConstructPSPoll() 413 pframe += pktlen; in ConstructProbeRsp() [all …]
|
| /linux/drivers/staging/r8188eu/include/ |
| A D | wifi.h | 205 #define get_tofr_ds(pframe) ((GetToDs(pframe) << 1) | GetFrDs(pframe)) argument 340 unsigned int to_fr_ds = (GetToDs(pframe) << 1) | GetFrDs(pframe); in get_da() 344 da = GetAddr1Ptr(pframe); in get_da() 347 da = GetAddr1Ptr(pframe); in get_da() 350 da = GetAddr3Ptr(pframe); in get_da() 353 da = GetAddr3Ptr(pframe); in get_da() 362 unsigned int to_fr_ds = (GetToDs(pframe) << 1) | GetFrDs(pframe); in get_sa() 366 sa = GetAddr2Ptr(pframe); in get_sa() 369 sa = GetAddr3Ptr(pframe); in get_sa() 372 sa = GetAddr2Ptr(pframe); in get_sa() [all …]
|
| A D | rtw_p2p.h | 17 u8 *pframe, uint len); 19 u8 *pframe, uint len, struct sta_info *psta); 21 u8 *pframe, uint len); 23 u8 *pframe, uint len); 25 u8 *pframe, uint len); 26 u8 process_p2p_provdisc_resp(struct wifidirect_info *pwdinfo, u8 *pframe); 28 u8 *pframe, uint len); 30 u8 *pframe, uint len); 32 u8 *pframe, uint len); 33 u8 process_p2p_presence_req(struct wifidirect_info *pwdinfo, u8 *pframe,
|
| A D | rtw_mlme_ext.h | 480 unsigned char check_assoc_AP(u8 *pframe, uint len); 492 void update_beacon_info(struct adapter *padapter, u8 *pframe, uint len, 494 int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len); 645 void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len);
|
| /linux/drivers/staging/rtl8723bs/hal/ |
| A D | rtl8723b_cmd.c | 117 pwlanhdr = (struct ieee80211_hdr *)pframe; in ConstructBeacon() 128 SetFrameSubType(pframe, WIFI_BEACON); in ConstructBeacon() 134 pframe += 8; in ConstructBeacon() 140 pframe += 2; in ConstructBeacon() 146 pframe += 2; in ConstructBeacon() 159 …pframe = rtw_set_ie(pframe, WLAN_EID_SSID, cur_network->ssid.ssid_length, cur_network->ssid.ssid, … in ConstructBeacon() 173 pframe = rtw_set_ie(pframe, WLAN_EID_IBSS_PARAMS, 2, (unsigned char *)(&ATIMWindow), &pktlen); in ConstructBeacon() 209 SetFrameSubType(pframe, WIFI_PSPOLL); in ConstructPSPoll() 225 u8 *pframe, in ConstructNullFunctionData() argument 283 SetFrameSubType(pframe, WIFI_DATA_NULL); in ConstructNullFunctionData() [all …]
|
| A D | rtl8723bs_xmit.c | 249 struct xmit_frame *pframe; in xmit_xmitframes() local 250 pframe = (struct xmit_frame *)pxmitbuf->priv_data; in xmit_xmitframes() 251 pframe->agg_num = k; in xmit_xmitframes() 253 rtl8723b_update_txdesc(pframe, pframe->buf_addr); in xmit_xmitframes() 254 rtw_free_xmitframe(pxmitpriv, pframe); in xmit_xmitframes() 335 struct xmit_frame *pframe; in xmit_xmitframes() local 336 pframe = (struct xmit_frame *)pxmitbuf->priv_data; in xmit_xmitframes() 337 pframe->agg_num = k; in xmit_xmitframes() 339 rtl8723b_update_txdesc(pframe, pframe->buf_addr); in xmit_xmitframes() 340 rtw_free_xmitframe(pxmitpriv, pframe); in xmit_xmitframes() [all …]
|
| /linux/drivers/usb/gadget/udc/ |
| A D | fsl_qe_udc.c | 793 struct qe_frame *pframe; in ep0_setup_handle() local 797 pframe = ep->rxframe; in ep0_setup_handle() 817 struct qe_frame *pframe; in qe_ep0_rx() local 822 pframe = ep->rxframe; in qe_ep0_rx() 889 struct qe_frame *pframe; in qe_ep_rxframe_handle() local 895 pframe = ep->rxframe; in qe_ep_rxframe_handle() 953 pframe = ep->rxframe; in ep_rx_tasklet() 1028 pframe = ep->rxframe; in qe_ep_rx() 1369 pframe = ep->txframe; in qe_ep0_txconf() 1426 pframe = ep->txframe; in qe_ep_txconf() [all …]
|
| /linux/drivers/scsi/ |
| A D | mvumi.c | 2028 struct mvumi_msg_frame *pframe; in mvumi_build_frame() local 2032 pframe = cmd->frame; in mvumi_build_frame() 2035 pframe->cmd_flag = 0; in mvumi_build_frame() 2039 pframe->cmd_flag |= CMD_FLAG_NON_DATA; in mvumi_build_frame() 2042 pframe->cmd_flag |= CMD_FLAG_DATA_IN; in mvumi_build_frame() 2045 pframe->cmd_flag |= CMD_FLAG_DATA_OUT; in mvumi_build_frame() 2054 pframe->cdb_length = scmd->cmd_len; in mvumi_build_frame() 2055 memcpy(pframe->cdb, scmd->cmnd, pframe->cdb_length); in mvumi_build_frame() 2059 &pframe->sg_counts)) in mvumi_build_frame() 2064 pframe->sg_counts = 0; in mvumi_build_frame() [all …]
|