Home
last modified time | relevance | path

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

12

/freebsd/sys/dev/phy/
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) in phynode_method_init() argument
88 phynode_method_enable(struct phynode *phynode, bool enable) in phynode_method_enable() argument
98 phynode_method_status(struct phynode *phynode, int *status) in phynode_method_status() argument
112 struct phynode *
116 struct phynode *phynode; in phynode_create() local
120 phynode = malloc(sizeof(struct phynode), M_PHY, M_WAITOK | M_ZERO); in phynode_create()
[all …]
H A Dphy_usb.c51 struct phynode *
56 struct phynode *phynode; in phynode_usb_create() local
59 phynode = phynode_create(pdev, phynode_class, &def->phynode_init_def); in phynode_usb_create()
60 if (phynode == NULL) in phynode_usb_create()
62 sc = phynode_get_softc(phynode); in phynode_usb_create()
64 return (phynode); in phynode_usb_create()
67 struct phynode
68 *phynode_usb_register(struct phynode *phynode) in phynode_usb_register() argument
71 return (phynode_register(phynode)); in phynode_usb_register()
84 phynode_usb_set_mode(struct phynode *phynode, int usb_mode) in phynode_usb_set_mode() argument
[all …]
H A Dphy.h119 struct phynode *phynode_create(device_t pdev, phynode_class_t phynode_class,
121 struct phynode *phynode_register(struct phynode *phynode);
122 void *phynode_get_softc(struct phynode *phynode);
123 device_t phynode_get_device(struct phynode *phynode);
124 intptr_t phynode_get_id(struct phynode *phynode);
125 int phynode_enable(struct phynode *phynode);
126 int phynode_disable(struct phynode *phynode);
127 int phynode_set_mode(struct phynode *phynode, phy_mode_t mode,
129 int phynode_status(struct phynode *phynode, int *status);
131 phandle_t phynode_get_ofw_node(struct phynode *phynode);
H A Dphy_usb.h63 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 Dphynode_if.m26 INTERFACE phynode;
31 struct phynode;
39 struct phynode *phynode;
47 struct phynode *phynode;
56 struct phynode *phynode;
66 struct phynode *phynode;
H A Dphy_internal.h31 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; argument
H A Dphynode_usb_if.m31 struct phynode;
39 struct phynode *phynode;
48 struct phynode *phynode;
/freebsd/sys/dev/mii/
H A Dmii_fdt.c103 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()
127 phynode = mii_fdt_get_phynode(child); in mii_fdt_lookup_phy()
128 if (phynode <= 0) in mii_fdt_lookup_phy()
131 if (OF_getencprop(phynode, "reg", &reg, sizeof(reg)) <= 0) in mii_fdt_lookup_phy()
135 return (phynode); in mii_fdt_lookup_phy()
210 cfg->phynode = mii_fdt_lookup_phy(cfg->macnode, ma->mii_phyno); in mii_fdt_get_config()
211 if (cfg->phynode == -1) in mii_fdt_get_config()
[all …]
H A Dmii_fdt.h39 phandle_t phynode; /* Node (not xref) of PHY */ member
H A Dvscphy.c128 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 Dmicphy.c275 ksz9031_load_values(sc, cfg->phynode); in micphy_attach()
277 ksz9021_load_values(sc, cfg->phynode); in micphy_attach()
/freebsd/sys/arm64/rockchip/
H A Drk_usb2phy.c97 static int rk_usb2phy_enable(struct phynode *phynode, bool enable);
98 static int rk_usb2phy_get_mode(struct phynode *phy, int *mode);
99 static int rk_usb2phy_set_mode(struct phynode *phy, int mode);
118 rk_usb2phy_enable(struct phynode *phynode, bool enable) in rk_usb2phy_enable() argument
125 dev = phynode_get_device(phynode); in rk_usb2phy_enable()
126 phy = phynode_get_id(phynode); in rk_usb2phy_enable()
150 rk_usb2phy_get_mode(struct phynode *phynode, int *mode) in rk_usb2phy_get_mode() argument
156 dev = phynode_get_device(phynode); in rk_usb2phy_get_mode()
157 phy = phynode_get_id(phynode); in rk_usb2phy_get_mode()
169 rk_usb2phy_set_mode(struct phynode *phynode, int mode) in rk_usb2phy_set_mode() argument
[all …]
H A Drk_typec_phy.c138 static int rk_typec_phy_enable(struct phynode *phynode, bool enable);
139 static int rk_typec_phy_get_mode(struct phynode *phy, int *mode);
140 static int rk_typec_phy_set_mode(struct phynode *phy, int mode);
185 rk_typec_phy_enable(struct phynode *phynode, bool enable) in rk_typec_phy_enable() argument
193 dev = phynode_get_device(phynode); in rk_typec_phy_enable()
194 phy = phynode_get_id(phynode); in rk_typec_phy_enable()
288 rk_typec_phy_get_mode(struct phynode *phynode, int *mode) in rk_typec_phy_get_mode() argument
294 dev = phynode_get_device(phynode); in rk_typec_phy_get_mode()
295 phy = phynode_get_id(phynode); in rk_typec_phy_get_mode()
307 rk_typec_phy_set_mode(struct phynode *phynode, int mode) in rk_typec_phy_set_mode() argument
[all …]
H A Drk_usbphy.c91 rk_phynode_phy_enable(struct phynode *phy, bool enable) in rk_phynode_phy_enable()
108 rk_phynode_get_mode(struct phynode *phynode, int *mode) in rk_phynode_get_mode() argument
112 sc = phynode_get_softc(phynode); in rk_phynode_get_mode()
118 rk_phynode_set_mode(struct phynode *phynode, int mode) in rk_phynode_set_mode() argument
122 sc = phynode_get_softc(phynode); in rk_phynode_set_mode()
142 struct phynode *phynode; in rk_usbphy_init_phy() local
215 phynode = phynode_create(sc->dev, &rk_phynode_class, &phy_init); in rk_usbphy_init_phy()
216 if (phynode == NULL) { in rk_usbphy_init_phy()
221 phy_sc = phynode_get_softc(phynode); in rk_usbphy_init_phy()
227 if (phynode_register(phynode) == NULL) { in rk_usbphy_init_phy()
H A Drk3568_pciephy.c77 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 Drk3399_emmcphy.c116 static int rk_emmcphy_enable(struct phynode *phynode, bool enable);
126 rk_emmcphy_enable(struct phynode *phynode, bool enable) in rk_emmcphy_enable() argument
135 dev = phynode_get_device(phynode); in rk_emmcphy_enable()
136 phy = phynode_get_id(phynode); in rk_emmcphy_enable()
273 struct phynode *phynode; in rk_emmcphy_attach() local
305 phynode = phynode_create(dev, &rk_emmcphy_phynode_class, &phy_init); in rk_emmcphy_attach()
306 if (phynode == NULL) { in rk_emmcphy_attach()
310 if (phynode_register(phynode) == NULL) { in rk_emmcphy_attach()
315 phy = phynode_get_id(phynode); in rk_emmcphy_attach()
H A Drk3568_combphy.c65 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 Drk_pcie_phy.c232 rk_pcie_phy_enable(struct phynode *phynode, bool enable) in rk_pcie_phy_enable() argument
239 dev = phynode_get_device(phynode); in rk_pcie_phy_enable()
240 phy = phynode_get_id(phynode); in rk_pcie_phy_enable()
280 struct phynode *phynode; in rk_pcie_phy_attach() local
333 phynode = phynode_create(dev, &rk_pcie_phy_phynode_class, in rk_pcie_phy_attach()
335 if (phynode == NULL) { in rk_pcie_phy_attach()
340 if (phynode_register(phynode) == NULL) { in rk_pcie_phy_attach()
/freebsd/sys/arm/allwinner/
H A Daw_usb3phy.c93 static int awusb3phy_phy_enable(struct phynode *phy, bool enable);
94 static int awusb3phy_get_mode(struct phynode *phy, int *mode);
95 static int awusb3phy_set_mode(struct phynode *phy, int mode);
110 awusb3phy_phy_enable(struct phynode *phynode, bool enable) in awusb3phy_phy_enable() argument
117 dev = phynode_get_device(phynode); in awusb3phy_phy_enable()
176 awusb3phy_get_mode(struct phynode *phynode, int *mode) in awusb3phy_get_mode() argument
181 dev = phynode_get_device(phynode); in awusb3phy_get_mode()
190 awusb3phy_set_mode(struct phynode *phynode, int mode) in awusb3phy_set_mode() argument
195 dev = phynode_get_device(phynode); in awusb3phy_set_mode()
222 struct phynode *phynode; in awusb3phy_attach() local
[all …]
H A Daw_usbphy.c158 static int awusbphy_phy_enable(struct phynode *phy, bool enable);
159 static int awusbphy_get_mode(struct phynode *phy, int *mode);
160 static int awusbphy_set_mode(struct phynode *phy, int mode);
342 awusbphy_phy_enable(struct phynode *phynode, bool enable) in awusbphy_phy_enable() argument
350 dev = phynode_get_device(phynode); in awusbphy_phy_enable()
351 phy = phynode_get_id(phynode); in awusbphy_phy_enable()
397 awusbphy_get_mode(struct phynode *phynode, int *mode) in awusbphy_get_mode() argument
402 dev = phynode_get_device(phynode); in awusbphy_get_mode()
411 awusbphy_set_mode(struct phynode *phynode, int mode) in awusbphy_set_mode() argument
419 dev = phynode_get_device(phynode); in awusbphy_set_mode()
[all …]
/freebsd/sys/arm/qualcomm/
H A Dipq4018_usb_ss_phy.c65 ipq4018_usb_ss_phynode_phy_enable(struct phynode *phynode, bool enable) in ipq4018_usb_ss_phynode_phy_enable() argument
71 dev = phynode_get_device(phynode); in ipq4018_usb_ss_phynode_phy_enable()
72 sc = phynode_get_softc(phynode); in ipq4018_usb_ss_phynode_phy_enable()
112 struct phynode *phynode; in ipq4018_usb_ss_usbphy_init_phy() local
129 phynode = phynode_create(sc->dev, &ipq4018_usb_ss_phynode_class, in ipq4018_usb_ss_usbphy_init_phy()
131 if (phynode == NULL) { in ipq4018_usb_ss_usbphy_init_phy()
136 phy_sc = phynode_get_softc(phynode); in ipq4018_usb_ss_usbphy_init_phy()
139 if (phynode_register(phynode) == NULL) { in ipq4018_usb_ss_usbphy_init_phy()
144 (void) ipq4018_usb_ss_phynode_phy_enable(phynode, true); in ipq4018_usb_ss_usbphy_init_phy()
H A Dipq4018_usb_hs_phy.c66 ipq4018_usb_hs_phynode_phy_enable(struct phynode *phynode, bool enable) in ipq4018_usb_hs_phynode_phy_enable() argument
72 dev = phynode_get_device(phynode); in ipq4018_usb_hs_phynode_phy_enable()
73 sc = phynode_get_softc(phynode); in ipq4018_usb_hs_phynode_phy_enable()
124 struct phynode *phynode; in ipq4018_usb_hs_usbphy_init_phy() local
146 phynode = phynode_create(sc->dev, &ipq4018_usb_hs_phynode_class, in ipq4018_usb_hs_usbphy_init_phy()
148 if (phynode == NULL) { in ipq4018_usb_hs_usbphy_init_phy()
153 phy_sc = phynode_get_softc(phynode); in ipq4018_usb_hs_usbphy_init_phy()
157 if (phynode_register(phynode) == NULL) { in ipq4018_usb_hs_usbphy_init_phy()
162 (void) ipq4018_usb_hs_phynode_phy_enable(phynode, true); in ipq4018_usb_hs_usbphy_init_phy()
/freebsd/sys/dev/usb/controller/
H A Dusb_nop_xceiv.c63 static int usb_nop_xceiv_phy_enable(struct phynode *phy, bool enable);
74 usb_nop_xceiv_phy_enable(struct phynode *phynode, bool enable) in usb_nop_xceiv_phy_enable() argument
81 dev = phynode_get_device(phynode); in usb_nop_xceiv_phy_enable()
82 phy = phynode_get_id(phynode); in usb_nop_xceiv_phy_enable()
145 struct phynode *phynode; in usb_nop_xceiv_attach() local
167 phynode = phynode_create(dev, &usb_nop_xceiv_phynode_class, in usb_nop_xceiv_attach()
169 if (phynode == NULL) { in usb_nop_xceiv_attach()
173 if (phynode_register(phynode) == NULL) { in usb_nop_xceiv_attach()
/freebsd/sys/arm/nvidia/
H A Dtegra_usbphy.c297 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/sys/arm/nvidia/tegra124/
H A Dtegra124_xusbpadctl.c348 static int xusbpadctl_phy_enable(struct phynode *phy, bool enable);
686 xusbpadctl_phy_enable(struct phynode *phy, bool enable) in xusbpadctl_phy_enable()
860 struct phynode *phynode; in process_lane() local
912 phynode = phynode_create(sc->dev, &xusbpadctl_phynode_class, &phy_init); in process_lane()
913 if (phynode == NULL) { in process_lane()
918 if (phynode_register(phynode) == NULL) { in process_lane()

12