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