Lines Matching defs:pos
38 const u8 *pos = data + 1;
42 record->type_length = *pos++;
46 record->payload_length = *pos++;
52 len = WPA_GET_BE32(pos);
56 pos += sizeof(u32);
60 if ((int) size < pos - data + 1)
62 record->id_length = *pos++;
66 record->type = record->type_length == 0 ? NULL : pos;
67 pos += record->type_length;
69 record->id = record->id_length == 0 ? NULL : pos;
70 pos += record->id_length;
72 record->payload = record->payload_length == 0 ? NULL : pos;
73 pos += record->payload_length;
75 record->total_length = pos - data;