Searched refs:base_chan (Results 1 – 3 of 3) sorted by relevance
66 unsigned int n_left, n_done, base_chan; in bonding_dio_insn_bits() local72 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()
290 unsigned int base_chan, in ni_65xx_update_edge_detection() argument297 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() local424 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()
613 unsigned int base_chan = (chan < 32) ? 0 : chan; in insn_rw_emulate_bits() local620 _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()