Lines Matching refs:bitmask
467 unsigned short val, bitmask;
469 for (bitmask = 1; bitmask < e->mask; bitmask <<= 1)
472 ucontrol->value.enumerated.item[0] = (val >> e->shift_l) & (bitmask - 1);
474 ucontrol->value.enumerated.item[1] = (val >> e->shift_r) & (bitmask - 1);
485 unsigned short mask, bitmask;
487 for (bitmask = 1; bitmask < e->mask; bitmask <<= 1)
492 mask = (bitmask - 1) << e->shift_l;
497 mask |= (bitmask - 1) << e->shift_r;