| /linux/drivers/net/wireless/realtek/rtw88/ |
| H A D | rx.c | 136 if (pkt_stat->crc_err || pkt_stat->icv_err || !pkt_stat->phy_status || in rtw_rx_addr_match() 243 if (pkt_stat->phy_status) { in rtw_rx_fill_rx_status() 272 void *phy_status; in rtw_rx_query_rx_desc() local 283 pkt_stat->phy_status = le32_get_bits(rx_desc->w0, RTW_RX_DESC_W0_PHYST); in rtw_rx_query_rx_desc() 305 phy_status = rx_desc8 + desc_sz + pkt_stat->shift; in rtw_rx_query_rx_desc() 306 hdr = phy_status + pkt_stat->drv_info_sz; in rtw_rx_query_rx_desc() 309 if (pkt_stat->phy_status) in rtw_rx_query_rx_desc() 310 rtwdev->chip->ops->query_phy_status(rtwdev, phy_status, pkt_stat); in rtw_rx_query_rx_desc()
|
| H A D | rtw8822b.c | 839 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument 844 u8 pwdb = GET_PHY_STAT_P0_PWDB(phy_status); in query_phy_status_page0() 855 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument 867 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1() 869 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1() 878 bw = GET_PHY_STAT_P1_RF_MODE(phy_status); in query_phy_status_page1() 880 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1() 881 pkt_stat->rx_power[RF_PATH_B] = GET_PHY_STAT_P1_PWDB_B(phy_status) - 110; in query_phy_status_page1() 890 pkt_stat->rx_evm[RF_PATH_A] = GET_PHY_STAT_P1_RXEVM_A(phy_status); in query_phy_status_page1() 891 pkt_stat->rx_evm[RF_PATH_B] = GET_PHY_STAT_P1_RXEVM_B(phy_status); in query_phy_status_page1() [all …]
|
| H A D | rtw8703b.c | 905 struct phy_status_8703b *phy_status = (struct phy_status_8703b *)phy_raw; in query_phy_status_cck() local 906 u8 vga_idx = phy_status->cck_agc_rpt_ofdm_cfosho_a & VGA_BITS; in query_phy_status_cck() 907 u8 lna_idx = phy_status->cck_agc_rpt_ofdm_cfosho_a & LNA_L_BITS; in query_phy_status_cck() 912 phy_status->cck_rpt_b_ofdm_cfosho_b & LNA_H_BIT) in query_phy_status_cck() 927 struct phy_status_8703b *phy_status = (struct phy_status_8703b *)phy_raw; in query_phy_status_ofdm() local 931 val_s8 = phy_status->path_agc[RF_PATH_A].gain & 0x3F; in query_phy_status_ofdm() 934 pkt_stat->rx_snr[RF_PATH_A] = (s8)(phy_status->path_rxsnr[RF_PATH_A] / 2); in query_phy_status_ofdm() 937 val_s8 = phy_status->cck_sig_qual_ofdm_pwdb_all >> 1; in query_phy_status_ofdm() 940 pkt_stat->rx_evm[RF_PATH_A] = phy_status->stream_rxevm[RF_PATH_A]; in query_phy_status_ofdm() 941 pkt_stat->cfo_tail[RF_PATH_A] = phy_status->path_cfotail[RF_PATH_A]; in query_phy_status_ofdm() [all …]
|
| H A D | rtw8821c.c | 613 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument 621 vga_idx = GET_PHY_STAT_P0_VGA(phy_status); in query_phy_status_page0() 622 lna_idx = FIELD_PREP(BIT_LNA_H_MASK, GET_PHY_STAT_P0_LNA_H(phy_status)) | in query_phy_status_page0() 623 FIELD_PREP(BIT_LNA_L_MASK, GET_PHY_STAT_P0_LNA_L(phy_status)); in query_phy_status_page0() 633 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument 641 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1() 643 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1() 652 bw = GET_PHY_STAT_P1_RF_MODE(phy_status); in query_phy_status_page1() 654 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1() 662 static void query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status() argument [all …]
|
| H A D | rtw8723d.c | 156 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument 161 u8 pwdb = GET_PHY_STAT_P0_PWDB(phy_status); in query_phy_status_page0() 171 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument 180 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1() 182 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1() 184 if (GET_PHY_STAT_P1_RF_MODE(phy_status) == 0) in query_phy_status_page1() 191 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1() 196 pkt_stat->rx_evm[RF_PATH_A] = GET_PHY_STAT_P1_RXEVM_A(phy_status); in query_phy_status_page1() 197 pkt_stat->rx_snr[RF_PATH_A] = GET_PHY_STAT_P1_RXSNR_A(phy_status); in query_phy_status_page1() 198 pkt_stat->cfo_tail[RF_PATH_A] = GET_PHY_STAT_P1_CFO_TAIL_A(phy_status); in query_phy_status_page1() [all …]
|
| H A D | rtw8822c.c | 2548 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument 2560 rx_power[RF_PATH_A] = GET_PHY_STAT_P0_PWDB_A(phy_status); in query_phy_status_page0() 2561 rx_power[RF_PATH_B] = GET_PHY_STAT_P0_PWDB_B(phy_status); in query_phy_status_page0() 2564 gain_a = GET_PHY_STAT_P0_GAIN_A(phy_status); in query_phy_status_page0() 2565 gain_b = GET_PHY_STAT_P0_GAIN_B(phy_status); in query_phy_status_page0() 2578 channel = GET_PHY_STAT_P0_CHANNEL(phy_status); in query_phy_status_page0() 2598 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument 2612 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1() 2614 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1() 2625 channel = GET_PHY_STAT_P1_CHANNEL(phy_status); in query_phy_status_page1() [all …]
|
| H A D | rtw8821a.c | 41 static void rtw8821a_query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in rtw8821a_query_phy_status() argument 44 rtw88xxa_query_phy_status(rtwdev, phy_status, pkt_stat, in rtw8821a_query_phy_status()
|
| H A D | rtw8812a.c | 58 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 D | main.h | 636 bool phy_status; member 868 void (*query_phy_status)(struct rtw_dev *rtwdev, u8 *phy_status,
|
| H A D | rtw88xxa.c | 1518 void rtw88xxa_query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in rtw88xxa_query_phy_status() argument 1529 rpt = (struct rtw_jaguar_phy_status_rpt *)phy_status; in rtw88xxa_query_phy_status()
|
| H A D | rtw8814a.c | 1169 static void rtw8814a_query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in rtw8814a_query_phy_status() argument 1182 rpt = (struct rtw_jaguar_phy_status_rpt *)phy_status; in rtw8814a_query_phy_status()
|
| /linux/drivers/net/ethernet/intel/igc/ |
| H A D | igc_phy.c | 67 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/staging/rtl8723bs/hal/ |
| H A D | odm_HWConfig.c | 103 u8 *phy_status, in odm_rx_phy_status_parsing() argument 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() argument 400 odm_rx_phy_status_parsing(dm_odm, phy_info, phy_status, pkt_info); in odm_phy_status_query()
|
| H A D | odm_HWConfig.h | 63 u8 *phy_status, struct odm_packet_info *pkt_info);
|
| /linux/drivers/phy/qualcomm/ |
| H A D | phy-qcom-qmp-pcie.c | 3139 unsigned int phy_status; member 3394 .phy_status = PHYSTATUS, 3421 .phy_status = PHYSTATUS, 3450 .phy_status = PHYSTATUS, 3477 .phy_status = PHYSTATUS, 3505 .phy_status = PHYSTATUS, 3531 .phy_status = PHYSTATUS, 3565 .phy_status = PHYSTATUS_4_20, 3592 .phy_status = PHYSTATUS, 3615 .phy_status = PHYSTATUS, [all …]
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_82598.c | 653 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 D | mv_64xx.c | 582 (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 D | mv_94xx.c | 18 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 D | mv_sas.h | 214 u32 phy_status; member
|
| /linux/drivers/net/ethernet/intel/igb/ |
| H A D | e1000_phy.c | 1592 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 D | phy.c | 1742 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()
|
| /linux/drivers/pci/controller/dwc/ |
| H A D | pcie-spear13xx.c | 43 u32 phy_status; /* cr11 */ member
|
| /linux/drivers/scsi/isci/ |
| H A D | host.c | 1205 enum sci_status phy_status; in sci_controller_stop_phys() local 1210 phy_status = sci_phy_stop(&ihost->phys[index]); in sci_controller_stop_phys() 1212 if (phy_status != SCI_SUCCESS && in sci_controller_stop_phys() 1213 phy_status != SCI_FAILURE_INVALID_STATE) { in sci_controller_stop_phys() 1220 ihost->phys[index].phy_index, phy_status); in sci_controller_stop_phys()
|
| /linux/drivers/net/ethernet/ti/ |
| H A D | tlan.c | 2752 u16 phy_status; in tlan_phy_monitor() local 2757 tlan_mii_read_reg(dev, phy, MII_GEN_STS, &phy_status); in tlan_phy_monitor() 2760 if (!(phy_status & MII_GS_LINK)) { in tlan_phy_monitor() 2785 if ((phy_status & MII_GS_LINK) && !netif_carrier_ok(dev)) { in tlan_phy_monitor()
|
| /linux/drivers/net/ethernet/intel/e1000/ |
| H A D | e1000_main.c | 4689 u16 phy_status; in e1000_smartspeed() local 4700 e1000_read_phy_reg(hw, PHY_1000T_STATUS, &phy_status); in e1000_smartspeed() 4701 if (!(phy_status & SR_1000T_MS_CONFIG_FAULT)) in e1000_smartspeed() 4703 e1000_read_phy_reg(hw, PHY_1000T_STATUS, &phy_status); in e1000_smartspeed() 4704 if (!(phy_status & SR_1000T_MS_CONFIG_FAULT)) in e1000_smartspeed()
|