Home
last modified time | relevance | path

Searched refs:phys_state (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v5.4/drivers/infiniband/core/
Duverbs_std_types_device.c164 resp->phys_state = attr->phys_state; in copy_port_attr_to_resp()
Dsysfs.c292 static const char *phys_state_to_str(enum ib_port_phys_state phys_state) in phys_state_to_str() argument
305 if (phys_state < ARRAY_SIZE(phys_state_str)) in phys_state_to_str()
306 return phys_state_str[phys_state]; in phys_state_to_str()
321 return sprintf(buf, "%d: %s\n", attr.phys_state, in phys_state_show()
322 phys_state_to_str(attr.phys_state)); in phys_state_show()
345 static PORT_ATTR_RO(phys_state);
Ddevice.c1995 port_attr->phys_state = IB_PORT_PHYS_STATE_DISABLED; in iw_query_port()
2002 port_attr->phys_state = IB_PORT_PHYS_STATE_LINK_UP; in iw_query_port()
2005 port_attr->phys_state = in iw_query_port()
Dnldev.c318 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_PORT_PHYS_STATE, attr.phys_state)) in fill_port_info()
/Linux-v5.4/drivers/infiniband/hw/usnic/
Dusnic_ib_verbs.c359 props->phys_state = IB_PORT_PHYS_STATE_DISABLED; in usnic_ib_query_port()
362 props->phys_state = in usnic_ib_query_port()
366 props->phys_state = IB_PORT_PHYS_STATE_LINK_UP; in usnic_ib_query_port()
/Linux-v5.4/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_verbs.c172 props->phys_state = resp->attrs.phys_state; in pvrdma_query_port()
Dpvrdma_verbs.h180 u8 phys_state; member
/Linux-v5.4/drivers/infiniband/sw/rxe/
Drxe_verbs.c72 attr->phys_state = IB_PORT_PHYS_STATE_LINK_UP; in rxe_query_port()
74 attr->phys_state = IB_PORT_PHYS_STATE_POLLING; in rxe_query_port()
76 attr->phys_state = IB_PORT_PHYS_STATE_DISABLED; in rxe_query_port()
Drxe.c144 port->attr.phys_state = RXE_PORT_PHYS_STATE; in rxe_init_port_param()
/Linux-v5.4/drivers/infiniband/hw/hfi1/
Dmad.c1241 u32 logical_state, u32 phys_state, int local_mad) in set_port_states() argument
1247 ret = port_states_transition_allowed(ppd, logical_state, phys_state); in set_port_states()
1258 if ((phys_state != IB_PORTPHYSSTATE_NOP) && in set_port_states()
1262 logical_state, phys_state); in set_port_states()
1273 if (phys_state == IB_PORTPHYSSTATE_NOP) in set_port_states()
1277 if (phys_state == IB_PORTPHYSSTATE_NOP) { in set_port_states()
1279 } else if (phys_state == IB_PORTPHYSSTATE_POLLING) { in set_port_states()
1283 } else if (phys_state == IB_PORTPHYSSTATE_DISABLED) { in set_port_states()
1287 phys_state); in set_port_states()
Dverbs.c1421 props->phys_state = driver_pstate(ppd); in query_port()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Dvport.c704 rep->phys_state = MLX5_GET_PR(hca_vport_context, ctx, in mlx5_query_hca_vport_context()
1071 MLX5_SET(hca_vport_context, ctx, port_physical_state, req->phys_state); in mlx5_core_modify_hca_vport_context()
/Linux-v5.4/drivers/infiniband/hw/mlx5/
Dmad.c566 props->phys_state = out_mad->data[33] >> 4; in mlx5_query_mad_ifc_port()
/Linux-v5.4/include/uapi/rdma/
Dib_user_verbs.h303 __u8 phys_state; member
/Linux-v5.4/include/linux/mlx5/
Ddriver.h788 enum phy_port_state phys_state; member
/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_main.c264 props->phys_state = (props->state == IB_PORT_ACTIVE) ? in hns_roce_query_port()
/Linux-v5.4/Documentation/ABI/stable/
Dsysfs-class-infiniband43 What: /sys/class/infiniband/<device>/ports/<port-num>/phys_state
64 phys_state: (RO) Port physical state (Sleep, Polling,
/Linux-v5.4/drivers/infiniband/hw/mlx4/
Dmain.c677 props->phys_state = out_mad->data[33] >> 4; in ib_link_query_port()
776 props->phys_state = state_to_phys_state(props->state); in eth_link_query_port()
793 props->phys_state = state_to_phys_state(props->state); in eth_link_query_port()
/Linux-v5.4/drivers/infiniband/hw/mthca/
Dmthca_provider.c167 props->phys_state = out_mad->data[33] >> 4; in mthca_query_port()
/Linux-v5.4/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c166 props->phys_state = IB_PORT_PHYS_STATE_LINK_UP; in ocrdma_query_port()
169 props->phys_state = IB_PORT_PHYS_STATE_DISABLED; in ocrdma_query_port()
/Linux-v5.4/drivers/infiniband/sw/siw/
Dsiw_verbs.c209 attr->phys_state = sdev->state == IB_PORT_ACTIVE ? in siw_query_port()
/Linux-v5.4/drivers/infiniband/hw/qib/
Dqib_verbs.c1203 props->phys_state = dd->f_ibphys_portstate(ppd->lastibcstat); in qib_query_port()
/Linux-v5.4/drivers/infiniband/hw/efa/
Defa_verbs.c336 props->phys_state = IB_PORT_PHYS_STATE_LINK_UP; in efa_query_port()
/Linux-v5.4/drivers/infiniband/hw/bnxt_re/
Dib_verbs.c223 port_attr->phys_state = IB_PORT_PHYS_STATE_LINK_UP; in bnxt_re_query_port()
226 port_attr->phys_state = IB_PORT_PHYS_STATE_DISABLED; in bnxt_re_query_port()
/Linux-v5.4/drivers/infiniband/hw/qedr/
Dverbs.c224 attr->phys_state = IB_PORT_PHYS_STATE_LINK_UP; in qedr_query_port()
227 attr->phys_state = IB_PORT_PHYS_STATE_DISABLED; in qedr_query_port()

12