| /linux/drivers/staging/rtl8723bs/include/ |
| H A D | wifi.h | 83 #define get_tofr_ds(pframe) ((GetToDs(pframe) << 1) | GetFrDs(pframe)) argument 192 static inline unsigned char *rtl8723bs_get_ra(unsigned char *pframe) in rtl8723bs_get_ra() argument 195 ra = GetAddr1Ptr(pframe); in rtl8723bs_get_ra() 198 static inline unsigned char *get_ta(unsigned char *pframe) in get_ta() argument 201 ta = GetAddr2Ptr(pframe); in get_ta() 205 static inline unsigned char *get_da(unsigned char *pframe) in get_da() argument 208 unsigned int to_fr_ds = (GetToDs(pframe) << 1) | GetFrDs(pframe); in get_da() 212 da = GetAddr1Ptr(pframe); in get_da() 215 da = GetAddr1Ptr(pframe); in get_da() 218 da = GetAddr3Ptr(pframe); in get_da() [all …]
|
| /linux/drivers/staging/rtl8723bs/core/ |
| H A D | rtw_mlme_ext.c | 422 u8 *pframe = precv_frame->u.hdr.rx_data; in _mgt_dispatcher() local 426 if (memcmp(GetAddr1Ptr(pframe), myid(&padapter->eeprompriv), ETH_ALEN) && in _mgt_dispatcher() 427 !is_broadcast_ether_addr(GetAddr1Ptr(pframe))) in _mgt_dispatcher() 439 u8 *pframe = precv_frame->u.hdr.rx_data; in mgt_dispatcher() local 440 struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, GetAddr2Ptr(pframe)); in mgt_dispatcher() 442 if (GetFrameType(pframe) != WIFI_MGT_TYPE) in mgt_dispatcher() 446 if (memcmp(GetAddr1Ptr(pframe), myid(&padapter->eeprompriv), ETH_ALEN) && in mgt_dispatcher() 447 !is_broadcast_ether_addr(GetAddr1Ptr(pframe))) { in mgt_dispatcher() 453 index = GetFrameSubType(pframe) >> 4; in mgt_dispatcher() 461 if (GetRetry(pframe)) { in mgt_dispatcher() [all …]
|
| H A D | rtw_xmit.c | 783 u8 *pframe, *payload, mic[8]; in xmitframe_addmic() local 799 pframe = pxmitframe->buf_addr + hw_hdr_offset; in xmitframe_addmic() 813 if (pframe[1] & 1) { /* ToDS == 1 */ in xmitframe_addmic() 814 rtw_secmicappend(&micdata, &pframe[16], 6); /* DA */ in xmitframe_addmic() 815 if (pframe[1] & 2) /* From Ds == 1 */ in xmitframe_addmic() 816 rtw_secmicappend(&micdata, &pframe[24], 6); in xmitframe_addmic() 818 rtw_secmicappend(&micdata, &pframe[10], 6); in xmitframe_addmic() 820 rtw_secmicappend(&micdata, &pframe[4], 6); /* DA */ in xmitframe_addmic() 821 if (pframe[1] & 2) /* From Ds == 1 */ in xmitframe_addmic() 822 rtw_secmicappend(&micdata, &pframe[16], 6); in xmitframe_addmic() [all …]
|
| H A D | rtw_wlan_util.c | 1101 int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len) in rtw_check_bcn_info() argument 1114 u8 *pbssid = GetAddr3Ptr(pframe); in rtw_check_bcn_info() 1143 subtype = GetFrameSubType(pframe) >> 4; in rtw_check_bcn_info() 1152 memcpy(bssid->ies, (pframe + sizeof(struct ieee80211_hdr_3addr)), bssid->ie_length); in rtw_check_bcn_info() 1281 void update_beacon_info(struct adapter *padapter, u8 *pframe, uint pkt_len, struct sta_info *psta) in update_beacon_info() argument 1290 pIE = (struct ndis_80211_var_ie *)(pframe + (_BEACON_IE_OFFSET_ + WLAN_HDR_A3_LEN) + i); in update_beacon_info() 1426 unsigned char check_assoc_AP(u8 *pframe, uint len) in check_assoc_AP() argument 1432 pIE = (struct ndis_80211_var_ie *)(pframe + i); in check_assoc_AP() 1640 void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len) in update_TSF() argument 1645 pIE = pframe + sizeof(struct ieee80211_hdr_3addr); in update_TSF() [all …]
|
| /linux/drivers/staging/rtl8723bs/hal/ |
| H A D | rtl8723b_cmd.c | 106 static void ConstructBeacon(struct adapter *padapter, u8 *pframe, u32 *pLength) in ConstructBeacon() argument 115 pwlanhdr = (struct ieee80211_hdr *)pframe; in ConstructBeacon() 126 SetFrameSubType(pframe, WIFI_BEACON); in ConstructBeacon() 128 pframe += sizeof(struct ieee80211_hdr_3addr); in ConstructBeacon() 132 pframe += 8; in ConstructBeacon() 136 memcpy(pframe, (unsigned char *)(rtw_get_beacon_interval_from_ie(cur_network->ies)), 2); in ConstructBeacon() 138 pframe += 2; in ConstructBeacon() 142 memcpy(pframe, (unsigned char *)(rtw_get_capability_from_ie(cur_network->ies)), 2); in ConstructBeacon() 144 pframe += 2; in ConstructBeacon() 149 memcpy(pframe, cur_network->ies+sizeof(struct ndis_802_11_fix_ie), pktlen); in ConstructBeacon() [all …]
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | fsl_qe_udc.c | 794 struct qe_frame *pframe; in ep0_setup_handle() local 798 pframe = ep->rxframe; in ep0_setup_handle() 799 if ((frame_get_info(pframe) & PID_SETUP) in ep0_setup_handle() 801 fsize = frame_get_length(pframe); in ep0_setup_handle() 805 memcpy(cp, pframe->data, fsize); in ep0_setup_handle() 818 struct qe_frame *pframe; in qe_ep0_rx() local 823 pframe = ep->rxframe; in qe_ep0_rx() 842 qe_frame_clean(pframe); in qe_ep0_rx() 844 frame_set_data(pframe, (u8 *)vaddr); in qe_ep0_rx() 845 frame_set_length(pframe, in qe_ep0_rx() [all …]
|
| /linux/drivers/scsi/ |
| H A D | mvumi.c | 2028 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/drivers/media/platform/st/sti/delta/ |
| H A D | delta.h | 561 struct delta_frame **pframe);
|
| H A D | delta-v4l2.c | 1243 struct delta_frame **pframe) in delta_get_free_frame() argument 1249 *pframe = NULL; in delta_get_free_frame() 1271 *pframe = frame; in delta_get_free_frame()
|
| /linux/drivers/staging/rtl8723bs/os_dep/ |
| H A D | ioctl_cfg80211.c | 2060 unsigned char *pframe; in rtw_cfg80211_monitor_if_xmit_entry() local 2085 pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET; in rtw_cfg80211_monitor_if_xmit_entry() 2087 memcpy(pframe, (void *)buf, len); in rtw_cfg80211_monitor_if_xmit_entry() 2090 pwlanhdr = (struct ieee80211_hdr *)pframe; in rtw_cfg80211_monitor_if_xmit_entry() 2462 unsigned char *pframe; in _cfg80211_rtw_mgmt_tx() local 2493 pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET; in _cfg80211_rtw_mgmt_tx() 2495 memcpy(pframe, (void *)buf, len); in _cfg80211_rtw_mgmt_tx() 2498 pwlanhdr = (struct ieee80211_hdr *)pframe; in _cfg80211_rtw_mgmt_tx()
|