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
480 phyinfo = kzalloc(sizeof(struct cfcnfg_phyinfo), GFP_ATOMIC); in cfcnfg_add_phy_layer()
481 if (!phyinfo) { in cfcnfg_add_phy_layer()
487 phyinfo->pref = pref; in cfcnfg_add_phy_layer()
488 phyinfo->id = phyid; in cfcnfg_add_phy_layer()
489 phyinfo->dev_info.id = phyid; in cfcnfg_add_phy_layer()
490 phyinfo->dev_info.dev = dev; in cfcnfg_add_phy_layer()
491 phyinfo->phy_layer = phy_layer; in cfcnfg_add_phy_layer()
492 phyinfo->ifindex = dev->ifindex; in cfcnfg_add_phy_layer()
493 phyinfo->head_room = head_room; in cfcnfg_add_phy_layer()
494 phyinfo->use_fcs = fcs; in cfcnfg_add_phy_layer()
502 phyinfo->frm_layer = frml; in cfcnfg_add_phy_layer()
516 list_add_rcu(&phyinfo->node, &cnfg->phys); in cfcnfg_add_phy_layer()
522 kfree(phyinfo); in cfcnfg_add_phy_layer()
531 struct cfcnfg_phyinfo *phyinfo; in cfcnfg_set_phy_state() local
534 phyinfo = cfcnfg_get_phyinfo_rcu(cnfg, phy_layer->id); in cfcnfg_set_phy_state()
535 if (phyinfo == NULL) { in cfcnfg_set_phy_state()
540 if (phyinfo->up == up) { in cfcnfg_set_phy_state()
544 phyinfo->up = up; in cfcnfg_set_phy_state()
547 cffrml_hold(phyinfo->frm_layer); in cfcnfg_set_phy_state()
548 cfmuxl_set_dnlayer(cnfg->mux, phyinfo->frm_layer, in cfcnfg_set_phy_state()
552 cffrml_put(phyinfo->frm_layer); in cfcnfg_set_phy_state()
564 struct cfcnfg_phyinfo *phyinfo; in cfcnfg_del_phy_layer() local
571 phyinfo = cfcnfg_get_phyinfo_rcu(cnfg, phyid); in cfcnfg_del_phy_layer()
573 if (phyinfo == NULL) { in cfcnfg_del_phy_layer()
577 caif_assert(phyid == phyinfo->id); in cfcnfg_del_phy_layer()
578 caif_assert(phy_layer == phyinfo->phy_layer); in cfcnfg_del_phy_layer()
580 caif_assert(phyinfo->frm_layer->id == phyid); in cfcnfg_del_phy_layer()
582 list_del_rcu(&phyinfo->node); in cfcnfg_del_phy_layer()
586 if (cffrml_refcnt_read(phyinfo->frm_layer) != 0) { in cfcnfg_del_phy_layer()
588 list_add_rcu(&phyinfo->node, &cnfg->phys); in cfcnfg_del_phy_layer()
593 frml = phyinfo->frm_layer; in cfcnfg_del_phy_layer()
603 if (phyinfo->phy_layer != frml_dn) in cfcnfg_del_phy_layer()
607 kfree(phyinfo); in cfcnfg_del_phy_layer()