Searched refs:phynode (Results 1 - 20 of 20) sorted by relevance

/freebsd-13-stable/sys/dev/extres/phy/
H A Dphy_usb.c55 struct phynode *
60 struct phynode *phynode; local
63 phynode = phynode_create(pdev, phynode_class, &def->phynode_init_def);
64 if (phynode == NULL)
66 sc = phynode_get_softc(phynode);
68 return (phynode);
71 struct phynode
72 *phynode_usb_register(struct phynode *phynode) argument
88 phynode_usb_set_mode(struct phynode *phynode, int usb_mode) argument
104 phynode_usb_get_mode(struct phynode *phynode, int *usb_mode) argument
124 struct phynode *phynode; local
139 struct phynode *phynode; local
[all...]
H A Dphy.c53 static int phynode_method_init(struct phynode *phynode);
54 static int phynode_method_enable(struct phynode *phynode, bool disable);
55 static int phynode_method_status(struct phynode *phynode, int *status);
68 DEFINE_CLASS_0(phynode, phynode_class, phynode_methods, 0);
81 phynode_method_init(struct phynode *phynode) argument
88 phynode_method_enable(struct phynode *phynod argument
98 phynode_method_status(struct phynode *phynode, int *status) argument
116 struct phynode *phynode; local
143 phynode_register(struct phynode *phynode) argument
192 phynode_get_softc(struct phynode *phynode) argument
199 phynode_get_device(struct phynode *phynode) argument
205 phynode_get_id(struct phynode *phynode) argument
213 phynode_get_ofw_node(struct phynode *phynode) argument
230 phynode_enable(struct phynode *phynode) argument
253 phynode_disable(struct phynode *phynode) argument
277 phynode_status(struct phynode *phynode, int *status) argument
297 phy_create(struct phynode *phynode, device_t cdev) argument
320 struct phynode *phynode; local
338 struct phynode *phynode; local
358 struct phynode *phynode; local
374 struct phynode *phynode; local
392 struct phynode *phynode; local
[all...]
H A Dphy.h62 struct phynode *phynode_create(device_t pdev, phynode_class_t phynode_class,
64 struct phynode *phynode_register(struct phynode *phynode);
65 void *phynode_get_softc(struct phynode *phynode);
66 device_t phynode_get_device(struct phynode *phynode);
67 intptr_t phynode_get_id(struct phynode *phynode);
[all...]
H A Dphy_usb.h65 struct phynode *phynode_usb_create(device_t pdev, phynode_class_t phynode_class,
67 struct phynode *phynode_usb_register(struct phynode *phynode);
78 int phynode_usb_set_mode(struct phynode *phynode, int usb_mode);
79 int phynode_usb_get_mode(struct phynode *phynode, int *usb_mode);
H A Dphy_internal.h33 struct phynode;
35 typedef TAILQ_HEAD(phynode_list, phynode) phynode_list_t;
41 struct phynode { struct
44 TAILQ_ENTRY(phynode) phylist_link; /* Global list entry */
64 struct phynode *phynode; member in struct:phy
/freebsd-13-stable/sys/dev/mii/
H A Dmii_fdt.c170 if ((cfg->phynode = mii_fdt_get_phynode(cfg->macnode)) == -1)
173 if (OF_getencprop(cfg->phynode, "max-speed", &val, sizeof(val)) > 0)
176 if (ofw_bus_node_is_compatible(cfg->phynode,
180 if (OF_hasprop(cfg->phynode, "broken-turn-around"))
182 if (OF_hasprop(cfg->phynode, "enet-phy-lane-swap"))
184 if (OF_hasprop(cfg->phynode, "enet-phy-lane-no-swap"))
186 if (OF_hasprop(cfg->phynode, "eee-broken-100tx"))
188 if (OF_hasprop(cfg->phynode, "eee-broken-1000t"))
190 if (OF_hasprop(cfg->phynode, "eee-broken-10gt"))
192 if (OF_hasprop(cfg->phynode, "ee
[all...]
H A Dmii_fdt.h41 phandle_t phynode; /* Node (not xref) of PHY */ member in struct:mii_fdt_phy_config
H A Dvscphy.c113 if (OF_getencprop(cfg->phynode, "rx-delay", &val, sizeof(val)) > 0)
115 if (OF_getencprop(cfg->phynode, "tx-delay", &val, sizeof(val)) > 0)
H A Dmicphy.c279 ksz9031_load_values(sc, cfg->phynode);
281 ksz9021_load_values(sc, cfg->phynode);
/freebsd-13-stable/sys/arm/allwinner/
H A Daw_usb3phy.c95 static int awusb3phy_phy_enable(struct phynode *phy, bool enable);
96 static int awusb3phy_get_mode(struct phynode *phy, int *mode);
97 static int awusb3phy_set_mode(struct phynode *phy, int mode);
112 awusb3phy_phy_enable(struct phynode *phynode, bool enable) argument
119 dev = phynode_get_device(phynode);
178 awusb3phy_get_mode(struct phynode *phynode, int *mode) argument
183 dev = phynode_get_device(phynode);
192 awusb3phy_set_mode(struct phynode *phynod argument
226 struct phynode *phynode; local
[all...]
H A Daw_usbphy.c154 static int awusbphy_phy_enable(struct phynode *phy, bool enable);
155 static int awusbphy_get_mode(struct phynode *phy, int *mode);
156 static int awusbphy_set_mode(struct phynode *phy, int mode);
338 awusbphy_phy_enable(struct phynode *phynode, bool enable) argument
346 dev = phynode_get_device(phynode);
347 phy = phynode_get_id(phynode);
393 awusbphy_get_mode(struct phynode *phynode, int *mode) argument
398 dev = phynode_get_device(phynode);
407 awusbphy_set_mode(struct phynode *phynode, int mode) argument
479 struct phynode *phynode; local
[all...]
/freebsd-13-stable/sys/arm64/rockchip/
H A Drk_usb2phy.c94 static int rk_usb2phy_enable(struct phynode *phynode, bool enable);
95 static int rk_usb2phy_get_mode(struct phynode *phy, int *mode);
96 static int rk_usb2phy_set_mode(struct phynode *phy, int mode);
115 rk_usb2phy_enable(struct phynode *phynode, bool enable) argument
122 dev = phynode_get_device(phynode);
123 phy = phynode_get_id(phynode);
147 rk_usb2phy_get_mode(struct phynode *phynode, in argument
166 rk_usb2phy_set_mode(struct phynode *phynode, int mode) argument
341 struct phynode *phynode; local
[all...]
H A Drk_usbphy.c94 rk_phynode_phy_enable(struct phynode *phy, bool enable)
111 rk_phynode_get_mode(struct phynode *phynode, int *mode) argument
115 sc = phynode_get_softc(phynode);
121 rk_phynode_set_mode(struct phynode *phynode, int mode) argument
125 sc = phynode_get_softc(phynode);
145 struct phynode *phynode; local
218 phynode
[all...]
H A Drk3399_emmcphy.c119 static int rk_emmcphy_enable(struct phynode *phynode, bool enable);
129 rk_emmcphy_enable(struct phynode *phynode, bool enable) argument
138 dev = phynode_get_device(phynode);
139 phy = phynode_get_id(phynode);
276 struct phynode *phynode; local
308 phynode = phynode_create(dev, &rk_emmcphy_phynode_class, &phy_init);
309 if (phynode
[all...]
H A Drk_typec_phy.c141 static int rk_typec_phy_enable(struct phynode *phynode, bool enable);
142 static int rk_typec_phy_get_mode(struct phynode *phy, int *mode);
143 static int rk_typec_phy_set_mode(struct phynode *phy, int mode);
188 rk_typec_phy_enable(struct phynode *phynode, bool enable) argument
196 dev = phynode_get_device(phynode);
197 phy = phynode_get_id(phynode);
291 rk_typec_phy_get_mode(struct phynode *phynode, in argument
310 rk_typec_phy_set_mode(struct phynode *phynode, int mode) argument
347 struct phynode *phynode; local
[all...]
H A Drk_pcie_phy.c235 rk_pcie_phy_enable(struct phynode *phynode, bool enable) argument
242 dev = phynode_get_device(phynode);
243 phy = phynode_get_id(phynode);
255 static int rk_pcie_phy_enable(struct phynode *phynode, bool enable);
284 struct phynode *phynode; local
330 phynode = phynode_create(dev, &rk_pcie_phy_phynode_class,
332 if (phynode
[all...]
/freebsd-13-stable/sys/dev/usb/controller/
H A Dusb_nop_xceiv.c66 static int usb_nop_xceiv_phy_enable(struct phynode *phy, bool enable);
77 usb_nop_xceiv_phy_enable(struct phynode *phynode, bool enable) argument
84 dev = phynode_get_device(phynode);
85 phy = phynode_get_id(phynode);
148 struct phynode *phynode; local
170 phynode = phynode_create(dev, &usb_nop_xceiv_phynode_class,
172 if (phynode == NULL) {
176 if (phynode_register(phynode)
[all...]
/freebsd-13-stable/sys/arm/nvidia/
H A Dtegra_usbphy.c299 static int usbphy_phy_enable(struct phynode *phy, bool enable);
561 usbphy_phy_enable(struct phynode *phy, bool enable)
712 struct phynode *phynode; local
817 phynode = phynode_create(dev, &usbphy_phynode_class, &phy_init);
818 if (phynode == NULL) {
822 if (phynode_register(phynode) == NULL) {
/freebsd-13-stable/sys/arm/nvidia/tegra124/
H A Dtegra124_xusbpadctl.c351 static int xusbpadctl_phy_enable(struct phynode *phy, bool enable);
689 xusbpadctl_phy_enable(struct phynode *phy, bool enable)
863 struct phynode *phynode; local
915 phynode = phynode_create(sc->dev, &xusbpadctl_phynode_class, &phy_init);
916 if (phynode == NULL) {
921 if (phynode_register(phynode) == NULL) {
/freebsd-13-stable/sys/arm64/nvidia/tegra210/
H A Dtegra210_xusbpadctl.c523 static int xusbpadctl_phy_enable(struct phynode *phy, bool enable);
1424 xusbpadctl_phy_enable(struct phynode *phy, bool enable)
1600 struct phynode *phynode; local
1653 phynode = phynode_create(sc->dev, &xusbpadctl_phynode_class, &phy_init);
1654 if (phynode == NULL) {
1659 if (phynode_register(phynode) == NULL) {

Completed in 210 milliseconds