/freebsd-11-stable/sys/ofed/drivers/infiniband/core/ |
H A D | ib_sa_query.c | 507 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 D | ib_device.c | 655 * @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 D | ib_cma.c | 2681 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 D | ib_sysfs.c | 106 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 D | mlx4.h | 820 struct device_attribute port_attr; member in struct:mlx4_port_info
|
H A D | mlx4_main.c | 1084 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 D | ib_verbs.h | 1888 struct ib_port_attr *port_attr); 2232 u8 port_num, struct ib_port_attr *port_attr);
|
/freebsd-11-stable/contrib/ofed/libmlx5/ |
H A D | mlx5.c | 762 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 D | verbs.c | 1636 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 D | verbs.h | 1408 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 D | verbs.c | 62 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 D | driver.h | 155 struct ibv_port_attr *port_attr,
|
H A D | compat-1_0.c | 169 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 D | cmd.c | 245 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 D | devinfo.c | 421 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 D | xsrq_pingpong.c | 204 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 D | mckey.c | 113 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 D | udaddy.c | 108 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 D | pcap-rdmasniff.c | 195 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 D | mlx4_ib_sysfs.c | 404 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 D | rsocket.c | 1463 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 D | cma.c | 266 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 D | verbs.c | 173 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...] |