Home
last modified time | relevance | path

Searched refs:cres (Results 1 – 16 of 16) sorted by relevance

/linux/fs/netfs/
H A Dfscache_io.c22 bool fscache_wait_for_operation(struct netfs_cache_resources *cres, in fscache_wait_for_operation() argument
25 struct fscache_cookie *cookie = fscache_cres_cookie(cres); in fscache_wait_for_operation()
59 if (!cres->cache_priv2) in fscache_wait_for_operation()
60 return cookie->volume->cache->ops->begin_operation(cres, want_state); in fscache_wait_for_operation()
70 static int fscache_begin_operation(struct netfs_cache_resources *cres, in fscache_begin_operation() argument
79 cres->ops = NULL; in fscache_begin_operation()
80 cres->cache_priv = cookie; in fscache_begin_operation()
81 cres->cache_priv2 = NULL; in fscache_begin_operation()
82 cres->cookie_id = cookie->debug_id; in fscache_begin_operation()
83 cres->inval_counter = cookie->inval_counter; in fscache_begin_operation()
[all …]
H A Dbuffered_read.c17 struct netfs_cache_resources *cres = &rreq->cache_resources; in netfs_cache_expand_readahead() local
19 if (cres->ops && cres->ops->expand_readahead) in netfs_cache_expand_readahead()
20 cres->ops->expand_readahead(cres, _start, _len, i_size); in netfs_cache_expand_readahead()
147 struct netfs_cache_resources *cres = &rreq->cache_resources; in netfs_read_cache_to_pagecache() local
150 cres->ops->read(cres, subreq->start, &subreq->io_iter, NETFS_READ_HOLE_IGNORE, in netfs_read_cache_to_pagecache()
156 struct netfs_cache_resources *cres = &rreq->cache_resources; in netfs_read_query_cache() local
161 if (!cres->ops) in netfs_read_query_cache()
164 return cres->ops->query_occupancy(cres, occ); in netfs_read_query_cache()
H A Dread_single.c64 struct netfs_cache_resources *cres = &rreq->cache_resources; in netfs_single_read_cache() local
68 cres->ops->read(cres, subreq->start, &subreq->io_iter, NETFS_READ_HOLE_FAIL, in netfs_single_read_cache()
H A Dwrite_collect.c198 struct netfs_cache_resources *cres = &wreq->cache_resources; in netfs_cache_collect() local
204 if (cres->ops && cres->ops->collect_write) in netfs_cache_collect()
205 cres->ops->collect_write(wreq, wreq->cache_coll_to, in netfs_cache_collect()
/linux/fs/cachefiles/
H A Dio.c77 static int cachefiles_read(struct netfs_cache_resources *cres, in cachefiles_read() argument
91 if (!fscache_wait_for_operation(cres, FSCACHE_WANT_READ)) in cachefiles_read()
95 object = cachefiles_cres_object(cres); in cachefiles_read()
96 file = cachefiles_cres_file(cres); in cachefiles_read()
148 ki->inval_counter = cres->inval_counter; in cachefiles_read()
201 static int cachefiles_query_occupancy(struct netfs_cache_resources *cres, in cachefiles_query_occupancy() argument
211 if (!fscache_wait_for_operation(cres, FSCACHE_WANT_READ)) in cachefiles_query_occupancy()
214 object = cachefiles_cres_object(cres); in cachefiles_query_occupancy()
215 file = cachefiles_cres_file(cres); in cachefiles_query_occupancy()
382 static int cachefiles_write(struct netfs_cache_resources *cres, in cachefiles_write() argument
[all …]
H A Dinternal.h112 struct file *cachefiles_cres_file(struct netfs_cache_resources *cres) in cachefiles_cres_file() argument
114 return cres->cache_priv2; in cachefiles_cres_file()
118 struct cachefiles_object *cachefiles_cres_object(struct netfs_cache_resources *cres) in cachefiles_cres_object() argument
120 return fscache_cres_cookie(cres)->cache_priv; in cachefiles_cres_object()
205 extern bool cachefiles_begin_operation(struct netfs_cache_resources *cres,
H A Dinterface.c206 static void cachefiles_resize_cookie(struct netfs_cache_resources *cres, in cachefiles_resize_cookie() argument
209 struct cachefiles_object *object = cachefiles_cres_object(cres); in cachefiles_resize_cookie()
213 struct file *file = cachefiles_cres_file(cres); in cachefiles_resize_cookie()
/linux/include/linux/
H A Dfscache.h26 #define fscache_resources_valid(cres) ((cres)->cache_priv) argument
33 #define fscache_resources_valid(cres) (false) argument
447 const struct netfs_cache_ops *fscache_operation_valid(const struct netfs_cache_resources *cres) in fscache_operation_valid() argument
449 return fscache_resources_valid(cres) ? cres->ops : NULL; in fscache_operation_valid()
471 int fscache_begin_read_operation(struct netfs_cache_resources *cres, in fscache_begin_read_operation() argument
475 return __fscache_begin_read_operation(cres, cookie); in fscache_begin_read_operation()
485 static inline void fscache_end_operation(struct netfs_cache_resources *cres) in fscache_end_operation() argument
487 const struct netfs_cache_ops *ops = fscache_operation_valid(cres); in fscache_end_operation()
490 ops->end_operation(cres); in fscache_end_operation()
522 int fscache_read(struct netfs_cache_resources *cres, in fscache_read() argument
[all …]
H A Dfscache-cache.h69 void (*resize_cookie)(struct netfs_cache_resources *cres,
76 bool (*begin_operation)(struct netfs_cache_resources *cres,
149 static inline struct fscache_cookie *fscache_cres_cookie(struct netfs_cache_resources *cres) in fscache_cres_cookie() argument
151 return cres->cache_priv; in fscache_cres_cookie()
H A Dnetfs.h347 void (*end_operation)(struct netfs_cache_resources *cres);
350 int (*read)(struct netfs_cache_resources *cres,
358 int (*write)(struct netfs_cache_resources *cres,
368 void (*expand_readahead)(struct netfs_cache_resources *cres,
388 int (*prepare_write)(struct netfs_cache_resources *cres,
395 int (*query_occupancy)(struct netfs_cache_resources *cres,
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_cmdbuf_res.c201 struct vmw_cmdbuf_res *cres; in vmw_cmdbuf_res_add() local
203 cres = kzalloc_obj(*cres); in vmw_cmdbuf_res_add()
204 if (unlikely(!cres)) in vmw_cmdbuf_res_add()
207 cres->hash.key = user_key | (res_type << 24); in vmw_cmdbuf_res_add()
208 hash_add_rcu(man->resources, &cres->hash.head, cres->hash.key); in vmw_cmdbuf_res_add()
210 cres->state = VMW_CMDBUF_RES_ADD; in vmw_cmdbuf_res_add()
211 cres->res = vmw_resource_reference(res); in vmw_cmdbuf_res_add()
212 cres->man = man; in vmw_cmdbuf_res_add()
213 list_add_tail(&cres->head, list); in vmw_cmdbuf_res_add()
/linux/fs/afs/
H A Ddir.c1276 struct netfs_cache_resources cres = {}; in afs_create_edit_dir() local
1283 fscache_begin_write_operation(&cres, afs_vnode_cache(dvnode)); in afs_create_edit_dir()
1290 fscache_end_operation(&cres); in afs_create_edit_dir()
1370 struct netfs_cache_resources cres = {}; in afs_rmdir_edit_dir() local
1377 fscache_begin_write_operation(&cres, afs_vnode_cache(dvnode)); in afs_rmdir_edit_dir()
1384 fscache_end_operation(&cres); in afs_rmdir_edit_dir()
1518 struct netfs_cache_resources cres = {}; in afs_unlink_edit_dir() local
1523 fscache_begin_write_operation(&cres, afs_vnode_cache(dvnode)); in afs_unlink_edit_dir()
1530 fscache_end_operation(&cres); in afs_unlink_edit_dir()
/linux/Documentation/filesystems/caching/
H A Dbackend-api.rst341 void (*resize_cookie)(struct netfs_cache_resources *cres,
386 bool (*begin_operation)(struct netfs_cache_resources *cres,
470 struct fscache_cookie *fscache_cres_cookie(struct netfs_cache_resources *cres)
H A Dnetfs-api.rst242 int fscache_begin_read_operation(struct netfs_cache_resources *cres,
244 int fscache_read(struct netfs_cache_resources *cres,
250 int fscache_write(struct netfs_cache_resources *cres,
/linux/drivers/mtd/nand/raw/
H A Dstm32_fmc2_nand.c1914 struct resource cres; in stm32_fmc2_nfc_probe() local
1942 ret = of_address_to_resource(nfc->cdev->of_node, 0, &cres); in stm32_fmc2_nfc_probe()
1946 nfc->io_phys_addr = cres.start; in stm32_fmc2_nfc_probe()
/linux/Documentation/filesystems/
H A Dnetfs_library.rst982 void (*end_operation)(struct netfs_cache_resources *cres);
983 void (*expand_readahead)(struct netfs_cache_resources *cres,
987 int (*read)(struct netfs_cache_resources *cres,