/freebsd/sys/arm/allwinner/ |
H A D | aw_usbphy.c | 146 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 D | igc_phy.c | 474 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 D | igc_phy.h | 19 void igc_phy_force_speed_duplex_setup(struct igc_hw *hw, u16 *phy_ctrl);
|
/freebsd/sys/contrib/device-tree/Bindings/phy/ |
H A D | allwinner,suniv-f1c100s-usb-phy.yaml | 25 const: phy_ctrl 76 reg-names = "phy_ctrl";
|
H A D | allwinner,sun8i-v3s-usb-phy.yaml | 27 - const: phy_ctrl 81 reg-names = "phy_ctrl",
|
H A D | allwinner,sun5i-a13-usb-phy.yaml | 27 - const: phy_ctrl 86 reg-names = "phy_ctrl", "pmu1";
|
H A D | allwinner,sun50i-a64-usb-phy.yaml | 30 - const: phy_ctrl 95 reg-names = "phy_ctrl",
|
H A D | allwinner,sun50i-h6-usb-phy.yaml | 28 - const: phy_ctrl 93 reg-names = "phy_ctrl",
|
H A D | allwinner,sun8i-a23-usb-phy.yaml | 29 - const: phy_ctrl 91 reg-names = "phy_ctrl", "pmu1";
|
H A D | allwinner,sun4i-a10-usb-phy.yaml | 30 - const: phy_ctrl 95 reg-names = "phy_ctrl", "pmu1", "pmu2";
|
H A D | allwinner,sun6i-a31-usb-phy.yaml | 28 - const: phy_ctrl 100 reg-names = "phy_ctrl",
|
H A D | allwinner,sun8i-r40-usb-phy.yaml | 29 - const: phy_ctrl 103 reg-names = "phy_ctrl",
|
H A D | allwinner,sun8i-a83t-usb-phy.yaml | 28 - const: phy_ctrl 102 reg-names = "phy_ctrl",
|
H A D | allwinner,sun8i-h3-usb-phy.yaml | 32 - const: phy_ctrl 141 reg-names = "phy_ctrl",
|
/freebsd/sys/contrib/device-tree/Bindings/usb/ |
H A D | am33xx-usb.txt | 17 - reg-names: "phy_ctrl" for the "USB control registers" and "wakeup" for 91 reg-names = "phy_ctrl", "wakeup";
|
/freebsd/sys/dev/e1000/ |
H A D | e1000_phy.c | 1638 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 D | e1000_ich8lan.c | 3242 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 D | e1000_phy.h | 70 void e1000_phy_force_speed_duplex_setup(struct e1000_hw *hw, u16 *phy_ctrl);
|
/freebsd/sys/contrib/device-tree/src/arm/allwinner/ |
H A D | sun8i-a23.dtsi | 103 reg-names = "phy_ctrl", "pmu1";
|
H A D | suniv-f1c100s.dtsi | 153 reg-names = "phy_ctrl";
|
H A D | sun8i-a33.dtsi | 431 reg-names = "phy_ctrl", "pmu1";
|
H A D | sun8i-v3s.dtsi | 312 reg-names = "phy_ctrl",
|
H A D | sun5i.dtsi | 383 reg-names = "phy_ctrl", "pmu1";
|
/freebsd/sys/dev/bwi/ |
H A D | if_bwi.c | 2917 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 D | dm814x.dtsi | 460 reg-names = "phy_ctrl", "wakeup";
|