Lines Matching refs:phy_bind
48 struct usb_phy_bind *phy_bind = NULL; in __usb_find_phy_dev() local
50 list_for_each_entry(phy_bind, list, list) { in __usb_find_phy_dev()
51 if (!(strcmp(phy_bind->dev_name, dev_name(dev))) && in __usb_find_phy_dev()
52 phy_bind->index == index) { in __usb_find_phy_dev()
53 if (phy_bind->phy) in __usb_find_phy_dev()
54 return phy_bind->phy; in __usb_find_phy_dev()
423 struct usb_phy_bind *phy_bind; in usb_add_phy_dev() local
434 list_for_each_entry(phy_bind, &phy_bind_list, list) in usb_add_phy_dev()
435 if (!(strcmp(phy_bind->phy_dev_name, dev_name(x->dev)))) in usb_add_phy_dev()
436 phy_bind->phy = x; in usb_add_phy_dev()
454 struct usb_phy_bind *phy_bind; in usb_remove_phy() local
458 list_for_each_entry(phy_bind, &phy_bind_list, list) in usb_remove_phy()
459 if (phy_bind->phy == x) in usb_remove_phy()
460 phy_bind->phy = NULL; in usb_remove_phy()
482 struct usb_phy_bind *phy_bind; in usb_bind_phy() local
485 phy_bind = kzalloc(sizeof(*phy_bind), GFP_KERNEL); in usb_bind_phy()
486 if (!phy_bind) in usb_bind_phy()
489 phy_bind->dev_name = dev_name; in usb_bind_phy()
490 phy_bind->phy_dev_name = phy_dev_name; in usb_bind_phy()
491 phy_bind->index = index; in usb_bind_phy()
494 list_add_tail(&phy_bind->list, &phy_bind_list); in usb_bind_phy()