Lines Matching defs:packet
118 struct ads7846_packet *packet;
715 struct ads7846_packet *packet = ts->packet;
719 packet->y = val;
722 packet->x = val;
725 packet->z1 = val;
728 packet->z2 = val;
776 struct ads7846_packet *packet = ts->packet;
781 packet->ignore = false;
782 for (cmd_idx = packet->last_cmd_idx; cmd_idx < packet->cmds - 1; cmd_idx++) {
783 struct ads7846_buf_layout *l = &packet->l[cmd_idx];
785 packet->last_cmd_idx = cmd_idx;
788 val = ads7846_get_value(&packet->rx[l->offset + b]);
798 packet->ignore = true;
809 struct ads7846_packet *packet = ts->packet;
814 packet->last_cmd_idx = 0;
823 packet->ignore = true;
837 struct ads7846_packet *packet = ts->packet;
841 x = packet->x;
842 y = packet->y;
847 z1 = packet->z1;
848 z2 = packet->z2;
875 if (packet->ignore || Rt > ts->pressure_max) {
877 packet->ignore, Rt);
1043 struct ads7846_packet *packet = ts->packet;
1054 packet->count_skip = DIV_ROUND_UP(count, 24);
1059 packet->count = ts->debounce_rep + 2;
1061 packet->count = 1;
1064 packet->cmds = 5; /* x, y, z1, z2, pwdown */
1066 packet->cmds = 3; /* x, y, pwdown */
1068 for (cmd_idx = 0; cmd_idx < packet->cmds; cmd_idx++) {
1069 struct ads7846_buf_layout *l = &packet->l[cmd_idx];
1072 if (cmd_idx == packet->cmds - 1)
1076 max_count = packet->count + packet->count_skip;
1078 max_count = packet->count;
1083 l->skip = packet->count_skip;
1084 size += sizeof(*packet->tx) * max_count;
1087 packet->tx = devm_kzalloc(&ts->spi->dev, size, GFP_KERNEL);
1088 if (!packet->tx)
1091 packet->rx = devm_kzalloc(&ts->spi->dev, size, GFP_KERNEL);
1092 if (!packet->rx)
1109 for (cmd_idx = 0; cmd_idx < packet->cmds; cmd_idx++) {
1110 struct ads7846_buf_layout *l = &packet->l[cmd_idx];
1113 if (cmd_idx == packet->cmds - 1)
1119 packet->tx[l->offset + b].cmd = cmd;
1122 x->tx_buf = packet->tx;
1123 x->rx_buf = packet->rx;
1222 struct ads7846_packet *packet;
1251 packet = kzalloc(sizeof(struct ads7846_packet), GFP_KERNEL);
1253 if (!ts || !packet || !input_dev) {
1260 ts->packet = packet;
1435 kfree(packet);
1466 kfree(ts->packet);