Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
phy_cmn.c File Reference
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/bitops.h>
#include <brcm_hw_ids.h>
#include <chipcommon.h>
#include <aiutils.h>
#include <d11.h>
#include <phy_shim.h>
#include "phy_hal.h"
#include "phy_int.h"
#include "phy_radio.h"
#include "phy_lcn.h"
#include "phyreg_n.h"

Go to the source code of this file.

Data Structures

struct  chan_info_basic
 

Macros

#define VALID_N_RADIO(radioid)
 
#define VALID_LCN_RADIO(radioid)   (radioid == BCM2064_ID)
 
#define VALID_RADIO(pi, radioid)
 
#define MUX(pred, true, false)   ((pred) ? (true) : (false))
 
#define MODINC(x, bound)   MUX((x) == (bound) - 1, 0, (x) + 1)
 
#define MODDEC_POW2(x, bound)   (((x) - 1) & ((bound) - 1))
 
#define MODINC_POW2(x, bound)   (((x) + 1) & ((bound) - 1))
 
#define PHY_WREG_LIMIT   24
 
#define DUMMY_PKT_LEN   20
 

Functions

void wlc_phyreg_enter (struct brcms_phy_pub *pih)
 
void wlc_phyreg_exit (struct brcms_phy_pub *pih)
 
void wlc_radioreg_enter (struct brcms_phy_pub *pih)
 
void wlc_radioreg_exit (struct brcms_phy_pub *pih)
 
u16 read_radio_reg (struct brcms_phy *pi, u16 addr)
 
void write_radio_reg (struct brcms_phy *pi, u16 addr, u16 val)
 
void and_radio_reg (struct brcms_phy *pi, u16 addr, u16 val)
 
void or_radio_reg (struct brcms_phy *pi, u16 addr, u16 val)
 
void xor_radio_reg (struct brcms_phy *pi, u16 addr, u16 mask)
 
void mod_radio_reg (struct brcms_phy *pi, u16 addr, u16 mask, u16 val)
 
void write_phy_channel_reg (struct brcms_phy *pi, uint val)
 
u16 read_phy_reg (struct brcms_phy *pi, u16 addr)
 
void write_phy_reg (struct brcms_phy *pi, u16 addr, u16 val)
 
void and_phy_reg (struct brcms_phy *pi, u16 addr, u16 val)
 
void or_phy_reg (struct brcms_phy *pi, u16 addr, u16 val)
 
void mod_phy_reg (struct brcms_phy *pi, u16 addr, u16 mask, u16 val)
 
struct shared_phywlc_phy_shared_attach (struct shared_phy_params *shp)
 
struct brcms_phy_pubwlc_phy_attach (struct shared_phy *sh, struct bcma_device *d11core, int bandtype, struct wiphy *wiphy)
 
void wlc_phy_detach (struct brcms_phy_pub *pih)
 
bool wlc_phy_get_phyversion (struct brcms_phy_pub *pih, u16 *phytype, u16 *phyrev, u16 *radioid, u16 *radiover)
 
bool wlc_phy_get_encore (struct brcms_phy_pub *pih)
 
u32 wlc_phy_get_coreflags (struct brcms_phy_pub *pih)
 
void wlc_phy_anacore (struct brcms_phy_pub *pih, bool on)
 
u32 wlc_phy_clk_bwbits (struct brcms_phy_pub *pih)
 
void wlc_phy_por_inform (struct brcms_phy_pub *ppi)
 
void wlc_phy_edcrs_lock (struct brcms_phy_pub *pih, bool lock)
 
void wlc_phy_initcal_enable (struct brcms_phy_pub *pih, bool initcal)
 
void wlc_phy_hw_clk_state_upd (struct brcms_phy_pub *pih, bool newstate)
 
void wlc_phy_hw_state_upd (struct brcms_phy_pub *pih, bool newstate)
 
void wlc_phy_init (struct brcms_phy_pub *pih, u16 chanspec)
 
void wlc_phy_cal_init (struct brcms_phy_pub *pih)
 
int wlc_phy_down (struct brcms_phy_pub *pih)
 
void wlc_phy_table_addr (struct brcms_phy *pi, uint tbl_id, uint tbl_offset, u16 tblAddr, u16 tblDataHi, u16 tblDataLo)
 
