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