Lines Matching defs:rate
405 int rate;
633 set_mouse_sampling_rate(KBDC kbdc, int rate)
637 res = send_aux_command_and_data(kbdc, PSMC_SET_SAMPLING_RATE, rate);
638 VLOG(2, (LOG_DEBUG, "psm: SET_SAMPLING_RATE (%d) %04x\n", rate, res));
640 return ((res == PSM_ACK) ? rate : -1);
883 if (mode->rate > 0)
884 mode->rate = set_mouse_sampling_rate(kbdc, mode->rate);
1342 sc->dflt_mode.rate = sc->mode.rate = stat[2];
1345 sc->dflt_mode.rate = sc->mode.rate = -1;
1427 if (sc->mode.rate > 0)
1428 sc->mode.rate =
1429 set_mouse_sampling_rate(sc->kbdc, sc->dflt_mode.rate);
1448 sc->dflt_mode.rate = sc->mode.rate = stat[2];
2037 ((old_mousemode_t *)addr)->rate = sc->mode.rate;
2076 mode.rate = ((old_mousemode_t *)addr)->rate;
2097 if (mode.rate > UCHAR_MAX)
2099 if (mode.rate == 0)
2100 mode.rate = sc->dflt_mode.rate;
2101 else if (mode.rate == -1)
2104 else if (mode.rate < 0)
2141 if (mode.rate > 0)
2142 mode.rate = set_mouse_sampling_rate(sc->kbdc,
2143 mode.rate);
2151 sc->mode.rate = mode.rate;
2247 mode.rate = *(int *)addr;
2248 if (mode.rate > UCHAR_MAX)
2250 if (mode.rate == 0)
2251 mode.rate = sc->dflt_mode.rate;
2252 else if (mode.rate < 0)
2253 mode.rate = sc->mode.rate;
2258 sc->mode.rate = set_mouse_sampling_rate(sc->kbdc, mode.rate);
2259 if (sc->mode.rate != mode.rate)
3757 * byte 3 report rate (?)
3819 static u_char rate[] = { 20, 60, 40, 20, 20, 60, 40, 20, 20 };
3839 /* at this point, resolution is LOW, sampling rate is 10/sec */
3848 for (i = 0; i < sizeof(rate)/sizeof(rate[0]); ++i)
3849 if (set_mouse_sampling_rate(kbdc, rate[i]) != rate[i])
3854 * sampling rate for the native mode.
3858 if ((status[1] == PSMD_RES_LOW) || (status[2] == rate[i - 1]))
3983 static u_char rate[] = { 200, 100, 80, };
3988 for (i = 0; i < sizeof(rate)/sizeof(rate[0]); ++i)
3989 if (set_mouse_sampling_rate(kbdc, rate[i]) != rate[i])
4012 static u_char rate[] = { 200, 100, 80, 60, 40, 20 };
4016 for (i = 0; i < sizeof(rate)/sizeof(rate[0]); ++i)
4017 if (set_mouse_sampling_rate(kbdc, rate[i]) != rate[i])
4048 static u_char rate[] = { 200, 100, 80, 60, 40, 20 };
4051 for (i = 0; i < sizeof(rate)/sizeof(rate[0]); ++i)
4052 if (set_mouse_sampling_rate(kbdc, rate[i]) != rate[i])
5008 set_mouse_sampling_rate(kbdc, 100); /* set rate 100 */
5015 if (data[2] != 0xa || data[1] != 0 ) /* rate == 0xa && res. == 0 */