Lines Matching refs:channel
80 struct channel { struct
102 struct channel channel[3]; argument
108 vatpit_delta_ticks(struct vatpit *vatpit, struct channel *c) in vatpit_delta_ticks()
123 vatpit_get_out(struct vatpit *vatpit, int channel) in vatpit_get_out() argument
125 struct channel *c; in vatpit_get_out()
129 c = &vatpit->channel[channel]; in vatpit_get_out()
150 struct channel *c; in vatpit_callout_handler()
153 c = &vatpit->channel[arg->channel_num]; in vatpit_callout_handler()
183 struct channel *c; in pit_timer_start_cntr0()
187 c = &vatpit->channel[0]; in pit_timer_start_cntr0()
212 pit_update_counter(struct vatpit *vatpit, struct channel *c, bool latch) in pit_update_counter()
248 pit_readback1(struct vatpit *vatpit, int channel, uint8_t cmd) in pit_readback1() argument
250 struct channel *c; in pit_readback1()
252 c = &vatpit->channel[channel]; in pit_readback1()
269 if (c->mode == TIMER_INTTC && vatpit_get_out(vatpit, channel)) in pit_readback1()
300 struct channel *c; in vatpit_update_mode()
325 c = &vatpit->channel[sel >> 6]; in vatpit_update_mode()
341 struct channel *c; in vatpit_handler()
368 c = &vatpit->channel[port - TIMER_CNTR0]; in vatpit_handler()
455 callout_init(&vatpit->channel[i].callout, 1); in vatpit_init()
456 arg = &vatpit->channel[i].callout_arg; in vatpit_init()
470 callout_drain(&vatpit->channel[i].callout); in vatpit_cleanup()
482 struct channel *channel; in vatpit_snapshot() local
490 for (i = 0; i < nitems(vatpit->channel); i++) { in vatpit_snapshot()
491 channel = &vatpit->channel[i]; in vatpit_snapshot()
493 SNAPSHOT_VAR_OR_LEAVE(channel->mode, meta, ret, done); in vatpit_snapshot()
494 SNAPSHOT_VAR_OR_LEAVE(channel->initial, meta, ret, done); in vatpit_snapshot()
495 SNAPSHOT_VAR_OR_LEAVE(channel->now_bt.sec, meta, ret, done); in vatpit_snapshot()
496 SNAPSHOT_VAR_OR_LEAVE(channel->now_bt.frac, meta, ret, done); in vatpit_snapshot()
497 SNAPSHOT_BUF_OR_LEAVE(channel->cr, sizeof(channel->cr), in vatpit_snapshot()
499 SNAPSHOT_BUF_OR_LEAVE(channel->ol, sizeof(channel->ol), in vatpit_snapshot()
501 SNAPSHOT_VAR_OR_LEAVE(channel->slatched, meta, ret, done); in vatpit_snapshot()
502 SNAPSHOT_VAR_OR_LEAVE(channel->status, meta, ret, done); in vatpit_snapshot()
503 SNAPSHOT_VAR_OR_LEAVE(channel->crbyte, meta, ret, done); in vatpit_snapshot()
504 SNAPSHOT_VAR_OR_LEAVE(channel->frbyte, meta, ret, done); in vatpit_snapshot()
505 SNAPSHOT_VAR_OR_LEAVE(channel->callout_bt.sec, meta, ret, done); in vatpit_snapshot()
506 SNAPSHOT_VAR_OR_LEAVE(channel->callout_bt.frac, meta, ret, in vatpit_snapshot()