Lines Matching refs:bitshift
301 int bitshift = (int)(NI_65XX_PORT_TO_CHAN(port) - base_chan); in ni_65xx_update_edge_detection() local
304 if (bitshift >= 32) in ni_65xx_update_edge_detection()
307 if (bitshift >= 0) { in ni_65xx_update_edge_detection()
308 port_mask = ~0U >> bitshift; in ni_65xx_update_edge_detection()
309 port_rising = rising >> bitshift; in ni_65xx_update_edge_detection()
310 port_falling = falling >> bitshift; in ni_65xx_update_edge_detection()
312 port_mask = ~0U << -bitshift; in ni_65xx_update_edge_detection()
313 port_rising = rising << -bitshift; in ni_65xx_update_edge_detection()
314 port_falling = falling << -bitshift; in ni_65xx_update_edge_detection()
429 int bitshift = base_port_channel - base_chan; in ni_65xx_dio_insn_bits() local
431 if (bitshift >= 32) in ni_65xx_dio_insn_bits()
435 if (bitshift > 0) { in ni_65xx_dio_insn_bits()
436 port_mask >>= bitshift; in ni_65xx_dio_insn_bits()
437 port_data >>= bitshift; in ni_65xx_dio_insn_bits()
439 port_mask <<= -bitshift; in ni_65xx_dio_insn_bits()
440 port_data <<= -bitshift; in ni_65xx_dio_insn_bits()
458 if (bitshift > 0) in ni_65xx_dio_insn_bits()
459 bits <<= bitshift; in ni_65xx_dio_insn_bits()
461 bits >>= -bitshift; in ni_65xx_dio_insn_bits()