Home
last modified time | relevance | path

Searched refs:phy_status (Results 1 – 22 of 22) sorted by relevance

/linux/drivers/net/ethernet/intel/igc/
H A Digc_phy.c67 u16 i, phy_status; in igc_phy_has_link() local
75 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link()
86 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link()
89 if (phy_status & MII_SR_LINK_STATUS) in igc_phy_has_link()
398 u16 i, phy_status; in igc_wait_autoneg() local
403 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg()
406 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg()
409 if (phy_status & MII_SR_AUTONEG_COMPLETE) in igc_wait_autoneg()
/linux/drivers/phy/qualcomm/
H A Dphy-qcom-qmp-pcie.c4000 unsigned int phy_status; member
4298 .phy_status = PHYSTATUS,
4323 .phy_status = PHYSTATUS,
4350 .phy_status = PHYSTATUS,
4379 .phy_status = PHYSTATUS,
4420 .phy_status = PHYSTATUS,
4449 .phy_status = PHYSTATUS,
4477 .phy_status = PHYSTATUS,
4505 .phy_status = PHYSTATUS,
4533 .phy_status = PHYSTATUS,
[all …]
H A Dphy-qcom-qmp-pcie-multiphy.c57 unsigned int phy_status; member
167 .phy_status = PHYSTATUS_4_20,
185 .phy_status = PHYSTATUS_4_20,
203 .phy_status = PHYSTATUS_4_20,
340 ret = readl_poll_timeout(status, val, !(val & cfg->phy_status), 200, in qmp_pcie_power_on()
/linux/drivers/net/wireless/realtek/rtw88/
H A Drtw8822b.c842 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument
847 u8 pwdb = GET_PHY_STAT_P0_PWDB(phy_status); in query_phy_status_page0()
858 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument
870 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1()
872 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1()
881 bw = GET_PHY_STAT_P1_RF_MODE(phy_status); in query_phy_status_page1()
883 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
884 pkt_stat->rx_power[RF_PATH_B] = GET_PHY_STAT_P1_PWDB_B(phy_status) - 110; in query_phy_status_page1()
893 pkt_stat->rx_evm[RF_PATH_A] = GET_PHY_STAT_P1_RXEVM_A(phy_status); in query_phy_status_page1()
894 pkt_stat->rx_evm[RF_PATH_B] = GET_PHY_STAT_P1_RXEVM_B(phy_status); in query_phy_status_page1()
[all …]
H A Drtw8821c.c615 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument
623 vga_idx = GET_PHY_STAT_P0_VGA(phy_status); in query_phy_status_page0()
624 lna_idx = FIELD_PREP(BIT_LNA_H_MASK, GET_PHY_STAT_P0_LNA_H(phy_status)) | in query_phy_status_page0()
625 FIELD_PREP(BIT_LNA_L_MASK, GET_PHY_STAT_P0_LNA_L(phy_status)); in query_phy_status_page0()
635 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument
643 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1()
645 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1()
654 bw = GET_PHY_STAT_P1_RF_MODE(phy_status); in query_phy_status_page1()
656 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
664 static void query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status() argument
[all …]
H A Drtw8822c.c2551 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument
2563 rx_power[RF_PATH_A] = GET_PHY_STAT_P0_PWDB_A(phy_status); in query_phy_status_page0()
2564 rx_power[RF_PATH_B] = GET_PHY_STAT_P0_PWDB_B(phy_status); in query_phy_status_page0()
2567 gain_a = GET_PHY_STAT_P0_GAIN_A(phy_status); in query_phy_status_page0()
2568 gain_b = GET_PHY_STAT_P0_GAIN_B(phy_status); in query_phy_status_page0()
2581 channel = GET_PHY_STAT_P0_CHANNEL(phy_status); in query_phy_status_page0()
2601 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument
2615 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1()
2617 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1()
2628 channel = GET_PHY_STAT_P1_CHANNEL(phy_status); in query_phy_status_page1()
[all …]
H A Drtw8812a.c58 static void rtw8812a_query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in rtw8812a_query_phy_status() argument
61 rtw88xxa_query_phy_status(rtwdev, phy_status, pkt_stat, in rtw8812a_query_phy_status()
H A Dmain.h641 bool phy_status; member
873 void (*query_phy_status)(struct rtw_dev *rtwdev, u8 *phy_status,
H A Drtw88xxa.c1519 void rtw88xxa_query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in rtw88xxa_query_phy_status() argument
1530 rpt = (struct rtw_jaguar_phy_status_rpt *)phy_status; in rtw88xxa_query_phy_status()
H A Drtw8814a.c1170 static void rtw8814a_query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in rtw8814a_query_phy_status() argument
1183 rpt = (struct rtw_jaguar_phy_status_rpt *)phy_status; in rtw8814a_query_phy_status()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_82598.c653 int phy_status = 0; in ixgbe_reset_hw_82598() local
704 phy_status = hw->phy.ops.init(hw); in ixgbe_reset_hw_82598()
705 if (phy_status == -EOPNOTSUPP) in ixgbe_reset_hw_82598()
706 return phy_status; in ixgbe_reset_hw_82598()
707 if (phy_status == -ENOENT) in ixgbe_reset_hw_82598()
773 if (phy_status) in ixgbe_reset_hw_82598()
774 status = phy_status; in ixgbe_reset_hw_82598()
/linux/drivers/scsi/mvsas/
H A Dmv_64xx.c582 (phy->phy_status & PHY_NEG_SPP_PHYS_LINK_RATE_MASK) >> in mvs_64xx_fix_phy_info()
586 (phy->phy_status & in mvs_64xx_fix_phy_info()
589 (phy->phy_status & in mvs_64xx_fix_phy_info()
612 if (((phy->phy_status & PHY_NEG_SPP_PHYS_LINK_RATE_MASK) >> in mvs_64xx_phy_work_around()
H A Dmv_94xx.c18 u32 phy_status; in mvs_94xx_detect_porttype() local
22 phy_status = ((reg & 0x3f0000) >> 16) & 0xff; in mvs_94xx_detect_porttype()
24 switch (phy_status) { in mvs_94xx_detect_porttype()
869 mv_dprintk("get all reg link rate is 0x%x\n", phy->phy_status); in mvs_94xx_fix_phy_info()
871 (phy->phy_status & PHY_NEG_SPP_PHYS_LINK_RATE_MASK) >> in mvs_94xx_fix_phy_info()
H A Dmv_sas.c992 phy->phy_status = mvs_is_phy_ready(mvi, i); in mvs_update_phyinfo()
995 if (phy->phy_status) { in mvs_update_phyinfo()
1828 phy->phy_status = mvs_is_phy_ready(mvi, phy_no); in mvs_int_port()
1830 if (phy->phy_status) { in mvs_int_port()
/linux/drivers/net/ethernet/intel/igb/
H A De1000_phy.c1592 u16 i, phy_status; in igb_wait_autoneg() local
1596 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igb_wait_autoneg()
1599 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igb_wait_autoneg()
1602 if (phy_status & MII_SR_AUTONEG_COMPLETE) in igb_wait_autoneg()
1626 u16 i, phy_status; in igb_phy_has_link() local
1633 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igb_phy_has_link()
1644 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igb_phy_has_link()
1647 if (phy_status & MII_SR_LINK_STATUS) in igb_phy_has_link()
/linux/drivers/net/ethernet/intel/e1000e/
H A Dphy.c1742 u16 i, phy_status; in e1000_wait_autoneg() local
1746 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000_wait_autoneg()
1749 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000_wait_autoneg()
1752 if (phy_status & BMSR_ANEGCOMPLETE) in e1000_wait_autoneg()
1776 u16 i, phy_status; in e1000e_phy_has_link_generic() local
1784 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000e_phy_has_link_generic()
1795 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000e_phy_has_link_generic()
1798 if (phy_status & BMSR_LSTATUS) { in e1000e_phy_has_link_generic()
H A Dnetdev.c1111 u16 phy_status, phy_1000t_status, phy_ext_status; in e1000_print_hw_hang() local
1143 e1e_rphy(hw, MII_BMSR, &phy_status); in e1000_print_hw_hang()
1168 phy_status, phy_1000t_status, phy_ext_status, pci_status); in e1000_print_hw_hang()
/linux/drivers/pci/controller/dwc/
H A Dpcie-spear13xx.c43 u32 phy_status; /* cr11 */ member
/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe.h884 void (*phy_status)(struct xgbe_prv_data *); member
H A Dxgbe-mdio.c1620 phy_if->phy_status = xgbe_phy_status; in xgbe_init_function_ptrs_phy()
H A Dxgbe-drv.c602 pdata->phy_if.phy_status(pdata); in xgbe_service()
/linux/drivers/net/ethernet/intel/e1000/
H A De1000_main.c4687 u16 phy_status; in e1000_smartspeed() local
4698 e1000_read_phy_reg(hw, PHY_1000T_STATUS, &phy_status); in e1000_smartspeed()
4699 if (!(phy_status & SR_1000T_MS_CONFIG_FAULT)) in e1000_smartspeed()
4701 e1000_read_phy_reg(hw, PHY_1000T_STATUS, &phy_status); in e1000_smartspeed()
4702 if (!(phy_status & SR_1000T_MS_CONFIG_FAULT)) in e1000_smartspeed()