void wlc_phy_table_data_write (struct brcms_phy *pi, uint width, u32 val)
 
void wlc_phy_write_table (struct brcms_phy *pi, const struct phytbl_info *ptbl_info, u16 tblAddr, u16 tblDataHi, u16 tblDataLo)
 
void wlc_phy_read_table (struct brcms_phy *pi, const struct phytbl_info *ptbl_info, u16 tblAddr, u16 tblDataHi, u16 tblDataLo)
 
uint wlc_phy_init_radio_regs_allbands (struct brcms_phy *pi, struct radio_20xx_regs *radioregs)
 
uint wlc_phy_init_radio_regs (struct brcms_phy *pi, const struct radio_regs *radioregs, u16 core_offset)
 
void wlc_phy_do_dummy_tx (struct brcms_phy *pi, bool ofdm, bool pa_on)
 
void wlc_phy_hold_upd (struct brcms_phy_pub *pih, u32 id, bool set)
 
void wlc_phy_mute_upd (struct brcms_phy_pub *pih, bool mute, u32 flags)
 
void wlc_phy_clear_tssi (struct brcms_phy_pub *pih)
 
void wlc_phy_switch_radio (struct brcms_phy_pub *pih, bool on)
 
u16 wlc_phy_bw_state_get (struct brcms_phy_pub *ppi)
 
void wlc_phy_bw_state_set (struct brcms_phy_pub *ppi, u16 bw)
 
void wlc_phy_chanspec_radio_set (struct brcms_phy_pub *ppi, u16 newch)
 
u16 wlc_phy_chanspec_get (struct brcms_phy_pub *ppi)
 
void wlc_phy_chanspec_set (struct brcms_phy_pub *ppi, u16 chanspec)
 
int wlc_phy_chanspec_freq2bandrange_lpssn (uint freq)
 
int wlc_phy_chanspec_bandrange_get (struct brcms_phy *pi, u16 chanspec)
 
void wlc_phy_chanspec_ch14_widefilter_set (struct brcms_phy_pub *ppi, bool wide_filter)
 
int wlc_phy_channel2freq (uint channel)
 
void wlc_phy_chanspec_band_validch (struct brcms_phy_pub *ppi, uint band, struct brcms_chanvec *channels)
 
u16 wlc_phy_chanspec_band_firstch (struct brcms_phy_pub *ppi, uint band)
 
int wlc_phy_txpower_get (struct brcms_phy_pub *ppi, uint *qdbm, bool *override)
 
void wlc_phy_txpower_target_set (struct brcms_phy_pub *ppi, struct txpwr_limits *txpwr)
 
int wlc_phy_txpower_set (struct brcms_phy_pub *ppi, uint qdbm, bool override)
 
void wlc_phy_txpower_sromlimit (struct brcms_phy_pub *ppi, uint channel, u8 *min_pwr, u8 *max_pwr, int txp_rate_idx)
 
void wlc_phy_txpower_sromlimit_max_get (struct brcms_phy_pub *ppi, uint chan, u8 *max_txpwr, u8 *min_txpwr)
 
void wlc_phy_txpower_boardlimit_band (struct brcms_phy_pub *ppi, uint bandunit, s32 *max_pwr, s32 *min_pwr, u32 *step_pwr)
 
u8 wlc_phy_txpower_get_target_min (struct brcms_phy_pub *ppi)
 
u8 wlc_phy_txpower_get_target_max (struct brcms_phy_pub *ppi)
 
void wlc_phy_txpower_recalc_target (struct brcms_phy *pi)
 
void wlc_phy_txpwr_percent_set (struct brcms_phy_pub *ppi, u8 txpwr_percent)
 
void wlc_phy_machwcap_set (struct brcms_phy_pub *ppi, u32 machwcap)
 
void wlc_phy_runbist_config (struct brcms_phy_pub *ppi, bool start_end)
 
void wlc_phy_txpower_limit_set (struct brcms_phy_pub *ppi, struct txpwr_limits *txpwr, u16 chanspec)
 
void wlc_phy_ofdm_rateset_war (struct brcms_phy_pub *pih, bool war)
 
void wlc_phy_bf_preempt_enable (struct brcms_phy_pub *pih, bool bf_preempt)
 
