Home
last modified time | relevance | path

Searched refs:phynode (Results 1 – 22 of 22) sorted by relevance

/freebsd-13.1/sys/dev/extres/phy/
H A Dphy.c116 struct phynode *phynode; in phynode_create() local
305 phy->phynode = phynode; in phy_create()
320 struct phynode *phynode; in phy_enable() local
322 phynode = phy->phynode; in phy_enable()
338 struct phynode *phynode; in phy_disable() local
340 phynode = phy->phynode; in phy_disable()
358 struct phynode *phynode; in phy_status() local
360 phynode = phy->phynode; in phy_status()
374 struct phynode *phynode; in phy_get_by_id() local
392 struct phynode *phynode; in phy_release() local
[all …]
H A Dphy_usb.c55 struct phynode *
60 struct phynode *phynode; in phynode_usb_create() local
68 return (phynode); in phynode_usb_create()
71 struct phynode
72 *phynode_usb_register(struct phynode *phynode) in phynode_usb_register() argument
88 phynode_usb_set_mode(struct phynode *phynode, int usb_mode) in phynode_usb_set_mode() argument
104 phynode_usb_get_mode(struct phynode *phynode, int *usb_mode) in phynode_usb_get_mode() argument
124 struct phynode *phynode; in phy_usb_set_mode() local
126 phynode = phy->phynode; in phy_usb_set_mode()
139 struct phynode *phynode; in phy_usb_get_mode() 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);
68 int phynode_enable(struct phynode *phynode);
69 int phynode_disable(struct phynode *phynode);
70 int phynode_status(struct phynode *phynode, int *status);
72 phandle_t phynode_get_ofw_node(struct phynode *phynode);
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; argument
H A Dphynode_if.m29 INTERFACE phynode;
32 struct phynode;
40 struct phynode *phynode;
48 struct phynode *phynode;
57 struct phynode *phynode;
H A Dphynode_usb_if.m32 struct phynode;
40 struct phynode *phynode;
49 struct phynode *phynode;
/freebsd-13.1/sys/arm/allwinner/
H A Daw_usb3phy.c112 awusb3phy_phy_enable(struct phynode *phynode, bool enable) in awusb3phy_phy_enable() argument
119 dev = phynode_get_device(phynode); in awusb3phy_phy_enable()
178 awusb3phy_get_mode(struct phynode *phynode, int *mode) in awusb3phy_get_mode() argument
183 dev = phynode_get_device(phynode); in awusb3phy_get_mode()
192 awusb3phy_set_mode(struct phynode *phynode, int mode) in awusb3phy_set_mode() argument
198 dev = phynode_get_device(phynode); in awusb3phy_set_mode()
199 phy = phynode_get_id(phynode); in awusb3phy_set_mode()
226 struct phynode *phynode; in awusb3phy_attach() local
267 phynode = phynode_create(dev, &awusb3phy_phynode_class, in awusb3phy_attach()
269 if (phynode == NULL) { in awusb3phy_attach()
[all …]
H A Daw_usbphy.c338 awusbphy_phy_enable(struct phynode *phynode, bool enable) in awusbphy_phy_enable() argument
346 dev = phynode_get_device(phynode); in awusbphy_phy_enable()
347 phy = phynode_get_id(phynode); in awusbphy_phy_enable()
393 awusbphy_get_mode(struct phynode *phynode, int *mode) in awusbphy_get_mode() argument
398 dev = phynode_get_device(phynode); in awusbphy_get_mode()
407 awusbphy_set_mode(struct phynode *phynode, int mode) in awusbphy_set_mode() argument
415 dev = phynode_get_device(phynode); in awusbphy_set_mode()
416 phy = phynode_get_id(phynode); in awusbphy_set_mode()
479 struct phynode *phynode; in awusbphy_attach() local
499 if (phynode == NULL) { in awusbphy_attach()
[all …]
/freebsd-13.1/sys/arm64/rockchip/
H A Drk_usb2phy.c94 static int rk_usb2phy_enable(struct phynode *phynode, bool enable);
115 rk_usb2phy_enable(struct phynode *phynode, bool enable) in rk_usb2phy_enable() argument
122 dev = phynode_get_device(phynode); in rk_usb2phy_enable()
123 phy = phynode_get_id(phynode); in rk_usb2phy_enable()
147 rk_usb2phy_get_mode(struct phynode *phynode, int *mode) in rk_usb2phy_get_mode() argument
153 dev = phynode_get_device(phynode); in rk_usb2phy_get_mode()
154 phy = phynode_get_id(phynode); in rk_usb2phy_get_mode()
166 rk_usb2phy_set_mode(struct phynode *phynode, int mode) in rk_usb2phy_set_mode() argument
173 phy = phynode_get_id(phynode); in rk_usb2phy_set_mode()
341 struct phynode *phynode; in rk_usb2phy_attach() local
[all …]
H A Drk_typec_phy.c141 static int rk_typec_phy_enable(struct phynode *phynode, bool enable);
188 rk_typec_phy_enable(struct phynode *phynode, bool enable) in rk_typec_phy_enable() argument
196 dev = phynode_get_device(phynode); in rk_typec_phy_enable()
197 phy = phynode_get_id(phynode); in rk_typec_phy_enable()
291 rk_typec_phy_get_mode(struct phynode *phynode, int *mode) in rk_typec_phy_get_mode() argument
297 dev = phynode_get_device(phynode); in rk_typec_phy_get_mode()
298 phy = phynode_get_id(phynode); in rk_typec_phy_get_mode()
310 rk_typec_phy_set_mode(struct phynode *phynode, int mode) in rk_typec_phy_set_mode() argument
317 phy = phynode_get_id(phynode); in rk_typec_phy_set_mode()
347 struct phynode *phynode; in rk_typec_phy_attach() local
[all …]
H A Drk_usbphy.c94 rk_phynode_phy_enable(struct phynode *phy, bool enable) in rk_phynode_phy_enable()
111 rk_phynode_get_mode(struct phynode *phynode, int *mode) in rk_phynode_get_mode() argument
115 sc = phynode_get_softc(phynode); in rk_phynode_get_mode()
121 rk_phynode_set_mode(struct phynode *phynode, int mode) in rk_phynode_set_mode() argument
125 sc = phynode_get_softc(phynode); in rk_phynode_set_mode()
145 struct phynode *phynode; in rk_usbphy_init_phy() local
218 phynode = phynode_create(sc->dev, &rk_phynode_class, &phy_init); in rk_usbphy_init_phy()
219 if (phynode == NULL) { in rk_usbphy_init_phy()
224 phy_sc = phynode_get_softc(phynode); in rk_usbphy_init_phy()
230 if (phynode_register(phynode) == NULL) { in rk_usbphy_init_phy()
H A Drk3399_emmcphy.c119 static int rk_emmcphy_enable(struct phynode *phynode, bool enable);
129 rk_emmcphy_enable(struct phynode *phynode, bool enable) in rk_emmcphy_enable() argument
138 dev = phynode_get_device(phynode); in rk_emmcphy_enable()
139 phy = phynode_get_id(phynode); in rk_emmcphy_enable()
276 struct phynode *phynode; in rk_emmcphy_attach() local
308 phynode = phynode_create(dev, &rk_emmcphy_phynode_class, &phy_init); in rk_emmcphy_attach()
309 if (phynode == NULL) { in rk_emmcphy_attach()
313 if (phynode_register(phynode) == NULL) { in rk_emmcphy_attach()
318 phy = phynode_get_id(phynode); in rk_emmcphy_attach()
H A Drk_pcie_phy.c235 rk_pcie_phy_enable(struct phynode *phynode, bool enable) in rk_pcie_phy_enable() argument
242 dev = phynode_get_device(phynode); in rk_pcie_phy_enable()
243 phy = phynode_get_id(phynode); in rk_pcie_phy_enable()
283 struct phynode *phynode; in rk_pcie_phy_attach() local
329 phynode = phynode_create(dev, &rk_pcie_phy_phynode_class, in rk_pcie_phy_attach()
331 if (phynode == NULL) { in rk_pcie_phy_attach()
336 if (phynode_register(phynode) == NULL) { in rk_pcie_phy_attach()
/freebsd-13.1/sys/dev/mii/
H A Dmii_fdt.c170 if ((cfg->phynode = mii_fdt_get_phynode(cfg->macnode)) == -1) in mii_fdt_get_config()
176 if (ofw_bus_node_is_compatible(cfg->phynode, in mii_fdt_get_config()
180 if (OF_hasprop(cfg->phynode, "broken-turn-around")) in mii_fdt_get_config()
182 if (OF_hasprop(cfg->phynode, "enet-phy-lane-swap")) in mii_fdt_get_config()
184 if (OF_hasprop(cfg->phynode, "enet-phy-lane-no-swap")) in mii_fdt_get_config()
186 if (OF_hasprop(cfg->phynode, "eee-broken-100tx")) in mii_fdt_get_config()
188 if (OF_hasprop(cfg->phynode, "eee-broken-1000t")) in mii_fdt_get_config()
190 if (OF_hasprop(cfg->phynode, "eee-broken-10gt")) in mii_fdt_get_config()
192 if (OF_hasprop(cfg->phynode, "eee-broken-1000kx")) in mii_fdt_get_config()
194 if (OF_hasprop(cfg->phynode, "eee-broken-10gkx4")) in mii_fdt_get_config()
[all …]
H A Dvscphy.c113 if (OF_getencprop(cfg->phynode, "rx-delay", &val, sizeof(val)) > 0) in vscphy_fdt_get_config()
115 if (OF_getencprop(cfg->phynode, "tx-delay", &val, sizeof(val)) > 0) in vscphy_fdt_get_config()
H A Dmii_fdt.h41 phandle_t phynode; /* Node (not xref) of PHY */ member
H A Dmicphy.c279 ksz9031_load_values(sc, cfg->phynode); in micphy_attach()
281 ksz9021_load_values(sc, cfg->phynode); in micphy_attach()
/freebsd-13.1/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) in usb_nop_xceiv_phy_enable() argument
84 dev = phynode_get_device(phynode); in usb_nop_xceiv_phy_enable()
85 phy = phynode_get_id(phynode); in usb_nop_xceiv_phy_enable()
148 struct phynode *phynode; in usb_nop_xceiv_attach() local
170 phynode = phynode_create(dev, &usb_nop_xceiv_phynode_class, in usb_nop_xceiv_attach()
172 if (phynode == NULL) { in usb_nop_xceiv_attach()
176 if (phynode_register(phynode) == NULL) { in usb_nop_xceiv_attach()
/freebsd-13.1/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) in usbphy_phy_enable()
712 struct phynode *phynode; in usbphy_attach() local
817 phynode = phynode_create(dev, &usbphy_phynode_class, &phy_init); in usbphy_attach()
818 if (phynode == NULL) { in usbphy_attach()
822 if (phynode_register(phynode) == NULL) { in usbphy_attach()
/freebsd-13.1/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) in xusbpadctl_phy_enable()
863 struct phynode *phynode; in process_lane() local
915 phynode = phynode_create(sc->dev, &xusbpadctl_phynode_class, &phy_init); in process_lane()
916 if (phynode == NULL) { in process_lane()
921 if (phynode_register(phynode) == NULL) { in process_lane()
/freebsd-13.1/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) in xusbpadctl_phy_enable()
1600 struct phynode *phynode; in process_lane() local
1653 phynode = phynode_create(sc->dev, &xusbpadctl_phynode_class, &phy_init); in process_lane()
1654 if (phynode == NULL) { in process_lane()
1659 if (phynode_register(phynode) == NULL) { in process_lane()