Lines Matching refs:e
17 unsigned short e, m, tmp; in snd_gf1_lvol_to_gvol_raw() local
22 e = 7; in snd_gf1_lvol_to_gvol_raw()
24 while (e > 0 && tmp < (1 << e)) in snd_gf1_lvol_to_gvol_raw()
25 e--; in snd_gf1_lvol_to_gvol_raw()
29 e++; in snd_gf1_lvol_to_gvol_raw()
32 m = vol - (1 << e); in snd_gf1_lvol_to_gvol_raw()
34 if (e > 8) in snd_gf1_lvol_to_gvol_raw()
35 m >>= e - 8; in snd_gf1_lvol_to_gvol_raw()
36 else if (e < 8) in snd_gf1_lvol_to_gvol_raw()
37 m <<= 8 - e; in snd_gf1_lvol_to_gvol_raw()
40 return (e << 8) | m; in snd_gf1_lvol_to_gvol_raw()
48 unsigned short e, m;
52 e = gf1_vol >> 8;
54 rvol = 1 << e;
55 if (e > 8)
56 return rvol | (m << (e - 8));
57 return rvol | (m >> (8 - e));