Home
last modified time | relevance | path

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

/freebsd-12.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-12.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
/freebsd-12.1/sys/arm/allwinner/
H A Daw_usbphy.c312 awusbphy_phy_enable(struct phynode *phynode, bool enable) in awusbphy_phy_enable() argument
320 dev = phynode_get_device(phynode); in awusbphy_phy_enable()
321 phy = phynode_get_id(phynode); in awusbphy_phy_enable()
366 awusbphy_get_mode(struct phynode *phynode, int *mode) in awusbphy_get_mode() argument
371 dev = phynode_get_device(phynode); in awusbphy_get_mode()
380 awusbphy_set_mode(struct phynode *phynode, int mode) in awusbphy_set_mode() argument
388 dev = phynode_get_device(phynode); in awusbphy_set_mode()
389 phy = phynode_get_id(phynode); in awusbphy_set_mode()
449 struct phynode *phynode; in awusbphy_attach() local
469 if (phynode == NULL) { in awusbphy_attach()
[all …]
/freebsd-12.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-12.1/sys/arm/nvidia/
H A Dtegra_usbphy.c303 static int usbphy_phy_enable(struct phynode *phy, bool enable);
567 usbphy_phy_enable(struct phynode *phy, bool enable) in usbphy_phy_enable()
718 struct phynode *phynode; in usbphy_attach() local
823 phynode = phynode_create(dev, &usbphy_phynode_class, &phy_init); in usbphy_attach()
824 if (phynode == NULL) { in usbphy_attach()
828 if (phynode_register(phynode) == NULL) { in usbphy_attach()
/freebsd-12.1/sys/arm/nvidia/tegra124/
H A Dtegra124_xusbpadctl.c356 static int xusbpadctl_phy_enable(struct phynode *phy, bool enable);
695 xusbpadctl_phy_enable(struct phynode *phy, bool enable) in xusbpadctl_phy_enable()
869 struct phynode *phynode; in process_lane() local
921 phynode = phynode_create(sc->dev, &xusbpadctl_phynode_class, &phy_init); in process_lane()
922 if (phynode == NULL) { in process_lane()
927 if (phynode_register(phynode) == NULL) { in process_lane()