Lines Matching refs:pl
73 struct phy_lookup *pl; in phy_create_lookup() local
78 pl = kzalloc(sizeof(*pl), GFP_KERNEL); in phy_create_lookup()
79 if (!pl) in phy_create_lookup()
82 pl->dev_id = dev_id; in phy_create_lookup()
83 pl->con_id = con_id; in phy_create_lookup()
84 pl->phy = phy; in phy_create_lookup()
87 list_add_tail(&pl->node, &phys); in phy_create_lookup()
105 struct phy_lookup *pl; in phy_remove_lookup() local
111 list_for_each_entry(pl, &phys, node) in phy_remove_lookup()
112 if (pl->phy == phy && !strcmp(pl->dev_id, dev_id) && in phy_remove_lookup()
113 !strcmp(pl->con_id, con_id)) { in phy_remove_lookup()
114 list_del(&pl->node); in phy_remove_lookup()
115 kfree(pl); in phy_remove_lookup()
125 struct phy_lookup *p, *pl = NULL; in phy_find() local
130 pl = p; in phy_find()
135 return pl ? pl->phy : ERR_PTR(-ENODEV); in phy_find()