Searched refs:pxmitframe (Results 1 - 31 of 31) sorted by relevance

/linux-4.1.27/drivers/staging/rtl8712/
H A Drtl8712_xmit.c38 struct xmit_frame *pxmitframe);
39 static void update_txdesc(struct xmit_frame *pxmitframe, uint *pmem, int sz);
94 static u32 get_ff_hwaddr(struct xmit_frame *pxmitframe) get_ff_hwaddr() argument
97 struct pkt_attrib *pattrib = &pxmitframe->attrib; get_ff_hwaddr()
98 struct _adapter *padapter = pxmitframe->padapter; get_ff_hwaddr()
101 if (pxmitframe->frame_tag == TXAGG_FRAMETAG) get_ff_hwaddr()
103 else if (pxmitframe->frame_tag == MGNT_FRAMETAG) get_ff_hwaddr()
167 struct xmit_frame *pxmitframe = NULL; dequeue_one_xmitframe() local
172 pxmitframe = LIST_CONTAINOR(xmitframe_plist, dequeue_one_xmitframe()
174 list_del_init(&pxmitframe->list); dequeue_one_xmitframe()
178 return pxmitframe; dequeue_one_xmitframe()
189 struct xmit_frame *pxmitframe = NULL; dequeue_xframe_ex() local
219 pxmitframe = dequeue_one_xmitframe(pxmitpriv, phwxmit, dequeue_xframe_ex()
221 if (pxmitframe) { dequeue_xframe_ex()
237 return pxmitframe; dequeue_xframe_ex()
284 struct xmit_frame *pxmitframe = (struct xmit_frame *) r8712_construct_txaggr_cmd_hdr() local
286 struct _adapter *padapter = pxmitframe->padapter; r8712_construct_txaggr_cmd_hdr()
301 struct xmit_frame *pxmitframe) r8712_append_mpdu_unit()
303 struct _adapter *padapter = pxmitframe->padapter; r8712_append_mpdu_unit()
309 r8712_xmitframe_coalesce(padapter, pxmitframe->pkt, pxmitframe); r8712_append_mpdu_unit()
311 r8712_xmit_complete(padapter, pxmitframe); r8712_append_mpdu_unit()
312 if (pxmitframe->attrib.ether_type != 0x0806) { r8712_append_mpdu_unit()
313 if ((pxmitframe->attrib.ether_type != 0x888e) && r8712_append_mpdu_unit()
314 (pxmitframe->attrib.dhcp_pkt != 1)) { r8712_append_mpdu_unit()
316 pxmitframe->attrib.priority); r8712_append_mpdu_unit()
319 pxmitframe->last[0] = 1; r8712_append_mpdu_unit()
320 update_txdesc(pxmitframe, (uint *)(pxmitframe->buf_addr), r8712_append_mpdu_unit()
321 pxmitframe->attrib.last_txcmdsz); r8712_append_mpdu_unit()
323 last_txcmdsz = pxmitframe->attrib.last_txcmdsz; r8712_append_mpdu_unit()
329 *(pxmitframe->buf_addr+TXDESC_SIZE+last_txcmdsz+i) = 0; r8712_append_mpdu_unit()
341 struct xmit_frame *pxmitframe) r8712_xmitframe_aggr_1st()
344 pxmitframe->pxmitbuf = pxmitbuf; r8712_xmitframe_aggr_1st()
345 pxmitbuf->priv_data = pxmitframe; r8712_xmitframe_aggr_1st()
346 pxmitframe->pxmit_urb[0] = pxmitbuf->pxmit_urb[0]; r8712_xmitframe_aggr_1st()
348 pxmitframe->buf_addr = pxmitbuf->pbuf+TXDESC_SIZE+CMD_HDR_SZ; r8712_xmitframe_aggr_1st()
352 if (r8712_append_mpdu_unit(pxmitbuf, pxmitframe) == _SUCCESS) r8712_xmitframe_aggr_1st()
359 struct xmit_frame *pxmitframe) r8712_xmitframe_aggr_next()
361 pxmitframe->pxmitbuf = pxmitbuf; r8712_xmitframe_aggr_next()
362 pxmitbuf->priv_data = pxmitframe; r8712_xmitframe_aggr_next()
363 pxmitframe->pxmit_urb[0] = pxmitbuf->pxmit_urb[0]; r8712_xmitframe_aggr_next()
365 pxmitframe->buf_addr = pxmitbuf->pbuf + TXDESC_SIZE + r8712_xmitframe_aggr_next()
367 if (r8712_append_mpdu_unit(pxmitbuf, pxmitframe) == _SUCCESS) { r8712_xmitframe_aggr_next()
368 r8712_free_xmitframe_ex(&pxmitframe->padapter->xmitpriv, r8712_xmitframe_aggr_next()
369 pxmitframe); r8712_xmitframe_aggr_next()
378 struct xmit_frame *pxmitframe) r8712_dump_aggr_xframe()
380 struct _adapter *padapter = pxmitframe->padapter; r8712_dump_aggr_xframe()
388 xmitframe_xmitbuf_attach(pxmitframe, pxmitbuf); r8712_dump_aggr_xframe()
395 pxmitframe->last[0] = 1; r8712_dump_aggr_xframe()
396 pxmitframe->bpending[0] = false; r8712_dump_aggr_xframe()
397 pxmitframe->mem_addr = pxmitbuf->pbuf; r8712_dump_aggr_xframe()
410 r8712_write_port(pxmitframe->padapter, RTL8712_DMA_H2CCMD, r8712_dump_aggr_xframe()
411 total_length+TXDESC_SIZE, (u8 *)pxmitframe); r8712_dump_aggr_xframe()
418 static void update_txdesc(struct xmit_frame *pxmitframe, uint *pmem, int sz) update_txdesc() argument
421 struct _adapter *padapter = pxmitframe->padapter; update_txdesc()
425 struct pkt_attrib *pattrib = &pxmitframe->attrib; update_txdesc()
461 if (pxmitframe->frame_tag == DATA_FRAMETAG) { update_txdesc()
467 if ((u8 *)pmem != (u8 *)pxmitframe->pxmitbuf->pbuf) { update_txdesc()
571 } else if (pxmitframe->frame_tag == MGNT_FRAMETAG) { update_txdesc()
594 } else if (pxmitframe->frame_tag == TXAGG_FRAMETAG) { update_txdesc()
619 struct xmit_frame *pxmitframe = NULL; r8712_xmitframe_complete() local
637 pxmitframe = dequeue_xframe_ex(pxmitpriv, phwxmits, hwentry); r8712_xmitframe_complete()
639 if (pxmitframe != NULL) { r8712_xmitframe_complete()
648 if (pxmitframe->frame_tag != DATA_FRAMETAG) { r8712_xmitframe_complete()
657 r8712_xmitframe_aggr_1st(pxmitbuf, pxmitframe); r8712_xmitframe_complete()
677 r8712_dump_aggr_xframe(pxmitbuf, pxmitframe); r8712_xmitframe_complete()
681 xmitframe_xmitbuf_attach(pxmitframe, pxmitbuf); r8712_xmitframe_complete()
682 if (pxmitframe->frame_tag == DATA_FRAMETAG) { r8712_xmitframe_complete()
683 if (pxmitframe->attrib.priority <= 15) r8712_xmitframe_complete()
685 pxmitframe->pkt, pxmitframe); r8712_xmitframe_complete()
688 r8712_xmit_complete(padapter, pxmitframe); r8712_xmitframe_complete()
691 dump_xframe(padapter, pxmitframe); r8712_xmitframe_complete()
693 r8712_free_xmitframe_ex(pxmitpriv, pxmitframe); r8712_xmitframe_complete()
697 } else { /* pxmitframe == NULL && p2ndxmitframe == NULL */ r8712_xmitframe_complete()
705 struct xmit_frame *pxmitframe) dump_xframe()
710 struct pkt_attrib *pattrib = &pxmitframe->attrib; dump_xframe()
714 if (pxmitframe->attrib.ether_type != 0x0806) { dump_xframe()
715 if (pxmitframe->attrib.ether_type != 0x888e) dump_xframe()
718 mem_addr = pxmitframe->buf_addr; dump_xframe()
724 pxmitframe->last[t] = 0; dump_xframe()
727 pxmitframe->last[t] = 1; dump_xframe()
729 update_txdesc(pxmitframe, (uint *)mem_addr, sz); dump_xframe()
731 pxmitframe->mem_addr = mem_addr; dump_xframe()
732 pxmitframe->bpending[t] = false; dump_xframe()
733 ff_hwaddr = get_ff_hwaddr(pxmitframe); dump_xframe()
736 (unsigned char *)pxmitframe); dump_xframe()
739 (unsigned char *)pxmitframe); dump_xframe()
746 int r8712_xmit_direct(struct _adapter *padapter, struct xmit_frame *pxmitframe) r8712_xmit_direct() argument
750 res = r8712_xmitframe_coalesce(padapter, pxmitframe->pkt, pxmitframe); r8712_xmit_direct()
751 pxmitframe->pkt = NULL; r8712_xmit_direct()
753 dump_xframe(padapter, pxmitframe); r8712_xmit_direct()
757 int r8712_xmit_enqueue(struct _adapter *padapter, struct xmit_frame *pxmitframe) r8712_xmit_enqueue() argument
759 if (r8712_xmit_classifier(padapter, pxmitframe) == _FAIL) { r8712_xmit_enqueue()
760 pxmitframe->pkt = NULL; r8712_xmit_enqueue()
300 r8712_append_mpdu_unit(struct xmit_buf *pxmitbuf, struct xmit_frame *pxmitframe) r8712_append_mpdu_unit() argument
340 r8712_xmitframe_aggr_1st(struct xmit_buf *pxmitbuf, struct xmit_frame *pxmitframe) r8712_xmitframe_aggr_1st() argument
358 r8712_xmitframe_aggr_next(struct xmit_buf *pxmitbuf, struct xmit_frame *pxmitframe) r8712_xmitframe_aggr_next() argument
377 r8712_dump_aggr_xframe(struct xmit_buf *pxmitbuf, struct xmit_frame *pxmitframe) r8712_dump_aggr_xframe() argument
704 dump_xframe(struct _adapter *padapter, struct xmit_frame *pxmitframe) dump_xframe() argument
H A Dxmit_linux.c164 struct xmit_frame *pxmitframe = NULL; r8712_xmit_entry() local
173 pxmitframe = r8712_alloc_xmitframe(pxmitpriv); r8712_xmit_entry()
174 if (pxmitframe == NULL) { r8712_xmit_entry()
178 if ((!r8712_update_attrib(padapter, pkt, &pxmitframe->attrib))) { r8712_xmit_entry()
183 pxmitframe->pkt = pkt; r8712_xmit_entry()
184 if (r8712_pre_xmit(padapter, pxmitframe) == true) { r8712_xmit_entry()
187 pxmitframe->pkt = NULL; r8712_xmit_entry()
190 pxmitpriv->tx_bytes += pxmitframe->attrib.last_txcmdsz; r8712_xmit_entry()
193 if (pxmitframe) r8712_xmit_entry()
194 r8712_free_xmitframe(pxmitpriv, pxmitframe); r8712_xmit_entry()
H A Drtl871x_xmit.c164 struct xmit_frame *pxmitframe = (struct xmit_frame *) _free_xmit_priv() local
171 r8712_xmit_complete(padapter, pxmitframe); _free_xmit_priv()
172 pxmitframe++; _free_xmit_priv()
346 struct xmit_frame *pxmitframe) xmitframe_addmic()
353 struct pkt_attrib *pattrib = &pxmitframe->attrib; xmitframe_addmic()
370 pframe = pxmitframe->buf_addr + TXDESC_OFFSET; xmitframe_addmic()
409 priority[0] = (u8)pxmitframe-> xmitframe_addmic()
450 struct xmit_frame *pxmitframe) xmitframe_swencrypt()
452 struct pkt_attrib *pattrib = &pxmitframe->attrib; xmitframe_swencrypt()
458 r8712_wep_encrypt(padapter, (u8 *)pxmitframe); xmitframe_swencrypt()
461 r8712_tkip_encrypt(padapter, (u8 *)pxmitframe); xmitframe_swencrypt()
464 r8712_aes_encrypt(padapter, (u8 *)pxmitframe); xmitframe_swencrypt()
576 * 2. create wlan_header, based on the info in pxmitframe
579 * 5. move frag chunk from pframe to pxmitframe->mem
583 struct xmit_frame *pxmitframe) r8712_xmitframe_coalesce()
596 struct pkt_attrib *pattrib = &pxmitframe->attrib; r8712_xmitframe_coalesce()
603 if (pxmitframe->buf_addr == NULL) r8712_xmitframe_coalesce()
605 pbuf_start = pxmitframe->buf_addr; r8712_xmitframe_coalesce()
699 if (xmitframe_addmic(padapter, pxmitframe) == _FAIL) r8712_xmitframe_coalesce()
701 xmitframe_swencrypt(padapter, pxmitframe); r8712_xmitframe_coalesce()
820 struct xmit_frame *pxmitframe) r8712_free_xmitframe()
826 if (pxmitframe == NULL) r8712_free_xmitframe()
829 list_del_init(&pxmitframe->list); r8712_free_xmitframe()
830 if (pxmitframe->pkt) r8712_free_xmitframe()
831 pxmitframe->pkt = NULL; r8712_free_xmitframe()
832 list_add_tail(&pxmitframe->list, &pfree_xmit_queue->queue); r8712_free_xmitframe()
840 struct xmit_frame *pxmitframe) r8712_free_xmitframe_ex()
842 if (pxmitframe == NULL) r8712_free_xmitframe_ex()
844 if (pxmitframe->frame_tag == DATA_FRAMETAG) r8712_free_xmitframe_ex()
845 r8712_free_xmitframe(pxmitpriv, pxmitframe); r8712_free_xmitframe_ex()
853 struct xmit_frame *pxmitframe; r8712_free_xmitframe_queue() local
859 pxmitframe = LIST_CONTAINOR(plist, struct xmit_frame, list); r8712_free_xmitframe_queue()
861 r8712_free_xmitframe(pxmitpriv, pxmitframe); r8712_free_xmitframe_queue()
905 * Will enqueue pxmitframe to the proper queue, and indicate it
909 struct xmit_frame *pxmitframe) r8712_xmit_classifier()
915 struct pkt_attrib *pattrib = &pxmitframe->attrib; r8712_xmit_classifier()
940 list_add_tail(&pxmitframe->list, &ptxservq->sta_pending.queue); r8712_xmit_classifier()
1008 void xmitframe_xmitbuf_attach(struct xmit_frame *pxmitframe, xmitframe_xmitbuf_attach() argument
1011 /* pxmitbuf attach to pxmitframe */ xmitframe_xmitbuf_attach()
1012 pxmitframe->pxmitbuf = pxmitbuf; xmitframe_xmitbuf_attach()
1014 pxmitframe->pxmit_urb[0] = pxmitbuf->pxmit_urb[0]; xmitframe_xmitbuf_attach()
1016 pxmitframe->buf_addr = pxmitbuf->pbuf; xmitframe_xmitbuf_attach()
1017 /* pxmitframe attach to pxmitbuf */ xmitframe_xmitbuf_attach()
1018 pxmitbuf->priv_data = pxmitframe; xmitframe_xmitbuf_attach()
1028 int r8712_pre_xmit(struct _adapter *padapter, struct xmit_frame *pxmitframe) r8712_pre_xmit() argument
1034 struct pkt_attrib *pattrib = &pxmitframe->attrib; r8712_pre_xmit()
1040 r8712_xmit_enqueue(padapter, pxmitframe); r8712_pre_xmit()
1047 r8712_xmit_enqueue(padapter, pxmitframe); r8712_pre_xmit()
1052 xmitframe_xmitbuf_attach(pxmitframe, pxmitbuf); r8712_pre_xmit()
1053 r8712_xmit_direct(padapter, pxmitframe); r8712_pre_xmit()
345 xmitframe_addmic(struct _adapter *padapter, struct xmit_frame *pxmitframe) xmitframe_addmic() argument
449 xmitframe_swencrypt(struct _adapter *padapter, struct xmit_frame *pxmitframe) xmitframe_swencrypt() argument
582 r8712_xmitframe_coalesce(struct _adapter *padapter, _pkt *pkt, struct xmit_frame *pxmitframe) r8712_xmitframe_coalesce() argument
819 r8712_free_xmitframe(struct xmit_priv *pxmitpriv, struct xmit_frame *pxmitframe) r8712_free_xmitframe() argument
839 r8712_free_xmitframe_ex(struct xmit_priv *pxmitpriv, struct xmit_frame *pxmitframe) r8712_free_xmitframe_ex() argument
908 r8712_xmit_classifier(struct _adapter *padapter, struct xmit_frame *pxmitframe) r8712_xmit_classifier() argument
H A Dusb_ops_linux.c347 struct xmit_frame *pxmitframe = (struct xmit_frame *)purb->context; usb_write_port_complete() local
348 struct xmit_buf *pxmitbuf = pxmitframe->pxmitbuf; usb_write_port_complete()
349 struct _adapter *padapter = pxmitframe->padapter; usb_write_port_complete()
351 struct pkt_attrib *pattrib = &pxmitframe->attrib; usb_write_port_complete()
374 if (purb == pxmitframe->pxmit_urb[i]) { usb_write_port_complete()
375 pxmitframe->bpending[i] = false; usb_write_port_complete()
390 r8712_free_xmitframe_ex(pxmitpriv, pxmitframe); usb_write_port_complete()
405 struct xmit_frame *pxmitframe = (struct xmit_frame *)wmem; r8712_usb_write_port() local
407 struct pkt_attrib *pattrib = &pxmitframe->attrib; r8712_usb_write_port()
413 if (pxmitframe->bpending[i] == false) { r8712_usb_write_port()
416 pxmitframe->bpending[i] = true; r8712_usb_write_port()
437 pxmitframe->sz[i] = (u16)cnt; r8712_usb_write_port()
438 purb = pxmitframe->pxmit_urb[i]; r8712_usb_write_port()
459 pxmitframe->mem_addr, r8712_usb_write_port()
461 pxmitframe); /* context is xmit_frame */ r8712_usb_write_port()
H A Drtl871x_xmit.h272 struct xmit_frame *pxmitframe);
276 struct xmit_frame *pxmitframe);
278 struct xmit_frame *pxmitframe);
289 struct xmit_frame *pxmitframe);
290 int r8712_pre_xmit(struct _adapter *padapter, struct xmit_frame *pxmitframe);
292 struct xmit_frame *pxmitframe);
293 int r8712_xmit_direct(struct _adapter *padapter, struct xmit_frame *pxmitframe);
296 void xmitframe_xmitbuf_attach(struct xmit_frame *pxmitframe,
H A Drtl8712_xmit.h118 struct xmit_frame *pxmitframe);
120 struct xmit_frame *pxmitframe);
H A Drtl871x_security.h213 u32 r8712_aes_encrypt(struct _adapter *padapter, u8 *pxmitframe);
214 u32 r8712_tkip_encrypt(struct _adapter *padapter, u8 *pxmitframe);
215 void r8712_wep_encrypt(struct _adapter *padapter, u8 *pxmitframe);
H A Drtl871x_security.c167 void r8712_wep_encrypt(struct _adapter *padapter, u8 *pxmitframe) r8712_wep_encrypt() argument
175 pxmitframe)->attrib; r8712_wep_encrypt()
179 if (((struct xmit_frame *)pxmitframe)->buf_addr == NULL) r8712_wep_encrypt()
181 pframe = ((struct xmit_frame *)pxmitframe)->buf_addr+TXDESC_OFFSET; r8712_wep_encrypt()
573 u32 r8712_tkip_encrypt(struct _adapter *padapter, u8 *pxmitframe) r8712_tkip_encrypt() argument
586 struct pkt_attrib *pattrib = &((struct xmit_frame *)pxmitframe)->attrib; r8712_tkip_encrypt()
590 if (((struct xmit_frame *)pxmitframe)->buf_addr == NULL) r8712_tkip_encrypt()
593 pframe = ((struct xmit_frame *)pxmitframe)->buf_addr+TXDESC_OFFSET; r8712_tkip_encrypt()
1151 u32 r8712_aes_encrypt(struct _adapter *padapter, u8 *pxmitframe) r8712_aes_encrypt() argument
1158 pxmitframe)->attrib; r8712_aes_encrypt()
1162 if (((struct xmit_frame *)pxmitframe)->buf_addr == NULL) r8712_aes_encrypt()
1164 pframe = ((struct xmit_frame *)pxmitframe)->buf_addr + TXDESC_OFFSET; r8712_aes_encrypt()
/linux-4.1.27/drivers/staging/rtl8723au/hal/
H A Drtl8723au_xmit.c133 static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz) update_txdesc() argument
137 struct rtw_adapter *padapter = pxmitframe->padapter; update_txdesc()
138 struct pkt_attrib *pattrib = &pxmitframe->attrib; update_txdesc()
149 pxmitframe->pkt_offset--; update_txdesc()
154 if (pxmitframe->frame_tag == DATA_FRAMETAG) { update_txdesc()
206 } else if (pxmitframe->frame_tag == MGNT_FRAMETAG) { update_txdesc()
217 if (pxmitframe->ack_report) update_txdesc()
231 } else if (pxmitframe->frame_tag == TXAGG_FRAMETAG) { update_txdesc()
232 DBG_8723A("pxmitframe->frame_tag == TXAGG_FRAMETAG\n"); update_txdesc()
234 DBG_8723A("pxmitframe->frame_tag = %d\n", update_txdesc()
235 pxmitframe->frame_tag); update_txdesc()
280 if (pxmitframe->pkt_offset > 0) update_txdesc()
281 ptxdesc->txdw1 |= cpu_to_le32((pxmitframe->pkt_offset << 26) & 0x7c000000); update_txdesc()
288 struct xmit_frame *pxmitframe) rtw_dump_xframe()
295 struct xmit_buf *pxmitbuf = pxmitframe->pxmitbuf; rtw_dump_xframe()
296 struct pkt_attrib *pattrib = &pxmitframe->attrib; rtw_dump_xframe()
299 if (pxmitframe->frame_tag == DATA_FRAMETAG && rtw_dump_xframe()
300 pxmitframe->attrib.ether_type != ETH_P_ARP && rtw_dump_xframe()
301 pxmitframe->attrib.ether_type != ETH_P_PAE && rtw_dump_xframe()
302 pxmitframe->attrib.dhcp_pkt != 1) rtw_dump_xframe()
303 rtw_issue_addbareq_cmd23a(padapter, pxmitframe); rtw_dump_xframe()
305 mem_addr = pxmitframe->buf_addr; rtw_dump_xframe()
324 pull = update_txdesc(pxmitframe, mem_addr, sz); rtw_dump_xframe()
329 pxmitframe->buf_addr = mem_addr; rtw_dump_xframe()
336 ff_hwaddr = rtw_get_ff_hwaddr23a(pxmitframe); rtw_dump_xframe()
339 rtw_count_tx_stats23a(padapter, pxmitframe, sz); rtw_dump_xframe()
349 rtw_free_xmitframe23a(pxmitpriv, pxmitframe); rtw_dump_xframe()
362 struct xmit_frame *pxmitframe; rtl8723au_xmitframe_complete() local
376 pxmitframe = rtw_dequeue_xframe23a(pxmitpriv, phwxmits, hwentry); rtl8723au_xmitframe_complete()
378 if (pxmitframe) { rtl8723au_xmitframe_complete()
379 pxmitframe->pxmitbuf = pxmitbuf; rtl8723au_xmitframe_complete()
381 pxmitframe->buf_addr = pxmitbuf->pbuf; rtl8723au_xmitframe_complete()
383 pxmitbuf->priv_data = pxmitframe; rtl8723au_xmitframe_complete()
385 if (pxmitframe->frame_tag == DATA_FRAMETAG) { rtl8723au_xmitframe_complete()
386 if (pxmitframe->attrib.priority <= 15)/* TID0~15 */ rtl8723au_xmitframe_complete()
387 res = rtw_xmitframe_coalesce23a(padapter, pxmitframe->pkt, pxmitframe); rtl8723au_xmitframe_complete()
389 rtw_os_xmit_complete23a(padapter, pxmitframe);/* always return ndis_packet after rtw_xmitframe_coalesce23a */ rtl8723au_xmitframe_complete()
396 rtw_dump_xframe(padapter, pxmitframe); rtl8723au_xmitframe_complete()
399 rtw_free_xmitframe23a(pxmitpriv, pxmitframe); rtl8723au_xmitframe_complete()
410 struct xmit_frame *pxmitframe) xmitframe_direct()
414 res = rtw_xmitframe_coalesce23a(padapter, pxmitframe->pkt, pxmitframe); xmitframe_direct()
416 rtw_dump_xframe(padapter, pxmitframe); xmitframe_direct()
426 struct xmit_frame *pxmitframe) rtl8723au_hal_xmit()
431 struct pkt_attrib *pattrib = &pxmitframe->attrib; rtl8723au_hal_xmit()
438 if (xmitframe_enqueue_for_sleeping_sta23a(padapter, pxmitframe)) { rtl8723au_hal_xmit()
470 pxmitframe->pxmitbuf = pxmitbuf; rtl8723au_hal_xmit()
471 pxmitframe->buf_addr = pxmitbuf->pbuf; rtl8723au_hal_xmit()
472 pxmitbuf->priv_data = pxmitframe; rtl8723au_hal_xmit()
474 if (xmitframe_direct(padapter, pxmitframe) != _SUCCESS) { rtl8723au_hal_xmit()
476 rtw_free_xmitframe23a(pxmitpriv, pxmitframe); rtl8723au_hal_xmit()
481 res = rtw_xmitframe_enqueue23a(padapter, pxmitframe); rtl8723au_hal_xmit()
487 rtw_free_xmitframe23a(pxmitpriv, pxmitframe); rtl8723au_hal_xmit()
504 struct xmit_frame *pxmitframe) rtl8723au_hal_xmitframe_enqueue()
509 err = rtw_xmitframe_enqueue23a(padapter, pxmitframe); rtl8723au_hal_xmitframe_enqueue()
511 rtw_free_xmitframe23a(pxmitpriv, pxmitframe); rtl8723au_hal_xmitframe_enqueue()
287 rtw_dump_xframe(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe) rtw_dump_xframe() argument
409 xmitframe_direct(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe) xmitframe_direct() argument
425 rtl8723au_hal_xmit(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe) rtl8723au_hal_xmit() argument
503 rtl8723au_hal_xmitframe_enqueue(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe) rtl8723au_hal_xmitframe_enqueue() argument
/linux-4.1.27/drivers/staging/rtl8188eu/hal/
H A Drtl8188eu_xmit.c175 static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz, u8 bagg_pkt) update_txdesc() argument
180 struct adapter *adapt = pxmitframe->padapter; update_txdesc()
181 struct pkt_attrib *pattrib = &pxmitframe->attrib; update_txdesc()
210 if ((pull) && (pxmitframe->pkt_offset > 0)) update_txdesc()
211 pxmitframe->pkt_offset = pxmitframe->pkt_offset - 1; update_txdesc()
216 if (pxmitframe->pkt_offset > 0) update_txdesc()
217 ptxdesc->txdw1 |= cpu_to_le32((pxmitframe->pkt_offset << 26) & 0x7c000000); update_txdesc()
222 if ((pxmitframe->frame_tag & 0x0f) == DATA_FRAMETAG) { update_txdesc()
250 if (pxmitframe->agg_num > 1) update_txdesc()
251 ptxdesc->txdw5 |= cpu_to_le32((pxmitframe->agg_num << USB_TXAGG_NUM_SHT) & 0xFF000000); update_txdesc()
282 } else if ((pxmitframe->frame_tag&0x0f) == MGNT_FRAMETAG) { update_txdesc()
293 if (pxmitframe->ack_report) update_txdesc()
307 } else if ((pxmitframe->frame_tag&0x0f) == TXAGG_FRAMETAG) { update_txdesc()
308 DBG_88E("pxmitframe->frame_tag == TXAGG_FRAMETAG\n"); update_txdesc()
310 DBG_88E("pxmitframe->frame_tag = %d\n", pxmitframe->frame_tag); update_txdesc()
343 _dbg_dump_tx_info(adapt, pxmitframe->frame_tag, ptxdesc); update_txdesc()
348 static s32 rtw_dump_xframe(struct adapter *adapt, struct xmit_frame *pxmitframe) rtw_dump_xframe() argument
355 struct xmit_buf *pxmitbuf = pxmitframe->pxmitbuf; rtw_dump_xframe()
356 struct pkt_attrib *pattrib = &pxmitframe->attrib; rtw_dump_xframe()
359 if ((pxmitframe->frame_tag == DATA_FRAMETAG) && rtw_dump_xframe()
360 (pxmitframe->attrib.ether_type != 0x0806) && rtw_dump_xframe()
361 (pxmitframe->attrib.ether_type != 0x888e) && rtw_dump_xframe()
362 (pxmitframe->attrib.ether_type != 0x88b4) && rtw_dump_xframe()
363 (pxmitframe->attrib.dhcp_pkt != 1)) rtw_dump_xframe()
364 rtw_issue_addbareq_cmd(adapt, pxmitframe); rtw_dump_xframe()
365 mem_addr = pxmitframe->buf_addr; rtw_dump_xframe()
383 pull = update_txdesc(pxmitframe, mem_addr, sz, false); rtw_dump_xframe()
387 pxmitframe->buf_addr = mem_addr; rtw_dump_xframe()
392 ff_hwaddr = rtw_get_ff_hwaddr(pxmitframe); rtw_dump_xframe()
396 rtw_count_tx_stats(adapt, pxmitframe, sz); rtw_dump_xframe()
405 rtw_free_xmitframe(pxmitpriv, pxmitframe); rtw_dump_xframe()
413 static u32 xmitframe_need_length(struct xmit_frame *pxmitframe) xmitframe_need_length() argument
415 struct pkt_attrib *pattrib = &pxmitframe->attrib; xmitframe_need_length()
434 struct xmit_frame *pxmitframe = NULL; rtl8188eu_xmitframe_complete() local
466 rtw_free_xmitframe(pxmitpriv, pxmitframe); rtl8188eu_xmitframe_complete()
468 pxmitframe = rtw_dequeue_xframe(pxmitpriv, pxmitpriv->hwxmits, pxmitpriv->hwxmit_entry); rtl8188eu_xmitframe_complete()
469 if (pxmitframe == NULL) { rtl8188eu_xmitframe_complete()
475 pxmitframe->pxmitbuf = pxmitbuf; rtl8188eu_xmitframe_complete()
476 pxmitframe->buf_addr = pxmitbuf->pbuf; rtl8188eu_xmitframe_complete()
477 pxmitbuf->priv_data = pxmitframe; rtl8188eu_xmitframe_complete()
479 pxmitframe->agg_num = 1; /* alloc xmitframe should assign to 1. */ rtl8188eu_xmitframe_complete()
480 pxmitframe->pkt_offset = 1; /* first frame of aggregation, reserve offset */ rtl8188eu_xmitframe_complete()
482 rtw_xmitframe_coalesce(adapt, pxmitframe->pkt, pxmitframe); rtl8188eu_xmitframe_complete()
485 rtw_os_xmit_complete(adapt, pxmitframe); rtl8188eu_xmitframe_complete()
491 pfirstframe = pxmitframe; rtl8188eu_xmitframe_complete()
537 pxmitframe = container_of(xmitframe_plist, struct xmit_frame, list); rtl8188eu_xmitframe_complete()
540 pxmitframe->agg_num = 0; /* not first frame of aggregation */ rtl8188eu_xmitframe_complete()
541 pxmitframe->pkt_offset = 0; /* not first frame of aggregation, no need to reserve offset */ rtl8188eu_xmitframe_complete()
543 len = xmitframe_need_length(pxmitframe) + TXDESC_SIZE + (pxmitframe->pkt_offset*PACKET_OFFSET_SZ); rtl8188eu_xmitframe_complete()
546 pxmitframe->agg_num = 1; rtl8188eu_xmitframe_complete()
547 pxmitframe->pkt_offset = 1; rtl8188eu_xmitframe_complete()
550 list_del_init(&pxmitframe->list); rtl8188eu_xmitframe_complete()
554 pxmitframe->buf_addr = pxmitbuf->pbuf + pbuf; rtl8188eu_xmitframe_complete()
556 rtw_xmitframe_coalesce(adapt, pxmitframe->pkt, pxmitframe); rtl8188eu_xmitframe_complete()
558 rtw_os_xmit_complete(adapt, pxmitframe); rtl8188eu_xmitframe_complete()
560 /* (len - TXDESC_SIZE) == pxmitframe->attrib.last_txcmdsz */ rtl8188eu_xmitframe_complete()
561 update_txdesc(pxmitframe, pxmitframe->buf_addr, pxmitframe->attrib.last_txcmdsz, true); rtl8188eu_xmitframe_complete()
564 rtw_free_xmitframe(pxmitpriv, pxmitframe); rtl8188eu_xmitframe_complete()
618 static s32 xmitframe_direct(struct adapter *adapt, struct xmit_frame *pxmitframe) xmitframe_direct() argument
622 res = rtw_xmitframe_coalesce(adapt, pxmitframe->pkt, pxmitframe); xmitframe_direct()
624 rtw_dump_xframe(adapt, pxmitframe); xmitframe_direct()
635 static s32 pre_xmitframe(struct adapter *adapt, struct xmit_frame *pxmitframe) pre_xmitframe() argument
640 struct pkt_attrib *pattrib = &pxmitframe->attrib; pre_xmitframe()
657 pxmitframe->pxmitbuf = pxmitbuf; pre_xmitframe()
658 pxmitframe->buf_addr = pxmitbuf->pbuf; pre_xmitframe()
659 pxmitbuf->priv_data = pxmitframe; pre_xmitframe()
661 if (xmitframe_direct(adapt, pxmitframe) != _SUCCESS) { pre_xmitframe()
663 rtw_free_xmitframe(pxmitpriv, pxmitframe); pre_xmitframe()
669 res = rtw_xmitframe_enqueue(adapt, pxmitframe); pre_xmitframe()
674 rtw_free_xmitframe(pxmitpriv, pxmitframe); pre_xmitframe()
695 s32 rtl8188eu_hal_xmit(struct adapter *adapt, struct xmit_frame *pxmitframe) rtl8188eu_hal_xmit() argument
697 return pre_xmitframe(adapt, pxmitframe); rtl8188eu_hal_xmit()
H A Dhal_intf.c194 s32 rtw_hal_xmit(struct adapter *adapt, struct xmit_frame *pxmitframe) rtw_hal_xmit() argument
197 return adapt->HalFunc.hal_xmit(adapt, pxmitframe); rtw_hal_xmit()
/linux-4.1.27/drivers/staging/rtl8188eu/core/
H A Drtw_xmit.c230 struct xmit_frame *pxmitframe = (struct xmit_frame *)pxmitpriv->pxmit_frame_buf; _rtw_free_xmit_priv() local
239 rtw_os_xmit_complete(padapter, pxmitframe); _rtw_free_xmit_priv()
241 pxmitframe++; _rtw_free_xmit_priv()
271 static void update_attrib_vcs_info(struct adapter *padapter, struct xmit_frame *pxmitframe) update_attrib_vcs_info() argument
274 struct pkt_attrib *pattrib = &pxmitframe->attrib; update_attrib_vcs_info()
627 static s32 xmitframe_addmic(struct adapter *padapter, struct xmit_frame *pxmitframe) xmitframe_addmic() argument
633 struct pkt_attrib *pattrib = &pxmitframe->attrib; xmitframe_addmic()
646 hw_hdr_offset = TXDESC_SIZE + (pxmitframe->pkt_offset * PACKET_OFFSET_SZ); xmitframe_addmic()
655 pframe = pxmitframe->buf_addr + hw_hdr_offset; xmitframe_addmic()
687 priority[0] = (u8)pxmitframe->attrib.priority; xmitframe_addmic()
746 static s32 xmitframe_swencrypt(struct adapter *padapter, struct xmit_frame *pxmitframe) xmitframe_swencrypt() argument
748 struct pkt_attrib *pattrib = &pxmitframe->attrib; xmitframe_swencrypt()
756 rtw_wep_encrypt(padapter, (u8 *)pxmitframe); xmitframe_swencrypt()
759 rtw_tkip_encrypt(padapter, (u8 *)pxmitframe); xmitframe_swencrypt()
762 rtw_aes_encrypt(padapter, (u8 *)pxmitframe); xmitframe_swencrypt()
963 2. create wlan_header, based on the info in pxmitframe
966 5. move frag chunk from pframe to pxmitframe->mem
970 s32 rtw_xmitframe_coalesce(struct adapter *padapter, struct sk_buff *pkt, struct xmit_frame *pxmitframe) rtw_xmitframe_coalesce() argument
979 struct pkt_attrib *pattrib = &pxmitframe->attrib; rtw_xmitframe_coalesce()
990 if (pxmitframe->buf_addr == NULL) { rtw_xmitframe_coalesce()
995 pbuf_start = pxmitframe->buf_addr; rtw_xmitframe_coalesce()
997 hw_hdr_offset = TXDESC_SIZE + (pxmitframe->pkt_offset * PACKET_OFFSET_SZ); rtw_xmitframe_coalesce()
1103 if (xmitframe_addmic(padapter, pxmitframe) == _FAIL) { rtw_xmitframe_coalesce()
1104 RT_TRACE(_module_rtl871x_xmit_c_, _drv_err_, ("xmitframe_addmic(padapter, pxmitframe) == _FAIL\n")); rtw_xmitframe_coalesce()
1105 DBG_88E("xmitframe_addmic(padapter, pxmitframe) == _FAIL\n"); rtw_xmitframe_coalesce()
1110 xmitframe_swencrypt(padapter, pxmitframe); rtw_xmitframe_coalesce()
1113 update_attrib_vcs_info(padapter, pxmitframe); rtw_xmitframe_coalesce()
1192 void rtw_count_tx_stats(struct adapter *padapter, struct xmit_frame *pxmitframe, int sz) rtw_count_tx_stats() argument
1199 if ((pxmitframe->frame_tag&0x0f) == DATA_FRAMETAG) { rtw_count_tx_stats()
1201 pmlmepriv->LinkDetectInfo.NumTxOkInPeriod += pxmitframe->agg_num; rtw_count_tx_stats()
1203 psta = pxmitframe->attrib.psta; rtw_count_tx_stats()
1206 pstats->tx_pkts += pxmitframe->agg_num; rtw_count_tx_stats()
1408 s32 rtw_free_xmitframe(struct xmit_priv *pxmitpriv, struct xmit_frame *pxmitframe) rtw_free_xmitframe() argument
1415 if (pxmitframe == NULL) { rtw_free_xmitframe()
1416 RT_TRACE(_module_rtl871x_xmit_c_, _drv_err_, ("====== rtw_free_xmitframe():pxmitframe == NULL!!!!!!!!!!\n")); rtw_free_xmitframe()
1422 list_del_init(&pxmitframe->list); rtw_free_xmitframe()
1424 if (pxmitframe->pkt) { rtw_free_xmitframe()
1425 pndis_pkt = pxmitframe->pkt; rtw_free_xmitframe()
1426 pxmitframe->pkt = NULL; rtw_free_xmitframe()
1429 list_add_tail(&pxmitframe->list, get_list_head(pfree_xmit_queue)); rtw_free_xmitframe()
1448 struct xmit_frame *pxmitframe; rtw_free_xmitframe_queue() local
1457 pxmitframe = container_of(plist, struct xmit_frame, list); rtw_free_xmitframe_queue()
1461 rtw_free_xmitframe(pxmitpriv, pxmitframe); rtw_free_xmitframe_queue()
1467 s32 rtw_xmitframe_enqueue(struct adapter *padapter, struct xmit_frame *pxmitframe) rtw_xmitframe_enqueue() argument
1469 if (rtw_xmit_classifier(padapter, pxmitframe) == _FAIL) { rtw_xmitframe_enqueue()
1472 /* pxmitframe->pkt = NULL; */ rtw_xmitframe_enqueue()
1482 struct xmit_frame *pxmitframe = NULL; dequeue_one_xmitframe() local
1488 pxmitframe = container_of(xmitframe_plist, struct xmit_frame, list); dequeue_one_xmitframe()
1492 list_del_init(&pxmitframe->list); dequeue_one_xmitframe()
1496 return pxmitframe; dequeue_one_xmitframe()
1505 struct xmit_frame *pxmitframe = NULL; rtw_dequeue_xframe() local
1533 pxmitframe = dequeue_one_xmitframe(pxmitpriv, phwxmit, ptxservq, pframe_queue); rtw_dequeue_xframe()
1535 if (pxmitframe) { rtw_dequeue_xframe()
1549 return pxmitframe; rtw_dequeue_xframe()
1589 * Will enqueue pxmitframe to the proper queue,
1592 s32 rtw_xmit_classifier(struct adapter *padapter, struct xmit_frame *pxmitframe) rtw_xmit_classifier() argument
1597 struct pkt_attrib *pattrib = &pxmitframe->attrib; rtw_xmit_classifier()
1621 list_add_tail(&pxmitframe->list, get_list_head(&ptxservq->sta_pending)); rtw_xmit_classifier()
1664 u32 rtw_get_ff_hwaddr(struct xmit_frame *pxmitframe) rtw_get_ff_hwaddr() argument
1667 struct pkt_attrib *pattrib = &pxmitframe->attrib; rtw_get_ff_hwaddr()
1722 struct xmit_frame *pxmitframe = NULL; rtw_xmit() local
1725 pxmitframe = rtw_alloc_xmitframe(pxmitpriv); rtw_xmit()
1726 if (pxmitframe == NULL) { rtw_xmit()
1727 RT_TRACE(_module_xmit_osdep_c_, _drv_err_, ("rtw_xmit: no more pxmitframe\n")); rtw_xmit()
1728 DBG_88E("DBG_TX_DROP_FRAME %s no more pxmitframe\n", __func__); rtw_xmit()
1732 res = update_attrib(padapter, *ppkt, &pxmitframe->attrib); rtw_xmit()
1736 rtw_free_xmitframe(pxmitpriv, pxmitframe); rtw_xmit()
1739 pxmitframe->pkt = *ppkt; rtw_xmit()
1743 do_queue_select(padapter, &pxmitframe->attrib); rtw_xmit()
1747 if (xmitframe_enqueue_for_sleeping_sta(padapter, pxmitframe)) { rtw_xmit()
1754 if (rtw_hal_xmit(padapter, pxmitframe) == false) rtw_xmit()
1762 int xmitframe_enqueue_for_sleeping_sta(struct adapter *padapter, struct xmit_frame *pxmitframe) xmitframe_enqueue_for_sleeping_sta() argument
1767 struct pkt_attrib *pattrib = &pxmitframe->attrib; xmitframe_enqueue_for_sleeping_sta()
1792 list_del_init(&pxmitframe->list); xmitframe_enqueue_for_sleeping_sta()
1794 list_add_tail(&pxmitframe->list, get_list_head(&psta->sleep_q)); xmitframe_enqueue_for_sleeping_sta()
1817 list_del_init(&pxmitframe->list); xmitframe_enqueue_for_sleeping_sta()
1819 list_add_tail(&pxmitframe->list, get_list_head(&psta->sleep_q)); xmitframe_enqueue_for_sleeping_sta()
1870 struct xmit_frame *pxmitframe; dequeue_xmitframes_to_sleeping_queue() local
1877 pxmitframe = container_of(plist, struct xmit_frame, list); dequeue_xmitframes_to_sleeping_queue()
1881 xmitframe_enqueue_for_sleeping_sta(padapter, pxmitframe); dequeue_xmitframes_to_sleeping_queue()
1883 pattrib = &pxmitframe->attrib; dequeue_xmitframes_to_sleeping_queue()
1935 struct xmit_frame *pxmitframe = NULL; wakeup_sta_to_xmit() local
1944 pxmitframe = container_of(xmitframe_plist, struct xmit_frame, list); wakeup_sta_to_xmit()
1948 list_del_init(&pxmitframe->list); wakeup_sta_to_xmit()
1950 switch (pxmitframe->attrib.priority) { wakeup_sta_to_xmit()
1972 pxmitframe->attrib.mdata = 1; wakeup_sta_to_xmit()
1974 pxmitframe->attrib.mdata = 0; wakeup_sta_to_xmit()
1979 pxmitframe->attrib.mdata = 1; wakeup_sta_to_xmit()
1980 pxmitframe->attrib.eosp = 0; wakeup_sta_to_xmit()
1982 pxmitframe->attrib.mdata = 0; wakeup_sta_to_xmit()
1983 pxmitframe->attrib.eosp = 1; wakeup_sta_to_xmit()
1987 pxmitframe->attrib.triggered = 1; wakeup_sta_to_xmit()
1990 if (rtw_hal_xmit(padapter, pxmitframe)) wakeup_sta_to_xmit()
1991 rtw_os_xmit_complete(padapter, pxmitframe); wakeup_sta_to_xmit()
2025 pxmitframe = container_of(xmitframe_plist, struct xmit_frame, list); wakeup_sta_to_xmit()
2029 list_del_init(&pxmitframe->list); wakeup_sta_to_xmit()
2033 pxmitframe->attrib.mdata = 1; wakeup_sta_to_xmit()
2035 pxmitframe->attrib.mdata = 0; wakeup_sta_to_xmit()
2037 pxmitframe->attrib.triggered = 1; wakeup_sta_to_xmit()
2040 if (rtw_hal_xmit(padapter, pxmitframe)) wakeup_sta_to_xmit()
2041 rtw_os_xmit_complete(padapter, pxmitframe); wakeup_sta_to_xmit()
2063 struct xmit_frame *pxmitframe = NULL; xmit_delivery_enabled_frames() local
2072 pxmitframe = container_of(xmitframe_plist, struct xmit_frame, list); xmit_delivery_enabled_frames()
2076 switch (pxmitframe->attrib.priority) { xmit_delivery_enabled_frames()
2099 list_del_init(&pxmitframe->list); xmit_delivery_enabled_frames()
2105 pxmitframe->attrib.mdata = 1; xmit_delivery_enabled_frames()
2106 pxmitframe->attrib.eosp = 0; xmit_delivery_enabled_frames()
2108 pxmitframe->attrib.mdata = 0; xmit_delivery_enabled_frames()
2109 pxmitframe->attrib.eosp = 1; xmit_delivery_enabled_frames()
2112 pxmitframe->attrib.triggered = 1; xmit_delivery_enabled_frames()
2114 if (rtw_hal_xmit(padapter, pxmitframe) == true) xmit_delivery_enabled_frames()
2115 rtw_os_xmit_complete(padapter, pxmitframe); xmit_delivery_enabled_frames()
H A Drtw_security.c141 void rtw_wep_encrypt(struct adapter *padapter, u8 *pxmitframe) rtw_wep_encrypt() argument
153 struct pkt_attrib *pattrib = &((struct xmit_frame *)pxmitframe)->attrib; rtw_wep_encrypt()
158 if (((struct xmit_frame *)pxmitframe)->buf_addr == NULL) rtw_wep_encrypt()
162 (((struct xmit_frame *)pxmitframe)->pkt_offset * PACKET_OFFSET_SZ); rtw_wep_encrypt()
164 pframe = ((struct xmit_frame *)pxmitframe)->buf_addr + hw_hdr_offset; rtw_wep_encrypt()
562 u32 rtw_tkip_encrypt(struct adapter *padapter, u8 *pxmitframe) rtw_tkip_encrypt() argument
576 struct pkt_attrib *pattrib = &((struct xmit_frame *)pxmitframe)->attrib; rtw_tkip_encrypt()
581 if (((struct xmit_frame *)pxmitframe)->buf_addr == NULL) rtw_tkip_encrypt()
585 (((struct xmit_frame *)pxmitframe)->pkt_offset * PACKET_OFFSET_SZ); rtw_tkip_encrypt()
586 pframe = ((struct xmit_frame *)pxmitframe)->buf_addr + hw_hdr_offset; rtw_tkip_encrypt()
1195 u32 rtw_aes_encrypt(struct adapter *padapter, u8 *pxmitframe) rtw_aes_encrypt() argument
1206 struct pkt_attrib *pattrib = &((struct xmit_frame *)pxmitframe)->attrib; rtw_aes_encrypt()
1213 if (((struct xmit_frame *)pxmitframe)->buf_addr == NULL) rtw_aes_encrypt()
1217 (((struct xmit_frame *)pxmitframe)->pkt_offset * PACKET_OFFSET_SZ); rtw_aes_encrypt()
1219 pframe = ((struct xmit_frame *)pxmitframe)->buf_addr + hw_hdr_offset; rtw_aes_encrypt()
H A Drtw_recv.c1033 struct xmit_frame *pxmitframe = NULL; validate_recv_ctrl_frame() local
1041 pxmitframe = container_of(xmitframe_plist, struct xmit_frame, list); validate_recv_ctrl_frame()
1045 list_del_init(&pxmitframe->list); validate_recv_ctrl_frame()
1050 pxmitframe->attrib.mdata = 1; validate_recv_ctrl_frame()
1052 pxmitframe->attrib.mdata = 0; validate_recv_ctrl_frame()
1054 pxmitframe->attrib.triggered = 1; validate_recv_ctrl_frame()
1057 if (rtw_hal_xmit(padapter, pxmitframe) == true) validate_recv_ctrl_frame()
1058 rtw_os_xmit_complete(padapter, pxmitframe); validate_recv_ctrl_frame()
H A Drtw_mlme_ext.c5506 struct xmit_frame *pxmitframe = NULL; tx_beacon_hdl() local
5522 pxmitframe = container_of(xmitframe_plist, struct xmit_frame, list); tx_beacon_hdl()
5526 list_del_init(&pxmitframe->list); tx_beacon_hdl()
5530 pxmitframe->attrib.mdata = 1; tx_beacon_hdl()
5532 pxmitframe->attrib.mdata = 0; tx_beacon_hdl()
5534 pxmitframe->attrib.triggered = 1; tx_beacon_hdl()
5536 pxmitframe->attrib.qsel = 0x11;/* HIQ */ tx_beacon_hdl()
5539 if (rtw_hal_xmit(padapter, pxmitframe)) tx_beacon_hdl()
5540 rtw_os_xmit_complete(padapter, pxmitframe); tx_beacon_hdl()
H A Drtw_mlme.c2092 void rtw_issue_addbareq_cmd(struct adapter *padapter, struct xmit_frame *pxmitframe) rtw_issue_addbareq_cmd() argument
2098 struct pkt_attrib *pattrib = &pxmitframe->attrib; rtw_issue_addbareq_cmd()
/linux-4.1.27/drivers/staging/rtl8723au/core/
H A Drtw_xmit.c238 static void update_attrib_vcs_info(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe) update_attrib_vcs_info() argument
241 struct pkt_attrib *pattrib = &pxmitframe->attrib; update_attrib_vcs_info()
636 struct xmit_frame *pxmitframe) { xmitframe_addmic()
639 struct pkt_attrib *pattrib = &pxmitframe->attrib; xmitframe_addmic()
676 pframe = pxmitframe->buf_addr + hw_hdr_offset; xmitframe_addmic()
715 priority[0] = (u8)pxmitframe->attrib.priority; xmitframe_addmic()
805 struct xmit_frame *pxmitframe) xmitframe_swencrypt()
807 struct pkt_attrib *pattrib = &pxmitframe->attrib; xmitframe_swencrypt()
817 rtw_wep_encrypt23a(padapter, pxmitframe); xmitframe_swencrypt()
820 rtw_tkip_encrypt23a(padapter, pxmitframe); xmitframe_swencrypt()
823 rtw_aes_encrypt23a(padapter, pxmitframe); xmitframe_swencrypt()
1057 2. create wlan_header, based on the info in pxmitframe
1060 5. move frag chunk from pframe to pxmitframe->mem
1065 struct xmit_frame *pxmitframe) rtw_xmitframe_coalesce23a()
1069 struct pkt_attrib *pattrib = &pxmitframe->attrib; rtw_xmitframe_coalesce23a()
1098 if (!pxmitframe->buf_addr) { rtw_xmitframe_coalesce23a()
1103 pbuf_start = pxmitframe->buf_addr; rtw_xmitframe_coalesce23a()
1225 if (xmitframe_addmic(padapter, pxmitframe) == _FAIL) { rtw_xmitframe_coalesce23a()
1227 "xmitframe_addmic(padapter, pxmitframe) == _FAIL\n"); rtw_xmitframe_coalesce23a()
1228 DBG_8723A("xmitframe_addmic(padapter, pxmitframe) == _FAIL\n"); rtw_xmitframe_coalesce23a()
1233 xmitframe_swencrypt(padapter, pxmitframe); rtw_xmitframe_coalesce23a()
1236 update_attrib_vcs_info(padapter, pxmitframe); rtw_xmitframe_coalesce23a()
1277 void rtw_count_tx_stats23a(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe, int sz) rtw_count_tx_stats23a() argument
1284 if (pxmitframe->frame_tag == DATA_FRAMETAG) { rtw_count_tx_stats23a()
1288 psta = pxmitframe->attrib.psta; rtw_count_tx_stats23a()
1511 s32 rtw_free_xmitframe23a(struct xmit_priv *pxmitpriv, struct xmit_frame *pxmitframe) rtw_free_xmitframe23a() argument
1517 if (pxmitframe == NULL) { rtw_free_xmitframe23a()
1519 "====== rtw_free_xmitframe23a():pxmitframe == NULL!!!!!!!!!!\n"); rtw_free_xmitframe23a()
1523 if (pxmitframe->pkt) { rtw_free_xmitframe23a()
1524 pndis_pkt = pxmitframe->pkt; rtw_free_xmitframe23a()
1525 pxmitframe->pkt = NULL; rtw_free_xmitframe23a()
1528 if (pxmitframe->ext_tag == 0) rtw_free_xmitframe23a()
1530 else if (pxmitframe->ext_tag == 1) rtw_free_xmitframe23a()
1537 list_del_init(&pxmitframe->list); rtw_free_xmitframe23a()
1538 list_add_tail(&pxmitframe->list, get_list_head(queue)); rtw_free_xmitframe23a()
1539 if (pxmitframe->ext_tag == 0) { rtw_free_xmitframe23a()
1544 } else if (pxmitframe->ext_tag == 1) { rtw_free_xmitframe23a()
1567 struct xmit_frame *pxmitframe; rtw_free_xmitframe_queue23a() local
1574 pxmitframe = container_of(plist, struct xmit_frame, list); list_for_each_safe()
1576 rtw_free_xmitframe23a(pxmitpriv, pxmitframe); list_for_each_safe()
1583 struct xmit_frame *pxmitframe) rtw_xmitframe_enqueue23a()
1585 if (rtw_xmit23a_classifier(padapter, pxmitframe) == _FAIL) { rtw_xmitframe_enqueue23a()
1599 struct xmit_frame *pxmitframe = NULL; dequeue_one_xmitframe() local
1604 pxmitframe = list_first_entry(phead, struct xmit_frame, list); dequeue_one_xmitframe()
1605 list_del_init(&pxmitframe->list); dequeue_one_xmitframe()
1608 return pxmitframe; dequeue_one_xmitframe()
1619 struct xmit_frame *pxmitframe = NULL; rtw_dequeue_xframe23a() local
1648 pxmitframe = dequeue_one_xmitframe(pxmitpriv, phwxmit, ptxservq, pframe_queue); list_for_each_safe()
1650 if (pxmitframe) { list_for_each_safe()
1664 return pxmitframe;
1706 * Will enqueue pxmitframe to the proper queue,
1710 struct xmit_frame *pxmitframe) rtw_xmit23a_classifier()
1714 struct pkt_attrib *pattrib = &pxmitframe->attrib; rtw_xmit23a_classifier()
1746 list_add_tail(&pxmitframe->list, get_list_head(&ptxservq->sta_pending)); rtw_xmit23a_classifier()
1826 u32 rtw_get_ff_hwaddr23a(struct xmit_frame *pxmitframe) rtw_get_ff_hwaddr23a() argument
1829 struct pkt_attrib *pattrib = &pxmitframe->attrib; rtw_get_ff_hwaddr23a()
1874 struct xmit_frame *pxmitframe = NULL; rtw_xmit23a() local
1877 pxmitframe = rtw_alloc_xmitframe(pxmitpriv); rtw_xmit23a()
1879 if (pxmitframe == NULL) { rtw_xmit23a()
1881 "rtw_xmit23a: no more pxmitframe\n"); rtw_xmit23a()
1885 res = update_attrib(padapter, skb, &pxmitframe->attrib); rtw_xmit23a()
1890 rtw_free_xmitframe23a(pxmitpriv, pxmitframe); rtw_xmit23a()
1893 pxmitframe->pkt = skb; rtw_xmit23a()
1895 pxmitframe->attrib.qsel = pxmitframe->attrib.priority; rtw_xmit23a()
1899 if (xmitframe_enqueue_for_sleeping_sta23a(padapter, pxmitframe)) { rtw_xmit23a()
1906 if (rtl8723au_hal_xmit(padapter, pxmitframe) == false) rtw_xmit23a()
1914 int xmitframe_enqueue_for_sleeping_sta23a(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe) xmitframe_enqueue_for_sleeping_sta23a() argument
1919 struct pkt_attrib *pattrib = &pxmitframe->attrib; xmitframe_enqueue_for_sleeping_sta23a()
1955 list_del_init(&pxmitframe->list); xmitframe_enqueue_for_sleeping_sta23a()
1959 list_add_tail(&pxmitframe->list, get_list_head(&psta->sleep_q)); xmitframe_enqueue_for_sleeping_sta23a()
1989 list_del_init(&pxmitframe->list); xmitframe_enqueue_for_sleeping_sta23a()
1993 list_add_tail(&pxmitframe->list, get_list_head(&psta->sleep_q)); xmitframe_enqueue_for_sleeping_sta23a()
2059 struct xmit_frame *pxmitframe; dequeue_xmitframes_to_sleeping_queue() local
2065 pxmitframe = container_of(plist, struct xmit_frame, list); list_for_each_safe()
2067 ret = xmitframe_enqueue_for_sleeping_sta23a(padapter, pxmitframe); list_for_each_safe()
2070 pattrib = &pxmitframe->attrib; list_for_each_safe()
2128 struct xmit_frame *pxmitframe = NULL; wakeup_sta_to_xmit23a() local
2137 pxmitframe = container_of(plist, struct xmit_frame, list); list_for_each_safe()
2138 list_del_init(&pxmitframe->list); list_for_each_safe()
2140 switch (pxmitframe->attrib.priority) { list_for_each_safe()
2162 pxmitframe->attrib.mdata = 1; list_for_each_safe()
2164 pxmitframe->attrib.mdata = 0; list_for_each_safe()
2169 pxmitframe->attrib.mdata = 1; list_for_each_safe()
2170 pxmitframe->attrib.eosp = 0; list_for_each_safe()
2172 pxmitframe->attrib.mdata = 0; list_for_each_safe()
2173 pxmitframe->attrib.eosp = 1; list_for_each_safe()
2177 pxmitframe->attrib.triggered = 1; list_for_each_safe()
2178 rtl8723au_hal_xmitframe_enqueue(padapter, pxmitframe); list_for_each_safe()
2213 pxmitframe = container_of(plist, struct xmit_frame, list_for_each_safe()
2216 list_del_init(&pxmitframe->list); list_for_each_safe()
2220 pxmitframe->attrib.mdata = 1; list_for_each_safe()
2222 pxmitframe->attrib.mdata = 0; list_for_each_safe()
2224 pxmitframe->attrib.triggered = 1; list_for_each_safe()
2225 rtl8723au_hal_xmitframe_enqueue(padapter, pxmitframe); list_for_each_safe()
2249 struct xmit_frame *pxmitframe; xmit_delivery_enabled_frames23a() local
2259 pxmitframe = container_of(plist, struct xmit_frame, list); list_for_each_safe()
2261 switch (pxmitframe->attrib.priority) { list_for_each_safe()
2284 list_del_init(&pxmitframe->list); list_for_each_safe()
2290 pxmitframe->attrib.mdata = 1; list_for_each_safe()
2291 pxmitframe->attrib.eosp = 0; list_for_each_safe()
2293 pxmitframe->attrib.mdata = 0; list_for_each_safe()
2294 pxmitframe->attrib.eosp = 1; list_for_each_safe()
2297 pxmitframe->attrib.triggered = 1; list_for_each_safe()
2299 rtl8723au_hal_xmitframe_enqueue(padapter, pxmitframe); list_for_each_safe()
635 xmitframe_addmic(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe) xmitframe_addmic() argument
804 xmitframe_swencrypt(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe) xmitframe_swencrypt() argument
1064 rtw_xmitframe_coalesce23a(struct rtw_adapter *padapter, struct sk_buff *skb, struct xmit_frame *pxmitframe) rtw_xmitframe_coalesce23a() argument
1582 rtw_xmitframe_enqueue23a(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe) rtw_xmitframe_enqueue23a() argument
1709 rtw_xmit23a_classifier(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe) rtw_xmit23a_classifier() argument
H A Drtw_security.c148 struct xmit_frame *pxmitframe) rtw_wep_encrypt23a()
158 struct pkt_attrib *pattrib = &pxmitframe->attrib; rtw_wep_encrypt23a()
162 if (!pxmitframe->buf_addr) rtw_wep_encrypt23a()
167 pframe = pxmitframe->buf_addr + hw_hdr_offset; rtw_wep_encrypt23a()
599 struct xmit_frame *pxmitframe) rtw_tkip_encrypt23a()
613 struct pkt_attrib *pattrib = &pxmitframe->attrib; rtw_tkip_encrypt23a()
621 if (!pxmitframe->buf_addr) rtw_tkip_encrypt23a()
626 pframe = pxmitframe->buf_addr + hw_hdr_offset; rtw_tkip_encrypt23a()
1283 struct xmit_frame *pxmitframe) rtw_aes_encrypt23a()
1291 struct pkt_attrib *pattrib = &pxmitframe->attrib; rtw_aes_encrypt23a()
1296 if (!pxmitframe->buf_addr) rtw_aes_encrypt23a()
1301 pframe = pxmitframe->buf_addr + hw_hdr_offset; rtw_aes_encrypt23a()
147 rtw_wep_encrypt23a(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe) rtw_wep_encrypt23a() argument
598 rtw_tkip_encrypt23a(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe) rtw_tkip_encrypt23a() argument
1282 rtw_aes_encrypt23a(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe) rtw_aes_encrypt23a() argument
H A Drtw_recv.c1104 struct xmit_frame *pxmitframe; validate_recv_ctrl_frame() local
1113 pxmitframe = container_of(xmitframe_plist, validate_recv_ctrl_frame()
1119 list_del_init(&pxmitframe->list); validate_recv_ctrl_frame()
1124 pxmitframe->attrib.mdata = 1; validate_recv_ctrl_frame()
1126 pxmitframe->attrib.mdata = 0; validate_recv_ctrl_frame()
1128 pxmitframe->attrib.triggered = 1; validate_recv_ctrl_frame()
1133 pxmitframe); validate_recv_ctrl_frame()
H A Drtw_mlme_ext.c6099 struct xmit_frame *pxmitframe; tx_beacon_hdl23a() local
6116 pxmitframe = container_of(plist, list_for_each_safe()
6120 list_del_init(&pxmitframe->list); list_for_each_safe()
6124 pxmitframe->attrib.mdata = 1; list_for_each_safe()
6126 pxmitframe->attrib.mdata = 0; list_for_each_safe()
6128 pxmitframe->attrib.triggered = 1; list_for_each_safe()
6130 pxmitframe->attrib.qsel = 0x11;/* HIQ */ list_for_each_safe()
6133 pxmitframe); list_for_each_safe()
H A Drtw_mlme.c2279 struct xmit_frame *pxmitframe) rtw_issue_addbareq_cmd23a()
2285 struct pkt_attrib *pattrib = &pxmitframe->attrib; rtw_issue_addbareq_cmd23a()
2278 rtw_issue_addbareq_cmd23a(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe) rtw_issue_addbareq_cmd23a() argument
/linux-4.1.27/drivers/staging/rtl8723au/include/
H A Drtw_xmit.h340 struct xmit_frame *pxmitframe, int sz);
345 struct xmit_frame *pxmitframe);
350 struct xmit_frame *pxmitframe);
354 struct xmit_frame *pxmitframe);
356 struct xmit_frame *pxmitframe);
372 struct xmit_frame *pxmitframe);
379 u32 rtw_get_ff_hwaddr23a(struct xmit_frame *pxmitframe);
H A Drtl8723a_xmit.h217 int rtl8723au_hal_xmitframe_enqueue(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe);
220 bool rtl8723au_hal_xmit(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe);
H A Drtw_security.h318 struct xmit_frame *pxmitframe);
320 struct xmit_frame *pxmitframe);
322 struct xmit_frame *pxmitframe);
H A Drtw_mlme.h330 struct xmit_frame *pxmitframe);
/linux-4.1.27/drivers/staging/rtl8188eu/include/
H A Drtw_xmit.h328 struct xmit_frame *pxmitframe, int sz);
336 struct xmit_frame *pxmitframe);
342 struct xmit_frame *pxmitframe);
347 struct xmit_frame *pxmitframe);
351 struct xmit_frame *pxmitframe);
365 int xmitframe_enqueue_for_sleeping_sta(struct adapter *padapter, struct xmit_frame *pxmitframe);
372 u32 rtw_get_ff_hwaddr(struct xmit_frame *pxmitframe);
H A Drtw_security.h349 u32 rtw_aes_encrypt(struct adapter *padapter, u8 *pxmitframe);
350 u32 rtw_tkip_encrypt(struct adapter *padapter, u8 *pxmitframe);
351 void rtw_wep_encrypt(struct adapter *padapter, u8 *pxmitframe);
H A Dhal_intf.h213 struct xmit_frame *pxmitframe);
285 s32 rtw_hal_xmit(struct adapter *padapter, struct xmit_frame *pxmitframe);
H A Drtw_mlme.h581 struct xmit_frame *pxmitframe);
/linux-4.1.27/drivers/staging/rtl8723au/os_dep/
H A Dusb_ops_linux.c125 struct xmit_frame *pxmitframe; rtl8723au_write_port() local
142 pxmitframe = (struct xmit_frame *)pxmitbuf->priv_data; rtl8723au_write_port()
175 pxmitframe->buf_addr, /* pxmitbuf->pbuf */ rtl8723au_write_port()
/linux-4.1.27/drivers/staging/rtl8188eu/os_dep/
H A Dusb_ops_linux.c705 struct xmit_frame *pxmitframe = (struct xmit_frame *)pxmitbuf->priv_data; usb_write_port() local
754 pxmitframe->buf_addr, /* pxmitbuf->pbuf */ usb_write_port()

Completed in 588 milliseconds