void wlc_phy_txpower_update_shm (struct brcms_phy *pi)
 
bool wlc_phy_txpower_hw_ctrl_get (struct brcms_phy_pub *ppi)
 
void wlc_phy_txpower_hw_ctrl_set (struct brcms_phy_pub *ppi, bool hwpwrctrl)
 
void wlc_phy_txpower_ipa_upd (struct brcms_phy *pi)
 
void wlc_phy_txpower_get_current (struct brcms_phy_pub *ppi, struct tx_power *power, uint channel)
 
void wlc_phy_antsel_type_set (struct brcms_phy_pub *ppi, u8 antsel_type)
 
bool wlc_phy_test_ison (struct brcms_phy_pub *ppi)
 
void wlc_phy_ant_rxdiv_set (struct brcms_phy_pub *ppi, u8 val)
 
void wlc_phy_noise_sample_intr (struct brcms_phy_pub *pih)
 
void wlc_phy_noise_sample_request_external (struct brcms_phy_pub *pih)
 
void wlc_phy_compute_dB (u32 *cmplx_pwr, s8 *p_cmplx_pwr_dB, u8 core)
 
int wlc_phy_rssi_compute (struct brcms_phy_pub *pih, struct d11rxhdr *rxh)
 
void wlc_phy_freqtrack_start (struct brcms_phy_pub *pih)
 
void wlc_phy_freqtrack_end (struct brcms_phy_pub *pih)
 
void wlc_phy_set_deaf (struct brcms_phy_pub *ppi, bool user_flag)
 
void wlc_phy_watchdog (struct brcms_phy_pub *pih)
 
void wlc_phy_BSSinit (struct brcms_phy_pub *pih, bool bonlyap, int rssi)
 
void wlc_phy_papd_decode_epsilon (u32 epsilon, s32 *eps_real, s32 *eps_imag)
 
void wlc_phy_cal_perical_mphase_reset (struct brcms_phy *pi)
 
void wlc_phy_cal_perical (struct brcms_phy_pub *pih, u8 reason)
 
void wlc_phy_cal_perical_mphase_restart (struct brcms_phy *pi)
 
u8 wlc_phy_nbits (s32 value)
 
void wlc_phy_stf_chain_init (struct brcms_phy_pub *pih, u8 txchain, u8 rxchain)
 
void wlc_phy_stf_chain_set (struct brcms_phy_pub *pih, u8 txchain, u8 rxchain)
 
void wlc_phy_stf_chain_get (struct brcms_phy_pub *pih, u8 *txchain, u8 *rxchain)
 
u8 wlc_phy_stf_chain_active_get (struct brcms_phy_pub *pih)
 
s8 wlc_phy_stf_ssmode_get (struct brcms_phy_pub *pih, u16 chanspec)
 
const u8wlc_phy_get_ofdm_rate_lookup (void)
 
void wlc_lcnphy_epa_switch (struct brcms_phy *pi, bool mode)
 
void wlc_phy_ldpc_override_set (struct brcms_phy_pub *ppi, bool ldpc)
 
void wlc_phy_get_pwrdet_offsets (struct brcms_phy *pi, s8 *cckoffset, s8 *ofdmoffset)
 
s8 wlc_phy_upd_rssi_offset (struct brcms_phy *pi, s8 rssi, u16 chanspec)
 
bool wlc_phy_txpower_ipa_ison (struct brcms_phy_pub *ppi)
 

Macro Definition Documentation

#define DUMMY_PKT_LEN   20
#define MODDEC_POW2 (   x,
  bound 
)    (((x) - 1) & ((bound) - 1))

Definition at line 48 of file phy_cmn.c.

#define MODINC (   x,
  bound 
)    MUX((x) == (bound) - 1, 0, (x) + 1)

Definition at line 45 of file phy_cmn.c.

#define MODINC_POW2 (   x,
  bound 
)    (((x) + 1) & ((bound) - 1))

Definition at line 49 of file phy_cmn.c.

#define MUX (   pred,
  true,
  false 
)    ((pred) ? (true) : (false))

Definition at line 42 of file phy_cmn.c.

#define PHY_WREG_LIMIT   24

Definition at line 127 of file phy_cmn.c.

