Searched refs:cnfg (Results 1 - 3 of 3) sorted by relevance
/linux-4.1.27/net/caif/ |
H A D | cfcnfg.c | 133 static struct cfcnfg_phyinfo *cfcnfg_get_phyinfo_rcu(struct cfcnfg *cnfg, cfcnfg_get_phyinfo_rcu() argument 138 list_for_each_entry_rcu(phy, &cnfg->phys, node) cfcnfg_get_phyinfo_rcu() 148 static struct dev_info *cfcnfg_get_phyid(struct cfcnfg *cnfg, cfcnfg_get_phyid() argument 154 list_for_each_entry_rcu(phy, &cnfg->phys, node) { cfcnfg_get_phyid() 162 list_for_each_entry_rcu(phy, &cnfg->phys, node) cfcnfg_get_phyid() 169 static int cfcnfg_get_id_from_ifi(struct cfcnfg *cnfg, int ifi) cfcnfg_get_id_from_ifi() argument 173 list_for_each_entry_rcu(phy, &cnfg->phys, node) cfcnfg_get_id_from_ifi() 218 static int caif_connect_req_to_link_param(struct cfcnfg *cnfg, caif_connect_req_to_link_param() argument 231 res = cfcnfg_get_id_from_ifi(cnfg, s->ifindex); caif_connect_req_to_link_param() 246 dev_info = cfcnfg_get_phyid(cnfg, pref); caif_connect_req_to_link_param() 377 struct cfcnfg *cnfg = container_obj(layer); cfcnfg_linkup_rsp() local 395 cfctrl_linkdown_req(cnfg->ctrl, channel_id, NULL); cfcnfg_linkup_rsp() 399 caif_assert(cnfg != NULL); cfcnfg_linkup_rsp() 402 phyinfo = cfcnfg_get_phyinfo_rcu(cnfg, phyid); cfcnfg_linkup_rsp() 445 layer_set_dn(servicel, cnfg->mux); cfcnfg_linkup_rsp() 446 cfmuxl_set_uplayer(cnfg->mux, servicel, channel_id); cfcnfg_linkup_rsp() 459 cfcnfg_add_phy_layer(struct cfcnfg *cnfg, cfcnfg_add_phy_layer() argument 470 mutex_lock(&cnfg->lock); cfcnfg_add_phy_layer() 477 if (cfcnfg_get_phyinfo_rcu(cnfg, phyid) == NULL) cfcnfg_add_phy_layer() 503 layer_set_up(frml, cnfg->mux); cfcnfg_add_phy_layer() 516 list_add_rcu(&phyinfo->node, &cnfg->phys); cfcnfg_add_phy_layer() 518 mutex_unlock(&cnfg->lock); cfcnfg_add_phy_layer() 523 mutex_unlock(&cnfg->lock); cfcnfg_add_phy_layer() 527 int cfcnfg_set_phy_state(struct cfcnfg *cnfg, struct cflayer *phy_layer, cfcnfg_set_phy_state() argument 533 phyinfo = cfcnfg_get_phyinfo_rcu(cnfg, phy_layer->id); cfcnfg_set_phy_state() 547 cfmuxl_set_dnlayer(cnfg->mux, phyinfo->frm_layer, cfcnfg_set_phy_state() 550 cfmuxl_remove_dnlayer(cnfg->mux, phy_layer->id); cfcnfg_set_phy_state() 559 int cfcnfg_del_phy_layer(struct cfcnfg *cnfg, struct cflayer *phy_layer) cfcnfg_del_phy_layer() argument 567 mutex_lock(&cnfg->lock); cfcnfg_del_phy_layer() 570 phyinfo = cfcnfg_get_phyinfo_rcu(cnfg, phyid); cfcnfg_del_phy_layer() 573 mutex_unlock(&cnfg->lock); cfcnfg_del_phy_layer() 587 list_add_rcu(&phyinfo->node, &cnfg->phys); cfcnfg_del_phy_layer() 588 mutex_unlock(&cnfg->lock); cfcnfg_del_phy_layer() 607 mutex_unlock(&cnfg->lock); cfcnfg_del_phy_layer()
|
/linux-4.1.27/include/net/caif/ |
H A D | cfcnfg.h | 55 * @cnfg: Pointer to a CAIF configuration object, created by 66 cfcnfg_add_phy_layer(struct cfcnfg *cnfg, 75 * @cnfg: Pointer to a CAIF configuration object, created by 79 int cfcnfg_del_phy_layer(struct cfcnfg *cnfg, struct cflayer *phy_layer); 83 * @cnfg: Configuration object 87 int cfcnfg_set_phy_state(struct cfcnfg *cnfg, struct cflayer *phy_layer,
|
/linux-4.1.27/drivers/spmi/ |
H A D | spmi-pmic-arb.c | 108 * @cnfg: address of the PMIC Arbiter configuration registers. 127 void __iomem *cnfg; member in struct:spmi_pmic_arb_dev 865 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cnfg"); spmi_pmic_arb_probe() 866 pa->cnfg = devm_ioremap_resource(&ctrl->dev, res); spmi_pmic_arb_probe() 867 if (IS_ERR(pa->cnfg)) { spmi_pmic_arb_probe() 868 err = PTR_ERR(pa->cnfg); spmi_pmic_arb_probe() 908 pa->cnfg + SPMI_MAPPING_TABLE_REG(i)); spmi_pmic_arb_probe()
|
Completed in 144 milliseconds