Lines Matching refs:pl
68 struct phy_lookup *pl; in phy_create_lookup() local
73 pl = kzalloc(sizeof(*pl), GFP_KERNEL); in phy_create_lookup()
74 if (!pl) in phy_create_lookup()
77 pl->dev_id = dev_id; in phy_create_lookup()
78 pl->con_id = con_id; in phy_create_lookup()
79 pl->phy = phy; in phy_create_lookup()
82 list_add_tail(&pl->node, &phys); in phy_create_lookup()
100 struct phy_lookup *pl; in phy_remove_lookup() local
106 list_for_each_entry(pl, &phys, node) in phy_remove_lookup()
107 if (pl->phy == phy && !strcmp(pl->dev_id, dev_id) && in phy_remove_lookup()
108 !strcmp(pl->con_id, con_id)) { in phy_remove_lookup()
109 list_del(&pl->node); in phy_remove_lookup()
110 kfree(pl); in phy_remove_lookup()
120 struct phy_lookup *p, *pl = NULL; in phy_find() local
125 pl = p; in phy_find()
130 return pl ? pl->phy : ERR_PTR(-ENODEV); in phy_find()