Lines Matching refs:scn
72 static inline void set_target_reg_bits(struct hif_softc *scn, in set_target_reg_bits() argument
76 uint32_t value = hif_read32_mb(scn, mem + (reg)); in set_target_reg_bits()
84 hif_write32_mb(scn, mem + (reg), value); in set_target_reg_bits()
87 static inline uint32_t get_target_reg_bits(struct hif_softc *scn, in get_target_reg_bits() argument
91 uint32_t value = hif_read32_mb(scn, mem + (reg)); in get_target_reg_bits()
100 void priv_start_cap_chaninfo(struct hif_softc *scn) in priv_start_cap_chaninfo() argument
102 set_target_reg_bits(scn, scn->mem, BB_chaninfo_ctrl, in priv_start_cap_chaninfo()
106 void priv_start_agc(struct hif_softc *scn) in priv_start_agc() argument
109 hif_read32_mb(scn, scn->mem + BB_gains_min_offsets); in priv_start_agc()
110 set_target_reg_bits(scn, scn->mem, BB_gains_min_offsets, in priv_start_agc()
115 static void priv_stop_agc(struct hif_softc *scn) in priv_stop_agc() argument
117 set_target_reg_bits(scn, scn->mem, BB_gains_min_offsets, in priv_stop_agc()
122 void priv_dump_chaninfo(struct hif_softc *scn) in priv_dump_chaninfo() argument
130 get_target_reg_bits(scn, scn->mem, BB_multichain_enable, in priv_dump_chaninfo()
136 bw = get_target_reg_bits(scn, scn->mem, BB_chaninfo_ctrl, in priv_dump_chaninfo()
157 hif_write32_mb(scn, scn->mem + BB_chn_tables_intf_addr, in priv_dump_chaninfo()
161 hif_write32_mb(scn, scn->mem + BB_chn1_tables_intf_addr, in priv_dump_chaninfo()
165 set_target_reg_bits(scn, scn->mem, BB_chaninfo_ctrl, in priv_dump_chaninfo()
172 val = hif_read32_mb(scn, scn->mem + in priv_dump_chaninfo()
182 tmp = hif_read32_mb(scn, scn->mem + in priv_dump_chaninfo()
191 hif_write32_mb(scn, scn->mem + in priv_dump_chaninfo()
196 tmp = hif_read32_mb(scn, scn->mem + in priv_dump_chaninfo()
212 hif_read32_mb(scn, scn->mem + in priv_dump_chaninfo()
223 hif_read32_mb(scn, scn->mem + in priv_dump_chaninfo()
232 hif_write32_mb(scn, scn->mem + in priv_dump_chaninfo()
238 hif_read32_mb(scn, scn->mem + in priv_dump_chaninfo()
252 void priv_dump_agc(struct hif_softc *scn) in priv_dump_agc() argument
257 if (Q_TARGET_ACCESS_BEGIN(scn) < 0) in priv_dump_agc()
261 get_target_reg_bits(scn, scn->mem, BB_multichain_enable, in priv_dump_agc()
267 priv_stop_agc(scn); in priv_dump_agc()
269 set_target_reg_bits(scn, scn->mem, BB_chaninfo_ctrl, in priv_dump_agc()
275 hif_write32_mb(scn, scn->mem + in priv_dump_agc()
278 val = hif_read32_mb(scn, scn->mem + in priv_dump_agc()
287 hif_write32_mb(scn, scn->mem + in priv_dump_agc()
290 val = hif_read32_mb(scn, scn->mem + in priv_dump_agc()
299 hif_write32_mb(scn, scn->mem + BB_gains_min_offsets, in priv_dump_agc()
302 Q_TARGET_ACCESS_END(scn); in priv_dump_agc()
306 void priv_dump_bbwatchdog(struct hif_softc *scn) in priv_dump_bbwatchdog() argument
311 val = hif_read32_mb(scn, scn->mem + BB_watchdog_status); in priv_dump_bbwatchdog()
313 val = hif_read32_mb(scn, scn->mem + BB_watchdog_ctrl_1); in priv_dump_bbwatchdog()
315 val = hif_read32_mb(scn, scn->mem + BB_watchdog_ctrl_2); in priv_dump_bbwatchdog()
317 val = hif_read32_mb(scn, scn->mem + BB_watchdog_status_B); in priv_dump_bbwatchdog()