| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/igc/ |
| H A D | igc_phy.c | 66 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/realtek/rtw88/ |
| H A D | rtw8822b.c | 817 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() [all …]
|
| H A D | rtw8821c.c | 429 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_stat); in query_phy_status() [all …]
|
| H A D | rtw8723d.c | 249 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() [all …]
|
| H A D | rtw8822c.c | 1757 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) - 110; in query_phy_status_page1() [all …]
|
| H A D | rx.c | 129 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() argument
|
| H A D | rx.h | 50 u8 *phy_status);
|
| /OK3568_Linux_fs/u-boot/drivers/usb/host/ |
| H A D | ehci-mx6.c | 233 u32 phy_status; member 257 void __iomem *status = (void __iomem *)(&usbnc->phy_status); in usb_phy_mode() 468 void *__iomem phy_ctrl, *__iomem phy_status; in ehci_usb_phy_mode() local 497 phy_status = (void __iomem *)(addr + in ehci_usb_phy_mode() 499 val = readl(phy_status); in ehci_usb_phy_mode()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_82598.c | 653 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 == IXGBE_ERR_SFP_NOT_SUPPORTED) in ixgbe_reset_hw_82598() 705 return phy_status; in ixgbe_reset_hw_82598() 706 if (phy_status == IXGBE_ERR_SFP_NOT_PRESENT) in ixgbe_reset_hw_82598() 772 if (phy_status) in ixgbe_reset_hw_82598() 773 status = phy_status; in ixgbe_reset_hw_82598()
|
| /OK3568_Linux_fs/u-boot/drivers/net/ |
| H A D | tsi108_eth.c | 602 unsigned int phy_status; in marvell_88e_phy_config() local 621 while ((phy_status = in marvell_88e_phy_config() 637 phy_status = read_phy (ETH_BASE, phy_addr, PHY_STATUS_REG); in marvell_88e_phy_config() 642 } while ((phy_status & PHY_STAT_LINK_UP) == 0); in marvell_88e_phy_config() 644 if ((phy_status & PHY_STAT_LINK_UP) == 0) in marvell_88e_phy_config()
|
| /OK3568_Linux_fs/kernel/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.c | 1008 phy->phy_status = mvs_is_phy_ready(mvi, i); in mvs_update_phyinfo() 1011 if (phy->phy_status) { in mvs_update_phyinfo() 2008 phy->phy_status = mvs_is_phy_ready(mvi, phy_no); in mvs_int_port() 2010 if (phy->phy_status) { in mvs_int_port()
|
| H A D | mv_sas.h | 214 u32 phy_status; member
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/igb/ |
| H A D | e1000_phy.c | 1591 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/rtl8822b/sdio/ |
| H A D | rtl8822bs_recv.c | 260 static s32 recv_entry(union recv_frame *recvframe, u8 *phy_status) in recv_entry() argument 292 rx_query_phy_status(copyframe, phy_status); in recv_entry() 315 ret = pre_recv_entry(recvframe, attrib->physt ? phy_status : NULL); in recv_entry()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/rtl8822c/sdio/ |
| H A D | rtl8822cs_recv.c | 228 static s32 recv_entry(union recv_frame *recvframe, u8 *phy_status) in recv_entry() argument 260 rx_query_phy_status(copyframe, phy_status); in recv_entry() 283 ret = pre_recv_entry(recvframe, attrib->physt ? phy_status : NULL); in recv_entry()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/e1000e/ |
| H A D | phy.c | 1693 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()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/ |
| H A D | intel_display_power.c | 1520 u32 phy_status = 0; in assert_chv_phy_status() local 1544 phy_status |= PHY_POWERGOOD(DPIO_PHY0); in assert_chv_phy_status() 1557 phy_status |= PHY_STATUS_CMN_LDO(DPIO_PHY0, DPIO_CH0); in assert_chv_phy_status() 1567 phy_status |= PHY_STATUS_CMN_LDO(DPIO_PHY0, DPIO_CH1); in assert_chv_phy_status() 1571 phy_status |= PHY_STATUS_SPLINE_LDO(DPIO_PHY0, DPIO_CH0, 0); in assert_chv_phy_status() 1574 phy_status |= PHY_STATUS_SPLINE_LDO(DPIO_PHY0, DPIO_CH0, 1); in assert_chv_phy_status() 1578 phy_status |= PHY_STATUS_SPLINE_LDO(DPIO_PHY0, DPIO_CH1, 0); in assert_chv_phy_status() 1581 phy_status |= PHY_STATUS_SPLINE_LDO(DPIO_PHY0, DPIO_CH1, 1); in assert_chv_phy_status() 1585 phy_status |= PHY_POWERGOOD(DPIO_PHY1); in assert_chv_phy_status() 1593 phy_status |= PHY_STATUS_CMN_LDO(DPIO_PHY1, DPIO_CH0); in assert_chv_phy_status() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/rtl8821c/sdio/ |
| H A D | rtl8821cs_recv.c | 210 static s32 recv_entry(union recv_frame *recvframe, u8 *phy_status) 242 rx_query_phy_status(copyframe, phy_status); 267 rx_query_phy_status(recvframe, phy_status);
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/rtl8821c/sdio/ |
| H A D | rtl8821cs_recv.c | 209 static s32 recv_entry(union recv_frame *recvframe, u8 *phy_status) 241 rx_query_phy_status(copyframe, phy_status); 266 rx_query_phy_status(recvframe, phy_status);
|
| /OK3568_Linux_fs/kernel/drivers/pci/controller/dwc/ |
| H A D | pcie-spear13xx.c | 43 u32 phy_status; /* cr11 */ member
|
| /OK3568_Linux_fs/kernel/drivers/scsi/isci/ |
| H A D | host.c | 1207 enum sci_status phy_status; in sci_controller_stop_phys() local 1212 phy_status = sci_phy_stop(&ihost->phys[index]); in sci_controller_stop_phys() 1214 if (phy_status != SCI_SUCCESS && in sci_controller_stop_phys() 1215 phy_status != SCI_FAILURE_INVALID_STATE) { in sci_controller_stop_phys() 1222 ihost->phys[index].phy_index, phy_status); in sci_controller_stop_phys()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/ |
| H A D | phydm_api.c | 1077 u8 phy_status in phydm_normal_driver_rx_sniffer() argument 1096 if (phy_status == true) { in phydm_normal_driver_rx_sniffer()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/ti/ |
| H A D | tlan.c | 2740 u16 phy_status; in tlan_phy_monitor() local 2745 tlan_mii_read_reg(dev, phy, MII_GEN_STS, &phy_status); in tlan_phy_monitor() 2748 if (!(phy_status & MII_GS_LINK)) { in tlan_phy_monitor() 2773 if ((phy_status & MII_GS_LINK) && !netif_carrier_ok(dev)) { in tlan_phy_monitor()
|