Lines Matching refs:write_pos
1099 int write_pos;
1152 write_pos = 24;
1158 if (program_info_length > sizeof(c->operand) - 4 - write_pos) {
1163 memcpy(&c->operand[write_pos], &msg[read_pos],
1166 write_pos += program_info_length;
1169 if (write_pos + 4 >= sizeof(c->operand) - 4) {
1173 c->operand[write_pos++] = msg[read_pos++];
1174 c->operand[write_pos++] = msg[read_pos++];
1175 c->operand[write_pos++] = msg[read_pos++];
1181 c->operand[write_pos++] = es_info_length >> 8;
1182 c->operand[write_pos++] = es_info_length & 0xff;
1193 if (es_info_length > sizeof(c->operand) - 4 - write_pos ||
1199 memcpy(&c->operand[write_pos], &msg[read_pos],
1202 write_pos += es_info_length;
1205 write_pos += 4; /* CRC */
1208 c->operand[8] = (write_pos - 10) >> 8;
1209 c->operand[9] = (write_pos - 10) & 0xff;
1210 c->operand[14] = write_pos - 15;
1213 c->operand[write_pos - 4] = (crc32_csum >> 24) & 0xff;
1214 c->operand[write_pos - 3] = (crc32_csum >> 16) & 0xff;
1215 c->operand[write_pos - 2] = (crc32_csum >> 8) & 0xff;
1216 c->operand[write_pos - 1] = (crc32_csum >> 0) & 0xff;
1217 pad_operands(c, write_pos);
1219 fdtv->avc_data_length = ALIGN(3 + write_pos, 4);