#define VALID_LCN_RADIO (   radioid)    (radioid == BCM2064_ID)

Definition at line 35 of file phy_cmn.c.

#define VALID_N_RADIO (   radioid)
Value:
((radioid == BCM2055_ID) || \
(radioid == BCM2056_ID) || \
(radioid == BCM2057_ID))

Definition at line 31 of file phy_cmn.c.

#define VALID_RADIO (   pi,
  radioid 
)
Value:
( \
(ISNPHY(pi) ? VALID_N_RADIO(radioid) : false) || \
(ISLCNPHY(pi) ? VALID_LCN_RADIO(radioid) : false))

Definition at line 37 of file phy_cmn.c.

Function Documentation

void and_phy_reg ( struct brcms_phy pi,
u16  addr,
u16  val 
)

Definition at line 311 of file phy_cmn.c.

void and_radio_reg ( struct brcms_phy pi,
u16  addr,
u16  val 
)

Definition at line 247 of file phy_cmn.c.

void mod_phy_reg ( struct brcms_phy pi,
u16  addr,
u16  mask,
u16  val 
)

Definition at line 325 of file phy_cmn.c.

void mod_radio_reg ( struct brcms_phy pi,
u16  addr,
u16  mask,
u16  val 
)

Definition at line 271 of file phy_cmn.c.

void or_phy_reg ( struct brcms_phy pi,
u16  addr,
u16  val 
)

Definition at line 318 of file phy_cmn.c.

void or_radio_reg ( struct brcms_phy pi,
u16  addr,
u16  val 
)

Definition at line 255 of file phy_cmn.c.

u16 read_phy_reg ( struct brcms_phy pi,
u16  addr 
)

Definition at line 284 of file phy_cmn.c.

u16 read_radio_reg ( struct brcms_phy pi,
u16  addr 
)

Definition at line 158 of file phy_cmn.c.

void wlc_lcnphy_epa_switch ( struct brcms_phy pi,
bool  mode 
)

Definition at line 2901 of file phy_cmn.c.

void wlc_phy_anacore ( struct brcms_phy_pub pih,
bool  on 
)

Definition at line 642 of file phy_cmn.c.

void wlc_phy_ant_rxdiv_set ( struct brcms_phy_pub ppi,
u8  val 
)

Definition at line 2160 of file phy_cmn.c.

void wlc_phy_antsel_type_set ( struct brcms_phy_pub ppi,
u8  antsel_type 
)

Definition at line 2146 of file phy_cmn.c.

struct brcms_phy_pub* wlc_phy_attach ( struct shared_phy sh,
struct bcma_device d11core,
int  bandtype,
struct wiphy wiphy 
)
read

Definition at line 434 of file phy_cmn.c.

void wlc_phy_bf_preempt_enable ( struct brcms_phy_pub pih,
bool  bf_preempt 
)

Definition at line 1898 of file phy_cmn.c.

void wlc_phy_BSSinit ( struct brcms_phy_pub pih,
bool  bonlyap,
int  rssi 
)

Definition at line 2661 of file phy_cmn.c.

u16 wlc_phy_bw_state_get ( struct brcms_phy_pub ppi)

Definition at line 1155 of file phy_cmn.c.

void wlc_phy_bw_state_set ( struct brcms_phy_pub ppi,
u16  bw 
)

Definition at line 1162 of file phy_cmn.c.

void wlc_phy_cal_init ( struct brcms_phy_pub pih)

Definition at line 804 of file phy_cmn.c.

void wlc_phy_cal_perical ( struct brcms_phy_pub pih,
u8  reason 
)

Definition at line 2718 of file phy_cmn.c.

void wlc_phy_cal_perical_mphase_reset ( struct brcms_phy pi)

Definition at line 2695 of file phy_cmn.c.

void wlc_phy_cal_perical_mphase_restart ( struct brcms_phy pi)

Definition at line 2796 of file phy_cmn.c.

int wlc_phy_channel2freq ( uint  channel)

Definition at line 1240 of file phy_cmn.c.

u16 wlc_phy_chanspec_band_firstch ( struct brcms_phy_pub ppi,
uint  band 
)

Definition at line 1273 of file phy_cmn.c.

