| /freebsd-head/sys/ofed/drivers/infiniband/core/ |
| HD | ib_sysfs.c | 50 struct ib_port; 53 struct ib_port *port; 58 struct ib_port { struct 72 ssize_t (*show)(struct ib_port *, struct port_attribute *, char *buf); argument 73 ssize_t (*store)(struct ib_port *, struct port_attribute *, 107 struct ib_port *p = container_of(kobj, struct ib_port, kobj); in port_attr_show() 121 struct ib_port *p = container_of(kobj, struct ib_port, kobj); in port_attr_store() 138 struct ib_port *p = container_of(kobj, struct gid_attr_group, in gid_attr_show() 151 static ssize_t state_show(struct ib_port *p, struct port_attribute *unused, in state_show() 175 static ssize_t lid_show(struct ib_port *p, struct port_attribute *unused, in lid_show() [all …]
|
| /freebsd-head/contrib/ofed/libibverbs/examples/ |
| HD | devinfo.c | 418 static int print_hca_cap(struct ibv_device *ib_dev, uint8_t ib_port) in print_hca_cap() argument 438 if (ib_port && ib_port > device_attr.orig_attr.phys_port_cnt) { in print_hca_cap() 529 if ((ib_port) && (port != ib_port)) in print_hca_cap() 601 int ib_port = 0; in main() local 624 ib_port = strtol(optarg, NULL, 0); in main() 625 if (ib_port <= 0) { in main() 680 ret |= print_hca_cap(*dev_list, ib_port); in main() 688 ret |= print_hca_cap(*dev_list, ib_port); in main()
|
| HD | ud_pingpong.c | 198 int ib_port, int port, int sl, in pp_server_exch_dest() argument 275 if (pp_connect_ctx(ctx, ib_port, my_dest->psn, sl, rem_dest, in pp_server_exch_dest() 567 int ib_port = 1; in main() local 616 ib_port = strtol(optarg, NULL, 0); in main() 617 if (ib_port < 1) { in main() 686 ctx = pp_init_ctx(ib_dev, size, rx_depth, ib_port, use_event); in main() 702 if (pp_get_port_info(ctx->context, ib_port, &ctx->portinfo)) { in main() 712 if (ibv_query_gid(ctx->context, ib_port, gidx, &my_dest.gid)) { in main() 727 rem_dest = pp_server_exch_dest(ctx, ib_port, port, sl, in main() 738 if (pp_connect_ctx(ctx, ib_port, my_dest.psn, sl, rem_dest, in main()
|
| HD | uc_pingpong.c | 199 int ib_port, enum ibv_mtu mtu, in pp_server_exch_dest() argument 277 if (pp_connect_ctx(ctx, ib_port, my_dest->psn, mtu, sl, rem_dest, in pp_server_exch_dest() 544 int ib_port = 1; in main() local 595 ib_port = strtol(optarg, NULL, 0); in main() 596 if (ib_port < 1) { in main() 673 ctx = pp_init_ctx(ib_dev, size, rx_depth, ib_port, use_event); in main() 690 if (pp_get_port_info(ctx->context, ib_port, &ctx->portinfo)) { in main() 703 if (ibv_query_gid(ctx->context, ib_port, gidx, &my_dest.gid)) { in main() 720 rem_dest = pp_server_exch_dest(ctx, ib_port, mtu, port, sl, in main() 731 if (pp_connect_ctx(ctx, ib_port, my_dest.psn, mtu, sl, rem_dest, in main()
|
| HD | rc_pingpong.c | 225 int ib_port, enum ibv_mtu mtu, in pp_server_exch_dest() argument 303 if (pp_connect_ctx(ctx, ib_port, my_dest->psn, mtu, sl, rem_dest, in pp_server_exch_dest() 699 int ib_port = 1; in main() local 754 ib_port = strtol(optarg, NULL, 0); in main() 755 if (ib_port < 1) { in main() 848 ctx = pp_init_ctx(ib_dev, size, rx_depth, ib_port, use_event); in main() 865 if (pp_get_port_info(ctx->context, ib_port, &ctx->portinfo)) { in main() 878 if (ibv_query_gid(ctx->context, ib_port, gidx, &my_dest.gid)) { in main() 895 rem_dest = pp_server_exch_dest(ctx, ib_port, mtu, port, sl, in main() 906 if (pp_connect_ctx(ctx, ib_port, my_dest.psn, mtu, sl, rem_dest, in main()
|
| HD | srq_pingpong.c | 233 int ib_port, enum ibv_mtu mtu, in pp_server_exch_dest() argument 320 if (pp_connect_ctx(ctx, ib_port, mtu, sl, my_dest, rem_dest, in pp_server_exch_dest() 637 int ib_port = 1; in main() local 692 ib_port = strtol(optarg, NULL, 0); in main() 693 if (ib_port < 1) { in main() 787 ctx = pp_init_ctx(ib_dev, size, num_qp, rx_depth, ib_port, use_event); in main() 805 if (pp_get_port_info(ctx->context, ib_port, &ctx->portinfo)) { in main() 820 if (ibv_query_gid(ctx->context, ib_port, gidx, in main() 838 rem_dest = pp_server_exch_dest(ctx, ib_port, mtu, port, sl, in main() 854 if (pp_connect_ctx(ctx, ib_port, mtu, sl, my_dest, rem_dest, in main()
|
| HD | xsrq_pingpong.c | 91 int ib_port; member 159 mod.port_num = ctx.ib_port; in create_qps() 186 mod.port_num = ctx.ib_port; in create_qps() 217 if (pp_get_port_info(ctx.context, ctx.ib_port, &port_attr)) { in pp_init_ctx() 392 if (ibv_query_gid(ctx.context, ctx.ib_port, ctx.gidx, in send_local_dest() 480 attr.ah_attr.port_num = ctx.ib_port; in connect_qps() 511 attr.ah_attr.port_num = ctx.ib_port; in connect_qps() 829 ctx.ib_port = 1; in init() 900 ctx.ib_port = strtol(optarg, NULL, 0); in main() 901 if (ctx.ib_port < 0) { in main()
|
| /freebsd-head/sys/dev/mlx5/ |
| HD | mlx5_ifc.h | 9283 u8 ib_port[0x8]; member
|