Lines Matching refs:phy_bind
43 struct usb_phy_bind *phy_bind = NULL; in __usb_find_phy_dev() local
45 list_for_each_entry(phy_bind, list, list) { in __usb_find_phy_dev()
46 if (!(strcmp(phy_bind->dev_name, dev_name(dev))) && in __usb_find_phy_dev()
47 phy_bind->index == index) { in __usb_find_phy_dev()
48 if (phy_bind->phy) in __usb_find_phy_dev()
49 return phy_bind->phy; in __usb_find_phy_dev()
380 struct usb_phy_bind *phy_bind; in usb_add_phy_dev() local
391 list_for_each_entry(phy_bind, &phy_bind_list, list) in usb_add_phy_dev()
392 if (!(strcmp(phy_bind->phy_dev_name, dev_name(x->dev)))) in usb_add_phy_dev()
393 phy_bind->phy = x; in usb_add_phy_dev()
411 struct usb_phy_bind *phy_bind; in usb_remove_phy() local
415 list_for_each_entry(phy_bind, &phy_bind_list, list) in usb_remove_phy()
416 if (phy_bind->phy == x) in usb_remove_phy()
417 phy_bind->phy = NULL; in usb_remove_phy()
439 struct usb_phy_bind *phy_bind; in usb_bind_phy() local
442 phy_bind = kzalloc(sizeof(*phy_bind), GFP_KERNEL); in usb_bind_phy()
443 if (!phy_bind) in usb_bind_phy()
446 phy_bind->dev_name = dev_name; in usb_bind_phy()
447 phy_bind->phy_dev_name = phy_dev_name; in usb_bind_phy()
448 phy_bind->index = index; in usb_bind_phy()
451 list_add_tail(&phy_bind->list, &phy_bind_list); in usb_bind_phy()