Lines Matching full:av

48 	ah->av.ib.port_pd = cpu_to_be32(to_mpd(ib_ah->pd)->pdn |  in create_ib_ah()
50 ah->av.ib.g_slid = rdma_ah_get_path_bits(ah_attr); in create_ib_ah()
51 ah->av.ib.sl_tclass_flowlabel = in create_ib_ah()
56 ah->av.ib.g_slid |= 0x80; in create_ib_ah()
57 ah->av.ib.gid_index = grh->sgid_index; in create_ib_ah()
58 ah->av.ib.hop_limit = grh->hop_limit; in create_ib_ah()
59 ah->av.ib.sl_tclass_flowlabel |= in create_ib_ah()
62 memcpy(ah->av.ib.dgid, grh->dgid.raw, 16); in create_ib_ah()
65 ah->av.ib.dlid = cpu_to_be16(rdma_ah_get_dlid(ah_attr)); in create_ib_ah()
73 ah->av.ib.stat_rate = static_rate; in create_ib_ah()
93 memcpy(ah->av.eth.mac, ah_attr->roce.dmac, ETH_ALEN); in create_iboe_ah()
94 eth_zero_addr(ah->av.eth.s_mac); in create_iboe_ah()
98 * and we are directly creating an AV for a slave's gid_index. in create_iboe_ah()
103 &ah->av.eth.s_mac[0]); in create_iboe_ah()
110 ah->av.eth.gid_index = ret; in create_iboe_ah()
113 ah->av.eth.gid_index = ah_attr->grh.sgid_index; in create_iboe_ah()
118 ah->av.eth.port_pd = cpu_to_be32(to_mpd(ib_ah->pd)->pdn | in create_iboe_ah()
120 ah->av.eth.vlan = cpu_to_be16(vlan_tag); in create_iboe_ah()
121 ah->av.eth.hop_limit = grh->hop_limit; in create_iboe_ah()
123 ah->av.eth.stat_rate = rdma_ah_get_static_rate(ah_attr) + in create_iboe_ah()
125 while (ah->av.eth.stat_rate > IB_RATE_2_5_GBPS + MLX4_STAT_RATE_OFFSET && in create_iboe_ah()
126 !(1 << ah->av.eth.stat_rate & dev->caps.stat_rate_support)) in create_iboe_ah()
127 --ah->av.eth.stat_rate; in create_iboe_ah()
129 ah->av.eth.sl_tclass_flowlabel |= in create_iboe_ah()
136 ah->av.ib.dlid = cpu_to_be16(0xc000); in create_iboe_ah()
138 memcpy(ah->av.eth.dgid, grh->dgid.raw, 16); in create_iboe_ah()
139 ah->av.eth.sl_tclass_flowlabel |= cpu_to_be32(rdma_ah_get_sl(ah_attr) in create_iboe_ah()
185 mah->av.ib.port_pd &= cpu_to_be32(0x7FFFFFFF); in mlx4_ib_create_ah_slave()
188 memcpy(mah->av.eth.s_mac, s_mac, 6); in mlx4_ib_create_ah_slave()
192 mah->av.eth.vlan = cpu_to_be16(vlan_tag); in mlx4_ib_create_ah_slave()
200 int port_num = be32_to_cpu(ah->av.ib.port_pd) >> 24; in mlx4_ib_query_ah()
208 be32_to_cpu(ah->av.eth.sl_tclass_flowlabel) in mlx4_ib_query_ah()
211 rdma_ah_set_dlid(ah_attr, be16_to_cpu(ah->av.ib.dlid)); in mlx4_ib_query_ah()
213 be32_to_cpu(ah->av.ib.sl_tclass_flowlabel) in mlx4_ib_query_ah()
218 if (ah->av.ib.stat_rate) in mlx4_ib_query_ah()
220 ah->av.ib.stat_rate - in mlx4_ib_query_ah()
222 rdma_ah_set_path_bits(ah_attr, ah->av.ib.g_slid & 0x7F); in mlx4_ib_query_ah()
224 u32 tc_fl = be32_to_cpu(ah->av.ib.sl_tclass_flowlabel); in mlx4_ib_query_ah()
227 tc_fl & 0xfffff, ah->av.ib.gid_index, in mlx4_ib_query_ah()
228 ah->av.ib.hop_limit, in mlx4_ib_query_ah()
230 rdma_ah_set_dgid_raw(ah_attr, ah->av.ib.dgid); in mlx4_ib_query_ah()