Lines Matching defs:cur_pos
24 * @cur_pos: Current position index in payload
30 size_t cur_pos, size_t payload_len)
36 "total_bad=%u cur_pos=%u\n"
42 (unsigned int)cur_pos,
65 size_t payload_len, total_len, cur_pos, raw_len;
77 cur_pos = 0;
80 if (cur_pos + sizeof(struct hostif_msg) > total_len) {
90 recv_msg = (struct hostif_msg *)(recv_buf + cur_pos);
94 if (cur_pos + payload_len + sizeof(struct hostif_msg) >
97 report_bad_packet(hid_ishtp_cl, recv_msg, cur_pos,
112 cur_pos,
161 cur_pos,
186 cur_pos,
304 report_bad_packet(hid_ishtp_cl, recv_msg, cur_pos,
311 if (!cur_pos && cur_pos + payload_len +
315 cur_pos += payload_len + sizeof(struct hostif_msg);
318 } while (cur_pos < total_len);