Searched refs:cres (Results 1 - 15 of 15) sorted by relevance

/linux-master/fs/netfs/
H A Dfscache_io.c17 * @cres: The cache resources for the operation being performed
23 bool fscache_wait_for_operation(struct netfs_cache_resources *cres, argument
26 struct fscache_cookie *cookie = fscache_cres_cookie(cres);
60 if (!cres->cache_priv2)
61 return cookie->volume->cache->ops->begin_operation(cres, want_state);
71 static int fscache_begin_operation(struct netfs_cache_resources *cres, argument
80 cres->ops = NULL;
81 cres->cache_priv = cookie;
82 cres->cache_priv2 = NULL;
83 cres
147 __fscache_begin_read_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie) argument
155 __fscache_begin_write_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie) argument
218 struct netfs_cache_resources *cres; local
271 struct netfs_cache_resources cres; local
[all...]
H A Dio.c43 struct netfs_cache_resources *cres = &rreq->cache_resources; local
46 cres->ops->read(cres, subreq->start, &subreq->io_iter, read_hole,
169 struct netfs_cache_resources *cres = &rreq->cache_resources; local
201 ret = cres->ops->prepare_write(cres, &subreq->start, &subreq->len,
216 cres->ops->write(cres, subreq->start, &iter,
554 struct netfs_cache_resources *cres = &rreq->cache_resources; local
556 if (cres
[all...]
H A Doutput.c248 struct netfs_cache_resources *cres = &wreq->cache_resources; local
252 cres->ops->write(cres, subreq->start, &subreq->io_iter,
283 struct netfs_cache_resources *cres = &wreq->cache_resources; local
297 ret = fscache_begin_write_operation(cres, cookie);
301 ret = cres->ops->prepare_write(cres, &start, &len, wreq->upper_len,
H A Dbuffered_read.c121 struct netfs_cache_resources *cres = &rreq->cache_resources; local
123 if (cres->ops && cres->ops->expand_readahead)
124 cres->ops->expand_readahead(cres, _start, _len, i_size);
/linux-master/fs/smb/client/
H A Dfscache.c179 struct netfs_cache_resources cres; local
185 memset(&cres, 0, sizeof(cres));
189 ret = fscache_begin_read_operation(&cres, cookie);
193 ret = fscache_read(&cres, page_offset(page), &iter, NETFS_READ_HOLE_FAIL,
195 fscache_end_operation(&cres);
205 struct netfs_cache_resources cres; local
210 memset(&cres, 0, sizeof(cres));
213 ret = fscache_begin_write_operation(&cres, cooki
260 struct netfs_cache_resources cres; local
[all...]
/linux-master/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_cmdbuf_res.c201 struct vmw_cmdbuf_res *cres; local
203 cres = kzalloc(sizeof(*cres), GFP_KERNEL);
204 if (unlikely(!cres))
207 cres->hash.key = user_key | (res_type << 24);
208 hash_add_rcu(man->resources, &cres->hash.head, cres->hash.key);
210 cres->state = VMW_CMDBUF_RES_ADD;
211 cres->res = vmw_resource_reference(res);
212 cres
[all...]
/linux-master/include/linux/
H A Dfscache.h26 #define fscache_resources_valid(cres) ((cres)->cache_priv)
33 #define fscache_resources_valid(cres) (false)
421 * @cres: The resources to check.
426 const struct netfs_cache_ops *fscache_operation_valid(const struct netfs_cache_resources *cres) argument
428 return fscache_resources_valid(cres) ? cres->ops : NULL;
433 * @cres: The cache resources for the read being performed
436 * Begin a read operation on behalf of the netfs helper library. @cres
440 * @cres
450 fscache_begin_read_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie) argument
464 fscache_end_operation(struct netfs_cache_resources *cres) argument
504 fscache_read(struct netfs_cache_resources *cres, loff_t start_pos, struct iov_iter *iter, enum netfs_read_from_hole read_hole, netfs_io_terminated_t term_func, void *term_func_priv) argument
535 fscache_begin_write_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie) argument
563 fscache_write(struct netfs_cache_resources *cres, loff_t start_pos, struct iov_iter *iter, netfs_io_terminated_t term_func, void *term_func_priv) argument
[all...]
H A Dfscache-cache.h68 void (*resize_cookie)(struct netfs_cache_resources *cres,
75 bool (*begin_operation)(struct netfs_cache_resources *cres,
143 static inline struct fscache_cookie *fscache_cres_cookie(struct netfs_cache_resources *cres) argument
145 return cres->cache_priv;
H A Dnetfs.h336 void (*end_operation)(struct netfs_cache_resources *cres);
339 int (*read)(struct netfs_cache_resources *cres,
347 int (*write)(struct netfs_cache_resources *cres,
354 void (*expand_readahead)(struct netfs_cache_resources *cres,
366 int (*prepare_write)(struct netfs_cache_resources *cres,
373 enum netfs_io_source (*prepare_ondemand_read)(struct netfs_cache_resources *cres,
381 int (*query_occupancy)(struct netfs_cache_resources *cres,
/linux-master/fs/cachefiles/
H A Dio.c73 static int cachefiles_read(struct netfs_cache_resources *cres, argument
87 if (!fscache_wait_for_operation(cres, FSCACHE_WANT_READ))
91 object = cachefiles_cres_object(cres);
92 file = cachefiles_cres_file(cres);
144 ki->inval_counter = cres->inval_counter;
197 static int cachefiles_query_occupancy(struct netfs_cache_resources *cres, argument
208 if (!fscache_wait_for_operation(cres, FSCACHE_WANT_READ))
211 object = cachefiles_cres_object(cres);
212 file = cachefiles_cres_file(cres);
359 static int cachefiles_write(struct netfs_cache_resources *cres, argument
378 cachefiles_do_prepare_read(struct netfs_cache_resources *cres, loff_t start, size_t *_len, loff_t i_size, unsigned long *_flags, ino_t netfs_ino) argument
508 cachefiles_prepare_ondemand_read(struct netfs_cache_resources *cres, loff_t start, size_t *_len, loff_t i_size, unsigned long *_flags, ino_t ino) argument
601 cachefiles_prepare_write(struct netfs_cache_resources *cres, loff_t *_start, size_t *_len, size_t upper_len, loff_t i_size, bool no_space_allocated_yet) argument
628 cachefiles_end_operation(struct netfs_cache_resources *cres) argument
650 cachefiles_begin_operation(struct netfs_cache_resources *cres, enum fscache_want_state want_state) argument
[all...]
H A Dinternal.h150 struct file *cachefiles_cres_file(struct netfs_cache_resources *cres) argument
152 return cres->cache_priv2;
156 struct cachefiles_object *cachefiles_cres_object(struct netfs_cache_resources *cres) argument
158 return fscache_cres_cookie(cres)->cache_priv;
245 extern bool cachefiles_begin_operation(struct netfs_cache_resources *cres,
H A Dinterface.c278 static void cachefiles_resize_cookie(struct netfs_cache_resources *cres, argument
281 struct cachefiles_object *object = cachefiles_cres_object(cres);
285 struct file *file = cachefiles_cres_file(cres);
/linux-master/fs/erofs/
H A Dfscache.c29 struct netfs_cache_resources cres; member in struct:erofs_fscache_io
49 if (io->cres.ops)
50 io->cres.ops->end_operation(&io->cres);
137 struct netfs_cache_resources *cres = &io->cres; local
141 ret = fscache_begin_read_operation(cres, cookie);
149 source = cres->ops->prepare_ondemand_read(cres,
160 ret = fscache_read(cres, pstar
[all...]
/linux-master/fs/nfs/
H A Dnfs42proc.c259 struct nfs_commitres cres; local
262 cres.verf = kzalloc(sizeof(struct nfs_writeverf), GFP_KERNEL);
263 if (!cres.verf)
266 status = nfs4_proc_commit(dst, pos_dst, res->write_res.count, &cres);
270 &cres.verf->verifier)) {
275 kfree(cres.verf);
/linux-master/drivers/mtd/nand/raw/
H A Dstm32_fmc2_nand.c1915 struct resource cres; local
1943 ret = of_address_to_resource(nfc->cdev->of_node, 0, &cres);
1947 nfc->io_phys_addr = cres.start;

Completed in 347 milliseconds