Lines Matching refs:latch
164 counter = (d - (ti->counter_value + 1)) % (ti->latch + 2); in get_counter()
165 counter = (ti->latch - counter) & 0xffff; in get_counter()
203 counter = (d - (ti->counter_value + 1)) % (ti->latch + 2); in get_next_irq_time()
204 counter = (ti->latch - counter) & 0xffff; in get_next_irq_time()
209 next_time = d + ti->latch + 1; in get_next_irq_time()
211 next_time = d + ti->latch + 2; in get_next_irq_time()
215 trace_mos6522_get_next_irq_time(ti->latch, d, next_time - d); in get_next_irq_time()
349 val = s->timers[0].latch & 0xff; in mos6522_read()
353 val = (s->timers[0].latch >> 8) & 0xff; in mos6522_read()
433 s->timers[0].latch = (s->timers[0].latch & 0xff00) | val; in mos6522_write()
438 s->timers[0].latch = (s->timers[0].latch & 0xff) | (val << 8); in mos6522_write()
440 set_counter(s, &s->timers[0], s->timers[0].latch); in mos6522_write()
443 s->timers[0].latch = (s->timers[0].latch & 0xff00) | val; in mos6522_write()
448 s->timers[0].latch = (s->timers[0].latch & 0xff) | (val << 8); in mos6522_write()
454 s->timers[1].latch = (s->timers[1].latch & 0xff00) | val; in mos6522_write()
460 s->timers[1].latch = (s->timers[1].latch & 0xff) | (val << 8); in mos6522_write()
462 set_counter(s, &s->timers[1], s->timers[1].latch); in mos6522_write()
527 s->timers[0].latch & 0xff); in qmp_x_query_via_foreach()
530 s->timers[0].latch >> 8); in qmp_x_query_via_foreach()
559 s->timers[0].latch, in qmp_x_query_via_foreach()
571 s->timers[1].latch, in qmp_x_query_via_foreach()
615 VMSTATE_UINT16(latch, MOS6522Timer),
661 s->timers[0].latch = 0xffff; in mos6522_reset_hold()
666 s->timers[1].latch = 0xffff; in mos6522_reset_hold()