Commit d38ee5b2 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: rename BBuGetFrameTime to vnt_get_frame_time

Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 205056f3
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
* Date: Jun. 5, 2002 * Date: Jun. 5, 2002
* *
* Functions: * Functions:
* BBuGetFrameTime - Calculate data frame transmitting time * vnt_get_frame_time - Calculate data frame transmitting time
* vnt_get_phy_field - Calculate PhyLength, PhyService and Phy Signal parameter for baseband Tx * vnt_get_phy_field - Calculate PhyLength, PhyService and Phy Signal parameter for baseband Tx
* BBbVT3184Init - VIA VT3184 baseband chip init code * BBbVT3184Init - VIA VT3184 baseband chip init code
* *
...@@ -646,7 +646,7 @@ static const u16 awcFrameTime[MAX_RATE] = ...@@ -646,7 +646,7 @@ static const u16 awcFrameTime[MAX_RATE] =
* Return Value: FrameTime * Return Value: FrameTime
* *
*/ */
unsigned int BBuGetFrameTime(u8 preamble_type, u8 pkt_type, unsigned int vnt_get_frame_time(u8 preamble_type, u8 pkt_type,
unsigned int frame_length, u16 tx_rate) unsigned int frame_length, u16 tx_rate)
{ {
unsigned int frame_time; unsigned int frame_time;
......
...@@ -88,7 +88,7 @@ struct vnt_phy_field { ...@@ -88,7 +88,7 @@ struct vnt_phy_field {
__le16 len; __le16 len;
} __packed; } __packed;
unsigned int BBuGetFrameTime(u8 preamble_type, u8 pkt_type, unsigned int vnt_get_frame_time(u8 preamble_type, u8 pkt_type,
unsigned int frame_length, u16 tx_rate); unsigned int frame_length, u16 tx_rate);
void vnt_get_phy_field(struct vnt_private *, u32 frame_length, void vnt_get_phy_field(struct vnt_private *, u32 frame_length,
......
...@@ -344,15 +344,15 @@ static u32 s_uGetTxRsvTime(struct vnt_private *priv, u8 pkt_type, ...@@ -344,15 +344,15 @@ static u32 s_uGetTxRsvTime(struct vnt_private *priv, u8 pkt_type,
{ {
u32 data_time, ack_time; u32 data_time, ack_time;
data_time = BBuGetFrameTime(priv->byPreambleType, pkt_type, data_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
frame_length, rate); frame_length, rate);
if (pkt_type == PK_TYPE_11B) if (pkt_type == PK_TYPE_11B)
ack_time = BBuGetFrameTime(priv->byPreambleType, pkt_type, 14, ack_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
(u16)priv->byTopCCKBasicRate); 14, (u16)priv->byTopCCKBasicRate);
else else
ack_time = BBuGetFrameTime(priv->byPreambleType, pkt_type, 14, ack_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
(u16)priv->byTopOFDMBasicRate); 14, (u16)priv->byTopOFDMBasicRate);
if (need_ack) if (need_ack)
return data_time + priv->uSIFS + ack_time; return data_time + priv->uSIFS + ack_time;
...@@ -375,30 +375,30 @@ static __le16 s_uGetRTSCTSRsvTime(struct vnt_private *priv, ...@@ -375,30 +375,30 @@ static __le16 s_uGetRTSCTSRsvTime(struct vnt_private *priv,
rrv_time = rts_time = cts_time = ack_time = data_time = 0; rrv_time = rts_time = cts_time = ack_time = data_time = 0;
data_time = BBuGetFrameTime(priv->byPreambleType, pkt_type, data_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
frame_length, current_rate); frame_length, current_rate);
if (rsv_type == 0) { if (rsv_type == 0) {
rts_time = BBuGetFrameTime(priv->byPreambleType, rts_time = vnt_get_frame_time(priv->byPreambleType,
pkt_type, 20, priv->byTopCCKBasicRate); pkt_type, 20, priv->byTopCCKBasicRate);
cts_time = ack_time = BBuGetFrameTime(priv->byPreambleType, cts_time = ack_time = vnt_get_frame_time(priv->byPreambleType,
pkt_type, 14, priv->byTopCCKBasicRate); pkt_type, 14, priv->byTopCCKBasicRate);
} else if (rsv_type == 1) { } else if (rsv_type == 1) {
rts_time = BBuGetFrameTime(priv->byPreambleType, rts_time = vnt_get_frame_time(priv->byPreambleType,
pkt_type, 20, priv->byTopCCKBasicRate); pkt_type, 20, priv->byTopCCKBasicRate);
cts_time = BBuGetFrameTime(priv->byPreambleType, pkt_type, cts_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
14, priv->byTopCCKBasicRate); 14, priv->byTopCCKBasicRate);
ack_time = BBuGetFrameTime(priv->byPreambleType, pkt_type, ack_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
14, priv->byTopOFDMBasicRate); 14, priv->byTopOFDMBasicRate);
} else if (rsv_type == 2) { } else if (rsv_type == 2) {
rts_time = BBuGetFrameTime(priv->byPreambleType, pkt_type, rts_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
20, priv->byTopOFDMBasicRate); 20, priv->byTopOFDMBasicRate);
cts_time = ack_time = BBuGetFrameTime(priv->byPreambleType, cts_time = ack_time = vnt_get_frame_time(priv->byPreambleType,
pkt_type, 14, priv->byTopOFDMBasicRate); pkt_type, 14, priv->byTopOFDMBasicRate);
} else if (rsv_type == 3) { } else if (rsv_type == 3) {
cts_time = BBuGetFrameTime(priv->byPreambleType, pkt_type, cts_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
14, priv->byTopCCKBasicRate); 14, priv->byTopCCKBasicRate);
ack_time = BBuGetFrameTime(priv->byPreambleType, pkt_type, ack_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
14, priv->byTopOFDMBasicRate); 14, priv->byTopOFDMBasicRate);
rrv_time = cts_time + ack_time + data_time + 2 * priv->uSIFS; rrv_time = cts_time + ack_time + data_time + 2 * priv->uSIFS;
...@@ -419,10 +419,10 @@ static __le16 s_uGetDataDuration(struct vnt_private *pDevice, ...@@ -419,10 +419,10 @@ static __le16 s_uGetDataDuration(struct vnt_private *pDevice,
if (bNeedAck) { if (bNeedAck) {
if (byPktType == PK_TYPE_11B) if (byPktType == PK_TYPE_11B)
uAckTime = BBuGetFrameTime(pDevice->byPreambleType, uAckTime = vnt_get_frame_time(pDevice->byPreambleType,
byPktType, 14, pDevice->byTopCCKBasicRate); byPktType, 14, pDevice->byTopCCKBasicRate);
else else
uAckTime = BBuGetFrameTime(pDevice->byPreambleType, uAckTime = vnt_get_frame_time(pDevice->byPreambleType,
byPktType, 14, pDevice->byTopOFDMBasicRate); byPktType, 14, pDevice->byTopOFDMBasicRate);
return cpu_to_le16((u16)(pDevice->uSIFS + uAckTime)); return cpu_to_le16((u16)(pDevice->uSIFS + uAckTime));
} }
...@@ -442,8 +442,8 @@ static __le16 s_uGetRTSCTSDuration(struct vnt_private *pDevice, u8 byDurType, ...@@ -442,8 +442,8 @@ static __le16 s_uGetRTSCTSDuration(struct vnt_private *pDevice, u8 byDurType,
case RTSDUR_BA: case RTSDUR_BA:
case RTSDUR_BA_F0: case RTSDUR_BA_F0:
case RTSDUR_BA_F1: case RTSDUR_BA_F1:
uCTSTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, uCTSTime = vnt_get_frame_time(pDevice->byPreambleType,
14, pDevice->byTopCCKBasicRate); byPktType, 14, pDevice->byTopCCKBasicRate);
uDurTime = uCTSTime + 2 * pDevice->uSIFS + uDurTime = uCTSTime + 2 * pDevice->uSIFS +
s_uGetTxRsvTime(pDevice, byPktType, s_uGetTxRsvTime(pDevice, byPktType,
cbFrameLength, wRate, bNeedAck); cbFrameLength, wRate, bNeedAck);
...@@ -452,8 +452,8 @@ static __le16 s_uGetRTSCTSDuration(struct vnt_private *pDevice, u8 byDurType, ...@@ -452,8 +452,8 @@ static __le16 s_uGetRTSCTSDuration(struct vnt_private *pDevice, u8 byDurType,
case RTSDUR_AA: case RTSDUR_AA:
case RTSDUR_AA_F0: case RTSDUR_AA_F0:
case RTSDUR_AA_F1: case RTSDUR_AA_F1:
uCTSTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, uCTSTime = vnt_get_frame_time(pDevice->byPreambleType,
14, pDevice->byTopOFDMBasicRate); byPktType, 14, pDevice->byTopOFDMBasicRate);
uDurTime = uCTSTime + 2 * pDevice->uSIFS + uDurTime = uCTSTime + 2 * pDevice->uSIFS +
s_uGetTxRsvTime(pDevice, byPktType, s_uGetTxRsvTime(pDevice, byPktType,
cbFrameLength, wRate, bNeedAck); cbFrameLength, wRate, bNeedAck);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment