Lines Matching refs:ah
1273 static int _mlx4_set_path(struct mlx4_ib_dev *dev, const struct ib_ah_attr *ah, in _mlx4_set_path() argument
1284 path->grh_mylmc = ah->src_path_bits & 0x7f; in _mlx4_set_path()
1285 path->rlid = cpu_to_be16(ah->dlid); in _mlx4_set_path()
1286 if (ah->static_rate) { in _mlx4_set_path()
1287 path->static_rate = ah->static_rate + MLX4_STAT_RATE_OFFSET; in _mlx4_set_path()
1294 if (ah->ah_flags & IB_AH_GRH) { in _mlx4_set_path()
1295 if (ah->grh.sgid_index >= dev->dev->caps.gid_table_len[port]) { in _mlx4_set_path()
1297 ah->grh.sgid_index, dev->dev->caps.gid_table_len[port] - 1); in _mlx4_set_path()
1302 path->mgid_index = ah->grh.sgid_index; in _mlx4_set_path()
1303 path->hop_limit = ah->grh.hop_limit; in _mlx4_set_path()
1305 cpu_to_be32((ah->grh.traffic_class << 20) | in _mlx4_set_path()
1306 (ah->grh.flow_label)); in _mlx4_set_path()
1307 memcpy(path->rgid, ah->grh.dgid.raw, 16); in _mlx4_set_path()
1311 if (!(ah->ah_flags & IB_AH_GRH)) in _mlx4_set_path()
1315 ((port - 1) << 6) | ((ah->sl & 7) << 3); in _mlx4_set_path()
1375 memcpy(path->dmac, ah->dmac, 6); in _mlx4_set_path()
1381 ((port - 1) << 6) | ((ah->sl & 0xf) << 2); in _mlx4_set_path()
2041 struct mlx4_ib_ah *ah = to_mah(wr->wr.ud.ah); in build_sriov_qp0_header() local
2066 be32_to_cpu(ah->av.ib.sl_tclass_flowlabel) >> 28; in build_sriov_qp0_header()
2068 cpu_to_be16(ah->av.ib.g_slid & 0x7f); in build_sriov_qp0_header()
2070 cpu_to_be16(ah->av.ib.g_slid & 0x7f); in build_sriov_qp0_header()
2163 struct mlx4_ib_ah *ah = to_mah(wr->wr.ud.ah); in build_mlx_header() local
2181 is_grh = mlx4_ib_ah_grh_present(ah); in build_mlx_header()
2188 be32_to_cpu(ah->av.ib.port_pd) >> 24, in build_mlx_header()
2189 ah->av.ib.gid_index, &sgid.raw[0]); in build_mlx_header()
2194 be32_to_cpu(ah->av.ib.port_pd) >> 24, in build_mlx_header()
2195 ah->av.ib.gid_index, &sgid); in build_mlx_header()
2200 if (ah->av.eth.vlan != cpu_to_be16(0xffff)) { in build_mlx_header()
2201 vlan = be16_to_cpu(ah->av.eth.vlan) & 0x0fff; in build_mlx_header()
2209 be32_to_cpu(ah->av.ib.sl_tclass_flowlabel) >> 28; in build_mlx_header()
2210 sqp->ud_header.lrh.destination_lid = ah->av.ib.dlid; in build_mlx_header()
2211 sqp->ud_header.lrh.source_lid = cpu_to_be16(ah->av.ib.g_slid & 0x7f); in build_mlx_header()
2216 (be32_to_cpu(ah->av.ib.sl_tclass_flowlabel) >> 20) & 0xff; in build_mlx_header()
2218 ah->av.ib.sl_tclass_flowlabel & cpu_to_be32(0xfffff); in build_mlx_header()
2219 sqp->ud_header.grh.hop_limit = ah->av.ib.hop_limit; in build_mlx_header()
2232 guid_cache[ah->av.ib.gid_index]; in build_mlx_header()
2235 be32_to_cpu(ah->av.ib.port_pd) >> 24, in build_mlx_header()
2236 ah->av.ib.gid_index, in build_mlx_header()
2240 ah->av.ib.dgid, 16); in build_mlx_header()
2250 if (ah->av.ib.port_pd & cpu_to_be32(0x80000000)) in build_mlx_header()
2272 u16 pcp = (be32_to_cpu(ah->av.ib.sl_tclass_flowlabel) >> 29) << 13; in build_mlx_header()
2276 memcpy(sqp->ud_header.eth.dmac_h, ah->av.eth.mac, 6); in build_mlx_header()
2278 memcpy(&ctrl->srcrb_flags16[0], ah->av.eth.mac, 2); in build_mlx_header()
2279 memcpy(&ctrl->imm, ah->av.eth.mac + 2, 4); in build_mlx_header()
2290 memcpy(sqp->ud_header.eth.smac_h, ah->av.eth.s_mac, ETH_ALEN); in build_mlx_header()
2483 memcpy(dseg->av, &to_mah(wr->wr.ud.ah)->av, sizeof (struct mlx4_av)); in set_datagram_seg()
2486 dseg->vlan = to_mah(wr->wr.ud.ah)->av.eth.vlan; in set_datagram_seg()
2487 memcpy(dseg->mac, to_mah(wr->wr.ud.ah)->av.eth.mac, 6); in set_datagram_seg()
2495 union mlx4_ext_av *av = &to_mah(wr->wr.ud.ah)->av; in set_tunnel_datagram_seg()
2518 struct mlx4_ib_ah *ah = to_mah(wr->wr.ud.ah); in build_tunnel_header() local
2522 memcpy(&hdr.av, &ah->av, sizeof hdr.av); in build_tunnel_header()
2526 memcpy(hdr.mac, ah->av.eth.mac, 6); in build_tunnel_header()
2527 hdr.vlan = ah->av.eth.vlan; in build_tunnel_header()