Lines Matching full:props

494 			    struct ib_port_attr *props)  in mlx5_query_mad_ifc_port()  argument
513 memset(props, 0, sizeof(*props)); in mlx5_query_mad_ifc_port()
525 props->lid = be16_to_cpup((__be16 *)(out_mad->data + 16)); in mlx5_query_mad_ifc_port()
526 props->lmc = out_mad->data[34] & 0x7; in mlx5_query_mad_ifc_port()
527 props->sm_lid = be16_to_cpup((__be16 *)(out_mad->data + 18)); in mlx5_query_mad_ifc_port()
528 props->sm_sl = out_mad->data[36] & 0xf; in mlx5_query_mad_ifc_port()
529 props->state = out_mad->data[32] & 0xf; in mlx5_query_mad_ifc_port()
530 props->phys_state = out_mad->data[33] >> 4; in mlx5_query_mad_ifc_port()
531 props->port_cap_flags = be32_to_cpup((__be32 *)(out_mad->data + 20)); in mlx5_query_mad_ifc_port()
532 props->gid_tbl_len = out_mad->data[50]; in mlx5_query_mad_ifc_port()
533 props->max_msg_sz = 1 << MLX5_CAP_GEN(mdev, log_max_msg); in mlx5_query_mad_ifc_port()
534 props->pkey_tbl_len = mdev->port_caps[port - 1].pkey_table_len; in mlx5_query_mad_ifc_port()
535 props->bad_pkey_cntr = be16_to_cpup((__be16 *)(out_mad->data + 46)); in mlx5_query_mad_ifc_port()
536 props->qkey_viol_cntr = be16_to_cpup((__be16 *)(out_mad->data + 48)); in mlx5_query_mad_ifc_port()
537 props->active_width = out_mad->data[31] & 0xf; in mlx5_query_mad_ifc_port()
538 props->active_speed = out_mad->data[35] >> 4; in mlx5_query_mad_ifc_port()
539 props->max_mtu = out_mad->data[41] & 0xf; in mlx5_query_mad_ifc_port()
540 props->active_mtu = out_mad->data[36] >> 4; in mlx5_query_mad_ifc_port()
541 props->subnet_timeout = out_mad->data[51] & 0x1f; in mlx5_query_mad_ifc_port()
542 props->max_vl_num = out_mad->data[37] >> 4; in mlx5_query_mad_ifc_port()
543 props->init_type_reply = out_mad->data[41] >> 4; in mlx5_query_mad_ifc_port()
546 if (props->port_cap_flags & IB_PORT_EXTENDED_SPEEDS_SUP) { in mlx5_query_mad_ifc_port()
551 props->active_speed = 16; /* FDR */ in mlx5_query_mad_ifc_port()
554 props->active_speed = 32; /* EDR */ in mlx5_query_mad_ifc_port()
560 if (props->active_speed == 4) { in mlx5_query_mad_ifc_port()
574 props->active_speed = 8; in mlx5_query_mad_ifc_port()