Lines Matching full:comp
33 struct most_component *comp; member
450 struct most_component *comp; in match_component() local
452 list_for_each_entry(comp, &comp_list, list) { in match_component()
453 if (!strcmp(comp->name, name)) in match_component()
454 return comp; in match_component()
473 if (c->pipe0.comp) { in print_links()
477 c->pipe0.comp->name, in print_links()
481 if (c->pipe1.comp) { in print_links()
485 c->pipe1.comp->name, in print_links()
517 struct most_component *comp; in components_show() local
520 list_for_each_entry(comp, &comp_list, list) { in components_show()
522 comp->name); in components_show()
552 struct most_component *comp, in link_channel_to_component() argument
559 if (!c->pipe0.comp) in link_channel_to_component()
560 comp_ptr = &c->pipe0.comp; in link_channel_to_component()
561 else if (!c->pipe1.comp) in link_channel_to_component()
562 comp_ptr = &c->pipe1.comp; in link_channel_to_component()
566 *comp_ptr = comp; in link_channel_to_component()
567 ret = comp->probe_channel(c->iface, c->channel_id, &c->cfg, name, in link_channel_to_component()
668 struct most_component *comp; in most_cfg_complete() local
670 comp = match_component(comp_name); in most_cfg_complete()
671 if (!comp) in most_cfg_complete()
674 return comp->cfg_complete(); in most_cfg_complete()
681 struct most_component *comp = match_component(comp_name); in most_add_link() local
683 if (!c || !comp) in most_add_link()
686 return link_channel_to_component(c, comp, link_name, comp_param); in most_add_link()
692 struct most_component *comp; in most_remove_link() local
694 comp = match_component(comp_name); in most_remove_link()
695 if (!comp) in most_remove_link()
701 if (comp->disconnect_channel(c->iface, c->channel_id)) in most_remove_link()
703 if (c->pipe0.comp == comp) in most_remove_link()
704 c->pipe0.comp = NULL; in most_remove_link()
705 if (c->pipe1.comp == comp) in most_remove_link()
706 c->pipe1.comp = NULL; in most_remove_link()
852 if (c->pipe0.refs && c->pipe0.comp->tx_completion) in arm_mbo()
853 c->pipe0.comp->tx_completion(c->iface, c->channel_id); in arm_mbo()
855 if (c->pipe1.refs && c->pipe1.comp->tx_completion) in arm_mbo()
856 c->pipe1.comp->tx_completion(c->iface, c->channel_id); in arm_mbo()
954 struct most_component *comp) in channel_has_mbo() argument
964 ((comp == c->pipe0.comp && c->pipe0.num_buffers <= 0) || in channel_has_mbo()
965 (comp == c->pipe1.comp && c->pipe1.num_buffers <= 0))) in channel_has_mbo()
979 * @comp: driver component
985 struct most_component *comp) in most_get_mbo() argument
997 ((comp == c->pipe0.comp && c->pipe0.num_buffers <= 0) || in most_get_mbo()
998 (comp == c->pipe1.comp && c->pipe1.num_buffers <= 0))) in most_get_mbo()
1001 if (comp == c->pipe0.comp) in most_get_mbo()
1003 else if (comp == c->pipe1.comp) in most_get_mbo()
1068 if (c->pipe0.refs && c->pipe0.comp->rx_completion && in most_read_completion()
1069 c->pipe0.comp->rx_completion(mbo) == 0) in most_read_completion()
1072 if (c->pipe1.refs && c->pipe1.comp->rx_completion && in most_read_completion()
1073 c->pipe1.comp->rx_completion(mbo) == 0) in most_read_completion()
1083 * @comp: driver component
1091 struct most_component *comp) in most_start_channel() argument
1140 if (comp == c->pipe0.comp) in most_start_channel()
1142 if (comp == c->pipe1.comp) in most_start_channel()
1158 * @comp: driver component
1161 struct most_component *comp) in most_stop_channel() argument
1206 if (comp == c->pipe0.comp) in most_stop_channel()
1208 if (comp == c->pipe1.comp) in most_stop_channel()
1217 * @comp: driver component
1219 int most_register_component(struct most_component *comp) in most_register_component() argument
1221 if (!comp) { in most_register_component()
1225 list_add_tail(&comp->list, &comp_list); in most_register_component()
1234 struct most_component *comp = data; in disconnect_channels() local
1238 if (c->pipe0.comp == comp || c->pipe1.comp == comp) in disconnect_channels()
1239 comp->disconnect_channel(c->iface, c->channel_id); in disconnect_channels()
1240 if (c->pipe0.comp == comp) in disconnect_channels()
1241 c->pipe0.comp = NULL; in disconnect_channels()
1242 if (c->pipe1.comp == comp) in disconnect_channels()
1243 c->pipe1.comp = NULL; in disconnect_channels()
1250 * @comp: driver component
1252 int most_deregister_component(struct most_component *comp) in most_deregister_component() argument
1254 if (!comp) { in most_deregister_component()
1259 bus_for_each_dev(&mostbus, NULL, comp, disconnect_channels); in most_deregister_component()
1260 list_del(&comp->list); in most_deregister_component()
1388 if (c->pipe0.comp) in most_deregister_interface()
1389 c->pipe0.comp->disconnect_channel(c->iface, in most_deregister_interface()
1391 if (c->pipe1.comp) in most_deregister_interface()
1392 c->pipe1.comp->disconnect_channel(c->iface, in most_deregister_interface()
1394 c->pipe0.comp = NULL; in most_deregister_interface()
1395 c->pipe1.comp = NULL; in most_deregister_interface()