Lines Matching refs:uvt

253 				struct ib_ucm_event *uvt)  in ib_ucm_event_process()  argument
259 ib_ucm_event_req_get(&uvt->resp.u.req_resp, in ib_ucm_event_process()
261 uvt->data_len = IB_CM_REQ_PRIVATE_DATA_SIZE; in ib_ucm_event_process()
262 uvt->resp.present = IB_UCM_PRES_PRIMARY; in ib_ucm_event_process()
263 uvt->resp.present |= (evt->param.req_rcvd.alternate_path ? in ib_ucm_event_process()
267 ib_ucm_event_rep_get(&uvt->resp.u.rep_resp, in ib_ucm_event_process()
269 uvt->data_len = IB_CM_REP_PRIVATE_DATA_SIZE; in ib_ucm_event_process()
272 uvt->data_len = IB_CM_RTU_PRIVATE_DATA_SIZE; in ib_ucm_event_process()
273 uvt->resp.u.send_status = evt->param.send_status; in ib_ucm_event_process()
276 uvt->data_len = IB_CM_DREQ_PRIVATE_DATA_SIZE; in ib_ucm_event_process()
277 uvt->resp.u.send_status = evt->param.send_status; in ib_ucm_event_process()
280 uvt->data_len = IB_CM_DREP_PRIVATE_DATA_SIZE; in ib_ucm_event_process()
281 uvt->resp.u.send_status = evt->param.send_status; in ib_ucm_event_process()
284 uvt->resp.u.mra_resp.timeout = in ib_ucm_event_process()
286 uvt->data_len = IB_CM_MRA_PRIVATE_DATA_SIZE; in ib_ucm_event_process()
289 uvt->resp.u.rej_resp.reason = evt->param.rej_rcvd.reason; in ib_ucm_event_process()
290 uvt->data_len = IB_CM_REJ_PRIVATE_DATA_SIZE; in ib_ucm_event_process()
291 uvt->info_len = evt->param.rej_rcvd.ari_length; in ib_ucm_event_process()
295 ib_copy_path_rec_to_user(&uvt->resp.u.lap_resp.path, in ib_ucm_event_process()
297 uvt->data_len = IB_CM_LAP_PRIVATE_DATA_SIZE; in ib_ucm_event_process()
298 uvt->resp.present = IB_UCM_PRES_ALTERNATE; in ib_ucm_event_process()
301 uvt->resp.u.apr_resp.status = evt->param.apr_rcvd.ap_status; in ib_ucm_event_process()
302 uvt->data_len = IB_CM_APR_PRIVATE_DATA_SIZE; in ib_ucm_event_process()
303 uvt->info_len = evt->param.apr_rcvd.info_len; in ib_ucm_event_process()
307 uvt->resp.u.sidr_req_resp.pkey = in ib_ucm_event_process()
309 uvt->resp.u.sidr_req_resp.port = in ib_ucm_event_process()
311 uvt->data_len = IB_CM_SIDR_REQ_PRIVATE_DATA_SIZE; in ib_ucm_event_process()
314 ib_ucm_event_sidr_rep_get(&uvt->resp.u.sidr_rep_resp, in ib_ucm_event_process()
316 uvt->data_len = IB_CM_SIDR_REP_PRIVATE_DATA_SIZE; in ib_ucm_event_process()
317 uvt->info_len = evt->param.sidr_rep_rcvd.info_len; in ib_ucm_event_process()
321 uvt->resp.u.send_status = evt->param.send_status; in ib_ucm_event_process()
325 if (uvt->data_len) { in ib_ucm_event_process()
326 uvt->data = kmemdup(evt->private_data, uvt->data_len, GFP_KERNEL); in ib_ucm_event_process()
327 if (!uvt->data) in ib_ucm_event_process()
330 uvt->resp.present |= IB_UCM_PRES_DATA; in ib_ucm_event_process()
333 if (uvt->info_len) { in ib_ucm_event_process()
334 uvt->info = kmemdup(info, uvt->info_len, GFP_KERNEL); in ib_ucm_event_process()
335 if (!uvt->info) in ib_ucm_event_process()
338 uvt->resp.present |= IB_UCM_PRES_INFO; in ib_ucm_event_process()
343 kfree(uvt->data); in ib_ucm_event_process()