Home
last modified time | relevance | path

Searched refs:resp (Results 1 – 25 of 84) sorted by relevance

1234

/linux-4.19.296/fs/nfsd/
Dnfs3proc.c18 #define RETURN_STATUS(st) { resp->status = (st); return (st); }
47 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_getattr() local
53 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
54 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr()
59 nfserr = fh_getattr(&resp->fh, &resp->stat); in nfsd3_proc_getattr()
71 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_setattr() local
77 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
78 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr()
90 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_lookup() local
98 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_lookup()
[all …]
Dnfs2acl.c17 #define RETURN_STATUS(st) { resp->status = (st); return (st); }
34 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsacld_proc_getacl() local
42 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getacl()
43 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl()
51 resp->mask = argp->mask; in nfsacld_proc_getacl()
53 nfserr = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl()
57 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsacld_proc_getacl()
67 resp->acl_access = acl; in nfsacld_proc_getacl()
69 if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { in nfsacld_proc_getacl()
77 resp->acl_default = acl; in nfsacld_proc_getacl()
[all …]
Dnfs3acl.c16 #define RETURN_STATUS(st) { resp->status = (st); return (st); }
33 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsd3_proc_getacl() local
39 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl()
40 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_getacl()
48 resp->mask = argp->mask; in nfsd3_proc_getacl()
50 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsd3_proc_getacl()
60 resp->acl_access = acl; in nfsd3_proc_getacl()
62 if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { in nfsd3_proc_getacl()
70 resp->acl_default = acl; in nfsd3_proc_getacl()
77 posix_acl_release(resp->acl_access); in nfsd3_proc_getacl()
[all …]
Dnfs3xdr.c645 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfs3svc_encode_attrstat() local
647 if (resp->status == 0) { in nfs3svc_encode_attrstat()
648 lease_get_mtime(d_inode(resp->fh.fh_dentry), in nfs3svc_encode_attrstat()
649 &resp->stat.mtime); in nfs3svc_encode_attrstat()
650 p = encode_fattr3(rqstp, p, &resp->fh, &resp->stat); in nfs3svc_encode_attrstat()
659 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfs3svc_encode_wccstat() local
661 p = encode_wcc_data(rqstp, p, &resp->fh); in nfs3svc_encode_wccstat()
669 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfs3svc_encode_diropres() local
671 if (resp->status == 0) { in nfs3svc_encode_diropres()
672 p = encode_fh(p, &resp->fh); in nfs3svc_encode_diropres()
[all …]
Dnfsproc.c27 nfsd_return_attrs(__be32 err, struct nfsd_attrstat *resp) in nfsd_return_attrs() argument
30 return fh_getattr(&resp->fh, &resp->stat); in nfsd_return_attrs()
33 nfsd_return_dirop(__be32 err, struct nfsd_diropres *resp) in nfsd_return_dirop() argument
36 return fh_getattr(&resp->fh, &resp->stat); in nfsd_return_dirop()
46 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsd_proc_getattr() local
50 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr()
51 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd_proc_getattr()
53 return nfsd_return_attrs(nfserr, resp); in nfsd_proc_getattr()
64 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsd_proc_setattr() local
73 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
[all …]
Dnfsxdr.c434 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfssvc_encode_attrstat() local
436 p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfssvc_encode_attrstat()
443 struct nfsd_diropres *resp = rqstp->rq_resp; in nfssvc_encode_diropres() local
445 p = encode_fh(p, &resp->fh); in nfssvc_encode_diropres()
446 p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfssvc_encode_diropres()
453 struct nfsd_readlinkres *resp = rqstp->rq_resp; in nfssvc_encode_readlinkres() local
455 *p++ = htonl(resp->len); in nfssvc_encode_readlinkres()
457 rqstp->rq_res.page_len = resp->len; in nfssvc_encode_readlinkres()
458 if (resp->len & 3) { in nfssvc_encode_readlinkres()
462 rqstp->rq_res.tail[0].iov_len = 4 - (resp->len&3); in nfssvc_encode_readlinkres()
[all …]
Dnfs4xdr.c2421 struct nfsd4_compoundres *resp = rqstp->rq_resp; in nfsd4_encode_fattr() local
2422 u32 minorversion = resp->cstate.minorversion; in nfsd4_encode_fattr()
3167 nfsd4_encode_access(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_access *access) in nfsd4_encode_access() argument
3169 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_access()
3180 static __be32 nfsd4_encode_bind_conn_to_session(struct nfsd4_compoundres *resp, __be32 nfserr, stru… in nfsd4_encode_bind_conn_to_session() argument
3182 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_bind_conn_to_session()
3197 nfsd4_encode_close(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_close *close) in nfsd4_encode_close() argument
3199 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_close()
3206 nfsd4_encode_commit(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_commit *commit) in nfsd4_encode_commit() argument
3208 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_commit()
[all …]
/linux-4.19.296/fs/xfs/libxfs/
Dxfs_trans_resv.c839 struct xfs_trans_resv *resp) in xfs_trans_resv_calc() argument
845 resp->tr_write.tr_logres = xfs_calc_write_reservation(mp); in xfs_trans_resv_calc()
847 resp->tr_write.tr_logcount = XFS_WRITE_LOG_COUNT_REFLINK; in xfs_trans_resv_calc()
849 resp->tr_write.tr_logcount = XFS_WRITE_LOG_COUNT; in xfs_trans_resv_calc()
850 resp->tr_write.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
852 resp->tr_itruncate.tr_logres = xfs_calc_itruncate_reservation(mp); in xfs_trans_resv_calc()
854 resp->tr_itruncate.tr_logcount = in xfs_trans_resv_calc()
857 resp->tr_itruncate.tr_logcount = XFS_ITRUNCATE_LOG_COUNT; in xfs_trans_resv_calc()
858 resp->tr_itruncate.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
860 resp->tr_rename.tr_logres = xfs_calc_rename_reservation(mp); in xfs_trans_resv_calc()
[all …]
Dxfs_log_rlimit.c51 struct xfs_trans_res *resp; in xfs_log_get_max_trans_res() local
58 resp = (struct xfs_trans_res *)M_RES(mp); in xfs_log_get_max_trans_res()
60 for (; resp < end_resp; resp++) { in xfs_log_get_max_trans_res()
61 int tmp = resp->tr_logcount > 1 ? in xfs_log_get_max_trans_res()
62 resp->tr_logres * resp->tr_logcount : in xfs_log_get_max_trans_res()
63 resp->tr_logres; in xfs_log_get_max_trans_res()
66 *max_resp = *resp; /* struct copy */ in xfs_log_get_max_trans_res()
/linux-4.19.296/fs/lockd/
Dsvc4proc.c76 __nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlm4svc_proc_test() argument
84 resp->cookie = argp->cookie; in __nlm4svc_proc_test()
87 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test()
88 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlm4svc_proc_test()
91 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test()
92 if (resp->status == nlm_drop_reply) in __nlm4svc_proc_test()
95 dprintk("lockd: TEST4 status %d\n", ntohl(resp->status)); in __nlm4svc_proc_test()
109 __nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlm4svc_proc_lock() argument
118 resp->cookie = argp->cookie; in __nlm4svc_proc_lock()
121 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_lock()
[all …]
Dsvcproc.c106 __nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_test() argument
114 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
117 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test()
118 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_test()
121resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test()
122 if (resp->status == nlm_drop_reply) in __nlmsvc_proc_test()
126 ntohl(resp->status), rqstp->rq_vers); in __nlmsvc_proc_test()
140 __nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_lock() argument
149 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
152 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_lock()
[all …]
Dxdr4.c142 nlm4_encode_testres(__be32 *p, struct nlm_res *resp) in nlm4_encode_testres() argument
146 dprintk("xdr: before encode_testres (p %p resp %p)\n", p, resp); in nlm4_encode_testres()
147 if (!(p = nlm4_encode_cookie(p, &resp->cookie))) in nlm4_encode_testres()
149 *p++ = resp->status; in nlm4_encode_testres()
151 if (resp->status == nlm_lck_denied) { in nlm4_encode_testres()
152 struct file_lock *fl = &resp->lock.fl; in nlm4_encode_testres()
155 *p++ = htonl(resp->lock.svid); in nlm4_encode_testres()
158 if (!(p = xdr_encode_netobj(p, &resp->lock.oh))) in nlm4_encode_testres()
170 resp->status, (int)resp->lock.svid, fl->fl_type, in nlm4_encode_testres()
174 dprintk("xdr: after encode_testres (p %p resp %p)\n", p, resp); in nlm4_encode_testres()
[all …]
Dxdr.c150 nlm_encode_testres(__be32 *p, struct nlm_res *resp) in nlm_encode_testres() argument
154 if (!(p = nlm_encode_cookie(p, &resp->cookie))) in nlm_encode_testres()
156 *p++ = resp->status; in nlm_encode_testres()
158 if (resp->status == nlm_lck_denied) { in nlm_encode_testres()
159 struct file_lock *fl = &resp->lock.fl; in nlm_encode_testres()
162 *p++ = htonl(resp->lock.svid); in nlm_encode_testres()
165 if (!(p = xdr_encode_netobj(p, &resp->lock.oh))) in nlm_encode_testres()
206 struct nlm_res *resp = rqstp->rq_resp; in nlmsvc_encode_testres() local
208 if (!(p = nlm_encode_testres(p, resp))) in nlmsvc_encode_testres()
288 struct nlm_res *resp = rqstp->rq_resp; in nlmsvc_encode_shareres() local
[all …]
Dprocfs.c54 char resp[3]; in nlm_end_grace_read() local
56 resp[0] = list_empty(&ln->lockd_manager.list) ? 'Y' : 'N'; in nlm_end_grace_read()
57 resp[1] = '\n'; in nlm_end_grace_read()
58 resp[2] = '\0'; in nlm_end_grace_read()
60 return simple_read_from_buffer(buf, size, pos, resp, sizeof(resp)); in nlm_end_grace_read()
/linux-4.19.296/drivers/hid/
Dhid-picolcd_debugfs.c86 struct picolcd_pending *resp; in picolcd_debug_eeprom_read() local
101 resp = picolcd_send_and_wait(data->hdev, REPORT_EE_READ, raw_data, in picolcd_debug_eeprom_read()
103 if (!resp) in picolcd_debug_eeprom_read()
106 if (resp->in_report && resp->in_report->id == REPORT_EE_DATA) { in picolcd_debug_eeprom_read()
108 ret = resp->raw_data[2]; in picolcd_debug_eeprom_read()
111 if (copy_to_user(u, resp->raw_data+3, ret)) in picolcd_debug_eeprom_read()
117 kfree(resp); in picolcd_debug_eeprom_read()
125 struct picolcd_pending *resp; in picolcd_debug_eeprom_write() local
143 resp = picolcd_send_and_wait(data->hdev, REPORT_EE_WRITE, raw_data, in picolcd_debug_eeprom_write()
146 if (!resp) in picolcd_debug_eeprom_write()
[all …]
/linux-4.19.296/fs/orangefs/
Dxattr.c127 length = new_op->downcall.resp.getxattr.val_sz; in orangefs_inode_getxattr()
145 memcpy(buffer, new_op->downcall.resp.getxattr.val, length); in orangefs_inode_getxattr()
345 total = new_op->downcall.resp.listxattr.returned_count * in orangefs_listxattr()
350 returned_count = new_op->downcall.resp.listxattr.returned_count; in orangefs_listxattr()
364 if (new_op->downcall.resp.listxattr.lengths[i] < 0 || in orangefs_listxattr()
365 new_op->downcall.resp.listxattr.lengths[i] > in orangefs_listxattr()
369 new_op->downcall.resp.listxattr.lengths[i]); in orangefs_listxattr()
373 if (total + new_op->downcall.resp.listxattr.lengths[i] > size) in orangefs_listxattr()
381 if (is_reserved_key(new_op->downcall.resp.listxattr.key + in orangefs_listxattr()
383 new_op->downcall.resp. in orangefs_listxattr()
[all …]
Dsuper.c182 (long)new_op->downcall.resp.statfs.blocks_avail, in orangefs_statfs()
183 (long)new_op->downcall.resp.statfs.blocks_total, in orangefs_statfs()
184 (long)new_op->downcall.resp.statfs.block_size, in orangefs_statfs()
185 (long)new_op->downcall.resp.statfs.files_total, in orangefs_statfs()
186 (long)new_op->downcall.resp.statfs.files_avail); in orangefs_statfs()
190 buf->f_bsize = new_op->downcall.resp.statfs.block_size; in orangefs_statfs()
193 buf->f_blocks = (sector_t) new_op->downcall.resp.statfs.blocks_total; in orangefs_statfs()
194 buf->f_bfree = (sector_t) new_op->downcall.resp.statfs.blocks_avail; in orangefs_statfs()
195 buf->f_bavail = (sector_t) new_op->downcall.resp.statfs.blocks_avail; in orangefs_statfs()
196 buf->f_files = (sector_t) new_op->downcall.resp.statfs.files_total; in orangefs_statfs()
[all …]
Dorangefs-utils.c318 &new_op->downcall.resp.getattr.attributes, in orangefs_inode_getattr()
319 new_op->downcall.resp.getattr.link_target); in orangefs_inode_getattr()
327 downcall.resp.getattr.attributes.objtype); in orangefs_inode_getattr()
331 downcall.resp.getattr.attributes); in orangefs_inode_getattr()
334 downcall.resp.getattr.attributes.size; in orangefs_inode_getattr()
336 inode->i_blkbits = ffs(new_op->downcall.resp.getattr. in orangefs_inode_getattr()
357 downcall.resp.getattr.link_target); in orangefs_inode_getattr()
359 new_op->downcall.resp.getattr.link_target, in orangefs_inode_getattr()
377 downcall.resp.getattr.attributes.owner); in orangefs_inode_getattr()
379 downcall.resp.getattr.attributes.group); in orangefs_inode_getattr()
[all …]
Dnamei.c52 &new_op->downcall.resp.create.refn.khandle, in orangefs_create()
53 new_op->downcall.resp.create.refn.fs_id, in orangefs_create()
60 ref = new_op->downcall.resp.create.refn; in orangefs_create()
156 &new_op->downcall.resp.lookup.refn.khandle, in orangefs_lookup()
157 new_op->downcall.resp.lookup.refn.fs_id, in orangefs_lookup()
162 inode = orangefs_iget(dir->i_sb, &new_op->downcall.resp.lookup.refn); in orangefs_lookup()
261 &new_op->downcall.resp.sym.refn.khandle, in orangefs_symlink()
262 new_op->downcall.resp.sym.refn.fs_id, ret); in orangefs_symlink()
271 ref = new_op->downcall.resp.sym.refn; in orangefs_symlink()
338 &new_op->downcall.resp.mkdir.refn.khandle, in orangefs_mkdir()
[all …]
/linux-4.19.296/drivers/extcon/
Dextcon-usbc-cros-ec.c100 struct ec_response_usb_pd_power_info resp; in cros_ec_usb_get_power_type() local
105 &req, sizeof(req), &resp, sizeof(resp)); in cros_ec_usb_get_power_type()
109 return resp.type; in cros_ec_usb_get_power_type()
121 struct ec_response_usb_pd_mux_info resp; in cros_ec_usb_get_pd_mux_state() local
127 &resp, sizeof(resp)); in cros_ec_usb_get_pd_mux_state()
131 return resp.flags; in cros_ec_usb_get_pd_mux_state()
147 struct ec_response_usb_pd_control_v1 resp; in cros_ec_usb_get_role() local
156 &resp, sizeof(resp)); in cros_ec_usb_get_role()
160 if (!(resp.enabled & PD_CTRL_RESP_ENABLED_CONNECTED)) in cros_ec_usb_get_role()
163 *polarity = resp.polarity; in cros_ec_usb_get_role()
[all …]
/linux-4.19.296/fs/nfs/
Dcallback.h118 extern __be32 nfs4_callback_sequence(void *argp, void *resp,
137 extern __be32 nfs4_callback_recallany(void *argp, void *resp,
143 extern __be32 nfs4_callback_recallslot(void *argp, void *resp,
160 extern __be32 nfs4_callback_layoutrecall(void *argp, void *resp,
175 extern __be32 nfs4_callback_devicenotify(void *argp, void *resp,
184 extern __be32 nfs4_callback_notify_lock(void *argp, void *resp,
200 extern __be32 nfs4_callback_getattr(void *argp, void *resp,
202 extern __be32 nfs4_callback_recall(void *argp, void *resp,
/linux-4.19.296/include/trace/events/
Dmmc.h131 __entry->cmd_resp[0] = mrq->cmd ? mrq->cmd->resp[0] : 0;
132 __entry->cmd_resp[1] = mrq->cmd ? mrq->cmd->resp[1] : 0;
133 __entry->cmd_resp[2] = mrq->cmd ? mrq->cmd->resp[2] : 0;
134 __entry->cmd_resp[3] = mrq->cmd ? mrq->cmd->resp[3] : 0;
138 __entry->stop_resp[0] = mrq->stop ? mrq->stop->resp[0] : 0;
139 __entry->stop_resp[1] = mrq->stop ? mrq->stop->resp[1] : 0;
140 __entry->stop_resp[2] = mrq->stop ? mrq->stop->resp[2] : 0;
141 __entry->stop_resp[3] = mrq->stop ? mrq->stop->resp[3] : 0;
145 __entry->sbc_resp[0] = mrq->sbc ? mrq->sbc->resp[0] : 0;
146 __entry->sbc_resp[1] = mrq->sbc ? mrq->sbc->resp[1] : 0;
[all …]
/linux-4.19.296/drivers/char/ipmi/
Dipmi_si_intf.c1335 unsigned char *resp; in try_get_dev_id() local
1339 resp = kmalloc(IPMI_MAX_MSG_LENGTH, GFP_KERNEL); in try_get_dev_id()
1340 if (!resp) in try_get_dev_id()
1356 resp, IPMI_MAX_MSG_LENGTH); in try_get_dev_id()
1359 rv = ipmi_demangle_device_id(resp[0] >> 2, resp[1], in try_get_dev_id()
1360 resp + 2, resp_len - 2, &smi_info->device_id); in try_get_dev_id()
1363 kfree(resp); in try_get_dev_id()
1370 unsigned char *resp; in get_global_enables() local
1374 resp = kmalloc(IPMI_MAX_MSG_LENGTH, GFP_KERNEL); in get_global_enables()
1375 if (!resp) in get_global_enables()
[all …]
Dipmi_ssif.c1334 int *resp_len, unsigned char *resp) in do_cmd() argument
1353 resp); in do_cmd()
1365 (resp[0] != (msg[0] | (1 << 2))) || in do_cmd()
1366 (resp[1] != msg[1])) in do_cmd()
1379 unsigned char *resp; in ssif_detect() local
1384 resp = kmalloc(IPMI_MAX_MSG_LENGTH, GFP_KERNEL); in ssif_detect()
1385 if (!resp) in ssif_detect()
1391 rv = do_cmd(client, 2, msg, &len, resp); in ssif_detect()
1396 kfree(resp); in ssif_detect()
1489 unsigned char *resp; in ssif_probe() local
[all …]
/linux-4.19.296/drivers/i2c/busses/
Di2c-cros-ec-tunnel.c148 const struct ec_response_i2c_passthru *resp; in ec_i2c_parse_response() local
154 resp = (const struct ec_response_i2c_passthru *)buf; in ec_i2c_parse_response()
155 if (resp->i2c_status & EC_I2C_STATUS_TIMEOUT) in ec_i2c_parse_response()
157 else if (resp->i2c_status & EC_I2C_STATUS_NAK) in ec_i2c_parse_response()
159 else if (resp->i2c_status & EC_I2C_STATUS_ERROR) in ec_i2c_parse_response()
163 if (resp->num_msgs > *num) in ec_i2c_parse_response()
165 *num = resp->num_msgs; in ec_i2c_parse_response()

1234