Home
last modified time | relevance | path

Searched full:port_state (Results 1 – 25 of 45) sorted by relevance

12

/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_port.c76 struct mlx4_en_port_state *state = &priv->port_state; in mlx4_en_QUERY_PORT()
H A Den_netdev.c1278 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()
H A Dmlx4_en.h534 struct mlx4_en_port_state port_state; member
H A Deq.c323 return s_state[slave].port_state[port]; in mlx4_get_slave_port_state()
340 s_state[slave].port_state[port] = state; in mlx4_set_slave_port_state()
/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.c431 "port_state = x%x\n", in lpfc_check_nlp_post_devloss()
433 ndlp->nlp_flag, vport->port_state); in lpfc_check_nlp_post_devloss()
547 "flag x%lx port_state = x%x\n", in lpfc_dev_loss_tmo_handler()
550 vport->port_state); in lpfc_dev_loss_tmo_handler()
562 "flag x%lx port_state = x%x\n", in lpfc_dev_loss_tmo_handler()
565 vport->port_state); in lpfc_dev_loss_tmo_handler()
1228 vport->port_state, vport->fc_ns_retry, vport->fc_flag); in lpfc_linkdown_port()
1471 mb->mbxStatus, vport->port_state); in lpfc_mbx_cmpl_clear_la()
1535 * for timeout. port_state is identically in lpfc_mbx_cmpl_local_config_link()
1542 /* Start discovery by sending a FLOGI. port_state is identically in lpfc_mbx_cmpl_local_config_link()
[all …]
H A Dlpfc_ct.c632 vport->port_state); in lpfc_gen_req()
960 "port_state x%x gidft_inp x%x\n", in lpfc_cmpl_ct_cmd_gid_ft()
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()
1176 "port_state x%x gidft_inp x%x\n", in lpfc_cmpl_ct_cmd_gid_pt()
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()
[all …]
/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/drivers/scsi/qedi/
H A Dqedi_sysfs.c42 static DEVICE_ATTR_RO(port_state);
/linux/include/linux/
H A Dnvme-fc-driver.h278 * @port_state: Operational state of the port.
291 enum nvme_fc_obj_state port_state; member
320 * @port_state: Operational state of the remote port. Valid values are
335 enum nvme_fc_obj_state port_state; member
747 * @port_state: Operational state of the port.
759 enum nvme_fc_obj_state port_state; member
/linux/include/scsi/
H A Dscsi_transport_fc.h367 enum fc_port_state port_state; /* Will only be ONLINE or UNKNOWN */ member
558 enum fc_port_state port_state;
629 (((struct fc_host_attrs *)(x)->shost_data)->port_state)
776 switch (rport->port_state) { in fc_remote_port_chkready()
556 enum fc_port_state port_state; global() member
/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/infiniband/core/
H A Dcache.c1147 enum ib_port_state *port_state) in ib_get_cached_port_state() argument
1156 *port_state = device->port_data[port_num].cache.port_state; in ib_get_cached_port_state()
1505 if (device->port_data[port].cache.port_state != IB_PORT_NOP && in ib_cache_update()
1506 device->port_data[port].cache.port_state != tprops->state) in ib_cache_update()
1510 device->port_data[port].cache.port_state = tprops->state; in ib_cache_update()
/linux/drivers/net/bonding/
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/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/net/smc/
H A Dsmc_ib.c503 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/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/include/net/
H A Dbond_3ad.h205 u16 port_state;
204 u16 port_state; global() member
/linux/include/linux/qed/
H A Dqed_rdma_if.h155 enum qed_port_state 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()
/linux/drivers/scsi/
H A Dscsi_transport_iscsi.c703 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/net/ethernet/marvell/octeontx2/nic/
H A Drep.c463 evt.evt_data.port_state = 1; in rvu_rep_open()

12