/Linux-v4.19/drivers/net/phy/ |
D | uPD60620.c | 42 int phy_state; in upd60620_read_status() local 45 phy_state = phy_read(phydev, MII_BMSR); in upd60620_read_status() 46 if (phy_state < 0) in upd60620_read_status() 47 return phy_state; in upd60620_read_status() 54 if (phy_state & (BMSR_ANEGCOMPLETE | BMSR_LSTATUS)) { in upd60620_read_status() 55 phy_state = phy_read(phydev, PHY_PHYSCR); in upd60620_read_status() 56 if (phy_state < 0) in upd60620_read_status() 57 return phy_state; in upd60620_read_status() 59 if (phy_state & (PHY_PHYSCR_10MB | PHY_PHYSCR_100MB)) { in upd60620_read_status() 64 if (phy_state & PHY_PHYSCR_100MB) in upd60620_read_status() [all …]
|
D | phylink.c | 63 struct phylink_link_state phy_state; member 433 link_state = pl->phy_state; in phylink_resolve() 449 pl->phy_state.link; in phylink_resolve() 451 if (pl->phy_state.interface != in phylink_resolve() 453 link_state.interface = pl->phy_state.interface; in phylink_resolve() 461 if (pl->phy_state.link || changed) { in phylink_resolve() 462 link_state.pause |= pl->phy_state.pause; in phylink_resolve() 476 pl->phy_state.interface); in phylink_resolve() 480 pl->phy_state.interface, in phylink_resolve() 573 pl->phy_state.interface = iface; in phylink_create() [all …]
|
D | phy.c | 45 static const char *phy_state_to_str(enum phy_state st) in phy_state_to_str() 938 enum phy_state old_state; in phy_state_machine()
|
/Linux-v4.19/drivers/scsi/libsas/ |
D | sas_expander.c | 234 phy->phy_state = PHY_VACANT; in sas_set_ex_phy() 237 phy->phy_state = PHY_NOT_PRESENT; in sas_set_ex_phy() 240 phy->phy_state = PHY_EMPTY; /* do not know yet */ in sas_set_ex_phy() 250 if (phy->phy_state == PHY_VACANT) { in sas_set_ex_phy() 641 if (phy->phy_state == PHY_VACANT || in sas_ex_disable_port() 642 phy->phy_state == PHY_NOT_PRESENT) in sas_ex_disable_port() 766 if (phy->phy_state == PHY_VACANT || in sas_ex_get_linkrate() 767 phy->phy_state == PHY_NOT_PRESENT) in sas_ex_get_linkrate() 911 phy->phy_state = PHY_DEVICE_DISCOVERED; in sas_ex_join_wide_port() 1094 if (ex->ex_phy[i].phy_state == PHY_VACANT || in sas_ex_discover_dev() [all …]
|
/Linux-v4.19/drivers/net/ethernet/emulex/benet/ |
D | be_cmds.h | 195 #define be_phy_state_unknown(phy_state) (phy_state > BE_PHY_UNCERTIFIED) argument 196 #define be_phy_unqualified(phy_state) \ argument 197 (phy_state == BE_PHY_UNQUALIFIED || \ 198 phy_state == BE_PHY_UNCERTIFIED) 199 #define be_phy_misconfigured(phy_state) \ argument 200 (phy_state == BE_PHY_INCOMPATIBLE || \ 201 phy_state == BE_PHY_UNQUALIFIED || \ 202 phy_state == BE_PHY_UNCERTIFIED)
|
D | be.h | 676 u8 phy_state; /* state of sfp optics (functional, faulted, etc.,) */ member
|
D | be_cmds.c | 328 if (new_phy_state == adapter->phy_state) in be_async_port_misconfig_event_process() 331 adapter->phy_state = new_phy_state; in be_async_port_misconfig_event_process()
|
D | be_main.c | 4395 adapter->phy_state = BE_UNKNOWN_PHY_STATE; in be_setup_init() 5607 be_misconfig_evt_port_state[adapter->phy_state], in be_log_sfp_info()
|
/Linux-v4.19/drivers/scsi/hisi_sas/ |
D | hisi_sas_v3_hw.c | 847 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in get_wideport_bitmap_v3_hw() local 850 if (phy_state & BIT(i)) in get_wideport_bitmap_v3_hw() 1262 u32 phy_state, sl_ctrl, txid_auto; in phy_down_v3_hw() local 1267 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in phy_down_v3_hw() 1268 dev_info(dev, "phydown: phy%d phy_state=0x%x\n", phy_no, phy_state); in phy_down_v3_hw() 1269 hisi_sas_phy_down(hisi_hba, phy_no, (phy_state & 1 << phy_no) ? 1 : 0); in phy_down_v3_hw() 1317 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in int_phy_up_down_bcast_v3_hw() local 1318 int rdy = phy_state & (1 << phy_no); in int_phy_up_down_bcast_v3_hw()
|
D | hisi_sas_v2_hw.c | 1620 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in get_wideport_bitmap_v2_hw() local 1623 if (phy_state & 1 << i) in get_wideport_bitmap_v2_hw() 1630 if (phy_state & 1 << 8) in get_wideport_bitmap_v2_hw() 2750 u32 phy_state, sl_ctrl, txid_auto; in phy_down_v2_hw() local 2757 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in phy_down_v2_hw() 2758 dev_info(dev, "phydown: phy%d phy_state=0x%x\n", phy_no, phy_state); in phy_down_v2_hw() 2759 hisi_sas_phy_down(hisi_hba, phy_no, (phy_state & 1 << phy_no) ? 1 : 0); in phy_down_v2_hw()
|
D | hisi_sas.h | 323 u32 phy_state; member
|
D | hisi_sas_v1_hw.c | 1501 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in int_abnormal_v1_hw() local 1504 (phy_state & 1 << phy_no) ? 1 : 0); in int_abnormal_v1_hw()
|
D | hisi_sas_main.c | 1314 hisi_hba->phy_state = hisi_hba->hw->get_phys_state(hisi_hba); in hisi_sas_controller_reset_prepare() 1345 hisi_sas_rescan_topology(hisi_hba, hisi_hba->phy_state, state); in hisi_sas_controller_reset_done()
|
/Linux-v4.19/drivers/scsi/pm8001/ |
D | pm8001_hwi.c | 108 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() 3385 phy->phy_state = PHY_STATE_LINK_UP_SPC; in hw_event_sas_phy_up() 3466 phy->phy_state = PHY_STATE_LINK_UP_SPC; in hw_event_sata_phy_up() [all …]
|
D | pm8001_sas.h | 263 u8 phy_state; member 427 u32 phy_state[8]; member
|
D | pm8001_sas.c | 175 if (pm8001_ha->phy[phy_id].phy_state == 0) { in pm8001_phy_control() 183 if (pm8001_ha->phy[phy_id].phy_state == 0) { in pm8001_phy_control() 191 if (pm8001_ha->phy[phy_id].phy_state == 0) { in pm8001_phy_control()
|
D | pm80xx_hwi.c | 2894 phy->phy_state = PHY_STATE_LINK_UP_SPCV; in hw_event_port_recover() 2926 phy->phy_state = PHY_STATE_LINK_UP_SPCV; in hw_event_sas_phy_up() 3011 phy->phy_state = PHY_STATE_LINK_UP_SPCV; in hw_event_sata_phy_up() 3121 phy->phy_state = 1; in mpi_phy_start_resp() 3214 phy->phy_state = 0; in mpi_hw_event() 3393 phy->phy_state = 0; in mpi_phy_stop_resp()
|
D | pm8001_init.c | 124 phy->phy_state = 0; in pm8001_phy_init()
|
/Linux-v4.19/include/linux/ |
D | phy.h | 341 enum phy_state { enum 421 enum phy_state state;
|
/Linux-v4.19/include/scsi/ |
D | libsas.h | 112 enum ex_phy_state phy_state; member
|
/Linux-v4.19/drivers/net/ethernet/freescale/ |
D | fec_mpc52xx.c | 69 enum phy_state link;
|
/Linux-v4.19/drivers/net/fddi/ |
D | defxx.h | 709 PI_UINT32 phy_state[PI_PHY_K_MAX]; member
|
/Linux-v4.19/drivers/net/usb/ |
D | r8152.c | 3783 u16 phy_state = ocp_reg_read(tp, OCP_PHY_STATE) & 0xff; in rtl8153_in_nway() local 3785 if (phy_state == TXDIS_STATE || phy_state == ABD_STATE) in rtl8153_in_nway()
|