void wlc_phy_chanspec_band_validch ( struct brcms_phy_pub ppi,
uint  band,
struct brcms_chanvec channels 
)

Definition at line 1251 of file phy_cmn.c.

int wlc_phy_chanspec_bandrange_get ( struct brcms_phy pi,
u16  chanspec 
)

Definition at line 1217 of file phy_cmn.c.

void wlc_phy_chanspec_ch14_widefilter_set ( struct brcms_phy_pub ppi,
bool  wide_filter 
)

Definition at line 1231 of file phy_cmn.c.

int wlc_phy_chanspec_freq2bandrange_lpssn ( uint  freq)

Definition at line 1201 of file phy_cmn.c.

u16 wlc_phy_chanspec_get ( struct brcms_phy_pub ppi)

Definition at line 1176 of file phy_cmn.c.

void wlc_phy_chanspec_radio_set ( struct brcms_phy_pub ppi,
u16  newch 
)

Definition at line 1169 of file phy_cmn.c.

void wlc_phy_chanspec_set ( struct brcms_phy_pub ppi,
u16  chanspec 
)

Definition at line 1183 of file phy_cmn.c.

void wlc_phy_clear_tssi ( struct brcms_phy_pub pih)

Definition at line 1102 of file phy_cmn.c.

u32 wlc_phy_clk_bwbits ( struct brcms_phy_pub pih)

Definition at line 679 of file phy_cmn.c.

void wlc_phy_compute_dB ( u32 cmplx_pwr,
s8 p_cmplx_pwr_dB,
u8  core 
)

Definition at line 2523 of file phy_cmn.c.

void wlc_phy_detach ( struct brcms_phy_pub pih)

Definition at line 592 of file phy_cmn.c.

void wlc_phy_do_dummy_tx ( struct brcms_phy pi,
bool  ofdm,
bool  pa_on 
)

Definition at line 998 of file phy_cmn.c.

int wlc_phy_down ( struct brcms_phy_pub pih)

Definition at line 822 of file phy_cmn.c.

void wlc_phy_edcrs_lock ( struct brcms_phy_pub pih,
bool  lock 
)

Definition at line 711 of file phy_cmn.c.

void wlc_phy_freqtrack_end ( struct brcms_phy_pub pih)

Definition at line 2585 of file phy_cmn.c.

void wlc_phy_freqtrack_start ( struct brcms_phy_pub pih)

Definition at line 2580 of file phy_cmn.c.

u32 wlc_phy_get_coreflags ( struct brcms_phy_pub pih)

Definition at line 636 of file phy_cmn.c.

bool wlc_phy_get_encore ( struct brcms_phy_pub pih)

Definition at line 630 of file phy_cmn.c.

const u8* wlc_phy_get_ofdm_rate_lookup ( void  )

Definition at line 2896 of file phy_cmn.c.

bool wlc_phy_get_phyversion ( struct brcms_phy_pub pih,
u16 phytype,
u16 phyrev,
u16 radioid,
u16 radiover 
)

Definition at line 618 of file phy_cmn.c.

void wlc_phy_get_pwrdet_offsets ( struct brcms_phy pi,
s8 cckoffset,
s8 ofdmoffset 
)

Definition at line 2947 of file phy_cmn.c.

void wlc_phy_hold_upd ( struct brcms_phy_pub pih,
u32  id,
bool  set 
)

Definition at line 1076 of file phy_cmn.c.

void wlc_phy_hw_clk_state_upd ( struct brcms_phy_pub pih,
bool  newstate 
)

Definition at line 730 of file phy_cmn.c.

void wlc_phy_hw_state_upd ( struct brcms_phy_pub pih,
bool  newstate 
)

Definition at line 740 of file phy_cmn.c.

void wlc_phy_init ( struct brcms_phy_pub pih,
u16  chanspec 
)

Definition at line 750 of file phy_cmn.c.

uint wlc_phy_init_radio_regs ( struct brcms_phy pi,
const struct radio_regs radioregs,
u16  core_offset 
)

Definition at line 964 of file phy_cmn.c.

uint wlc_phy_init_radio_regs_allbands ( struct brcms_phy pi,
struct radio_20xx_regs radioregs 
)

Definition at line 947 of file phy_cmn.c.

