Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 486) 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.c267 struct nfs3_createdata *data; in nfs3_alloc_createdata() local
269 data = kzalloc(sizeof(*data), GFP_KERNEL); in nfs3_alloc_createdata()
270 if (data != NULL) { in nfs3_alloc_createdata()
271 data->msg.rpc_argp = &data->arg; in nfs3_alloc_createdata()
272 data->msg.rpc_resp = &data->res; in nfs3_alloc_createdata()
273 data->res.fh = &data->fh; in nfs3_alloc_createdata()
274 data->res.fattr = &data->fattr; in nfs3_alloc_createdata()
275 data->res.dir_attr = &data->dir_attr; in nfs3_alloc_createdata()
276 nfs_fattr_init(data->res.fattr); in nfs3_alloc_createdata()
277 nfs_fattr_init(data->res.dir_attr); in nfs3_alloc_createdata()
[all …]
Dnfs42proc.c387 struct nfs42_offloadcancel_data *data = calldata; in nfs42_offload_cancel_prepare() local
389 nfs4_setup_sequence(data->seq_server->nfs_client, in nfs42_offload_cancel_prepare()
390 &data->args.osa_seq_args, in nfs42_offload_cancel_prepare()
391 &data->res.osr_seq_res, task); in nfs42_offload_cancel_prepare()
396 struct nfs42_offloadcancel_data *data = calldata; in nfs42_offload_cancel_done() local
398 nfs41_sequence_done(task, &data->res.osr_seq_res); in nfs42_offload_cancel_done()
400 nfs4_async_handle_error(task, data->seq_server, NULL, in nfs42_offload_cancel_done()
405 static void nfs42_free_offloadcancel_data(void *data) in nfs42_free_offloadcancel_data() argument
407 kfree(data); in nfs42_free_offloadcancel_data()
420 struct nfs42_offloadcancel_data *data = NULL; in nfs42_do_offload_cancel_async() local
[all …]
Dsuper.c936 struct nfs_parsed_mount_data *data; in nfs_alloc_parsed_mount_data() local
938 data = kzalloc(sizeof(*data), GFP_KERNEL); in nfs_alloc_parsed_mount_data()
939 if (data) { in nfs_alloc_parsed_mount_data()
940 data->timeo = NFS_UNSPEC_TIMEO; in nfs_alloc_parsed_mount_data()
941 data->retrans = NFS_UNSPEC_RETRANS; in nfs_alloc_parsed_mount_data()
942 data->acregmin = NFS_DEF_ACREGMIN; in nfs_alloc_parsed_mount_data()
943 data->acregmax = NFS_DEF_ACREGMAX; in nfs_alloc_parsed_mount_data()
944 data->acdirmin = NFS_DEF_ACDIRMIN; in nfs_alloc_parsed_mount_data()
945 data->acdirmax = NFS_DEF_ACDIRMAX; in nfs_alloc_parsed_mount_data()
946 data->mount_server.port = NFS_UNSPEC_PORT; in nfs_alloc_parsed_mount_data()
[all …]
Dnfs4proc.c91 static int _nfs4_recover_proc_open(struct nfs4_opendata *data);
949 struct nfs4_call_sync_data *data = calldata; in nfs41_call_sync_prepare() local
951 dprintk("--> %s data->seq_server %p\n", __func__, data->seq_server); in nfs41_call_sync_prepare()
953 nfs4_setup_sequence(data->seq_server->nfs_client, in nfs41_call_sync_prepare()
954 data->seq_args, data->seq_res, task); in nfs41_call_sync_prepare()
959 struct nfs4_call_sync_data *data = calldata; in nfs41_call_sync_done() local
961 nfs41_sequence_done(task, data->seq_res); in nfs41_call_sync_done()
1070 struct nfs4_call_sync_data *data = calldata; in nfs40_call_sync_prepare() local
1071 nfs4_setup_sequence(data->seq_server->nfs_client, in nfs40_call_sync_prepare()
1072 data->seq_args, data->seq_res, task); in nfs40_call_sync_prepare()
[all …]
Dproc.c208 struct nfs_createdata *data; in nfs_alloc_createdata() local
210 data = kmalloc(sizeof(*data), GFP_KERNEL); in nfs_alloc_createdata()
212 if (data != NULL) { in nfs_alloc_createdata()
213 data->arg.fh = NFS_FH(dir); in nfs_alloc_createdata()
214 data->arg.name = dentry->d_name.name; in nfs_alloc_createdata()
215 data->arg.len = dentry->d_name.len; in nfs_alloc_createdata()
216 data->arg.sattr = sattr; in nfs_alloc_createdata()
217 nfs_fattr_init(&data->fattr); in nfs_alloc_createdata()
218 data->fhandle.size = 0; in nfs_alloc_createdata()
219 data->res.fh = &data->fhandle; in nfs_alloc_createdata()
[all …]
Dpnfs_nfs.c22 void pnfs_generic_rw_release(void *data) in pnfs_generic_rw_release() argument
24 struct nfs_pgio_header *hdr = data; in pnfs_generic_rw_release()
27 hdr->mds_ops->rpc_release(data); in pnfs_generic_rw_release()
32 void pnfs_generic_prepare_to_resend_writes(struct nfs_commit_data *data) in pnfs_generic_prepare_to_resend_writes() argument
34 struct nfs_page *first = nfs_list_entry(data->pages.next); in pnfs_generic_prepare_to_resend_writes()
36 data->task.tk_status = 0; in pnfs_generic_prepare_to_resend_writes()
37 memcpy(&data->verf.verifier, &first->wb_verf, in pnfs_generic_prepare_to_resend_writes()
38 sizeof(data->verf.verifier)); in pnfs_generic_prepare_to_resend_writes()
39 data->verf.verifier.data[0]++; /* ensure verifier mismatch */ in pnfs_generic_prepare_to_resend_writes()
43 void pnfs_generic_write_commit_done(struct rpc_task *task, void *data) in pnfs_generic_write_commit_done() argument
[all …]
Dnfs4client.c490 return memcmp(v1->data, v2->data, sizeof(v1->data)) == 0; in nfs4_same_verifier()
834 if (memcmp(clp->cl_session->sess_id.data, in nfs4_find_client_sessionid()
835 sid->data, NFS4_MAX_SESSIONID_LEN) != 0) in nfs4_find_client_sessionid()
1056 struct nfs_parsed_mount_data *data) in nfs4_init_server() argument
1061 nfs_init_timeout_values(&timeparms, data->nfs_server.protocol, in nfs4_init_server()
1062 data->timeo, data->retrans); in nfs4_init_server()
1065 server->flags = data->flags; in nfs4_init_server()
1066 server->options = data->options; in nfs4_init_server()
1067 server->auth_info = data->auth_info; in nfs4_init_server()
1072 if (data->auth_info.flavor_len >= 1) in nfs4_init_server()
[all …]
Dnfs42xdr.c229 p = xdr_encode_opaque_fixed(p, devinfo->dev_id.data, in encode_layoutstats()
261 p = xdr_encode_opaque_fixed(p, error->dev_id.data, in encode_device_error()
288 const void *data) in nfs4_xdr_enc_allocate() argument
290 const struct nfs42_falloc_args *args = data; in nfs4_xdr_enc_allocate()
320 const void *data) in nfs4_xdr_enc_copy() argument
322 const struct nfs42_copy_args *args = data; in nfs4_xdr_enc_copy()
343 const void *data) in nfs4_xdr_enc_offload_cancel() argument
345 const struct nfs42_offload_status_args *args = data; in nfs4_xdr_enc_offload_cancel()
362 const void *data) in nfs4_xdr_enc_deallocate() argument
364 const struct nfs42_falloc_args *args = data; in nfs4_xdr_enc_deallocate()
[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/sdcardfs/
Dderived_perm.c29 ci->data->perm = PERM_INHERIT; in inherit_derived_state()
30 ci->data->userid = pi->data->userid; in inherit_derived_state()
31 ci->data->d_uid = pi->data->d_uid; in inherit_derived_state()
32 ci->data->under_android = pi->data->under_android; in inherit_derived_state()
33 ci->data->under_cache = pi->data->under_cache; in inherit_derived_state()
34 ci->data->under_obb = pi->data->under_obb; in inherit_derived_state()
43 info->data->perm = perm; in setup_derived_state()
44 info->data->userid = userid; in setup_derived_state()
45 info->data->d_uid = uid; in setup_derived_state()
46 info->data->under_android = false; in setup_derived_state()
[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.c14 const struct utf8data *data = utf8nfdi(um->version); in utf8_validate() local
16 if (utf8nlen(data, str->name, str->len) < 0) in utf8_validate()
25 const struct utf8data *data = utf8nfdi(um->version); in utf8_strncmp() local
29 if (utf8ncursor(&cur1, data, s1->name, s1->len) < 0) in utf8_strncmp()
32 if (utf8ncursor(&cur2, data, s2->name, s2->len) < 0) in utf8_strncmp()
52 const struct utf8data *data = utf8nfdicf(um->version); in utf8_strncasecmp() local
56 if (utf8ncursor(&cur1, data, s1->name, s1->len) < 0) in utf8_strncasecmp()
59 if (utf8ncursor(&cur2, data, s2->name, s2->len) < 0) in utf8_strncasecmp()
83 const struct utf8data *data = utf8nfdicf(um->version); in utf8_strncasecmp_folded() local
88 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/incfs/
Dintegrity.c17 const void *data = NULL; in incfs_validate_pkcs7_signature() local
22 pkcs7 = pkcs7_parse_message(pkcs7_blob.data, pkcs7_blob.len); in incfs_validate_pkcs7_signature()
25 pkcs7_blob.data, pkcs7_blob.len, -PTR_ERR(pkcs7)); in incfs_validate_pkcs7_signature()
29 err = pkcs7_get_content_data(pkcs7, &data, &data_len, NULL); in incfs_validate_pkcs7_signature()
30 if (err || data_len == 0 || data == NULL) { in incfs_validate_pkcs7_signature()
48 p = data; in incfs_validate_pkcs7_signature()
49 if (memcmp(p, root_hash.data, root_hash.len) != 0) { in incfs_validate_pkcs7_signature()
55 if (memcmp(p, add_data.data, add_data.len) != 0) { in incfs_validate_pkcs7_signature()
176 memcpy(result->root_hash, root_hash.data, hash_alg->digest_size); in incfs_alloc_mtree()
189 int incfs_calc_digest(struct incfs_hash_alg *alg, struct mem_range data, in incfs_calc_digest() argument
[all …]
/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()
56 .data = &xfs_params.sgid_inherit.val,
65 .data = &xfs_params.symlink_mode.val,
74 .data = &xfs_params.panic_mask.val,
84 .data = &xfs_params.error_level.val,
93 .data = &xfs_params.syncd_timer.val,
102 .data = &xfs_params.inherit_sync.val,
111 .data = &xfs_params.inherit_nodump.val,
120 .data = &xfs_params.inherit_noatim.val,
[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/debugfs/
Dfile.c399 static int debugfs_u8_set(void *data, u64 val) in debugfs_u8_set() argument
401 *(u8 *)data = val; in debugfs_u8_set()
404 static int debugfs_u8_get(void *data, u64 *val) in debugfs_u8_get() argument
406 *val = *(u8 *)data; in debugfs_u8_get()
444 static int debugfs_u16_set(void *data, u64 val) in debugfs_u16_set() argument
446 *(u16 *)data = val; in debugfs_u16_set()
449 static int debugfs_u16_get(void *data, u64 *val) in debugfs_u16_get() argument
451 *val = *(u16 *)data; in debugfs_u16_get()
489 static int debugfs_u32_set(void *data, u64 val) in debugfs_u32_set() argument
491 *(u32 *)data = val; in debugfs_u32_set()
[all …]
/fs/pstore/
Dinode.c63 struct pstore_ftrace_seq_data *data; in pstore_ftrace_seq_start() local
65 data = kzalloc(sizeof(*data), GFP_KERNEL); in pstore_ftrace_seq_start()
66 if (!data) in pstore_ftrace_seq_start()
69 data->off = ps->total_size % REC_SIZE; in pstore_ftrace_seq_start()
70 data->off += *pos * REC_SIZE; in pstore_ftrace_seq_start()
71 if (data->off + REC_SIZE > ps->total_size) { in pstore_ftrace_seq_start()
72 kfree(data); in pstore_ftrace_seq_start()
76 return data; in pstore_ftrace_seq_start()
88 struct pstore_ftrace_seq_data *data = v; in pstore_ftrace_seq_next() local
90 data->off += REC_SIZE; in pstore_ftrace_seq_next()
[all …]
/fs/lockd/
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 …]
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 …]
/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()
60 kfree(data); in efivarfs_file_write()
71 void *data; in efivarfs_file_read() local
91 data = kmalloc(datasize + sizeof(attributes), GFP_KERNEL); in efivarfs_file_read()
93 if (!data) in efivarfs_file_read()
97 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 …]

12345678910>>...20