Lines Matching refs:pl
70 struct phy_lookup *pl; in phy_create_lookup() local
75 pl = kzalloc(sizeof(*pl), GFP_KERNEL); in phy_create_lookup()
76 if (!pl) in phy_create_lookup()
79 pl->dev_id = dev_id; in phy_create_lookup()
80 pl->con_id = con_id; in phy_create_lookup()
81 pl->phy = phy; in phy_create_lookup()
84 list_add_tail(&pl->node, &phys); in phy_create_lookup()
102 struct phy_lookup *pl; in phy_remove_lookup() local
108 list_for_each_entry(pl, &phys, node) in phy_remove_lookup()
109 if (pl->phy == phy && !strcmp(pl->dev_id, dev_id) && in phy_remove_lookup()
110 !strcmp(pl->con_id, con_id)) { in phy_remove_lookup()
111 list_del(&pl->node); in phy_remove_lookup()
112 kfree(pl); in phy_remove_lookup()
122 struct phy_lookup *p, *pl = NULL; in phy_find() local
127 pl = p; in phy_find()
132 return pl ? pl->phy : ERR_PTR(-ENODEV); in phy_find()