Lines Matching refs:n_ports
195 (pa_tagstruct_getu32(t, &i.n_ports)))) { in context_get_sink_info_callback()
201 if (i.n_ports > 0) { in context_get_sink_info_callback()
202 i.ports = pa_xnew(pa_sink_port_info*, i.n_ports+1); in context_get_sink_info_callback()
203 i.ports[0] = pa_xnew(pa_sink_port_info, i.n_ports); in context_get_sink_info_callback()
205 for (j = 0; j < i.n_ports; j++) { in context_get_sink_info_callback()
238 for (j = 0; j < i.n_ports; j++) in context_get_sink_info_callback()
475 (pa_tagstruct_getu32(t, &i.n_ports)))) { in context_get_source_info_callback()
481 if (i.n_ports > 0) { in context_get_source_info_callback()
482 i.ports = pa_xnew(pa_source_port_info*, i.n_ports+1); in context_get_source_info_callback()
483 i.ports[0] = pa_xnew(pa_source_port_info, i.n_ports); in context_get_source_info_callback()
485 for (j = 0; j < i.n_ports; j++) { in context_get_source_info_callback()
517 for (j = 0; j < i.n_ports; j++) in context_get_source_info_callback()
796 for (j = 0; j < i->n_ports; j++) { in card_info_free()
815 if (pa_tagstruct_getu32(t, &i->n_ports) < 0) in fill_card_port_info()
818 if (i->n_ports == 0) { in fill_card_port_info()
823 i->ports = pa_xnew0(pa_card_port_info*, i->n_ports+1); in fill_card_port_info()
824 i->ports[0] = pa_xnew0(pa_card_port_info, i->n_ports); in fill_card_port_info()
826 for (j = 0; j < i->n_ports; j++) { in fill_card_port_info()