Home
last modified time | relevance | path

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

/openbmc/linux/drivers/staging/rtl8723bs/core/
H A Drtw_mlme_ext.c424 u8 *pframe = precv_frame->u.hdr.rx_data; in _mgt_dispatcher() local
428 if (memcmp(GetAddr1Ptr(pframe), myid(&padapter->eeprompriv), ETH_ALEN) && in _mgt_dispatcher()
429 !is_broadcast_ether_addr(GetAddr1Ptr(pframe))) in _mgt_dispatcher()
441 u8 *pframe = precv_frame->u.hdr.rx_data; in mgt_dispatcher() local
442 struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, GetAddr2Ptr(pframe)); in mgt_dispatcher()
446 if (GetFrameType(pframe) != WIFI_MGT_TYPE) in mgt_dispatcher()
450 if (memcmp(GetAddr1Ptr(pframe), myid(&padapter->eeprompriv), ETH_ALEN) && in mgt_dispatcher()
451 !is_broadcast_ether_addr(GetAddr1Ptr(pframe))) { in mgt_dispatcher()
457 index = GetFrameSubType(pframe) >> 4; in mgt_dispatcher()
465 if (GetRetry(pframe)) { in mgt_dispatcher()
[all …]
H A 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 …]
H A 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 …]
H A Drtw_wlan_util.c1146 int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len) in rtw_check_bcn_info() argument
1159 u8 *pbssid = GetAddr3Ptr(pframe); in rtw_check_bcn_info()
1188 subtype = GetFrameSubType(pframe) >> 4; in rtw_check_bcn_info()
1197 memcpy(bssid->ies, (pframe + sizeof(struct ieee80211_hdr_3addr)), bssid->ie_length); in rtw_check_bcn_info()
1326 void update_beacon_info(struct adapter *padapter, u8 *pframe, uint pkt_len, struct sta_info *psta) in update_beacon_info() argument
1335 pIE = (struct ndis_80211_var_ie *)(pframe + (_BEACON_IE_OFFSET_ + WLAN_HDR_A3_LEN) + i); in update_beacon_info()
1471 unsigned char check_assoc_AP(u8 *pframe, uint len) in check_assoc_AP() argument
1477 pIE = (struct ndis_80211_var_ie *)(pframe + i); in check_assoc_AP()
1687 void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len) in update_TSF() argument
1692 pIE = pframe + sizeof(struct ieee80211_hdr_3addr); in update_TSF()
[all …]
H A 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()
/openbmc/linux/drivers/staging/rtl8712/
H A 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 …]
H A 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()
H A Drtl871x_xmit.c373 u8 *pframe, *payload, mic[8]; in xmitframe_addmic() local
393 pframe = pxmitframe->buf_addr + TXDESC_OFFSET; in xmitframe_addmic()
411 if (pframe[1] & 1) { /* ToDS==1 */ in xmitframe_addmic()
413 &pframe[16], 6); /*DA*/ in xmitframe_addmic()
414 if (pframe[1] & 2) /* From Ds==1 */ in xmitframe_addmic()
416 &pframe[24], 6); in xmitframe_addmic()
419 &pframe[10], 6); in xmitframe_addmic()
422 &pframe[4], 6); /* DA */ in xmitframe_addmic()
423 if (pframe[1] & 2) /* From Ds==1 */ in xmitframe_addmic()
425 &pframe[16], 6); in xmitframe_addmic()
[all …]
H A Drtl871x_recv.c142 u8 *pframe, *payload, *pframemic; in r8712_recvframe_chkmic() local
166 pframe = precvframe->u.hdr.rx_data; in r8712_recvframe_chkmic()
167 payload = pframe + prxattrib->hdrlen + in r8712_recvframe_chkmic()
169 seccalctkipmic(mickey, pframe, payload, datalen, in r8712_recvframe_chkmic()
/openbmc/linux/drivers/staging/rtl8723bs/include/
H A Dwifi.h102 #define get_tofr_ds(pframe) ((GetToDs(pframe) << 1) | GetFrDs(pframe)) argument
214 static inline unsigned char *rtl8723bs_get_ra(unsigned char *pframe) in rtl8723bs_get_ra() argument
217 ra = GetAddr1Ptr(pframe); in rtl8723bs_get_ra()
220 static inline unsigned char *get_ta(unsigned char *pframe) in get_ta() argument
223 ta = GetAddr2Ptr(pframe); in get_ta()
227 static inline unsigned char *get_da(unsigned char *pframe) in get_da() argument
230 unsigned int to_fr_ds = (GetToDs(pframe) << 1) | GetFrDs(pframe); in get_da()
234 da = GetAddr1Ptr(pframe); in get_da()
237 da = GetAddr1Ptr(pframe); in get_da()
240 da = GetAddr3Ptr(pframe); in get_da()
[all …]
H A 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);
/openbmc/linux/drivers/staging/rtl8723bs/hal/
H A 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 …]
H A 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 …]
/openbmc/linux/drivers/usb/gadget/udc/
H A 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 …]
/openbmc/linux/drivers/scsi/
H A 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 …]
/openbmc/linux/drivers/media/platform/st/sti/delta/
H A Ddelta.h561 struct delta_frame **pframe);
H A Ddelta-v4l2.c1239 struct delta_frame **pframe) in delta_get_free_frame() argument
1245 *pframe = NULL; in delta_get_free_frame()
1267 *pframe = frame; in delta_get_free_frame()
/openbmc/linux/drivers/staging/rtl8723bs/os_dep/
H A Dioctl_cfg80211.c2070 unsigned char *pframe; in rtw_cfg80211_monitor_if_xmit_entry() local
2095 pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET; in rtw_cfg80211_monitor_if_xmit_entry()
2097 memcpy(pframe, (void *)buf, len); in rtw_cfg80211_monitor_if_xmit_entry()
2100 pwlanhdr = (struct ieee80211_hdr *)pframe; in rtw_cfg80211_monitor_if_xmit_entry()
2479 unsigned char *pframe; in _cfg80211_rtw_mgmt_tx() local
2510 pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET; in _cfg80211_rtw_mgmt_tx()
2512 memcpy(pframe, (void *)buf, len); in _cfg80211_rtw_mgmt_tx()
2515 pwlanhdr = (struct ieee80211_hdr *)pframe; in _cfg80211_rtw_mgmt_tx()
/openbmc/linux/drivers/staging/rtl8192e/
H A Drtllib.h391 #define IsQoSDataFrame(pframe) \ argument
392 ((*(u16 *)pframe&(RTLLIB_STYPE_QOS_DATA|RTLLIB_FTYPE_DATA)) == \
394 #define Frame_Order(pframe) (*(u16 *)pframe&RTLLIB_FCTL_ORDER) argument
/openbmc/linux/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211.h351 #define IsQoSDataFrame(pframe) ((*(u16 *)pframe & (IEEE80211_STYPE_QOS_DATA | IEEE80211_FTYPE_DATA… argument
352 #define Frame_Order(pframe) (*(u16 *)pframe & IEEE80211_FCTL_ORDER) argument