Home
last modified time | relevance | path

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

/drivers/staging/comedi/drivers/
Dcomedi_bond.c75 unsigned int n_left, n_done, base_chan; in bonding_dio_insn_bits() local
81 base_chan = CR_CHAN(insn->chanspec); in bonding_dio_insn_bits()
83 n_left = devpriv->nchans - base_chan; in bonding_dio_insn_bits()
92 if (base_chan < bdev->nchans) { in bonding_dio_insn_bits()
101 b_chans = bdev->nchans - base_chan; in bonding_dio_insn_bits()
111 base_chan); in bonding_dio_insn_bits()
121 base_chan = 0; in bonding_dio_insn_bits()
126 base_chan -= bdev->nchans; in bonding_dio_insn_bits()
Dni_65xx.c300 unsigned int base_chan, in ni_65xx_update_edge_detection() argument
307 if (base_chan >= NI_65XX_PORT_TO_CHAN(num_ports)) in ni_65xx_update_edge_detection()
310 for (port = NI_65XX_CHAN_TO_PORT(base_chan); port < num_ports; port++) { in ni_65xx_update_edge_detection()
311 int bitshift = (int)(NI_65XX_PORT_TO_CHAN(port) - base_chan); in ni_65xx_update_edge_detection()
429 unsigned int base_chan = CR_CHAN(insn->chanspec); in ni_65xx_dio_insn_bits() local
434 for (port_offset = NI_65XX_CHAN_TO_PORT(base_chan); in ni_65xx_dio_insn_bits()
439 int bitshift = base_port_channel - base_chan; in ni_65xx_dio_insn_bits()
/drivers/staging/comedi/
Ddrivers.c582 unsigned int base_chan = (chan < 32) ? 0 : chan; in insn_rw_emulate_bits() local
589 _insn.chanspec = base_chan; in insn_rw_emulate_bits()
596 _data[0] = 1 << (chan - base_chan); /* mask */ in insn_rw_emulate_bits()
597 _data[1] = data[0] ? (1 << (chan - base_chan)) : 0; /* bits */ in insn_rw_emulate_bits()
605 data[0] = (_data[1] >> (chan - base_chan)) & 1; in insn_rw_emulate_bits()