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