Lines Matching refs:phynode
55 struct phynode *
60 struct phynode *phynode; in phynode_usb_create() local
63 phynode = phynode_create(pdev, phynode_class, &def->phynode_init_def); in phynode_usb_create()
64 if (phynode == NULL) in phynode_usb_create()
66 sc = phynode_get_softc(phynode); in phynode_usb_create()
68 return (phynode); in phynode_usb_create()
71 struct phynode
72 *phynode_usb_register(struct phynode *phynode) in phynode_usb_register() argument
75 return (phynode_register(phynode)); in phynode_usb_register()
88 phynode_usb_set_mode(struct phynode *phynode, int usb_mode) in phynode_usb_set_mode() argument
94 PHYNODE_XLOCK(phynode); in phynode_usb_set_mode()
95 rv = PHYNODE_USB_SET_MODE(phynode, usb_mode); in phynode_usb_set_mode()
96 PHYNODE_UNLOCK(phynode); in phynode_usb_set_mode()
104 phynode_usb_get_mode(struct phynode *phynode, int *usb_mode) in phynode_usb_get_mode() argument
110 PHYNODE_XLOCK(phynode); in phynode_usb_get_mode()
111 rv = PHYNODE_USB_GET_MODE(phynode, usb_mode); in phynode_usb_get_mode()
112 PHYNODE_UNLOCK(phynode); in phynode_usb_get_mode()
124 struct phynode *phynode; in phy_usb_set_mode() local
126 phynode = phy->phynode; in phy_usb_set_mode()
127 KASSERT(phynode->ref_cnt > 0, in phy_usb_set_mode()
131 rv = phynode_usb_set_mode(phynode, usb_mode); in phy_usb_set_mode()
139 struct phynode *phynode; in phy_usb_get_mode() local
141 phynode = phy->phynode; in phy_usb_get_mode()
142 KASSERT(phynode->ref_cnt > 0, in phy_usb_get_mode()
146 rv = phynode_usb_get_mode(phynode, usb_mode); in phy_usb_get_mode()