Home
last modified time | relevance | path

Searched refs:base_chan (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/drivers/comedi/drivers/
Dcomedi_bond.c66 unsigned int n_left, n_done, base_chan; in bonding_dio_insn_bits() local
72 base_chan = CR_CHAN(insn->chanspec); in bonding_dio_insn_bits()
74 n_left = devpriv->nchans - base_chan; in bonding_dio_insn_bits()
83 if (base_chan < bdev->nchans) { in bonding_dio_insn_bits()
92 b_chans = bdev->nchans - base_chan; in bonding_dio_insn_bits()
102 base_chan); in bonding_dio_insn_bits()
112 base_chan = 0; in bonding_dio_insn_bits()
117 base_chan -= bdev->nchans; in bonding_dio_insn_bits()
Dni_65xx.c290 unsigned int base_chan, in ni_65xx_update_edge_detection() argument
297 if (base_chan >= NI_65XX_PORT_TO_CHAN(num_ports)) in ni_65xx_update_edge_detection()
300 for (port = NI_65XX_CHAN_TO_PORT(base_chan); port < num_ports; port++) { in ni_65xx_update_edge_detection()
301 int bitshift = (int)(NI_65XX_PORT_TO_CHAN(port) - base_chan); in ni_65xx_update_edge_detection()
419 unsigned int base_chan = CR_CHAN(insn->chanspec); in ni_65xx_dio_insn_bits() local
424 for (port_offset = NI_65XX_CHAN_TO_PORT(base_chan); in ni_65xx_dio_insn_bits()
429 int bitshift = base_port_channel - base_chan; in ni_65xx_dio_insn_bits()
/linux-6.1.9/drivers/comedi/
Ddrivers.c613 unsigned int base_chan = (chan < 32) ? 0 : chan; in insn_rw_emulate_bits() local
620 _insn.chanspec = base_chan; in insn_rw_emulate_bits()
627 _data[0] = 1 << (chan - base_chan); /* mask */ in insn_rw_emulate_bits()
628 _data[1] = data[0] ? (1 << (chan - base_chan)) : 0; /* bits */ in insn_rw_emulate_bits()
636 data[0] = (_data[1] >> (chan - base_chan)) & 1; in insn_rw_emulate_bits()