Lines Matching full:preset

35  * @preset:		array of preset values
50 unsigned int preset[QUAD8_NUM_COUNTERS]; member
89 /* Preset Register to Counter */
93 /* Transfer Preset Register LSB to FCK Prescaler */
173 /* Counter can only be set via Preset Register */ in quad8_write_raw()
177 /* Transfer Preset Register to Counter */ in quad8_write_raw()
183 /* Set Preset Register back to original value */ in quad8_write_raw()
184 val = priv->preset[chan->channel]; in quad8_write_raw()
260 return snprintf(buf, PAGE_SIZE, "%u\n", priv->preset[chan->channel]); in quad8_read_preset()
268 unsigned int preset; in quad8_write_preset() local
272 ret = kstrtouint(buf, 0, &preset); in quad8_write_preset()
277 if (preset > 0xFFFFFF) in quad8_write_preset()
282 priv->preset[chan->channel] = preset; in quad8_write_preset()
287 /* Set Preset Register */ in quad8_write_preset()
289 outb(preset >> (8 * i), base_offset); in quad8_write_preset()
319 /* Preset enable is active low in Input/Output Control register */ in quad8_write_set_to_preset_on_index()
564 .name = "preset",
688 /* Counter can only be set via Preset Register */ in quad8_count_write()
692 /* Transfer Preset Register to Counter */ in quad8_count_write()
698 /* Set Preset Register back to original value */ in quad8_count_write()
699 val = priv->preset[count->id]; in quad8_count_write()
1141 return sprintf(buf, "%u\n", priv->preset[count->id]); in quad8_count_preset_read()
1145 unsigned int preset) in quad8_preset_register_set() argument
1150 quad8iio->preset[id] = preset; in quad8_preset_register_set()
1155 /* Set Preset Register */ in quad8_preset_register_set()
1157 outb(preset >> (8 * i), base_offset); in quad8_preset_register_set()
1164 unsigned int preset; in quad8_count_preset_write() local
1167 ret = kstrtouint(buf, 0, &preset); in quad8_count_preset_write()
1172 if (preset > 0xFFFFFF) in quad8_count_preset_write()
1177 quad8_preset_register_set(priv, count->id, preset); in quad8_count_preset_write()
1191 /* Range Limit and Modulo-N count modes use preset value as ceiling */ in quad8_count_ceiling_read()
1196 return sprintf(buf, "%u\n", priv->preset[count->id]); in quad8_count_ceiling_read()
1222 /* Range Limit and Modulo-N count modes use preset value as ceiling */ in quad8_count_ceiling_write()
1256 /* Preset enable is active low in Input/Output Control register */ in quad8_count_preset_enable_write()
1499 .name = "preset",
1586 /* Reset Preset Register */ in quad8_probe()
1595 /* Disable A and B inputs; preset on index; FLG1 as Carry */ in quad8_probe()