Lines Matching defs:path
399 struct mthca_qp_path *path)
401 u8 port_num = (be32_to_cpu(path->port_pkey) >> 24) & 0x3;
410 rdma_ah_set_dlid(ah_attr, be16_to_cpu(path->rlid));
411 rdma_ah_set_sl(ah_attr, be32_to_cpu(path->sl_tclass_flowlabel) >> 28);
412 rdma_ah_set_path_bits(ah_attr, path->g_mylmc & 0x7f);
415 path->static_rate & 0xf,
417 if (path->g_mylmc & (1 << 7)) {
418 u32 tc_fl = be32_to_cpu(path->sl_tclass_flowlabel);
422 path->mgid_index &
424 path->hop_limit,
426 rdma_ah_set_dgid_raw(ah_attr, path->rgid);
523 struct mthca_qp_path *path, u8 port)
525 path->g_mylmc = rdma_ah_get_path_bits(ah) & 0x7f;
526 path->rlid = cpu_to_be16(rdma_ah_get_dlid(ah));
527 path->static_rate = mthca_get_rate(dev, rdma_ah_get_static_rate(ah),
540 path->g_mylmc |= 1 << 7;
541 path->mgid_index = grh->sgid_index;
542 path->hop_limit = grh->hop_limit;
543 path->sl_tclass_flowlabel =
547 memcpy(path->rgid, grh->dgid.raw, 16);
549 path->sl_tclass_flowlabel = cpu_to_be32(rdma_ah_get_sl(ah) <<
607 mthca_dbg(dev, "path MTU (%u) is invalid\n",