Home
last modified time | relevance | path

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

/freebsd/contrib/ofed/libibverbs/examples/
H A Ddevinfo.c422 struct ibv_port_attr port_attr; in print_hca_cap() local
532 rc = ibv_query_port(ctx, port, &port_attr); in print_hca_cap()
539 port_state_str(port_attr.state), port_attr.state); in print_hca_cap()
541 mtu_str(port_attr.max_mtu), port_attr.max_mtu); in print_hca_cap()
543 mtu_str(port_attr.active_mtu), port_attr.active_mtu); in print_hca_cap()
544 printf("\t\t\tsm_lid:\t\t\t%d\n", port_attr.sm_lid); in print_hca_cap()
545 printf("\t\t\tport_lid:\t\t%d\n", port_attr.lid); in print_hca_cap()
546 printf("\t\t\tport_lmc:\t\t0x%02x\n", port_attr.lmc); in print_hca_cap()
548 link_layer_str(port_attr.link_layer)); in print_hca_cap()
551 printf("\t\t\tmax_msg_sz:\t\t0x%x\n", port_attr.max_msg_sz); in print_hca_cap()
[all …]
H A Dxsrq_pingpong.c204 struct ibv_port_attr port_attr; in pp_init_ctx() local
217 if (pp_get_port_info(ctx.context, ctx.ib_port, &port_attr)) { in pp_init_ctx()
222 ctx.lid = port_attr.lid; in pp_init_ctx()
223 if (port_attr.link_layer != IBV_LINK_LAYER_ETHERNET && !ctx.lid) { in pp_init_ctx()
/freebsd/contrib/ofed/libmlx4/
H A Dverbs.c173 struct ibv_port_attr *port_attr) in query_port_cache() argument
179 port_attr->link_layer = in query_port_cache()
183 port_attr->port_cap_flags = in query_port_cache()
190 (struct ibv_port_attr *)port_attr); in query_port_cache()
994 struct ibv_port_attr port_attr; in mlx4_modify_qp() local
1002 &port_attr); in mlx4_modify_qp()
1005 mqp->link_layer = port_attr.link_layer; in mlx4_modify_qp()
1205 struct ibv_port_attr port_attr; in mlx4_create_ah() local
1207 if (query_port_cache(pd->context, attr->port_num, &port_attr)) in mlx4_create_ah()
1218 if (port_attr.link_layer != IBV_LINK_LAYER_ETHERNET) { in mlx4_create_ah()
[all …]
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_sysfs.c105 struct port_attribute *port_attr = in port_attr_show() local
109 if (!port_attr->show) in port_attr_show()
112 return port_attr->show(p, port_attr, buf); in port_attr_show()
119 struct port_attribute *port_attr = in port_attr_store() local
123 if (!port_attr->store) in port_attr_store()
125 return port_attr->store(p, port_attr, buf, count); in port_attr_store()
136 struct port_attribute *port_attr = in gid_attr_show() local
141 if (!port_attr->show) in gid_attr_show()
144 return port_attr->show(p, port_attr, buf); in gid_attr_show()
H A Dib_device.c660 struct ib_port_attr *port_attr) in ib_query_port() argument
668 memset(port_attr, 0, sizeof(*port_attr)); in ib_query_port()
669 err = device->query_port(device, port_num, port_attr); in ib_query_port()
670 if (err || port_attr->subnet_prefix) in ib_query_port()
680 port_attr->subnet_prefix = be64_to_cpu(gid.global.subnet_prefix); in ib_query_port()
H A Dib_sa_query.c505 struct ib_port_attr port_attr; in update_sm_ah() local
508 if (ib_query_port(port->agent->device, port->port_num, &port_attr)) { in update_sm_ah()
519 new_ah->src_path_mask = (1 << port_attr.lmc) - 1; in update_sm_ah()
527 ah_attr.dlid = port_attr.sm_lid; in update_sm_ah()
528 ah_attr.sl = port_attr.sm_sl; in update_sm_ah()
530 if (port_attr.grh_required) { in update_sm_ah()
532 ah_attr.grh.dgid.global.subnet_prefix = cpu_to_be64(port_attr.subnet_prefix); in update_sm_ah()
H A Dib_cma.c2900 struct ib_port_attr port_attr; in cma_bind_loopback() local
2917 if (!ib_query_port(cur_dev->device, p, &port_attr) && in cma_bind_loopback()
2918 port_attr.state == IB_PORT_ACTIVE) { in cma_bind_loopback()
/freebsd/contrib/ofed/libibverbs/
H A Dcmd.c245 struct ibv_port_attr *port_attr, in ibv_cmd_query_port() argument
259 port_attr->state = resp.state; in ibv_cmd_query_port()
260 port_attr->max_mtu = resp.max_mtu; in ibv_cmd_query_port()
261 port_attr->active_mtu = resp.active_mtu; in ibv_cmd_query_port()
262 port_attr->gid_tbl_len = resp.gid_tbl_len; in ibv_cmd_query_port()
263 port_attr->port_cap_flags = resp.port_cap_flags; in ibv_cmd_query_port()
264 port_attr->max_msg_sz = resp.max_msg_sz; in ibv_cmd_query_port()
265 port_attr->bad_pkey_cntr = resp.bad_pkey_cntr; in ibv_cmd_query_port()
266 port_attr->qkey_viol_cntr = resp.qkey_viol_cntr; in ibv_cmd_query_port()
267 port_attr->pkey_tbl_len = resp.pkey_tbl_len; in ibv_cmd_query_port()
[all …]
H A Dverbs.h1410 struct ibv_port_attr *port_attr);
1654 struct ibv_port_attr *port_attr);
1658 struct ibv_port_attr *port_attr) in ___ibv_query_port() argument
1661 port_attr->link_layer = IBV_LINK_LAYER_UNSPECIFIED; in ___ibv_query_port()
1662 port_attr->reserved = 0; in ___ibv_query_port()
1664 return ibv_query_port(context, port_num, port_attr); in ___ibv_query_port()
1667 #define ibv_query_port(context, port_num, port_attr) \ argument
1668 ___ibv_query_port(context, port_num, port_attr)
H A Dcompat-1_0.c169 struct ibv_port_attr *port_attr);
246 struct ibv_port_attr *port_attr);
645 struct ibv_port_attr *port_attr) in __ibv_query_port_1_0() argument
647 return ibv_query_port(context->real_context, port_num, port_attr); in __ibv_query_port_1_0()
H A Dverbs.c62 struct ibv_port_attr *port_attr);
214 struct ibv_port_attr *port_attr) in __ibv_query_port() argument
216 return context->ops.query_port(context, port_num, port_attr); in __ibv_query_port()
H A Ddriver.h158 struct ibv_port_attr *port_attr,
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_sysfs.c404 struct port_attribute *port_attr = in port_attr_show() local
408 if (!port_attr->show) in port_attr_show()
410 return port_attr->show(p, port_attr, buf); in port_attr_show()
417 struct port_attribute *port_attr = in port_attr_store() local
421 if (!port_attr->store) in port_attr_store()
423 return port_attr->store(p, port_attr, buf, size); in port_attr_store()
/freebsd/contrib/ofed/librdmacm/examples/
H A Dmckey.c113 struct ibv_port_attr port_attr; in verify_test_params() local
117 &port_attr); in verify_test_params()
121 if (message_count && message_size > (1 << (port_attr.active_mtu + 7))) { in verify_test_params()
123 message_size, 1 << (port_attr.active_mtu + 7)); in verify_test_params()
H A Dudaddy.c108 struct ibv_port_attr port_attr; in verify_test_params() local
112 &port_attr); in verify_test_params()
116 if (message_count && message_size > (1 << (port_attr.active_mtu + 7))) { in verify_test_params()
118 message_size, 1 << (port_attr.active_mtu + 7)); in verify_test_params()
/freebsd/contrib/libpcap/
H A Dpcap-rdmasniff.c209 struct ibv_port_attr port_attr; in rdmasniff_activate() local
310 if (!ibv_query_port(priv->context, priv->port_num, &port_attr) && in rdmasniff_activate()
311 port_attr.link_layer == IBV_LINK_LAYER_INFINIBAND) { in rdmasniff_activate()
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dib_verbs.c288 struct ib_port_attr *port_attr) in bnxt_re_query_port() argument
295 memset(port_attr, 0, sizeof(*port_attr)); in bnxt_re_query_port()
297 port_attr->phys_state = IB_PORT_PHYS_STATE_DISABLED; in bnxt_re_query_port()
298 port_attr->state = bnxt_re_get_link_state(rdev); in bnxt_re_query_port()
299 if (port_attr->state == IB_PORT_ACTIVE) in bnxt_re_query_port()
300 port_attr->phys_state = IB_PORT_PHYS_STATE_LINK_UP; in bnxt_re_query_port()
301 port_attr->max_mtu = IB_MTU_4096; in bnxt_re_query_port()
302 port_attr->active_mtu = iboe_get_mtu(if_getmtu(rdev->netdev)); in bnxt_re_query_port()
303 port_attr->gid_tbl_len = dev_attr->max_sgid; in bnxt_re_query_port()
304 port_attr->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_REINIT_SUP | in bnxt_re_query_port()
[all …]
H A Dib_verbs.h269 struct ib_port_attr *port_attr);
/freebsd/contrib/ofed/libmlx5/
H A Dmlx5.c772 struct ibv_port_attr port_attr; in mlx5_init_context() local
947 memset(&port_attr, 0, sizeof(port_attr)); in mlx5_init_context()
948 if (!mlx5_query_port(ctx, j + 1, &port_attr)) in mlx5_init_context()
949 context->cached_link_layer[j] = port_attr.link_layer; in mlx5_init_context()
H A Dverbs.c1662 struct ibv_port_attr port_attr; in mlx5_create_ah() local
1676 if (ibv_query_port(pd->context, attr->port_num, &port_attr)) in mlx5_create_ah()
1679 is_eth = (port_attr.link_layer == IBV_LINK_LAYER_ETHERNET); in mlx5_create_ah()
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_main.c1085 port_attr); in show_port_type()
1172 port_attr); in set_port_type()
2950 info->port_attr.attr.name = info->dev_name; in mlx4_init_port_info()
2952 info->port_attr.attr.mode = S_IRUGO; in mlx4_init_port_info()
2954 info->port_attr.attr.mode = S_IRUGO | S_IWUSR; in mlx4_init_port_info()
2955 info->port_attr.store = set_port_type; in mlx4_init_port_info()
2957 info->port_attr.show = show_port_type; in mlx4_init_port_info()
2958 sysfs_attr_init(&info->port_attr.attr); in mlx4_init_port_info()
2960 err = device_create_file(&dev->persist->pdev->dev, &info->port_attr); in mlx4_init_port_info()
2982 &info->port_attr); in mlx4_init_port_info()
[all …]
H A Dmlx4.h820 struct device_attribute port_attr; member
/freebsd/contrib/ofed/librdmacm/
H A Dcma.c266 struct ibv_port_attr port_attr; in ucma_init_device() local
290 if (ibv_query_port(cma_dev->verbs, i, &port_attr)) in ucma_init_device()
293 cma_dev->port[i - 1].link_layer = port_attr.link_layer; in ucma_init_device()
H A Drsocket.c1463 struct ibv_port_attr port_attr; in ds_add_qp_dest() local
1471 ret = ibv_query_port(qp->cm_id->verbs, qp->cm_id->port_num, &port_attr); in ds_add_qp_dest()
1476 attr.dlid = port_attr.lid; in ds_add_qp_dest()
/freebsd/sys/ofed/include/rdma/
H A Dib_verbs.h2171 struct ib_port_attr *port_attr);
2604 u8 port_num, struct ib_port_attr *port_attr);