Home
last modified time | relevance | path

Searched full:phy_ctrl (Results 1 – 25 of 36) sorted by relevance

12

/freebsd/sys/arm/allwinner/
H A Daw_usbphy.c146 struct resource * phy_ctrl; member
234 /* Get phy_ctrl region */ in awusbphy_init()
235 if (ofw_bus_find_string_index(node, "reg-names", "phy_ctrl", &rid) != 0) { in awusbphy_init()
239 sc->phy_ctrl = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in awusbphy_init()
241 if (sc->phy_ctrl == NULL) { in awusbphy_init()
300 val = bus_read_4(sc->phy_ctrl, PHY_CSR); in awusbphy_init()
307 bus_write_4(sc->phy_ctrl, PHY_CSR, val); in awusbphy_init()
438 val = bus_read_4(sc->phy_ctrl, PHY_CSR); in awusbphy_set_mode()
450 CLR4(sc->phy_ctrl, OTG_PHY_CFG, OTG_PHY_ROUTE_OTG); in awusbphy_set_mode()
455 SET4(sc->phy_ctrl, OTG_PHY_CFG, OTG_PHY_ROUTE_OTG); in awusbphy_set_mode()
[all …]
/freebsd/sys/dev/igc/
H A Digc_phy.c474 u16 phy_ctrl; in igc_copper_link_autoneg() local
500 ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_ctrl); in igc_copper_link_autoneg()
504 phy_ctrl |= (MII_CR_AUTO_NEG_EN | MII_CR_RESTART_AUTO_NEG); in igc_copper_link_autoneg()
505 ret_val = phy->ops.write_reg(hw, PHY_CONTROL, phy_ctrl); in igc_copper_link_autoneg()
582 * @phy_ctrl: pointer to current value of PHY_CONTROL
591 void igc_phy_force_speed_duplex_setup(struct igc_hw *hw, u16 *phy_ctrl) in igc_phy_force_speed_duplex_setup() argument
610 *phy_ctrl &= ~MII_CR_AUTO_NEG_EN; in igc_phy_force_speed_duplex_setup()
615 *phy_ctrl &= ~MII_CR_FULL_DUPLEX; in igc_phy_force_speed_duplex_setup()
619 *phy_ctrl |= MII_CR_FULL_DUPLEX; in igc_phy_force_speed_duplex_setup()
626 *phy_ctrl |= MII_CR_SPEED_100; in igc_phy_force_speed_duplex_setup()
[all …]
H A Digc_phy.h19 void igc_phy_force_speed_duplex_setup(struct igc_hw *hw, u16 *phy_ctrl);
/freebsd/sys/contrib/device-tree/Bindings/phy/
H A Dallwinner,suniv-f1c100s-usb-phy.yaml25 const: phy_ctrl
76 reg-names = "phy_ctrl";
H A Dallwinner,sun8i-v3s-usb-phy.yaml27 - const: phy_ctrl
81 reg-names = "phy_ctrl",
H A Dallwinner,sun5i-a13-usb-phy.yaml27 - const: phy_ctrl
86 reg-names = "phy_ctrl", "pmu1";
H A Dallwinner,sun50i-a64-usb-phy.yaml30 - const: phy_ctrl
95 reg-names = "phy_ctrl",
H A Dallwinner,sun50i-h6-usb-phy.yaml28 - const: phy_ctrl
93 reg-names = "phy_ctrl",
H A Dallwinner,sun8i-a23-usb-phy.yaml29 - const: phy_ctrl
91 reg-names = "phy_ctrl", "pmu1";
H A Dallwinner,sun4i-a10-usb-phy.yaml30 - const: phy_ctrl
95 reg-names = "phy_ctrl", "pmu1", "pmu2";
H A Dallwinner,sun6i-a31-usb-phy.yaml28 - const: phy_ctrl
100 reg-names = "phy_ctrl",
H A Dallwinner,sun8i-r40-usb-phy.yaml29 - const: phy_ctrl
103 reg-names = "phy_ctrl",
H A Dallwinner,sun8i-a83t-usb-phy.yaml28 - const: phy_ctrl
102 reg-names = "phy_ctrl",
H A Dallwinner,sun8i-h3-usb-phy.yaml32 - const: phy_ctrl
141 reg-names = "phy_ctrl",
/freebsd/sys/contrib/device-tree/Bindings/usb/
H A Dam33xx-usb.txt17 - reg-names: "phy_ctrl" for the "USB control registers" and "wakeup" for
91 reg-names = "phy_ctrl", "wakeup";
/freebsd/sys/dev/e1000/
H A De1000_phy.c1638 u16 phy_ctrl; in e1000_copper_link_autoneg() local
1664 ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_ctrl); in e1000_copper_link_autoneg()
1668 phy_ctrl |= (MII_CR_AUTO_NEG_EN | MII_CR_RESTART_AUTO_NEG); in e1000_copper_link_autoneg()
1669 ret_val = phy->ops.write_reg(hw, PHY_CONTROL, phy_ctrl); in e1000_copper_link_autoneg()
2016 * @phy_ctrl: pointer to current value of PHY_CONTROL
2025 void e1000_phy_force_speed_duplex_setup(struct e1000_hw *hw, u16 *phy_ctrl) in e1000_phy_force_speed_duplex_setup() argument
2044 *phy_ctrl &= ~MII_CR_AUTO_NEG_EN; in e1000_phy_force_speed_duplex_setup()
2049 *phy_ctrl &= ~MII_CR_FULL_DUPLEX; in e1000_phy_force_speed_duplex_setup()
2053 *phy_ctrl |= MII_CR_FULL_DUPLEX; in e1000_phy_force_speed_duplex_setup()
2060 *phy_ctrl |= MII_CR_SPEED_100; in e1000_phy_force_speed_duplex_setup()
[all …]
H A De1000_ich8lan.c3242 u32 phy_ctrl; in e1000_set_d0_lplu_state_ich8lan() local
3251 phy_ctrl = E1000_READ_REG(hw, E1000_PHY_CTRL); in e1000_set_d0_lplu_state_ich8lan()
3254 phy_ctrl |= E1000_PHY_CTRL_D0A_LPLU; in e1000_set_d0_lplu_state_ich8lan()
3255 E1000_WRITE_REG(hw, E1000_PHY_CTRL, phy_ctrl); in e1000_set_d0_lplu_state_ich8lan()
3279 phy_ctrl &= ~E1000_PHY_CTRL_D0A_LPLU; in e1000_set_d0_lplu_state_ich8lan()
3280 E1000_WRITE_REG(hw, E1000_PHY_CTRL, phy_ctrl); in e1000_set_d0_lplu_state_ich8lan()
3338 u32 phy_ctrl; in e1000_set_d3_lplu_state_ich8lan() local
3344 phy_ctrl = E1000_READ_REG(hw, E1000_PHY_CTRL); in e1000_set_d3_lplu_state_ich8lan()
3347 phy_ctrl &= ~E1000_PHY_CTRL_NOND0A_LPLU; in e1000_set_d3_lplu_state_ich8lan()
3348 E1000_WRITE_REG(hw, E1000_PHY_CTRL, phy_ctrl); in e1000_set_d3_lplu_state_ich8lan()
[all …]
H A De1000_phy.h70 void e1000_phy_force_speed_duplex_setup(struct e1000_hw *hw, u16 *phy_ctrl);
/freebsd/sys/contrib/device-tree/src/arm/allwinner/
H A Dsun8i-a23.dtsi103 reg-names = "phy_ctrl", "pmu1";
H A Dsuniv-f1c100s.dtsi153 reg-names = "phy_ctrl";
H A Dsun8i-a33.dtsi431 reg-names = "phy_ctrl", "pmu1";
H A Dsun8i-v3s.dtsi312 reg-names = "phy_ctrl",
H A Dsun5i.dtsi383 reg-names = "phy_ctrl", "pmu1";
/freebsd/sys/dev/bwi/
H A Dif_bwi.c2917 uint16_t phy_ctrl; in bwi_encap() local
3008 phy_ctrl = __SHIFTIN(mac->mac_rf.rf_ant_mode, in bwi_encap()
3011 phy_ctrl |= BWI_TXH_PHY_C_OFDM; in bwi_encap()
3013 phy_ctrl |= BWI_TXH_PHY_C_SHPREAMBLE; in bwi_encap()
3022 hdr->txh_phy_ctrl = htole16(phy_ctrl); in bwi_encap()
3107 uint16_t phy_ctrl; in bwi_encap_raw() local
3190 phy_ctrl = __SHIFTIN(mac->mac_rf.rf_ant_mode, in bwi_encap_raw()
3193 phy_ctrl |= BWI_TXH_PHY_C_OFDM; in bwi_encap_raw()
3196 phy_ctrl |= BWI_TXH_PHY_C_SHPREAMBLE; in bwi_encap_raw()
3199 hdr->txh_phy_ctrl = htole16(phy_ctrl); in bwi_encap_raw()
/freebsd/sys/contrib/device-tree/src/arm/ti/omap/
H A Ddm814x.dtsi460 reg-names = "phy_ctrl", "wakeup";

12