Lines Matching refs:phynode

51 struct phynode *
56 struct phynode *phynode; in phynode_usb_create() local
59 phynode = phynode_create(pdev, phynode_class, &def->phynode_init_def); in phynode_usb_create()
60 if (phynode == NULL) in phynode_usb_create()
62 sc = phynode_get_softc(phynode); in phynode_usb_create()
64 return (phynode); in phynode_usb_create()
67 struct phynode
68 *phynode_usb_register(struct phynode *phynode) in phynode_usb_register() argument
71 return (phynode_register(phynode)); in phynode_usb_register()
84 phynode_usb_set_mode(struct phynode *phynode, int usb_mode) in phynode_usb_set_mode() argument
90 PHYNODE_XLOCK(phynode); in phynode_usb_set_mode()
91 rv = PHYNODE_USB_SET_MODE(phynode, usb_mode); in phynode_usb_set_mode()
92 PHYNODE_UNLOCK(phynode); in phynode_usb_set_mode()
100 phynode_usb_get_mode(struct phynode *phynode, int *usb_mode) in phynode_usb_get_mode() argument
106 PHYNODE_XLOCK(phynode); in phynode_usb_get_mode()
107 rv = PHYNODE_USB_GET_MODE(phynode, usb_mode); in phynode_usb_get_mode()
108 PHYNODE_UNLOCK(phynode); in phynode_usb_get_mode()
120 struct phynode *phynode; in phy_usb_set_mode() local
122 phynode = phy->phynode; in phy_usb_set_mode()
123 KASSERT(phynode->ref_cnt > 0, in phy_usb_set_mode()
127 rv = phynode_usb_set_mode(phynode, usb_mode); in phy_usb_set_mode()
135 struct phynode *phynode; in phy_usb_get_mode() local
137 phynode = phy->phynode; in phy_usb_get_mode()
138 KASSERT(phynode->ref_cnt > 0, in phy_usb_get_mode()
142 rv = phynode_usb_get_mode(phynode, usb_mode); in phy_usb_get_mode()