| /freebsd-14.2/sys/dev/extres/phy/ |
| H A D | phy.c | 116 struct phynode *phynode; in phynode_create() local 321 phy->phynode = phynode; in phy_create() 336 struct phynode *phynode; in phy_enable() local 338 phynode = phy->phynode; in phy_enable() 354 struct phynode *phynode; in phy_disable() local 356 phynode = phy->phynode; in phy_disable() 374 struct phynode *phynode; in phy_set_mode() local 376 phynode = phy->phynode; in phy_set_mode() 390 struct phynode *phynode; in phy_status() local 392 phynode = phy->phynode; in phy_status() [all …]
|
| H A D | phy_usb.c | 52 struct phynode * 57 struct phynode *phynode; in phynode_usb_create() local 65 return (phynode); in phynode_usb_create() 68 struct phynode 69 *phynode_usb_register(struct phynode *phynode) in phynode_usb_register() argument 85 phynode_usb_set_mode(struct phynode *phynode, int usb_mode) in phynode_usb_set_mode() argument 101 phynode_usb_get_mode(struct phynode *phynode, int *usb_mode) in phynode_usb_get_mode() argument 121 struct phynode *phynode; in phy_usb_set_mode() local 123 phynode = phy->phynode; in phy_usb_set_mode() 136 struct phynode *phynode; in phy_usb_get_mode() local [all …]
|
| H A D | phy.h | 118 struct phynode *phynode_create(device_t pdev, phynode_class_t phynode_class, 120 struct phynode *phynode_register(struct phynode *phynode); 121 void *phynode_get_softc(struct phynode *phynode); 122 device_t phynode_get_device(struct phynode *phynode); 123 intptr_t phynode_get_id(struct phynode *phynode); 124 int phynode_enable(struct phynode *phynode); 125 int phynode_disable(struct phynode *phynode); 126 int phynode_set_mode(struct phynode *phynode, phy_mode_t mode, 128 int phynode_status(struct phynode *phynode, int *status); 130 phandle_t phynode_get_ofw_node(struct phynode *phynode);
|
| H A D | phy_usb.h | 63 struct phynode *phynode_usb_create(device_t pdev, phynode_class_t phynode_class, 65 struct phynode *phynode_usb_register(struct phynode *phynode); 76 int phynode_usb_set_mode(struct phynode *phynode, int usb_mode); 77 int phynode_usb_get_mode(struct phynode *phynode, int *usb_mode);
|
| H A D | phynode_if.m | 26 INTERFACE phynode; 31 struct phynode; 39 struct phynode *phynode; 47 struct phynode *phynode; 56 struct phynode *phynode; 66 struct phynode *phynode;
|
| H A D | phy_internal.h | 31 struct phynode; 33 typedef TAILQ_HEAD(phynode_list, phynode) phynode_list_t; 39 struct phynode { struct 42 TAILQ_ENTRY(phynode) phylist_link; /* Global list entry */ 62 struct phynode *phynode; member
|
| H A D | phynode_usb_if.m | 31 struct phynode; 39 struct phynode *phynode; 48 struct phynode *phynode;
|
| /freebsd-14.2/sys/dev/mii/ |
| H A D | mii_fdt.c | 103 phandle_t ports, phynode, child; in mii_fdt_lookup_phy() local 107 phynode = mii_fdt_get_phynode(node); in mii_fdt_lookup_phy() 108 if (phynode != -1) in mii_fdt_lookup_phy() 109 return (phynode); in mii_fdt_lookup_phy() 125 phynode = mii_fdt_get_phynode(child); in mii_fdt_lookup_phy() 126 if (phynode <= 0) in mii_fdt_lookup_phy() 133 return (phynode); in mii_fdt_lookup_phy() 209 if (cfg->phynode == -1) in mii_fdt_get_config() 215 if (ofw_bus_node_is_compatible(cfg->phynode, in mii_fdt_get_config() 225 if (OF_hasprop(cfg->phynode, "eee-broken-100tx")) in mii_fdt_get_config() [all …]
|
| H A D | mii_fdt.h | 39 phandle_t phynode; /* Node (not xref) of PHY */ member
|
| H A D | vscphy.c | 128 if (OF_getencprop(cfg->phynode, "rx-delay", &val, sizeof(val)) > 0) in vscphy_fdt_get_config() 130 if (OF_getencprop(cfg->phynode, "tx-delay", &val, sizeof(val)) > 0) in vscphy_fdt_get_config()
|
| H A D | micphy.c | 275 ksz9031_load_values(sc, cfg->phynode); in micphy_attach() 277 ksz9021_load_values(sc, cfg->phynode); in micphy_attach()
|
| /freebsd-14.2/sys/arm64/rockchip/ |
| H A D | rk_usb2phy.c | 98 static int rk_usb2phy_enable(struct phynode *phynode, bool enable); 119 rk_usb2phy_enable(struct phynode *phynode, bool enable) in rk_usb2phy_enable() argument 126 dev = phynode_get_device(phynode); in rk_usb2phy_enable() 127 phy = phynode_get_id(phynode); in rk_usb2phy_enable() 151 rk_usb2phy_get_mode(struct phynode *phynode, int *mode) in rk_usb2phy_get_mode() argument 157 dev = phynode_get_device(phynode); in rk_usb2phy_get_mode() 158 phy = phynode_get_id(phynode); in rk_usb2phy_get_mode() 170 rk_usb2phy_set_mode(struct phynode *phynode, int mode) in rk_usb2phy_set_mode() argument 177 phy = phynode_get_id(phynode); in rk_usb2phy_set_mode() 347 struct phynode *phynode; in rk_usb2phy_attach() local [all …]
|
| H A D | rk_typec_phy.c | 139 static int rk_typec_phy_enable(struct phynode *phynode, bool enable); 186 rk_typec_phy_enable(struct phynode *phynode, bool enable) in rk_typec_phy_enable() argument 194 dev = phynode_get_device(phynode); in rk_typec_phy_enable() 195 phy = phynode_get_id(phynode); in rk_typec_phy_enable() 289 rk_typec_phy_get_mode(struct phynode *phynode, int *mode) in rk_typec_phy_get_mode() argument 295 dev = phynode_get_device(phynode); in rk_typec_phy_get_mode() 296 phy = phynode_get_id(phynode); in rk_typec_phy_get_mode() 308 rk_typec_phy_set_mode(struct phynode *phynode, int mode) in rk_typec_phy_set_mode() argument 315 phy = phynode_get_id(phynode); in rk_typec_phy_set_mode() 345 struct phynode *phynode; in rk_typec_phy_attach() local [all …]
|
| H A D | rk_usbphy.c | 92 rk_phynode_phy_enable(struct phynode *phy, bool enable) in rk_phynode_phy_enable() 109 rk_phynode_get_mode(struct phynode *phynode, int *mode) in rk_phynode_get_mode() argument 113 sc = phynode_get_softc(phynode); in rk_phynode_get_mode() 119 rk_phynode_set_mode(struct phynode *phynode, int mode) in rk_phynode_set_mode() argument 123 sc = phynode_get_softc(phynode); in rk_phynode_set_mode() 143 struct phynode *phynode; in rk_usbphy_init_phy() local 216 phynode = phynode_create(sc->dev, &rk_phynode_class, &phy_init); in rk_usbphy_init_phy() 217 if (phynode == NULL) { in rk_usbphy_init_phy() 222 phy_sc = phynode_get_softc(phynode); in rk_usbphy_init_phy() 228 if (phynode_register(phynode) == NULL) { in rk_usbphy_init_phy()
|
| H A D | rk3568_pciephy.c | 77 struct phynode *phynode; member 114 rk3568_pciephy_enable(struct phynode *phynode, bool enable) in rk3568_pciephy_enable() argument 116 device_t dev = phynode_get_device(phynode); in rk3568_pciephy_enable() 166 struct phynode *phynode; in rk3568_pciephy_attach() local 239 if (!(phynode = phynode_create(dev, &rk3568_pciephy_phynode_class, in rk3568_pciephy_attach() 244 if (!phynode_register(phynode)) { in rk3568_pciephy_attach() 248 sc->phynode = phynode; in rk3568_pciephy_attach()
|
| H A D | rk3399_emmcphy.c | 117 static int rk_emmcphy_enable(struct phynode *phynode, bool enable); 127 rk_emmcphy_enable(struct phynode *phynode, bool enable) in rk_emmcphy_enable() argument 136 dev = phynode_get_device(phynode); in rk_emmcphy_enable() 137 phy = phynode_get_id(phynode); in rk_emmcphy_enable() 274 struct phynode *phynode; in rk_emmcphy_attach() local 306 phynode = phynode_create(dev, &rk_emmcphy_phynode_class, &phy_init); in rk_emmcphy_attach() 307 if (phynode == NULL) { in rk_emmcphy_attach() 311 if (phynode_register(phynode) == NULL) { in rk_emmcphy_attach() 316 phy = phynode_get_id(phynode); in rk_emmcphy_attach()
|
| H A D | rk3568_combphy.c | 65 struct phynode *phynode; member 165 rk3568_combphy_enable(struct phynode *phynode, bool enable) in rk3568_combphy_enable() argument 167 device_t dev = phynode_get_device(phynode); in rk3568_combphy_enable() 372 struct phynode *phynode; in rk3568_combphy_attach() local 425 if (!(phynode = phynode_create(dev, &rk3568_combphy_phynode_class, in rk3568_combphy_attach() 430 if (!phynode_register(phynode)) { in rk3568_combphy_attach() 434 sc->phynode = phynode; in rk3568_combphy_attach()
|
| H A D | rk_pcie_phy.c | 233 rk_pcie_phy_enable(struct phynode *phynode, bool enable) in rk_pcie_phy_enable() argument 240 dev = phynode_get_device(phynode); in rk_pcie_phy_enable() 241 phy = phynode_get_id(phynode); in rk_pcie_phy_enable() 281 struct phynode *phynode; in rk_pcie_phy_attach() local 334 phynode = phynode_create(dev, &rk_pcie_phy_phynode_class, in rk_pcie_phy_attach() 336 if (phynode == NULL) { in rk_pcie_phy_attach() 341 if (phynode_register(phynode) == NULL) { in rk_pcie_phy_attach()
|
| /freebsd-14.2/sys/arm/allwinner/ |
| H A D | aw_usb3phy.c | 96 static int awusb3phy_set_mode(struct phynode *phy, int mode); 111 awusb3phy_phy_enable(struct phynode *phynode, bool enable) in awusb3phy_phy_enable() argument 118 dev = phynode_get_device(phynode); in awusb3phy_phy_enable() 177 awusb3phy_get_mode(struct phynode *phynode, int *mode) in awusb3phy_get_mode() argument 182 dev = phynode_get_device(phynode); in awusb3phy_get_mode() 191 awusb3phy_set_mode(struct phynode *phynode, int mode) in awusb3phy_set_mode() argument 196 dev = phynode_get_device(phynode); in awusb3phy_set_mode() 223 struct phynode *phynode; in awusb3phy_attach() local 264 phynode = phynode_create(dev, &awusb3phy_phynode_class, in awusb3phy_attach() 266 if (phynode == NULL) { in awusb3phy_attach() [all …]
|
| H A D | aw_usbphy.c | 334 awusbphy_phy_enable(struct phynode *phynode, bool enable) in awusbphy_phy_enable() argument 342 dev = phynode_get_device(phynode); in awusbphy_phy_enable() 343 phy = phynode_get_id(phynode); in awusbphy_phy_enable() 389 awusbphy_get_mode(struct phynode *phynode, int *mode) in awusbphy_get_mode() argument 394 dev = phynode_get_device(phynode); in awusbphy_get_mode() 403 awusbphy_set_mode(struct phynode *phynode, int mode) in awusbphy_set_mode() argument 411 dev = phynode_get_device(phynode); in awusbphy_set_mode() 412 phy = phynode_get_id(phynode); in awusbphy_set_mode() 475 struct phynode *phynode; in awusbphy_attach() local 495 if (phynode == NULL) { in awusbphy_attach() [all …]
|
| /freebsd-14.2/sys/arm/qualcomm/ |
| H A D | ipq4018_usb_ss_phy.c | 66 ipq4018_usb_ss_phynode_phy_enable(struct phynode *phynode, bool enable) in ipq4018_usb_ss_phynode_phy_enable() argument 72 dev = phynode_get_device(phynode); in ipq4018_usb_ss_phynode_phy_enable() 73 sc = phynode_get_softc(phynode); in ipq4018_usb_ss_phynode_phy_enable() 113 struct phynode *phynode; in ipq4018_usb_ss_usbphy_init_phy() local 130 phynode = phynode_create(sc->dev, &ipq4018_usb_ss_phynode_class, in ipq4018_usb_ss_usbphy_init_phy() 132 if (phynode == NULL) { in ipq4018_usb_ss_usbphy_init_phy() 137 phy_sc = phynode_get_softc(phynode); in ipq4018_usb_ss_usbphy_init_phy() 140 if (phynode_register(phynode) == NULL) { in ipq4018_usb_ss_usbphy_init_phy() 145 (void) ipq4018_usb_ss_phynode_phy_enable(phynode, true); in ipq4018_usb_ss_usbphy_init_phy()
|
| H A D | ipq4018_usb_hs_phy.c | 67 ipq4018_usb_hs_phynode_phy_enable(struct phynode *phynode, bool enable) in ipq4018_usb_hs_phynode_phy_enable() argument 73 dev = phynode_get_device(phynode); in ipq4018_usb_hs_phynode_phy_enable() 74 sc = phynode_get_softc(phynode); in ipq4018_usb_hs_phynode_phy_enable() 125 struct phynode *phynode; in ipq4018_usb_hs_usbphy_init_phy() local 147 phynode = phynode_create(sc->dev, &ipq4018_usb_hs_phynode_class, in ipq4018_usb_hs_usbphy_init_phy() 149 if (phynode == NULL) { in ipq4018_usb_hs_usbphy_init_phy() 154 phy_sc = phynode_get_softc(phynode); in ipq4018_usb_hs_usbphy_init_phy() 158 if (phynode_register(phynode) == NULL) { in ipq4018_usb_hs_usbphy_init_phy() 163 (void) ipq4018_usb_hs_phynode_phy_enable(phynode, true); in ipq4018_usb_hs_usbphy_init_phy()
|
| /freebsd-14.2/sys/dev/usb/controller/ |
| H A D | usb_nop_xceiv.c | 64 static int usb_nop_xceiv_phy_enable(struct phynode *phy, bool enable); 75 usb_nop_xceiv_phy_enable(struct phynode *phynode, bool enable) in usb_nop_xceiv_phy_enable() argument 82 dev = phynode_get_device(phynode); in usb_nop_xceiv_phy_enable() 83 phy = phynode_get_id(phynode); in usb_nop_xceiv_phy_enable() 146 struct phynode *phynode; in usb_nop_xceiv_attach() local 168 phynode = phynode_create(dev, &usb_nop_xceiv_phynode_class, in usb_nop_xceiv_attach() 170 if (phynode == NULL) { in usb_nop_xceiv_attach() 174 if (phynode_register(phynode) == NULL) { in usb_nop_xceiv_attach()
|
| /freebsd-14.2/sys/arm/nvidia/ |
| H A D | tegra_usbphy.c | 297 static int usbphy_phy_enable(struct phynode *phy, bool enable); 559 usbphy_phy_enable(struct phynode *phy, bool enable) in usbphy_phy_enable() 710 struct phynode *phynode; in usbphy_attach() local 815 phynode = phynode_create(dev, &usbphy_phynode_class, &phy_init); in usbphy_attach() 816 if (phynode == NULL) { in usbphy_attach() 820 if (phynode_register(phynode) == NULL) { in usbphy_attach()
|
| /freebsd-14.2/sys/arm/nvidia/tegra124/ |
| H A D | tegra124_xusbpadctl.c | 349 static int xusbpadctl_phy_enable(struct phynode *phy, bool enable); 687 xusbpadctl_phy_enable(struct phynode *phy, bool enable) in xusbpadctl_phy_enable() 861 struct phynode *phynode; in process_lane() local 913 phynode = phynode_create(sc->dev, &xusbpadctl_phynode_class, &phy_init); in process_lane() 914 if (phynode == NULL) { in process_lane() 919 if (phynode_register(phynode) == NULL) { in process_lane()
|