Lines Matching refs:index
75 /* Find the first availabe timer index */
104 ar9300_free_generic_timer(struct ath_hal *ah, int index)
108 ar9300_stop_generic_timer(ah, index);
109 ahp->ah_avail_gen_timers |= AR_GENTMR_BIT(index);
115 int index,
119 if ((index < AR_FIRST_NDP_TIMER) || (index >= AR_NUM_GEN_TIMERS)) {
126 OS_REG_WRITE(ah, gen_timer_configuration[index].next_addr, timer_next);
127 OS_REG_WRITE(ah, gen_timer_configuration[index].period_addr, timer_period);
129 gen_timer_configuration[index].mode_addr,
130 gen_timer_configuration[index].mode_mask);
138 if ((index < AR_GEN_TIMER_BANK_1_LEN)) {
139 OS_REG_CLR_BIT(ah, AR_MAC_PCU_GEN_TIMER_TSF_SEL, (1 << index));
142 OS_REG_SET_BIT(ah, AR_MAC_PCU_GEN_TIMER_TSF_SEL, (1 << index));
148 (SM(AR_GENTMR_BIT(index), AR_IMR_S5_GENTIMER_THRESH) |
149 SM(AR_GENTMR_BIT(index), AR_IMR_S5_GENTIMER_TRIG)));
153 ar9300_stop_generic_timer(struct ath_hal *ah, int index)
155 if ((index < AR_FIRST_NDP_TIMER) || (index >= AR_NUM_GEN_TIMERS)) {
163 gen_timer_configuration[index].mode_addr,
164 gen_timer_configuration[index].mode_mask);
168 (SM(AR_GENTMR_BIT(index), AR_IMR_S5_GENTIMER_THRESH) |
169 SM(AR_GENTMR_BIT(index), AR_IMR_S5_GENTIMER_TRIG)));