Lines Matching refs:base_offset
98 const int base_offset = priv->base + 2 * chan->channel; in quad8_read_raw() local
112 flags = inb(base_offset + 1); in quad8_read_raw()
121 base_offset + 1); in quad8_read_raw()
124 *val |= (unsigned int)inb(base_offset) << (8 * i); in quad8_read_raw()
143 const int base_offset = priv->base + 2 * chan->channel; in quad8_write_raw() local
157 outb(QUAD8_CTR_RLD | QUAD8_RLD_RESET_BP, base_offset + 1); in quad8_write_raw()
161 outb(val >> (8 * i), base_offset); in quad8_write_raw()
164 outb(QUAD8_CTR_RLD | QUAD8_RLD_PRESET_CNTR, base_offset + 1); in quad8_write_raw()
167 outb(QUAD8_CTR_RLD | QUAD8_RLD_RESET_BP, base_offset + 1); in quad8_write_raw()
172 outb(val >> (8 * i), base_offset); in quad8_write_raw()
175 outb(QUAD8_CTR_RLD | QUAD8_RLD_RESET_FLAGS, base_offset + 1); in quad8_write_raw()
177 outb(QUAD8_CTR_RLD | QUAD8_RLD_RESET_E, base_offset + 1); in quad8_write_raw()
190 outb(QUAD8_CTR_IOR | ior_cfg, base_offset + 1); in quad8_write_raw()
238 const int base_offset = priv->base + 2 * chan->channel; in quad8_write_preset() local
254 outb(QUAD8_CTR_RLD | QUAD8_RLD_RESET_BP, base_offset + 1); in quad8_write_preset()
258 outb(preset >> (8 * i), base_offset); in quad8_write_preset()
277 const int base_offset = priv->base + 2 * chan->channel + 1; in quad8_write_set_to_preset_on_index() local
295 outb(QUAD8_CTR_IOR | ior_cfg, base_offset); in quad8_write_set_to_preset_on_index()
309 const int base_offset = priv->base + 2 * chan->channel + 1; in quad8_get_noise_error() local
311 return !!(inb(base_offset) & QUAD8_FLAG_E); in quad8_get_noise_error()
329 const int base_offset = priv->base + 2 * chan->channel + 1; in quad8_get_count_direction() local
331 return !!(inb(base_offset) & QUAD8_FLAG_UD); in quad8_get_count_direction()
352 const int base_offset = priv->base + 2 * chan->channel + 1; in quad8_set_count_mode() local
361 outb(QUAD8_CTR_CMR | mode_cfg, base_offset); in quad8_set_count_mode()
392 const int base_offset = priv->base + 2 * chan->channel + 1; in quad8_set_synchronous_mode() local
401 outb(QUAD8_CTR_IDR | idr_cfg, base_offset); in quad8_set_synchronous_mode()
431 const int base_offset = priv->base + 2 * chan->channel + 1; in quad8_set_quadrature_mode() local
447 outb(QUAD8_CTR_CMR | mode_cfg, base_offset); in quad8_set_quadrature_mode()
478 const int base_offset = priv->base + 2 * chan->channel + 1; in quad8_set_index_polarity() local
483 outb(QUAD8_CTR_IDR | idr_cfg, base_offset); in quad8_set_index_polarity()
589 const int base_offset = priv->base + 2 * count->id; in quad8_count_read() local
596 flags = inb(base_offset + 1); in quad8_count_read()
605 base_offset + 1); in quad8_count_read()
608 position |= (unsigned long)inb(base_offset) << (8 * i); in quad8_count_read()
619 const int base_offset = priv->base + 2 * count->id; in quad8_count_write() local
634 outb(QUAD8_CTR_RLD | QUAD8_RLD_RESET_BP, base_offset + 1); in quad8_count_write()
638 outb(position >> (8 * i), base_offset); in quad8_count_write()
641 outb(QUAD8_CTR_RLD | QUAD8_RLD_PRESET_CNTR, base_offset + 1); in quad8_count_write()
644 outb(QUAD8_CTR_RLD | QUAD8_RLD_RESET_BP, base_offset + 1); in quad8_count_write()
649 outb(position >> (8 * i), base_offset); in quad8_count_write()
652 outb(QUAD8_CTR_RLD | QUAD8_RLD_RESET_FLAGS, base_offset + 1); in quad8_count_write()
654 outb(QUAD8_CTR_RLD | QUAD8_RLD_RESET_E, base_offset + 1); in quad8_count_write()
709 const int base_offset = priv->base + 2 * id + 1; in quad8_function_set() local
721 outb(QUAD8_CTR_IDR | idr_cfg, base_offset); in quad8_function_set()
743 outb(QUAD8_CTR_CMR | mode_cfg, base_offset); in quad8_function_set()
863 const int base_offset = priv->base + 2 * channel_id + 1; in quad8_index_polarity_set() local
868 outb(QUAD8_CTR_IDR | idr_cfg, base_offset); in quad8_index_polarity_set()
898 const int base_offset = priv->base + 2 * channel_id + 1; in quad8_synchronous_mode_set() local
907 outb(QUAD8_CTR_IDR | idr_cfg, base_offset); in quad8_synchronous_mode_set()
955 const int base_offset = priv->base + 2 * count->id + 1; in quad8_count_mode_set() local
983 outb(QUAD8_CTR_CMR | mode_cfg, base_offset); in quad8_count_mode_set()
1017 const int base_offset = priv->base + 2 * count->id; in quad8_count_enable_write() local
1031 outb(QUAD8_CTR_IOR | ior_cfg, base_offset + 1); in quad8_count_enable_write()
1040 const int base_offset = priv->base + 2 * count->id + 1; in quad8_error_noise_get() local
1042 *noise_error = !!(inb(base_offset) & QUAD8_FLAG_E); in quad8_error_noise_get()
1065 const int base_offset = priv->base + 2 * count->id; in quad8_count_preset_write() local
1081 outb(QUAD8_CTR_RLD | QUAD8_RLD_RESET_BP, base_offset + 1); in quad8_count_preset_write()
1085 outb(preset >> (8 * i), base_offset); in quad8_count_preset_write()
1134 const int base_offset = priv->base + 2 * count->id + 1; in quad8_count_preset_enable_write() local
1151 outb(QUAD8_CTR_IOR | ior_cfg, base_offset); in quad8_count_preset_enable_write()
1289 unsigned int base_offset; in quad8_probe() local
1327 base_offset = base[id] + 2 * i; in quad8_probe()
1329 outb(QUAD8_CTR_RLD | QUAD8_RLD_RESET_BP, base_offset + 1); in quad8_probe()
1332 outb(0x00, base_offset); in quad8_probe()
1334 outb(QUAD8_CTR_RLD | QUAD8_RLD_RESET_FLAGS, base_offset + 1); in quad8_probe()
1336 outb(QUAD8_CTR_RLD | QUAD8_RLD_RESET_E, base_offset + 1); in quad8_probe()
1338 outb(QUAD8_CTR_CMR, base_offset + 1); in quad8_probe()
1340 outb(QUAD8_CTR_IOR, base_offset + 1); in quad8_probe()
1342 outb(QUAD8_CTR_IDR, base_offset + 1); in quad8_probe()