• Home
  • Raw
  • Download

Lines Matching refs:phyinfo

377 	struct cfcnfg_phyinfo *phyinfo;  in cfcnfg_linkup_rsp()  local
399 phyinfo = cfcnfg_get_phyinfo_rcu(cnfg, phyid); in cfcnfg_linkup_rsp()
400 if (phyinfo == NULL) { in cfcnfg_linkup_rsp()
405 caif_assert(phyinfo != NULL); in cfcnfg_linkup_rsp()
406 caif_assert(phyinfo->id == phyid); in cfcnfg_linkup_rsp()
407 caif_assert(phyinfo->phy_layer != NULL); in cfcnfg_linkup_rsp()
408 caif_assert(phyinfo->phy_layer->id == phyid); in cfcnfg_linkup_rsp()
414 servicel = cfvei_create(channel_id, &phyinfo->dev_info); in cfcnfg_linkup_rsp()
418 &phyinfo->dev_info); in cfcnfg_linkup_rsp()
421 netdev = phyinfo->dev_info.dev; in cfcnfg_linkup_rsp()
422 servicel = cfrfml_create(channel_id, &phyinfo->dev_info, in cfcnfg_linkup_rsp()
426 servicel = cfutill_create(channel_id, &phyinfo->dev_info); in cfcnfg_linkup_rsp()
429 servicel = cfvidl_create(channel_id, &phyinfo->dev_info); in cfcnfg_linkup_rsp()
432 servicel = cfdbgl_create(channel_id, &phyinfo->dev_info); in cfcnfg_linkup_rsp()
461 struct cfcnfg_phyinfo *phyinfo = NULL; in cfcnfg_add_phy_layer() local
479 phyinfo = kzalloc(sizeof(struct cfcnfg_phyinfo), GFP_ATOMIC); in cfcnfg_add_phy_layer()
480 if (!phyinfo) in cfcnfg_add_phy_layer()
484 phyinfo->pref = pref; in cfcnfg_add_phy_layer()
485 phyinfo->id = phyid; in cfcnfg_add_phy_layer()
486 phyinfo->dev_info.id = phyid; in cfcnfg_add_phy_layer()
487 phyinfo->dev_info.dev = dev; in cfcnfg_add_phy_layer()
488 phyinfo->phy_layer = phy_layer; in cfcnfg_add_phy_layer()
489 phyinfo->ifindex = dev->ifindex; in cfcnfg_add_phy_layer()
490 phyinfo->head_room = head_room; in cfcnfg_add_phy_layer()
491 phyinfo->use_fcs = fcs; in cfcnfg_add_phy_layer()
497 phyinfo->frm_layer = frml; in cfcnfg_add_phy_layer()
511 list_add_rcu(&phyinfo->node, &cnfg->phys); in cfcnfg_add_phy_layer()
517 kfree(phyinfo); in cfcnfg_add_phy_layer()
525 struct cfcnfg_phyinfo *phyinfo; in cfcnfg_set_phy_state() local
528 phyinfo = cfcnfg_get_phyinfo_rcu(cnfg, phy_layer->id); in cfcnfg_set_phy_state()
529 if (phyinfo == NULL) { in cfcnfg_set_phy_state()
534 if (phyinfo->up == up) { in cfcnfg_set_phy_state()
538 phyinfo->up = up; in cfcnfg_set_phy_state()
541 cffrml_hold(phyinfo->frm_layer); in cfcnfg_set_phy_state()
542 cfmuxl_set_dnlayer(cnfg->mux, phyinfo->frm_layer, in cfcnfg_set_phy_state()
546 cffrml_put(phyinfo->frm_layer); in cfcnfg_set_phy_state()
558 struct cfcnfg_phyinfo *phyinfo; in cfcnfg_del_phy_layer() local
565 phyinfo = cfcnfg_get_phyinfo_rcu(cnfg, phyid); in cfcnfg_del_phy_layer()
567 if (phyinfo == NULL) { in cfcnfg_del_phy_layer()
571 caif_assert(phyid == phyinfo->id); in cfcnfg_del_phy_layer()
572 caif_assert(phy_layer == phyinfo->phy_layer); in cfcnfg_del_phy_layer()
574 caif_assert(phyinfo->frm_layer->id == phyid); in cfcnfg_del_phy_layer()
576 list_del_rcu(&phyinfo->node); in cfcnfg_del_phy_layer()
580 if (cffrml_refcnt_read(phyinfo->frm_layer) != 0) { in cfcnfg_del_phy_layer()
582 list_add_rcu(&phyinfo->node, &cnfg->phys); in cfcnfg_del_phy_layer()
587 frml = phyinfo->frm_layer; in cfcnfg_del_phy_layer()
597 if (phyinfo->phy_layer != frml_dn) in cfcnfg_del_phy_layer()
601 kfree(phyinfo); in cfcnfg_del_phy_layer()