Lines Matching defs:preset
35 * @preset: array of preset values
50 unsigned int preset[QUAD8_NUM_COUNTERS];
172 val = priv->preset[chan->channel];
248 return snprintf(buf, PAGE_SIZE, "%u\n", priv->preset[chan->channel]);
256 unsigned int preset;
260 ret = kstrtouint(buf, 0, &preset);
265 if (preset > 0xFFFFFF)
270 priv->preset[chan->channel] = preset;
277 outb(preset >> (8 * i), base_offset);
552 .name = "preset",
679 val = priv->preset[count->id];
1121 return sprintf(buf, "%u\n", priv->preset[count->id]);
1125 unsigned int preset)
1130 quad8iio->preset[id] = preset;
1137 outb(preset >> (8 * i), base_offset);
1144 unsigned int preset;
1147 ret = kstrtouint(buf, 0, &preset);
1152 if (preset > 0xFFFFFF)
1157 quad8_preset_register_set(priv, count->id, preset);
1171 /* Range Limit and Modulo-N count modes use preset value as ceiling */
1176 return sprintf(buf, "%u\n", priv->preset[count->id]);
1202 /* Range Limit and Modulo-N count modes use preset value as ceiling */
1480 .name = "preset",
1576 /* Disable A and B inputs; preset on index; FLG1 as Carry */