Lines Matching refs:av
250 struct mlx4_av *av = (struct mlx4_av *)dgram->av; in post_nop_wqe() local
252 av->port_pd = cpu_to_be32((qp->port << 24) | to_mpd(qp->ibqp.pd)->pdn); in post_nop_wqe()
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()
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() local
2606 int port = *((u8 *) &av->ib.port_pd) & 0x3; in set_tunnel_datagram_seg()
2609 sqp_av.port_pd = av->ib.port_pd | cpu_to_be32(0x80000000); in set_tunnel_datagram_seg()
2610 sqp_av.g_slid = av->ib.g_slid & 0x7f; /* no GRH */ in set_tunnel_datagram_seg()
2611 sqp_av.sl_tclass_flowlabel = av->ib.sl_tclass_flowlabel & in set_tunnel_datagram_seg()
2614 memcpy(dseg->av, &sqp_av, sizeof (struct mlx4_av)); in set_tunnel_datagram_seg()
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()