Home
last modified time | relevance | path

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

12

/openbmc/qemu/hw/net/fsl_etsec/
H A Dmiim.c47 value = etsec->phy_status; in miim_read_cycle()
137 etsec->phy_status &= ~MII_BMSR_LINK_ST; in etsec_miim_link_status()
139 etsec->phy_status |= MII_BMSR_LINK_ST; in etsec_miim_link_status()
H A Detsec.h124 uint16_t phy_status; member
/openbmc/linux/drivers/net/ethernet/intel/igc/
H 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()
402 u16 i, phy_status; in igc_wait_autoneg() local
407 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg()
410 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg()
413 if (phy_status & MII_SR_AUTONEG_COMPLETE) in igc_wait_autoneg()
/openbmc/linux/drivers/net/wireless/realtek/rtw88/
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()
[all …]
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
[all …]
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()
[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() argument
H A Drx.h50 u8 *phy_status);
H A Drtw8822c.c2547 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument
2559 rx_power[RF_PATH_A] = GET_PHY_STAT_P0_PWDB_A(phy_status); in query_phy_status_page0()
2560 rx_power[RF_PATH_B] = GET_PHY_STAT_P0_PWDB_B(phy_status); in query_phy_status_page0()
2563 gain_a = GET_PHY_STAT_P0_GAIN_A(phy_status); in query_phy_status_page0()
2564 gain_b = GET_PHY_STAT_P0_GAIN_B(phy_status); in query_phy_status_page0()
2577 channel = GET_PHY_STAT_P0_CHANNEL(phy_status); in query_phy_status_page0()
2596 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument
2610 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1()
2612 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1()
2623 channel = GET_PHY_STAT_P1_CHANNEL(phy_status); in query_phy_status_page1()
[all …]
/openbmc/u-boot/drivers/usb/host/
H A Dehci-mx6.c203 u32 phy_status; member
235 void __iomem *status = (void __iomem *)(&usbnc->phy_status); in usb_phy_mode()
439 void *__iomem phy_ctrl, *__iomem phy_status; in ehci_usb_phy_mode() local
468 phy_status = (void __iomem *)(addr + in ehci_usb_phy_mode()
470 val = readl(phy_status); in ehci_usb_phy_mode()
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_display_power_well.c1310 u32 phy_status = 0; in assert_chv_phy_status() local
1334 phy_status |= PHY_POWERGOOD(DPIO_PHY0); in assert_chv_phy_status()
1347 phy_status |= PHY_STATUS_CMN_LDO(DPIO_PHY0, DPIO_CH0); in assert_chv_phy_status()
1357 phy_status |= PHY_STATUS_CMN_LDO(DPIO_PHY0, DPIO_CH1); in assert_chv_phy_status()
1361 phy_status |= PHY_STATUS_SPLINE_LDO(DPIO_PHY0, DPIO_CH0, 0); in assert_chv_phy_status()
1364 phy_status |= PHY_STATUS_SPLINE_LDO(DPIO_PHY0, DPIO_CH0, 1); in assert_chv_phy_status()
1368 phy_status |= PHY_STATUS_SPLINE_LDO(DPIO_PHY0, DPIO_CH1, 0); in assert_chv_phy_status()
1371 phy_status |= PHY_STATUS_SPLINE_LDO(DPIO_PHY0, DPIO_CH1, 1); in assert_chv_phy_status()
1375 phy_status |= PHY_POWERGOOD(DPIO_PHY1); in assert_chv_phy_status()
1383 phy_status |= PHY_STATUS_CMN_LDO(DPIO_PHY1, DPIO_CH0); in assert_chv_phy_status()
[all …]
/openbmc/linux/drivers/staging/rtl8723bs/hal/
H 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()
H A Dodm_HWConfig.h63 u8 *phy_status, struct odm_packet_info *pkt_info);
/openbmc/linux/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()
/openbmc/linux/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 = PHYSTATUS,
[all …]
/openbmc/qemu/hw/net/
H A Dlan9118.c231 uint32_t phy_status; member
304 VMSTATE_UINT32(phy_status, lan9118_state),
402 s->phy_status &= ~0x0024; in phy_update_link()
405 s->phy_status |= 0x0024; in phy_update_link()
419 s->phy_status = 0x7809; in phy_reset()
845 return s->phy_status; in do_phy_read()
882 s->phy_status |= 0x0020; in do_phy_write()
H A Dimx_fec.c212 VMSTATE_UINT32(phy_status, IMXFECState),
251 s->phy_status &= ~0x0024; in imx_phy_update_link()
255 s->phy_status |= 0x0024; in imx_phy_update_link()
271 s->phy_status = 0x7809; in imx_phy_reset()
304 val = s->phy_status; in imx_phy_read()
378 s->phy_status |= 0x0020; in imx_phy_write()
H A Dftgmac100.c287 s->phy_status &= ~(MII_BMSR_LINK_ST | MII_BMSR_AN_COMP); in phy_update_link()
290 s->phy_status |= (MII_BMSR_LINK_ST | MII_BMSR_AN_COMP); in phy_update_link()
303 s->phy_status = (MII_BMSR_100TX_FD | MII_BMSR_100TX_HD | MII_BMSR_10T_FD | in phy_reset()
324 val = s->phy_status; in do_phy_read()
392 s->phy_status |= MII_BMSR_AN_COMP; in do_phy_write()
1242 VMSTATE_UINT32(phy_status, FTGMAC100State),
/openbmc/qemu/include/hw/net/
H A Dftgmac100.h65 uint32_t phy_status; member
H A Dimx_fec.h267 uint32_t phy_status; member
/openbmc/linux/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()
H 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()
/openbmc/linux/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()
/openbmc/linux/drivers/net/ethernet/intel/e1000e/
H A Dphy.c1743 u16 i, phy_status; in e1000_wait_autoneg() local
1747 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000_wait_autoneg()
1750 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000_wait_autoneg()
1753 if (phy_status & BMSR_ANEGCOMPLETE) in e1000_wait_autoneg()
1777 u16 i, phy_status; in e1000e_phy_has_link_generic() local
1785 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000e_phy_has_link_generic()
1796 ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); in e1000e_phy_has_link_generic()
1799 if (phy_status & BMSR_LSTATUS) { in e1000e_phy_has_link_generic()
/openbmc/u-boot/drivers/ram/aspeed/
H A Dsdram_ast2600.c202 void __iomem *phy_status; member
275 u32 reg_base = (u32)info->phy_status; in ast2600_sdramphy_check_status()
1030 priv->phy_status = (void *)(uintptr_t)devfdt_get_addr_index(dev, 2); in ast2600_sdrammc_ofdata_to_platdata()

12