Lines Matching refs:id
66 ret = regmap_write(priv->map, I8254_CONTROL_REG, I8254_COUNTER_LATCH(count->id));
71 ret = regmap_noinc_read(priv->map, I8254_COUNTER_REG(count->id), value, sizeof(value));
103 switch (synapse->signal->id % I8254_SYNAPSES_PER_COUNT) {
108 switch (priv->out_mode[count->id]) {
132 switch (priv->out_mode[count->id]) {
135 *ceiling = (priv->preset[count->id] == 0) ? U16_MAX : priv->preset[count->id];
138 if (priv->preset[count->id] % 2)
139 *ceiling = priv->preset[count->id] - 1;
140 else if (priv->preset[count->id] == 0)
144 *ceiling = priv->preset[count->id];
162 switch (priv->out_mode[count->id]) {
222 priv->preset[count->id] = 0;
223 priv->out_mode[count->id] = out_mode;
225 I8254_PROGRAM_COUNTER(count->id, out_mode));
239 switch (priv->out_mode[count->id]) {
242 *floor = (priv->preset[count->id] == 0) ? 0 : 1;
246 *floor = (priv->preset[count->id] % 2 || priv->preset[count->id] == 0) ? 0 : 2;
263 *preset = priv->preset[count->id];
280 if (priv->out_mode[count->id] == I8254_MODE_RATE_GENERATOR ||
281 priv->out_mode[count->id] == I8254_MODE_SQUARE_WAVE_MODE) {
288 priv->preset[count->id] = preset;
291 ret = regmap_noinc_write(priv->map, I8254_COUNTER_REG(count->id), value, 2);
321 .id = (_id), \
381 .id = (_id), \