Lines Matching refs:pDevice

91 	struct vnt_private *pDevice,
105 struct vnt_private *pDevice,
119 s_cbFillTxBufHead(struct vnt_private *pDevice, unsigned char byPktType,
127 struct vnt_private *pDevice,
157 struct vnt_private *pDevice, in s_uGetTxRsvTime() argument
166 uDataTime = bb_get_frame_time(pDevice->preamble_type, byPktType, cbFrameLength, wRate); in s_uGetTxRsvTime()
175 uAckTime = bb_get_frame_time(pDevice->preamble_type, byPktType, 14, in s_uGetTxRsvTime()
177 pDevice->byTopCCKBasicRate : in s_uGetTxRsvTime()
178 pDevice->byTopOFDMBasicRate); in s_uGetTxRsvTime()
180 return uDataTime + pDevice->uSIFS + uAckTime; in s_uGetTxRsvTime()
232 struct vnt_private *pDevice, in s_uGetDataDuration() argument
258 uAckTime = bb_get_frame_time(pDevice->preamble_type, in s_uGetDataDuration()
260 pDevice->byTopCCKBasicRate); in s_uGetDataDuration()
268 uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, in s_uGetDataDuration()
272 return pDevice->uSIFS + uAckTime + uNextPktTime; in s_uGetDataDuration()
276 uAckTime = bb_get_frame_time(pDevice->preamble_type, in s_uGetDataDuration()
278 pDevice->byTopOFDMBasicRate); in s_uGetDataDuration()
286 uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, in s_uGetDataDuration()
290 return pDevice->uSIFS + uAckTime + uNextPktTime; in s_uGetDataDuration()
295 uAckTime = bb_get_frame_time(pDevice->preamble_type, in s_uGetDataDuration()
297 pDevice->byTopOFDMBasicRate); in s_uGetDataDuration()
317 uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, in s_uGetDataDuration()
321 return pDevice->uSIFS + uAckTime + uNextPktTime; in s_uGetDataDuration()
334 struct vnt_private *pDevice, in s_uGetRTSCTSDuration() argument
347 uCTSTime = bb_get_frame_time(pDevice->preamble_type, byPktType, 14, pDevice->byTopCCKBasicRate); in s_uGetRTSCTSDuration()
348 …uDurTime = uCTSTime + 2 * pDevice->uSIFS + s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, wRat… in s_uGetRTSCTSDuration()
352 uCTSTime = bb_get_frame_time(pDevice->preamble_type, byPktType, 14, pDevice->byTopCCKBasicRate); in s_uGetRTSCTSDuration()
353 …uDurTime = uCTSTime + 2 * pDevice->uSIFS + s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, wRat… in s_uGetRTSCTSDuration()
357 uCTSTime = bb_get_frame_time(pDevice->preamble_type, byPktType, 14, pDevice->byTopOFDMBasicRate); in s_uGetRTSCTSDuration()
358 …uDurTime = uCTSTime + 2 * pDevice->uSIFS + s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, wRat… in s_uGetRTSCTSDuration()
362 uDurTime = pDevice->uSIFS + s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, wRate, bNeedAck); in s_uGetRTSCTSDuration()
366 uCTSTime = bb_get_frame_time(pDevice->preamble_type, byPktType, 14, pDevice->byTopCCKBasicRate); in s_uGetRTSCTSDuration()
368 …uDurTime = uCTSTime + 2 * pDevice->uSIFS + s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, fb_o… in s_uGetRTSCTSDuration()
370 …uDurTime = uCTSTime + 2 * pDevice->uSIFS + s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, fb_o… in s_uGetRTSCTSDuration()
375 uCTSTime = bb_get_frame_time(pDevice->preamble_type, byPktType, 14, pDevice->byTopOFDMBasicRate); in s_uGetRTSCTSDuration()
377 …uDurTime = uCTSTime + 2 * pDevice->uSIFS + s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, fb_o… in s_uGetRTSCTSDuration()
379 …uDurTime = uCTSTime + 2 * pDevice->uSIFS + s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, fb_o… in s_uGetRTSCTSDuration()
384 uCTSTime = bb_get_frame_time(pDevice->preamble_type, byPktType, 14, pDevice->byTopCCKBasicRate); in s_uGetRTSCTSDuration()
386 …uDurTime = uCTSTime + 2 * pDevice->uSIFS + s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, fb_o… in s_uGetRTSCTSDuration()
388 …uDurTime = uCTSTime + 2 * pDevice->uSIFS + s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, fb_o… in s_uGetRTSCTSDuration()
393 uCTSTime = bb_get_frame_time(pDevice->preamble_type, byPktType, 14, pDevice->byTopOFDMBasicRate); in s_uGetRTSCTSDuration()
395 …uDurTime = uCTSTime + 2 * pDevice->uSIFS + s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, fb_o… in s_uGetRTSCTSDuration()
397 …uDurTime = uCTSTime + 2 * pDevice->uSIFS + s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, fb_o… in s_uGetRTSCTSDuration()
403 …uDurTime = pDevice->uSIFS + s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, fb_opt0[FB_RATE0][w… in s_uGetRTSCTSDuration()
405 …uDurTime = pDevice->uSIFS + s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, fb_opt1[FB_RATE0][w… in s_uGetRTSCTSDuration()
411 …uDurTime = pDevice->uSIFS + s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, fb_opt0[FB_RATE1][w… in s_uGetRTSCTSDuration()
413 …uDurTime = pDevice->uSIFS + s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, fb_opt1[FB_RATE1][w… in s_uGetRTSCTSDuration()
427 struct vnt_private *pDevice, in s_uFillDataHead() argument
453 vnt_get_phy_field(pDevice, cbFrameLength, wCurrentRate, in s_uFillDataHead()
456 vnt_get_phy_field(pDevice, cbFrameLength, in s_uFillDataHead()
457 pDevice->byTopCCKBasicRate, in s_uFillDataHead()
461 __le16 dur = cpu_to_le16(pDevice->current_aid | BIT(14) | BIT(15)); in s_uFillDataHead()
468 cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A, cbFrameLength, in s_uFillDataHead()
473 cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_B, cbFrameLength, in s_uFillDataHead()
474 PK_TYPE_11B, pDevice->byTopCCKBasicRate, in s_uFillDataHead()
479 buf->time_stamp_off_a = vnt_time_stamp_off(pDevice, wCurrentRate); in s_uFillDataHead()
480 buf->time_stamp_off_b = vnt_time_stamp_off(pDevice, pDevice->byTopCCKBasicRate); in s_uFillDataHead()
486 vnt_get_phy_field(pDevice, cbFrameLength, wCurrentRate, in s_uFillDataHead()
489 vnt_get_phy_field(pDevice, cbFrameLength, in s_uFillDataHead()
490 pDevice->byTopCCKBasicRate, in s_uFillDataHead()
493 …buf->duration_a = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A, cbFrameLength, byPktType, in s_uFillDataHead()
495 …buf->duration_b = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_B, cbFrameLength, PK_TYPE_1… in s_uFillDataHead()
496pDevice->byTopCCKBasicRate, bNeedAck, uFragIdx, cbLastFragmentSize, uMACfragNum, byFBOption)); in s_uFillDataHead()
497 …buf->duration_a_f0 = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A_F0, cbFrameLength, byP… in s_uFillDataHead()
499 …buf->duration_a_f1 = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A_F1, cbFrameLength, byP… in s_uFillDataHead()
502 buf->time_stamp_off_a = vnt_time_stamp_off(pDevice, wCurrentRate); in s_uFillDataHead()
503 buf->time_stamp_off_b = vnt_time_stamp_off(pDevice, pDevice->byTopCCKBasicRate); in s_uFillDataHead()
514 vnt_get_phy_field(pDevice, cbFrameLength, wCurrentRate, in s_uFillDataHead()
518 buf->duration = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A, cbFrameLength, byPktType, in s_uFillDataHead()
520 …buf->duration_f0 = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A_F0, cbFrameLength, byPkt… in s_uFillDataHead()
522 …buf->duration_f1 = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A_F1, cbFrameLength, byPkt… in s_uFillDataHead()
524 buf->time_stamp_off = vnt_time_stamp_off(pDevice, wCurrentRate); in s_uFillDataHead()
529 vnt_get_phy_field(pDevice, cbFrameLength, wCurrentRate, in s_uFillDataHead()
533 __le16 dur = cpu_to_le16(pDevice->current_aid | BIT(14) | BIT(15)); in s_uFillDataHead()
539 cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A, cbFrameLength, byPktType, in s_uFillDataHead()
545 buf->time_stamp_off = vnt_time_stamp_off(pDevice, wCurrentRate); in s_uFillDataHead()
550 vnt_get_phy_field(pDevice, cbFrameLength, wCurrentRate, in s_uFillDataHead()
554 __le16 dur = cpu_to_le16(pDevice->current_aid | BIT(14) | BIT(15)); in s_uFillDataHead()
560 cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_B, cbFrameLength, byPktType, in s_uFillDataHead()
566 buf->time_stamp_off = vnt_time_stamp_off(pDevice, wCurrentRate); in s_uFillDataHead()
573 struct vnt_private *pDevice, in s_vFillRTSHead() argument
604 vnt_get_phy_field(pDevice, uRTSFrameLen, in s_vFillRTSHead()
605 pDevice->byTopCCKBasicRate, in s_vFillRTSHead()
608 vnt_get_phy_field(pDevice, uRTSFrameLen, in s_vFillRTSHead()
609 pDevice->byTopOFDMBasicRate, in s_vFillRTSHead()
613 s_uGetRTSCTSDuration(pDevice, RTSDUR_BB, in s_vFillRTSHead()
615 pDevice->byTopCCKBasicRate, in s_vFillRTSHead()
618 s_uGetRTSCTSDuration(pDevice, RTSDUR_AA, in s_vFillRTSHead()
623 s_uGetRTSCTSDuration(pDevice, RTSDUR_BA, in s_vFillRTSHead()
639 vnt_get_phy_field(pDevice, uRTSFrameLen, in s_vFillRTSHead()
640 pDevice->byTopCCKBasicRate, in s_vFillRTSHead()
643 vnt_get_phy_field(pDevice, uRTSFrameLen, in s_vFillRTSHead()
644 pDevice->byTopOFDMBasicRate, in s_vFillRTSHead()
648 s_uGetRTSCTSDuration(pDevice, RTSDUR_BB, in s_vFillRTSHead()
650 pDevice->byTopCCKBasicRate, in s_vFillRTSHead()
653 s_uGetRTSCTSDuration(pDevice, RTSDUR_AA, in s_vFillRTSHead()
658 s_uGetRTSCTSDuration(pDevice, RTSDUR_BA, in s_vFillRTSHead()
663 s_uGetRTSCTSDuration(pDevice, RTSDUR_BA_F0, in s_vFillRTSHead()
668 s_uGetRTSCTSDuration(pDevice, RTSDUR_AA_F0, in s_vFillRTSHead()
673 s_uGetRTSCTSDuration(pDevice, RTSDUR_BA_F1, in s_vFillRTSHead()
678 s_uGetRTSCTSDuration(pDevice, RTSDUR_AA_F1, in s_vFillRTSHead()
695 vnt_get_phy_field(pDevice, uRTSFrameLen, in s_vFillRTSHead()
696 pDevice->byTopOFDMBasicRate, in s_vFillRTSHead()
700 s_uGetRTSCTSDuration(pDevice, RTSDUR_AA, in s_vFillRTSHead()
715 vnt_get_phy_field(pDevice, uRTSFrameLen, in s_vFillRTSHead()
716 pDevice->byTopOFDMBasicRate, in s_vFillRTSHead()
720 s_uGetRTSCTSDuration(pDevice, RTSDUR_AA, in s_vFillRTSHead()
725 s_uGetRTSCTSDuration(pDevice, RTSDUR_AA_F0, in s_vFillRTSHead()
730 s_uGetRTSCTSDuration(pDevice, RTSDUR_AA_F1, in s_vFillRTSHead()
746 vnt_get_phy_field(pDevice, uRTSFrameLen, in s_vFillRTSHead()
747 pDevice->byTopCCKBasicRate, in s_vFillRTSHead()
751 s_uGetRTSCTSDuration(pDevice, RTSDUR_BB, cbFrameLength, in s_vFillRTSHead()
768 struct vnt_private *pDevice, in s_vFillCTSHead() argument
796 vnt_get_phy_field(pDevice, uCTSFrameLen, in s_vFillCTSHead()
797 pDevice->byTopCCKBasicRate, in s_vFillCTSHead()
801 s_uGetRTSCTSDuration(pDevice, CTSDUR_BA, in s_vFillCTSHead()
808 s_uGetRTSCTSDuration(pDevice, CTSDUR_BA_F0, in s_vFillCTSHead()
815 s_uGetRTSCTSDuration(pDevice, CTSDUR_BA_F1, in s_vFillCTSHead()
830 pDevice->abyCurrentNetAddr); in s_vFillCTSHead()
834 vnt_get_phy_field(pDevice, uCTSFrameLen, in s_vFillCTSHead()
835 pDevice->byTopCCKBasicRate, in s_vFillCTSHead()
840 s_uGetRTSCTSDuration(pDevice, CTSDUR_BA, in s_vFillCTSHead()
854 pDevice->abyCurrentNetAddr); in s_vFillCTSHead()
886 struct vnt_private *pDevice, in s_vGenerateTxParameter() argument
921 buf->rts_rrv_time_aa = get_rtscts_time(pDevice, 2, byPktType, cbFrameSize, wCurrentRate); in s_vGenerateTxParameter()
922 buf->rts_rrv_time_ba = get_rtscts_time(pDevice, 1, byPktType, cbFrameSize, wCurrentRate); in s_vGenerateTxParameter()
923 buf->rts_rrv_time_bb = get_rtscts_time(pDevice, 0, byPktType, cbFrameSize, wCurrentRate); in s_vGenerateTxParameter()
924 buf->rrv_time_a = vnt_rxtx_rsvtime_le16(pDevice, byPktType, cbFrameSize, wCurrentRate, bNeedACK); in s_vGenerateTxParameter()
925 …buf->rrv_time_b = vnt_rxtx_rsvtime_le16(pDevice, PK_TYPE_11B, cbFrameSize, pDevice->byTopCCKBasicR… in s_vGenerateTxParameter()
927 …s_vFillRTSHead(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRat… in s_vGenerateTxParameter()
931 buf->rrv_time_a = vnt_rxtx_rsvtime_le16(pDevice, byPktType, cbFrameSize, wCurrentRate, bNeedACK); in s_vGenerateTxParameter()
932 …buf->rrv_time_b = vnt_rxtx_rsvtime_le16(pDevice, PK_TYPE_11B, cbFrameSize, pDevice->byTopCCKBasicR… in s_vGenerateTxParameter()
933 buf->cts_rrv_time_ba = get_rtscts_time(pDevice, 3, byPktType, cbFrameSize, wCurrentRate); in s_vGenerateTxParameter()
936 …s_vFillCTSHead(pDevice, uDMAIdx, byPktType, pvCTS, cbFrameSize, bNeedACK, bDisCRC, wCurrentRate, b… in s_vGenerateTxParameter()
942 buf->rts_rrv_time = get_rtscts_time(pDevice, 2, byPktType, cbFrameSize, wCurrentRate); in s_vGenerateTxParameter()
943 buf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice, byPktType, cbFrameSize, wCurrentRate, bNeedACK); in s_vGenerateTxParameter()
946 …s_vFillRTSHead(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRat… in s_vGenerateTxParameter()
950 buf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice, PK_TYPE_11A, cbFrameSize, wCurrentRate, bNeedACK); in s_vGenerateTxParameter()
956 buf->rts_rrv_time = get_rtscts_time(pDevice, 0, byPktType, cbFrameSize, wCurrentRate); in s_vGenerateTxParameter()
957 buf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice, PK_TYPE_11B, cbFrameSize, wCurrentRate, bNeedACK); in s_vGenerateTxParameter()
960 …s_vFillRTSHead(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRat… in s_vGenerateTxParameter()
964 buf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice, PK_TYPE_11B, cbFrameSize, wCurrentRate, bNeedACK); in s_vGenerateTxParameter()
970 s_cbFillTxBufHead(struct vnt_private *pDevice, unsigned char byPktType, in s_cbFillTxBufHead() argument
1015 if (pDevice->local_id > REV_ID_VT3253_A1) { in s_cbFillTxBufHead()
1126 s_vGenerateTxParameter(pDevice, byPktType, tx_buffer_head, pvRrvTime, pvRTS, pvCTS, in s_cbFillTxBufHead()
1127 cbFrameSize, bNeedACK, uDMAIdx, hdr, pDevice->wCurrentRate); in s_cbFillTxBufHead()
1129 uDuration = s_uFillDataHead(pDevice, byPktType, pvTxDataHd, cbFrameSize, uDMAIdx, bNeedACK, in s_cbFillTxBufHead()
1130 0, 0, uMACfragNum, byFBOption, pDevice->wCurrentRate, is_pspoll); in s_cbFillTxBufHead()