| /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 | 534 (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()
|
| H A D | en_port.c | 76 struct mlx4_en_port_state *state = &priv->port_state; in mlx4_en_QUERY_PORT()
|
| H A D | en_netdev.c | 1278 if (priv->port_state.link_state) { in mlx4_en_do_set_rx_mode() 1568 struct mlx4_en_port_state *port_state = &priv->port_state; in mlx4_en_linkstate() local 1574 port_state->link_state = MLX4_PORT_STATE_DEV_EVENT_PORT_DOWN; in mlx4_en_linkstate() 1576 up = port_state->link_state == MLX4_PORT_STATE_DEV_EVENT_PORT_UP; in mlx4_en_linkstate()
|
| /linux/drivers/scsi/ |
| H A D | scsi_transport_fc.c | 168 fc_enum_name_search(port_state, fc_port_state, fc_port_state_names) 169 fc_enum_name_match(port_state, fc_port_state, fc_port_state_names) 426 fc_host->port_state = FC_PORTSTATE_UNKNOWN; in fc_host_setup() 651 if (rport->port_state != FC_PORTSTATE_ONLINE) in fc_find_rport_by_wwpn() 985 !((rport->port_state == FC_PORTSTATE_BLOCKED) || \ 986 (rport->port_state == FC_PORTSTATE_DELETED) || \ 987 (rport->port_state == FC_PORTSTATE_NOTPRESENT))) \ 1003 if ((rport->port_state == FC_PORTSTATE_BLOCKED) || \ 1004 (rport->port_state == FC_PORTSTATE_DELETED) || \ 1005 (rport->port_state == FC_PORTSTATE_NOTPRESENT)) \ [all …]
|
| H A D | scsi_transport_iscsi.c | 703 char *iscsi_get_ipaddress_state_name(enum iscsi_ipaddress_state port_state) in iscsi_get_ipaddress_state_name() argument 709 if (iscsi_ipaddress_state_names[i].value == port_state) { in iscsi_get_ipaddress_state_name() 4669 iscsi_host_attr(port_state, ISCSI_HOST_PARAM_PORT_STATE); 4760 uint32_t port_state = ihost->port_state; in iscsi_get_port_state_name() local 4763 if (iscsi_port_state_names[i].value & port_state) { in iscsi_get_port_state_name()
|
| /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() 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 …]
|
| /linux/drivers/net/bonding/ |
| H A D | bond_3ad.c | 236 !(port->partner_oper.port_state & LACP_STATE_SYNCHRONIZATION) || in __port_move_to_attached_state() 562 partner->port_state = lacpdu->actor_state; in __record_pdu() 572 partner->port_state |= LACP_STATE_SYNCHRONIZATION; in __record_pdu() 576 partner->port_state &= ~LACP_STATE_SYNCHRONIZATION; in __record_pdu() 629 …(lacpdu->actor_state & LACP_STATE_AGGREGATION) != (partner->port_state & LACP_STATE_AGGREGATION)) { in __update_selected() 661 (admin->port_state & LACP_STATE_AGGREGATION) in __update_default_selected() 662 != (oper->port_state & LACP_STATE_AGGREGATION)) { in __update_default_selected() 905 lacpdu->partner_state = partner->port_state; in __update_lacpdu_from_port() 1089 (port->partner_oper.port_state & LACP_STATE_SYNCHRONIZATION) && in ad_mux_machine() 1130 (port->partner_oper.port_state & LACP_STATE_SYNCHRONIZATION) && in ad_mux_machine() [all …]
|
| H A D | bond_sysfs_slave.c | 103 ad_port->partner_oper.port_state); in ad_partner_oper_port_state_show()
|
| H A D | bond_procfs.c | 259 port->partner_oper.port_state); in bond_info_show_slave()
|
| /linux/drivers/nvme/host/ |
| H A D | fc.c | 246 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() 607 if (rport->remoteport.port_state != FC_OBJSTATE_DELETED) { in nvme_fc_attach_to_suspended_rport() 616 rport->remoteport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_attach_to_suspended_rport() 735 newrec->remoteport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_register_remoteport() [all …]
|
| /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
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_selftest.c | 50 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/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()
|
| /linux/drivers/scsi/qedi/ |
| H A D | qedi_sysfs.c | 42 static DEVICE_ATTR_RO(port_state);
|
| /linux/drivers/infiniband/core/ |
| H A D | cache.c | 1144 enum ib_port_state *port_state) in ib_get_cached_port_state() argument 1153 *port_state = device->port_data[port_num].cache.port_state; in ib_get_cached_port_state() 1501 if (device->port_data[port].cache.port_state != IB_PORT_NOP && in ib_cache_update() 1502 device->port_data[port].cache.port_state != tprops->state) in ib_cache_update() 1506 device->port_data[port].cache.port_state = tprops->state; in ib_cache_update()
|
| /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()
|
| /linux/drivers/s390/scsi/ |
| H A D | zfcp_unit.c | 29 if (rport && rport->port_state == FC_PORTSTATE_ONLINE) in zfcp_unit_scsi_scan()
|
| H A D | zfcp_fsf.h | 410 u32 port_state; member
|
| /linux/drivers/message/fusion/ |
| H A D | mptfc.c | 1017 unsigned port_state; in mptfc_init_host_attr() local 1079 port_state = FC_PORTSTATE_UNKNOWN; in mptfc_init_host_attr() 1081 port_state = FC_PORTSTATE_ONLINE; in mptfc_init_host_attr() 1083 port_state = FC_PORTSTATE_LINKDOWN; in mptfc_init_host_attr() 1084 fc_host_port_state(sh) = port_state; in mptfc_init_host_attr()
|
| /linux/include/net/ |
| H A D | bond_3ad.h | 205 u16 port_state; member
|
| /linux/net/smc/ |
| H A D | smc_ib.c | 503 unsigned char port_state; in smc_nl_handle_dev_port() local 522 port_state = smc_ib_port_active(smcibdev, port + 1); in smc_nl_handle_dev_port() 523 if (nla_put_u8(skb, SMC_NLA_DEV_PORT_STATE, port_state)) in smc_nl_handle_dev_port()
|
| /linux/drivers/net/dsa/mxl862xx/ |
| H A D | mxl862xx.c | 1641 param.port_state = cpu_to_le32(MXL862XX_STP_PORT_STATE_DISABLE); in mxl862xx_port_stp_state_set() 1645 param.port_state = cpu_to_le32(MXL862XX_STP_PORT_STATE_BLOCKING); in mxl862xx_port_stp_state_set() 1648 param.port_state = cpu_to_le32(MXL862XX_STP_PORT_STATE_LEARNING); in mxl862xx_port_stp_state_set() 1651 param.port_state = cpu_to_le32(MXL862XX_STP_PORT_STATE_FORWARD); in mxl862xx_port_stp_state_set()
|
| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_mng_tlv.c | 548 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()
|
| /linux/include/linux/qed/ |
| H A D | qed_rdma_if.h | 155 enum qed_port_state port_state; member
|