• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/sysdev/

Lines Matching defs:tmr

147  * @tmr:	pointer to the gtm_timer structure obtained from gtm_get_timer
152 void gtm_put_timer16(struct gtm_timer *tmr)
154 gtm_stop_timer16(tmr);
156 spin_lock_irq(&tmr->gtm->lock);
157 tmr->requested = false;
158 spin_unlock_irq(&tmr->gtm->lock);
166 static int gtm_set_ref_timer16(struct gtm_timer *tmr, int frequency,
169 struct gtm *gtm = tmr->gtm;
170 int num = tmr - &gtm->timers[0];
179 if (!tmr->gtpsr)
210 clrsetbits_8(tmr->gtcfr, ~(GTCFR_STP(num) | GTCFR_RST(num)),
213 setbits8(tmr->gtcfr, GTCFR_STP(num));
215 if (tmr->gtpsr)
216 out_be16(tmr->gtpsr, psr);
217 clrsetbits_be16(tmr->gtmdr, 0xFFFF, iclk | GTMDR_SPS(sps) |
219 out_be16(tmr->gtcnr, 0);
220 out_be16(tmr->gtrfr, reference_value);
221 out_be16(tmr->gtevr, 0xFFFF);
224 clrbits8(tmr->gtcfr, GTCFR_STP(num));
233 * @tmr: pointer to the gtm_timer structure obtained from gtm_get_timer
244 int gtm_set_timer16(struct gtm_timer *tmr, unsigned long usec, bool reload)
259 return gtm_set_ref_timer16(tmr, freq, usec, reload);
265 * @tmr: pointer to the gtm_timer structure obtained from gtm_get_timer
280 int gtm_set_exact_timer16(struct gtm_timer *tmr, u16 usec, bool reload)
292 return gtm_set_ref_timer16(tmr, freq, usec, reload);
298 * @tmr: pointer to the gtm_timer structure obtained from gtm_get_timer
303 void gtm_stop_timer16(struct gtm_timer *tmr)
305 struct gtm *gtm = tmr->gtm;
306 int num = tmr - &gtm->timers[0];
311 setbits8(tmr->gtcfr, GTCFR_STP(num));
312 out_be16(tmr->gtevr, 0xFFFF);
320 * @tmr: pointer to the gtm_timer structure obtained from gtm_get_timer
327 void gtm_ack_timer16(struct gtm_timer *tmr, u16 events)
329 out_be16(tmr->gtevr, events);