/Linux-v5.4/drivers/net/phy/ |
D | uPD60620.c | 37 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() 49 if (phy_state & (BMSR_ANEGCOMPLETE | BMSR_LSTATUS)) { in upd60620_read_status() 50 phy_state = phy_read(phydev, PHY_PHYSCR); in upd60620_read_status() 51 if (phy_state < 0) in upd60620_read_status() 52 return phy_state; in upd60620_read_status() 54 if (phy_state & (PHY_PHYSCR_10MB | PHY_PHYSCR_100MB)) { in upd60620_read_status() 59 if (phy_state & PHY_PHYSCR_100MB) in upd60620_read_status() [all …]
|
D | phylink.c | 68 struct phylink_link_state phy_state; member 447 pl->phy_state.interface, in phylink_mac_link_up() 487 link_state = pl->phy_state; in phylink_resolve() 503 link_state.link &= pl->phy_state.link; in phylink_resolve() 506 if (pl->phydev && pl->phy_state.link) { in phylink_resolve() 507 link_state.interface = pl->phy_state.interface; in phylink_resolve() 511 link_state.pause |= pl->phy_state.pause; in phylink_resolve() 634 pl->phy_state.interface = iface; in phylink_create() 704 pl->phy_state.speed = phydev->speed; in phylink_phy_change() 705 pl->phy_state.duplex = phydev->duplex; in phylink_phy_change() [all …]
|
D | phy.c | 38 static const char *phy_state_to_str(enum phy_state st) in phy_state_to_str() 899 enum phy_state old_state; in phy_state_machine()
|
/Linux-v5.4/drivers/scsi/libsas/ |
D | sas_expander.c | 220 phy->phy_state = PHY_VACANT; in sas_set_ex_phy() 223 phy->phy_state = PHY_NOT_PRESENT; in sas_set_ex_phy() 226 phy->phy_state = PHY_EMPTY; /* do not know yet */ 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() 760 phy->phy_state == PHY_NOT_PRESENT) in sas_ex_get_linkrate() 929 phy->phy_state = PHY_DEVICE_DISCOVERED; in sas_ex_join_wide_port() 1121 if (phy->phy_state == PHY_VACANT || in sas_find_sub_addr() [all …]
|
/Linux-v5.4/drivers/net/ethernet/emulex/benet/ |
D | be_cmds.h | 191 #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)
|
D | be.h | 673 u8 phy_state; /* state of sfp optics (functional, faulted, etc.,) */ member
|
D | be_cmds.c | 324 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()
|
D | be_main.c | 4391 adapter->phy_state = BE_UNKNOWN_PHY_STATE; in be_setup_init() 5612 be_misconfig_evt_port_state[adapter->phy_state], in be_log_sfp_info()
|
/Linux-v5.4/drivers/scsi/pm8001/ |
D | pm8001_sas.c | 178 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() 216 if (pm8001_ha->phy[phy_id].phy_state == in pm8001_phy_control()
|
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() 3389 phy->phy_state = PHY_STATE_LINK_UP_SPC; in hw_event_sas_phy_up() 3470 phy->phy_state = PHY_STATE_LINK_UP_SPC; in hw_event_sata_phy_up() [all …]
|
D | pm8001_sas.h | 262 u8 phy_state; member 426 u32 phy_state[8]; member
|
D | pm80xx_hwi.c | 2904 phy->phy_state = PHY_STATE_LINK_UP_SPCV; in hw_event_port_recover() 2936 phy->phy_state = PHY_STATE_LINK_UP_SPCV; in hw_event_sas_phy_up() 3021 phy->phy_state = PHY_STATE_LINK_UP_SPCV; in hw_event_sata_phy_up() 3131 phy->phy_state = PHY_LINK_DOWN; in mpi_phy_start_resp() 3225 phy->phy_state = PHY_LINK_DISABLE; in mpi_hw_event() 3405 phy->phy_state = PHY_LINK_DISABLE; in mpi_phy_stop_resp()
|
D | pm8001_init.c | 123 phy->phy_state = PHY_LINK_DISABLE; in pm8001_phy_init()
|
/Linux-v5.4/drivers/scsi/hisi_sas/ |
D | hisi_sas_v3_hw.c | 1012 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in get_wideport_bitmap_v3_hw() local 1015 if (phy_state & BIT(i)) in get_wideport_bitmap_v3_hw() 1542 u32 phy_state, sl_ctrl, txid_auto; in phy_down_v3_hw() local 1548 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in phy_down_v3_hw() 1549 dev_info(dev, "phydown: phy%d phy_state=0x%x\n", phy_no, phy_state); in phy_down_v3_hw() 1550 hisi_sas_phy_down(hisi_hba, phy_no, (phy_state & 1 << phy_no) ? 1 : 0); in phy_down_v3_hw() 1598 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in int_phy_up_down_bcast_v3_hw() local 1599 int rdy = phy_state & (1 << phy_no); in int_phy_up_down_bcast_v3_hw()
|
D | hisi_sas_v2_hw.c | 1621 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in get_wideport_bitmap_v2_hw() local 1624 if (phy_state & 1 << i) in get_wideport_bitmap_v2_hw() 1631 if (phy_state & 1 << 8) in get_wideport_bitmap_v2_hw() 2724 u32 phy_state, sl_ctrl, txid_auto; in phy_down_v2_hw() local 2732 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in phy_down_v2_hw() 2733 dev_info(dev, "phydown: phy%d phy_state=0x%x\n", phy_no, phy_state); in phy_down_v2_hw() 2734 hisi_sas_phy_down(hisi_hba, phy_no, (phy_state & 1 << phy_no) ? 1 : 0); in phy_down_v2_hw()
|
D | hisi_sas.h | 388 u32 phy_state; member
|
D | hisi_sas_v1_hw.c | 1453 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in int_abnormal_v1_hw() local 1456 (phy_state & 1 << phy_no) ? 1 : 0); in int_abnormal_v1_hw()
|
D | hisi_sas_main.c | 1525 hisi_hba->phy_state = hisi_hba->hw->get_phys_state(hisi_hba); in hisi_sas_controller_reset_prepare()
|
/Linux-v5.4/include/linux/ |
D | phy.h | 309 enum phy_state { enum 386 enum phy_state state;
|
/Linux-v5.4/drivers/net/fddi/ |
D | defza.h | 553 u32 phy_state; /* PHY state */ member
|
D | defxx.h | 709 PI_UINT32 phy_state[PI_PHY_K_MAX]; member
|
/Linux-v5.4/include/scsi/ |
D | libsas.h | 95 enum ex_phy_state phy_state; member
|
/Linux-v5.4/drivers/net/ethernet/freescale/ |
D | fec_mpc52xx.c | 69 enum phy_state link;
|
/Linux-v5.4/drivers/net/usb/ |
D | r8152.c | 4095 u16 phy_state = ocp_reg_read(tp, OCP_PHY_STATE) & 0xff; in rtl8153_in_nway() local 4097 if (phy_state == TXDIS_STATE || phy_state == ABD_STATE) in rtl8153_in_nway()
|