Home
last modified time | relevance | path

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

/freebsd/sys/arm/allwinner/
H A Daw_usbphy.c146 struct resource * phy_ctrl; member
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()
461 bus_write_4(sc->phy_ctrl, PHY_CSR, val); in awusbphy_set_mode()
/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()
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()
627 *phy_ctrl &= ~MII_CR_SPEED_1000; 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/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()
2024 void e1000_phy_force_speed_duplex_setup(struct e1000_hw *hw, u16 *phy_ctrl) in e1000_phy_force_speed_duplex_setup() argument
2043 *phy_ctrl &= ~MII_CR_AUTO_NEG_EN; in e1000_phy_force_speed_duplex_setup()
2048 *phy_ctrl &= ~MII_CR_FULL_DUPLEX; in e1000_phy_force_speed_duplex_setup()
2052 *phy_ctrl |= MII_CR_FULL_DUPLEX; in e1000_phy_force_speed_duplex_setup()
2059 *phy_ctrl |= MII_CR_SPEED_100; in e1000_phy_force_speed_duplex_setup()
2060 *phy_ctrl &= ~MII_CR_SPEED_1000; 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/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/bwi/
H A Dif_bwi.c2917 uint16_t phy_ctrl; in bwi_encap() local
3003 phy_ctrl = __SHIFTIN(mac->mac_rf.rf_ant_mode, in bwi_encap()
3006 phy_ctrl |= BWI_TXH_PHY_C_OFDM; in bwi_encap()
3008 phy_ctrl |= BWI_TXH_PHY_C_SHPREAMBLE; in bwi_encap()
3017 hdr->txh_phy_ctrl = htole16(phy_ctrl); in bwi_encap()
3102 uint16_t phy_ctrl; in bwi_encap_raw() local
3185 phy_ctrl = __SHIFTIN(mac->mac_rf.rf_ant_mode, in bwi_encap_raw()
3188 phy_ctrl |= BWI_TXH_PHY_C_OFDM; in bwi_encap_raw()
3191 phy_ctrl |= BWI_TXH_PHY_C_SHPREAMBLE; in bwi_encap_raw()
3194 hdr->txh_phy_ctrl = htole16(phy_ctrl); in bwi_encap_raw()
/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";
H A Dsunxi-h3-h5.dtsi274 reg-names = "phy_ctrl",
H A Dsun4i-a10.dtsi506 reg-names = "phy_ctrl", "pmu1", "pmu2";
H A Dsun8i-a83t.dtsi643 reg-names = "phy_ctrl",
H A Dsun8i-r40.dtsi413 reg-names = "phy_ctrl",
H A Dsun6i-a31.dtsi527 reg-names = "phy_ctrl",
H A Dsun7i-a20.dtsi610 reg-names = "phy_ctrl", "pmu1", "pmu2";
/freebsd/sys/contrib/device-tree/src/arm/ti/omap/
H A Ddm814x.dtsi460 reg-names = "phy_ctrl", "wakeup";
H A Dam33xx-l4.dtsi333 reg-names = "phy_ctrl", "wakeup";
/freebsd/sys/contrib/device-tree/src/riscv/allwinner/
H A Dsunxi-d1s-t113.dtsi561 reg-names = "phy_ctrl",
/freebsd/sys/contrib/device-tree/src/arm64/allwinner/
H A Dsun50i-h616.dtsi703 reg-names = "phy_ctrl",
H A Dsun50i-h6.dtsi720 reg-names = "phy_ctrl",
H A Dsun50i-a64.dtsi630 reg-names = "phy_ctrl",