void wlc_phy_initcal_enable ( struct brcms_phy_pub pih,
bool  initcal 
)

Definition at line 723 of file phy_cmn.c.

void wlc_phy_ldpc_override_set ( struct brcms_phy_pub ppi,
bool  ldpc 
)

Definition at line 2941 of file phy_cmn.c.

void wlc_phy_machwcap_set ( struct brcms_phy_pub ppi,
u32  machwcap 
)

Definition at line 1829 of file phy_cmn.c.

void wlc_phy_mute_upd ( struct brcms_phy_pub pih,
bool  mute,
u32  flags 
)

Definition at line 1088 of file phy_cmn.c.

u8 wlc_phy_nbits ( s32  value)

Definition at line 2802 of file phy_cmn.c.

void wlc_phy_noise_sample_intr ( struct brcms_phy_pub pih)

Definition at line 2293 of file phy_cmn.c.

void wlc_phy_noise_sample_request_external ( struct brcms_phy_pub pih)

Definition at line 2473 of file phy_cmn.c.

void wlc_phy_ofdm_rateset_war ( struct brcms_phy_pub pih,
bool  war 
)

Definition at line 1891 of file phy_cmn.c.

void wlc_phy_papd_decode_epsilon ( u32  epsilon,
s32 eps_real,
s32 eps_imag 
)

Definition at line 2684 of file phy_cmn.c.

void wlc_phy_por_inform ( struct brcms_phy_pub ppi)

Definition at line 704 of file phy_cmn.c.

void wlc_phy_read_table ( struct brcms_phy pi,
const struct phytbl_info ptbl_info,
u16  tblAddr,
u16  tblDataHi,
u16  tblDataLo 
)

Definition at line 912 of file phy_cmn.c.

int wlc_phy_rssi_compute ( struct brcms_phy_pub pih,
struct d11rxhdr rxh 
)

Definition at line 2538 of file phy_cmn.c.

void wlc_phy_runbist_config ( struct brcms_phy_pub ppi,
bool  start_end 
)

Definition at line 1836 of file phy_cmn.c.

void wlc_phy_set_deaf ( struct brcms_phy_pub ppi,
bool  user_flag 
)

Definition at line 2590 of file phy_cmn.c.

struct shared_phy* wlc_phy_shared_attach ( struct shared_phy_params shp)
read

Definition at line 369 of file phy_cmn.c.

u8 wlc_phy_stf_chain_active_get ( struct brcms_phy_pub pih)

Definition at line 2845 of file phy_cmn.c.

void wlc_phy_stf_chain_get ( struct brcms_phy_pub pih,
u8 txchain,
u8 rxchain 
)

Definition at line 2837 of file phy_cmn.c.

void wlc_phy_stf_chain_init ( struct brcms_phy_pub pih,
u8  txchain,
u8  rxchain 
)

Definition at line 2814 of file phy_cmn.c.

void wlc_phy_stf_chain_set ( struct brcms_phy_pub pih,
u8  txchain,
u8  rxchain 
)

Definition at line 2825 of file phy_cmn.c.

s8 wlc_phy_stf_ssmode_get ( struct brcms_phy_pub pih,
u16  chanspec 
)

Definition at line 2877 of file phy_cmn.c.

void wlc_phy_switch_radio ( struct brcms_phy_pub pih,
bool  on 
)

Definition at line 1121 of file phy_cmn.c.

void wlc_phy_table_addr ( struct brcms_phy pi,
uint  tbl_id,
uint  tbl_offset,
u16  tblAddr,
u16  tblDataHi,
u16  tblDataLo 
)

Definition at line 838 of file phy_cmn.c.

void wlc_phy_table_data_write ( struct brcms_phy pi,
uint  width,
u32  val 
)

Definition at line 854 of file phy_cmn.c.

bool wlc_phy_test_ison ( struct brcms_phy_pub ppi)

Definition at line 2153 of file phy_cmn.c.

void wlc_phy_txpower_boardlimit_band ( struct brcms_phy_pub ppi,
uint  bandunit,
s32 max_pwr,
s32 min_pwr,
u32 step_pwr 
)

Definition at line 1493 of file phy_cmn.c.

int wlc_phy_txpower_get ( struct brcms_phy_pub ppi,
uint qdbm,
bool override 
)

