• Home
  • Raw
  • Download

Lines Matching refs:nit

1543 static void vidtv_psi_nit_table_update_sec_len(struct vidtv_psi_table_nit *nit)  in vidtv_psi_nit_table_update_sec_len()  argument
1546 struct vidtv_psi_table_transport *t = nit->transport; in vidtv_psi_nit_table_update_sec_len()
1556 desc_loop_len = vidtv_psi_desc_comp_loop_len(nit->descriptor); in vidtv_psi_nit_table_update_sec_len()
1557 vidtv_psi_set_desc_loop_len(&nit->bitfield, desc_loop_len, 12); in vidtv_psi_nit_table_update_sec_len()
1580 vidtv_psi_set_desc_loop_len(&nit->bitfield2, transport_loop_len, 12); in vidtv_psi_nit_table_update_sec_len()
1583 vidtv_psi_set_sec_len(&nit->header, length); in vidtv_psi_nit_table_update_sec_len()
1593 struct vidtv_psi_table_nit *nit; in vidtv_psi_nit_table_init() local
1598 nit = kzalloc(sizeof(*nit), GFP_KERNEL); in vidtv_psi_nit_table_init()
1599 if (!nit) in vidtv_psi_nit_table_init()
1606 nit->header.table_id = 0x40; // ACTUAL_NETWORK in vidtv_psi_nit_table_init()
1608 nit->header.bitfield = cpu_to_be16((SYNTAX << 15) | (ONE << 14) | (ONES << 12)); in vidtv_psi_nit_table_init()
1610 nit->header.id = cpu_to_be16(network_id); in vidtv_psi_nit_table_init()
1611 nit->header.current_next = ONE; in vidtv_psi_nit_table_init()
1613 nit->header.version = 0x1f; in vidtv_psi_nit_table_init()
1615 nit->header.one2 = ONES; in vidtv_psi_nit_table_init()
1616 nit->header.section_id = 0; in vidtv_psi_nit_table_init()
1617 nit->header.last_section = 0; in vidtv_psi_nit_table_init()
1619 nit->bitfield = cpu_to_be16(0xf); in vidtv_psi_nit_table_init()
1620 nit->bitfield2 = cpu_to_be16(0xf); in vidtv_psi_nit_table_init()
1622 nit->descriptor = (struct vidtv_psi_desc *) in vidtv_psi_nit_table_init()
1624 if (!nit->descriptor) in vidtv_psi_nit_table_init()
1635 nit->transport = transport; in vidtv_psi_nit_table_init()
1637 vidtv_psi_nit_table_update_sec_len(nit); in vidtv_psi_nit_table_init()
1639 return nit; in vidtv_psi_nit_table_init()
1642 vidtv_psi_desc_destroy((struct vidtv_psi_desc *)nit->descriptor); in vidtv_psi_nit_table_init()
1647 kfree(nit); in vidtv_psi_nit_table_init()
1656 .h = &args->nit->header, in vidtv_psi_nit_write_into()
1662 .from = &args->nit->bitfield, in vidtv_psi_nit_write_into()
1679 struct vidtv_psi_desc *table_descriptor = args->nit->descriptor; in vidtv_psi_nit_write_into()
1680 struct vidtv_psi_table_transport *transport = args->nit->transport; in vidtv_psi_nit_write_into()
1685 vidtv_psi_nit_table_update_sec_len(args->nit); in vidtv_psi_nit_write_into()
1713 psi_args.from = &args->nit->bitfield2; in vidtv_psi_nit_write_into()
1769 void vidtv_psi_nit_table_destroy(struct vidtv_psi_table_nit *nit) in vidtv_psi_nit_table_destroy() argument
1771 vidtv_psi_desc_destroy(nit->descriptor); in vidtv_psi_nit_table_destroy()
1772 vidtv_psi_transport_destroy(nit->transport); in vidtv_psi_nit_table_destroy()
1773 kfree(nit); in vidtv_psi_nit_table_destroy()