/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_selftest.c | 143 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 D | en_ethtool.c | 553 (priv->port_state.flags & MLX4_EN_PORT_ANE)) in mlx4_en_autoneg_get() 812 = (priv->port_state.flags & MLX4_EN_PORT_ANC) ? in ethtool_get_ptys_link_ksettings() 821 if (priv->port_state.flags & MLX4_EN_PORT_ANC) in ethtool_get_ptys_link_ksettings() 850 trans_type = priv->port_state.transceiver; in ethtool_get_default_link_ksettings() 879 priv->port_state.flags & MLX4_EN_PORT_ANC, in mlx4_en_get_link_ksettings() 880 priv->port_state.flags & MLX4_EN_PORT_ANE); in mlx4_en_get_link_ksettings() 888 link_ksettings->base.speed = priv->port_state.link_speed; in mlx4_en_get_link_ksettings()
|
/openbmc/qemu/hw/i386/ |
H A D | vmport.c | 81 static VMPortState *port_state; variable 86 assert(port_state); in vmport_register() 89 port_state->func[command] = func; in vmport_register() 90 port_state->opaque[command] = opaque; in vmport_register() 165 if (port_state->compat_flags & VMPORT_COMPAT_REPORT_VMX_TYPE) { in vmport_cmd_get_version() 166 cpu->env.regs[R_ECX] = port_state->vmware_vmx_type; in vmport_cmd_get_version() 168 return port_state->vmware_vmx_version; in vmport_cmd_get_version() 242 port_state = s; in vmport_realizefn()
|
/openbmc/linux/drivers/scsi/ |
H A D | scsi_transport_fc.c | 425 fc_host->port_state = FC_PORTSTATE_UNKNOWN; in fc_host_setup() 1244 enum fc_port_state port_state; in fc_rport_set_marginal_state() local 1250 if (port_state == FC_PORTSTATE_MARGINAL) { in fc_rport_set_marginal_state() 1257 rport->port_state = port_state; in fc_rport_set_marginal_state() 1258 else if (port_state != rport->port_state) in fc_rport_set_marginal_state() 1267 rport->port_state = port_state; in fc_rport_set_marginal_state() 1268 else if (port_state != rport->port_state) in fc_rport_set_marginal_state() 2701 SETUP_HOST_ATTRIBUTE_RD(port_state); in fc_attach_transport() 2899 rport->port_state = FC_PORTSTATE_DELETED; in fc_remove_host() 3076 rport->port_state = FC_PORTSTATE_ONLINE; in fc_remote_port_create() [all …]
|
/openbmc/linux/drivers/scsi/lpfc/ |
H A D | lpfc_vport.c | 76 vport->port_state = LPFC_VPORT_FAILED; in lpfc_vport_set_state() 79 vport->port_state = LPFC_VPORT_UNKNOWN; in lpfc_vport_set_state() 259 ((vport->port_state > LPFC_VPORT_FAILED) && in lpfc_discovery_wait() 260 (vport->port_state < LPFC_VPORT_READY))) { in lpfc_discovery_wait() 266 vport->port_state, vport->fc_flag, in lpfc_discovery_wait() 276 vport->port_state, vport->fc_flag, in lpfc_discovery_wait() 287 vport->port_state, vport->fc_flag, in lpfc_discovery_wait() 665 vport->port_state > LPFC_VPORT_FAILED && in lpfc_vport_delete() 666 vport->port_state < LPFC_VPORT_READY) { in lpfc_vport_delete() 670 if (vport->port_state > LPFC_VPORT_FAILED && in lpfc_vport_delete() [all …]
|
H A D | lpfc_hbadisc.c | 412 ndlp->nlp_flag, vport->port_state); in lpfc_check_nlp_post_devloss() 531 vport->port_state); in lpfc_dev_loss_tmo_handler() 547 vport->port_state); in lpfc_dev_loss_tmo_handler() 1570 status, vport->port_state); in lpfc_mbx_cmpl_local_config_link() 1577 vport->port_state); in lpfc_mbx_cmpl_local_config_link() 1614 vport->port_state); in lpfc_mbx_cmpl_reg_fcfi() 2746 phba->pport->port_state, in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 5035 vport->port_state, tmo, in lpfc_set_disctmo() 6186 switch (vport->port_state) { in lpfc_disc_timeout_handler() 6942 rc, phba->pport->port_state); in lpfc_sli4_unregister_fcf() [all …]
|
H A D | lpfc_els.c | 116 phba->pport->port_state); in lpfc_els_chk_latt() 306 cmd_size, vport->port_state, in lpfc_prep_els_iocb() 535 rc, phba->pport->port_state); in lpfc_issue_unreg_vfi() 980 vport->port_state); in lpfc_cmpl_els_flogi() 1536 vport->port_state = LPFC_FLOGI; in lpfc_initial_flogi() 8183 vport->port_state); in lpfc_els_rcv_rscn() 8192 vport->port_state); in lpfc_els_rcv_rscn() 8348 uint32_t port_state = 0; in lpfc_els_rcv_flogi() local 8437 port_state = vport->port_state; in lpfc_els_rcv_flogi() 8449 port_state, vport->port_state, in lpfc_els_rcv_flogi() [all …]
|
H A D | lpfc_ct.c | 632 vport->port_state); in lpfc_gen_req() 967 vport->port_state, vport->gidft_inp); in lpfc_cmpl_ct_cmd_gid_ft() 1115 if (vport->port_state >= LPFC_DISC_AUTH) { in lpfc_cmpl_ct_cmd_gid_ft() 1190 vport->port_state, vport->gidft_inp); in lpfc_cmpl_ct_cmd_gid_pt() 1335 if (vport->port_state >= LPFC_DISC_AUTH) { in lpfc_cmpl_ct_cmd_gid_pt() 1482 if (vport->port_state >= LPFC_DISC_AUTH) { in lpfc_cmpl_ct_cmd_gff_id() 2011 if (vport->port_state < LPFC_NS_QRY) in lpfc_ns_cmd() 2012 vport->port_state = LPFC_NS_QRY; in lpfc_ns_cmd() 2023 if (vport->port_state < LPFC_NS_QRY) in lpfc_ns_cmd() 2024 vport->port_state = LPFC_NS_QRY; in lpfc_ns_cmd() [all …]
|
/openbmc/linux/include/linux/ |
H A D | nvme-fc-driver.h | 291 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
|
/openbmc/linux/drivers/net/bonding/ |
H A D | bond_3ad.c | 502 partner->port_state = lacpdu->actor_state; in __record_pdu() 512 partner->port_state |= LACP_STATE_SYNCHRONIZATION; in __record_pdu() 516 partner->port_state &= ~LACP_STATE_SYNCHRONIZATION; in __record_pdu() 601 (admin->port_state & LACP_STATE_AGGREGATION) in __update_default_selected() 602 != (oper->port_state & LACP_STATE_AGGREGATION)) { in __update_default_selected() 827 lacpdu->partner_state = partner->port_state; in __update_lacpdu_from_port() 1188 port->partner_oper.port_state &= ~LACP_STATE_AGGREGATION; in ad_rx_machine() 1201 port->partner_oper.port_state |= LACP_STATE_LACP_TIMEOUT; in ad_rx_machine() 1337 if (!(port->partner_oper.port_state in ad_periodic_machine() 1357 if (!(port->partner_oper.port_state & in ad_periodic_machine() [all …]
|
H A D | bond_sysfs_slave.c | 98 ad_port->partner_oper.port_state); in ad_partner_oper_port_state_show()
|
/openbmc/linux/drivers/nvme/host/ |
H A D | fc.c | 315 lport->localport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_attach_to_unreg_lport() 421 newrec->localport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_register_localport() 466 if (portptr->port_state != FC_OBJSTATE_ONLINE) { in nvme_fc_unregister_localport() 470 portptr->port_state = FC_OBJSTATE_DELETED; in nvme_fc_unregister_localport() 615 rport->remoteport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_attach_to_suspended_rport() 734 newrec->remoteport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_register_remoteport() 857 if (portptr->port_state != FC_OBJSTATE_ONLINE) { in nvme_fc_unregister_remoteport() 861 portptr->port_state = FC_OBJSTATE_DELETED; in nvme_fc_unregister_remoteport() 920 if (portptr->port_state != FC_OBJSTATE_ONLINE) { in nvme_fc_set_remoteport_devloss() 3304 if (portptr->port_state == FC_OBJSTATE_ONLINE) { in nvme_fc_reconnect_or_delete() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_selftest.c | 49 u8 port_state; in mlx5e_test_link_state() local 54 port_state = mlx5_query_vport_state(priv->mdev, MLX5_VPORT_STATE_OP_MOD_VNIC_VPORT, 0); in mlx5e_test_link_state() 55 return port_state == VPORT_STATE_UP ? 0 : 1; in mlx5e_test_link_state()
|
/openbmc/linux/drivers/scsi/qedi/ |
H A D | qedi_sysfs.c | 42 static DEVICE_ATTR_RO(port_state);
|
/openbmc/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_port.c | 271 struct hinic_port_state_cmd port_state; in hinic_port_set_state() local 274 u16 out_size = sizeof(port_state); in hinic_port_set_state() 280 port_state.state = state; in hinic_port_set_state() 283 &port_state, sizeof(port_state), in hinic_port_set_state() 284 &port_state, &out_size); in hinic_port_set_state() 285 if (err || out_size != sizeof(port_state) || port_state.status) { in hinic_port_set_state() 287 err, port_state.status, out_size); in hinic_port_set_state()
|
/openbmc/u-boot/drivers/ata/ |
H A D | sata_sil3114.h | 33 unsigned char port_state; /* 1-port is available and */ member
|
H A D | sata_sil3114.c | 811 port[dev].port_state = 0; in scan_sata() 819 port[dev].port_state = 0; in scan_sata() 821 port[dev].port_state = 1; in scan_sata() 824 port[dev].port_state = 1; in scan_sata() 827 if (port[dev].port_state == 1) { in scan_sata()
|
/openbmc/linux/include/scsi/ |
H A D | scsi_transport_fc.h | 367 enum fc_port_state port_state; /* Will only be ONLINE or UNKNOWN */ member 556 enum fc_port_state port_state; member 630 (((struct fc_host_attrs *)(x)->shost_data)->port_state) 783 switch (rport->port_state) { in fc_remote_port_chkready()
|
H A D | scsi_transport_iscsi.h | 297 uint32_t port_state; member 506 iscsi_get_ipaddress_state_name(enum iscsi_ipaddress_state port_state);
|
/openbmc/linux/net/bridge/ |
H A D | br_mrp.c | 594 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()
|
/openbmc/linux/drivers/s390/scsi/ |
H A D | zfcp_unit.c | 29 if (rport && rport->port_state == FC_PORTSTATE_ONLINE) in zfcp_unit_scsi_scan()
|
/openbmc/linux/drivers/message/fusion/ |
H A D | mptfc.c | 979 unsigned port_state; in mptfc_init_host_attr() local 1041 port_state = FC_PORTSTATE_UNKNOWN; in mptfc_init_host_attr() 1043 port_state = FC_PORTSTATE_ONLINE; in mptfc_init_host_attr() 1045 port_state = FC_PORTSTATE_LINKDOWN; in mptfc_init_host_attr() 1046 fc_host_port_state(sh) = port_state; in mptfc_init_host_attr()
|
/openbmc/linux/drivers/scsi/hisi_sas/ |
H A D | hisi_sas_v2_hw.c | 1634 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 …]
|
/openbmc/linux/include/net/ |
H A D | bond_3ad.h | 202 u16 port_state; member
|
/openbmc/qemu/hw/ide/ |
H A D | ahci-internal.h | 312 uint32_t port_state; member
|