Home
last modified time | relevance | path

Searched refs:phy_state (Results 1 – 25 of 26) sorted by relevance

12

/linux/drivers/net/phy/
A DuPD60620.c37 int phy_state; in upd60620_read_status() local
40 phy_state = phy_read(phydev, MII_BMSR); in upd60620_read_status()
41 if (phy_state < 0) in upd60620_read_status()
42 return phy_state; in upd60620_read_status()
51 if (phy_state < 0) in upd60620_read_status()
52 return phy_state; in upd60620_read_status()
59 if (phy_state & PHY_PHYSCR_100MB) in upd60620_read_status()
61 if (phy_state & PHY_PHYSCR_DUPLEX) in upd60620_read_status()
65 if (phy_state < 0) in upd60620_read_status()
66 return phy_state; in upd60620_read_status()
[all …]
A Dphylink.c73 struct phylink_link_state phy_state; member
631 link_state = pl->phy_state; in phylink_mac_initial_config()
731 link_state = pl->phy_state; in phylink_resolve()
770 pl->phy_state.interface) { in phylink_resolve()
916 pl->phy_state.interface = iface; in phylink_create()
1010 pl->phy_state.speed = phydev->speed; in phylink_phy_change()
1012 pl->phy_state.pause = MLO_PAUSE_NONE; in phylink_phy_change()
1014 pl->phy_state.pause |= MLO_PAUSE_TX; in phylink_phy_change()
1018 pl->phy_state.link = up; in phylink_phy_change()
1086 pl->phy_state.interface = interface; in phylink_bringup_phy()
[all …]
A Dphy.c44 static const char *phy_state_to_str(enum phy_state st) in phy_state_to_str()
1112 enum phy_state old_state; in phy_state_machine()
/linux/drivers/scsi/libsas/
A Dsas_expander.c220 phy->phy_state = PHY_VACANT; in sas_set_ex_phy()
223 phy->phy_state = PHY_NOT_PRESENT; in sas_set_ex_phy()
236 if (phy->phy_state == PHY_VACANT) { in sas_set_ex_phy()
634 if (phy->phy_state == PHY_VACANT || in sas_ex_disable_port()
635 phy->phy_state == PHY_NOT_PRESENT) in sas_ex_disable_port()
759 if (phy->phy_state == PHY_VACANT || in sas_ex_get_linkrate()
1121 if (phy->phy_state == PHY_VACANT || in sas_find_sub_addr()
1224 if (phy->phy_state == PHY_VACANT || in sas_check_ex_subtractive_boundary()
2015 phy->phy_state = PHY_NOT_PRESENT; in sas_rediscover_dev()
2019 phy->phy_state = PHY_VACANT; in sas_rediscover_dev()
[all …]
/linux/drivers/net/ethernet/emulex/benet/
A Dbe_cmds.h191 #define be_phy_state_unknown(phy_state) (phy_state > BE_PHY_UNCERTIFIED) argument
192 #define be_phy_unqualified(phy_state) \ argument
193 (phy_state == BE_PHY_UNQUALIFIED || \
194 phy_state == BE_PHY_UNCERTIFIED)
195 #define be_phy_misconfigured(phy_state) \ argument
196 (phy_state == BE_PHY_INCOMPATIBLE || \
197 phy_state == BE_PHY_UNQUALIFIED || \
198 phy_state == BE_PHY_UNCERTIFIED)
A Dbe.h670 u8 phy_state; /* state of sfp optics (functional, faulted, etc.,) */ member
A Dbe_cmds.c324 if (new_phy_state == adapter->phy_state) in be_async_port_misconfig_event_process()
327 adapter->phy_state = new_phy_state; in be_async_port_misconfig_event_process()
A Dbe_main.c4407 adapter->phy_state = BE_UNKNOWN_PHY_STATE; in be_setup_init()
5481 be_misconfig_evt_port_state[adapter->phy_state], in be_log_sfp_info()
/linux/drivers/scsi/pm8001/
A Dpm8001_sas.c178 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { in pm8001_phy_control()
186 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { in pm8001_phy_control()
194 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { in pm8001_phy_control()
207 if (pm8001_ha->phy[phy_id].phy_state == in pm8001_phy_control()
215 if (pm8001_ha->phy[phy_id].phy_state == in pm8001_phy_control()
A Dpm8001_hwi.c108 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[0] = in read_general_status_table()
110 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[1] = in read_general_status_table()
112 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[2] = in read_general_status_table()
114 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[3] = in read_general_status_table()
116 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[4] = in read_general_status_table()
118 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[5] = in read_general_status_table()
120 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[6] = in read_general_status_table()
122 pm8001_ha->gs_tbl.pm8001_tbl.phy_state[7] = in read_general_status_table()
3773 phy->phy_state = 1; in mpi_hw_event()
3793 phy->phy_state = 0; in mpi_hw_event()
[all …]
A Dpm8001_sas.h249 u8 phy_state; member
412 u32 phy_state[8]; member
A Dpm80xx_hwi.c3310 phy->phy_state = PHY_STATE_LINK_UP_SPCV; in hw_event_port_recover()
3343 phy->phy_state = PHY_STATE_LINK_UP_SPCV; in hw_event_sas_phy_up()
3425 phy->phy_state = PHY_STATE_LINK_UP_SPCV; in hw_event_sata_phy_up()
3532 phy->phy_state = PHY_LINK_DOWN; in mpi_phy_start_resp()
3624 phy->phy_state = PHY_LINK_DISABLE; in mpi_hw_event()
3797 phy->phy_state = PHY_LINK_DISABLE; in mpi_phy_stop_resp()
A Dpm8001_init.c143 phy->phy_state = PHY_LINK_DISABLE; in pm8001_phy_init()
/linux/drivers/scsi/hisi_sas/
A Dhisi_sas_v2_hw.c1626 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in get_wideport_bitmap_v2_hw() local
1629 if (phy_state & 1 << i) in get_wideport_bitmap_v2_hw()
1636 if (phy_state & 1 << 8) in get_wideport_bitmap_v2_hw()
2721 u32 phy_state, sl_ctrl, txid_auto; in phy_down_v2_hw() local
2729 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in phy_down_v2_hw()
2730 dev_info(dev, "phydown: phy%d phy_state=0x%x\n", phy_no, phy_state); in phy_down_v2_hw()
2731 hisi_sas_phy_down(hisi_hba, phy_no, (phy_state & 1 << phy_no) ? 1 : 0, in phy_down_v2_hw()
A Dhisi_sas_v3_hw.c1057 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in get_wideport_bitmap_v3_hw() local
1060 if (phy_state & BIT(i)) in get_wideport_bitmap_v3_hw()
1580 u32 phy_state, sl_ctrl, txid_auto; in phy_down_v3_hw() local
1588 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in phy_down_v3_hw()
1589 dev_info(dev, "phydown: phy%d phy_state=0x%x\n", phy_no, phy_state); in phy_down_v3_hw()
1590 hisi_sas_phy_down(hisi_hba, phy_no, (phy_state & 1 << phy_no) ? 1 : 0, in phy_down_v3_hw()
1639 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in int_phy_up_down_bcast_v3_hw() local
1640 int rdy = phy_state & (1 << phy_no); in int_phy_up_down_bcast_v3_hw()
A Dhisi_sas.h461 u32 phy_state; member
A Dhisi_sas_v1_hw.c1446 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in int_abnormal_v1_hw() local
1449 (phy_state & 1 << phy_no) ? 1 : 0, in int_abnormal_v1_hw()
A Dhisi_sas_main.c1585 hisi_hba->phy_state = hisi_hba->hw->get_phys_state(hisi_hba); in hisi_sas_controller_reset_prepare()
1613 hisi_sas_rescan_topology(hisi_hba, hisi_hba->phy_state); in hisi_sas_controller_reset_done()
/linux/drivers/net/fddi/
A Ddefza.h553 u32 phy_state; /* PHY state */ member
A Ddefxx.h710 PI_UINT32 phy_state[PI_PHY_K_MAX]; member
/linux/include/scsi/
A Dlibsas.h95 enum ex_phy_state phy_state; member
/linux/include/linux/
A Dphy.h493 enum phy_state { enum
629 enum phy_state state;
/linux/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt.h1173 u8 phy_state; member
1806 (bp)->link_info.phy_state == BNXT_PHY_STATE_ENABLED)
/linux/drivers/net/ethernet/freescale/
A Dfec_mpc52xx.c69 enum phy_state link;
/linux/drivers/net/usb/
A Dr8152.c6594 u16 phy_state = ocp_reg_read(tp, OCP_PHY_STATE) & 0xff; in rtl8153_in_nway() local
6596 if (phy_state == TXDIS_STATE || phy_state == ABD_STATE) in rtl8153_in_nway()

Completed in 247 milliseconds

12