Lines Matching refs:rec_type
188 enum sa_path_rec_type rec_type; member
194 switch (rec->rec_type) { in sa_conv_pathrec_to_gid_type()
267 if (src->rec_type != SA_PATH_REC_TYPE_OPA) in sa_convert_path_opa_to_ib()
271 dest->rec_type = SA_PATH_REC_TYPE_IB; in sa_convert_path_opa_to_ib()
279 if (src->rec_type != SA_PATH_REC_TYPE_IB) in sa_convert_path_ib_to_opa()
284 dest->rec_type = SA_PATH_REC_TYPE_OPA; in sa_convert_path_ib_to_opa()
553 return ((rec->rec_type == SA_PATH_REC_TYPE_ROCE_V1) || in sa_path_is_roce()
554 (rec->rec_type == SA_PATH_REC_TYPE_ROCE_V2)); in sa_path_is_roce()
559 return (rec->rec_type == SA_PATH_REC_TYPE_OPA); in sa_path_is_opa()
564 if (rec->rec_type == SA_PATH_REC_TYPE_IB) in sa_path_set_slid()
566 else if (rec->rec_type == SA_PATH_REC_TYPE_OPA) in sa_path_set_slid()
572 if (rec->rec_type == SA_PATH_REC_TYPE_IB) in sa_path_set_dlid()
574 else if (rec->rec_type == SA_PATH_REC_TYPE_OPA) in sa_path_set_dlid()
581 if (rec->rec_type == SA_PATH_REC_TYPE_IB) in sa_path_set_raw_traffic()
583 else if (rec->rec_type == SA_PATH_REC_TYPE_OPA) in sa_path_set_raw_traffic()
589 if (rec->rec_type == SA_PATH_REC_TYPE_IB) in sa_path_get_slid()
591 else if (rec->rec_type == SA_PATH_REC_TYPE_OPA) in sa_path_get_slid()
598 if (rec->rec_type == SA_PATH_REC_TYPE_IB) in sa_path_get_dlid()
600 else if (rec->rec_type == SA_PATH_REC_TYPE_OPA) in sa_path_get_dlid()
607 if (rec->rec_type == SA_PATH_REC_TYPE_IB) in sa_path_get_raw_traffic()
609 else if (rec->rec_type == SA_PATH_REC_TYPE_OPA) in sa_path_get_raw_traffic()