/freebsd-10.2-release/sys/ofed/drivers/infiniband/core/ |
H A D | sysfs.c | 44 struct ib_port { struct 54 ssize_t (*show)(struct ib_port *, struct port_attribute *, char *buf); 55 ssize_t (*store)(struct ib_port *, struct port_attribute *, 76 struct ib_port *p = container_of(kobj, struct ib_port, kobj); 88 static ssize_t state_show(struct ib_port *p, struct port_attribute *unused, 112 static ssize_t lid_show(struct ib_port *p, struct port_attribute *unused, 125 static ssize_t lid_mask_count_show(struct ib_port *p, 139 static ssize_t sm_lid_show(struct ib_port *p, struct port_attribute *unused, 152 static ssize_t sm_sl_show(struct ib_port * [all...] |
/freebsd-10.2-release/contrib/ofed/libibverbs/examples/ |
H A D | devinfo.c | 198 static int print_hca_cap(struct ibv_device *ib_dev, uint8_t ib_port) argument 280 if ((ib_port) && (port != ib_port)) 350 int ib_port = 0; local 373 ib_port = strtol(optarg, NULL, 0); 374 if (ib_port < 0) { 429 ret |= print_hca_cap(*dev_list, ib_port); 437 ret |= print_hca_cap(*dev_list, ib_port);
|
H A D | rc_pingpong.c | 210 int ib_port, enum ibv_mtu mtu, 283 if (pp_connect_ctx(ctx, ib_port, my_dest->psn, mtu, sl, rem_dest, sgid_idx)) { 517 int ib_port = 1; local 567 ib_port = strtol(optarg, NULL, 0); 568 if (ib_port < 0) { 645 ctx = pp_init_ctx(ib_dev, size, rx_depth, ib_port, use_event, !servername); 662 if (pp_get_port_info(ctx->context, ib_port, &ctx->portinfo)) { 674 if (ibv_query_gid(ctx->context, ib_port, gidx, &my_dest.gid)) { 691 rem_dest = pp_server_exch_dest(ctx, ib_port, mtu, port, sl, &my_dest, gidx); 701 if (pp_connect_ctx(ctx, ib_port, my_des 209 pp_server_exch_dest(struct pingpong_context *ctx, int ib_port, enum ibv_mtu mtu, int port, int sl, const struct pingpong_dest *my_dest, int sgid_idx) argument [all...] |
H A D | uc_pingpong.c | 198 int ib_port, enum ibv_mtu mtu, 271 if (pp_connect_ctx(ctx, ib_port, my_dest->psn, mtu, sl, rem_dest, sgid_idx)) { 502 int ib_port = 1; local 552 ib_port = strtol(optarg, NULL, 0); 553 if (ib_port < 0) { 630 ctx = pp_init_ctx(ib_dev, size, rx_depth, ib_port, use_event); 646 if (pp_get_port_info(ctx->context, ib_port, &ctx->portinfo)) { 658 if (ibv_query_gid(ctx->context, ib_port, gidx, &my_dest.gid)) { 674 rem_dest = pp_server_exch_dest(ctx, ib_port, mtu, port, sl, &my_dest, gidx); 684 if (pp_connect_ctx(ctx, ib_port, my_des 197 pp_server_exch_dest(struct pingpong_context *ctx, int ib_port, enum ibv_mtu mtu, int port, int sl, const struct pingpong_dest *my_dest, int sgid_idx) argument [all...] |
H A D | ud_pingpong.c | 197 int ib_port, int port, int sl, 269 if (pp_connect_ctx(ctx, ib_port, my_dest->psn, sl, rem_dest, sgid_idx)) { 510 int ib_port = 1; local 558 ib_port = strtol(optarg, NULL, 0); 559 if (ib_port < 0) { 628 ctx = pp_init_ctx(ib_dev, size, rx_depth, ib_port, use_event); 644 if (pp_get_port_info(ctx->context, ib_port, &ctx->portinfo)) { 654 if (ibv_query_gid(ctx->context, ib_port, gidx, &my_dest.gid)) { 668 rem_dest = pp_server_exch_dest(ctx, ib_port, port, sl, &my_dest, gidx); 678 if (pp_connect_ctx(ctx, ib_port, my_des 196 pp_server_exch_dest(struct pingpong_context *ctx, int ib_port, int port, int sl, const struct pingpong_dest *my_dest, int sgid_idx) argument [all...] |
H A D | srq_pingpong.c | 230 int ib_port, enum ibv_mtu mtu, 313 if (pp_connect_ctx(ctx, ib_port, mtu, sl, my_dest, rem_dest, sgid_idx)) { 584 int ib_port = 1; local 638 ib_port = strtol(optarg, NULL, 0); 639 if (ib_port < 0) { 730 ctx = pp_init_ctx(ib_dev, size, num_qp, rx_depth, ib_port, use_event); 748 if (pp_get_port_info(ctx->context, ib_port, &ctx->portinfo)) { 762 if (ibv_query_gid(ctx->context, ib_port, gidx, &my_dest[i].gid)) { 777 rem_dest = pp_server_exch_dest(ctx, ib_port, mtu, port, sl, my_dest, gidx); 791 if (pp_connect_ctx(ctx, ib_port, mt 229 pp_server_exch_dest(struct pingpong_context *ctx, int ib_port, enum ibv_mtu mtu, int port, int sl, const struct pingpong_dest *my_dest, int sgid_idx) argument [all...] |