Home
last modified time | relevance | path

Searched refs:actor (Results 1 - 25 of 79) sorted by relevance

1234

/kernel/linux/linux-6.6/fs/squashfs/
H A Dpage_actor.c24 static void *cache_first_page(struct squashfs_page_actor *actor) in cache_first_page() argument
26 actor->next_page = 1; in cache_first_page()
27 return actor->buffer[0]; in cache_first_page()
30 static void *cache_next_page(struct squashfs_page_actor *actor) in cache_next_page() argument
32 if (actor->next_page == actor->pages) in cache_next_page()
35 return actor->buffer[actor->next_page++]; in cache_next_page()
38 static void cache_finish_page(struct squashfs_page_actor *actor) in cache_finish_page() argument
46 struct squashfs_page_actor *actor in squashfs_page_actor_init() local
63 handle_next_page(struct squashfs_page_actor *actor) handle_next_page() argument
84 direct_first_page(struct squashfs_page_actor *actor) direct_first_page() argument
89 direct_next_page(struct squashfs_page_actor *actor) direct_next_page() argument
99 direct_finish_page(struct squashfs_page_actor *actor) direct_finish_page() argument
108 struct squashfs_page_actor *actor = kmalloc(sizeof(*actor), GFP_KERNEL); squashfs_page_actor_init_special() local
[all...]
H A Dpage_actor.h33 static inline struct page *squashfs_page_actor_free(struct squashfs_page_actor *actor) in squashfs_page_actor_free() argument
35 struct page *last_page = actor->last_page; in squashfs_page_actor_free()
37 kfree(actor->tmp_buffer); in squashfs_page_actor_free()
38 kfree(actor); in squashfs_page_actor_free()
41 static inline void *squashfs_first_page(struct squashfs_page_actor *actor) in squashfs_first_page() argument
43 return actor->squashfs_first_page(actor); in squashfs_first_page()
45 static inline void *squashfs_next_page(struct squashfs_page_actor *actor) in squashfs_next_page() argument
47 return actor->squashfs_next_page(actor); in squashfs_next_page()
49 squashfs_finish_page(struct squashfs_page_actor *actor) squashfs_finish_page() argument
53 squashfs_actor_nobuff(struct squashfs_page_actor *actor) squashfs_actor_nobuff() argument
[all...]
H A Dcache.c111 &entry->next_index, entry->actor); in squashfs_cache_get()
210 kfree(cache->entry[i].actor); in squashfs_cache_delete()
272 entry->actor = squashfs_page_actor_init(entry->data, in squashfs_cache_init()
274 if (entry->actor == NULL) { in squashfs_cache_init()
411 struct squashfs_page_actor *actor; in squashfs_read_table() local
423 actor = squashfs_page_actor_init(data, pages, length); in squashfs_read_table()
424 if (actor == NULL) { in squashfs_read_table()
433 SQUASHFS_COMPRESSED_BIT_BLOCK, NULL, actor); in squashfs_read_table()
436 kfree(actor); in squashfs_read_table()
H A Ddecompressor.c91 struct squashfs_page_actor *actor = NULL; in get_comp_opts() local
104 actor = squashfs_page_actor_init(&buffer, 1, 0); in get_comp_opts()
105 if (actor == NULL) { in get_comp_opts()
111 sizeof(struct squashfs_super_block), 0, NULL, actor); in get_comp_opts()
122 kfree(actor); in get_comp_opts()
H A Dfile_direct.c35 struct squashfs_page_actor *actor; in squashfs_readpage_block() local
67 * Create a "page actor" which will kmap and kunmap the in squashfs_readpage_block()
70 actor = squashfs_page_actor_init_special(msblk, page, pages, expected); in squashfs_readpage_block()
71 if (actor == NULL) in squashfs_readpage_block()
75 res = squashfs_read_data(inode->i_sb, block, bsize, NULL, actor); in squashfs_readpage_block()
77 squashfs_page_actor_free(actor); in squashfs_readpage_block()
H A Dblock.c31 * Returns the amount of bytes copied to the page actor.
34 struct squashfs_page_actor *actor, in copy_bio_to_actor()
43 squashfs_actor_nobuff(actor); in copy_bio_to_actor()
44 actor_addr = squashfs_first_page(actor); in copy_bio_to_actor()
64 actor_addr = squashfs_next_page(actor); in copy_bio_to_actor()
75 squashfs_finish_page(actor); in copy_bio_to_actor()
33 copy_bio_to_actor(struct bio *bio, struct squashfs_page_actor *actor, int offset, int req_length) copy_bio_to_actor() argument
H A Dfile.c544 struct squashfs_page_actor *actor; in squashfs_readahead() local
594 actor = squashfs_page_actor_init_special(msblk, pages, nr_pages, in squashfs_readahead()
596 if (!actor) in squashfs_readahead()
599 res = squashfs_read_data(inode->i_sb, block, bsize, NULL, actor); in squashfs_readahead()
601 last_page = squashfs_page_actor_free(actor); in squashfs_readahead()
H A Dsquashfs_fs_sb.h40 struct squashfs_page_actor *actor; member
/kernel/linux/linux-5.10/fs/squashfs/
H A Dpage_actor.c22 static void *cache_first_page(struct squashfs_page_actor *actor) in cache_first_page() argument
24 actor->next_page = 1; in cache_first_page()
25 return actor->buffer[0]; in cache_first_page()
28 static void *cache_next_page(struct squashfs_page_actor *actor) in cache_next_page() argument
30 if (actor->next_page == actor->pages) in cache_next_page()
33 return actor->buffer[actor->next_page++]; in cache_next_page()
36 static void cache_finish_page(struct squashfs_page_actor *actor) in cache_finish_page() argument
44 struct squashfs_page_actor *actor in squashfs_page_actor_init() local
60 direct_first_page(struct squashfs_page_actor *actor) direct_first_page() argument
66 direct_next_page(struct squashfs_page_actor *actor) direct_next_page() argument
75 direct_finish_page(struct squashfs_page_actor *actor) direct_finish_page() argument
84 struct squashfs_page_actor *actor = kmalloc(sizeof(*actor), GFP_KERNEL); squashfs_page_actor_init_special() local
[all...]
H A Dpage_actor.h20 struct squashfs_page_actor *actor = kmalloc(sizeof(*actor), GFP_KERNEL); in squashfs_page_actor_init() local
22 if (actor == NULL) in squashfs_page_actor_init()
25 actor->length = length ? : pages * PAGE_SIZE; in squashfs_page_actor_init()
26 actor->page = page; in squashfs_page_actor_init()
27 actor->pages = pages; in squashfs_page_actor_init()
28 actor->next_page = 0; in squashfs_page_actor_init()
29 return actor; in squashfs_page_actor_init()
32 static inline void *squashfs_first_page(struct squashfs_page_actor *actor) in squashfs_first_page() argument
34 actor in squashfs_first_page()
38 squashfs_next_page(struct squashfs_page_actor *actor) squashfs_next_page() argument
44 squashfs_finish_page(struct squashfs_page_actor *actor) squashfs_finish_page() argument
66 squashfs_first_page(struct squashfs_page_actor *actor) squashfs_first_page() argument
70 squashfs_next_page(struct squashfs_page_actor *actor) squashfs_next_page() argument
74 squashfs_finish_page(struct squashfs_page_actor *actor) squashfs_finish_page() argument
[all...]
H A Dfile_direct.c38 struct squashfs_page_actor *actor; in squashfs_readpage_block() local
51 * Create a "page actor" which will kmap and kunmap the in squashfs_readpage_block()
54 actor = squashfs_page_actor_init_special(page, pages, 0); in squashfs_readpage_block()
55 if (actor == NULL) in squashfs_readpage_block()
93 res = squashfs_read_data(inode->i_sb, block, bsize, NULL, actor); in squashfs_readpage_block()
119 kfree(actor); in squashfs_readpage_block()
138 kfree(actor); in squashfs_readpage_block()
H A Dcache.c111 &entry->next_index, entry->actor); in squashfs_cache_get()
210 kfree(cache->entry[i].actor); in squashfs_cache_delete()
272 entry->actor = squashfs_page_actor_init(entry->data, in squashfs_cache_init()
274 if (entry->actor == NULL) { in squashfs_cache_init()
411 struct squashfs_page_actor *actor; in squashfs_read_table() local
423 actor = squashfs_page_actor_init(data, pages, length); in squashfs_read_table()
424 if (actor == NULL) { in squashfs_read_table()
433 SQUASHFS_COMPRESSED_BIT_BLOCK, NULL, actor); in squashfs_read_table()
436 kfree(actor); in squashfs_read_table()
H A Ddecompressor.c92 struct squashfs_page_actor *actor = NULL; in get_comp_opts() local
105 actor = squashfs_page_actor_init(&buffer, 1, 0); in get_comp_opts()
106 if (actor == NULL) { in get_comp_opts()
112 sizeof(struct squashfs_super_block), 0, NULL, actor); in get_comp_opts()
123 kfree(actor); in get_comp_opts()
H A Dblock.c31 * Returns the amount of bytes copied to the page actor.
34 struct squashfs_page_actor *actor, in copy_bio_to_actor()
37 void *actor_addr = squashfs_first_page(actor); in copy_bio_to_actor()
61 actor_addr = squashfs_next_page(actor); in copy_bio_to_actor()
72 squashfs_finish_page(actor); in copy_bio_to_actor()
33 copy_bio_to_actor(struct bio *bio, struct squashfs_page_actor *actor, int offset, int req_length) copy_bio_to_actor() argument
H A Dsquashfs_fs_sb.h40 struct squashfs_page_actor *actor; member
/kernel/linux/linux-6.6/net/sunrpc/xprtrdma/
H A Dsvc_rdma_pcl.c234 int (*actor)(const struct xdr_buf *, void *), in pcl_process_region()
243 return actor(&subbuf, data); in pcl_process_region()
250 * @actor: Function to invoke on each non-payload region
251 * @data: Arguments for @actor
263 * The return value of @actor
267 int (*actor)(const struct xdr_buf *, void *), in pcl_process_nonpayloads()
278 return actor(xdr, data); in pcl_process_nonpayloads()
281 ret = pcl_process_region(xdr, 0, chunk->ch_position, actor, data); in pcl_process_nonpayloads()
292 actor, data); in pcl_process_nonpayloads()
301 ret = pcl_process_region(xdr, start, xdr->len - start, actor, dat in pcl_process_nonpayloads()
[all...]
/kernel/linux/linux-5.10/fs/iomap/
H A Dtrace.h146 unsigned int flags, const void *ops, void *actor,
148 TP_ARGS(inode, pos, length, flags, ops, actor, caller),
156 __field(void *, actor)
166 __entry->actor = actor;
170 "ops %ps caller %pS actor %ps",
179 __entry->actor)
H A Dapply.c25 const struct iomap_ops *ops, void *data, iomap_actor_t actor) in iomap_apply()
32 trace_iomap_apply(inode, pos, length, flags, ops, actor, _RET_IP_); in iomap_apply()
84 written = actor(inode, pos, length, data, &iomap, in iomap_apply()
24 iomap_apply(struct inode *inode, loff_t pos, loff_t length, unsigned flags, const struct iomap_ops *ops, void *data, iomap_actor_t actor) iomap_apply() argument
/kernel/linux/linux-5.10/fs/ntfs/
H A Ddir.c998 * @actor: what to feed the entries to
1014 u8 *name, struct dir_context *actor) in ntfs_filldir()
1056 "0x%lx, DT_%s.", name, name_len, actor->pos, mref, in ntfs_filldir()
1058 if (!dir_emit(actor, name, name_len, mref, dt_type)) in ntfs_filldir()
1086 static int ntfs_readdir(struct file *file, struct dir_context *actor) in ntfs_readdir() argument
1106 vdir->i_ino, actor->pos); in ntfs_readdir()
1110 if (actor->pos >= i_size + vol->mft_record_size) in ntfs_readdir()
1113 if (!dir_emit_dots(file, actor)) in ntfs_readdir()
1127 if (actor->pos >= vol->mft_record_size) in ntfs_readdir()
1142 ir_pos = (s64)actor in ntfs_readdir()
1012 ntfs_filldir(ntfs_volume *vol, ntfs_inode *ndir, struct page *ia_page, INDEX_ENTRY *ie, u8 *name, struct dir_context *actor) ntfs_filldir() argument
[all...]
/kernel/linux/linux-6.6/fs/ntfs/
H A Ddir.c998 * @actor: what to feed the entries to
1014 u8 *name, struct dir_context *actor) in ntfs_filldir()
1056 "0x%lx, DT_%s.", name, name_len, actor->pos, mref, in ntfs_filldir()
1058 if (!dir_emit(actor, name, name_len, mref, dt_type)) in ntfs_filldir()
1086 static int ntfs_readdir(struct file *file, struct dir_context *actor) in ntfs_readdir() argument
1106 vdir->i_ino, actor->pos); in ntfs_readdir()
1110 if (actor->pos >= i_size + vol->mft_record_size) in ntfs_readdir()
1113 if (!dir_emit_dots(file, actor)) in ntfs_readdir()
1127 if (actor->pos >= vol->mft_record_size) in ntfs_readdir()
1142 ir_pos = (s64)actor in ntfs_readdir()
1012 ntfs_filldir(ntfs_volume *vol, ntfs_inode *ndir, struct page *ia_page, INDEX_ENTRY *ie, u8 *name, struct dir_context *actor) ntfs_filldir() argument
[all...]
/kernel/linux/linux-6.6/fs/smb/server/
H A Dvfs_cache.h112 filldir_t actor) in set_ctx_actor()
114 ctx->actor = actor; in set_ctx_actor()
111 set_ctx_actor(struct dir_context *ctx, filldir_t actor) set_ctx_actor() argument
/kernel/linux/linux-5.10/fs/
H A Dreaddir.c186 .ctx.actor = fillonedir, in SYSCALL_DEFINE3()
276 .ctx.actor = filldir, in SYSCALL_DEFINE3()
359 .ctx.actor = filldir64, in SYSCALL_DEFINE3()
444 .ctx.actor = compat_fillonedir, in COMPAT_SYSCALL_DEFINE3()
527 .ctx.actor = compat_filldir, in COMPAT_SYSCALL_DEFINE3()
H A Dsplice.c379 * @sd: information to @actor
380 * @actor: handler that splices the data
383 * This function loops over the pipe and calls @actor to do the
397 splice_actor *actor) in splice_from_pipe_feed()
418 ret = actor(pipe, buf, sd); in splice_from_pipe_feed()
540 * __splice_from_pipe - splice data from a pipe to given actor
542 * @sd: information to @actor
543 * @actor: handler that splices the data
547 * @actor to do the actual moving of a single struct pipe_buffer to
553 splice_actor *actor) in __splice_from_pipe()
396 splice_from_pipe_feed(struct pipe_inode_info *pipe, struct splice_desc *sd, splice_actor *actor) splice_from_pipe_feed() argument
552 __splice_from_pipe(struct pipe_inode_info *pipe, struct splice_desc *sd, splice_actor *actor) __splice_from_pipe() argument
584 splice_from_pipe(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags, splice_actor *actor) splice_from_pipe() argument
804 splice_direct_to_actor(struct file *in, struct splice_desc *sd, splice_direct_actor *actor) splice_direct_to_actor() argument
[all...]
/kernel/linux/linux-6.6/fs/
H A Dreaddir.c222 .ctx.actor = fillonedir, in SYSCALL_DEFINE3()
312 .ctx.actor = filldir, in SYSCALL_DEFINE3()
395 .ctx.actor = filldir64, in SYSCALL_DEFINE3()
480 .ctx.actor = compat_fillonedir, in COMPAT_SYSCALL_DEFINE3()
563 .ctx.actor = compat_filldir, in COMPAT_SYSCALL_DEFINE3()
/kernel/linux/linux-5.10/security/keys/
H A Drequest_key.c230 request_key_actor_t actor; in construct_key() local
243 actor = call_sbin_request_key; in construct_key()
245 actor = key->type->request_key; in construct_key()
247 ret = actor(authkey, aux); in construct_key()
249 /* check that the actor called complete_request_key() prior to in construct_key()

Completed in 16 milliseconds

1234