Lines Matching refs:m
159 *vidtv_channel_eit_event_cat_into_new(struct vidtv_mux *m) in vidtv_channel_eit_event_cat_into_new() argument
162 const struct vidtv_channel *cur_chnl = m->channels; in vidtv_channel_eit_event_cat_into_new()
176 dev_warn_ratelimited(m->dev, in vidtv_channel_eit_event_cat_into_new()
204 *vidtv_channel_sdt_serv_cat_into_new(struct vidtv_mux *m) in vidtv_channel_sdt_serv_cat_into_new() argument
207 const struct vidtv_channel *cur_chnl = m->channels; in vidtv_channel_sdt_serv_cat_into_new()
223 dev_warn_ratelimited(m->dev, in vidtv_channel_sdt_serv_cat_into_new()
260 vidtv_channel_pat_prog_cat_into_new(struct vidtv_mux *m) in vidtv_channel_pat_prog_cat_into_new() argument
263 const struct vidtv_channel *cur_chnl = m->channels; in vidtv_channel_pat_prog_cat_into_new()
277 dev_warn_ratelimited(m->dev, in vidtv_channel_pat_prog_cat_into_new()
416 int vidtv_channel_si_init(struct vidtv_mux *m) in vidtv_channel_si_init() argument
423 m->si.pat = vidtv_psi_pat_table_init(m->transport_stream_id); in vidtv_channel_si_init()
424 if (!m->si.pat) in vidtv_channel_si_init()
427 m->si.sdt = vidtv_psi_sdt_table_init(m->network_id, in vidtv_channel_si_init()
428 m->transport_stream_id); in vidtv_channel_si_init()
429 if (!m->si.sdt) in vidtv_channel_si_init()
432 programs = vidtv_channel_pat_prog_cat_into_new(m); in vidtv_channel_si_init()
435 services = vidtv_channel_sdt_serv_cat_into_new(m); in vidtv_channel_si_init()
439 events = vidtv_channel_eit_event_cat_into_new(m); in vidtv_channel_si_init()
449 m->si.nit = vidtv_psi_nit_table_init(m->network_id, in vidtv_channel_si_init()
450 m->transport_stream_id, in vidtv_channel_si_init()
451 m->network_name, in vidtv_channel_si_init()
453 if (!m->si.nit) in vidtv_channel_si_init()
456 m->si.eit = vidtv_psi_eit_table_init(m->network_id, in vidtv_channel_si_init()
457 m->transport_stream_id, in vidtv_channel_si_init()
459 if (!m->si.eit) in vidtv_channel_si_init()
463 vidtv_psi_pat_program_assign(m->si.pat, programs); in vidtv_channel_si_init()
466 vidtv_psi_sdt_service_assign(m->si.sdt, services); in vidtv_channel_si_init()
469 vidtv_psi_eit_event_assign(m->si.eit, events); in vidtv_channel_si_init()
471 m->si.pmt_secs = vidtv_psi_pmt_create_sec_for_each_pat_entry(m->si.pat, in vidtv_channel_si_init()
472 m->pcr_pid); in vidtv_channel_si_init()
473 if (!m->si.pmt_secs) in vidtv_channel_si_init()
476 vidtv_channel_pmt_match_sections(m->channels, in vidtv_channel_si_init()
477 m->si.pmt_secs, in vidtv_channel_si_init()
478 m->si.pat->num_pmt); in vidtv_channel_si_init()
485 vidtv_psi_eit_table_destroy(m->si.eit); in vidtv_channel_si_init()
487 vidtv_psi_nit_table_destroy(m->si.nit); in vidtv_channel_si_init()
497 vidtv_psi_sdt_table_destroy(m->si.sdt); in vidtv_channel_si_init()
499 vidtv_psi_pat_table_destroy(m->si.pat); in vidtv_channel_si_init()
503 void vidtv_channel_si_destroy(struct vidtv_mux *m) in vidtv_channel_si_destroy() argument
507 for (i = 0; i < m->si.pat->num_pmt; ++i) in vidtv_channel_si_destroy()
508 vidtv_psi_pmt_table_destroy(m->si.pmt_secs[i]); in vidtv_channel_si_destroy()
510 vidtv_psi_pat_table_destroy(m->si.pat); in vidtv_channel_si_destroy()
512 kfree(m->si.pmt_secs); in vidtv_channel_si_destroy()
513 vidtv_psi_sdt_table_destroy(m->si.sdt); in vidtv_channel_si_destroy()
514 vidtv_psi_nit_table_destroy(m->si.nit); in vidtv_channel_si_destroy()
515 vidtv_psi_eit_table_destroy(m->si.eit); in vidtv_channel_si_destroy()
518 int vidtv_channels_init(struct vidtv_mux *m) in vidtv_channels_init() argument
521 m->channels = vidtv_channel_s302m_init(NULL, m->transport_stream_id); in vidtv_channels_init()
523 if (!m->channels) in vidtv_channels_init()
529 void vidtv_channels_destroy(struct vidtv_mux *m) in vidtv_channels_destroy() argument
531 struct vidtv_channel *curr = m->channels; in vidtv_channels_destroy()