• Home
  • Raw
  • Download

Lines Matching refs:cnfg

133 static struct cfcnfg_phyinfo *cfcnfg_get_phyinfo_rcu(struct cfcnfg *cnfg,  in cfcnfg_get_phyinfo_rcu()  argument
138 list_for_each_entry_rcu(phy, &cnfg->phys, node) in cfcnfg_get_phyinfo_rcu()
148 static struct dev_info *cfcnfg_get_phyid(struct cfcnfg *cnfg, in cfcnfg_get_phyid() argument
154 list_for_each_entry_rcu(phy, &cnfg->phys, node) { in cfcnfg_get_phyid()
162 list_for_each_entry_rcu(phy, &cnfg->phys, node) in cfcnfg_get_phyid()
169 static int cfcnfg_get_id_from_ifi(struct cfcnfg *cnfg, int ifi) in cfcnfg_get_id_from_ifi() argument
173 list_for_each_entry_rcu(phy, &cnfg->phys, node) in cfcnfg_get_id_from_ifi()
218 static int caif_connect_req_to_link_param(struct cfcnfg *cnfg, in caif_connect_req_to_link_param() argument
231 res = cfcnfg_get_id_from_ifi(cnfg, s->ifindex); in caif_connect_req_to_link_param()
246 dev_info = cfcnfg_get_phyid(cnfg, pref); in caif_connect_req_to_link_param()
375 struct cfcnfg *cnfg = container_obj(layer); in cfcnfg_linkup_rsp() local
392 cfctrl_linkdown_req(cnfg->ctrl, channel_id, NULL); in cfcnfg_linkup_rsp()
396 caif_assert(cnfg != NULL); in cfcnfg_linkup_rsp()
399 phyinfo = cfcnfg_get_phyinfo_rcu(cnfg, phyid); in cfcnfg_linkup_rsp()
440 layer_set_dn(servicel, cnfg->mux); in cfcnfg_linkup_rsp()
441 cfmuxl_set_uplayer(cnfg->mux, servicel, channel_id); in cfcnfg_linkup_rsp()
454 cfcnfg_add_phy_layer(struct cfcnfg *cnfg, in cfcnfg_add_phy_layer() argument
465 mutex_lock(&cnfg->lock); in cfcnfg_add_phy_layer()
472 if (cfcnfg_get_phyinfo_rcu(cnfg, phyid) == NULL) in cfcnfg_add_phy_layer()
498 layer_set_up(frml, cnfg->mux); in cfcnfg_add_phy_layer()
511 list_add_rcu(&phyinfo->node, &cnfg->phys); in cfcnfg_add_phy_layer()
513 mutex_unlock(&cnfg->lock); in cfcnfg_add_phy_layer()
518 mutex_unlock(&cnfg->lock); in cfcnfg_add_phy_layer()
522 int cfcnfg_set_phy_state(struct cfcnfg *cnfg, struct cflayer *phy_layer, in cfcnfg_set_phy_state() argument
528 phyinfo = cfcnfg_get_phyinfo_rcu(cnfg, phy_layer->id); in cfcnfg_set_phy_state()
542 cfmuxl_set_dnlayer(cnfg->mux, phyinfo->frm_layer, in cfcnfg_set_phy_state()
545 cfmuxl_remove_dnlayer(cnfg->mux, phy_layer->id); in cfcnfg_set_phy_state()
554 int cfcnfg_del_phy_layer(struct cfcnfg *cnfg, struct cflayer *phy_layer) in cfcnfg_del_phy_layer() argument
562 mutex_lock(&cnfg->lock); in cfcnfg_del_phy_layer()
565 phyinfo = cfcnfg_get_phyinfo_rcu(cnfg, phyid); in cfcnfg_del_phy_layer()
568 mutex_unlock(&cnfg->lock); in cfcnfg_del_phy_layer()
582 list_add_rcu(&phyinfo->node, &cnfg->phys); in cfcnfg_del_phy_layer()
583 mutex_unlock(&cnfg->lock); in cfcnfg_del_phy_layer()
602 mutex_unlock(&cnfg->lock); in cfcnfg_del_phy_layer()