Searched refs:nbits (Results 1 – 6 of 6) sorted by relevance
45 char nbits; member192 return w >> field->lo_bit & ((1 << field->nbits) - 1); in ad1843_read_bits()206 mask = ((1 << field->nbits) - 1) << field->lo_bit; in ad1843_write_bits()243 mask = (1 << fp->nbits) - 1; in ad1843_read_multi()280 m = ((1 << fp->nbits) - 1) << fp->lo_bit; in ad1843_write_multi()299 ret = (1 << gp->lfield->nbits); in ad1843_get_gain_max()314 unsigned short mask = (1 << gp->lfield->nbits) - 1; in ad1843_get_gain()340 unsigned short mask = (1 << gp->lfield->nbits) - 1; in ad1843_set_gain()
67 unsigned int nbits:4; member
860 char nbits; member946 int val = w >> field->lo_bit & ((1 << field->nbits) - 1); in ad1843_read_bits()949 lith, field->reg, field->lo_bit, field->nbits, val); in ad1843_read_bits()963 int mask = ((1 << field->nbits) - 1) << field->lo_bit; in ad1843_write_bits()971 lith, field->reg, field->lo_bit, field->nbits, newval, in ad1843_write_bits()1005 mask = (1 << fp->nbits) - 1; in ad1843_read_multi()1041 m = ((1 << fp->nbits) - 1) << fp->lo_bit; in ad1843_write_multi()1063 unsigned short mask = (1 << gp->lfield->nbits) - 1; in ad1843_get_gain()1086 unsigned short mask = (1 << gp->lfield->nbits) - 1; in ad1843_set_gain()
238 mask = (1 << (*devc->iomap)[dev][chn].nbits) - 1; in change_bits()241 shift = (*devc->iomap)[dev][chn].bitoffs - (*devc->iomap)[dev][LEFT_CHN].nbits + 1; in change_bits()
63 unsigned int nbits:3; /* number of bits in register for volume */ member
425 if (devc->mix_devices[i][j].nbits == 0) /* Inexistent channel */ in ad1848_set_recmask()474 mask = (1 << devc->mix_devices[dev][chn].nbits) - 1; in change_bits()547 if (devc->mix_devices[dev][LEFT_CHN].nbits == 0) in ad1848_mixer_set()555 if (devc->mix_devices[dev][RIGHT_CHN].nbits == 0) /* Mono control */ in ad1848_mixer_set()574 if (devc->mix_devices[dev][RIGHT_CHN].nbits == 0) in ad1848_mixer_set()