Lines Matching defs:write_pos
1101 int write_pos;
1154 write_pos = 24;
1160 if (program_info_length > sizeof(c->operand) - 4 - write_pos) {
1165 memcpy(&c->operand[write_pos], &msg[read_pos],
1168 write_pos += program_info_length;
1171 c->operand[write_pos++] = msg[read_pos++];
1172 c->operand[write_pos++] = msg[read_pos++];
1173 c->operand[write_pos++] = msg[read_pos++];
1179 c->operand[write_pos++] = es_info_length >> 8;
1180 c->operand[write_pos++] = es_info_length & 0xff;
1188 write_pos) {
1193 memcpy(&c->operand[write_pos], &msg[read_pos],
1196 write_pos += es_info_length;
1199 write_pos += 4; /* CRC */
1202 c->operand[8] = (write_pos - 10) >> 8;
1203 c->operand[9] = (write_pos - 10) & 0xff;
1204 c->operand[14] = write_pos - 15;
1207 c->operand[write_pos - 4] = (crc32_csum >> 24) & 0xff;
1208 c->operand[write_pos - 3] = (crc32_csum >> 16) & 0xff;
1209 c->operand[write_pos - 2] = (crc32_csum >> 8) & 0xff;
1210 c->operand[write_pos - 1] = (crc32_csum >> 0) & 0xff;
1211 pad_operands(c, write_pos);
1213 fdtv->avc_data_length = ALIGN(3 + write_pos, 4);