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

/linux-4.1.27/fs/squashfs/
H A Dpage_actor.c24 static void *cache_first_page(struct squashfs_page_actor *actor) cache_first_page() argument
26 actor->next_page = 1; cache_first_page()
27 return actor->buffer[0]; cache_first_page()
30 static void *cache_next_page(struct squashfs_page_actor *actor) cache_next_page() argument
32 if (actor->next_page == actor->pages) cache_next_page()
35 return actor->buffer[actor->next_page++]; cache_next_page()
38 static void cache_finish_page(struct squashfs_page_actor *actor) cache_finish_page() argument
46 struct squashfs_page_actor *actor = kmalloc(sizeof(*actor), GFP_KERNEL); squashfs_page_actor_init() local
48 if (actor == NULL) squashfs_page_actor_init()
51 actor->length = length ? : pages * PAGE_CACHE_SIZE; squashfs_page_actor_init()
52 actor->buffer = buffer; squashfs_page_actor_init()
53 actor->pages = pages; squashfs_page_actor_init()
54 actor->next_page = 0; squashfs_page_actor_init()
55 actor->squashfs_first_page = cache_first_page; squashfs_page_actor_init()
56 actor->squashfs_next_page = cache_next_page; squashfs_page_actor_init()
57 actor->squashfs_finish_page = cache_finish_page; squashfs_page_actor_init()
58 return actor; squashfs_page_actor_init()
62 static void *direct_first_page(struct squashfs_page_actor *actor) direct_first_page() argument
64 actor->next_page = 1; direct_first_page()
65 return actor->pageaddr = kmap_atomic(actor->page[0]); direct_first_page()
68 static void *direct_next_page(struct squashfs_page_actor *actor) direct_next_page() argument
70 if (actor->pageaddr) direct_next_page()
71 kunmap_atomic(actor->pageaddr); direct_next_page()
73 return actor->pageaddr = actor->next_page == actor->pages ? NULL : direct_next_page()
74 kmap_atomic(actor->page[actor->next_page++]); direct_next_page()
77 static void direct_finish_page(struct squashfs_page_actor *actor) direct_finish_page() argument
79 if (actor->pageaddr) direct_finish_page()
80 kunmap_atomic(actor->pageaddr); direct_finish_page()
86 struct squashfs_page_actor *actor = kmalloc(sizeof(*actor), GFP_KERNEL); squashfs_page_actor_init_special() local
88 if (actor == NULL) squashfs_page_actor_init_special()
91 actor->length = length ? : pages * PAGE_CACHE_SIZE; squashfs_page_actor_init_special()
92 actor->page = page; squashfs_page_actor_init_special()
93 actor->pages = pages; squashfs_page_actor_init_special()
94 actor->next_page = 0; squashfs_page_actor_init_special()
95 actor->pageaddr = NULL; squashfs_page_actor_init_special()
96 actor->squashfs_first_page = direct_first_page; squashfs_page_actor_init_special()
97 actor->squashfs_next_page = direct_next_page; squashfs_page_actor_init_special()
98 actor->squashfs_finish_page = direct_finish_page; squashfs_page_actor_init_special()
99 return actor; squashfs_page_actor_init_special()
H A Dpage_actor.h22 struct squashfs_page_actor *actor = kmalloc(sizeof(*actor), GFP_KERNEL); squashfs_page_actor_init() local
24 if (actor == NULL) squashfs_page_actor_init()
27 actor->length = length ? : pages * PAGE_CACHE_SIZE; squashfs_page_actor_init()
28 actor->page = page; squashfs_page_actor_init()
29 actor->pages = pages; squashfs_page_actor_init()
30 actor->next_page = 0; squashfs_page_actor_init()
31 return actor; squashfs_page_actor_init()
34 static inline void *squashfs_first_page(struct squashfs_page_actor *actor) squashfs_first_page() argument
36 actor->next_page = 1; squashfs_first_page()
37 return actor->page[0]; squashfs_first_page()
40 static inline void *squashfs_next_page(struct squashfs_page_actor *actor) squashfs_next_page() argument
42 return actor->next_page == actor->pages ? NULL : squashfs_next_page()
43 actor->page[actor->next_page++]; squashfs_next_page()
46 static inline void squashfs_finish_page(struct squashfs_page_actor *actor) squashfs_finish_page() argument
68 static inline void *squashfs_first_page(struct squashfs_page_actor *actor) squashfs_first_page() argument
70 return actor->squashfs_first_page(actor); squashfs_first_page()
72 static inline void *squashfs_next_page(struct squashfs_page_actor *actor) squashfs_next_page() argument
74 return actor->squashfs_next_page(actor); squashfs_next_page()
76 static inline void squashfs_finish_page(struct squashfs_page_actor *actor) squashfs_finish_page() argument
78 actor->squashfs_finish_page(actor); squashfs_finish_page()
H A Ddecompressor.c98 struct squashfs_page_actor *actor = NULL; get_comp_opts() local
111 actor = squashfs_page_actor_init(&buffer, 1, 0); get_comp_opts()
112 if (actor == NULL) { get_comp_opts()
118 sizeof(struct squashfs_super_block), 0, NULL, actor); get_comp_opts()
129 kfree(actor); get_comp_opts()
H A Dfile_direct.c39 struct squashfs_page_actor *actor; squashfs_readpage_block() local
52 * Create a "page actor" which will kmap and kunmap the squashfs_readpage_block()
55 actor = squashfs_page_actor_init_special(page, pages, 0); squashfs_readpage_block()
56 if (actor == NULL) squashfs_readpage_block()
94 res = squashfs_read_data(inode->i_sb, block, bsize, NULL, actor); squashfs_readpage_block()
115 kfree(actor); squashfs_readpage_block()
134 kfree(actor); squashfs_readpage_block()
H A Dcache.c124 &entry->next_index, entry->actor); squashfs_cache_get()
223 kfree(cache->entry[i].actor); squashfs_cache_delete()
285 entry->actor = squashfs_page_actor_init(entry->data, squashfs_cache_init()
287 if (entry->actor == NULL) { squashfs_cache_init()
421 struct squashfs_page_actor *actor; squashfs_read_table() local
433 actor = squashfs_page_actor_init(data, pages, length); squashfs_read_table()
434 if (actor == NULL) { squashfs_read_table()
443 SQUASHFS_COMPRESSED_BIT_BLOCK, NULL, actor); squashfs_read_table()
446 kfree(actor); squashfs_read_table()
H A Dsquashfs_fs_sb.h53 struct squashfs_page_actor *actor; member in struct:squashfs_cache_entry
/linux-4.1.27/include/linux/
H A Dsplice.h31 * actor() private data
H A Dkey-type.h22 * - passed to the request_key actor if supplied
H A Dfs.h1555 const filldir_t actor; member in struct:dir_context
2969 return ctx->actor(ctx, name, namelen, ctx->pos, ino, type) == 0; dir_emit()
2973 return ctx->actor(ctx, ".", 1, ctx->pos, dir_emit_dot()
2978 return ctx->actor(ctx, "..", 2, ctx->pos, dir_emit_dotdot()
/linux-4.1.27/fs/
H A Dreaddir.c116 .ctx.actor = fillonedir, SYSCALL_DEFINE3()
202 .ctx.actor = filldir, SYSCALL_DEFINE3()
283 .ctx.actor = filldir64, SYSCALL_DEFINE3()
H A Dsplice.c737 * @sd: information to @actor
738 * @actor: handler that splices the data
741 * This function loops over the pipe and calls @actor to do the
755 splice_actor *actor) splice_from_pipe_feed()
774 ret = actor(pipe, buf, sd); splice_from_pipe_feed()
870 * __splice_from_pipe - splice data from a pipe to given actor
872 * @sd: information to @actor
873 * @actor: handler that splices the data
877 * @actor to do the actual moving of a single struct pipe_buffer to
883 splice_actor *actor) __splice_from_pipe()
891 ret = splice_from_pipe_feed(pipe, sd, actor); __splice_from_pipe()
906 * @actor: handler that splices the data
915 splice_actor *actor) splice_from_pipe()
926 ret = __splice_from_pipe(pipe, &sd, actor); splice_from_pipe()
1150 * @sd: actor information on where to splice to
1151 * @actor: handles the data splicing
1161 splice_direct_actor *actor) splice_direct_to_actor()
1237 ret = actor(pipe, sd); splice_direct_to_actor()
754 splice_from_pipe_feed(struct pipe_inode_info *pipe, struct splice_desc *sd, splice_actor *actor) splice_from_pipe_feed() argument
882 __splice_from_pipe(struct pipe_inode_info *pipe, struct splice_desc *sd, splice_actor *actor) __splice_from_pipe() argument
913 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
1160 splice_direct_to_actor(struct file *in, struct splice_desc *sd, splice_direct_actor *actor) splice_direct_to_actor() argument
H A Dcompat.c890 .ctx.actor = compat_fillonedir, COMPAT_SYSCALL_DEFINE3()
970 .ctx.actor = compat_filldir, COMPAT_SYSCALL_DEFINE3()
1057 .ctx.actor = compat_filldir64, COMPAT_SYSCALL_DEFINE3()
/linux-4.1.27/fs/ntfs/
H A Ddir.c1011 * @actor: what to feed the entries to
1027 u8 *name, struct dir_context *actor) ntfs_filldir()
1069 "0x%lx, DT_%s.", name, name_len, actor->pos, mref, ntfs_filldir()
1071 if (!dir_emit(actor, name, name_len, mref, dt_type)) ntfs_filldir()
1099 static int ntfs_readdir(struct file *file, struct dir_context *actor) ntfs_readdir() argument
1119 vdir->i_ino, actor->pos); ntfs_readdir()
1123 if (actor->pos >= i_size + vol->mft_record_size) ntfs_readdir()
1126 if (!dir_emit_dots(file, actor)) ntfs_readdir()
1140 if (actor->pos >= vol->mft_record_size) ntfs_readdir()
1155 ir_pos = (s64)actor->pos; ntfs_readdir()
1211 actor->pos = (u8*)ie - (u8*)ir; ntfs_readdir()
1213 rc = ntfs_filldir(vol, ndir, NULL, ie, name, actor); ntfs_readdir()
1226 actor->pos = vol->mft_record_size; ntfs_readdir()
1231 ia_pos = (s64)actor->pos - vol->mft_record_size; ntfs_readdir()
1393 actor->pos = (u8*)ie - (u8*)ia + ntfs_readdir()
1403 rc = ntfs_filldir(vol, ndir, ia_page, ie, name, actor); ntfs_readdir()
1422 actor->pos = i_size + vol->mft_record_size; ntfs_readdir()
1025 ntfs_filldir(ntfs_volume *vol, ntfs_inode *ndir, struct page *ia_page, INDEX_ENTRY *ie, u8 *name, struct dir_context *actor) ntfs_filldir() argument
/linux-4.1.27/fs/9p/
H A Dvfs_dir.c106 * @ctx: actor we feed the entries to
173 * @ctx: actor we feed the entries to
/linux-4.1.27/security/keys/
H A Drequest_key.c208 request_key_actor_t actor; construct_key() local
230 actor = call_sbin_request_key; construct_key()
232 actor = key->type->request_key; construct_key()
234 ret = actor(cons, "create", aux); construct_key()
236 /* check that the actor called complete_request_key() prior to construct_key()
/linux-4.1.27/arch/powerpc/platforms/powermac/
H A Dpfunc_core.c810 struct device_node *actor = of_node_get(target); __pmf_find_function() local
830 * Ok, now try to find the actor. If we can't find it, we fail, __pmf_find_function()
833 of_node_put(actor); __pmf_find_function()
834 actor = of_find_node_by_phandle(ph); __pmf_find_function()
835 if (actor == NULL) __pmf_find_function()
838 dev = pmf_find_device(actor); __pmf_find_function()
856 of_node_put(actor); __pmf_find_function()
/linux-4.1.27/net/core/
H A Dethtool.c1413 u32 cmd, u32 (*actor)(struct net_device *)) ethtool_get_value()
1417 if (!actor) ethtool_get_value()
1420 edata.data = actor(dev); ethtool_get_value()
1428 void (*actor)(struct net_device *, u32)) ethtool_set_value_void()
1432 if (!actor) ethtool_set_value_void()
1438 actor(dev, edata.data); ethtool_set_value_void()
1443 int (*actor)(struct net_device *, u32)) ethtool_set_value()
1447 if (!actor) ethtool_set_value()
1453 return actor(dev, edata.data); ethtool_set_value()
/linux-4.1.27/fs/gfs2/
H A Dexport.c95 .ctx.actor = get_name_filldir, gfs2_get_name()
H A Ddir.c1221 * Returns: errno, >0 if the actor tells you to stop
1431 * @ctx: actor to feed the entries to
/linux-4.1.27/fs/ecryptfs/
H A Dfile.c102 * @ctx: The actor to feed the entries to
110 .ctx.actor = ecryptfs_filldir, ecryptfs_readdir()
/linux-4.1.27/drivers/net/bonding/
H A Dbond_procfs.c198 seq_puts(seq, "details actor lacp pdu:\n"); bond_info_show_slave()
H A Dbond_3ad.c405 * values for the actor. Matched is set to TRUE if all of these parameters
413 * the actor's actor_oper_port_state.lacp_activity and the PDU's
733 pr_debug("update lacpdu: %s, actor port state %x\n", __update_lacpdu_from_port()
1960 /* actor system is the bond's system */ bond_3ad_bind_slave()
H A Dbond_sysfs.c544 /* Show current 802.3ad actor key. */ bonding_show_ad_actor_key()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
H A Dllite_nfs.c238 .ctx.actor = ll_nfs_get_name_filldir, ll_get_name()
H A Ddir.c547 * so the parameter 'name' for 'ctx->actor()' ll_dir_read()
/linux-4.1.27/include/net/
H A Dbond_3ad.h119 u8 tlv_type_actor_info; /* = actor information(type/length/value) */
/linux-4.1.27/include/linux/sunrpc/
H A Dxdr.h231 extern int xdr_process_buf(struct xdr_buf *buf, unsigned int offset, unsigned int len, int (*actor)(struct scatterlist *, void *), void *data);
/linux-4.1.27/drivers/staging/wlan-ng/
H A Dprism2sta.c766 /* Compatibility range, primary f/w actor, CFI supplier */ prism2sta_getcardinfo()
775 /* get all the Compatibility range, primary f/w actor, CFI supplier prism2sta_getcardinfo()
789 /* Compatibility range, sta f/w actor, CFI supplier */ prism2sta_getcardinfo()
798 /* get all the Compatibility range, station f/w actor, CFI supplier prism2sta_getcardinfo()
812 /* Compatibility range, sta f/w actor, MFI supplier */ prism2sta_getcardinfo()
821 /* get all the Compatibility range, station f/w actor, MFI supplier prism2sta_getcardinfo()
/linux-4.1.27/net/sunrpc/
H A Dxdr.c1451 int (*actor)(struct scatterlist *, void *), void *data) xdr_process_buf()
1466 ret = actor(sg, data); xdr_process_buf()
1489 ret = actor(sg, data); xdr_process_buf()
1506 ret = actor(sg, data); xdr_process_buf()
/linux-4.1.27/fs/overlayfs/
H A Dreaddir.c289 .ctx.actor = ovl_fill_merge, ovl_dir_read_merged()
/linux-4.1.27/fs/exportfs/
H A Dexpfs.c282 .ctx.actor = filldir_one, get_name()
/linux-4.1.27/fs/reiserfs/
H A Dxattr.c241 .ctx.actor = fill_with_dentries, reiserfs_for_each_xattr()
872 .ctx.actor = listxattr_filler, reiserfs_listxattr()
H A Dinode.c1621 * reiserfs_find_actor() - "find actor" reiserfs supplies to iget5_locked().
/linux-4.1.27/fs/afs/
H A Ddir.c305 ctx->actor == afs_lookup_filldir ? afs_dir_iterate_block()
431 .ctx.actor = afs_lookup_filldir, afs_do_lookup()
/linux-4.1.27/fs/hppfs/
H A Dhppfs.c569 .ctx.actor = hppfs_filldir, hppfs_readdir()
/linux-4.1.27/drivers/ata/
H A Dlibata-scsi.c1813 * The xlat_func argument (actor) returns 0 if ready to execute
1941 * @actor: Callback hook for desired SCSI command simulator
1954 unsigned int (*actor)(struct ata_scsi_args *args, u8 *rbuf)) ata_scsi_rbuf_fill()
1962 rc = actor(args, rbuf); ata_scsi_rbuf_fill()
/linux-4.1.27/fs/nfsd/
H A Dnfs4recover.c272 .ctx.actor = nfsd4_build_namelist, nfsd4_list_rec_dir()
H A Dvfs.c1878 .ctx.actor = nfsd_buffered_filldir, nfsd_buffered_readdir()
/linux-4.1.27/arch/alpha/kernel/
H A Dosf_sys.c152 .ctx.actor = osf_filldir, SYSCALL_DEFINE4()
/linux-4.1.27/fs/fat/
H A Ddir.c759 .ctx.actor = filldir, fat_ioctl_readdir()
/linux-4.1.27/fs/ocfs2/
H A Dinode.c224 mlog_bug_on_msg(!inode, "No inode in find actor!\n"); ocfs2_find_actor()
H A Djournal.c2041 .ctx.actor = ocfs2_orphan_filldir, ocfs2_queue_orphans()
H A Ddir.c2155 .ctx.actor = ocfs2_empty_dir_filldir, ocfs2_empty_dir()
/linux-4.1.27/security/selinux/
H A Dhooks.c1489 static int cred_has_perm(const struct cred *actor, cred_has_perm() argument
1493 u32 asid = cred_sid(actor), tsid = cred_sid(target); cred_has_perm()
1501 * tsk1 is the actor and tsk2 is the target
1521 * current is the actor and tsk2 is the target

Completed in 953 milliseconds