Lines Matching refs:dst

40 void ib_copy_ah_attr_to_user(struct ib_uverbs_ah_attr *dst,
43 memcpy(dst->grh.dgid, src->grh.dgid.raw, sizeof src->grh.dgid);
44 dst->grh.flow_label = src->grh.flow_label;
45 dst->grh.sgid_index = src->grh.sgid_index;
46 dst->grh.hop_limit = src->grh.hop_limit;
47 dst->grh.traffic_class = src->grh.traffic_class;
48 memset(&dst->grh.reserved, 0, sizeof(dst->grh.reserved));
49 dst->dlid = src->dlid;
50 dst->sl = src->sl;
51 dst->src_path_bits = src->src_path_bits;
52 dst->static_rate = src->static_rate;
53 dst->is_global = src->ah_flags & IB_AH_GRH ? 1 : 0;
54 dst->port_num = src->port_num;
55 dst->reserved = 0;
59 void ib_copy_qp_attr_to_user(struct ib_uverbs_qp_attr *dst,
62 dst->qp_state = src->qp_state;
63 dst->cur_qp_state = src->cur_qp_state;
64 dst->path_mtu = src->path_mtu;
65 dst->path_mig_state = src->path_mig_state;
66 dst->qkey = src->qkey;
67 dst->rq_psn = src->rq_psn;
68 dst->sq_psn = src->sq_psn;
69 dst->dest_qp_num = src->dest_qp_num;
70 dst->qp_access_flags = src->qp_access_flags;
72 dst->max_send_wr = src->cap.max_send_wr;
73 dst->max_recv_wr = src->cap.max_recv_wr;
74 dst->max_send_sge = src->cap.max_send_sge;
75 dst->max_recv_sge = src->cap.max_recv_sge;
76 dst->max_inline_data = src->cap.max_inline_data;
78 ib_copy_ah_attr_to_user(&dst->ah_attr, &src->ah_attr);
79 ib_copy_ah_attr_to_user(&dst->alt_ah_attr, &src->alt_ah_attr);
81 dst->pkey_index = src->pkey_index;
82 dst->alt_pkey_index = src->alt_pkey_index;
83 dst->en_sqd_async_notify = src->en_sqd_async_notify;
84 dst->sq_draining = src->sq_draining;
85 dst->max_rd_atomic = src->max_rd_atomic;
86 dst->max_dest_rd_atomic = src->max_dest_rd_atomic;
87 dst->min_rnr_timer = src->min_rnr_timer;
88 dst->port_num = src->port_num;
89 dst->timeout = src->timeout;
90 dst->retry_cnt = src->retry_cnt;
91 dst->rnr_retry = src->rnr_retry;
92 dst->alt_port_num = src->alt_port_num;
93 dst->alt_timeout = src->alt_timeout;
94 memset(dst->reserved, 0, sizeof(dst->reserved));
98 void ib_copy_path_rec_to_user(struct ib_user_path_rec *dst,
101 memcpy(dst->dgid, src->dgid.raw, sizeof src->dgid);
102 memcpy(dst->sgid, src->sgid.raw, sizeof src->sgid);
104 dst->dlid = src->dlid;
105 dst->slid = src->slid;
106 dst->raw_traffic = src->raw_traffic;
107 dst->flow_label = src->flow_label;
108 dst->hop_limit = src->hop_limit;
109 dst->traffic_class = src->traffic_class;
110 dst->reversible = src->reversible;
111 dst->numb_path = src->numb_path;
112 dst->pkey = src->pkey;
113 dst->sl = src->sl;
114 dst->mtu_selector = src->mtu_selector;
115 dst->mtu = src->mtu;
116 dst->rate_selector = src->rate_selector;
117 dst->rate = src->rate;
118 dst->packet_life_time = src->packet_life_time;
119 dst->preference = src->preference;
120 dst->packet_life_time_selector = src->packet_life_time_selector;
124 void ib_copy_path_rec_from_user(struct ib_sa_path_rec *dst,
127 memcpy(dst->dgid.raw, src->dgid, sizeof dst->dgid);
128 memcpy(dst->sgid.raw, src->sgid, sizeof dst->sgid);
130 dst->dlid = src->dlid;
131 dst->slid = src->slid;
132 dst->raw_traffic = src->raw_traffic;
133 dst->flow_label = src->flow_label;
134 dst->hop_limit = src->hop_limit;
135 dst->traffic_class = src->traffic_class;
136 dst->reversible = src->reversible;
137 dst->numb_path = src->numb_path;
138 dst->pkey = src->pkey;
139 dst->sl = src->sl;
140 dst->mtu_selector = src->mtu_selector;
141 dst->mtu = src->mtu;
142 dst->rate_selector = src->rate_selector;
143 dst->rate = src->rate;
144 dst->packet_life_time = src->packet_life_time;
145 dst->preference = src->preference;
146 dst->packet_life_time_selector = src->packet_life_time_selector;
148 memset(dst->dmac, 0, sizeof(dst->dmac));
149 dst->net = TD_TO_VNET(curthread);
150 dst->ifindex = 0;
151 dst->gid_type = IB_GID_TYPE_IB;