Lines Matching refs:physhim

41 	struct phy_shim_info *physhim;  in wlc_phy_shim_attach()  local
43 physhim = kzalloc(sizeof(*physhim), GFP_ATOMIC); in wlc_phy_shim_attach()
44 if (!physhim) in wlc_phy_shim_attach()
47 physhim->wlc_hw = wlc_hw; in wlc_phy_shim_attach()
48 physhim->wlc = wlc; in wlc_phy_shim_attach()
49 physhim->wl = wl; in wlc_phy_shim_attach()
51 return physhim; in wlc_phy_shim_attach()
54 void wlc_phy_shim_detach(struct phy_shim_info *physhim) in wlc_phy_shim_detach() argument
56 kfree(physhim); in wlc_phy_shim_detach()
59 struct wlapi_timer *wlapi_init_timer(struct phy_shim_info *physhim, in wlapi_init_timer() argument
64 brcms_init_timer(physhim->wl, fn, arg, name); in wlapi_init_timer()
83 void wlapi_intrson(struct phy_shim_info *physhim) in wlapi_intrson() argument
85 brcms_intrson(physhim->wl); in wlapi_intrson()
88 u32 wlapi_intrsoff(struct phy_shim_info *physhim) in wlapi_intrsoff() argument
90 return brcms_intrsoff(physhim->wl); in wlapi_intrsoff()
93 void wlapi_intrsrestore(struct phy_shim_info *physhim, u32 macintmask) in wlapi_intrsrestore() argument
95 brcms_intrsrestore(physhim->wl, macintmask); in wlapi_intrsrestore()
98 void wlapi_bmac_write_shm(struct phy_shim_info *physhim, uint offset, u16 v) in wlapi_bmac_write_shm() argument
100 brcms_b_write_shm(physhim->wlc_hw, offset, v); in wlapi_bmac_write_shm()
103 u16 wlapi_bmac_read_shm(struct phy_shim_info *physhim, uint offset) in wlapi_bmac_read_shm() argument
105 return brcms_b_read_shm(physhim->wlc_hw, offset); in wlapi_bmac_read_shm()
109 wlapi_bmac_mhf(struct phy_shim_info *physhim, u8 idx, u16 mask, in wlapi_bmac_mhf() argument
112 brcms_b_mhf(physhim->wlc_hw, idx, mask, val, bands); in wlapi_bmac_mhf()
115 void wlapi_bmac_corereset(struct phy_shim_info *physhim, u32 flags) in wlapi_bmac_corereset() argument
117 brcms_b_corereset(physhim->wlc_hw, flags); in wlapi_bmac_corereset()
120 void wlapi_suspend_mac_and_wait(struct phy_shim_info *physhim) in wlapi_suspend_mac_and_wait() argument
122 brcms_c_suspend_mac_and_wait(physhim->wlc); in wlapi_suspend_mac_and_wait()
125 void wlapi_switch_macfreq(struct phy_shim_info *physhim, u8 spurmode) in wlapi_switch_macfreq() argument
127 brcms_b_switch_macfreq(physhim->wlc_hw, spurmode); in wlapi_switch_macfreq()
130 void wlapi_enable_mac(struct phy_shim_info *physhim) in wlapi_enable_mac() argument
132 brcms_c_enable_mac(physhim->wlc); in wlapi_enable_mac()
135 void wlapi_bmac_mctrl(struct phy_shim_info *physhim, u32 mask, u32 val) in wlapi_bmac_mctrl() argument
137 brcms_b_mctrl(physhim->wlc_hw, mask, val); in wlapi_bmac_mctrl()
140 void wlapi_bmac_phy_reset(struct phy_shim_info *physhim) in wlapi_bmac_phy_reset() argument
142 brcms_b_phy_reset(physhim->wlc_hw); in wlapi_bmac_phy_reset()
145 void wlapi_bmac_bw_set(struct phy_shim_info *physhim, u16 bw) in wlapi_bmac_bw_set() argument
147 brcms_b_bw_set(physhim->wlc_hw, bw); in wlapi_bmac_bw_set()
150 u16 wlapi_bmac_get_txant(struct phy_shim_info *physhim) in wlapi_bmac_get_txant() argument
152 return brcms_b_get_txant(physhim->wlc_hw); in wlapi_bmac_get_txant()
155 void wlapi_bmac_phyclk_fgc(struct phy_shim_info *physhim, bool clk) in wlapi_bmac_phyclk_fgc() argument
157 brcms_b_phyclk_fgc(physhim->wlc_hw, clk); in wlapi_bmac_phyclk_fgc()
160 void wlapi_bmac_macphyclk_set(struct phy_shim_info *physhim, bool clk) in wlapi_bmac_macphyclk_set() argument
162 brcms_b_macphyclk_set(physhim->wlc_hw, clk); in wlapi_bmac_macphyclk_set()
165 void wlapi_bmac_core_phypll_ctl(struct phy_shim_info *physhim, bool on) in wlapi_bmac_core_phypll_ctl() argument
167 brcms_b_core_phypll_ctl(physhim->wlc_hw, on); in wlapi_bmac_core_phypll_ctl()
170 void wlapi_bmac_core_phypll_reset(struct phy_shim_info *physhim) in wlapi_bmac_core_phypll_reset() argument
172 brcms_b_core_phypll_reset(physhim->wlc_hw); in wlapi_bmac_core_phypll_reset()
175 void wlapi_bmac_ucode_wake_override_phyreg_set(struct phy_shim_info *physhim) in wlapi_bmac_ucode_wake_override_phyreg_set() argument
177 brcms_c_ucode_wake_override_set(physhim->wlc_hw, in wlapi_bmac_ucode_wake_override_phyreg_set()
181 void wlapi_bmac_ucode_wake_override_phyreg_clear(struct phy_shim_info *physhim) in wlapi_bmac_ucode_wake_override_phyreg_clear() argument
183 brcms_c_ucode_wake_override_clear(physhim->wlc_hw, in wlapi_bmac_ucode_wake_override_phyreg_clear()
188 wlapi_bmac_write_template_ram(struct phy_shim_info *physhim, int offset, in wlapi_bmac_write_template_ram() argument
191 brcms_b_write_template_ram(physhim->wlc_hw, offset, len, buf); in wlapi_bmac_write_template_ram()
194 u16 wlapi_bmac_rate_shm_offset(struct phy_shim_info *physhim, u8 rate) in wlapi_bmac_rate_shm_offset() argument
196 return brcms_b_rate_shm_offset(physhim->wlc_hw, rate); in wlapi_bmac_rate_shm_offset()
199 void wlapi_ucode_sample_init(struct phy_shim_info *physhim) in wlapi_ucode_sample_init() argument
204 wlapi_copyfrom_objmem(struct phy_shim_info *physhim, uint offset, void *buf, in wlapi_copyfrom_objmem() argument
207 brcms_b_copyfrom_objmem(physhim->wlc_hw, offset, buf, len, sel); in wlapi_copyfrom_objmem()
211 wlapi_copyto_objmem(struct phy_shim_info *physhim, uint offset, const void *buf, in wlapi_copyto_objmem() argument
214 brcms_b_copyto_objmem(physhim->wlc_hw, offset, buf, l, sel); in wlapi_copyto_objmem()