Home
last modified time | relevance | path

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

12

/drivers/net/wireless/realtek/rtw88/
A Drx.c136 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()
A Drtw8822b.c844 u8 pwdb = GET_PHY_STAT_P0_PWDB(phy_status); in query_phy_status_page0()
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()
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()
893 pkt_stat->rx_snr[RF_PATH_A] = GET_PHY_STAT_P1_RXSNR_A(phy_status); in query_phy_status_page1()
894 pkt_stat->rx_snr[RF_PATH_B] = GET_PHY_STAT_P1_RXSNR_B(phy_status); in query_phy_status_page1()
922 page = *phy_status & 0xf; in query_phy_status()
926 query_phy_status_page0(rtwdev, phy_status, pkt_stat); in query_phy_status()
[all …]
A Drtw8703b.c905 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()
931 val_s8 = phy_status->path_agc[RF_PATH_A].gain & 0x3F; 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()
958 static void query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status() argument
962 query_phy_status_cck(rtwdev, phy_status, pkt_stat); in query_phy_status()
[all …]
A Drtw8723d.c161 u8 pwdb = GET_PHY_STAT_P0_PWDB(phy_status); in query_phy_status_page0()
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()
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()
210 static void query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status() argument
215 page = *phy_status & 0xf; in query_phy_status()
219 query_phy_status_page0(rtwdev, phy_status, pkt_stat); in query_phy_status()
[all …]
A Drtw8821c.c613 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()
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()
662 static void query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status() argument
667 page = *phy_status & 0xf; in query_phy_status()
671 query_phy_status_page0(rtwdev, phy_status, pkt_stat); in query_phy_status()
[all …]
A Drtw8822c.c2560 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()
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()
2678 page = *phy_status & 0xf; in query_phy_status()
2682 query_phy_status_page0(rtwdev, phy_status, pkt_stat); in query_phy_status()
[all …]
A Drtw88xxa.h151 void rtw88xxa_query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status,
A Drtw8821a.c41 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()
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()
/drivers/net/ethernet/intel/igc/
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()
/drivers/gpu/drm/i915/display/
A Dintel_display_power_well.c1352 u32 phy_status = 0; in assert_chv_phy_status() local
1376 phy_status |= PHY_POWERGOOD(DPIO_PHY0); in assert_chv_phy_status()
1389 phy_status |= PHY_STATUS_CMN_LDO(DPIO_PHY0, DPIO_CH0); in assert_chv_phy_status()
1399 phy_status |= PHY_STATUS_CMN_LDO(DPIO_PHY0, DPIO_CH1); in assert_chv_phy_status()
1403 phy_status |= PHY_STATUS_SPLINE_LDO(DPIO_PHY0, DPIO_CH0, 0); in assert_chv_phy_status()
1406 phy_status |= PHY_STATUS_SPLINE_LDO(DPIO_PHY0, DPIO_CH0, 1); in assert_chv_phy_status()
1417 phy_status |= PHY_POWERGOOD(DPIO_PHY1); in assert_chv_phy_status()
1425 phy_status |= PHY_STATUS_CMN_LDO(DPIO_PHY1, DPIO_CH0); in assert_chv_phy_status()
1435 phy_status &= phy_status_mask; in assert_chv_phy_status()
1442 phy_status_mask, phy_status, 10)) in assert_chv_phy_status()
[all …]
/drivers/staging/rtl8723bs/hal/
A Dodm_HWConfig.c103 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()
A Dodm_HWConfig.h63 u8 *phy_status, struct odm_packet_info *pkt_info);
/drivers/phy/qualcomm/
A Dphy-qcom-qmp-pcie.c3023 unsigned int phy_status; member
3254 .phy_status = PHYSTATUS,
3281 .phy_status = PHYSTATUS,
3310 .phy_status = PHYSTATUS,
3337 .phy_status = PHYSTATUS,
3365 .phy_status = PHYSTATUS,
3391 .phy_status = PHYSTATUS,
3452 .phy_status = PHYSTATUS,
3475 .phy_status = PHYSTATUS,
3512 .phy_status = PHYSTATUS,
[all …]
/drivers/net/ethernet/intel/ixgbe/
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()
/drivers/scsi/mvsas/
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()
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()
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()
A Dmv_sas.h214 u32 phy_status; member
/drivers/net/ethernet/intel/igb/
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()
/drivers/net/ethernet/intel/e1000e/
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()
/drivers/pci/controller/dwc/
A Dpcie-spear13xx.c43 u32 phy_status; /* cr11 */ member
/drivers/scsi/isci/
A Dhost.c1205 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()
/drivers/net/ethernet/ti/
A Dtlan.c2752 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()
/drivers/net/ethernet/intel/e1000/
A De1000_main.c4682 u16 phy_status; in e1000_smartspeed() local
4693 e1000_read_phy_reg(hw, PHY_1000T_STATUS, &phy_status); in e1000_smartspeed()
4694 if (!(phy_status & SR_1000T_MS_CONFIG_FAULT)) in e1000_smartspeed()
4696 e1000_read_phy_reg(hw, PHY_1000T_STATUS, &phy_status); in e1000_smartspeed()
4697 if (!(phy_status & SR_1000T_MS_CONFIG_FAULT)) in e1000_smartspeed()

Completed in 100 milliseconds

12