Lines Matching defs:packet
111 struct ads7846_packet *packet;
704 struct ads7846_packet *packet = ts->packet;
708 packet->y = val;
711 packet->x = val;
714 packet->z1 = val;
717 packet->z2 = val;
765 struct ads7846_packet *packet = ts->packet;
770 packet->ignore = false;
771 for (cmd_idx = packet->last_cmd_idx; cmd_idx < packet->cmds - 1; cmd_idx++) {
772 struct ads7846_buf_layout *l = &packet->l[cmd_idx];
774 packet->last_cmd_idx = cmd_idx;
777 val = ads7846_get_value(&packet->rx[l->offset + b]);
787 packet->ignore = true;
798 struct ads7846_packet *packet = ts->packet;
803 packet->last_cmd_idx = 0;
812 packet->ignore = true;
826 struct ads7846_packet *packet = ts->packet;
830 x = packet->x;
831 y = packet->y;
836 z1 = packet->z1;
837 z2 = packet->z2;
864 if (packet->ignore || Rt > ts->pressure_max) {
866 packet->ignore, Rt);
1020 struct ads7846_packet *packet = ts->packet;
1031 packet->count_skip = DIV_ROUND_UP(count, 24);
1036 packet->count = ts->debounce_rep + 2;
1038 packet->count = 1;
1041 packet->cmds = 5; /* x, y, z1, z2, pwdown */
1043 packet->cmds = 3; /* x, y, pwdown */
1045 for (cmd_idx = 0; cmd_idx < packet->cmds; cmd_idx++) {
1046 struct ads7846_buf_layout *l = &packet->l[cmd_idx];
1049 if (cmd_idx == packet->cmds - 1)
1053 max_count = packet->count + packet->count_skip;
1055 max_count = packet->count;
1060 l->skip = packet->count_skip;
1061 size += sizeof(*packet->tx) * max_count;
1064 packet->tx = devm_kzalloc(&ts->spi->dev, size, GFP_KERNEL);
1065 if (!packet->tx)
1068 packet->rx = devm_kzalloc(&ts->spi->dev, size, GFP_KERNEL);
1069 if (!packet->rx)
1086 for (cmd_idx = 0; cmd_idx < packet->cmds; cmd_idx++) {
1087 struct ads7846_buf_layout *l = &packet->l[cmd_idx];
1090 if (cmd_idx == packet->cmds - 1)
1096 packet->tx[l->offset + b].cmd = cmd;
1099 x->tx_buf = packet->tx;
1100 x->rx_buf = packet->rx;
1182 struct ads7846_packet *packet;
1215 packet = devm_kzalloc(dev, sizeof(struct ads7846_packet), GFP_KERNEL);
1216 if (!packet)
1225 ts->packet = packet;