Searched refs:port_attr (Results 1 - 23 of 23) sorted by last modified time

/freebsd-11-stable/sys/ofed/drivers/infiniband/core/
H A Dib_sa_query.c507 struct ib_port_attr port_attr; local
510 if (ib_query_port(port->agent->device, port->port_num, &port_attr)) {
521 new_ah->src_path_mask = (1 << port_attr.lmc) - 1;
529 ah_attr.dlid = port_attr.sm_lid;
530 ah_attr.sl = port_attr.sm_sl;
532 if (port_attr.grh_required) {
534 ah_attr.grh.dgid.global.subnet_prefix = cpu_to_be64(port_attr.subnet_prefix);
H A Dib_device.c655 * @port_attr:Port attributes
658 * @port_attr pointer.
662 struct ib_port_attr *port_attr)
670 memset(port_attr, 0, sizeof(*port_attr));
671 err = device->query_port(device, port_num, port_attr);
672 if (err || port_attr->subnet_prefix)
682 port_attr->subnet_prefix = be64_to_cpu(gid.global.subnet_prefix);
660 ib_query_port(struct ib_device *device, u8 port_num, struct ib_port_attr *port_attr) argument
H A Dib_cma.c2681 struct ib_port_attr port_attr; local
2698 if (!ib_query_port(cur_dev->device, p, &port_attr) &&
2699 port_attr.state == IB_PORT_ACTIVE) {
H A Dib_sysfs.c106 struct port_attribute *port_attr = local
110 if (!port_attr->show)
113 return port_attr->show(p, port_attr, buf);
123 struct port_attribute *port_attr = local
128 if (!port_attr->show)
131 return port_attr->show(p, port_attr, buf);
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/
H A Dmlx4.h820 struct device_attribute port_attr; member in struct:mlx4_port_info
H A Dmlx4_main.c1084 port_attr);
1171 port_attr);
2944 info->port_attr.attr.name = info->dev_name;
2946 info->port_attr.attr.mode = S_IRUGO;
2948 info->port_attr.attr.mode = S_IRUGO | S_IWUSR;
2949 info->port_attr.store = set_port_type;
2951 info->port_attr.show = show_port_type;
2952 sysfs_attr_init(&info->port_attr.attr);
2954 err = device_create_file(&dev->persist->pdev->dev, &info->port_attr);
2976 &info->port_attr);
[all...]
/freebsd-11-stable/sys/ofed/include/rdma/
H A Dib_verbs.h1888 struct ib_port_attr *port_attr);
2232 u8 port_num, struct ib_port_attr *port_attr);
/freebsd-11-stable/contrib/ofed/libmlx5/
H A Dmlx5.c762 struct ibv_port_attr port_attr; local
930 memset(&port_attr, 0, sizeof(port_attr));
931 if (!mlx5_query_port(ctx, j + 1, &port_attr))
932 context->cached_link_layer[j] = port_attr.link_layer;
H A Dverbs.c1636 struct ibv_port_attr port_attr; local
1650 if (ibv_query_port(pd->context, attr->port_num, &port_attr))
1653 is_eth = (port_attr.link_layer == IBV_LINK_LAYER_ETHERNET);
/freebsd-11-stable/contrib/ofed/libibverbs/
H A Dverbs.h1408 struct ibv_port_attr *port_attr);
1652 struct ibv_port_attr *port_attr);
1656 struct ibv_port_attr *port_attr)
1659 port_attr->link_layer = IBV_LINK_LAYER_UNSPECIFIED;
1660 port_attr->reserved = 0;
1662 return ibv_query_port(context, port_num, port_attr);
1665 #define ibv_query_port(context, port_num, port_attr) \
1666 ___ibv_query_port(context, port_num, port_attr)
1654 ___ibv_query_port(struct ibv_context *context, uint8_t port_num, struct ibv_port_attr *port_attr) argument
H A Dverbs.c62 struct ibv_port_attr *port_attr);
206 struct ibv_port_attr *port_attr)
208 return context->ops.query_port(context, port_num, port_attr);
205 __ibv_query_port(struct ibv_context *context, uint8_t port_num, struct ibv_port_attr *port_attr) argument
H A Ddriver.h155 struct ibv_port_attr *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)
647 return ibv_query_port(context->real_context, port_num, port_attr);
644 __ibv_query_port_1_0(struct ibv_context_1_0 *context, uint8_t port_num, struct ibv_port_attr *port_attr) argument
H A Dcmd.c245 struct ibv_port_attr *port_attr,
259 port_attr->state = resp.state;
260 port_attr->max_mtu = resp.max_mtu;
261 port_attr->active_mtu = resp.active_mtu;
262 port_attr->gid_tbl_len = resp.gid_tbl_len;
263 port_attr->port_cap_flags = resp.port_cap_flags;
264 port_attr->max_msg_sz = resp.max_msg_sz;
265 port_attr->bad_pkey_cntr = resp.bad_pkey_cntr;
266 port_attr->qkey_viol_cntr = resp.qkey_viol_cntr;
267 port_attr
244 ibv_cmd_query_port(struct ibv_context *context, uint8_t port_num, struct ibv_port_attr *port_attr, struct ibv_query_port *cmd, size_t cmd_size) argument
[all...]
/freebsd-11-stable/contrib/ofed/libibverbs/examples/
H A Ddevinfo.c421 struct ibv_port_attr port_attr; local
531 rc = ibv_query_port(ctx, port, &port_attr);
538 port_state_str(port_attr.state), port_attr.state);
540 mtu_str(port_attr.max_mtu), port_attr.max_mtu);
542 mtu_str(port_attr.active_mtu), port_attr.active_mtu);
543 printf("\t\t\tsm_lid:\t\t\t%d\n", port_attr.sm_lid);
544 printf("\t\t\tport_lid:\t\t%d\n", port_attr
[all...]
H A Dxsrq_pingpong.c204 struct ibv_port_attr port_attr; local
217 if (pp_get_port_info(ctx.context, ctx.ib_port, &port_attr)) {
222 ctx.lid = port_attr.lid;
223 if (port_attr.link_layer != IBV_LINK_LAYER_ETHERNET && !ctx.lid) {
/freebsd-11-stable/contrib/ofed/librdmacm/examples/
H A Dmckey.c113 struct ibv_port_attr port_attr; local
117 &port_attr);
121 if (message_count && message_size > (1 << (port_attr.active_mtu + 7))) {
123 message_size, 1 << (port_attr.active_mtu + 7));
H A Dudaddy.c108 struct ibv_port_attr port_attr; local
112 &port_attr);
116 if (message_count && message_size > (1 << (port_attr.active_mtu + 7))) {
118 message_size, 1 << (port_attr.active_mtu + 7));
/freebsd-11-stable/contrib/libpcap/
H A Dpcap-rdmasniff.c195 struct ibv_port_attr port_attr; local
296 if (!ibv_query_port(priv->context, priv->port_num, &port_attr) &&
297 port_attr.link_layer == IBV_LINK_LAYER_INFINIBAND) {
/freebsd-11-stable/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_sysfs.c404 struct port_attribute *port_attr = local
408 if (!port_attr->show)
410 return port_attr->show(p, port_attr, buf);
417 struct port_attribute *port_attr = local
421 if (!port_attr->store)
423 return port_attr->store(p, port_attr, buf, size);
/freebsd-11-stable/contrib/ofed/librdmacm/
H A Drsocket.c1463 struct ibv_port_attr port_attr; local
1471 ret = ibv_query_port(qp->cm_id->verbs, qp->cm_id->port_num, &port_attr);
1476 attr.dlid = port_attr.lid;
H A Dcma.c266 struct ibv_port_attr port_attr; local
290 if (ibv_query_port(cma_dev->verbs, i, &port_attr))
293 cma_dev->port[i - 1].link_layer = port_attr.link_layer;
/freebsd-11-stable/contrib/ofed/libmlx4/
H A Dverbs.c173 struct ibv_port_attr *port_attr)
179 port_attr->link_layer =
183 port_attr->port_cap_flags =
190 (struct ibv_port_attr *)port_attr);
981 struct ibv_port_attr port_attr; local
989 &port_attr);
992 mqp->link_layer = port_attr.link_layer;
1189 struct ibv_port_attr port_attr; local
1191 if (query_port_cache(pd->context, attr->port_num, &port_attr))
1202 if (port_attr
172 query_port_cache(struct ibv_context *context, uint8_t port_num, struct ibv_port_attr *port_attr) argument
[all...]

Completed in 392 milliseconds