Lines Matching refs:cnfg
133 static struct cfcnfg_phyinfo *cfcnfg_get_phyinfo_rcu(struct cfcnfg *cnfg,
138 list_for_each_entry_rcu(phy, &cnfg->phys, node)
148 static struct dev_info *cfcnfg_get_phyid(struct cfcnfg *cnfg,
154 list_for_each_entry_rcu(phy, &cnfg->phys, node) {
162 list_for_each_entry_rcu(phy, &cnfg->phys, node)
169 static int cfcnfg_get_id_from_ifi(struct cfcnfg *cnfg, int ifi)
173 list_for_each_entry_rcu(phy, &cnfg->phys, node)
218 static int caif_connect_req_to_link_param(struct cfcnfg *cnfg,
231 res = cfcnfg_get_id_from_ifi(cnfg, s->ifindex);
246 dev_info = cfcnfg_get_phyid(cnfg, pref);
375 struct cfcnfg *cnfg = container_obj(layer);
392 cfctrl_linkdown_req(cnfg->ctrl, channel_id, NULL);
396 caif_assert(cnfg != NULL);
399 phyinfo = cfcnfg_get_phyinfo_rcu(cnfg, phyid);
440 layer_set_dn(servicel, cnfg->mux);
441 cfmuxl_set_uplayer(cnfg->mux, servicel, channel_id);
454 cfcnfg_add_phy_layer(struct cfcnfg *cnfg,
465 mutex_lock(&cnfg->lock);
472 if (cfcnfg_get_phyinfo_rcu(cnfg, phyid) == NULL)
503 layer_set_up(frml, cnfg->mux);
516 list_add_rcu(&phyinfo->node, &cnfg->phys);
518 mutex_unlock(&cnfg->lock);
523 mutex_unlock(&cnfg->lock);
528 int cfcnfg_set_phy_state(struct cfcnfg *cnfg, struct cflayer *phy_layer,
534 phyinfo = cfcnfg_get_phyinfo_rcu(cnfg, phy_layer->id);
548 cfmuxl_set_dnlayer(cnfg->mux, phyinfo->frm_layer,
551 cfmuxl_remove_dnlayer(cnfg->mux, phy_layer->id);
560 int cfcnfg_del_phy_layer(struct cfcnfg *cnfg, struct cflayer *phy_layer)
568 mutex_lock(&cnfg->lock);
571 phyinfo = cfcnfg_get_phyinfo_rcu(cnfg, phyid);
574 mutex_unlock(&cnfg->lock);
588 list_add_rcu(&phyinfo->node, &cnfg->phys);
589 mutex_unlock(&cnfg->lock);
608 mutex_unlock(&cnfg->lock);