Lines Matching full:src
66 struct rdma_ah_attr *src = ah_attr; in ib_copy_ah_attr_to_user() local
74 src = &conv_ah; in ib_copy_ah_attr_to_user()
76 dst->dlid = rdma_ah_get_dlid(src); in ib_copy_ah_attr_to_user()
77 dst->sl = rdma_ah_get_sl(src); in ib_copy_ah_attr_to_user()
78 dst->src_path_bits = rdma_ah_get_path_bits(src); in ib_copy_ah_attr_to_user()
79 dst->static_rate = rdma_ah_get_static_rate(src); in ib_copy_ah_attr_to_user()
80 dst->is_global = rdma_ah_get_ah_flags(src) & in ib_copy_ah_attr_to_user()
83 const struct ib_global_route *grh = rdma_ah_read_grh(src); in ib_copy_ah_attr_to_user()
91 dst->port_num = rdma_ah_get_port_num(src); in ib_copy_ah_attr_to_user()
98 struct ib_qp_attr *src) in ib_copy_qp_attr_to_user() argument
100 dst->qp_state = src->qp_state; in ib_copy_qp_attr_to_user()
101 dst->cur_qp_state = src->cur_qp_state; in ib_copy_qp_attr_to_user()
102 dst->path_mtu = src->path_mtu; in ib_copy_qp_attr_to_user()
103 dst->path_mig_state = src->path_mig_state; in ib_copy_qp_attr_to_user()
104 dst->qkey = src->qkey; in ib_copy_qp_attr_to_user()
105 dst->rq_psn = src->rq_psn; in ib_copy_qp_attr_to_user()
106 dst->sq_psn = src->sq_psn; in ib_copy_qp_attr_to_user()
107 dst->dest_qp_num = src->dest_qp_num; in ib_copy_qp_attr_to_user()
108 dst->qp_access_flags = src->qp_access_flags; in ib_copy_qp_attr_to_user()
110 dst->max_send_wr = src->cap.max_send_wr; in ib_copy_qp_attr_to_user()
111 dst->max_recv_wr = src->cap.max_recv_wr; in ib_copy_qp_attr_to_user()
112 dst->max_send_sge = src->cap.max_send_sge; in ib_copy_qp_attr_to_user()
113 dst->max_recv_sge = src->cap.max_recv_sge; in ib_copy_qp_attr_to_user()
114 dst->max_inline_data = src->cap.max_inline_data; in ib_copy_qp_attr_to_user()
116 ib_copy_ah_attr_to_user(device, &dst->ah_attr, &src->ah_attr); in ib_copy_qp_attr_to_user()
117 ib_copy_ah_attr_to_user(device, &dst->alt_ah_attr, &src->alt_ah_attr); in ib_copy_qp_attr_to_user()
119 dst->pkey_index = src->pkey_index; in ib_copy_qp_attr_to_user()
120 dst->alt_pkey_index = src->alt_pkey_index; in ib_copy_qp_attr_to_user()
121 dst->en_sqd_async_notify = src->en_sqd_async_notify; in ib_copy_qp_attr_to_user()
122 dst->sq_draining = src->sq_draining; in ib_copy_qp_attr_to_user()
123 dst->max_rd_atomic = src->max_rd_atomic; in ib_copy_qp_attr_to_user()
124 dst->max_dest_rd_atomic = src->max_dest_rd_atomic; in ib_copy_qp_attr_to_user()
125 dst->min_rnr_timer = src->min_rnr_timer; in ib_copy_qp_attr_to_user()
126 dst->port_num = src->port_num; in ib_copy_qp_attr_to_user()
127 dst->timeout = src->timeout; in ib_copy_qp_attr_to_user()
128 dst->retry_cnt = src->retry_cnt; in ib_copy_qp_attr_to_user()
129 dst->rnr_retry = src->rnr_retry; in ib_copy_qp_attr_to_user()
130 dst->alt_port_num = src->alt_port_num; in ib_copy_qp_attr_to_user()
131 dst->alt_timeout = src->alt_timeout; in ib_copy_qp_attr_to_user()
137 struct sa_path_rec *src) in __ib_copy_path_rec_to_user() argument
139 memcpy(dst->dgid, src->dgid.raw, sizeof(src->dgid)); in __ib_copy_path_rec_to_user()
140 memcpy(dst->sgid, src->sgid.raw, sizeof(src->sgid)); in __ib_copy_path_rec_to_user()
142 dst->dlid = htons(ntohl(sa_path_get_dlid(src))); in __ib_copy_path_rec_to_user()
143 dst->slid = htons(ntohl(sa_path_get_slid(src))); in __ib_copy_path_rec_to_user()
144 dst->raw_traffic = sa_path_get_raw_traffic(src); in __ib_copy_path_rec_to_user()
145 dst->flow_label = src->flow_label; in __ib_copy_path_rec_to_user()
146 dst->hop_limit = src->hop_limit; in __ib_copy_path_rec_to_user()
147 dst->traffic_class = src->traffic_class; in __ib_copy_path_rec_to_user()
148 dst->reversible = src->reversible; in __ib_copy_path_rec_to_user()
149 dst->numb_path = src->numb_path; in __ib_copy_path_rec_to_user()
150 dst->pkey = src->pkey; in __ib_copy_path_rec_to_user()
151 dst->sl = src->sl; in __ib_copy_path_rec_to_user()
152 dst->mtu_selector = src->mtu_selector; in __ib_copy_path_rec_to_user()
153 dst->mtu = src->mtu; in __ib_copy_path_rec_to_user()
154 dst->rate_selector = src->rate_selector; in __ib_copy_path_rec_to_user()
155 dst->rate = src->rate; in __ib_copy_path_rec_to_user()
156 dst->packet_life_time = src->packet_life_time; in __ib_copy_path_rec_to_user()
157 dst->preference = src->preference; in __ib_copy_path_rec_to_user()
158 dst->packet_life_time_selector = src->packet_life_time_selector; in __ib_copy_path_rec_to_user()
162 struct sa_path_rec *src) in ib_copy_path_rec_to_user() argument
166 if (src->rec_type == SA_PATH_REC_TYPE_OPA) { in ib_copy_path_rec_to_user()
167 sa_convert_path_opa_to_ib(&rec, src); in ib_copy_path_rec_to_user()
171 __ib_copy_path_rec_to_user(dst, src); in ib_copy_path_rec_to_user()
176 struct ib_user_path_rec *src) in ib_copy_path_rec_from_user() argument
181 if ((ib_is_opa_gid((union ib_gid *)src->sgid)) || in ib_copy_path_rec_from_user()
182 (ib_is_opa_gid((union ib_gid *)src->dgid))) { in ib_copy_path_rec_from_user()
184 slid = opa_get_lid_from_gid((union ib_gid *)src->sgid); in ib_copy_path_rec_from_user()
185 dlid = opa_get_lid_from_gid((union ib_gid *)src->dgid); in ib_copy_path_rec_from_user()
188 slid = ntohs(src->slid); in ib_copy_path_rec_from_user()
189 dlid = ntohs(src->dlid); in ib_copy_path_rec_from_user()
191 memcpy(dst->dgid.raw, src->dgid, sizeof dst->dgid); in ib_copy_path_rec_from_user()
192 memcpy(dst->sgid.raw, src->sgid, sizeof dst->sgid); in ib_copy_path_rec_from_user()
196 sa_path_set_raw_traffic(dst, src->raw_traffic); in ib_copy_path_rec_from_user()
197 dst->flow_label = src->flow_label; in ib_copy_path_rec_from_user()
198 dst->hop_limit = src->hop_limit; in ib_copy_path_rec_from_user()
199 dst->traffic_class = src->traffic_class; in ib_copy_path_rec_from_user()
200 dst->reversible = src->reversible; in ib_copy_path_rec_from_user()
201 dst->numb_path = src->numb_path; in ib_copy_path_rec_from_user()
202 dst->pkey = src->pkey; in ib_copy_path_rec_from_user()
203 dst->sl = src->sl; in ib_copy_path_rec_from_user()
204 dst->mtu_selector = src->mtu_selector; in ib_copy_path_rec_from_user()
205 dst->mtu = src->mtu; in ib_copy_path_rec_from_user()
206 dst->rate_selector = src->rate_selector; in ib_copy_path_rec_from_user()
207 dst->rate = src->rate; in ib_copy_path_rec_from_user()
208 dst->packet_life_time = src->packet_life_time; in ib_copy_path_rec_from_user()
209 dst->preference = src->preference; in ib_copy_path_rec_from_user()
210 dst->packet_life_time_selector = src->packet_life_time_selector; in ib_copy_path_rec_from_user()