Home
last modified time | relevance | path

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

/src/sys/contrib/dev/rtw88/
H 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()
273 void *phy_status; in rtw_rx_query_rx_desc() local
275 u8 *phy_status; in rtw_rx_query_rx_desc() local
287 pkt_stat->phy_status = le32_get_bits(rx_desc->w0, RTW_RX_DESC_W0_PHYST); in rtw_rx_query_rx_desc()
310 phy_status = rx_desc8 + desc_sz + pkt_stat->shift; in rtw_rx_query_rx_desc()
311 hdr = phy_status + pkt_stat->drv_info_sz; in rtw_rx_query_rx_desc()
313 phy_status = (u8 *)rx_desc8 + desc_sz + pkt_stat->shift; in rtw_rx_query_rx_desc()
314 hdr = (void *)(phy_status + pkt_stat->drv_info_sz); in rtw_rx_query_rx_desc()
318 if (pkt_stat->phy_status) in rtw_rx_query_rx_desc()
[all …]
H A Drtw8822b.c839 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 Drtw8703b.c907 struct phy_status_8703b *phy_status = (struct phy_status_8703b *)phy_raw; in query_phy_status_cck() local
908 u8 vga_idx = phy_status->cck_agc_rpt_ofdm_cfosho_a & VGA_BITS; in query_phy_status_cck()
909 u8 lna_idx = phy_status->cck_agc_rpt_ofdm_cfosho_a & LNA_L_BITS; in query_phy_status_cck()
914 phy_status->cck_rpt_b_ofdm_cfosho_b & LNA_H_BIT) in query_phy_status_cck()
929 struct phy_status_8703b *phy_status = (struct phy_status_8703b *)phy_raw; in query_phy_status_ofdm() local
933 val_s8 = phy_status->path_agc[RF_PATH_A].gain & 0x3F; in query_phy_status_ofdm()
936 pkt_stat->rx_snr[RF_PATH_A] = (s8)(phy_status->path_rxsnr[RF_PATH_A] / 2); in query_phy_status_ofdm()
939 val_s8 = phy_status->cck_sig_qual_ofdm_pwdb_all >> 1; in query_phy_status_ofdm()
942 pkt_stat->rx_evm[RF_PATH_A] = phy_status->stream_rxevm[RF_PATH_A]; in query_phy_status_ofdm()
943 pkt_stat->cfo_tail[RF_PATH_A] = phy_status->path_cfotail[RF_PATH_A]; in query_phy_status_ofdm()
[all …]
H A Drtw8723d.c156 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 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()
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 Drtw8822c.c2552 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument
2564 rx_power[RF_PATH_A] = GET_PHY_STAT_P0_PWDB_A(phy_status); in query_phy_status_page0()
2565 rx_power[RF_PATH_B] = GET_PHY_STAT_P0_PWDB_B(phy_status); in query_phy_status_page0()
2568 gain_a = GET_PHY_STAT_P0_GAIN_A(phy_status); in query_phy_status_page0()
2569 gain_b = GET_PHY_STAT_P0_GAIN_B(phy_status); in query_phy_status_page0()
2582 channel = GET_PHY_STAT_P0_CHANNEL(phy_status); in query_phy_status_page0()
2602 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument
2616 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1()
2618 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1()
2629 channel = GET_PHY_STAT_P1_CHANNEL(phy_status); in query_phy_status_page1()
[all …]
H A Drtw88xxa.h151 void rtw88xxa_query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status,
H 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()
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.h645 bool phy_status; member
877 void (*query_phy_status)(struct rtw_dev *rtwdev, u8 *phy_status,
H A Drtw88xxa.c1518 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 Drtw8814a.c1180 static void rtw8814a_query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in rtw8814a_query_phy_status() argument
1193 rpt = (struct rtw_jaguar_phy_status_rpt *)phy_status; in rtw8814a_query_phy_status()
H A Dphy.c690 if (pkt_stat->crc_err || pkt_stat->icv_err || !pkt_stat->phy_status || in rtw_phy_parsing_cfo()
/src/sys/dev/igc/
H A Digc_phy.c766 u16 i, phy_status; in igc_wait_autoneg() local
775 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg()
778 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg()
781 if (phy_status & MII_SR_AUTONEG_COMPLETE) in igc_wait_autoneg()
805 u16 i, phy_status; in igc_phy_has_link_generic() local
817 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link_generic()
828 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link_generic()
831 if (phy_status & MII_SR_LINK_STATUS) in igc_phy_has_link_generic()
/src/sys/dev/ixgbe/
H A Dixgbe_82598.c813 s32 phy_status = IXGBE_SUCCESS; in ixgbe_reset_hw_82598() local
865 phy_status = hw->phy.ops.init(hw); in ixgbe_reset_hw_82598()
866 if (phy_status == IXGBE_ERR_SFP_NOT_SUPPORTED) in ixgbe_reset_hw_82598()
868 if (phy_status == IXGBE_ERR_SFP_NOT_PRESENT) in ixgbe_reset_hw_82598()
934 if (phy_status != IXGBE_SUCCESS) in ixgbe_reset_hw_82598()
935 status = phy_status; in ixgbe_reset_hw_82598()
/src/sys/dev/phy/
H A Dphy.h143 int phy_status(phy_t phy, int *value);
H A Dphy.c387 phy_status(phy_t phy, int *status) in phy_status() function
/src/sys/dev/e1000/
H A De1000_phy.c2324 u16 i, phy_status; in e1000_wait_autoneg() local
2333 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in e1000_wait_autoneg()
2336 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in e1000_wait_autoneg()
2339 if (phy_status & MII_SR_AUTONEG_COMPLETE) in e1000_wait_autoneg()
2363 u16 i, phy_status; in e1000_phy_has_link_generic() local
2375 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in e1000_phy_has_link_generic()
2386 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in e1000_phy_has_link_generic()
2389 if (phy_status & MII_SR_LINK_STATUS) in e1000_phy_has_link_generic()
/src/sys/dev/otus/
H A Dif_otus.c1542 struct ar_rx_phystatus *phy_status = NULL; in otus_sub_rxeof() local
1628 if (len < sizeof(*phy_status)) { in otus_sub_rxeof()
1641 phy_status = (struct ar_rx_phystatus *) in otus_sub_rxeof()
1642 (buf + len - sizeof(*phy_status)); in otus_sub_rxeof()
1643 len -= sizeof(*phy_status); in otus_sub_rxeof()
1733 if (phy_status != NULL) { in otus_sub_rxeof()
1735 rxs.c_rssi = phy_status->rssi; in otus_sub_rxeof()
/src/sys/dev/isci/scil/
H A Dscic_sds_controller.c1739 SCI_STATUS phy_status; in scic_sds_controller_stop_phys() local
1745 phy_status = scic_phy_stop(&this_controller->phy_table[index]); in scic_sds_controller_stop_phys()
1748 (phy_status != SCI_SUCCESS) in scic_sds_controller_stop_phys()
1749 && (phy_status != SCI_FAILURE_INVALID_STATE) in scic_sds_controller_stop_phys()
1758 this_controller->phy_table[index].phy_index, phy_status in scic_sds_controller_stop_phys()
/src/sys/dev/axgbe/
H A Dxgbe.h909 void (*phy_status)(struct xgbe_prv_data *); member
H A Dxgbe-mdio.c1626 phy_if->phy_status = xgbe_phy_status; in xgbe_init_function_ptrs_phy()
H A Dif_axgbe_pci.c840 pdata->phy_if.phy_status(pdata); in xgbe_service()