Lines Matching refs:ah
1298 static int _mlx4_set_path(struct mlx4_ib_dev *dev, const struct ib_ah_attr *ah, in _mlx4_set_path() argument
1309 path->grh_mylmc = ah->src_path_bits & 0x7f; in _mlx4_set_path()
1310 path->rlid = cpu_to_be16(ah->dlid); in _mlx4_set_path()
1311 if (ah->static_rate) { in _mlx4_set_path()
1312 path->static_rate = ah->static_rate + MLX4_STAT_RATE_OFFSET; in _mlx4_set_path()
1319 if (ah->ah_flags & IB_AH_GRH) { in _mlx4_set_path()
1322 ah->grh.sgid_index); in _mlx4_set_path()
1332 path->hop_limit = ah->grh.hop_limit; in _mlx4_set_path()
1334 cpu_to_be32((ah->grh.traffic_class << 20) | in _mlx4_set_path()
1335 (ah->grh.flow_label)); in _mlx4_set_path()
1336 memcpy(path->rgid, ah->grh.dgid.raw, 16); in _mlx4_set_path()
1340 if (!(ah->ah_flags & IB_AH_GRH)) in _mlx4_set_path()
1344 ((port - 1) << 6) | ((ah->sl & 7) << 3); in _mlx4_set_path()
1404 memcpy(path->dmac, ah->dmac, 6); in _mlx4_set_path()
1410 ((port - 1) << 6) | ((ah->sl & 0xf) << 2); in _mlx4_set_path()
2150 struct mlx4_ib_ah *ah = to_mah(wr->ah); in build_sriov_qp0_header() local
2175 be32_to_cpu(ah->av.ib.sl_tclass_flowlabel) >> 28; in build_sriov_qp0_header()
2177 cpu_to_be16(ah->av.ib.g_slid & 0x7f); in build_sriov_qp0_header()
2179 cpu_to_be16(ah->av.ib.g_slid & 0x7f); in build_sriov_qp0_header()
2272 struct mlx4_ib_ah *ah = to_mah(wr->ah); in build_mlx_header() local
2290 is_grh = mlx4_ib_ah_grh_present(ah); in build_mlx_header()
2297 be32_to_cpu(ah->av.ib.port_pd) >> 24, in build_mlx_header()
2298 ah->av.ib.gid_index, &sgid.raw[0]); in build_mlx_header()
2303 be32_to_cpu(ah->av.ib.port_pd) >> 24, in build_mlx_header()
2304 ah->av.ib.gid_index, &sgid, in build_mlx_header()
2312 if (ah->av.eth.vlan != cpu_to_be16(0xffff)) { in build_mlx_header()
2313 vlan = be16_to_cpu(ah->av.eth.vlan) & 0x0fff; in build_mlx_header()
2321 be32_to_cpu(ah->av.ib.sl_tclass_flowlabel) >> 28; in build_mlx_header()
2322 sqp->ud_header.lrh.destination_lid = ah->av.ib.dlid; in build_mlx_header()
2323 sqp->ud_header.lrh.source_lid = cpu_to_be16(ah->av.ib.g_slid & 0x7f); in build_mlx_header()
2328 (be32_to_cpu(ah->av.ib.sl_tclass_flowlabel) >> 20) & 0xff; in build_mlx_header()
2330 ah->av.ib.sl_tclass_flowlabel & cpu_to_be32(0xfffff); in build_mlx_header()
2331 sqp->ud_header.grh.hop_limit = ah->av.ib.hop_limit; in build_mlx_header()
2344 guid_cache[ah->av.ib.gid_index]; in build_mlx_header()
2347 be32_to_cpu(ah->av.ib.port_pd) >> 24, in build_mlx_header()
2348 ah->av.ib.gid_index, in build_mlx_header()
2352 ah->av.ib.dgid, 16); in build_mlx_header()
2362 if (ah->av.ib.port_pd & cpu_to_be32(0x80000000)) in build_mlx_header()
2384 u16 pcp = (be32_to_cpu(ah->av.ib.sl_tclass_flowlabel) >> 29) << 13; in build_mlx_header()
2388 memcpy(sqp->ud_header.eth.dmac_h, ah->av.eth.mac, 6); in build_mlx_header()
2390 memcpy(&ctrl->srcrb_flags16[0], ah->av.eth.mac, 2); in build_mlx_header()
2391 memcpy(&ctrl->imm, ah->av.eth.mac + 2, 4); in build_mlx_header()
2402 memcpy(sqp->ud_header.eth.smac_h, ah->av.eth.s_mac, ETH_ALEN); in build_mlx_header()
2592 memcpy(dseg->av, &to_mah(wr->ah)->av, sizeof (struct mlx4_av)); in set_datagram_seg()
2595 dseg->vlan = to_mah(wr->ah)->av.eth.vlan; in set_datagram_seg()
2596 memcpy(dseg->mac, to_mah(wr->ah)->av.eth.mac, 6); in set_datagram_seg()
2604 union mlx4_ext_av *av = &to_mah(wr->ah)->av; in set_tunnel_datagram_seg()
2627 struct mlx4_ib_ah *ah = to_mah(wr->ah); in build_tunnel_header() local
2631 memcpy(&hdr.av, &ah->av, sizeof hdr.av); in build_tunnel_header()
2635 memcpy(hdr.mac, ah->av.eth.mac, 6); in build_tunnel_header()
2636 hdr.vlan = ah->av.eth.vlan; in build_tunnel_header()