Lines Matching defs:xy_acc
212 int xy_acc[ATP_XSENSORS + ATP_YSENSORS];
339 * Use offset to point xy_sensors at the first value in dev->xy_acc
342 int *xy_sensors = dev->xy_acc + offset;
585 dev->xy_acc[i] -= change;
588 if (dev->xy_acc[i] < 0)
589 dev->xy_acc[i] = 0;
594 dbg_dump("accumulator", dev->xy_acc);
635 memset(dev->xy_acc, 0, sizeof(dev->xy_acc));
699 dev->xy_acc[i] = dev->xy_cur[i] - dev->xy_old[i];
702 if (dev->xy_acc[i] > 127)
703 dev->xy_acc[i] -= 256;
705 if (dev->xy_acc[i] < -127)
706 dev->xy_acc[i] += 256;
709 if (dev->xy_acc[i] < 0)
710 dev->xy_acc[i] = 0;
713 dbg_dump("accumulator", dev->xy_acc);
755 memset(dev->xy_acc, 0, sizeof(dev->xy_acc));