Lines Matching refs:eit
1775 void vidtv_psi_eit_table_update_sec_len(struct vidtv_psi_table_eit *eit) in vidtv_psi_eit_table_update_sec_len() argument
1777 struct vidtv_psi_table_eit_event *e = eit->event; in vidtv_psi_eit_table_update_sec_len()
1803 vidtv_psi_set_sec_len(&eit->header, length); in vidtv_psi_eit_table_update_sec_len()
1806 void vidtv_psi_eit_event_assign(struct vidtv_psi_table_eit *eit, in vidtv_psi_eit_event_assign() argument
1810 if (e == eit->event) in vidtv_psi_eit_event_assign()
1813 eit->event = e; in vidtv_psi_eit_event_assign()
1814 vidtv_psi_eit_table_update_sec_len(eit); in vidtv_psi_eit_event_assign()
1817 } while (vidtv_psi_get_sec_len(&eit->header) > EIT_MAX_SECTION_LEN); in vidtv_psi_eit_event_assign()
1819 vidtv_psi_update_version_num(&eit->header); in vidtv_psi_eit_event_assign()
1827 struct vidtv_psi_table_eit *eit; in vidtv_psi_eit_table_init() local
1832 eit = kzalloc(sizeof(*eit), GFP_KERNEL); in vidtv_psi_eit_table_init()
1833 if (!eit) in vidtv_psi_eit_table_init()
1836 eit->header.table_id = 0x4e; //actual_transport_stream: present/following in vidtv_psi_eit_table_init()
1838 eit->header.bitfield = cpu_to_be16((SYNTAX << 15) | (ONE << 14) | (ONES << 12)); in vidtv_psi_eit_table_init()
1840 eit->header.id = service_id; in vidtv_psi_eit_table_init()
1841 eit->header.current_next = ONE; in vidtv_psi_eit_table_init()
1843 eit->header.version = 0x1f; in vidtv_psi_eit_table_init()
1845 eit->header.one2 = ONES; in vidtv_psi_eit_table_init()
1846 eit->header.section_id = 0; in vidtv_psi_eit_table_init()
1847 eit->header.last_section = 0; in vidtv_psi_eit_table_init()
1849 eit->transport_id = cpu_to_be16(transport_stream_id); in vidtv_psi_eit_table_init()
1850 eit->network_id = cpu_to_be16(network_id); in vidtv_psi_eit_table_init()
1852 eit->last_segment = eit->header.last_section; /* not implemented */ in vidtv_psi_eit_table_init()
1853 eit->last_table_id = eit->header.table_id; /* not implemented */ in vidtv_psi_eit_table_init()
1855 vidtv_psi_eit_table_update_sec_len(eit); in vidtv_psi_eit_table_init()
1857 return eit; in vidtv_psi_eit_table_init()
1865 .h = &args->eit->header, in vidtv_psi_eit_write_into()
1890 struct vidtv_psi_table_eit_event *event = args->eit->event; in vidtv_psi_eit_write_into()
1895 vidtv_psi_eit_table_update_sec_len(args->eit); in vidtv_psi_eit_write_into()
1902 psi_args.from = &args->eit->transport_id; in vidtv_psi_eit_write_into()
2021 void vidtv_psi_eit_table_destroy(struct vidtv_psi_table_eit *eit) in vidtv_psi_eit_table_destroy() argument
2023 vidtv_psi_eit_event_destroy(eit->event); in vidtv_psi_eit_table_destroy()
2024 kfree(eit); in vidtv_psi_eit_table_destroy()