Lines Matching defs:cur_pos
32 * @cur_pos: Current position index in payload
38 size_t cur_pos, size_t payload_len)
44 "total_bad=%u cur_pos=%u\n"
50 (unsigned int)cur_pos,
73 size_t payload_len, total_len, cur_pos, raw_len;
85 cur_pos = 0;
88 if (cur_pos + sizeof(struct hostif_msg) > total_len) {
98 recv_msg = (struct hostif_msg *)(recv_buf + cur_pos);
102 if (cur_pos + payload_len + sizeof(struct hostif_msg) >
105 report_bad_packet(hid_ishtp_cl, recv_msg, cur_pos,
120 cur_pos,
169 cur_pos,
194 cur_pos,
312 report_bad_packet(hid_ishtp_cl, recv_msg, cur_pos,
319 if (!cur_pos && cur_pos + payload_len +
323 cur_pos += payload_len + sizeof(struct hostif_msg);
326 } while (cur_pos < total_len);