/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 | 73 struct phylink_link_state phy_state; member 578 link_state = pl->phy_state; in phylink_mac_initial_config() 678 link_state = pl->phy_state; in phylink_resolve() 708 link_state.link &= pl->phy_state.link; in phylink_resolve() 711 if (pl->phydev && pl->phy_state.link) { in phylink_resolve() 717 pl->phy_state.interface) { in phylink_resolve() 721 link_state.interface = pl->phy_state.interface; in phylink_resolve() 726 link_state.pause = pl->phy_state.pause; in phylink_resolve() 864 pl->phy_state.interface = iface; in phylink_create() 958 pl->phy_state.speed = phydev->speed; in phylink_phy_change() [all …]
|
D | phy.c | 45 static const char *phy_state_to_str(enum phy_state st) in phy_state_to_str() 61 enum phy_state old_state) in phy_process_state_change() 1076 enum phy_state old_state; in phy_stop() 1155 enum phy_state old_state; in phy_state_machine()
|
/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 …]
|
/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 | 670 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 | 4408 adapter->phy_state = BE_UNKNOWN_PHY_STATE; in be_setup_init() 5483 be_misconfig_evt_port_state[adapter->phy_state], in be_log_sfp_info()
|
/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() 215 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() 3352 phy->phy_state = PHY_STATE_LINK_UP_SPC; in hw_event_sas_phy_up() 3428 phy->phy_state = PHY_STATE_LINK_UP_SPC; in hw_event_sata_phy_up() [all …]
|
D | pm8001_sas.h | 248 u8 phy_state; member 411 u32 phy_state[8]; member
|
D | pm80xx_hwi.c | 3297 phy->phy_state = PHY_STATE_LINK_UP_SPCV; in hw_event_port_recover() 3328 phy->phy_state = PHY_STATE_LINK_UP_SPCV; in hw_event_sas_phy_up() 3408 phy->phy_state = PHY_STATE_LINK_UP_SPCV; in hw_event_sata_phy_up() 3515 phy->phy_state = PHY_LINK_DOWN; in mpi_phy_start_resp() 3607 phy->phy_state = PHY_LINK_DISABLE; in mpi_hw_event() 3780 phy->phy_state = PHY_LINK_DISABLE; in mpi_phy_stop_resp()
|
D | pm8001_init.c | 142 phy->phy_state = PHY_LINK_DISABLE; in pm8001_phy_init()
|
/drivers/scsi/hisi_sas/ |
D | hisi_sas_v2_hw.c | 1626 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() 2734 u32 phy_state, sl_ctrl, txid_auto; in phy_down_v2_hw() local 2742 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in phy_down_v2_hw() 2743 dev_info(dev, "phydown: phy%d phy_state=0x%x\n", phy_no, phy_state); in phy_down_v2_hw() 2744 hisi_sas_phy_down(hisi_hba, phy_no, (phy_state & 1 << phy_no) ? 1 : 0, in phy_down_v2_hw()
|
D | hisi_sas_v3_hw.c | 1061 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in get_wideport_bitmap_v3_hw() local 1064 if (phy_state & BIT(i)) in get_wideport_bitmap_v3_hw() 1589 u32 phy_state, sl_ctrl, txid_auto; in phy_down_v3_hw() local 1597 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in phy_down_v3_hw() 1598 dev_info(dev, "phydown: phy%d phy_state=0x%x\n", phy_no, phy_state); in phy_down_v3_hw() 1599 hisi_sas_phy_down(hisi_hba, phy_no, (phy_state & 1 << phy_no) ? 1 : 0, in phy_down_v3_hw() 1648 u32 phy_state = hisi_sas_read32(hisi_hba, PHY_STATE); in int_phy_up_down_bcast_v3_hw() local 1649 int rdy = phy_state & (1 << phy_no); in int_phy_up_down_bcast_v3_hw()
|
D | hisi_sas.h | 461 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 | 1551 hisi_hba->phy_state = hisi_hba->hw->get_phys_state(hisi_hba); in hisi_sas_controller_reset_prepare() 1580 hisi_sas_rescan_topology(hisi_hba, hisi_hba->phy_state); in hisi_sas_controller_reset_done()
|
/drivers/net/fddi/ |
D | defza.h | 553 u32 phy_state; /* PHY state */ member
|
D | defxx.h | 710 PI_UINT32 phy_state[PI_PHY_K_MAX]; member
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt.h | 1167 u8 phy_state; member 1735 (bp)->link_info.phy_state == BNXT_PHY_STATE_ENABLED)
|
D | bnxt.c | 9381 link_info->phy_state = BNXT_PHY_STATE_DISABLED; in bnxt_hwrm_phy_qcaps() 9383 } else if (link_info->phy_state == BNXT_PHY_STATE_DISABLED) { in bnxt_hwrm_phy_qcaps() 9384 link_info->phy_state = BNXT_PHY_STATE_ENABLED; in bnxt_hwrm_phy_qcaps()
|
/drivers/net/ethernet/freescale/ |
D | fec_mpc52xx.c | 69 enum phy_state link;
|
/drivers/net/usb/ |
D | r8152.c | 6652 u16 phy_state = ocp_reg_read(tp, OCP_PHY_STATE) & 0xff; in rtl8153_in_nway() local 6654 if (phy_state == TXDIS_STATE || phy_state == ABD_STATE) in rtl8153_in_nway()
|