Lines Matching refs:nit
1542 static void vidtv_psi_nit_table_update_sec_len(struct vidtv_psi_table_nit *nit) in vidtv_psi_nit_table_update_sec_len() argument
1545 struct vidtv_psi_table_transport *t = nit->transport; in vidtv_psi_nit_table_update_sec_len()
1555 desc_loop_len = vidtv_psi_desc_comp_loop_len(nit->descriptor); in vidtv_psi_nit_table_update_sec_len()
1556 vidtv_psi_set_desc_loop_len(&nit->bitfield, desc_loop_len, 12); in vidtv_psi_nit_table_update_sec_len()
1579 vidtv_psi_set_desc_loop_len(&nit->bitfield2, transport_loop_len, 12); in vidtv_psi_nit_table_update_sec_len()
1582 vidtv_psi_set_sec_len(&nit->header, length); in vidtv_psi_nit_table_update_sec_len()
1592 struct vidtv_psi_table_nit *nit; in vidtv_psi_nit_table_init() local
1597 nit = kzalloc(sizeof(*nit), GFP_KERNEL); in vidtv_psi_nit_table_init()
1598 if (!nit) in vidtv_psi_nit_table_init()
1605 nit->header.table_id = 0x40; // ACTUAL_NETWORK in vidtv_psi_nit_table_init()
1607 nit->header.bitfield = cpu_to_be16((SYNTAX << 15) | (ONE << 14) | (ONES << 12)); in vidtv_psi_nit_table_init()
1609 nit->header.id = cpu_to_be16(network_id); in vidtv_psi_nit_table_init()
1610 nit->header.current_next = ONE; in vidtv_psi_nit_table_init()
1612 nit->header.version = 0x1f; in vidtv_psi_nit_table_init()
1614 nit->header.one2 = ONES; in vidtv_psi_nit_table_init()
1615 nit->header.section_id = 0; in vidtv_psi_nit_table_init()
1616 nit->header.last_section = 0; in vidtv_psi_nit_table_init()
1618 nit->bitfield = cpu_to_be16(0xf); in vidtv_psi_nit_table_init()
1619 nit->bitfield2 = cpu_to_be16(0xf); in vidtv_psi_nit_table_init()
1621 nit->descriptor = (struct vidtv_psi_desc *) in vidtv_psi_nit_table_init()
1623 if (!nit->descriptor) in vidtv_psi_nit_table_init()
1634 nit->transport = transport; in vidtv_psi_nit_table_init()
1636 vidtv_psi_nit_table_update_sec_len(nit); in vidtv_psi_nit_table_init()
1638 return nit; in vidtv_psi_nit_table_init()
1641 vidtv_psi_desc_destroy((struct vidtv_psi_desc *)nit->descriptor); in vidtv_psi_nit_table_init()
1646 kfree(nit); in vidtv_psi_nit_table_init()
1655 .h = &args->nit->header, in vidtv_psi_nit_write_into()
1661 .from = &args->nit->bitfield, in vidtv_psi_nit_write_into()
1678 struct vidtv_psi_desc *table_descriptor = args->nit->descriptor; in vidtv_psi_nit_write_into()
1679 struct vidtv_psi_table_transport *transport = args->nit->transport; in vidtv_psi_nit_write_into()
1684 vidtv_psi_nit_table_update_sec_len(args->nit); in vidtv_psi_nit_write_into()
1712 psi_args.from = &args->nit->bitfield2; in vidtv_psi_nit_write_into()
1768 void vidtv_psi_nit_table_destroy(struct vidtv_psi_table_nit *nit) in vidtv_psi_nit_table_destroy() argument
1770 vidtv_psi_desc_destroy(nit->descriptor); in vidtv_psi_nit_table_destroy()
1771 vidtv_psi_transport_destroy(nit->transport); in vidtv_psi_nit_table_destroy()
1772 kfree(nit); in vidtv_psi_nit_table_destroy()