Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 485) sorted by relevance

12345678910>>...20

/fs/nfs/
Dunlink.c32 nfs_free_unlinkdata(struct nfs_unlinkdata *data) in nfs_free_unlinkdata() argument
34 put_cred(data->cred); in nfs_free_unlinkdata()
35 kfree(data->args.name.name); in nfs_free_unlinkdata()
36 kfree(data); in nfs_free_unlinkdata()
48 struct nfs_unlinkdata *data = calldata; in nfs_async_unlink_done() local
49 struct inode *dir = d_inode(data->dentry->d_parent); in nfs_async_unlink_done()
51 trace_nfs_sillyrename_unlink(data, task->tk_status); in nfs_async_unlink_done()
65 struct nfs_unlinkdata *data = calldata; in nfs_async_unlink_release() local
66 struct dentry *dentry = data->dentry; in nfs_async_unlink_release()
71 nfs_free_unlinkdata(data); in nfs_async_unlink_release()
[all …]
Dnfs3proc.c277 struct nfs3_createdata *data; in nfs3_alloc_createdata() local
279 data = kzalloc(sizeof(*data), GFP_KERNEL); in nfs3_alloc_createdata()
280 if (data != NULL) { in nfs3_alloc_createdata()
281 data->msg.rpc_argp = &data->arg; in nfs3_alloc_createdata()
282 data->msg.rpc_resp = &data->res; in nfs3_alloc_createdata()
283 data->res.fh = &data->fh; in nfs3_alloc_createdata()
284 data->res.fattr = &data->fattr; in nfs3_alloc_createdata()
285 data->res.dir_attr = &data->dir_attr; in nfs3_alloc_createdata()
286 nfs_fattr_init(data->res.fattr); in nfs3_alloc_createdata()
287 nfs_fattr_init(data->res.dir_attr); in nfs3_alloc_createdata()
[all …]
Dfs_context.c890 struct nfs_mount_data *data) in nfs23_parse_monolithic() argument
897 if (data == NULL) in nfs23_parse_monolithic()
901 switch (data->version) { in nfs23_parse_monolithic()
903 data->namlen = 0; in nfs23_parse_monolithic()
906 data->bsize = 0; in nfs23_parse_monolithic()
909 if (data->flags & NFS_MOUNT_VER3) in nfs23_parse_monolithic()
911 data->root.size = NFS2_FHSIZE; in nfs23_parse_monolithic()
912 memcpy(data->root.data, data->old_root.data, NFS2_FHSIZE); in nfs23_parse_monolithic()
917 if (data->flags & NFS_MOUNT_SECFLAVOUR) in nfs23_parse_monolithic()
921 memset(data->context, 0, sizeof(data->context)); in nfs23_parse_monolithic()
[all …]
Dnfs4proc.c97 static int _nfs4_recover_proc_open(struct nfs4_opendata *data);
994 struct nfs4_call_sync_data *data = calldata; in nfs41_call_sync_prepare() local
996 dprintk("--> %s data->seq_server %p\n", __func__, data->seq_server); in nfs41_call_sync_prepare()
998 nfs4_setup_sequence(data->seq_server->nfs_client, in nfs41_call_sync_prepare()
999 data->seq_args, data->seq_res, task); in nfs41_call_sync_prepare()
1004 struct nfs4_call_sync_data *data = calldata; in nfs41_call_sync_done() local
1006 nfs41_sequence_done(task, data->seq_res); in nfs41_call_sync_done()
1115 struct nfs4_call_sync_data *data = calldata; in nfs40_call_sync_prepare() local
1116 nfs4_setup_sequence(data->seq_server->nfs_client, in nfs40_call_sync_prepare()
1117 data->seq_args, data->seq_res, task); in nfs40_call_sync_prepare()
[all …]
Dnfs42proc.c480 struct nfs42_offloadcancel_data *data = calldata; in nfs42_offload_cancel_prepare() local
482 nfs4_setup_sequence(data->seq_server->nfs_client, in nfs42_offload_cancel_prepare()
483 &data->args.osa_seq_args, in nfs42_offload_cancel_prepare()
484 &data->res.osr_seq_res, task); in nfs42_offload_cancel_prepare()
489 struct nfs42_offloadcancel_data *data = calldata; in nfs42_offload_cancel_done() local
491 nfs41_sequence_done(task, &data->res.osr_seq_res); in nfs42_offload_cancel_done()
493 nfs4_async_handle_error(task, data->seq_server, NULL, in nfs42_offload_cancel_done()
498 static void nfs42_free_offloadcancel_data(void *data) in nfs42_free_offloadcancel_data() argument
500 kfree(data); in nfs42_free_offloadcancel_data()
513 struct nfs42_offloadcancel_data *data = NULL; in nfs42_do_offload_cancel_async() local
[all …]
Dnfs4idmap.c100 kfree(fattr->owner_name->data); in nfs_fattr_free_owner_name()
106 kfree(fattr->group_name->data); in nfs_fattr_free_group_name()
116 if (nfs_map_name_to_uid(server, owner->data, owner->len, &uid) == 0) { in nfs_fattr_map_owner_name()
130 if (nfs_map_group_to_gid(server, group->data, group->len, &gid) == 0) { in nfs_fattr_map_group_name()
306 const char *type, void *data, in nfs_idmap_get_key() argument
338 memcpy(data, payload->data, ret); in nfs_idmap_get_key()
545 msg->data = im; in nfs_idmap_prepare_message()
554 struct idmap_legacy_upcalldata *data) in nfs_idmap_prepare_pipe_upcall() argument
560 idmap->idmap_upcall_data = data; in nfs_idmap_prepare_pipe_upcall()
564 static void nfs_idmap_complete_pipe_upcall(struct idmap_legacy_upcalldata *data, in nfs_idmap_complete_pipe_upcall() argument
[all …]
Dproc.c218 struct nfs_createdata *data; in nfs_alloc_createdata() local
220 data = kmalloc(sizeof(*data), GFP_KERNEL); in nfs_alloc_createdata()
222 if (data != NULL) { in nfs_alloc_createdata()
223 data->arg.fh = NFS_FH(dir); in nfs_alloc_createdata()
224 data->arg.name = dentry->d_name.name; in nfs_alloc_createdata()
225 data->arg.len = dentry->d_name.len; in nfs_alloc_createdata()
226 data->arg.sattr = sattr; in nfs_alloc_createdata()
227 nfs_fattr_init(&data->fattr); in nfs_alloc_createdata()
228 data->fhandle.size = 0; in nfs_alloc_createdata()
229 data->res.fh = &data->fhandle; in nfs_alloc_createdata()
[all …]
Dnfs3xdr.c310 memcpy(verifier->data, p, NFS3_WRITEVERFSIZE); in decode_writeverf3()
422 xdr_encode_opaque(p, fh->data, fh->size); in encode_nfs_fh3()
440 memcpy(fh->data, p, length); in decode_nfs_fh3()
811 const void *data) in nfs3_xdr_enc_getattr3args() argument
813 const struct nfs_fh *fh = data; in nfs3_xdr_enc_getattr3args()
851 const void *data) in nfs3_xdr_enc_setattr3args() argument
853 const struct nfs3_sattrargs *args = data; in nfs3_xdr_enc_setattr3args()
868 const void *data) in nfs3_xdr_enc_lookup3args() argument
870 const struct nfs3_diropargs *args = data; in nfs3_xdr_enc_lookup3args()
892 const void *data) in nfs3_xdr_enc_access3args() argument
[all …]
/fs/dlm/
Dnetlink.c21 void *data; in prepare_data() local
28 data = genlmsg_put(skb, 0, dlm_nl_seqnum++, &family, 0, cmd); in prepare_data()
29 if (!data) { in prepare_data()
50 struct genlmsghdr *genlhdr = nlmsg_data((struct nlmsghdr *)skb->data); in send_data()
51 void *data = genlmsg_data(genlhdr); in send_data() local
53 genlmsg_end(skb, data); in send_data()
91 static void fill_data(struct dlm_lock_data *data, struct dlm_lkb *lkb) in fill_data() argument
95 memset(data, 0, sizeof(struct dlm_lock_data)); in fill_data()
97 data->version = DLM_LOCK_DATA_VERSION; in fill_data()
98 data->nodeid = lkb->lkb_nodeid; in fill_data()
[all …]
/fs/unicode/
Dutf8-norm.c319 static utf8leaf_t *utf8nlookup(const struct utf8data *data, in utf8nlookup() argument
328 if (!data) in utf8nlookup()
333 trie = utf8data + data->offset; in utf8nlookup()
395 static utf8leaf_t *utf8lookup(const struct utf8data *data, in utf8lookup() argument
398 return utf8nlookup(data, hangul, s, (size_t)-1); in utf8lookup()
406 int utf8agemax(const struct utf8data *data, const char *s) in utf8agemax() argument
413 if (!data) in utf8agemax()
417 leaf = utf8lookup(data, hangul, s); in utf8agemax()
422 if (leaf_age <= data->maxage && leaf_age > age) in utf8agemax()
435 int utf8agemin(const struct utf8data *data, const char *s) in utf8agemin() argument
[all …]
Dutf8-core.c15 const struct utf8data *data = utf8nfdi(um->version); in utf8_validate() local
17 if (utf8nlen(data, str->name, str->len) < 0) in utf8_validate()
26 const struct utf8data *data = utf8nfdi(um->version); in utf8_strncmp() local
30 if (utf8ncursor(&cur1, data, s1->name, s1->len) < 0) in utf8_strncmp()
33 if (utf8ncursor(&cur2, data, s2->name, s2->len) < 0) in utf8_strncmp()
53 const struct utf8data *data = utf8nfdicf(um->version); in utf8_strncasecmp() local
57 if (utf8ncursor(&cur1, data, s1->name, s1->len) < 0) in utf8_strncasecmp()
60 if (utf8ncursor(&cur2, data, s2->name, s2->len) < 0) in utf8_strncasecmp()
84 const struct utf8data *data = utf8nfdicf(um->version); in utf8_strncasecmp_folded() local
89 if (utf8ncursor(&cur1, data, s1->name, s1->len) < 0) in utf8_strncasecmp_folded()
[all …]
Dutf8n.h51 extern int utf8agemax(const struct utf8data *data, const char *s);
52 extern int utf8nagemax(const struct utf8data *data, const char *s, size_t len);
59 extern int utf8agemin(const struct utf8data *data, const char *s);
60 extern int utf8nagemin(const struct utf8data *data, const char *s, size_t len);
68 extern ssize_t utf8len(const struct utf8data *data, const char *s);
69 extern ssize_t utf8nlen(const struct utf8data *data, const char *s, size_t len);
78 const struct utf8data *data; member
95 extern int utf8cursor(struct utf8cursor *u8c, const struct utf8data *data,
97 extern int utf8ncursor(struct utf8cursor *u8c, const struct utf8data *data,
/fs/ubifs/
Dfind.c85 struct scan_data *data) in scan_for_dirty_cb() argument
96 if (lprops->free + lprops->dirty < data->min_space) in scan_for_dirty_cb()
99 if (data->exclude_index && lprops->flags & LPROPS_INDEX) in scan_for_dirty_cb()
103 if (!data->pick_free) in scan_for_dirty_cb()
109 data->lnum = lprops->lnum; in scan_for_dirty_cb()
130 struct scan_data data; in scan_for_dirty() local
165 data.min_space = min_space; in scan_for_dirty()
166 data.pick_free = pick_free; in scan_for_dirty()
167 data.lnum = -1; in scan_for_dirty()
168 data.exclude_index = exclude_index; in scan_for_dirty()
[all …]
/fs/hpfs/
Dbuffer.c117 char *data; in hpfs_map_4sectors() local
138 return qbh->data = qbh->bh[0]->b_data; in hpfs_map_4sectors()
141 qbh->data = data = kmalloc(2048, GFP_NOFS); in hpfs_map_4sectors()
142 if (!data) { in hpfs_map_4sectors()
147 memcpy(data + 0 * 512, qbh->bh[0]->b_data, 512); in hpfs_map_4sectors()
148 memcpy(data + 1 * 512, qbh->bh[1]->b_data, 512); in hpfs_map_4sectors()
149 memcpy(data + 2 * 512, qbh->bh[2]->b_data, 512); in hpfs_map_4sectors()
150 memcpy(data + 3 * 512, qbh->bh[3]->b_data, 512); in hpfs_map_4sectors()
152 return data; in hpfs_map_4sectors()
188 return qbh->data = qbh->bh[0]->b_data; in hpfs_get_4sectors()
[all …]
/fs/ocfs2/
Dblockcheck.c99 u32 ocfs2_hamming_encode(u32 parity, void *data, unsigned int d, unsigned int nr) in ocfs2_hamming_encode() argument
114 for (i = 0; (i = ocfs2_find_next_bit(data, d, i)) < d; i++) in ocfs2_hamming_encode()
146 u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize) in ocfs2_hamming_encode_block() argument
148 return ocfs2_hamming_encode(0, data, blocksize * 8, 0); in ocfs2_hamming_encode_block()
158 void ocfs2_hamming_fix(void *data, unsigned int d, unsigned int nr, in ocfs2_hamming_fix() argument
205 if (ocfs2_test_bit(i, data)) in ocfs2_hamming_fix()
206 ocfs2_clear_bit(i, data); in ocfs2_hamming_fix()
208 ocfs2_set_bit(i, data); in ocfs2_hamming_fix()
214 void ocfs2_hamming_fix_block(void *data, unsigned int blocksize, in ocfs2_hamming_fix_block() argument
217 ocfs2_hamming_fix(data, blocksize * 8, 0, fix); in ocfs2_hamming_fix_block()
[all …]
/fs/incfs/
Dverity.c75 .data = sig, in incfs_end_enable_verity()
171 verity_file_digest.data = smp_load_acquire( in incfs_get_verity_digest()
172 &df->df_verity_file_digest.data); in incfs_get_verity_digest()
185 kfree(verity_file_digest.data); in incfs_set_verity_digest()
199 if (cmpxchg_release(&df->df_verity_file_digest.data, NULL, in incfs_set_verity_digest()
200 verity_file_digest.data) != NULL) in incfs_set_verity_digest()
202 kfree(verity_file_digest.data); in incfs_set_verity_digest()
229 if (!verity_file_digest.data) in incfs_calc_verity_digest_from_desc()
233 verity_file_digest.data); in incfs_calc_verity_digest_from_desc()
240 verity_file_digest.data); in incfs_calc_verity_digest_from_desc()
[all …]
Dintegrity.c87 range->data = *p; in read_mem_range()
95 u8 *p = signature.data; in incfs_parse_signature()
96 u8 *top = signature.data + signature.len; in incfs_parse_signature()
194 memcpy(result->root_hash, si.root_hash.data, hash_alg->digest_size); in incfs_alloc_mtree()
207 int incfs_calc_digest(struct incfs_hash_alg *alg, struct mem_range data, in incfs_calc_digest() argument
212 if (!alg || !alg->shash || !data.data || !digest.data) in incfs_calc_digest()
220 if (data.len < INCFS_DATA_FILE_BLOCK_SIZE) { in incfs_calc_digest()
227 memcpy(buf, data.data, data.len); in incfs_calc_digest()
229 digest.data); in incfs_calc_digest()
233 return crypto_shash_digest(desc, data.data, data.len, digest.data); in incfs_calc_digest()
/fs/xfs/
Dxfs_sysctl.c20 int ret, *valp = ctl->data; in xfs_stats_clear_proc_handler()
40 int ret, *valp = ctl->data; in xfs_panic_mask_proc_handler()
88 .data = &xfs_params.sgid_inherit.val,
97 .data = &xfs_params.symlink_mode.val,
106 .data = &xfs_params.panic_mask.val,
116 .data = &xfs_params.error_level.val,
125 .data = &xfs_params.syncd_timer.val,
134 .data = &xfs_params.inherit_sync.val,
143 .data = &xfs_params.inherit_nodump.val,
152 .data = &xfs_params.inherit_noatim.val,
[all …]
/fs/lockd/
Dclnt4xdr.c109 const u8 *data, const unsigned int length) in encode_netobj() argument
114 xdr_encode_opaque(p, data, length); in encode_netobj()
122 ret = xdr_stream_decode_opaque_inline(xdr, (void *)&obj->data, in decode_netobj()
136 encode_netobj(xdr, (u8 *)&cookie->data, cookie->len); in encode_cookie()
158 memcpy(cookie->data, p, length); in decode_cookie()
162 memset(cookie->data, 0, 4); in decode_cookie()
176 encode_netobj(xdr, (u8 *)&fh->data, fh->size); in encode_fh()
248 encode_netobj(xdr, lock->oh.data, lock->oh.len); in encode_nlm4_holder()
333 encode_netobj(xdr, lock->oh.data, lock->oh.len); in encode_nlm4_lock()
361 const void *data) in nlm4_xdr_enc_testargs() argument
[all …]
Dclntxdr.c106 const u8 *data, const unsigned int length) in encode_netobj() argument
111 xdr_encode_opaque(p, data, length); in encode_netobj()
119 ret = xdr_stream_decode_opaque_inline(xdr, (void *)&obj->data, in decode_netobj()
133 encode_netobj(xdr, (u8 *)&cookie->data, cookie->len); in encode_cookie()
155 memcpy(cookie->data, p, length); in decode_cookie()
159 memset(cookie->data, 0, 4); in decode_cookie()
173 encode_netobj(xdr, (u8 *)&fh->data, NFS2_FHSIZE); in encode_fh()
243 encode_netobj(xdr, lock->oh.data, lock->oh.len); in encode_nlm_holder()
327 encode_netobj(xdr, lock->oh.data, lock->oh.len); in encode_nlm_lock()
354 const void *data) in nlm_xdr_enc_testargs() argument
[all …]
/fs/efivarfs/
Dfile.c19 void *data; in efivarfs_file_write() local
35 data = memdup_user(userbuf + sizeof(attributes), datasize); in efivarfs_file_write()
36 if (IS_ERR(data)) in efivarfs_file_write()
37 return PTR_ERR(data); in efivarfs_file_write()
40 data, &set); in efivarfs_file_write()
61 kfree(data); in efivarfs_file_write()
72 void *data; in efivarfs_file_read() local
90 data = kmalloc(datasize + sizeof(attributes), GFP_KERNEL); in efivarfs_file_read()
92 if (!data) in efivarfs_file_read()
96 data + sizeof(attributes)); in efivarfs_file_read()
[all …]
/fs/befs/
Ddatastream.c25 const befs_data_stream *data,
29 const befs_data_stream *data,
34 const befs_data_stream *data,
95 befs_fblock2brun(struct super_block *sb, const befs_data_stream *data, in befs_fblock2brun() argument
101 if (pos < data->max_direct_range) { in befs_fblock2brun()
102 err = befs_find_brun_direct(sb, data, fblock, run); in befs_fblock2brun()
104 } else if (pos < data->max_indirect_range) { in befs_fblock2brun()
105 err = befs_find_brun_indirect(sb, data, fblock, run); in befs_fblock2brun()
107 } else if (pos < data->max_double_indirect_range) { in befs_fblock2brun()
108 err = befs_find_brun_dblindirect(sb, data, fblock, run); in befs_fblock2brun()
[all …]
/fs/pstore/
Dinode.c66 struct pstore_ftrace_seq_data *data; in pstore_ftrace_seq_start() local
68 data = kzalloc(sizeof(*data), GFP_KERNEL); in pstore_ftrace_seq_start()
69 if (!data) in pstore_ftrace_seq_start()
72 data->off = ps->total_size % REC_SIZE; in pstore_ftrace_seq_start()
73 data->off += *pos * REC_SIZE; in pstore_ftrace_seq_start()
74 if (data->off + REC_SIZE > ps->total_size) { in pstore_ftrace_seq_start()
75 kfree(data); in pstore_ftrace_seq_start()
79 return data; in pstore_ftrace_seq_start()
91 struct pstore_ftrace_seq_data *data = v; in pstore_ftrace_seq_next() local
94 data->off += REC_SIZE; in pstore_ftrace_seq_next()
[all …]
/fs/debugfs/
Dfile.c438 static int debugfs_u8_set(void *data, u64 val) in debugfs_u8_set() argument
440 *(u8 *)data = val; in debugfs_u8_set()
443 static int debugfs_u8_get(void *data, u64 *val) in debugfs_u8_get() argument
445 *val = *(u8 *)data; in debugfs_u8_get()
474 static int debugfs_u16_set(void *data, u64 val) in debugfs_u16_set() argument
476 *(u16 *)data = val; in debugfs_u16_set()
479 static int debugfs_u16_get(void *data, u64 *val) in debugfs_u16_get() argument
481 *val = *(u16 *)data; in debugfs_u16_get()
510 static int debugfs_u32_set(void *data, u64 val) in debugfs_u32_set() argument
512 *(u32 *)data = val; in debugfs_u32_set()
[all …]
/fs/gfs2/
Dacl.c45 char *data; in __gfs2_get_acl() local
52 len = gfs2_xattr_acl_get(ip, name, &data); in __gfs2_get_acl()
55 acl = posix_acl_from_xattr(&init_user_ns, data, len); in __gfs2_get_acl()
56 kfree(data); in __gfs2_get_acl()
84 char *data; in __gfs2_set_acl() local
89 data = kmalloc(len, GFP_NOFS); in __gfs2_set_acl()
90 if (data == NULL) in __gfs2_set_acl()
92 error = posix_acl_to_xattr(&init_user_ns, acl, data, len); in __gfs2_set_acl()
96 data = NULL; in __gfs2_set_acl()
100 error = __gfs2_xattr_set(inode, name, data, len, 0, GFS2_EATYPE_SYS); in __gfs2_set_acl()
[all …]

12345678910>>...20