Lines Matching refs:physhim

41 	struct phy_shim_info *physhim = NULL;  in wlc_phy_shim_attach()  local
43 physhim = kzalloc(sizeof(struct phy_shim_info), 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, (void (*)(void *))fn, in wlapi_init_timer()
84 void wlapi_intrson(struct phy_shim_info *physhim) in wlapi_intrson() argument
86 brcms_intrson(physhim->wl); in wlapi_intrson()
89 u32 wlapi_intrsoff(struct phy_shim_info *physhim) in wlapi_intrsoff() argument
91 return brcms_intrsoff(physhim->wl); in wlapi_intrsoff()
94 void wlapi_intrsrestore(struct phy_shim_info *physhim, u32 macintmask) in wlapi_intrsrestore() argument
96 brcms_intrsrestore(physhim->wl, macintmask); in wlapi_intrsrestore()
99 void wlapi_bmac_write_shm(struct phy_shim_info *physhim, uint offset, u16 v) in wlapi_bmac_write_shm() argument
101 brcms_b_write_shm(physhim->wlc_hw, offset, v); in wlapi_bmac_write_shm()
104 u16 wlapi_bmac_read_shm(struct phy_shim_info *physhim, uint offset) in wlapi_bmac_read_shm() argument
106 return brcms_b_read_shm(physhim->wlc_hw, offset); in wlapi_bmac_read_shm()
110 wlapi_bmac_mhf(struct phy_shim_info *physhim, u8 idx, u16 mask, in wlapi_bmac_mhf() argument
113 brcms_b_mhf(physhim->wlc_hw, idx, mask, val, bands); in wlapi_bmac_mhf()
116 void wlapi_bmac_corereset(struct phy_shim_info *physhim, u32 flags) in wlapi_bmac_corereset() argument
118 brcms_b_corereset(physhim->wlc_hw, flags); in wlapi_bmac_corereset()
121 void wlapi_suspend_mac_and_wait(struct phy_shim_info *physhim) in wlapi_suspend_mac_and_wait() argument
123 brcms_c_suspend_mac_and_wait(physhim->wlc); in wlapi_suspend_mac_and_wait()
126 void wlapi_switch_macfreq(struct phy_shim_info *physhim, u8 spurmode) in wlapi_switch_macfreq() argument
128 brcms_b_switch_macfreq(physhim->wlc_hw, spurmode); in wlapi_switch_macfreq()
131 void wlapi_enable_mac(struct phy_shim_info *physhim) in wlapi_enable_mac() argument
133 brcms_c_enable_mac(physhim->wlc); in wlapi_enable_mac()
136 void wlapi_bmac_mctrl(struct phy_shim_info *physhim, u32 mask, u32 val) in wlapi_bmac_mctrl() argument
138 brcms_b_mctrl(physhim->wlc_hw, mask, val); in wlapi_bmac_mctrl()
141 void wlapi_bmac_phy_reset(struct phy_shim_info *physhim) in wlapi_bmac_phy_reset() argument
143 brcms_b_phy_reset(physhim->wlc_hw); in wlapi_bmac_phy_reset()
146 void wlapi_bmac_bw_set(struct phy_shim_info *physhim, u16 bw) in wlapi_bmac_bw_set() argument
148 brcms_b_bw_set(physhim->wlc_hw, bw); in wlapi_bmac_bw_set()
151 u16 wlapi_bmac_get_txant(struct phy_shim_info *physhim) in wlapi_bmac_get_txant() argument
153 return brcms_b_get_txant(physhim->wlc_hw); in wlapi_bmac_get_txant()
156 void wlapi_bmac_phyclk_fgc(struct phy_shim_info *physhim, bool clk) in wlapi_bmac_phyclk_fgc() argument
158 brcms_b_phyclk_fgc(physhim->wlc_hw, clk); in wlapi_bmac_phyclk_fgc()
161 void wlapi_bmac_macphyclk_set(struct phy_shim_info *physhim, bool clk) in wlapi_bmac_macphyclk_set() argument
163 brcms_b_macphyclk_set(physhim->wlc_hw, clk); in wlapi_bmac_macphyclk_set()
166 void wlapi_bmac_core_phypll_ctl(struct phy_shim_info *physhim, bool on) in wlapi_bmac_core_phypll_ctl() argument
168 brcms_b_core_phypll_ctl(physhim->wlc_hw, on); in wlapi_bmac_core_phypll_ctl()
171 void wlapi_bmac_core_phypll_reset(struct phy_shim_info *physhim) in wlapi_bmac_core_phypll_reset() argument
173 brcms_b_core_phypll_reset(physhim->wlc_hw); in wlapi_bmac_core_phypll_reset()
176 void wlapi_bmac_ucode_wake_override_phyreg_set(struct phy_shim_info *physhim) in wlapi_bmac_ucode_wake_override_phyreg_set() argument
178 brcms_c_ucode_wake_override_set(physhim->wlc_hw, in wlapi_bmac_ucode_wake_override_phyreg_set()
182 void wlapi_bmac_ucode_wake_override_phyreg_clear(struct phy_shim_info *physhim) in wlapi_bmac_ucode_wake_override_phyreg_clear() argument
184 brcms_c_ucode_wake_override_clear(physhim->wlc_hw, in wlapi_bmac_ucode_wake_override_phyreg_clear()
189 wlapi_bmac_write_template_ram(struct phy_shim_info *physhim, int offset, in wlapi_bmac_write_template_ram() argument
192 brcms_b_write_template_ram(physhim->wlc_hw, offset, len, buf); in wlapi_bmac_write_template_ram()
195 u16 wlapi_bmac_rate_shm_offset(struct phy_shim_info *physhim, u8 rate) in wlapi_bmac_rate_shm_offset() argument
197 return brcms_b_rate_shm_offset(physhim->wlc_hw, rate); in wlapi_bmac_rate_shm_offset()
200 void wlapi_ucode_sample_init(struct phy_shim_info *physhim) in wlapi_ucode_sample_init() argument
205 wlapi_copyfrom_objmem(struct phy_shim_info *physhim, uint offset, void *buf, in wlapi_copyfrom_objmem() argument
208 brcms_b_copyfrom_objmem(physhim->wlc_hw, offset, buf, len, sel); in wlapi_copyfrom_objmem()
212 wlapi_copyto_objmem(struct phy_shim_info *physhim, uint offset, const void *buf, in wlapi_copyto_objmem() argument
215 brcms_b_copyto_objmem(physhim->wlc_hw, offset, buf, l, sel); in wlapi_copyto_objmem()