• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/input/mouse/

Lines Matching defs:packet

124  * relevant events to the input module once full packet has arrived.
130 unsigned char *packet = psmouse->packet;
136 * Full packet accumulated, process it
144 input_report_rel(dev, REL_WHEEL, -(signed char) packet[3]);
151 switch (packet[3] & 0xC0) {
153 input_report_rel(dev, REL_WHEEL, (int) (packet[3] & 32) - (int) (packet[3] & 31));
156 input_report_rel(dev, REL_HWHEEL, (int) (packet[3] & 32) - (int) (packet[3] & 31));
160 input_report_rel(dev, REL_WHEEL, (int) (packet[3] & 8) - (int) (packet[3] & 7));
161 input_report_key(dev, BTN_SIDE, (packet[3] >> 4) & 1);
162 input_report_key(dev, BTN_EXTRA, (packet[3] >> 5) & 1);
172 input_report_key(dev, BTN_SIDE, (packet[0] >> 6) & 1);
173 input_report_key(dev, BTN_EXTRA, (packet[0] >> 7) & 1);
180 input_report_key(dev, BTN_EXTRA, (packet[0] >> 3) & 1);
182 packet[1] |= (packet[0] & 0x40) << 1;
190 input_report_key(dev, BTN_SIDE, (packet[0] >> 3) & 1);
191 packet[0] |= 0x08;
198 input_report_key(dev, BTN_LEFT, packet[0] & 1);
199 input_report_key(dev, BTN_MIDDLE, (packet[0] >> 2) & 1);
200 input_report_key(dev, BTN_RIGHT, (packet[0] >> 1) & 1);
202 input_report_rel(dev, REL_X, packet[1] ? (int) packet[1] - (int) ((packet[0] << 4) & 0x100) : 0);
203 input_report_rel(dev, REL_Y, packet[2] ? (int) ((packet[0] << 3) & 0x100) - (int) packet[2] : 0);
320 psmouse->badbyte = psmouse->packet[0];
326 psmouse->packet[psmouse->pktcnt++] = data;
330 if (unlikely(psmouse->packet[0] == PSMOUSE_RET_BAT && psmouse->pktcnt <= 2)) {
336 if (psmouse->packet[1] == PSMOUSE_RET_ID ||
338 psmouse->packet[1] == PSMOUSE_RET_BAT)) {
350 psmouse->packet[psmouse->pktcnt++] = data;
359 psmouse->badbyte = psmouse->packet[0];
1035 return ps2_command(&psmouse->ps2dev, psmouse->packet,
1065 * transmitting motion packet. To avoid delay we use ps2_sendbyte()
1082 * Poll the mouse. If it was reset the packet will be shorter than
1267 * If mouse's packet size is 3 there is no point in polling the