Lines Matching refs:dst

63 			     struct ib_uverbs_ah_attr *dst,
69 memset(&dst->grh, 0, sizeof(dst->grh));
76 dst->dlid = rdma_ah_get_dlid(src);
77 dst->sl = rdma_ah_get_sl(src);
78 dst->src_path_bits = rdma_ah_get_path_bits(src);
79 dst->static_rate = rdma_ah_get_static_rate(src);
80 dst->is_global = rdma_ah_get_ah_flags(src) &
82 if (dst->is_global) {
85 memcpy(dst->grh.dgid, grh->dgid.raw, sizeof(grh->dgid));
86 dst->grh.flow_label = grh->flow_label;
87 dst->grh.sgid_index = grh->sgid_index;
88 dst->grh.hop_limit = grh->hop_limit;
89 dst->grh.traffic_class = grh->traffic_class;
91 dst->port_num = rdma_ah_get_port_num(src);
92 dst->reserved = 0;
97 struct ib_uverbs_qp_attr *dst,
100 dst->qp_state = src->qp_state;
101 dst->cur_qp_state = src->cur_qp_state;
102 dst->path_mtu = src->path_mtu;
103 dst->path_mig_state = src->path_mig_state;
104 dst->qkey = src->qkey;
105 dst->rq_psn = src->rq_psn;
106 dst->sq_psn = src->sq_psn;
107 dst->dest_qp_num = src->dest_qp_num;
108 dst->qp_access_flags = src->qp_access_flags;
110 dst->max_send_wr = src->cap.max_send_wr;
111 dst->max_recv_wr = src->cap.max_recv_wr;
112 dst->max_send_sge = src->cap.max_send_sge;
113 dst->max_recv_sge = src->cap.max_recv_sge;
114 dst->max_inline_data = src->cap.max_inline_data;
116 ib_copy_ah_attr_to_user(device, &dst->ah_attr, &src->ah_attr);
117 ib_copy_ah_attr_to_user(device, &dst->alt_ah_attr, &src->alt_ah_attr);
119 dst->pkey_index = src->pkey_index;
120 dst->alt_pkey_index = src->alt_pkey_index;
121 dst->en_sqd_async_notify = src->en_sqd_async_notify;
122 dst->sq_draining = src->sq_draining;
123 dst->max_rd_atomic = src->max_rd_atomic;
124 dst->max_dest_rd_atomic = src->max_dest_rd_atomic;
125 dst->min_rnr_timer = src->min_rnr_timer;
126 dst->port_num = src->port_num;
127 dst->timeout = src->timeout;
128 dst->retry_cnt = src->retry_cnt;
129 dst->rnr_retry = src->rnr_retry;
130 dst->alt_port_num = src->alt_port_num;
131 dst->alt_timeout = src->alt_timeout;
132 memset(dst->reserved, 0, sizeof(dst->reserved));
136 static void __ib_copy_path_rec_to_user(struct ib_user_path_rec *dst,
139 memcpy(dst->dgid, src->dgid.raw, sizeof(src->dgid));
140 memcpy(dst->sgid, src->sgid.raw, sizeof(src->sgid));
142 dst->dlid = htons(ntohl(sa_path_get_dlid(src)));
143 dst->slid = htons(ntohl(sa_path_get_slid(src)));
144 dst->raw_traffic = sa_path_get_raw_traffic(src);
145 dst->flow_label = src->flow_label;
146 dst->hop_limit = src->hop_limit;
147 dst->traffic_class = src->traffic_class;
148 dst->reversible = src->reversible;
149 dst->numb_path = src->numb_path;
150 dst->pkey = src->pkey;
151 dst->sl = src->sl;
152 dst->mtu_selector = src->mtu_selector;
153 dst->mtu = src->mtu;
154 dst->rate_selector = src->rate_selector;
155 dst->rate = src->rate;
156 dst->packet_life_time = src->packet_life_time;
157 dst->preference = src->preference;
158 dst->packet_life_time_selector = src->packet_life_time_selector;
161 void ib_copy_path_rec_to_user(struct ib_user_path_rec *dst,
168 __ib_copy_path_rec_to_user(dst, &rec);
171 __ib_copy_path_rec_to_user(dst, src);
175 void ib_copy_path_rec_from_user(struct sa_path_rec *dst,
180 memset(dst, 0, sizeof(*dst));
183 dst->rec_type = SA_PATH_REC_TYPE_OPA;
187 dst->rec_type = SA_PATH_REC_TYPE_IB;
191 memcpy(dst->dgid.raw, src->dgid, sizeof dst->dgid);
192 memcpy(dst->sgid.raw, src->sgid, sizeof dst->sgid);
194 sa_path_set_dlid(dst, dlid);
195 sa_path_set_slid(dst, slid);
196 sa_path_set_raw_traffic(dst, src->raw_traffic);
197 dst->flow_label = src->flow_label;
198 dst->hop_limit = src->hop_limit;
199 dst->traffic_class = src->traffic_class;
200 dst->reversible = src->reversible;
201 dst->numb_path = src->numb_path;
202 dst->pkey = src->pkey;
203 dst->sl = src->sl;
204 dst->mtu_selector = src->mtu_selector;
205 dst->mtu = src->mtu;
206 dst->rate_selector = src->rate_selector;
207 dst->rate = src->rate;
208 dst->packet_life_time = src->packet_life_time;
209 dst->preference = src->preference;
210 dst->packet_life_time_selector = src->packet_life_time_selector;
213 sa_path_set_dmac_zero(dst);