Lines Matching defs:props

523 			    struct ib_port_attr *props)
537 /* props being zeroed by the caller, avoid zeroing it here */
549 props->lid = be16_to_cpup((__be16 *)(out_mad->data + 16));
550 props->lmc = out_mad->data[34] & 0x7;
551 props->sm_lid = be16_to_cpup((__be16 *)(out_mad->data + 18));
552 props->sm_sl = out_mad->data[36] & 0xf;
553 props->state = out_mad->data[32] & 0xf;
554 props->phys_state = out_mad->data[33] >> 4;
555 props->port_cap_flags = be32_to_cpup((__be32 *)(out_mad->data + 20));
556 props->gid_tbl_len = out_mad->data[50];
557 props->max_msg_sz = 1 << MLX5_CAP_GEN(mdev, log_max_msg);
558 props->pkey_tbl_len = mdev->port_caps[port - 1].pkey_table_len;
559 props->bad_pkey_cntr = be16_to_cpup((__be16 *)(out_mad->data + 46));
560 props->qkey_viol_cntr = be16_to_cpup((__be16 *)(out_mad->data + 48));
561 props->active_width = out_mad->data[31] & 0xf;
562 props->active_speed = out_mad->data[35] >> 4;
563 props->max_mtu = out_mad->data[41] & 0xf;
564 props->active_mtu = out_mad->data[36] >> 4;
565 props->subnet_timeout = out_mad->data[51] & 0x1f;
566 props->max_vl_num = out_mad->data[37] >> 4;
567 props->init_type_reply = out_mad->data[41] >> 4;
569 if (props->port_cap_flags & IB_PORT_CAP_MASK2_SUP) {
570 props->port_cap_flags2 =
573 if (props->port_cap_flags2 & IB_PORT_LINK_WIDTH_2X_SUP)
574 props->active_width = out_mad->data[31] & 0x1f;
578 if (props->port_cap_flags & IB_PORT_EXTENDED_SPEEDS_SUP) {
583 props->active_speed = 16; /* FDR */
586 props->active_speed = 32; /* EDR */
589 if (props->port_cap_flags & IB_PORT_CAP_MASK2_SUP &&
590 props->port_cap_flags2 & IB_PORT_LINK_SPEED_HDR_SUP)
591 props->active_speed = IB_SPEED_HDR;
597 if (props->active_speed == 4) {
611 props->active_speed = 8;