Home
last modified time | relevance | path

Searched refs:phy_status (Results 1 - 25 of 53) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/
H A Digc_phy.c66 u16 i, phy_status; in igc_phy_has_link() local
74 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link()
85 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link()
88 if (phy_status & MII_SR_LINK_STATUS) in igc_phy_has_link()
411 u16 i, phy_status; in igc_wait_autoneg() local
416 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg()
419 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg()
422 if (phy_status & MII_SR_AUTONEG_COMPLETE) in igc_wait_autoneg()
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/igc/
H A Digc_phy.c66 u16 i, phy_status; in igc_phy_has_link() local
74 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link()
85 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link()
88 if (phy_status & MII_SR_LINK_STATUS) in igc_phy_has_link()
401 u16 i, phy_status; in igc_wait_autoneg() local
406 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg()
409 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg()
412 if (phy_status & MII_SR_AUTONEG_COMPLETE) in igc_wait_autoneg()
/kernel/linux/linux-6.6/drivers/staging/rtl8723bs/hal/
H A Dodm_HWConfig.c103 u8 *phy_status, in odm_rx_phy_status_parsing()
113 struct phy_status_rpt_8192cd_t *phy_sta_rpt = (struct phy_status_rpt_8192cd_t *)phy_status; in odm_rx_phy_status_parsing()
397 u8 *phy_status, struct odm_packet_info *pkt_info) in odm_phy_status_query()
400 odm_rx_phy_status_parsing(dm_odm, phy_info, phy_status, pkt_info); in odm_phy_status_query()
101 odm_rx_phy_status_parsing(struct dm_odm_t *dm_odm, struct odm_phy_info *phy_info, u8 *phy_status, struct odm_packet_info *pkt_info) odm_rx_phy_status_parsing() argument
396 odm_phy_status_query(struct dm_odm_t *dm_odm, struct odm_phy_info *phy_info, u8 *phy_status, struct odm_packet_info *pkt_info) odm_phy_status_query() argument
H A Dodm_HWConfig.h63 u8 *phy_status, struct odm_packet_info *pkt_info);
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtw88/
H A Drtw8821c.c546 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument
554 vga_idx = GET_PHY_STAT_P0_VGA(phy_status); in query_phy_status_page0()
555 lna_idx = FIELD_PREP(BIT_LNA_H_MASK, GET_PHY_STAT_P0_LNA_H(phy_status)) | in query_phy_status_page0()
556 FIELD_PREP(BIT_LNA_L_MASK, GET_PHY_STAT_P0_LNA_L(phy_status)); in query_phy_status_page0()
566 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument
574 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1()
576 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1()
585 bw = GET_PHY_STAT_P1_RF_MODE(phy_status); in query_phy_status_page1()
587 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
595 static void query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status() argument
621 u8 *phy_status = NULL; rtw8821c_query_rx_desc() local
[all...]
H A Drtw8822b.c838 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument
843 u8 pwdb = GET_PHY_STAT_P0_PWDB(phy_status); in query_phy_status_page0()
854 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument
866 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1()
868 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1()
877 bw = GET_PHY_STAT_P1_RF_MODE(phy_status); in query_phy_status_page1()
879 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
880 pkt_stat->rx_power[RF_PATH_B] = GET_PHY_STAT_P1_PWDB_B(phy_status) - 110; in query_phy_status_page1()
889 pkt_stat->rx_evm[RF_PATH_A] = GET_PHY_STAT_P1_RXEVM_A(phy_status); in query_phy_status_page1()
890 pkt_stat->rx_evm[RF_PATH_B] = GET_PHY_STAT_P1_RXEVM_B(phy_status); in query_phy_status_page1()
916 query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, struct rtw_rx_pkt_stat *pkt_stat) query_phy_status() argument
942 u8 *phy_status = NULL; rtw8822b_query_rx_desc() local
[all...]
H A Drx.c130 if (pkt_stat->crc_err || pkt_stat->icv_err || !pkt_stat->phy_status || in rtw_rx_addr_match()
153 u8 *phy_status) in rtw_rx_fill_rx_status()
149 rtw_rx_fill_rx_status(struct rtw_dev *rtwdev, struct rtw_rx_pkt_stat *pkt_stat, struct ieee80211_hdr *hdr, struct ieee80211_rx_status *rx_status, u8 *phy_status) rtw_rx_fill_rx_status() argument
H A Drtw8723d.c268 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument
273 u8 pwdb = GET_PHY_STAT_P0_PWDB(phy_status); in query_phy_status_page0()
283 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument
292 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1()
294 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1()
296 if (GET_PHY_STAT_P1_RF_MODE(phy_status) == 0) in query_phy_status_page1()
303 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
308 pkt_stat->rx_evm[RF_PATH_A] = GET_PHY_STAT_P1_RXEVM_A(phy_status); in query_phy_status_page1()
309 pkt_stat->rx_snr[RF_PATH_A] = GET_PHY_STAT_P1_RXSNR_A(phy_status); in query_phy_status_page1()
310 pkt_stat->cfo_tail[RF_PATH_A] = GET_PHY_STAT_P1_CFO_TAIL_A(phy_status); in query_phy_status_page1()
322 query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, struct rtw_rx_pkt_stat *pkt_stat) query_phy_status() argument
348 u8 *phy_status = NULL; rtw8723d_query_rx_desc() local
[all...]
H A Drx.h50 u8 *phy_status);
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/
H A Drtw8822b.c817 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument
822 u8 pwdb = GET_PHY_STAT_P0_PWDB(phy_status); in query_phy_status_page0()
833 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument
845 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1()
847 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1()
856 bw = GET_PHY_STAT_P1_RF_MODE(phy_status); in query_phy_status_page1()
858 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
859 pkt_stat->rx_power[RF_PATH_B] = GET_PHY_STAT_P1_PWDB_B(phy_status) - 110; in query_phy_status_page1()
868 pkt_stat->rx_evm[RF_PATH_A] = GET_PHY_STAT_P1_RXEVM_A(phy_status); in query_phy_status_page1()
869 pkt_stat->rx_evm[RF_PATH_B] = GET_PHY_STAT_P1_RXEVM_B(phy_status); in query_phy_status_page1()
895 query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, struct rtw_rx_pkt_stat *pkt_stat) query_phy_status() argument
921 u8 *phy_status = NULL; rtw8822b_query_rx_desc() local
[all...]
H A Drtw8821c.c429 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument
433 u8 pwdb = GET_PHY_STAT_P0_PWDB(phy_status); in query_phy_status_page0()
442 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument
449 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1()
451 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1()
460 bw = GET_PHY_STAT_P1_RF_MODE(phy_status); in query_phy_status_page1()
462 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
469 static void query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status() argument
474 page = *phy_status & 0xf; in query_phy_status()
478 query_phy_status_page0(rtwdev, phy_status, pkt_sta in query_phy_status()
495 u8 *phy_status = NULL; rtw8821c_query_rx_desc() local
[all...]
H A Drx.c129 if (pkt_stat->crc_err || pkt_stat->icv_err || !pkt_stat->phy_status || in rtw_rx_addr_match()
145 u8 *phy_status) in rtw_rx_fill_rx_status()
141 rtw_rx_fill_rx_status(struct rtw_dev *rtwdev, struct rtw_rx_pkt_stat *pkt_stat, struct ieee80211_hdr *hdr, struct ieee80211_rx_status *rx_status, u8 *phy_status) rtw_rx_fill_rx_status() argument
H A Drtw8723d.c249 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument
254 u8 pwdb = GET_PHY_STAT_P0_PWDB(phy_status); in query_phy_status_page0()
264 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument
273 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1()
275 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1()
277 if (GET_PHY_STAT_P1_RF_MODE(phy_status) == 0) in query_phy_status_page1()
284 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
289 pkt_stat->rx_evm[RF_PATH_A] = GET_PHY_STAT_P1_RXEVM_A(phy_status); in query_phy_status_page1()
290 pkt_stat->rx_snr[RF_PATH_A] = GET_PHY_STAT_P1_RXSNR_A(phy_status); in query_phy_status_page1()
291 pkt_stat->cfo_tail[RF_PATH_A] = GET_PHY_STAT_P1_CFO_TAIL_A(phy_status); in query_phy_status_page1()
303 query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, struct rtw_rx_pkt_stat *pkt_stat) query_phy_status() argument
329 u8 *phy_status = NULL; rtw8723d_query_rx_desc() local
[all...]
H A Drtw8822c.c1757 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument
1768 rx_power[RF_PATH_A] = GET_PHY_STAT_P0_PWDB_A(phy_status); in query_phy_status_page0()
1769 rx_power[RF_PATH_B] = GET_PHY_STAT_P0_PWDB_B(phy_status); in query_phy_status_page0()
1772 gain_a = GET_PHY_STAT_P0_GAIN_A(phy_status); in query_phy_status_page0()
1773 gain_b = GET_PHY_STAT_P0_GAIN_B(phy_status); in query_phy_status_page0()
1800 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument
1812 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1()
1814 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1()
1823 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
1824 pkt_stat->rx_power[RF_PATH_B] = GET_PHY_STAT_P1_PWDB_B(phy_status) in query_phy_status_page1()
1860 query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, struct rtw_rx_pkt_stat *pkt_stat) query_phy_status() argument
1886 u8 *phy_status = NULL; rtw8822c_query_rx_desc() local
[all...]
H A Drx.h50 u8 *phy_status);
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/
H A Dintel_display_power_well.c1299 u32 phy_status = 0; in assert_chv_phy_status() local
1323 phy_status |= PHY_POWERGOOD(DPIO_PHY0); in assert_chv_phy_status()
1336 phy_status |= PHY_STATUS_CMN_LDO(DPIO_PHY0, DPIO_CH0); in assert_chv_phy_status()
1346 phy_status |= PHY_STATUS_CMN_LDO(DPIO_PHY0, DPIO_CH1); in assert_chv_phy_status()
1350 phy_status |= PHY_STATUS_SPLINE_LDO(DPIO_PHY0, DPIO_CH0, 0); in assert_chv_phy_status()
1353 phy_status |= PHY_STATUS_SPLINE_LDO(DPIO_PHY0, DPIO_CH0, 1); in assert_chv_phy_status()
1357 phy_status |= PHY_STATUS_SPLINE_LDO(DPIO_PHY0, DPIO_CH1, 0); in assert_chv_phy_status()
1360 phy_status |= PHY_STATUS_SPLINE_LDO(DPIO_PHY0, DPIO_CH1, 1); in assert_chv_phy_status()
1364 phy_status |= PHY_POWERGOOD(DPIO_PHY1); in assert_chv_phy_status()
1372 phy_status | in assert_chv_phy_status()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_82598.c653 s32 phy_status = 0; in ixgbe_reset_hw_82598() local
703 phy_status = hw->phy.ops.init(hw); in ixgbe_reset_hw_82598()
704 if (phy_status == -EOPNOTSUPP) in ixgbe_reset_hw_82598()
705 return phy_status; in ixgbe_reset_hw_82598()
706 if (phy_status == -ENOENT) in ixgbe_reset_hw_82598()
772 if (phy_status) in ixgbe_reset_hw_82598()
773 status = phy_status; in ixgbe_reset_hw_82598()
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_82598.c653 s32 phy_status = 0; in ixgbe_reset_hw_82598() local
703 phy_status = hw->phy.ops.init(hw); in ixgbe_reset_hw_82598()
704 if (phy_status == -EOPNOTSUPP) in ixgbe_reset_hw_82598()
705 return phy_status; in ixgbe_reset_hw_82598()
706 if (phy_status == -ENOENT) in ixgbe_reset_hw_82598()
772 if (phy_status) in ixgbe_reset_hw_82598()
773 status = phy_status; in ixgbe_reset_hw_82598()
/kernel/linux/linux-6.6/drivers/phy/qualcomm/
H A Dphy-qcom-qmp-pcie.c2209 unsigned int phy_status; member
2410 .phy_status = PHYSTATUS,
2437 .phy_status = PHYSTATUS,
2466 .phy_status = PHYSTATUS,
2493 .phy_status = PHYSTATUS,
2516 .phy_status = PHYSTATUS,
2553 .phy_status = PHYSTATUS,
2590 .phy_status = PHYSTATUS,
2615 .phy_status = PHYSTATUS,
2644 .phy_status
[all...]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/
H A De1000_phy.c1591 u16 i, phy_status; in igb_wait_autoneg() local
1595 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igb_wait_autoneg()
1598 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igb_wait_autoneg()
1601 if (phy_status & MII_SR_AUTONEG_COMPLETE) in igb_wait_autoneg()
1625 u16 i, phy_status; in igb_phy_has_link() local
1632 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igb_phy_has_link()
1643 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igb_phy_has_link()
1646 if (phy_status & MII_SR_LINK_STATUS) in igb_phy_has_link()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000e/
H A Dphy.c1693 u16 i, phy_status; in e1000_wait_autoneg() local
1697 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000_wait_autoneg()
1700 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000_wait_autoneg()
1703 if (phy_status & BMSR_ANEGCOMPLETE) in e1000_wait_autoneg()
1727 u16 i, phy_status; in e1000e_phy_has_link_generic() local
1735 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000e_phy_has_link_generic()
1746 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000e_phy_has_link_generic()
1749 if (phy_status & BMSR_LSTATUS) { in e1000e_phy_has_link_generic()
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/e1000e/
H A Dphy.c1702 u16 i, phy_status; in e1000_wait_autoneg() local
1706 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000_wait_autoneg()
1709 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000_wait_autoneg()
1712 if (phy_status & BMSR_ANEGCOMPLETE) in e1000_wait_autoneg()
1736 u16 i, phy_status; in e1000e_phy_has_link_generic() local
1744 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000e_phy_has_link_generic()
1755 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000e_phy_has_link_generic()
1758 if (phy_status & BMSR_LSTATUS) { in e1000e_phy_has_link_generic()
/kernel/linux/linux-6.6/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()

Completed in 39 milliseconds

123