Lines Matching refs:pmt

603 void vidtv_pmt_desc_assign(struct vidtv_psi_table_pmt *pmt,  in vidtv_pmt_desc_assign()  argument
608 vidtv_psi_pmt_table_update_sec_len(pmt); in vidtv_pmt_desc_assign()
610 if (vidtv_psi_get_sec_len(&pmt->header) > MAX_SECTION_LEN) in vidtv_pmt_desc_assign()
613 vidtv_psi_update_version_num(&pmt->header); in vidtv_pmt_desc_assign()
788 void vidtv_psi_pmt_table_update_sec_len(struct vidtv_psi_table_pmt *pmt) in vidtv_psi_pmt_table_update_sec_len() argument
790 struct vidtv_psi_table_pmt_stream *s = pmt->stream; in vidtv_psi_pmt_table_update_sec_len()
799 desc_loop_len = vidtv_psi_desc_comp_loop_len(pmt->descriptor); in vidtv_psi_pmt_table_update_sec_len()
800 vidtv_psi_set_desc_loop_len(&pmt->bitfield2, desc_loop_len, 10); in vidtv_psi_pmt_table_update_sec_len()
820 vidtv_psi_set_sec_len(&pmt->header, length); in vidtv_psi_pmt_table_update_sec_len()
1073 void vidtv_psi_pmt_stream_assign(struct vidtv_psi_table_pmt *pmt, in vidtv_psi_pmt_stream_assign() argument
1078 if (s == pmt->stream) in vidtv_psi_pmt_stream_assign()
1081 pmt->stream = s; in vidtv_psi_pmt_stream_assign()
1082 vidtv_psi_pmt_table_update_sec_len(pmt); in vidtv_psi_pmt_stream_assign()
1085 } while (vidtv_psi_get_sec_len(&pmt->header) > MAX_SECTION_LEN); in vidtv_psi_pmt_stream_assign()
1087 vidtv_psi_update_version_num(&pmt->header); in vidtv_psi_pmt_stream_assign()
1113 struct vidtv_psi_table_pmt *pmt; in vidtv_psi_pmt_table_init() local
1121 pmt = kzalloc(sizeof(*pmt), GFP_KERNEL); in vidtv_psi_pmt_table_init()
1122 if (!pmt) in vidtv_psi_pmt_table_init()
1128 pmt->header.table_id = 0x2; in vidtv_psi_pmt_table_init()
1130 pmt->header.bitfield = cpu_to_be16((SYNTAX << 15) | (ZERO << 14) | (ONES << 12)); in vidtv_psi_pmt_table_init()
1132 pmt->header.id = cpu_to_be16(program_number); in vidtv_psi_pmt_table_init()
1133 pmt->header.current_next = 0x1; in vidtv_psi_pmt_table_init()
1135 pmt->header.version = 0x1f; in vidtv_psi_pmt_table_init()
1137 pmt->header.one2 = ONES; in vidtv_psi_pmt_table_init()
1138 pmt->header.section_id = 0; in vidtv_psi_pmt_table_init()
1139 pmt->header.last_section = 0; in vidtv_psi_pmt_table_init()
1141 pmt->bitfield = cpu_to_be16((RESERVED1 << 13) | pcr_pid); in vidtv_psi_pmt_table_init()
1143 desc_loop_len = vidtv_psi_desc_comp_loop_len(pmt->descriptor); in vidtv_psi_pmt_table_init()
1145 pmt->bitfield2 = cpu_to_be16((RESERVED2 << 12) | in vidtv_psi_pmt_table_init()
1149 vidtv_psi_pmt_table_update_sec_len(pmt); in vidtv_psi_pmt_table_init()
1151 return pmt; in vidtv_psi_pmt_table_init()
1156 struct vidtv_psi_desc *table_descriptor = args->pmt->descriptor; in vidtv_psi_pmt_write_into()
1157 struct vidtv_psi_table_pmt_stream *stream = args->pmt->stream; in vidtv_psi_pmt_write_into()
1164 .h = &args->pmt->header, in vidtv_psi_pmt_write_into()
1171 .from = &args->pmt->bitfield, in vidtv_psi_pmt_write_into()
1192 vidtv_psi_pmt_table_update_sec_len(args->pmt); in vidtv_psi_pmt_write_into()
1250 void vidtv_psi_pmt_table_destroy(struct vidtv_psi_table_pmt *pmt) in vidtv_psi_pmt_table_destroy() argument
1252 vidtv_psi_desc_destroy(pmt->descriptor); in vidtv_psi_pmt_table_destroy()
1253 vidtv_psi_pmt_stream_destroy(pmt->stream); in vidtv_psi_pmt_table_destroy()
1254 kfree(pmt); in vidtv_psi_pmt_table_destroy()