/linux/fs/nfsd/ |
H A D | nfs3proc.c | 70 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_getattr() local 75 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr() 76 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr() 78 if (resp->status != nfs_ok) in nfsd3_proc_getattr() 81 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsd3_proc_getattr() 83 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_getattr() 94 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_setattr() local 103 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr() 106 resp->status = nfsd_setattr(rqstp, &resp->fh, &attrs, guardtime); in nfsd3_proc_setattr() 107 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_setattr() [all …]
|
H A D | nfs2acl.c | 33 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsacld_proc_getacl() local 40 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getacl() 41 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl() 42 if (resp->status != nfs_ok) in nfsacld_proc_getacl() 48 resp->status = nfserr_inval; in nfsacld_proc_getacl() 51 resp->mask = argp->mask; in nfsacld_proc_getacl() 53 resp->status = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl() 54 if (resp->status != nfs_ok) in nfsacld_proc_getacl() 57 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsacld_proc_getacl() 64 resp->status = nfserrno(PTR_ERR(acl)); in nfsacld_proc_getacl() [all …]
|
H A D | nfsproc.c | 49 * N.B. After this call resp->fh needs an fh_put 55 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsd_proc_getattr() local 59 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr() 60 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd_proc_getattr() 62 if (resp->status != nfs_ok) in nfsd_proc_getattr() 64 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsd_proc_getattr() 66 resp->status = nfsd_map_status(resp->status); in nfsd_proc_getattr() 72 * N.B. After this call resp->fh needs an fh_put 78 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsd_proc_setattr() local 89 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr() [all …]
|
H A D | nfs3xdr.c | 740 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfs3svc_encode_getattrres() local 742 if (!svcxdr_encode_nfsstat3(xdr, resp->status)) in nfs3svc_encode_getattrres() 744 switch (resp->status) { in nfs3svc_encode_getattrres() 746 lease_get_mtime(d_inode(resp->fh.fh_dentry), &resp->stat.mtime); in nfs3svc_encode_getattrres() 747 if (!svcxdr_encode_fattr3(rqstp, xdr, &resp->fh, &resp->stat)) in nfs3svc_encode_getattrres() 759 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfs3svc_encode_wccstat() local 761 return svcxdr_encode_nfsstat3(xdr, resp->status) && in nfs3svc_encode_wccstat() 762 svcxdr_encode_wcc_data(rqstp, xdr, &resp->fh); in nfs3svc_encode_wccstat() 769 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfs3svc_encode_lookupres() local 771 if (!svcxdr_encode_nfsstat3(xdr, resp->status)) in nfs3svc_encode_lookupres() [all …]
|
H A D | nfs3acl.c | 31 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsd3_proc_getacl() local 36 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl() 37 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_getacl() 38 if (resp->status != nfs_ok) in nfsd3_proc_getacl() 44 resp->status = nfserr_inval; in nfsd3_proc_getacl() 47 resp->mask = argp->mask; in nfsd3_proc_getacl() 49 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsd3_proc_getacl() 56 resp->status = nfserrno(PTR_ERR(acl)); in nfsd3_proc_getacl() 59 resp->acl_access = acl; in nfsd3_proc_getacl() 61 if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { in nfsd3_proc_getacl() [all …]
|
H A D | nfsxdr.c | 418 struct nfsd_stat *resp = rqstp->rq_resp; in nfssvc_encode_statres() local 420 return svcxdr_encode_stat(xdr, resp->status); in nfssvc_encode_statres() 426 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfssvc_encode_attrstatres() local 428 if (!svcxdr_encode_stat(xdr, resp->status)) in nfssvc_encode_attrstatres() 430 switch (resp->status) { in nfssvc_encode_attrstatres() 432 if (!svcxdr_encode_fattr(rqstp, xdr, &resp->fh, &resp->stat)) in nfssvc_encode_attrstatres() 443 struct nfsd_diropres *resp = rqstp->rq_resp; in nfssvc_encode_diropres() local 445 if (!svcxdr_encode_stat(xdr, resp->status)) in nfssvc_encode_diropres() 447 switch (resp->status) { in nfssvc_encode_diropres() 449 if (!svcxdr_encode_fhandle(xdr, &resp->fh)) in nfssvc_encode_diropres() [all …]
|
/linux/drivers/mfd/ |
H A D | si476x-cmd.c | 249 * @resp: buffer to place the expected response from the device 250 * @respn: actual size of @resp 261 u8 resp[], in si476x_core_send_command() argument 322 err = si476x_core_i2c_xfer(core, SI476X_I2C_RECV, resp, respn); in si476x_core_send_command() 330 dev_dbg(&client->dev, "Response:\n %*ph\n", respn, resp); in si476x_core_send_command() 334 if (resp[0] & SI476X_ERR) { in si476x_core_send_command() 341 if (!(resp[0] & SI476X_CTS)) in si476x_core_send_command() 375 uint8_t *resp, size_t respn) in si476x_cmd_tune_seek_freq() argument 381 err = si476x_core_send_command(core, cmd, args, argn, resp, respn, in si476x_cmd_tune_seek_freq() 408 u8 resp[CMD_FUNC_INFO_NRESP]; in si476x_core_cmd_func_info() local [all …]
|
/linux/tools/power/x86/intel-speed-select/ |
H A D | isst-core-mbox.c | 114 "mmio_cmd response: cpu:%d reg:%x rd_write:%x resp:%x\n", in _send_mmio_command() 125 unsigned int req_data, unsigned int *resp) in _send_mbox_command() argument 155 *resp = value; in _send_mbox_command() 163 *resp = value; in _send_mbox_command() 200 *resp = mbox_cmds.mbox_cmd[0].resp_data; in _send_mbox_command() 202 "mbox_cmd response: cpu:%d command:%x sub_command:%x parameter:%x req_data:%x resp:%x\n", in _send_mbox_command() 203 cpu, command, sub_command, parameter, req_data, *resp); in _send_mbox_command() 221 unsigned int resp; in mbox_read_pm_config() local 225 &resp); in mbox_read_pm_config() 229 debug_printf("cpu:%d READ_PM_CONFIG resp:%x\n", id->cpu, resp); in mbox_read_pm_config() [all …]
|
/linux/net/nfc/ |
H A D | digital_technology.c | 216 struct sk_buff *resp) in digital_in_recv_ats() argument 222 if (IS_ERR(resp)) { in digital_in_recv_ats() 223 rc = PTR_ERR(resp); in digital_in_recv_ats() 224 resp = NULL; in digital_in_recv_ats() 228 if (resp->len < 2) { in digital_in_recv_ats() 233 fsdi = DIGITAL_ATS_FSCI(resp->data[1]); in digital_in_recv_ats() 244 dev_kfree_skb(resp); in digital_in_recv_ats() 273 struct sk_buff *resp) in digital_in_recv_sel_res() argument 280 if (IS_ERR(resp)) { in digital_in_recv_sel_res() 281 rc = PTR_ERR(resp); in digital_in_recv_sel_res() [all …]
|
H A D | digital_dep.c | 107 struct sk_buff *resp); 109 struct sk_buff *resp); 232 struct sk_buff *resp, in digital_recv_dep_data_gather() argument 252 if (resp->len > skb_tailroom(ddev->chaining_skb)) { in digital_recv_dep_data_gather() 267 skb_put_data(ddev->chaining_skb, resp->data, resp->len); in digital_recv_dep_data_gather() 269 kfree_skb(resp); in digital_recv_dep_data_gather() 270 resp = NULL; in digital_recv_dep_data_gather() 280 resp = ddev->chaining_skb; in digital_recv_dep_data_gather() 284 return resp; in digital_recv_dep_data_gather() 287 kfree_skb(resp); in digital_recv_dep_data_gather() [all …]
|
/linux/drivers/infiniband/sw/rxe/ |
H A D | rxe_resp.c | 67 return (qp->resp.res) ? RESPST_READ_REPLY : RESPST_CHK_PSN; in get_req() 73 int diff = psn_compare(pkt->psn, qp->resp.psn); in check_psn() 79 if (qp->resp.sent_psn_nak) in check_psn() 82 qp->resp.sent_psn_nak = 1; in check_psn() 91 if (qp->resp.sent_psn_nak) in check_psn() 92 qp->resp.sent_psn_nak = 0; in check_psn() 97 if (qp->resp.drop_msg || diff != 0) { in check_psn() 99 qp->resp.drop_msg = 0; in check_psn() 103 qp->resp.drop_msg = 1; in check_psn() 119 switch (qp->resp.opcode) { in check_op_seq() [all …]
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | sta_cmdresp.c | 33 struct host_cmd_ds_command *resp) in mwifiex_process_cmdresp_error() argument 40 resp->command, resp->result); in mwifiex_process_cmdresp_error() 45 switch (le16_to_cpu(resp->command)) { in mwifiex_process_cmdresp_error() 47 pm = &resp->params.psmode_enh; in mwifiex_process_cmdresp_error() 50 resp->result, le16_to_cpu(pm->action)); in mwifiex_process_cmdresp_error() 96 struct host_cmd_ds_command *resp) in mwifiex_ret_802_11_rssi_info() argument 99 &resp->params.rssi_info_rsp; in mwifiex_ret_802_11_rssi_info() 156 struct host_cmd_ds_command *resp, in mwifiex_ret_802_11_snmp_mib() argument 159 struct host_cmd_ds_802_11_snmp_mib *smib = &resp->params.smib; in mwifiex_ret_802_11_snmp_mib() 208 struct host_cmd_ds_command *resp, in mwifiex_ret_get_log() argument [all …]
|
/linux/drivers/net/wireless/ath/ath10k/ |
H A D | qmi.c | 123 struct wlfw_msa_info_resp_msg_v01 resp = {}; in ath10k_qmi_msa_mem_info_send_sync_msg() local 135 wlfw_msa_info_resp_msg_v01_ei, &resp); in ath10k_qmi_msa_mem_info_send_sync_msg() 153 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_msa_mem_info_send_sync_msg() 154 ath10k_err(ar, "msa info req rejected: %d\n", resp.resp.error); in ath10k_qmi_msa_mem_info_send_sync_msg() 159 if (resp.mem_region_info_len > QMI_WLFW_MAX_MEM_REG_V01) { in ath10k_qmi_msa_mem_info_send_sync_msg() 161 resp.mem_region_info_len); in ath10k_qmi_msa_mem_info_send_sync_msg() 167 qmi->nr_mem_region = resp.mem_region_info_len; in ath10k_qmi_msa_mem_info_send_sync_msg() 168 for (i = 0; i < resp.mem_region_info_len; i++) { in ath10k_qmi_msa_mem_info_send_sync_msg() 169 if (resp.mem_region_info[i].size > ar->msa.mem_size || in ath10k_qmi_msa_mem_info_send_sync_msg() 170 resp.mem_region_info[i].region_addr > max_mapped_addr || in ath10k_qmi_msa_mem_info_send_sync_msg() [all …]
|
/linux/drivers/infiniband/hw/mana/ |
H A D | main.c | 72 struct gdma_create_pd_resp resp = {}; in mana_ib_alloc_pd() local 83 sizeof(resp)); in mana_ib_alloc_pd() 87 sizeof(resp), &resp); in mana_ib_alloc_pd() 89 if (err || resp.hdr.status) { in mana_ib_alloc_pd() 92 resp.hdr.status); in mana_ib_alloc_pd() 99 pd->pd_handle = resp.pd_handle; in mana_ib_alloc_pd() 100 pd->pdn = resp.pd_id; in mana_ib_alloc_pd() 113 struct gdma_destory_pd_resp resp = {}; in mana_ib_dealloc_pd() local 123 sizeof(resp)); in mana_ib_dealloc_pd() 127 sizeof(resp), &resp); in mana_ib_dealloc_pd() [all …]
|
/linux/drivers/infiniband/core/ |
H A D | uverbs_cmd.c | 51 * Copy a response to userspace. If the provided 'resp' is larger than the 58 static int uverbs_response(struct uverbs_attr_bundle *attrs, const void *resp, in uverbs_response() argument 65 attrs, UVERBS_ATTR_CORE_OUT, resp, resp_len); in uverbs_response() 67 if (copy_to_user(attrs->ucore.outbuf, resp, in uverbs_response() 278 struct ib_uverbs_get_context_resp resp; in ib_uverbs_get_context() local 298 resp = (struct ib_uverbs_get_context_resp){ in ib_uverbs_get_context() 302 ret = uverbs_response(attrs, &resp, sizeof(resp)); in ib_uverbs_get_context() 325 struct ib_uverbs_query_device_resp *resp, in copy_query_dev_fields() argument 330 resp->fw_ver = attr->fw_ver; in copy_query_dev_fields() 331 resp->node_guid = ib_dev->node_guid; in copy_query_dev_fields() [all …]
|
H A D | ucma.c | 117 struct rdma_ucm_event_resp resp; member 273 uevent->resp.uid = uevent->mc->uid; in ucma_create_uevent() 274 uevent->resp.id = uevent->mc->id; in ucma_create_uevent() 277 uevent->resp.uid = ctx->uid; in ucma_create_uevent() 278 uevent->resp.id = ctx->id; in ucma_create_uevent() 281 uevent->resp.event = event->event; in ucma_create_uevent() 282 uevent->resp.status = event->status; in ucma_create_uevent() 284 ucma_copy_ud_event(ctx->cm_id->device, &uevent->resp.param.ud, in ucma_create_uevent() 287 ucma_copy_conn_event(&uevent->resp.param.conn, in ucma_create_uevent() 290 uevent->resp.ece.vendor_id = event->ece.vendor_id; in ucma_create_uevent() [all …]
|
/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | qat_comp_req.h | 57 static inline u32 qat_comp_get_consumed_ctr(void *resp) in qat_comp_get_consumed_ctr() argument 59 struct icp_qat_fw_comp_resp *qat_resp = resp; in qat_comp_get_consumed_ctr() 64 static inline u32 qat_comp_get_produced_ctr(void *resp) in qat_comp_get_produced_ctr() argument 66 struct icp_qat_fw_comp_resp *qat_resp = resp; in qat_comp_get_produced_ctr() 71 static inline u32 qat_comp_get_produced_adler32(void *resp) in qat_comp_get_produced_adler32() argument 73 struct icp_qat_fw_comp_resp *qat_resp = resp; in qat_comp_get_produced_adler32() 78 static inline u64 qat_comp_get_opaque(void *resp) in qat_comp_get_opaque() argument 80 struct icp_qat_fw_comp_resp *qat_resp = resp; in qat_comp_get_opaque() 85 static inline s8 qat_comp_get_cmp_err(void *resp) in qat_comp_get_cmp_err() argument 87 struct icp_qat_fw_comp_resp *qat_resp = resp; in qat_comp_get_cmp_err() [all …]
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_trans_resv.c | 497 struct xfs_trans_resv *resp = M_RES(mp); in xfs_calc_rename_reservation() local 511 t3 = max(resp->tr_attrsetm.tr_logres, in xfs_calc_rename_reservation() 512 resp->tr_attrrm.tr_logres); in xfs_calc_rename_reservation() 544 struct xfs_trans_resv *resp) in xfs_rename_log_count() argument 554 ret += max(resp->tr_attrsetm.tr_logcount, in xfs_rename_log_count() 555 resp->tr_attrrm.tr_logcount); in xfs_rename_log_count() 577 struct xfs_trans_resv *resp) in xfs_link_log_count() argument 586 ret += resp->tr_attrsetm.tr_logcount; in xfs_link_log_count() 608 struct xfs_trans_resv *resp = M_RES(mp); in xfs_calc_link_reservation() local 619 t3 = resp->tr_attrsetm.tr_logres; in xfs_calc_link_reservation() [all …]
|
/linux/drivers/nfc/ |
H A D | port100.c | 95 struct sk_buff *resp); 474 struct sk_buff *resp; member 817 struct sk_buff *resp = cmd->resp; in port100_send_async_complete() local 826 dev_kfree_skb(resp); in port100_send_async_complete() 830 skb_put(resp, port100_rx_frame_size(resp->data)); in port100_send_async_complete() 831 skb_pull(resp, PORT100_FRAME_HEADER_LEN); in port100_send_async_complete() 832 skb_trim(resp, resp->len - PORT100_FRAME_TAIL_LEN); in port100_send_async_complete() 834 cmd->complete_cb(dev, cmd->complete_cb_context, resp); in port100_send_async_complete() 846 struct sk_buff *resp; in port100_send_cmd_async() local 858 resp = alloc_skb(resp_len, GFP_KERNEL); in port100_send_cmd_async() [all …]
|
/linux/fs/smb/server/mgmt/ |
H A D | user_config.c | 14 struct ksmbd_login_response *resp; in ksmbd_login_user() local 18 resp = ksmbd_ipc_login_request(account); in ksmbd_login_user() 19 if (!resp) in ksmbd_login_user() 22 if (!(resp->status & KSMBD_USER_FLAG_OK)) in ksmbd_login_user() 25 if (resp->status & KSMBD_USER_FLAG_EXTENSION) in ksmbd_login_user() 28 user = ksmbd_alloc_user(resp, resp_ext); in ksmbd_login_user() 30 kvfree(resp); in ksmbd_login_user() 34 struct ksmbd_user *ksmbd_alloc_user(struct ksmbd_login_response *resp, in ksmbd_alloc_user() argument 43 user->name = kstrdup(resp->account, KSMBD_DEFAULT_GFP); in ksmbd_alloc_user() 44 user->flags = resp->status; in ksmbd_alloc_user() [all …]
|
H A D | share_config.c | 127 struct ksmbd_share_config_response *resp; in share_config_request() local 133 resp = ksmbd_ipc_share_config_request(name); in share_config_request() 134 if (!resp) in share_config_request() 137 if (resp->flags == KSMBD_SHARE_FLAG_INVALID) in share_config_request() 140 if (*resp->share_name) { in share_config_request() 144 cf_resp_name = ksmbd_casefold_sharename(um, resp->share_name); in share_config_request() 157 share->flags = resp->flags; in share_config_request() 165 if (resp->payload_sz) in share_config_request() 166 path_len = resp->payload_sz - resp->veto_list_sz; in share_config_request() 168 share->path = kstrndup(ksmbd_share_config_path(resp), path_len, in share_config_request() [all …]
|
/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_hw.c | 781 /* structure that are part of req/resp fw messages */ in prestera_hw_build_tests() 857 struct prestera_msg_common_resp resp; in prestera_cmd() local 859 return prestera_cmd_ret(sw, type, cmd, clen, &resp.ret, sizeof(resp)); in prestera_cmd() 1029 struct prestera_msg_port_info_resp resp; in prestera_hw_port_info_get() local 1033 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_port_info_get() 1037 *dev_id = __le32_to_cpu(resp.dev_id); in prestera_hw_port_info_get() 1038 *hw_id = __le32_to_cpu(resp.hw_id); in prestera_hw_port_info_get() 1039 *fp_id = __le16_to_cpu(resp.fp_id); in prestera_hw_port_info_get() 1058 struct prestera_msg_switch_init_resp resp; in prestera_hw_switch_init() local 1068 &resp.ret, sizeof(resp), in prestera_hw_switch_init() [all …]
|
/linux/drivers/scsi/isci/ |
H A D | task.h | 92 } resp; member 104 "tmf->resp.d2h_fis.status = %x\n" in isci_print_tmf() 105 "tmf->resp.d2h_fis.error = %x\n", in isci_print_tmf() 108 tmf->resp.d2h_fis.status, in isci_print_tmf() 109 tmf->resp.d2h_fis.error); in isci_print_tmf() 113 "tmf->resp.resp_iu.data_present = %x\n" in isci_print_tmf() 114 "tmf->resp.resp_iu.status = %x\n" in isci_print_tmf() 115 "tmf->resp.resp_iu.data_length = %x\n" in isci_print_tmf() 116 "tmf->resp.resp_iu.data[0] = %x\n" in isci_print_tmf() 117 "tmf->resp.resp_iu.data[1] = %x\n" in isci_print_tmf() [all …]
|
/linux/drivers/usb/gadget/function/ |
H A D | rndis.c | 176 rndis_query_cmplt_type *resp; in gen_ndis_query_resp() local 182 resp = (rndis_query_cmplt_type *)r->buf; in gen_ndis_query_resp() 184 if (!resp) return -ENOMEM; in gen_ndis_query_resp() 198 outbuf = (__le32 *)&resp[1]; in gen_ndis_query_resp() 199 resp->InformationBufferOffset = cpu_to_le32(16); in gen_ndis_query_resp() 478 resp->InformationBufferLength = cpu_to_le32(length); in gen_ndis_query_resp() 479 r->length = length + sizeof(*resp); in gen_ndis_query_resp() 480 resp->MessageLength = cpu_to_le32(r->length); in gen_ndis_query_resp() 487 rndis_set_cmplt_type *resp; in gen_ndis_set_resp() local 492 resp = (rndis_set_cmplt_type *)r->buf; in gen_ndis_set_resp() [all …]
|
/linux/drivers/net/ethernet/microsoft/mana/ |
H A D | gdma_main.c | 69 struct gdma_query_max_resources_resp resp = {}; in mana_gd_query_max_resources() local 74 sizeof(req), sizeof(resp)); in mana_gd_query_max_resources() 76 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_gd_query_max_resources() 77 if (err || resp.hdr.status) { in mana_gd_query_max_resources() 79 err, resp.hdr.status); in mana_gd_query_max_resources() 83 if (gc->num_msix_usable > resp.max_msix) in mana_gd_query_max_resources() 84 gc->num_msix_usable = resp.max_msix; in mana_gd_query_max_resources() 93 if (gc->max_num_queues > resp.max_eq) in mana_gd_query_max_resources() 94 gc->max_num_queues = resp.max_eq; in mana_gd_query_max_resources() 96 if (gc->max_num_queues > resp.max_cq) in mana_gd_query_max_resources() [all …]
|