Lines Matching refs:av

249 		struct mlx4_av *av = (struct mlx4_av *)dgram->av;  in post_nop_wqe()  local
251 av->port_pd = cpu_to_be32((qp->port << 24) | to_mpd(qp->ibqp.pd)->pdn); in post_nop_wqe()
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()
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() local
2497 int port = *((u8 *) &av->ib.port_pd) & 0x3; in set_tunnel_datagram_seg()
2500 sqp_av.port_pd = av->ib.port_pd | cpu_to_be32(0x80000000); in set_tunnel_datagram_seg()
2501 sqp_av.g_slid = av->ib.g_slid & 0x7f; /* no GRH */ in set_tunnel_datagram_seg()
2502 sqp_av.sl_tclass_flowlabel = av->ib.sl_tclass_flowlabel & in set_tunnel_datagram_seg()
2505 memcpy(dseg->av, &sqp_av, sizeof (struct mlx4_av)); in set_tunnel_datagram_seg()
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()