Lines Matching full:cal
104 static int l4_getcal(int port, int *cal) in l4_getcal() argument
127 cal[i] = inb(L4_PORT); in l4_getcal()
140 static int l4_setcal(int port, int *cal) in l4_setcal() argument
163 outb(cal[i], L4_PORT); in l4_setcal()
180 int cal[4]; in l4_calibrate() local
183 if (l4_getcal(l4->port, cal)) in l4_calibrate()
187 t = (max[i] * cal[i]) / 200; in l4_calibrate()
189 axes[i] = (axes[i] < 0) ? -1 : (axes[i] * cal[i]) / t; in l4_calibrate()
191 cal[i] = t; in l4_calibrate()
194 if (l4_setcal(l4->port, cal)) in l4_calibrate()
238 int cal[4] = { 255, 255, 255, 255 }; in l4_add_card() local
278 l4_setcal(l4->port, cal); in l4_add_card()
309 int cal[4] = { 59, 59, 59, 59 }; in l4_exit() local
313 l4_setcal(l4_ports[i].port, cal); in l4_exit()