Definition at line 1317 of file phy_cmn.c.

void wlc_phy_txpower_get_current ( struct brcms_phy_pub ppi,
struct tx_power power,
uint  channel 
)

Definition at line 2047 of file phy_cmn.c.

u8 wlc_phy_txpower_get_target_max ( struct brcms_phy_pub ppi)

Definition at line 1506 of file phy_cmn.c.

u8 wlc_phy_txpower_get_target_min ( struct brcms_phy_pub ppi)

Definition at line 1499 of file phy_cmn.c.

bool wlc_phy_txpower_hw_ctrl_get ( struct brcms_phy_pub ppi)

Definition at line 1955 of file phy_cmn.c.

void wlc_phy_txpower_hw_ctrl_set ( struct brcms_phy_pub ppi,
bool  hwpwrctrl 
)

Definition at line 1965 of file phy_cmn.c.

bool wlc_phy_txpower_ipa_ison ( struct brcms_phy_pub ppi)

Definition at line 2959 of file phy_cmn.c.

void wlc_phy_txpower_ipa_upd ( struct brcms_phy pi)

Definition at line 1996 of file phy_cmn.c.

void wlc_phy_txpower_limit_set ( struct brcms_phy_pub ppi,
struct txpwr_limits txpwr,
u16  chanspec 
)

Definition at line 1866 of file phy_cmn.c.

void wlc_phy_txpower_recalc_target ( struct brcms_phy pi)

Definition at line 1553 of file phy_cmn.c.

int wlc_phy_txpower_set ( struct brcms_phy_pub ppi,
uint  qdbm,
bool  override 
)

Definition at line 1377 of file phy_cmn.c.

void wlc_phy_txpower_sromlimit ( struct brcms_phy_pub ppi,
uint  channel,
u8 min_pwr,
u8 max_pwr,
int  txp_rate_idx 
)

Definition at line 1412 of file phy_cmn.c.

void wlc_phy_txpower_sromlimit_max_get ( struct brcms_phy_pub ppi,
uint  chan,
u8 max_txpwr,
u8 min_txpwr 
)

Definition at line 1461 of file phy_cmn.c.

void wlc_phy_txpower_target_set ( struct brcms_phy_pub ppi,
struct txpwr_limits txpwr 
)

Definition at line 1327 of file phy_cmn.c.

void wlc_phy_txpower_update_shm ( struct brcms_phy pi)

Definition at line 1905 of file phy_cmn.c.

void wlc_phy_txpwr_percent_set ( struct brcms_phy_pub ppi,
u8  txpwr_percent 
)

Definition at line 1822 of file phy_cmn.c.

s8 wlc_phy_upd_rssi_offset ( struct brcms_phy pi,
s8  rssi,
u16  chanspec 
)

Definition at line 2953 of file phy_cmn.c.

void wlc_phy_watchdog ( struct brcms_phy_pub pih)

Definition at line 2601 of file phy_cmn.c.

void wlc_phy_write_table ( struct brcms_phy pi,
const struct phytbl_info ptbl_info,
u16  tblAddr,
u16  tblDataHi,
u16  tblDataLo 
)

Definition at line 875 of file phy_cmn.c.

void wlc_phyreg_enter ( struct brcms_phy_pub pih)

Definition at line 129 of file phy_cmn.c.

void wlc_phyreg_exit ( struct brcms_phy_pub pih)

Definition at line 135 of file phy_cmn.c.

void wlc_radioreg_enter ( struct brcms_phy_pub pih)

Definition at line 141 of file phy_cmn.c.

void wlc_radioreg_exit ( struct brcms_phy_pub pih)

Definition at line 149 of file phy_cmn.c.

void write_phy_channel_reg ( struct brcms_phy pi,
uint  val 
)

Definition at line 279 of file phy_cmn.c.

void write_phy_reg ( struct brcms_phy pi,
u16  addr,
u16  val 
)

Definition at line 292 of file phy_cmn.c.

void write_radio_reg ( struct brcms_phy pi,
u16  addr,
u16  val 
)

Definition at line 199 of file phy_cmn.c.

void xor_radio_reg ( struct brcms_phy pi,
u16  addr,
u16  mask 
)

Definition at line 263 of file phy_cmn.c.