Lines Matching refs:write_pos
1103 int write_pos; in avc_ca_pmt() local
1156 write_pos = 24; in avc_ca_pmt()
1162 if (program_info_length > sizeof(c->operand) - 4 - write_pos) { in avc_ca_pmt()
1167 memcpy(&c->operand[write_pos], &msg[read_pos], in avc_ca_pmt()
1170 write_pos += program_info_length; in avc_ca_pmt()
1173 c->operand[write_pos++] = msg[read_pos++]; in avc_ca_pmt()
1174 c->operand[write_pos++] = msg[read_pos++]; in avc_ca_pmt()
1175 c->operand[write_pos++] = msg[read_pos++]; in avc_ca_pmt()
1181 c->operand[write_pos++] = es_info_length >> 8; in avc_ca_pmt()
1182 c->operand[write_pos++] = es_info_length & 0xff; in avc_ca_pmt()
1190 write_pos) { in avc_ca_pmt()
1195 memcpy(&c->operand[write_pos], &msg[read_pos], in avc_ca_pmt()
1198 write_pos += es_info_length; in avc_ca_pmt()
1201 write_pos += 4; /* CRC */ in avc_ca_pmt()
1204 c->operand[8] = (write_pos - 10) >> 8; in avc_ca_pmt()
1205 c->operand[9] = (write_pos - 10) & 0xff; in avc_ca_pmt()
1206 c->operand[14] = write_pos - 15; in avc_ca_pmt()
1209 c->operand[write_pos - 4] = (crc32_csum >> 24) & 0xff; in avc_ca_pmt()
1210 c->operand[write_pos - 3] = (crc32_csum >> 16) & 0xff; in avc_ca_pmt()
1211 c->operand[write_pos - 2] = (crc32_csum >> 8) & 0xff; in avc_ca_pmt()
1212 c->operand[write_pos - 1] = (crc32_csum >> 0) & 0xff; in avc_ca_pmt()
1213 pad_operands(c, write_pos); in avc_ca_pmt()
1215 fdtv->avc_data_length = ALIGN(3 + write_pos, 4); in avc_ca_pmt()