Home
last modified time | relevance | path

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

/freebsd/contrib/ofed/libibverbs/examples/
H A Ddevinfo.c88 static const char *port_phy_state_str(uint8_t phys_state) in port_phy_state_str() argument
90 switch (phys_state) { in port_phy_state_str()
567 port_phy_state_str(port_attr.phys_state), port_attr.phys_state); in print_hca_cap()
/freebsd/contrib/ofed/infiniband-diags/src/
H A Dibstat.c178 (unsigned)port->phys_state <= in port_dump()
179 7 ? port_phy_state_str[port->phys_state] : "???"); in port_dump()
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_uverbs_std_types_device.c157 resp->phys_state = attr->phys_state; in copy_port_attr_to_resp()
H A Dib_sysfs.c298 static const char *phys_state_to_str(enum ib_port_phys_state phys_state) in phys_state_to_str() argument
311 if (phys_state < ARRAY_SIZE(phys_state_str)) in phys_state_to_str()
312 return phys_state_str[phys_state]; in phys_state_to_str()
327 return sprintf(buf, "%d: %s\n", attr.phys_state, in phys_state_show()
328 phys_state_to_str(attr.phys_state)); in phys_state_show()
351 static PORT_ATTR_RO(phys_state);
/freebsd/contrib/ofed/libibumad/
H A Dumad.c157 if (sys_read_uint(port_dir, SYS_PORT_PHY_STATE, &port->phys_state) < 0) in get_port()
275 if (ca.ports[*port]->phys_state != 3) in resolve_ca_port()
288 if (up < 0 && ca.ports[i]->phys_state == 5) in resolve_ca_port()
302 if (ca.ports[i]->phys_state != 3) { in resolve_ca_port()
H A Dumad.h164 unsigned phys_state; member
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_mad.c530 props->phys_state = out_mad->data[33] >> 4; in mlx5_query_mad_ifc_port()
H A Dmlx5_ib_main.c326 props->phys_state = IB_PORT_PHYS_STATE_DISABLED; in mlx5_query_port_roce()
338 props->phys_state = IB_PORT_PHYS_STATE_LINK_UP; in mlx5_query_port_roce()
945 props->phys_state = MLX5_GET(hca_vport_context, ctx, in mlx5_query_hca_port()
/freebsd/sys/dev/irdma/
H A Dirdma_kcompat.c1523 props->phys_state = IB_PORT_PHYS_STATE_LINK_UP; in irdma_query_port()
1526 props->phys_state = IB_PORT_PHYS_STATE_DISABLED; in irdma_query_port()
/freebsd/sys/ofed/include/uapi/rdma/
H A Dib_user_verbs.h308 __u8 phys_state; member
/freebsd/contrib/ofed/libibverbs/
H A Dkern-abi.h325 __u8 phys_state; member
H A Dcmd.c277 port_attr->phys_state = resp.phys_state; in ibv_cmd_query_port()
H A Dverbs.h344 uint8_t phys_state; member
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_main.c624 props->phys_state = out_mad->data[33] >> 4; in ib_link_query_port()
720 props->phys_state = state_to_phys_state(props->state); in eth_link_query_port()
740 props->phys_state = state_to_phys_state(props->state); in eth_link_query_port()
/freebsd/sys/dev/mthca/
H A Dmthca_provider.c165 props->phys_state = out_mad->data[33] >> 4; in mthca_query_port()
/freebsd/contrib/ofed/opensm/include/iba/
H A Dib_types.h5048 ib_port_info_set_port_phys_state(IN uint8_t const phys_state, in ib_port_info_set_port_phys_state() argument
5054 (phys_state << IB_PORT_PHYS_STATE_SHIFT)); in ib_port_info_set_port_phys_state()
/freebsd/sys/dev/qlnx/qlnxr/
H A Dqlnxr_verbs.c622 attr->phys_state = 5; in qlnxr_query_port()
625 attr->phys_state = 3; in qlnxr_query_port()
657 attr->state, attr->phys_state, in qlnxr_query_port()
/freebsd/sys/ofed/include/rdma/
H A Dib_verbs.h613 u8 phys_state; member
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dib_verbs.c297 port_attr->phys_state = IB_PORT_PHYS_STATE_DISABLED; in bnxt_re_query_port()
300 port_attr->phys_state = IB_PORT_PHYS_STATE_LINK_UP; in bnxt_re_query_port()