Lines Matching refs:bitshift
302 int bitshift = (int)(NI_65XX_PORT_TO_CHAN(port) - base_chan); in ni_65xx_update_edge_detection() local
305 if (bitshift >= 32) in ni_65xx_update_edge_detection()
308 if (bitshift >= 0) { in ni_65xx_update_edge_detection()
309 port_mask = ~0U >> bitshift; in ni_65xx_update_edge_detection()
310 port_rising = rising >> bitshift; in ni_65xx_update_edge_detection()
311 port_falling = falling >> bitshift; in ni_65xx_update_edge_detection()
313 port_mask = ~0U << -bitshift; in ni_65xx_update_edge_detection()
314 port_rising = rising << -bitshift; in ni_65xx_update_edge_detection()
315 port_falling = falling << -bitshift; in ni_65xx_update_edge_detection()
430 int bitshift = base_port_channel - base_chan; in ni_65xx_dio_insn_bits() local
432 if (bitshift >= 32) in ni_65xx_dio_insn_bits()
436 if (bitshift > 0) { in ni_65xx_dio_insn_bits()
437 port_mask >>= bitshift; in ni_65xx_dio_insn_bits()
438 port_data >>= bitshift; in ni_65xx_dio_insn_bits()
440 port_mask <<= -bitshift; in ni_65xx_dio_insn_bits()
441 port_data <<= -bitshift; in ni_65xx_dio_insn_bits()
459 if (bitshift > 0) in ni_65xx_dio_insn_bits()
460 bits <<= bitshift; in ni_65xx_dio_insn_bits()
462 bits >>= -bitshift; in ni_65xx_dio_insn_bits()