Lines Matching refs:sdt
624 void vidtv_sdt_desc_assign(struct vidtv_psi_table_sdt *sdt, in vidtv_sdt_desc_assign() argument
629 vidtv_psi_sdt_table_update_sec_len(sdt); in vidtv_sdt_desc_assign()
631 if (vidtv_psi_get_sec_len(&sdt->header) > MAX_SECTION_LEN) in vidtv_sdt_desc_assign()
634 vidtv_psi_update_version_num(&sdt->header); in vidtv_sdt_desc_assign()
831 void vidtv_psi_sdt_table_update_sec_len(struct vidtv_psi_table_sdt *sdt) in vidtv_psi_sdt_table_update_sec_len() argument
833 struct vidtv_psi_table_sdt_service *s = sdt->service; in vidtv_psi_sdt_table_update_sec_len()
860 vidtv_psi_set_sec_len(&sdt->header, length); in vidtv_psi_sdt_table_update_sec_len()
1268 struct vidtv_psi_table_sdt *sdt; in vidtv_psi_sdt_table_init() local
1274 sdt = kzalloc(sizeof(*sdt), GFP_KERNEL); in vidtv_psi_sdt_table_init()
1275 if (!sdt) in vidtv_psi_sdt_table_init()
1278 sdt->header.table_id = 0x42; in vidtv_psi_sdt_table_init()
1279 sdt->header.bitfield = cpu_to_be16((SYNTAX << 15) | (ONE << 14) | (ONES << 12)); in vidtv_psi_sdt_table_init()
1286 sdt->header.id = cpu_to_be16(transport_stream_id); in vidtv_psi_sdt_table_init()
1287 sdt->header.current_next = ONE; in vidtv_psi_sdt_table_init()
1289 sdt->header.version = 0x1f; in vidtv_psi_sdt_table_init()
1291 sdt->header.one2 = ONES; in vidtv_psi_sdt_table_init()
1292 sdt->header.section_id = 0; in vidtv_psi_sdt_table_init()
1293 sdt->header.last_section = 0; in vidtv_psi_sdt_table_init()
1302 sdt->network_id = cpu_to_be16(network_id); in vidtv_psi_sdt_table_init()
1303 sdt->reserved = RESERVED; in vidtv_psi_sdt_table_init()
1305 vidtv_psi_sdt_table_update_sec_len(sdt); in vidtv_psi_sdt_table_init()
1307 return sdt; in vidtv_psi_sdt_table_init()
1315 .h = &args->sdt->header, in vidtv_psi_sdt_write_into()
1338 struct vidtv_psi_table_sdt_service *service = args->sdt->service; in vidtv_psi_sdt_write_into()
1345 vidtv_psi_sdt_table_update_sec_len(args->sdt); in vidtv_psi_sdt_write_into()
1352 psi_args.from = &args->sdt->network_id; in vidtv_psi_sdt_write_into()
1400 void vidtv_psi_sdt_table_destroy(struct vidtv_psi_table_sdt *sdt) in vidtv_psi_sdt_table_destroy() argument
1402 vidtv_psi_sdt_service_destroy(sdt->service); in vidtv_psi_sdt_table_destroy()
1403 kfree(sdt); in vidtv_psi_sdt_table_destroy()
1456 vidtv_psi_sdt_service_assign(struct vidtv_psi_table_sdt *sdt, in vidtv_psi_sdt_service_assign() argument
1460 if (service == sdt->service) in vidtv_psi_sdt_service_assign()
1463 sdt->service = service; in vidtv_psi_sdt_service_assign()
1466 vidtv_psi_sdt_table_update_sec_len(sdt); in vidtv_psi_sdt_service_assign()
1469 } while (vidtv_psi_get_sec_len(&sdt->header) > MAX_SECTION_LEN); in vidtv_psi_sdt_service_assign()
1471 vidtv_psi_update_version_num(&sdt->header); in vidtv_psi_sdt_service_assign()