| /NextBSD/contrib/ofed/libibverbs/examples/ |
| HD | devinfo.c | 202 struct ibv_port_attr port_attr; in print_hca_cap() local 283 rc = ibv_query_port(ctx, port, &port_attr); in print_hca_cap() 290 port_state_str(port_attr.state), port_attr.state); in print_hca_cap() 292 mtu_str(port_attr.max_mtu), port_attr.max_mtu); in print_hca_cap() 294 mtu_str(port_attr.active_mtu), port_attr.active_mtu); in print_hca_cap() 295 printf("\t\t\tsm_lid:\t\t\t%d\n", port_attr.sm_lid); in print_hca_cap() 296 printf("\t\t\tport_lid:\t\t%d\n", port_attr.lid); in print_hca_cap() 297 printf("\t\t\tport_lmc:\t\t0x%02x\n", port_attr.lmc); in print_hca_cap() 298 printf("\t\t\tlink_layer:\t\t%s\n", link_layer_str(port_attr.link_layer)); in print_hca_cap() 301 printf("\t\t\tmax_msg_sz:\t\t0x%x\n", port_attr.max_msg_sz); in print_hca_cap() [all …]
|
| /NextBSD/contrib/ofed/libibverbs/fixes/ |
| HD | rocee_link_layer.patch | 52 + struct ibv_port_attr *port_attr) 54 + port_attr->link_layer = IBV_LINK_LAYER_UNSPECIFIED; 55 + port_attr->pad = 0; 57 + return context->ops.query_port(context, port_num, port_attr); 67 +#define ibv_query_port(context, port_num, port_attr) \ 68 + ___ibv_query_port(context, port_num, port_attr)
|
| HD | rocee_kernel_accept_link_layer.patch | 44 port_attr->active_width = resp.active_width; 45 port_attr->active_speed = resp.active_speed; 46 port_attr->phys_state = resp.phys_state; 47 + port_attr->link_layer = resp.link_layer;
|
| HD | rocee_examples.patch | 43 printf("\t\t\tsm_lid:\t\t\t%d\n", port_attr.sm_lid); 44 printf("\t\t\tport_lid:\t\t%d\n", port_attr.lid); 45 printf("\t\t\tport_lmc:\t\t0x%02x\n", port_attr.lmc); 46 + printf("\t\t\tlink_layer:\t\t%s\n", link_layer_str(port_attr.link_layer)); 49 printf("\t\t\tmax_msg_sz:\t\t0x%x\n", port_attr.max_msg_sz);
|
| HD | verbs_man_page.patch | 93 + struct ibv_port_attr *port_attr);
|
| /NextBSD/contrib/ofed/libibverbs/include/infiniband/ |
| HD | verbs.h | 691 struct ibv_port_attr *port_attr); 758 struct ibv_port_attr *port_attr) in ___ibv_query_port() argument 760 port_attr->link_layer = IBV_LINK_LAYER_UNSPECIFIED; in ___ibv_query_port() 761 port_attr->pad = 0; in ___ibv_query_port() 763 return context->ops.query_port(context, port_num, port_attr); in ___ibv_query_port() 838 struct ibv_port_attr *port_attr); 1327 #define ibv_query_port(context, port_num, port_attr) \ argument 1328 ___ibv_query_port(context, port_num, port_attr)
|
| HD | driver.h | 68 struct ibv_port_attr *port_attr,
|
| /NextBSD/contrib/ofed/libibverbs/src/ |
| HD | cmd.c | 166 struct ibv_port_attr *port_attr, in ibv_cmd_query_port() argument 180 port_attr->state = resp.state; in ibv_cmd_query_port() 181 port_attr->max_mtu = resp.max_mtu; in ibv_cmd_query_port() 182 port_attr->active_mtu = resp.active_mtu; in ibv_cmd_query_port() 183 port_attr->gid_tbl_len = resp.gid_tbl_len; in ibv_cmd_query_port() 184 port_attr->port_cap_flags = resp.port_cap_flags; in ibv_cmd_query_port() 185 port_attr->max_msg_sz = resp.max_msg_sz; in ibv_cmd_query_port() 186 port_attr->bad_pkey_cntr = resp.bad_pkey_cntr; in ibv_cmd_query_port() 187 port_attr->qkey_viol_cntr = resp.qkey_viol_cntr; in ibv_cmd_query_port() 188 port_attr->pkey_tbl_len = resp.pkey_tbl_len; in ibv_cmd_query_port() [all …]
|
| HD | compat-1_0.c | 171 struct ibv_port_attr *port_attr); 543 struct ibv_port_attr *port_attr) in __ibv_query_port_1_0() argument 545 return ibv_query_port(context->real_context, port_num, port_attr); in __ibv_query_port_1_0()
|
| HD | verbs.c | 87 struct ibv_port_attr *port_attr) in __ibv_query_port() argument 89 return context->ops.query_port(context, port_num, port_attr); in __ibv_query_port()
|
| /NextBSD/sys/ofed/drivers/infiniband/hw/mlx4/ |
| HD | sysfs.c | 422 struct port_attribute *port_attr = in port_attr_show() local 426 if (!port_attr->show) in port_attr_show() 428 return port_attr->show(p, port_attr, buf); in port_attr_show() 435 struct port_attribute *port_attr = in port_attr_store() local 439 if (!port_attr->store) in port_attr_store() 441 return port_attr->store(p, port_attr, buf, size); in port_attr_store()
|
| /NextBSD/contrib/ofed/libmlx4/fixes/ |
| HD | rocee_add_support.patch | 77 + struct ibv_port_attr port_attr; 93 + if (ibv_query_port(pd->context, attr->port_num, &port_attr)) 96 + if (port_attr.link_layer == IBV_LINK_LAYER_ETHERNET) {
|
| /NextBSD/contrib/ofed/librdmacm/examples/ |
| HD | mckey.c | 114 struct ibv_port_attr port_attr; in verify_test_params() local 118 &port_attr); in verify_test_params() 122 if (message_count && message_size > (1 << (port_attr.active_mtu + 7))) { in verify_test_params() 124 message_size, 1 << (port_attr.active_mtu + 7)); in verify_test_params()
|
| HD | udaddy.c | 112 struct ibv_port_attr port_attr; in verify_test_params() local 116 &port_attr); in verify_test_params() 120 if (message_count && message_size > (1 << (port_attr.active_mtu + 7))) { in verify_test_params() 122 message_size, 1 << (port_attr.active_mtu + 7)); in verify_test_params()
|
| /NextBSD/sys/ofed/drivers/infiniband/core/ |
| HD | sa_query.c | 396 struct ib_port_attr port_attr; in update_sm_ah() local 399 if (ib_query_port(port->agent->device, port->port_num, &port_attr)) { in update_sm_ah() 411 new_ah->src_path_mask = (1 << port_attr.lmc) - 1; in update_sm_ah() 419 ah_attr.dlid = port_attr.sm_lid; in update_sm_ah() 420 ah_attr.sl = port_attr.sm_sl; in update_sm_ah()
|
| HD | sysfs.c | 75 struct port_attribute *port_attr = in port_attr_show() local 79 if (!port_attr->show) in port_attr_show() 82 return port_attr->show(p, port_attr, buf); in port_attr_show()
|
| HD | device.c | 579 struct ib_port_attr *port_attr) in ib_query_port() argument 584 return device->query_port(device, port_num, port_attr); in ib_query_port()
|
| HD | cma.c | 2074 struct ib_port_attr port_attr; in cma_bind_loopback() local 2087 if (!ib_query_port(cma_dev->device, p, &port_attr) && in cma_bind_loopback() 2088 port_attr.state == IB_PORT_ACTIVE) in cma_bind_loopback()
|
| /NextBSD/contrib/ofed/libmlx4/src/ |
| HD | verbs.c | 684 struct ibv_port_attr port_attr; in mlx4_create_ah() local 711 if (ibv_query_port(pd->context, attr->port_num, &port_attr)) in mlx4_create_ah() 714 if (port_attr.link_layer == IBV_LINK_LAYER_ETHERNET) { in mlx4_create_ah()
|
| /NextBSD/sys/ofed/drivers/net/mlx4/ |
| HD | main.c | 1170 port_attr); in show_port_type() 1190 port_attr); in set_port_type() 3015 info->port_attr.attr.name = info->dev_name; in mlx4_init_port_info() 3017 info->port_attr.attr.mode = S_IRUGO; in mlx4_init_port_info() 3019 info->port_attr.attr.mode = S_IRUGO | S_IWUSR; in mlx4_init_port_info() 3020 info->port_attr.store = set_port_type; in mlx4_init_port_info() 3022 info->port_attr.show = show_port_type; in mlx4_init_port_info() 3023 sysfs_attr_init(&info->port_attr.attr); in mlx4_init_port_info() 3025 err = device_create_file(&dev->pdev->dev, &info->port_attr); in mlx4_init_port_info() 3045 device_remove_file(&info->dev->pdev->dev, &info->port_attr); in mlx4_init_port_info() [all …]
|
| HD | mlx4.h | 769 struct device_attribute port_attr; member
|
| /NextBSD/sys/dev/ifmlx4/ |
| HD | main.c | 1172 port_attr); in show_port_type() 1192 port_attr); in set_port_type() 2956 info->port_attr.attr.name = info->dev_name; in mlx4_init_port_info() 2958 info->port_attr.attr.mode = S_IRUGO; in mlx4_init_port_info() 2960 info->port_attr.attr.mode = S_IRUGO | S_IWUSR; in mlx4_init_port_info() 2961 info->port_attr.store = set_port_type; in mlx4_init_port_info() 2963 info->port_attr.show = show_port_type; in mlx4_init_port_info() 2964 sysfs_attr_init(&info->port_attr.attr); in mlx4_init_port_info() 2966 err = device_create_file(&dev->pdev->dev, &info->port_attr); in mlx4_init_port_info() 2986 device_remove_file(&info->dev->pdev->dev, &info->port_attr); in mlx4_init_port_info() [all …]
|
| HD | mlx4.h | 762 struct device_attribute port_attr; member
|
| /NextBSD/sys/ofed/include/rdma/ |
| HD | ib_verbs.h | 1655 struct ib_port_attr *port_attr); 1918 u8 port_num, struct ib_port_attr *port_attr);
|