Home
last modified time | relevance | path

Searched refs:i8254 (Results 1 – 5 of 5) sorted by relevance

/drivers/comedi/drivers/
Dcomedi_8254.c122 static unsigned int __i8254_read(struct comedi_8254 *i8254, unsigned int reg) in __i8254_read() argument
124 unsigned int reg_offset = (reg * i8254->iosize) << i8254->regshift; in __i8254_read()
127 switch (i8254->iosize) { in __i8254_read()
130 if (i8254->mmio) in __i8254_read()
131 val = readb(i8254->mmio + reg_offset); in __i8254_read()
133 val = inb(i8254->iobase + reg_offset); in __i8254_read()
136 if (i8254->mmio) in __i8254_read()
137 val = readw(i8254->mmio + reg_offset); in __i8254_read()
139 val = inw(i8254->iobase + reg_offset); in __i8254_read()
142 if (i8254->mmio) in __i8254_read()
[all …]
Damplc_dio200_common.c147 struct comedi_8254 *i8254 = s->private; in dio200_subdev_8254_offset() local
152 offset = i8254->mmio - dev->mmio; in dio200_subdev_8254_offset()
154 offset = i8254->iobase - dev->iobase; in dio200_subdev_8254_offset()
499 struct comedi_8254 *i8254 = s->private; in dio200_subdev_8254_config() local
514 i8254->gate_src[chan] = src; in dio200_subdev_8254_config()
517 data[2] = i8254->gate_src[chan]; in dio200_subdev_8254_config()
525 i8254->clock_src[chan] = src; in dio200_subdev_8254_config()
528 data[1] = i8254->clock_src[chan]; in dio200_subdev_8254_config()
529 data[2] = clock_period[i8254->clock_src[chan]]; in dio200_subdev_8254_config()
543 struct comedi_8254 *i8254; in dio200_subdev_8254_init() local
[all …]
/drivers/counter/
Di8254.c50 struct i8254 { struct
60 struct i8254 *const priv = counter_priv(counter); in i8254_count_read() argument
101 struct i8254 *const priv = counter_priv(counter); in i8254_action_read()
128 struct i8254 *const priv = counter_priv(counter); in i8254_count_ceiling_read()
160 const struct i8254 *const priv = counter_priv(counter); in i8254_count_mode_read()
191 struct i8254 *const priv = counter_priv(counter); in i8254_count_mode_write()
235 struct i8254 *const priv = counter_priv(counter); in i8254_count_floor_read()
261 const struct i8254 *const priv = counter_priv(counter); in i8254_count_preset_read()
271 struct i8254 *const priv = counter_priv(counter); in i8254_count_preset_write()
407 struct i8254 *priv; in devm_i8254_regmap_register()
DKconfig11 Enables support for the i8254 interface library functions. The i8254
19 If built as a module its name will be i8254.
DMakefile9 obj-$(CONFIG_I8254) += i8254.o