Lines Matching refs:resp
292 struct ib_uverbs_get_context_resp resp; in ib_uverbs_get_context() local
301 if (out_len < sizeof resp) in ib_uverbs_get_context()
315 (unsigned long) cmd.response + sizeof resp, in ib_uverbs_get_context()
316 in_len - sizeof cmd, out_len - sizeof resp); in ib_uverbs_get_context()
353 resp.num_comp_vectors = file->device->num_comp_vectors; in ib_uverbs_get_context()
358 resp.async_fd = ret; in ib_uverbs_get_context()
367 &resp, sizeof resp)) { in ib_uverbs_get_context()
374 fd_install(resp.async_fd, filp); in ib_uverbs_get_context()
385 put_unused_fd(resp.async_fd); in ib_uverbs_get_context()
398 struct ib_uverbs_query_device_resp *resp, in copy_query_dev_fields() argument
401 resp->fw_ver = attr->fw_ver; in copy_query_dev_fields()
402 resp->node_guid = ib_dev->node_guid; in copy_query_dev_fields()
403 resp->sys_image_guid = attr->sys_image_guid; in copy_query_dev_fields()
404 resp->max_mr_size = attr->max_mr_size; in copy_query_dev_fields()
405 resp->page_size_cap = attr->page_size_cap; in copy_query_dev_fields()
406 resp->vendor_id = attr->vendor_id; in copy_query_dev_fields()
407 resp->vendor_part_id = attr->vendor_part_id; in copy_query_dev_fields()
408 resp->hw_ver = attr->hw_ver; in copy_query_dev_fields()
409 resp->max_qp = attr->max_qp; in copy_query_dev_fields()
410 resp->max_qp_wr = attr->max_qp_wr; in copy_query_dev_fields()
411 resp->device_cap_flags = attr->device_cap_flags; in copy_query_dev_fields()
412 resp->max_sge = attr->max_sge; in copy_query_dev_fields()
413 resp->max_sge_rd = attr->max_sge_rd; in copy_query_dev_fields()
414 resp->max_cq = attr->max_cq; in copy_query_dev_fields()
415 resp->max_cqe = attr->max_cqe; in copy_query_dev_fields()
416 resp->max_mr = attr->max_mr; in copy_query_dev_fields()
417 resp->max_pd = attr->max_pd; in copy_query_dev_fields()
418 resp->max_qp_rd_atom = attr->max_qp_rd_atom; in copy_query_dev_fields()
419 resp->max_ee_rd_atom = attr->max_ee_rd_atom; in copy_query_dev_fields()
420 resp->max_res_rd_atom = attr->max_res_rd_atom; in copy_query_dev_fields()
421 resp->max_qp_init_rd_atom = attr->max_qp_init_rd_atom; in copy_query_dev_fields()
422 resp->max_ee_init_rd_atom = attr->max_ee_init_rd_atom; in copy_query_dev_fields()
423 resp->atomic_cap = attr->atomic_cap; in copy_query_dev_fields()
424 resp->max_ee = attr->max_ee; in copy_query_dev_fields()
425 resp->max_rdd = attr->max_rdd; in copy_query_dev_fields()
426 resp->max_mw = attr->max_mw; in copy_query_dev_fields()
427 resp->max_raw_ipv6_qp = attr->max_raw_ipv6_qp; in copy_query_dev_fields()
428 resp->max_raw_ethy_qp = attr->max_raw_ethy_qp; in copy_query_dev_fields()
429 resp->max_mcast_grp = attr->max_mcast_grp; in copy_query_dev_fields()
430 resp->max_mcast_qp_attach = attr->max_mcast_qp_attach; in copy_query_dev_fields()
431 resp->max_total_mcast_qp_attach = attr->max_total_mcast_qp_attach; in copy_query_dev_fields()
432 resp->max_ah = attr->max_ah; in copy_query_dev_fields()
433 resp->max_fmr = attr->max_fmr; in copy_query_dev_fields()
434 resp->max_map_per_fmr = attr->max_map_per_fmr; in copy_query_dev_fields()
435 resp->max_srq = attr->max_srq; in copy_query_dev_fields()
436 resp->max_srq_wr = attr->max_srq_wr; in copy_query_dev_fields()
437 resp->max_srq_sge = attr->max_srq_sge; in copy_query_dev_fields()
438 resp->max_pkeys = attr->max_pkeys; in copy_query_dev_fields()
439 resp->local_ca_ack_delay = attr->local_ca_ack_delay; in copy_query_dev_fields()
440 resp->phys_port_cnt = ib_dev->phys_port_cnt; in copy_query_dev_fields()
449 struct ib_uverbs_query_device_resp resp; in ib_uverbs_query_device() local
453 if (out_len < sizeof resp) in ib_uverbs_query_device()
463 memset(&resp, 0, sizeof resp); in ib_uverbs_query_device()
464 copy_query_dev_fields(file, ib_dev, &resp, &attr); in ib_uverbs_query_device()
467 &resp, sizeof resp)) in ib_uverbs_query_device()
479 struct ib_uverbs_query_port_resp resp; in ib_uverbs_query_port() local
483 if (out_len < sizeof resp) in ib_uverbs_query_port()
493 memset(&resp, 0, sizeof resp); in ib_uverbs_query_port()
495 resp.state = attr.state; in ib_uverbs_query_port()
496 resp.max_mtu = attr.max_mtu; in ib_uverbs_query_port()
497 resp.active_mtu = attr.active_mtu; in ib_uverbs_query_port()
498 resp.gid_tbl_len = attr.gid_tbl_len; in ib_uverbs_query_port()
499 resp.port_cap_flags = attr.port_cap_flags; in ib_uverbs_query_port()
500 resp.max_msg_sz = attr.max_msg_sz; in ib_uverbs_query_port()
501 resp.bad_pkey_cntr = attr.bad_pkey_cntr; in ib_uverbs_query_port()
502 resp.qkey_viol_cntr = attr.qkey_viol_cntr; in ib_uverbs_query_port()
503 resp.pkey_tbl_len = attr.pkey_tbl_len; in ib_uverbs_query_port()
504 resp.lid = attr.lid; in ib_uverbs_query_port()
505 resp.sm_lid = attr.sm_lid; in ib_uverbs_query_port()
506 resp.lmc = attr.lmc; in ib_uverbs_query_port()
507 resp.max_vl_num = attr.max_vl_num; in ib_uverbs_query_port()
508 resp.sm_sl = attr.sm_sl; in ib_uverbs_query_port()
509 resp.subnet_timeout = attr.subnet_timeout; in ib_uverbs_query_port()
510 resp.init_type_reply = attr.init_type_reply; in ib_uverbs_query_port()
511 resp.active_width = attr.active_width; in ib_uverbs_query_port()
512 resp.active_speed = attr.active_speed; in ib_uverbs_query_port()
513 resp.phys_state = attr.phys_state; in ib_uverbs_query_port()
514 resp.link_layer = rdma_port_get_link_layer(ib_dev, in ib_uverbs_query_port()
518 &resp, sizeof resp)) in ib_uverbs_query_port()
530 struct ib_uverbs_alloc_pd_resp resp; in ib_uverbs_alloc_pd() local
536 if (out_len < sizeof resp) in ib_uverbs_alloc_pd()
543 (unsigned long) cmd.response + sizeof resp, in ib_uverbs_alloc_pd()
544 in_len - sizeof cmd, out_len - sizeof resp); in ib_uverbs_alloc_pd()
569 memset(&resp, 0, sizeof resp); in ib_uverbs_alloc_pd()
570 resp.pd_handle = uobj->id; in ib_uverbs_alloc_pd()
573 &resp, sizeof resp)) { in ib_uverbs_alloc_pd()
736 struct ib_uverbs_open_xrcd_resp resp; in ib_uverbs_open_xrcd() local
745 if (out_len < sizeof resp) in ib_uverbs_open_xrcd()
752 (unsigned long) cmd.response + sizeof resp, in ib_uverbs_open_xrcd()
753 in_len - sizeof cmd, out_len - sizeof resp); in ib_uverbs_open_xrcd()
810 memset(&resp, 0, sizeof resp); in ib_uverbs_open_xrcd()
811 resp.xrcd_handle = obj->uobject.id; in ib_uverbs_open_xrcd()
824 &resp, sizeof resp)) { in ib_uverbs_open_xrcd()
951 struct ib_uverbs_reg_mr_resp resp; in ib_uverbs_reg_mr() local
958 if (out_len < sizeof resp) in ib_uverbs_reg_mr()
965 (unsigned long) cmd.response + sizeof resp, in ib_uverbs_reg_mr()
966 in_len - sizeof cmd, out_len - sizeof resp); in ib_uverbs_reg_mr()
1018 memset(&resp, 0, sizeof resp); in ib_uverbs_reg_mr()
1019 resp.lkey = mr->lkey; in ib_uverbs_reg_mr()
1020 resp.rkey = mr->rkey; in ib_uverbs_reg_mr()
1021 resp.mr_handle = uobj->id; in ib_uverbs_reg_mr()
1024 &resp, sizeof resp)) { in ib_uverbs_reg_mr()
1061 struct ib_uverbs_rereg_mr_resp resp; in ib_uverbs_rereg_mr() local
1069 if (out_len < sizeof(resp)) in ib_uverbs_rereg_mr()
1076 (unsigned long) cmd.response + sizeof(resp), in ib_uverbs_rereg_mr()
1077 in_len - sizeof(cmd), out_len - sizeof(resp)); in ib_uverbs_rereg_mr()
1128 memset(&resp, 0, sizeof(resp)); in ib_uverbs_rereg_mr()
1129 resp.lkey = mr->lkey; in ib_uverbs_rereg_mr()
1130 resp.rkey = mr->rkey; in ib_uverbs_rereg_mr()
1133 &resp, sizeof(resp))) in ib_uverbs_rereg_mr()
1194 struct ib_uverbs_alloc_mw_resp resp; in ib_uverbs_alloc_mw() local
1200 if (out_len < sizeof(resp)) in ib_uverbs_alloc_mw()
1235 memset(&resp, 0, sizeof(resp)); in ib_uverbs_alloc_mw()
1236 resp.rkey = mw->rkey; in ib_uverbs_alloc_mw()
1237 resp.mw_handle = uobj->id; in ib_uverbs_alloc_mw()
1240 &resp, sizeof(resp))) { in ib_uverbs_alloc_mw()
1316 struct ib_uverbs_create_comp_channel_resp resp; in ib_uverbs_create_comp_channel() local
1320 if (out_len < sizeof resp) in ib_uverbs_create_comp_channel()
1329 resp.fd = ret; in ib_uverbs_create_comp_channel()
1333 put_unused_fd(resp.fd); in ib_uverbs_create_comp_channel()
1338 &resp, sizeof resp)) { in ib_uverbs_create_comp_channel()
1339 put_unused_fd(resp.fd); in ib_uverbs_create_comp_channel()
1344 fd_install(resp.fd, filp); in ib_uverbs_create_comp_channel()
1356 struct ib_uverbs_ex_create_cq_resp *resp, in create_cq() argument
1365 struct ib_uverbs_ex_create_cq_resp resp; in create_cq() local
1417 memset(&resp, 0, sizeof resp); in create_cq()
1418 resp.base.cq_handle = obj->uobject.id; in create_cq()
1419 resp.base.cqe = cq->cqe; in create_cq()
1421 resp.response_length = offsetof(typeof(resp), response_length) + in create_cq()
1422 sizeof(resp.response_length); in create_cq()
1424 ret = cb(file, obj, &resp, ucore, context); in create_cq()
1456 struct ib_uverbs_ex_create_cq_resp *resp, in ib_uverbs_create_cq_cb() argument
1459 if (ib_copy_to_udata(ucore, &resp->base, sizeof(resp->base))) in ib_uverbs_create_cq_cb()
1472 struct ib_uverbs_create_cq_resp resp; in ib_uverbs_create_cq() local
1477 if (out_len < sizeof(resp)) in ib_uverbs_create_cq()
1483 INIT_UDATA(&ucore, buf, (unsigned long)cmd.response, sizeof(cmd), sizeof(resp)); in ib_uverbs_create_cq()
1486 (unsigned long)cmd.response + sizeof(resp), in ib_uverbs_create_cq()
1487 in_len - sizeof(cmd), out_len - sizeof(resp)); in ib_uverbs_create_cq()
1508 struct ib_uverbs_ex_create_cq_resp *resp, in ib_uverbs_ex_create_cq_cb() argument
1511 if (ib_copy_to_udata(ucore, resp, resp->response_length)) in ib_uverbs_ex_create_cq_cb()
1522 struct ib_uverbs_ex_create_cq_resp resp; in ib_uverbs_ex_create_cq() local
1540 if (ucore->outlen < (offsetof(typeof(resp), response_length) + in ib_uverbs_ex_create_cq()
1541 sizeof(resp.response_length))) in ib_uverbs_ex_create_cq()
1560 struct ib_uverbs_resize_cq_resp resp; in ib_uverbs_resize_cq() local
1569 (unsigned long) cmd.response + sizeof resp, in ib_uverbs_resize_cq()
1570 in_len - sizeof cmd, out_len - sizeof resp); in ib_uverbs_resize_cq()
1580 resp.cqe = cq->cqe; in ib_uverbs_resize_cq()
1583 &resp, sizeof resp.cqe)) in ib_uverbs_resize_cq()
1624 struct ib_uverbs_poll_cq_resp resp; in ib_uverbs_poll_cq() local
1640 data_ptr = header_ptr + sizeof resp; in ib_uverbs_poll_cq()
1642 memset(&resp, 0, sizeof resp); in ib_uverbs_poll_cq()
1643 while (resp.count < cmd.ne) { in ib_uverbs_poll_cq()
1655 ++resp.count; in ib_uverbs_poll_cq()
1658 if (copy_to_user(header_ptr, &resp, sizeof resp)) { in ib_uverbs_poll_cq()
1699 struct ib_uverbs_destroy_cq_resp resp; in ib_uverbs_destroy_cq() local
1733 memset(&resp, 0, sizeof resp); in ib_uverbs_destroy_cq()
1734 resp.comp_events_reported = obj->comp_events_reported; in ib_uverbs_destroy_cq()
1735 resp.async_events_reported = obj->async_events_reported; in ib_uverbs_destroy_cq()
1740 &resp, sizeof resp)) in ib_uverbs_destroy_cq()
1752 struct ib_uverbs_ex_create_qp_resp *resp, in create_qp() argument
1766 struct ib_uverbs_ex_create_qp_resp resp; in create_qp() local
1896 memset(&resp, 0, sizeof resp); in create_qp()
1897 resp.base.qpn = qp->qp_num; in create_qp()
1898 resp.base.qp_handle = obj->uevent.uobject.id; in create_qp()
1899 resp.base.max_recv_sge = attr.cap.max_recv_sge; in create_qp()
1900 resp.base.max_send_sge = attr.cap.max_send_sge; in create_qp()
1901 resp.base.max_recv_wr = attr.cap.max_recv_wr; in create_qp()
1902 resp.base.max_send_wr = attr.cap.max_send_wr; in create_qp()
1903 resp.base.max_inline_data = attr.cap.max_inline_data; in create_qp()
1905 resp.response_length = offsetof(typeof(resp), response_length) + in create_qp()
1906 sizeof(resp.response_length); in create_qp()
1908 ret = cb(file, &resp, ucore); in create_qp()
1960 struct ib_uverbs_ex_create_qp_resp *resp, in ib_uverbs_create_qp_cb() argument
1963 if (ib_copy_to_udata(ucore, &resp->base, sizeof(resp->base))) in ib_uverbs_create_qp_cb()
2020 struct ib_uverbs_ex_create_qp_resp *resp, in ib_uverbs_ex_create_qp_cb() argument
2023 if (ib_copy_to_udata(ucore, resp, resp->response_length)) in ib_uverbs_ex_create_qp_cb()
2034 struct ib_uverbs_ex_create_qp_resp resp; in ib_uverbs_ex_create_qp() local
2052 if (ucore->outlen < (offsetof(typeof(resp), response_length) + in ib_uverbs_ex_create_qp()
2053 sizeof(resp.response_length))) in ib_uverbs_ex_create_qp()
2071 struct ib_uverbs_create_qp_resp resp; in ib_uverbs_open_qp() local
2080 if (out_len < sizeof resp) in ib_uverbs_open_qp()
2087 (unsigned long) cmd.response + sizeof resp, in ib_uverbs_open_qp()
2088 in_len - sizeof cmd, out_len - sizeof resp); in ib_uverbs_open_qp()
2125 memset(&resp, 0, sizeof resp); in ib_uverbs_open_qp()
2126 resp.qpn = qp->qp_num; in ib_uverbs_open_qp()
2127 resp.qp_handle = obj->uevent.uobject.id; in ib_uverbs_open_qp()
2130 &resp, sizeof resp)) { in ib_uverbs_open_qp()
2167 struct ib_uverbs_query_qp_resp resp; in ib_uverbs_query_qp() local
2196 memset(&resp, 0, sizeof resp); in ib_uverbs_query_qp()
2198 resp.qp_state = attr->qp_state; in ib_uverbs_query_qp()
2199 resp.cur_qp_state = attr->cur_qp_state; in ib_uverbs_query_qp()
2200 resp.path_mtu = attr->path_mtu; in ib_uverbs_query_qp()
2201 resp.path_mig_state = attr->path_mig_state; in ib_uverbs_query_qp()
2202 resp.qkey = attr->qkey; in ib_uverbs_query_qp()
2203 resp.rq_psn = attr->rq_psn; in ib_uverbs_query_qp()
2204 resp.sq_psn = attr->sq_psn; in ib_uverbs_query_qp()
2205 resp.dest_qp_num = attr->dest_qp_num; in ib_uverbs_query_qp()
2206 resp.qp_access_flags = attr->qp_access_flags; in ib_uverbs_query_qp()
2207 resp.pkey_index = attr->pkey_index; in ib_uverbs_query_qp()
2208 resp.alt_pkey_index = attr->alt_pkey_index; in ib_uverbs_query_qp()
2209 resp.sq_draining = attr->sq_draining; in ib_uverbs_query_qp()
2210 resp.max_rd_atomic = attr->max_rd_atomic; in ib_uverbs_query_qp()
2211 resp.max_dest_rd_atomic = attr->max_dest_rd_atomic; in ib_uverbs_query_qp()
2212 resp.min_rnr_timer = attr->min_rnr_timer; in ib_uverbs_query_qp()
2213 resp.port_num = attr->port_num; in ib_uverbs_query_qp()
2214 resp.timeout = attr->timeout; in ib_uverbs_query_qp()
2215 resp.retry_cnt = attr->retry_cnt; in ib_uverbs_query_qp()
2216 resp.rnr_retry = attr->rnr_retry; in ib_uverbs_query_qp()
2217 resp.alt_port_num = attr->alt_port_num; in ib_uverbs_query_qp()
2218 resp.alt_timeout = attr->alt_timeout; in ib_uverbs_query_qp()
2220 memcpy(resp.dest.dgid, attr->ah_attr.grh.dgid.raw, 16); in ib_uverbs_query_qp()
2221 resp.dest.flow_label = attr->ah_attr.grh.flow_label; in ib_uverbs_query_qp()
2222 resp.dest.sgid_index = attr->ah_attr.grh.sgid_index; in ib_uverbs_query_qp()
2223 resp.dest.hop_limit = attr->ah_attr.grh.hop_limit; in ib_uverbs_query_qp()
2224 resp.dest.traffic_class = attr->ah_attr.grh.traffic_class; in ib_uverbs_query_qp()
2225 resp.dest.dlid = attr->ah_attr.dlid; in ib_uverbs_query_qp()
2226 resp.dest.sl = attr->ah_attr.sl; in ib_uverbs_query_qp()
2227 resp.dest.src_path_bits = attr->ah_attr.src_path_bits; in ib_uverbs_query_qp()
2228 resp.dest.static_rate = attr->ah_attr.static_rate; in ib_uverbs_query_qp()
2229 resp.dest.is_global = !!(attr->ah_attr.ah_flags & IB_AH_GRH); in ib_uverbs_query_qp()
2230 resp.dest.port_num = attr->ah_attr.port_num; in ib_uverbs_query_qp()
2232 memcpy(resp.alt_dest.dgid, attr->alt_ah_attr.grh.dgid.raw, 16); in ib_uverbs_query_qp()
2233 resp.alt_dest.flow_label = attr->alt_ah_attr.grh.flow_label; in ib_uverbs_query_qp()
2234 resp.alt_dest.sgid_index = attr->alt_ah_attr.grh.sgid_index; in ib_uverbs_query_qp()
2235 resp.alt_dest.hop_limit = attr->alt_ah_attr.grh.hop_limit; in ib_uverbs_query_qp()
2236 resp.alt_dest.traffic_class = attr->alt_ah_attr.grh.traffic_class; in ib_uverbs_query_qp()
2237 resp.alt_dest.dlid = attr->alt_ah_attr.dlid; in ib_uverbs_query_qp()
2238 resp.alt_dest.sl = attr->alt_ah_attr.sl; in ib_uverbs_query_qp()
2239 resp.alt_dest.src_path_bits = attr->alt_ah_attr.src_path_bits; in ib_uverbs_query_qp()
2240 resp.alt_dest.static_rate = attr->alt_ah_attr.static_rate; in ib_uverbs_query_qp()
2241 resp.alt_dest.is_global = !!(attr->alt_ah_attr.ah_flags & IB_AH_GRH); in ib_uverbs_query_qp()
2242 resp.alt_dest.port_num = attr->alt_ah_attr.port_num; in ib_uverbs_query_qp()
2244 resp.max_send_wr = init_attr->cap.max_send_wr; in ib_uverbs_query_qp()
2245 resp.max_recv_wr = init_attr->cap.max_recv_wr; in ib_uverbs_query_qp()
2246 resp.max_send_sge = init_attr->cap.max_send_sge; in ib_uverbs_query_qp()
2247 resp.max_recv_sge = init_attr->cap.max_recv_sge; in ib_uverbs_query_qp()
2248 resp.max_inline_data = init_attr->cap.max_inline_data; in ib_uverbs_query_qp()
2249 resp.sq_sig_all = init_attr->sq_sig_type == IB_SIGNAL_ALL_WR; in ib_uverbs_query_qp()
2252 &resp, sizeof resp)) in ib_uverbs_query_qp()
2379 struct ib_uverbs_destroy_qp_resp resp; in ib_uverbs_destroy_qp() local
2388 memset(&resp, 0, sizeof resp); in ib_uverbs_destroy_qp()
2421 resp.events_reported = obj->uevent.events_reported; in ib_uverbs_destroy_qp()
2426 &resp, sizeof resp)) in ib_uverbs_destroy_qp()
2444 struct ib_uverbs_post_send_resp resp; in ib_uverbs_post_send() local
2596 resp.bad_wr = 0; in ib_uverbs_post_send()
2600 ++resp.bad_wr; in ib_uverbs_post_send()
2606 &resp, sizeof resp)) in ib_uverbs_post_send()
2717 struct ib_uverbs_post_recv_resp resp; in ib_uverbs_post_recv() local
2735 resp.bad_wr = 0; in ib_uverbs_post_recv()
2742 ++resp.bad_wr; in ib_uverbs_post_recv()
2748 &resp, sizeof resp)) in ib_uverbs_post_recv()
2767 struct ib_uverbs_post_srq_recv_resp resp; in ib_uverbs_post_srq_recv() local
2785 resp.bad_wr = 0; in ib_uverbs_post_srq_recv()
2792 ++resp.bad_wr; in ib_uverbs_post_srq_recv()
2798 &resp, sizeof resp)) in ib_uverbs_post_srq_recv()
2817 struct ib_uverbs_create_ah_resp resp; in ib_uverbs_create_ah() local
2824 if (out_len < sizeof resp) in ib_uverbs_create_ah()
2869 resp.ah_handle = uobj->id; in ib_uverbs_create_ah()
2872 &resp, sizeof resp)) { in ib_uverbs_create_ah()
3075 struct ib_uverbs_create_flow_resp resp; in ib_uverbs_ex_create_flow() local
3089 if (ucore->outlen < sizeof(resp)) in ib_uverbs_ex_create_flow()
3194 memset(&resp, 0, sizeof(resp)); in ib_uverbs_ex_create_flow()
3195 resp.flow_handle = uobj->id; in ib_uverbs_ex_create_flow()
3198 &resp, sizeof(resp)); in ib_uverbs_ex_create_flow()
3278 struct ib_uverbs_create_srq_resp resp; in __uverbs_create_xsrq() local
3354 memset(&resp, 0, sizeof resp); in __uverbs_create_xsrq()
3355 resp.srq_handle = obj->uevent.uobject.id; in __uverbs_create_xsrq()
3356 resp.max_wr = attr.attr.max_wr; in __uverbs_create_xsrq()
3357 resp.max_sge = attr.attr.max_sge; in __uverbs_create_xsrq()
3359 resp.srqn = srq->ext.xrc.srq_num; in __uverbs_create_xsrq()
3362 &resp, sizeof resp)) { in __uverbs_create_xsrq()
3414 struct ib_uverbs_create_srq_resp resp; in ib_uverbs_create_srq() local
3418 if (out_len < sizeof resp) in ib_uverbs_create_srq()
3433 (unsigned long) cmd.response + sizeof resp, in ib_uverbs_create_srq()
3434 in_len - sizeof cmd, out_len - sizeof resp); in ib_uverbs_create_srq()
3448 struct ib_uverbs_create_srq_resp resp; in ib_uverbs_create_xsrq() local
3452 if (out_len < sizeof resp) in ib_uverbs_create_xsrq()
3459 (unsigned long) cmd.response + sizeof resp, in ib_uverbs_create_xsrq()
3460 in_len - sizeof cmd, out_len - sizeof resp); in ib_uverbs_create_xsrq()
3506 struct ib_uverbs_query_srq_resp resp; in ib_uverbs_query_srq() local
3511 if (out_len < sizeof resp) in ib_uverbs_query_srq()
3528 memset(&resp, 0, sizeof resp); in ib_uverbs_query_srq()
3530 resp.max_wr = attr.max_wr; in ib_uverbs_query_srq()
3531 resp.max_sge = attr.max_sge; in ib_uverbs_query_srq()
3532 resp.srq_limit = attr.srq_limit; in ib_uverbs_query_srq()
3535 &resp, sizeof resp)) in ib_uverbs_query_srq()
3547 struct ib_uverbs_destroy_srq_resp resp; in ib_uverbs_destroy_srq() local
3587 memset(&resp, 0, sizeof resp); in ib_uverbs_destroy_srq()
3588 resp.events_reported = obj->events_reported; in ib_uverbs_destroy_srq()
3593 &resp, sizeof resp)) in ib_uverbs_destroy_srq()
3604 struct ib_uverbs_ex_query_device_resp resp; in ib_uverbs_ex_query_device() local
3622 resp.response_length = offsetof(typeof(resp), odp_caps); in ib_uverbs_ex_query_device()
3624 if (ucore->outlen < resp.response_length) in ib_uverbs_ex_query_device()
3633 copy_query_dev_fields(file, ib_dev, &resp.base, &attr); in ib_uverbs_ex_query_device()
3634 resp.comp_mask = 0; in ib_uverbs_ex_query_device()
3636 if (ucore->outlen < resp.response_length + sizeof(resp.odp_caps)) in ib_uverbs_ex_query_device()
3640 resp.odp_caps.general_caps = attr.odp_caps.general_caps; in ib_uverbs_ex_query_device()
3641 resp.odp_caps.per_transport_caps.rc_odp_caps = in ib_uverbs_ex_query_device()
3643 resp.odp_caps.per_transport_caps.uc_odp_caps = in ib_uverbs_ex_query_device()
3645 resp.odp_caps.per_transport_caps.ud_odp_caps = in ib_uverbs_ex_query_device()
3647 resp.odp_caps.reserved = 0; in ib_uverbs_ex_query_device()
3649 memset(&resp.odp_caps, 0, sizeof(resp.odp_caps)); in ib_uverbs_ex_query_device()
3651 resp.response_length += sizeof(resp.odp_caps); in ib_uverbs_ex_query_device()
3653 if (ucore->outlen < resp.response_length + sizeof(resp.timestamp_mask)) in ib_uverbs_ex_query_device()
3656 resp.timestamp_mask = attr.timestamp_mask; in ib_uverbs_ex_query_device()
3657 resp.response_length += sizeof(resp.timestamp_mask); in ib_uverbs_ex_query_device()
3659 if (ucore->outlen < resp.response_length + sizeof(resp.hca_core_clock)) in ib_uverbs_ex_query_device()
3662 resp.hca_core_clock = attr.hca_core_clock; in ib_uverbs_ex_query_device()
3663 resp.response_length += sizeof(resp.hca_core_clock); in ib_uverbs_ex_query_device()
3666 err = ib_copy_to_udata(ucore, &resp, resp.response_length); in ib_uverbs_ex_query_device()