• Home
  • Raw
  • Download

Lines Matching refs:val

69 int vid_from_reg(int val, u8 vrm)  in vid_from_reg()  argument
77 val &= 0x3f; in vid_from_reg()
78 if ((val & 0x1f) == 0x1f) in vid_from_reg()
80 if ((val & 0x1f) <= 0x09 || val == 0x0a) in vid_from_reg()
81 vid = 1087500 - (val & 0x1f) * 25000; in vid_from_reg()
83 vid = 1862500 - (val & 0x1f) * 25000; in vid_from_reg()
84 if (val & 0x20) in vid_from_reg()
90 val &= 0xff; in vid_from_reg()
91 if (val < 0x02 || val > 0xb2) in vid_from_reg()
93 return (1600000 - (val - 2) * 6250 + 500) / 1000; in vid_from_reg()
96 val &= 0x1f; in vid_from_reg()
97 if (val == 0x1f) in vid_from_reg()
101 val &= 0x3f; in vid_from_reg()
102 return (val < 32) ? 1550 - 25 * val in vid_from_reg()
103 : 775 - (25 * (val - 31)) / 2; in vid_from_reg()
106 val &= 0x7f; in vid_from_reg()
107 if (val >= 0x7c) in vid_from_reg()
109 return DIV_ROUND_CLOSEST(15500 - 125 * val, 10); in vid_from_reg()
113 val &= 0x1f; in vid_from_reg()
114 return val == 0x1f ? 0 : in vid_from_reg()
115 1850 - val * 25; in vid_from_reg()
118 val &= 0x1f; in vid_from_reg()
119 return (val & 0x10 ? 25 : 0) + in vid_from_reg()
120 ((val & 0x0f) > 0x04 ? 2050 : 1250) - in vid_from_reg()
121 ((val & 0x0f) * 50); in vid_from_reg()
124 val &= 0x0f; in vid_from_reg()
127 val &= 0x1f; in vid_from_reg()
128 return val == 0x1f ? 0 : in vid_from_reg()
129 val & 0x10 ? 5100 - (val) * 100 : in vid_from_reg()
130 2050 - (val) * 50; in vid_from_reg()
132 val &= 0x1f; in vid_from_reg()
133 return val & 0x10 ? 975 - (val & 0xF) * 25 : in vid_from_reg()
134 1750 - val * 50; in vid_from_reg()
137 val &= 0x3f; in vid_from_reg()
139 if (vrm == 131 && val == 0x3f) in vid_from_reg()
140 val++; in vid_from_reg()
141 return 1708 - val * 16; in vid_from_reg()
144 val &= 0x7f; in vid_from_reg()
145 return val > 0x77 ? 0 : (1500000 - (val * 12500) + 500) / 1000; in vid_from_reg()