Home
last modified time | relevance | path

Searched refs:pattrib (Results 1 – 25 of 28) sorted by relevance

12

/openbmc/linux/drivers/staging/rtl8712/
H A Drtl871x_xmit.c201 struct pkt_attrib *pattrib) in r8712_update_attrib() argument
219 pattrib->ether_type = ntohs(etherhdr.h_proto); in r8712_update_attrib()
225 if (pattrib->ether_type == 0x0806) { in r8712_update_attrib()
235 memcpy(pattrib->dst, &etherhdr.h_dest, ETH_ALEN); in r8712_update_attrib()
236 memcpy(pattrib->src, &etherhdr.h_source, ETH_ALEN); in r8712_update_attrib()
237 pattrib->pctrl = 0; in r8712_update_attrib()
240 memcpy(pattrib->ra, pattrib->dst, ETH_ALEN); in r8712_update_attrib()
241 memcpy(pattrib->ta, pattrib->src, ETH_ALEN); in r8712_update_attrib()
243 memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN); in r8712_update_attrib()
244 memcpy(pattrib->ta, pattrib->src, ETH_ALEN); in r8712_update_attrib()
[all …]
H A Drtl871x_recv.c300 struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib; in sta2sta_data_frame() local
306 bool bmcast = is_multicast_ether_addr(pattrib->dst); in sta2sta_data_frame()
311 if (!memcmp(myhwaddr, pattrib->src, ETH_ALEN)) in sta2sta_data_frame()
313 if ((memcmp(myhwaddr, pattrib->dst, ETH_ALEN)) && (!bmcast)) in sta2sta_data_frame()
315 if (is_zero_ether_addr(pattrib->bssid) || in sta2sta_data_frame()
317 (memcmp(pattrib->bssid, mybssid, ETH_ALEN))) in sta2sta_data_frame()
319 sta_addr = pattrib->src; in sta2sta_data_frame()
324 if (memcmp(pattrib->bssid, pattrib->src, ETH_ALEN)) in sta2sta_data_frame()
326 sta_addr = pattrib->bssid; in sta2sta_data_frame()
332 if (!is_multicast_ether_addr(pattrib->bssid)) in sta2sta_data_frame()
[all …]
H A Drtl8712_xmit.c53 struct pkt_attrib *pattrib) in r8712_txframes_sta_ac_pending() argument
57 int priority = pattrib->priority; in r8712_txframes_sta_ac_pending()
59 psta = pattrib->psta; in r8712_txframes_sta_ac_pending()
85 struct pkt_attrib *pattrib = &pxmitframe->attrib; in get_ff_hwaddr() local
94 switch (pattrib->priority) { in get_ff_hwaddr()
122 switch (pattrib->qsel) { in get_ff_hwaddr()
225 struct pkt_attrib *pattrib) in r8712_do_queue_select() argument
231 qsel = (unsigned int)pattrib->priority; in r8712_do_queue_select()
233 qsel = (unsigned int)pattrib->priority; in r8712_do_queue_select()
245 pattrib->qsel = qsel; in r8712_do_queue_select()
[all …]
H A Drtl8712_recv.c136 static void update_recvframe_attrib_from_recvstat(struct rx_pkt_attrib *pattrib, in update_recvframe_attrib_from_recvstat() argument
146 pattrib->bdecrypted = (le32_to_cpu(prxstat->rxdw0) & BIT(27)) == 0; in update_recvframe_attrib_from_recvstat()
147 pattrib->crc_err = (le32_to_cpu(prxstat->rxdw0) & BIT(14)) != 0; in update_recvframe_attrib_from_recvstat()
152 pattrib->tcpchk_valid = 1; /* valid */ in update_recvframe_attrib_from_recvstat()
154 pattrib->tcp_chkrpt = 1; /* correct */ in update_recvframe_attrib_from_recvstat()
156 pattrib->tcp_chkrpt = 0; /* incorrect */ in update_recvframe_attrib_from_recvstat()
158 pattrib->ip_chkrpt = 1; /* correct */ in update_recvframe_attrib_from_recvstat()
160 pattrib->ip_chkrpt = 0; /* incorrect */ in update_recvframe_attrib_from_recvstat()
162 pattrib->tcpchk_valid = 0; /* invalid */ in update_recvframe_attrib_from_recvstat()
164 pattrib->mcs_rate = (u8)((le32_to_cpu(prxstat->rxdw3)) & 0x3f); in update_recvframe_attrib_from_recvstat()
[all …]
H A Drtl871x_security.c158 struct pkt_attrib *pattrib = &((struct xmit_frame *) in r8712_wep_encrypt() local
167 if ((pattrib->encrypt == _WEP40_) || (pattrib->encrypt == _WEP104_)) { in r8712_wep_encrypt()
170 for (curfragnum = 0; curfragnum < pattrib->nr_frags; 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()
178 if ((curfragnum + 1) == pattrib->nr_frags) { in r8712_wep_encrypt()
179 length = pattrib->last_txcmdsz - in r8712_wep_encrypt()
180 pattrib->hdrlen - in r8712_wep_encrypt()
181 pattrib->iv_len - in r8712_wep_encrypt()
182 pattrib->icv_len; in r8712_wep_encrypt()
[all …]
H A Dxmit_linux.c65 void r8712_set_qos(struct pkt_file *ppktfile, struct pkt_attrib *pattrib) in r8712_set_qos() argument
75 if (pattrib->ether_type == 0x0800) { in r8712_set_qos()
85 if (pattrib->ether_type == 0x888e) in r8712_set_qos()
88 pattrib->priority = user_priority; in r8712_set_qos()
89 pattrib->hdrlen = WLAN_HDR_A3_QOS_LEN; in r8712_set_qos()
90 pattrib->subtype = WIFI_QOS_DATA_TYPE; in r8712_set_qos()
H A Dusb_ops_linux.c336 struct pkt_attrib *pattrib = &pxmitframe->attrib; in usb_write_port_complete() local
338 switch (pattrib->priority) { in usb_write_port_complete()
392 struct pkt_attrib *pattrib = &pxmitframe->attrib; in r8712_usb_write_port() local
402 switch (pattrib->priority) { in r8712_usb_write_port()
H A Dxmit_osdep.h45 struct pkt_attrib *pattrib);
H A Drtl8712_xmit.h99 struct pkt_attrib *pattrib);
H A Drtl871x_xmit.h268 struct pkt_attrib *pattrib);
270 struct pkt_attrib *pattrib);
/openbmc/linux/drivers/staging/rtl8723bs/core/
H A Drtw_xmit.c356 struct pkt_attrib *pattrib = &pxmitframe->attrib; in update_attrib_vcs_info() local
361 if (pattrib->nr_frags != 1) in update_attrib_vcs_info()
364 sz = pattrib->last_txcmdsz; in update_attrib_vcs_info()
372 pattrib->vcs_mode = RTS_CTS; in update_attrib_vcs_info()
374 if (pattrib->rtsen) in update_attrib_vcs_info()
375 pattrib->vcs_mode = RTS_CTS; in update_attrib_vcs_info()
376 else if (pattrib->cts2self) in update_attrib_vcs_info()
377 pattrib->vcs_mode = CTS_TO_SELF; in update_attrib_vcs_info()
379 pattrib->vcs_mode = NONE_VCS; in update_attrib_vcs_info()
384 if ((pmlmeinfo->assoc_AP_vendor == HT_IOT_PEER_ATHEROS) && (pattrib->ampdu_en == true) && in update_attrib_vcs_info()
[all …]
H A Drtw_recv.c454 struct rx_pkt_attrib *pattrib; in portctrl() local
462 pattrib = &pfhdr->attrib; in portctrl()
463 psta_addr = pattrib->ta; in portctrl()
535 struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib; in process_pwrbit_data() local
539 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
566 struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib; in process_wmmps_data() local
570 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_wmmps_data()
584 switch (pattrib->priority) { in process_wmmps_data()
610 issue_qos_nulldata(padapter, psta->hwaddr, (u16)pattrib->priority, 0, 0); in process_wmmps_data()
620 struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib; in count_rx_stats() local
[all …]
H A Drtw_mlme_ext.c1855 struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib; in OnAction_sa_query() local
1874 printk("pattrib->pktlen = %d =>", pattrib->pkt_len); in OnAction_sa_query()
1875 for (pp = 0; pp < pattrib->pkt_len; pp++) in OnAction_sa_query()
1960 void update_mgntframe_attrib(struct adapter *padapter, struct pkt_attrib *pattrib) in update_mgntframe_attrib() argument
1967 pattrib->hdrlen = 24; in update_mgntframe_attrib()
1968 pattrib->nr_frags = 1; in update_mgntframe_attrib()
1969 pattrib->priority = 7; in update_mgntframe_attrib()
1970 pattrib->mac_id = 0; in update_mgntframe_attrib()
1971 pattrib->qsel = 0x12; in update_mgntframe_attrib()
1973 pattrib->pktlen = 0; in update_mgntframe_attrib()
[all …]
H A Drtw_security.c49 struct pkt_attrib *pattrib = &((struct xmit_frame *)pxmitframe)->attrib; in rtw_wep_encrypt() local
61 if ((pattrib->encrypt == _WEP40_) || (pattrib->encrypt == _WEP104_)) { in rtw_wep_encrypt()
64 for (curfragnum = 0; curfragnum < pattrib->nr_frags; curfragnum++) { 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()
70 if ((curfragnum+1) == pattrib->nr_frags) { /* the last fragment */ in rtw_wep_encrypt()
72 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt()
81 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt()
473 struct pkt_attrib *pattrib = &((struct xmit_frame *)pxmitframe)->attrib; in rtw_tkip_encrypt() local
486 if (pattrib->encrypt == _TKIP_) { in rtw_tkip_encrypt()
[all …]
/openbmc/linux/drivers/staging/rtl8723bs/hal/
H A Drtl8723bs_recv.c24 struct rx_pkt_attrib *pattrib; in update_recvframe_attrib() local
35 pattrib = &precvframe->u.hdr.attrib; in update_recvframe_attrib()
36 memset(pattrib, 0, sizeof(struct rx_pkt_attrib)); in update_recvframe_attrib()
39 pattrib->pkt_rpt_type = prxreport->c2h_ind ? C2H_PACKET : NORMAL_RX; in update_recvframe_attrib()
41 if (pattrib->pkt_rpt_type == NORMAL_RX) { in update_recvframe_attrib()
44 pattrib->pkt_len = (u16)prxreport->pktlen; in update_recvframe_attrib()
45 pattrib->drvinfo_sz = (u8)(prxreport->drvinfosize << 3); in update_recvframe_attrib()
46 pattrib->physt = (u8)prxreport->physt; in update_recvframe_attrib()
48 pattrib->crc_err = (u8)prxreport->crc32; in update_recvframe_attrib()
49 pattrib->icv_err = (u8)prxreport->icverr; in update_recvframe_attrib()
[all …]
H A Drtl8723b_rxdesc.c12 struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib; in process_rssi() local
24 signal_stat->total_val += pattrib->phy_info.SignalStrength; in process_rssi()
32 struct rx_pkt_attrib *pattrib; in process_link_qual() local
38 pattrib = &prframe->u.hdr.attrib; in process_link_qual()
48 signal_stat->total_val += pattrib->phy_info.SignalQuality; in process_link_qual()
H A Drtl8723b_hal_init.c2461 u8 BWMapping_8723B(struct adapter *Adapter, struct pkt_attrib *pattrib) in BWMapping_8723B() argument
2467 if (pattrib->bwmode == CHANNEL_WIDTH_40) in BWMapping_8723B()
2480 u8 SCMapping_8723B(struct adapter *Adapter, struct pkt_attrib *pattrib) in SCMapping_8723B() argument
2486 if (pattrib->bwmode == CHANNEL_WIDTH_40) { in SCMapping_8723B()
2488 } else if (pattrib->bwmode == CHANNEL_WIDTH_20) { in SCMapping_8723B()
2527 static u8 fill_txdesc_sectype(struct pkt_attrib *pattrib) in fill_txdesc_sectype() argument
2530 if ((pattrib->encrypt > 0) && !pattrib->bswenc) { in fill_txdesc_sectype()
2531 switch (pattrib->encrypt) { in fill_txdesc_sectype()
2552 static void fill_txdesc_vcs_8723b(struct adapter *padapter, struct pkt_attrib *pattrib, struct txde… in fill_txdesc_vcs_8723b() argument
2554 if (pattrib->vcs_mode) { in fill_txdesc_vcs_8723b()
[all …]
H A Drtl8723b_cmd.c499 struct pkt_attrib *pattrib; in rtl8723b_set_FwRsvdPagePkt() local
611 pattrib = &pcmdframe->attrib; in rtl8723b_set_FwRsvdPagePkt()
612 update_mgntframe_attrib(padapter, pattrib); in rtl8723b_set_FwRsvdPagePkt()
613 pattrib->qsel = 0x10; in rtl8723b_set_FwRsvdPagePkt()
614 pattrib->pktlen = pattrib->last_txcmdsz = TotalPacketLen - TxDescOffset; in rtl8723b_set_FwRsvdPagePkt()
816 struct pkt_attrib *pattrib; in SetFwRsvdPagePkt_BTCoex() local
882 pattrib = &pcmdframe->attrib; in SetFwRsvdPagePkt_BTCoex()
883 update_mgntframe_attrib(padapter, pattrib); in SetFwRsvdPagePkt_BTCoex()
884 pattrib->qsel = 0x10; in SetFwRsvdPagePkt_BTCoex()
885 pattrib->pktlen = pattrib->last_txcmdsz = TotalPacketLen - TxDescOffset; in SetFwRsvdPagePkt_BTCoex()
H A Drtl8723bs_xmit.c441 struct pkt_attrib *pattrib; in rtl8723bs_mgnt_xmit() local
448 pattrib = &pmgntframe->attrib; in rtl8723bs_mgnt_xmit()
453 pxmitbuf->len = txdesc_size + pattrib->last_txcmdsz; in rtl8723bs_mgnt_xmit()
458 rtw_count_tx_stats(padapter, pmgntframe, pattrib->last_txcmdsz); in rtl8723bs_mgnt_xmit()
H A Dhal_com.c926 struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib; in rtw_store_phy_info() local
928 struct odm_phy_info *pPhyInfo = (PODM_PHY_INFO_T)(&pattrib->phy_info); in rtw_store_phy_info()
931 psample_pkt_rssi->data_rate = pattrib->data_rate; in rtw_store_phy_info()
932 isCCKrate = pattrib->data_rate <= DESC_RATE11M; in rtw_store_phy_info()
/openbmc/linux/drivers/staging/rtl8723bs/os_dep/
H A Drecv_linux.c58 struct rx_pkt_attrib *pattrib; in rtw_os_alloc_msdu_pkt() local
60 pattrib = &prframe->u.hdr.attrib; in rtw_os_alloc_msdu_pkt()
80 memcpy(skb_push(sub_skb, ETH_ALEN), pattrib->src, ETH_ALEN); in rtw_os_alloc_msdu_pkt()
81 memcpy(skb_push(sub_skb, ETH_ALEN), pattrib->dst, ETH_ALEN); in rtw_os_alloc_msdu_pkt()
87 memcpy(skb_push(sub_skb, ETH_ALEN), pattrib->src, ETH_ALEN); in rtw_os_alloc_msdu_pkt()
88 memcpy(skb_push(sub_skb, ETH_ALEN), pattrib->dst, ETH_ALEN); in rtw_os_alloc_msdu_pkt()
94 …_os_recv_indicate_pkt(struct adapter *padapter, struct sk_buff *pkt, struct rx_pkt_attrib *pattrib) in rtw_os_recv_indicate_pkt() argument
104 int bmcast = is_multicast_ether_addr(pattrib->dst); in rtw_os_recv_indicate_pkt()
106 if (memcmp(pattrib->dst, myid(&padapter->eeprompriv), ETH_ALEN)) { in rtw_os_recv_indicate_pkt()
111 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_os_recv_indicate_pkt()
[all …]
H A Dioctl_cfg80211.c2069 struct pkt_attrib *pattrib; in rtw_cfg80211_monitor_if_xmit_entry() local
2089 pattrib = &pmgntframe->attrib; in rtw_cfg80211_monitor_if_xmit_entry()
2090 update_mgntframe_attrib(padapter, pattrib); in rtw_cfg80211_monitor_if_xmit_entry()
2091 pattrib->retry_ctrl = false; in rtw_cfg80211_monitor_if_xmit_entry()
2098 pattrib->pktlen = len; in rtw_cfg80211_monitor_if_xmit_entry()
2103 pattrib->seqnum = pmlmeext->mgnt_seq; in rtw_cfg80211_monitor_if_xmit_entry()
2106 pattrib->last_txcmdsz = pattrib->pktlen; in rtw_cfg80211_monitor_if_xmit_entry()
2478 struct pkt_attrib *pattrib; in _cfg80211_rtw_mgmt_tx() local
2504 pattrib = &pmgntframe->attrib; in _cfg80211_rtw_mgmt_tx()
2505 update_mgntframe_attrib(padapter, pattrib); in _cfg80211_rtw_mgmt_tx()
[all …]
/openbmc/linux/drivers/staging/rtl8723bs/include/
H A Drecv_osdep.h35 …os_recv_indicate_pkt(struct adapter *padapter, struct sk_buff *pkt, struct rx_pkt_attrib *pattrib);
H A Drtw_xmit.h442 extern s32 rtw_make_wlanhdr(struct adapter *padapter, u8 *hdr, struct pkt_attrib *pattrib);
454 extern u32 rtw_calculate_wlan_pkt_size_by_attribue(struct pkt_attrib *pattrib);
/openbmc/linux/fs/smb/client/
H A Dxattr.c48 __u32 *pattrib = (__u32 *)value; in cifs_attrib_set() local
56 attrib = *pattrib; in cifs_attrib_set()

12