Home
last modified time | relevance | path

Searched refs:pframe (Results 1 – 25 of 30) sorted by relevance

12

/Linux-v6.1/drivers/staging/rtl8723bs/core/
Drtw_mlme_ext.c425 u8 *pframe = precv_frame->u.hdr.rx_data; in _mgt_dispatcher() local
429 if (memcmp(GetAddr1Ptr(pframe), myid(&padapter->eeprompriv), ETH_ALEN) && in _mgt_dispatcher()
430 memcmp(GetAddr1Ptr(pframe), bc_addr, ETH_ALEN)) in _mgt_dispatcher()
443 u8 *pframe = precv_frame->u.hdr.rx_data; in mgt_dispatcher() local
444 struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, GetAddr2Ptr(pframe)); in mgt_dispatcher()
448 if (GetFrameType(pframe) != WIFI_MGT_TYPE) in mgt_dispatcher()
452 if (memcmp(GetAddr1Ptr(pframe), myid(&padapter->eeprompriv), ETH_ALEN) && in mgt_dispatcher()
453 memcmp(GetAddr1Ptr(pframe), bc_addr, ETH_ALEN)) { in mgt_dispatcher()
459 index = GetFrameSubType(pframe) >> 4; in mgt_dispatcher()
467 if (GetRetry(pframe)) { in mgt_dispatcher()
[all …]
Drtw_security.c46 u8 *pframe, *payload, *iv; /* wepkey */ in rtw_wep_encrypt() local
58 pframe = ((struct xmit_frame *)pxmitframe)->buf_addr + hw_hdr_offset; in rtw_wep_encrypt()
65 iv = pframe+pattrib->hdrlen; in rtw_wep_encrypt()
68 payload = pframe+pattrib->iv_len+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()
100 u8 *pframe, *payload, *iv, wepkey[16]; in rtw_wep_decrypt() local
106 pframe = (unsigned char *)((union recv_frame *)precvframe)->u.hdr.rx_data; in rtw_wep_decrypt()
110 iv = pframe+prxattrib->hdrlen; in rtw_wep_decrypt()
119 payload = pframe+prxattrib->iv_len+prxattrib->hdrlen; in rtw_wep_decrypt()
[all …]
Drtw_xmit.c761 u8 *pframe, *payload, mic[8]; in xmitframe_addmic() local
777 pframe = pxmitframe->buf_addr + hw_hdr_offset; in xmitframe_addmic()
791 if (pframe[1]&1) { /* ToDS == 1 */ in xmitframe_addmic()
792 rtw_secmicappend(&micdata, &pframe[16], 6); /* DA */ in xmitframe_addmic()
793 if (pframe[1]&2) /* From Ds == 1 */ in xmitframe_addmic()
794 rtw_secmicappend(&micdata, &pframe[24], 6); in xmitframe_addmic()
796 rtw_secmicappend(&micdata, &pframe[10], 6); in xmitframe_addmic()
798 rtw_secmicappend(&micdata, &pframe[4], 6); /* DA */ in xmitframe_addmic()
799 if (pframe[1]&2) /* From Ds == 1 */ in xmitframe_addmic()
800 rtw_secmicappend(&micdata, &pframe[16], 6); in xmitframe_addmic()
[all …]
Drtw_wlan_util.c1150 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()
1330 void update_beacon_info(struct adapter *padapter, u8 *pframe, uint pkt_len, struct sta_info *psta) in update_beacon_info() argument
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()
[all …]
Drtw_recv.c305 u8 *pframe, *payload, *pframemic; in recvframe_chkmic() local
337 pframe = precvframe->u.hdr.rx_data; in recvframe_chkmic()
338 payload = pframe+prxattrib->hdrlen+prxattrib->iv_len; in recvframe_chkmic()
340 …rtw_seccalctkipmic(mickey, pframe, payload, datalen, &miccode[0], (unsigned char)prxattrib->priori… in recvframe_chkmic()
895 u8 *pframe = precv_frame->u.hdr.rx_data; in validate_recv_ctrl_frame() local
899 if (GetFrameType(pframe) != WIFI_CTRL_TYPE) in validate_recv_ctrl_frame()
903 if (memcmp(GetAddr1Ptr(pframe), myid(&padapter->eeprompriv), ETH_ALEN)) in validate_recv_ctrl_frame()
906 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in validate_recv_ctrl_frame()
914 if (GetFrameSubType(pframe) == WIFI_PSPOLL) { in validate_recv_ctrl_frame()
918 aid = GetAid(pframe); in validate_recv_ctrl_frame()
/Linux-v6.1/drivers/staging/r8188eu/core/
Drtw_mlme_ext.c451 static void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe) in update_TSF() argument
456 pIE = pframe + sizeof(struct ieee80211_hdr_3addr); in update_TSF()
517 u8 *pframe = precv_frame->rx_data; in OnProbeReq() local
536 is_valid_p2p_probereq = process_probe_req_p2p_ie(pwdinfo, pframe, len); in OnProbeReq()
541 p2p_listen_state_process(padapter, get_sa(pframe)); in OnProbeReq()
555 p = rtw_get_ie(pframe + WLAN_HDR_A3_LEN + _PROBEREQ_IE_OFFSET_, _SSID_IE_, (int *)&ielen, in OnProbeReq()
572 issue_probersp(padapter, get_sa(pframe), is_valid_p2p_probereq); in OnProbeReq()
581 u8 *pframe = precv_frame->rx_data; in OnProbeRsp() local
585 if (!memcmp(pwdinfo->tx_prov_disc_info.peerIFAddr, GetAddr2Ptr(pframe), ETH_ALEN)) { in OnProbeRsp()
602 if (!memcmp(pwdinfo->nego_req_info.peerDevAddr, GetAddr2Ptr(pframe), ETH_ALEN)) { in OnProbeRsp()
[all …]
Drtw_security.c26 u8 *pframe, *payload, *iv; /* wepkey */ in rtw_wep_encrypt() local
38 pframe = pxmitframe->buf_addr + hw_hdr_offset; in rtw_wep_encrypt()
45 iv = pframe + pattrib->hdrlen; in rtw_wep_encrypt()
48 payload = pframe + pattrib->iv_len + pattrib->hdrlen; in rtw_wep_encrypt()
65 pframe += pxmitpriv->frag_len; in rtw_wep_encrypt()
66 pframe = PTR_ALIGN(pframe, 4); in rtw_wep_encrypt()
78 u8 *pframe, *payload, *iv, wepkey[16]; in rtw_wep_decrypt() local
84 pframe = precvframe->rx_data; in rtw_wep_decrypt()
88 iv = pframe + prxattrib->hdrlen; in rtw_wep_decrypt()
95 payload = pframe + prxattrib->iv_len + prxattrib->hdrlen; in rtw_wep_decrypt()
[all …]
Drtw_p2p.c113 unsigned char *pframe; in issue_group_disc_req() local
134 pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET; in issue_group_disc_req()
135 pwlanhdr = (struct ieee80211_hdr *)pframe; in issue_group_disc_req()
146 SetFrameSubType(pframe, WIFI_ACTION); in issue_group_disc_req()
148 pframe += sizeof(struct ieee80211_hdr_3addr); in issue_group_disc_req()
152 pframe = rtw_set_fixed_ie(pframe, 1, &category, &pattrib->pktlen); in issue_group_disc_req()
153 pframe = rtw_set_fixed_ie(pframe, 4, (unsigned char *)&p2poui, &pattrib->pktlen); in issue_group_disc_req()
154 pframe = rtw_set_fixed_ie(pframe, 1, &oui_subtype, &pattrib->pktlen); in issue_group_disc_req()
155 pframe = rtw_set_fixed_ie(pframe, 1, &dialogToken, &pattrib->pktlen); in issue_group_disc_req()
168 unsigned char *pframe; in issue_p2p_devdisc_resp() local
[all …]
Drtw_xmit.c691 u8 *pframe, *payload, mic[8]; in xmitframe_addmic() local
714 pframe = pxmitframe->buf_addr + hw_hdr_offset; in xmitframe_addmic()
730 if (pframe[1] & 1) { /* ToDS == 1 */ in xmitframe_addmic()
731 rtw_secmicappend(&micdata, &pframe[16], 6); /* DA */ in xmitframe_addmic()
732 if (pframe[1] & 2) /* From Ds == 1 */ in xmitframe_addmic()
733 rtw_secmicappend(&micdata, &pframe[24], 6); in xmitframe_addmic()
735 rtw_secmicappend(&micdata, &pframe[10], 6); in xmitframe_addmic()
737 rtw_secmicappend(&micdata, &pframe[4], 6); /* DA */ in xmitframe_addmic()
738 if (pframe[1] & 2) /* From Ds == 1 */ in xmitframe_addmic()
739 rtw_secmicappend(&micdata, &pframe[16], 6); in xmitframe_addmic()
[all …]
Drtw_wlan_util.c875 int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len) in rtw_check_bcn_info() argument
888 u8 *pbssid = GetAddr3Ptr(pframe); in rtw_check_bcn_info()
911 subtype = GetFrameSubType(pframe) >> 4; in rtw_check_bcn_info()
920 memcpy(bssid->IEs, (pframe + sizeof(struct ieee80211_hdr_3addr)), bssid->IELength); in rtw_check_bcn_info()
1038 void update_beacon_info(struct adapter *padapter, u8 *pframe, uint pkt_len, struct sta_info *psta) in update_beacon_info() argument
1047 pIE = (struct ndis_802_11_var_ie *)(pframe + (_BEACON_IE_OFFSET_ + WLAN_HDR_A3_LEN) + i); in update_beacon_info()
1297 unsigned char check_assoc_AP(u8 *pframe, uint len) in check_assoc_AP() argument
1307 pIE = (struct ndis_802_11_var_ie *)(pframe + i); in check_assoc_AP()
/Linux-v6.1/drivers/staging/rtl8712/
Drtl871x_security.c156 u8 *pframe, *payload, *iv; /*,*wepkey*/ in r8712_wep_encrypt() local
165 pframe = ((struct xmit_frame *)pxmitframe)->buf_addr + TXDESC_OFFSET; in r8712_wep_encrypt()
172 iv = pframe + pattrib->hdrlen; in r8712_wep_encrypt()
177 payload = pframe + pattrib->iv_len + 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()
214 u8 *pframe, *payload, *iv, wepkey[16]; in r8712_wep_decrypt() local
220 pframe = (unsigned char *)((union recv_frame *)precvframe)-> in r8712_wep_decrypt()
225 iv = pframe + prxattrib->hdrlen; in r8712_wep_decrypt()
234 payload = pframe + prxattrib->iv_len + prxattrib->hdrlen; in r8712_wep_decrypt()
[all …]
Dwifi.h47 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()
Drtl871x_xmit.c348 u8 *pframe, *payload, mic[8]; in xmitframe_addmic() local
368 pframe = pxmitframe->buf_addr + TXDESC_OFFSET; in xmitframe_addmic()
386 if (pframe[1] & 1) { /* ToDS==1 */ in xmitframe_addmic()
388 &pframe[16], 6); /*DA*/ in xmitframe_addmic()
389 if (pframe[1] & 2) /* From Ds==1 */ in xmitframe_addmic()
391 &pframe[24], 6); in xmitframe_addmic()
394 &pframe[10], 6); in xmitframe_addmic()
397 &pframe[4], 6); /* DA */ in xmitframe_addmic()
398 if (pframe[1] & 2) /* From Ds==1 */ in xmitframe_addmic()
400 &pframe[16], 6); in xmitframe_addmic()
[all …]
Drtl871x_recv.c140 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-v6.1/drivers/staging/rtl8723bs/include/
Dwifi.h102 #define get_tofr_ds(pframe) ((GetToDs(pframe) << 1) | GetFrDs(pframe)) argument
229 static inline unsigned char *rtl8723bs_get_ra(unsigned char *pframe) in rtl8723bs_get_ra() argument
232 ra = GetAddr1Ptr(pframe); in rtl8723bs_get_ra()
235 static inline unsigned char *get_ta(unsigned char *pframe) in get_ta() argument
238 ta = GetAddr2Ptr(pframe); in get_ta()
242 static inline unsigned char *get_da(unsigned char *pframe) in get_da() argument
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()
[all …]
Drtw_mlme_ext.h530 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-v6.1/drivers/staging/r8188eu/hal/
Drtl8188e_cmd.c203 static void ConstructBeacon(struct adapter *adapt, u8 *pframe, u32 *pLength) in ConstructBeacon() argument
212 pwlanhdr = (struct ieee80211_hdr *)pframe; in ConstructBeacon()
222 SetFrameSubType(pframe, WIFI_BEACON); in ConstructBeacon()
224 pframe += sizeof(struct ieee80211_hdr_3addr); in ConstructBeacon()
228 pframe += 8; in ConstructBeacon()
232 memcpy(pframe, (unsigned char *)(rtw_get_beacon_interval_from_ie(cur_network->IEs)), 2); in ConstructBeacon()
234 pframe += 2; in ConstructBeacon()
238 memcpy(pframe, (unsigned char *)(rtw_get_capability_from_ie(cur_network->IEs)), 2); in ConstructBeacon()
240 pframe += 2; in ConstructBeacon()
245 memcpy(pframe, cur_network->IEs + sizeof(struct ndis_802_11_fixed_ie), pktlen); in ConstructBeacon()
[all …]
/Linux-v6.1/drivers/staging/r8188eu/include/
Drtw_p2p.h17 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,
Dwifi.h244 static inline unsigned char *get_da(unsigned char *pframe) in get_da() argument
247 unsigned int to_fr_ds = (GetToDs(pframe) << 1) | GetFrDs(pframe); in get_da()
251 da = GetAddr1Ptr(pframe); in get_da()
254 da = GetAddr1Ptr(pframe); in get_da()
257 da = GetAddr3Ptr(pframe); in get_da()
260 da = GetAddr3Ptr(pframe); in get_da()
266 static inline unsigned char *get_sa(unsigned char *pframe) in get_sa() argument
269 unsigned int to_fr_ds = (GetToDs(pframe) << 1) | GetFrDs(pframe); in get_sa()
273 sa = GetAddr2Ptr(pframe); in get_sa()
276 sa = GetAddr3Ptr(pframe); in get_sa()
[all …]
Drtw_mlme_ext.h439 unsigned char check_assoc_AP(u8 *pframe, uint len);
451 void update_beacon_info(struct adapter *padapter, u8 *pframe, uint len,
453 int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len);
/Linux-v6.1/drivers/staging/rtl8723bs/hal/
Drtl8723b_cmd.c108 static void ConstructBeacon(struct adapter *padapter, u8 *pframe, u32 *pLength) in ConstructBeacon() argument
117 pwlanhdr = (struct ieee80211_hdr *)pframe; in ConstructBeacon()
128 SetFrameSubType(pframe, WIFI_BEACON); in ConstructBeacon()
130 pframe += sizeof(struct ieee80211_hdr_3addr); in ConstructBeacon()
134 pframe += 8; in ConstructBeacon()
138 memcpy(pframe, (unsigned char *)(rtw_get_beacon_interval_from_ie(cur_network->ies)), 2); in ConstructBeacon()
140 pframe += 2; in ConstructBeacon()
144 memcpy(pframe, (unsigned char *)(rtw_get_capability_from_ie(cur_network->ies)), 2); in ConstructBeacon()
146 pframe += 2; in ConstructBeacon()
151 memcpy(pframe, cur_network->ies+sizeof(struct ndis_802_11_fix_ie), pktlen); in ConstructBeacon()
[all …]
Drtl8723bs_xmit.c246 struct xmit_frame *pframe; in xmit_xmitframes() local
247 pframe = (struct xmit_frame *)pxmitbuf->priv_data; in xmit_xmitframes()
248 pframe->agg_num = k; in xmit_xmitframes()
250 rtl8723b_update_txdesc(pframe, pframe->buf_addr); in xmit_xmitframes()
251 rtw_free_xmitframe(pxmitpriv, pframe); in xmit_xmitframes()
330 struct xmit_frame *pframe; in xmit_xmitframes() local
331 pframe = (struct xmit_frame *)pxmitbuf->priv_data; in xmit_xmitframes()
332 pframe->agg_num = k; in xmit_xmitframes()
334 rtl8723b_update_txdesc(pframe, pframe->buf_addr); in xmit_xmitframes()
335 rtw_free_xmitframe(pxmitpriv, pframe); in xmit_xmitframes()
[all …]
/Linux-v6.1/drivers/usb/gadget/udc/
Dfsl_qe_udc.c793 struct qe_frame *pframe; in ep0_setup_handle() local
797 pframe = ep->rxframe; in ep0_setup_handle()
798 if ((frame_get_info(pframe) & PID_SETUP) in ep0_setup_handle()
800 fsize = frame_get_length(pframe); in ep0_setup_handle()
804 memcpy(cp, pframe->data, fsize); in ep0_setup_handle()
817 struct qe_frame *pframe; in qe_ep0_rx() local
822 pframe = ep->rxframe; in qe_ep0_rx()
841 qe_frame_clean(pframe); in qe_ep0_rx()
843 frame_set_data(pframe, (u8 *)vaddr); in qe_ep0_rx()
844 frame_set_length(pframe, in qe_ep0_rx()
[all …]
/Linux-v6.1/drivers/scsi/
Dmvumi.c2028 struct mvumi_msg_frame *pframe; in mvumi_build_frame() local
2032 pframe = cmd->frame; in mvumi_build_frame()
2033 pframe->device_id = ((unsigned short) scmd->device->id) | 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()
2056 pframe->req_function = CL_FUN_SCSI_CMD; in mvumi_build_frame()
[all …]
/Linux-v6.1/drivers/media/platform/st/sti/delta/
Ddelta.h561 struct delta_frame **pframe);

12