Lines Matching refs:t
478 mv88w8618_timer_state *t; in mv88w8618_pit_read() local
482 t = &s->timer[(offset-MP_PIT_TIMER1_VALUE) >> 2]; in mv88w8618_pit_read()
483 return ptimer_get_count(t->ptimer); in mv88w8618_pit_read()
494 mv88w8618_timer_state *t; in mv88w8618_pit_write() local
499 t = &s->timer[offset >> 2]; in mv88w8618_pit_write()
500 t->limit = value; in mv88w8618_pit_write()
501 ptimer_transaction_begin(t->ptimer); in mv88w8618_pit_write()
502 if (t->limit > 0) { in mv88w8618_pit_write()
503 ptimer_set_limit(t->ptimer, t->limit, 1); in mv88w8618_pit_write()
505 ptimer_stop(t->ptimer); in mv88w8618_pit_write()
507 ptimer_transaction_commit(t->ptimer); in mv88w8618_pit_write()
512 t = &s->timer[i]; in mv88w8618_pit_write()
513 ptimer_transaction_begin(t->ptimer); in mv88w8618_pit_write()
514 if (value & 0xf && t->limit > 0) { in mv88w8618_pit_write()
515 ptimer_set_limit(t->ptimer, t->limit, 0); in mv88w8618_pit_write()
516 ptimer_set_freq(t->ptimer, t->freq); in mv88w8618_pit_write()
517 ptimer_run(t->ptimer, 0); in mv88w8618_pit_write()
519 ptimer_stop(t->ptimer); in mv88w8618_pit_write()
521 ptimer_transaction_commit(t->ptimer); in mv88w8618_pit_write()
540 mv88w8618_timer_state *t = &s->timer[i]; in mv88w8618_pit_reset() local
541 ptimer_transaction_begin(t->ptimer); in mv88w8618_pit_reset()
542 ptimer_stop(t->ptimer); in mv88w8618_pit_reset()
543 ptimer_transaction_commit(t->ptimer); in mv88w8618_pit_reset()
544 t->limit = 0; in mv88w8618_pit_reset()