Home
last modified time | relevance | path

Searched refs:port_state (Results 1 – 25 of 58) sorted by relevance

123

/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_selftest.c143 if (priv->port_state.link_state == 1) in mlx4_en_test_link()
156 if (priv->port_state.link_speed != SPEED_100 && in mlx4_en_test_speed()
157 priv->port_state.link_speed != SPEED_1000 && in mlx4_en_test_speed()
158 priv->port_state.link_speed != SPEED_10000 && in mlx4_en_test_speed()
159 priv->port_state.link_speed != SPEED_20000 && in mlx4_en_test_speed()
160 priv->port_state.link_speed != SPEED_40000 && in mlx4_en_test_speed()
161 priv->port_state.link_speed != SPEED_56000) in mlx4_en_test_speed()
162 return priv->port_state.link_speed; in mlx4_en_test_speed()
H A Den_ethtool.c534 (priv->port_state.flags & MLX4_EN_PORT_ANE)) in mlx4_en_autoneg_get()
793 = (priv->port_state.flags & MLX4_EN_PORT_ANC) ? in ethtool_get_ptys_link_ksettings()
802 if (priv->port_state.flags & MLX4_EN_PORT_ANC) in ethtool_get_ptys_link_ksettings()
831 trans_type = priv->port_state.transceiver; in ethtool_get_default_link_ksettings()
860 priv->port_state.flags & MLX4_EN_PORT_ANC, in mlx4_en_get_link_ksettings()
861 priv->port_state.flags & MLX4_EN_PORT_ANE); in mlx4_en_get_link_ksettings()
869 link_ksettings->base.speed = priv->port_state.link_speed; in mlx4_en_get_link_ksettings()
/linux/drivers/scsi/
H A Dscsi_transport_fc.c167 fc_enum_name_search(port_state, fc_port_state, fc_port_state_names)
168 fc_enum_name_match(port_state, fc_port_state, fc_port_state_names)
425 fc_host->port_state = FC_PORTSTATE_UNKNOWN; in fc_host_setup()
656 if (rport->port_state != FC_PORTSTATE_ONLINE) in fc_find_rport_by_wwpn()
990 !((rport->port_state == FC_PORTSTATE_BLOCKED) || \
991 (rport->port_state == FC_PORTSTATE_DELETED) || \
992 (rport->port_state == FC_PORTSTATE_NOTPRESENT))) \
1008 if ((rport->port_state == FC_PORTSTATE_BLOCKED) || \
1009 (rport->port_state == FC_PORTSTATE_DELETED) || \
1010 (rport->port_state == FC_PORTSTATE_NOTPRESENT)) \
[all …]
/linux/drivers/scsi/lpfc/
H A Dlpfc_vport.c76 vport->port_state = LPFC_VPORT_FAILED; in lpfc_vport_set_state()
79 vport->port_state = LPFC_VPORT_UNKNOWN; in lpfc_vport_set_state()
260 ((vport->port_state > LPFC_VPORT_FAILED) && in lpfc_discovery_wait()
261 (vport->port_state < LPFC_VPORT_READY))) { in lpfc_discovery_wait()
267 vport->port_state, vport->fc_flag, in lpfc_discovery_wait()
277 vport->port_state, vport->fc_flag, in lpfc_discovery_wait()
288 vport->port_state, vport->fc_flag, in lpfc_discovery_wait()
446 (pport->port_state < LPFC_FABRIC_CFG_LINK) || in lpfc_vport_create()
655 vport->port_state > LPFC_VPORT_FAILED && in lpfc_vport_delete()
656 vport->port_state < LPFC_VPORT_READY) { in lpfc_vport_delete()
[all …]
H A Dlpfc_hbadisc.c424 ndlp->nlp_flag, vport->port_state); in lpfc_check_nlp_post_devloss()
541 vport->port_state); in lpfc_dev_loss_tmo_handler()
556 vport->port_state); in lpfc_dev_loss_tmo_handler()
1219 vport->port_state, vport->fc_ns_retry, vport->fc_flag); in lpfc_linkdown_port()
1462 mb->mbxStatus, vport->port_state); in lpfc_mbx_cmpl_clear_la()
1536 if (vport->port_state != LPFC_FLOGI) { in lpfc_mbx_cmpl_local_config_link()
1574 status, vport->port_state); in lpfc_mbx_cmpl_local_config_link()
1581 vport->port_state); in lpfc_mbx_cmpl_local_config_link()
1618 vport->port_state); in lpfc_mbx_cmpl_reg_fcfi()
1639 if (vport->port_state != LPFC_FLOGI) { in lpfc_mbx_cmpl_reg_fcfi()
[all …]
H A Dlpfc_els.c99 if (vport->port_state >= LPFC_VPORT_READY || in lpfc_els_chk_latt()
115 phba->pport->port_state); in lpfc_els_chk_latt()
303 vport->port_state, ndlp->nlp_rpi, in lpfc_prep_els_iocb()
312 cmd_size, vport->port_state, in lpfc_prep_els_iocb()
372 vport->port_state = LPFC_FABRIC_CFG_LINK; in lpfc_issue_fabric_reglogin()
479 vport->port_state = LPFC_FABRIC_CFG_LINK; in lpfc_issue_reg_vfi()
528 "HBA state x%x\n", phba->pport->port_state); in lpfc_issue_unreg_vfi()
541 rc, phba->pport->port_state); in lpfc_issue_unreg_vfi()
957 vport->port_state); in lpfc_cmpl_els_flogi()
1094 vport->port_state, vport->fc_flag, in lpfc_cmpl_els_flogi()
[all …]
H A Dlpfc_ct.c632 vport->port_state); in lpfc_gen_req()
962 vport->port_state, vport->gidft_inp); in lpfc_cmpl_ct_cmd_gid_ft()
1105 if (vport->port_state >= LPFC_DISC_AUTH) { in lpfc_cmpl_ct_cmd_gid_ft()
1178 vport->port_state, vport->gidft_inp); in lpfc_cmpl_ct_cmd_gid_pt()
1318 if (vport->port_state >= LPFC_DISC_AUTH) { in lpfc_cmpl_ct_cmd_gid_pt()
1463 if (vport->port_state >= LPFC_DISC_AUTH) { in lpfc_cmpl_ct_cmd_gff_id()
1980 if (vport->port_state < LPFC_NS_QRY) in lpfc_ns_cmd()
1981 vport->port_state = LPFC_NS_QRY; in lpfc_ns_cmd()
1992 if (vport->port_state < LPFC_NS_QRY) in lpfc_ns_cmd()
1993 vport->port_state = LPFC_NS_QRY; in lpfc_ns_cmd()
[all …]
H A Dlpfc_nvme.c511 vport->port_state, rc); in lpfc_nvme_gen_req()
522 vport->port_state, in lpfc_nvme_gen_req()
2557 ndlp->nlp_DID, remoteport->port_state); in lpfc_nvme_rescan_port()
2610 remoteport->port_id, remoteport->port_state, in lpfc_nvme_unregister_port()
2647 ret, remoteport->port_state); in lpfc_nvme_unregister_port()
/linux/drivers/net/bonding/
H A Dbond_3ad.c234 !(port->partner_oper.port_state & LACP_STATE_SYNCHRONIZATION) || in __port_move_to_attached_state()
549 partner->port_state = lacpdu->actor_state; in __record_pdu()
559 partner->port_state |= LACP_STATE_SYNCHRONIZATION; in __record_pdu()
563 partner->port_state &= ~LACP_STATE_SYNCHRONIZATION; in __record_pdu()
616 …(lacpdu->actor_state & LACP_STATE_AGGREGATION) != (partner->port_state & LACP_STATE_AGGREGATION)) { in __update_selected()
648 (admin->port_state & LACP_STATE_AGGREGATION) in __update_default_selected()
649 != (oper->port_state & LACP_STATE_AGGREGATION)) { in __update_default_selected()
874 lacpdu->partner_state = partner->port_state; in __update_lacpdu_from_port()
1048 (port->partner_oper.port_state & LACP_STATE_SYNCHRONIZATION) && in ad_mux_machine()
1089 (port->partner_oper.port_state & LACP_STATE_SYNCHRONIZATION) && in ad_mux_machine()
[all …]
H A Dbond_sysfs_slave.c98 ad_port->partner_oper.port_state); in ad_partner_oper_port_state_show()
H A Dbond_procfs.c257 port->partner_oper.port_state); in bond_info_show_slave()
/linux/drivers/nvme/host/
H A Dfc.c246 WARN_ON(lport->localport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_lport()
295 if (lport->localport.port_state != FC_OBJSTATE_DELETED) { in nvme_fc_attach_to_unreg_lport()
314 lport->localport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_attach_to_unreg_lport()
420 newrec->localport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_register_localport()
465 if (portptr->port_state != FC_OBJSTATE_ONLINE) { in nvme_fc_unregister_localport()
469 portptr->port_state = FC_OBJSTATE_DELETED; in nvme_fc_unregister_localport()
521 WARN_ON(rport->remoteport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_rport()
605 if (rport->remoteport.port_state != FC_OBJSTATE_DELETED) { in nvme_fc_attach_to_suspended_rport()
614 rport->remoteport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_attach_to_suspended_rport()
733 newrec->remoteport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_register_remoteport()
[all …]
/linux/include/linux/
H A Dnvme-fc-driver.h291 enum nvme_fc_obj_state port_state; member
335 enum nvme_fc_obj_state port_state; member
759 enum nvme_fc_obj_state port_state; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_selftest.c50 u8 port_state; in mlx5e_test_link_state() local
55 port_state = mlx5_query_vport_state(priv->mdev, MLX5_VPORT_STATE_OP_MOD_VNIC_VPORT, 0); in mlx5e_test_link_state()
56 return port_state == VPORT_STATE_UP ? 0 : 1; in mlx5e_test_link_state()
/linux/include/scsi/
H A Dscsi_transport_fc.h367 enum fc_port_state port_state; /* Will only be ONLINE or UNKNOWN */ member
556 enum fc_port_state port_state; member
628 (((struct fc_host_attrs *)(x)->shost_data)->port_state)
777 switch (rport->port_state) { in fc_remote_port_chkready()
H A Dscsi_transport_iscsi.h297 uint32_t port_state; member
502 iscsi_get_ipaddress_state_name(enum iscsi_ipaddress_state port_state);
/linux/drivers/scsi/qedi/
H A Dqedi_sysfs.c42 static DEVICE_ATTR_RO(port_state);
/linux/net/bridge/
H A Dbr_mrp.c594 u32 port_state; in br_mrp_set_port_state() local
602 port_state = BR_STATE_FORWARDING; in br_mrp_set_port_state()
604 port_state = BR_STATE_BLOCKING; in br_mrp_set_port_state()
606 p->state = port_state; in br_mrp_set_port_state()
609 br_mrp_port_switchdev_set_state(p, port_state); in br_mrp_set_port_state()
/linux/drivers/scsi/hisi_sas/
H A Dhisi_sas_v2_hw.c1634 u32 port_state = hisi_sas_read32(hisi_hba, PORT_STATE); in get_wideport_bitmap_v2_hw() local
1637 if (((port_state & PORT_STATE_PHY8_PORT_NUM_MSK) >> in get_wideport_bitmap_v2_hw()
2662 u32 port_state = hisi_sas_read32(hisi_hba, PORT_STATE); in phy_up_v2_hw() local
2664 port_id = (port_state & PORT_STATE_PHY8_PORT_NUM_MSK) >> in phy_up_v2_hw()
2666 link_rate = (port_state & PORT_STATE_PHY8_CONN_RATE_MSK) >> in phy_up_v2_hw()
2719 u32 port_state; in check_any_wideports_v2_hw() local
2721 port_state = hisi_sas_read32(hisi_hba, PORT_STATE); in check_any_wideports_v2_hw()
2722 if (port_state & 0x1ff) in check_any_wideports_v2_hw()
3240 u32 port_state = hisi_sas_read32(hisi_hba, PORT_STATE); in sata_int_v2_hw() local
3242 port_id = (port_state & PORT_STATE_PHY8_PORT_NUM_MSK) >> in sata_int_v2_hw()
[all …]
/linux/drivers/s390/scsi/
H A Dzfcp_unit.c29 if (rport && rport->port_state == FC_PORTSTATE_ONLINE) in zfcp_unit_scsi_scan()
H A Dzfcp_fsf.h410 u32 port_state; member
/linux/drivers/message/fusion/
H A Dmptfc.c1016 unsigned port_state; in mptfc_init_host_attr() local
1078 port_state = FC_PORTSTATE_UNKNOWN; in mptfc_init_host_attr()
1080 port_state = FC_PORTSTATE_ONLINE; in mptfc_init_host_attr()
1082 port_state = FC_PORTSTATE_LINKDOWN; in mptfc_init_host_attr()
1083 fc_host_port_state(sh) = port_state; in mptfc_init_host_attr()
/linux/include/net/
H A Dbond_3ad.h204 u16 port_state; member
/linux/drivers/scsi/qla2xxx/
H A Dqla_mr.h211 uint8_t port_state; member
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_mng_tlv.c548 p_buf->p_val = &p_drv_buf->port_state; in qed_mfw_get_fcoe_tlv_value()
549 return sizeof(p_drv_buf->port_state); in qed_mfw_get_fcoe_tlv_value()

123