Lines Matching refs:phynode
52 struct phynode *
57 struct phynode *phynode; in phynode_usb_create() local
60 phynode = phynode_create(pdev, phynode_class, &def->phynode_init_def); in phynode_usb_create()
61 if (phynode == NULL) in phynode_usb_create()
63 sc = phynode_get_softc(phynode); in phynode_usb_create()
65 return (phynode); in phynode_usb_create()
68 struct phynode
69 *phynode_usb_register(struct phynode *phynode) in phynode_usb_register() argument
72 return (phynode_register(phynode)); in phynode_usb_register()
85 phynode_usb_set_mode(struct phynode *phynode, int usb_mode) in phynode_usb_set_mode() argument
91 PHYNODE_XLOCK(phynode); in phynode_usb_set_mode()
92 rv = PHYNODE_USB_SET_MODE(phynode, usb_mode); in phynode_usb_set_mode()
93 PHYNODE_UNLOCK(phynode); in phynode_usb_set_mode()
101 phynode_usb_get_mode(struct phynode *phynode, int *usb_mode) in phynode_usb_get_mode() argument
107 PHYNODE_XLOCK(phynode); in phynode_usb_get_mode()
108 rv = PHYNODE_USB_GET_MODE(phynode, usb_mode); in phynode_usb_get_mode()
109 PHYNODE_UNLOCK(phynode); in phynode_usb_get_mode()
121 struct phynode *phynode; in phy_usb_set_mode() local
123 phynode = phy->phynode; in phy_usb_set_mode()
124 KASSERT(phynode->ref_cnt > 0, in phy_usb_set_mode()
128 rv = phynode_usb_set_mode(phynode, usb_mode); in phy_usb_set_mode()
136 struct phynode *phynode; in phy_usb_get_mode() local
138 phynode = phy->phynode; in phy_usb_get_mode()
139 KASSERT(phynode->ref_cnt > 0, in phy_usb_get_mode()
143 rv = phynode_usb_get_mode(phynode, usb_mode); in phy_usb_get_mode()