Lines Matching refs:ah
1376 static int mlx5_set_path(struct mlx5_ib_dev *dev, const struct ib_ah_attr *ah, in mlx5_set_path() argument
1390 path->grh_mlid = ah->src_path_bits & 0x7f; in mlx5_set_path()
1391 path->rlid = cpu_to_be16(ah->dlid); in mlx5_set_path()
1393 if (ah->ah_flags & IB_AH_GRH) { in mlx5_set_path()
1394 if (ah->grh.sgid_index >= gen->port[port - 1].gid_table_len) { in mlx5_set_path()
1396 ah->grh.sgid_index, gen->port[port - 1].gid_table_len); in mlx5_set_path()
1400 path->mgid_index = ah->grh.sgid_index; in mlx5_set_path()
1401 path->hop_limit = ah->grh.hop_limit; in mlx5_set_path()
1403 cpu_to_be32((ah->grh.traffic_class << 20) | in mlx5_set_path()
1404 (ah->grh.flow_label)); in mlx5_set_path()
1405 memcpy(path->rgid, ah->grh.dgid.raw, 16); in mlx5_set_path()
1408 err = ib_rate_to_mlx5(dev, ah->static_rate); in mlx5_set_path()
1417 path->sl = ah->sl & 0xf; in mlx5_set_path()
1853 memcpy(&dseg->av, &to_mah(wr->wr.ud.ah)->av, sizeof(struct mlx5_av)); in set_datagram_seg()