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