Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
78ae7532
Commit
78ae7532
authored
Mar 30, 2013
by
Rafał Miłecki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
b43: N-PHY: use shortcut "ctl" in functions names
Signed-off-by:
Rafał Miłecki
<
zajec5@gmail.com
>
parent
89e43dad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
drivers/net/wireless/b43/phy_n.c
drivers/net/wireless/b43/phy_n.c
+22
-22
No files found.
drivers/net/wireless/b43/phy_n.c
View file @
78ae7532
...
@@ -141,9 +141,9 @@ static void b43_nphy_force_rf_sequence(struct b43_wldev *dev,
...
@@ -141,9 +141,9 @@ static void b43_nphy_force_rf_sequence(struct b43_wldev *dev,
}
}
/* http://bcm-v4.sipsolutions.net/802.11/PHY/N/RFCtrlOverrideRev7 */
/* http://bcm-v4.sipsolutions.net/802.11/PHY/N/RFCtrlOverrideRev7 */
static
void
b43_nphy_rf_c
ontro
l_override_rev7
(
struct
b43_wldev
*
dev
,
u16
field
,
static
void
b43_nphy_rf_c
t
l_override_rev7
(
struct
b43_wldev
*
dev
,
u16
field
,
u16
value
,
u8
core
,
bool
off
,
u16
value
,
u8
core
,
bool
off
,
u8
override
)
u8
override
)
{
{
const
struct
nphy_rf_control_override_rev7
*
e
;
const
struct
nphy_rf_control_override_rev7
*
e
;
u16
en_addrs
[
3
][
2
]
=
{
u16
en_addrs
[
3
][
2
]
=
{
...
@@ -181,8 +181,8 @@ static void b43_nphy_rf_control_override_rev7(struct b43_wldev *dev, u16 field,
...
@@ -181,8 +181,8 @@ static void b43_nphy_rf_control_override_rev7(struct b43_wldev *dev, u16 field,
}
}
/* http://bcm-v4.sipsolutions.net/802.11/PHY/N/RFCtrlOverride */
/* http://bcm-v4.sipsolutions.net/802.11/PHY/N/RFCtrlOverride */
static
void
b43_nphy_rf_c
ontro
l_override
(
struct
b43_wldev
*
dev
,
u16
field
,
static
void
b43_nphy_rf_c
t
l_override
(
struct
b43_wldev
*
dev
,
u16
field
,
u16
value
,
u8
core
,
bool
off
)
u16
value
,
u8
core
,
bool
off
)
{
{
int
i
;
int
i
;
u8
index
=
fls
(
field
);
u8
index
=
fls
(
field
);
...
@@ -1628,17 +1628,17 @@ static void b43_nphy_rev3_rssi_cal(struct b43_wldev *dev)
...
@@ -1628,17 +1628,17 @@ static void b43_nphy_rev3_rssi_cal(struct b43_wldev *dev)
b43_nphy_rf_ctl_intc_override
(
dev
,
N_INTC_OVERRIDE_OFF
,
0
,
7
);
b43_nphy_rf_ctl_intc_override
(
dev
,
N_INTC_OVERRIDE_OFF
,
0
,
7
);
b43_nphy_rf_ctl_intc_override
(
dev
,
N_INTC_OVERRIDE_TRSW
,
1
,
7
);
b43_nphy_rf_ctl_intc_override
(
dev
,
N_INTC_OVERRIDE_TRSW
,
1
,
7
);
b43_nphy_rf_c
ontro
l_override
(
dev
,
0x1
,
0
,
0
,
false
);
b43_nphy_rf_c
t
l_override
(
dev
,
0x1
,
0
,
0
,
false
);
b43_nphy_rf_c
ontro
l_override
(
dev
,
0x2
,
1
,
0
,
false
);
b43_nphy_rf_c
t
l_override
(
dev
,
0x2
,
1
,
0
,
false
);
b43_nphy_rf_c
ontro
l_override
(
dev
,
0x80
,
1
,
0
,
false
);
b43_nphy_rf_c
t
l_override
(
dev
,
0x80
,
1
,
0
,
false
);
b43_nphy_rf_c
ontro
l_override
(
dev
,
0x40
,
1
,
0
,
false
);
b43_nphy_rf_c
t
l_override
(
dev
,
0x40
,
1
,
0
,
false
);
if
(
b43_current_band
(
dev
->
wl
)
==
IEEE80211_BAND_5GHZ
)
{
if
(
b43_current_band
(
dev
->
wl
)
==
IEEE80211_BAND_5GHZ
)
{
b43_nphy_rf_c
ontro
l_override
(
dev
,
0x20
,
0
,
0
,
false
);
b43_nphy_rf_c
t
l_override
(
dev
,
0x20
,
0
,
0
,
false
);
b43_nphy_rf_c
ontro
l_override
(
dev
,
0x10
,
1
,
0
,
false
);
b43_nphy_rf_c
t
l_override
(
dev
,
0x10
,
1
,
0
,
false
);
}
else
{
}
else
{
b43_nphy_rf_c
ontro
l_override
(
dev
,
0x10
,
0
,
0
,
false
);
b43_nphy_rf_c
t
l_override
(
dev
,
0x10
,
0
,
0
,
false
);
b43_nphy_rf_c
ontro
l_override
(
dev
,
0x20
,
1
,
0
,
false
);
b43_nphy_rf_c
t
l_override
(
dev
,
0x20
,
1
,
0
,
false
);
}
}
rx_core_state
=
b43_nphy_get_rx_core_state
(
dev
);
rx_core_state
=
b43_nphy_get_rx_core_state
(
dev
);
...
@@ -2310,11 +2310,11 @@ static void b43_nphy_workarounds_rev7plus(struct b43_wldev *dev)
...
@@ -2310,11 +2310,11 @@ static void b43_nphy_workarounds_rev7plus(struct b43_wldev *dev)
b43_ntab_write
(
dev
,
B43_NTAB16
(
7
,
0x159
+
core
*
16
),
b43_ntab_write
(
dev
,
B43_NTAB16
(
7
,
0x159
+
core
*
16
),
rx2tx_lut_40_11n
);
rx2tx_lut_40_11n
);
}
}
b43_nphy_rf_c
ontro
l_override_rev7
(
dev
,
16
,
1
,
3
,
false
,
2
);
b43_nphy_rf_c
t
l_override_rev7
(
dev
,
16
,
1
,
3
,
false
,
2
);
}
}
b43_phy_write
(
dev
,
0x32F
,
0x3
);
b43_phy_write
(
dev
,
0x32F
,
0x3
);
if
(
phy
->
radio_rev
==
4
||
phy
->
radio_rev
==
6
)
if
(
phy
->
radio_rev
==
4
||
phy
->
radio_rev
==
6
)
b43_nphy_rf_c
ontro
l_override_rev7
(
dev
,
4
,
1
,
3
,
false
,
0
);
b43_nphy_rf_c
t
l_override_rev7
(
dev
,
4
,
1
,
3
,
false
,
0
);
if
(
phy
->
radio_rev
==
3
||
phy
->
radio_rev
==
4
||
phy
->
radio_rev
==
6
)
{
if
(
phy
->
radio_rev
==
3
||
phy
->
radio_rev
==
4
||
phy
->
radio_rev
==
6
)
{
if
(
sprom
->
revision
&&
if
(
sprom
->
revision
&&
...
@@ -3170,9 +3170,9 @@ static void b43_nphy_tx_power_ctl_idle_tssi(struct b43_wldev *dev)
...
@@ -3170,9 +3170,9 @@ static void b43_nphy_tx_power_ctl_idle_tssi(struct b43_wldev *dev)
b43_nphy_ipa_internal_tssi_setup
(
dev
);
b43_nphy_ipa_internal_tssi_setup
(
dev
);
if
(
phy
->
rev
>=
7
)
if
(
phy
->
rev
>=
7
)
b43_nphy_rf_c
ontro
l_override_rev7
(
dev
,
0x2000
,
0
,
3
,
false
,
0
);
b43_nphy_rf_c
t
l_override_rev7
(
dev
,
0x2000
,
0
,
3
,
false
,
0
);
else
if
(
phy
->
rev
>=
3
)
else
if
(
phy
->
rev
>=
3
)
b43_nphy_rf_c
ontro
l_override
(
dev
,
0x2000
,
0
,
3
,
false
);
b43_nphy_rf_c
t
l_override
(
dev
,
0x2000
,
0
,
3
,
false
);
b43_nphy_stop_playback
(
dev
);
b43_nphy_stop_playback
(
dev
);
b43_nphy_tx_tone
(
dev
,
0xFA0
,
0
,
false
,
false
);
b43_nphy_tx_tone
(
dev
,
0xFA0
,
0
,
false
,
false
);
...
@@ -3182,9 +3182,9 @@ static void b43_nphy_tx_power_ctl_idle_tssi(struct b43_wldev *dev)
...
@@ -3182,9 +3182,9 @@ static void b43_nphy_tx_power_ctl_idle_tssi(struct b43_wldev *dev)
b43_nphy_rssi_select
(
dev
,
0
,
N_RSSI_W1
);
b43_nphy_rssi_select
(
dev
,
0
,
N_RSSI_W1
);
if
(
phy
->
rev
>=
7
)
if
(
phy
->
rev
>=
7
)
b43_nphy_rf_c
ontro
l_override_rev7
(
dev
,
0x2000
,
0
,
3
,
true
,
0
);
b43_nphy_rf_c
t
l_override_rev7
(
dev
,
0x2000
,
0
,
3
,
true
,
0
);
else
if
(
phy
->
rev
>=
3
)
else
if
(
phy
->
rev
>=
3
)
b43_nphy_rf_c
ontro
l_override
(
dev
,
0x2000
,
0
,
3
,
true
);
b43_nphy_rf_c
t
l_override
(
dev
,
0x2000
,
0
,
3
,
true
);
if
(
phy
->
rev
>=
3
)
{
if
(
phy
->
rev
>=
3
)
{
nphy
->
pwr_ctl_info
[
0
].
idle_tssi_5g
=
(
tmp
>>
24
)
&
0xFF
;
nphy
->
pwr_ctl_info
[
0
].
idle_tssi_5g
=
(
tmp
>>
24
)
&
0xFF
;
...
@@ -3624,7 +3624,7 @@ static void b43_nphy_rx_cal_phy_setup(struct b43_wldev *dev, u8 core)
...
@@ -3624,7 +3624,7 @@ static void b43_nphy_rx_cal_phy_setup(struct b43_wldev *dev, u8 core)
}
}
b43_nphy_rf_ctl_intc_override(dev, N_INTC_OVERRIDE_PA, 0, 3);
b43_nphy_rf_ctl_intc_override(dev, N_INTC_OVERRIDE_PA, 0, 3);
b43_nphy_rf_c
ontro
l_override(dev, 8, 0, 3, false);
b43_nphy_rf_c
t
l_override(dev, 8, 0, 3, false);
b43_nphy_force_rf_sequence(dev, B43_RFSEQ_RX2TX);
b43_nphy_force_rf_sequence(dev, B43_RFSEQ_RX2TX);
if (core == 0) {
if (core == 0) {
...
@@ -4731,7 +4731,7 @@ static int b43_nphy_rev2_cal_rx_iq(struct b43_wldev *dev,
...
@@ -4731,7 +4731,7 @@ static int b43_nphy_rev2_cal_rx_iq(struct b43_wldev *dev,
tmp
[
0
]
=
((
cur_hpf2
<<
8
)
|
(
cur_hpf1
<<
4
)
|
tmp
[
0
]
=
((
cur_hpf2
<<
8
)
|
(
cur_hpf1
<<
4
)
|
(
cur_lna
<<
2
));
(
cur_lna
<<
2
));
b43_nphy_rf_c
ontro
l_override
(
dev
,
0x400
,
tmp
[
0
],
3
,
b43_nphy_rf_c
t
l_override
(
dev
,
0x400
,
tmp
[
0
],
3
,
false
);
false
);
b43_nphy_force_rf_sequence
(
dev
,
B43_RFSEQ_RESET2RX
);
b43_nphy_force_rf_sequence
(
dev
,
B43_RFSEQ_RESET2RX
);
b43_nphy_stop_playback
(
dev
);
b43_nphy_stop_playback
(
dev
);
...
@@ -4780,7 +4780,7 @@ static int b43_nphy_rev2_cal_rx_iq(struct b43_wldev *dev,
...
@@ -4780,7 +4780,7 @@ static int b43_nphy_rev2_cal_rx_iq(struct b43_wldev *dev,
break
;
break
;
}
}
b43_nphy_rf_c
ontro
l_override
(
dev
,
0x400
,
0
,
3
,
true
);
b43_nphy_rf_c
t
l_override
(
dev
,
0x400
,
0
,
3
,
true
);
b43_nphy_force_rf_sequence
(
dev
,
B43_RFSEQ_RESET2RX
);
b43_nphy_force_rf_sequence
(
dev
,
B43_RFSEQ_RESET2RX
);
b43_ntab_write_bulk
(
dev
,
B43_NTAB16
(
7
,
0x110
),
2
,
gain_save
);
b43_ntab_write_bulk
(
dev
,
B43_NTAB16
(
7
,
0x110
),
2
,
gain_save
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment