Home
last modified time | relevance | path

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

/linux-6.15/fs/netfs/
H A Dfscache_io.c59 if (!cres->cache_priv2) in fscache_wait_for_operation()
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->debug_id = cookie->debug_id; in fscache_begin_operation()
86 cres->cache_priv = NULL; in fscache_begin_operation()
139 cres->cache_priv = NULL; in fscache_begin_operation()
140 cres->ops = NULL; in fscache_begin_operation()
239 cres = &wreq->cache_resources; in __fscache_write_to_cache()
244 ret = cres->ops->prepare_write(cres, &start, &len, len, i_size, false); in __fscache_write_to_cache()
[all …]
H A Dread_single.c64 struct netfs_cache_resources *cres = &rreq->cache_resources; in netfs_single_cache_prepare_read() local
66 if (!cres->ops) { in netfs_single_cache_prepare_read()
70 subreq->source = cres->ops->prepare_read(subreq, rreq->i_size); in netfs_single_cache_prepare_read()
78 struct netfs_cache_resources *cres = &rreq->cache_resources; in netfs_single_read_cache() local
82 cres->ops->read(cres, subreq->start, &subreq->io_iter, NETFS_READ_HOLE_FAIL, in netfs_single_read_cache()
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()
133 struct netfs_cache_resources *cres = &rreq->cache_resources; in netfs_cache_prepare_read() local
136 if (!cres->ops) in netfs_cache_prepare_read()
138 source = cres->ops->prepare_read(subreq, i_size); in netfs_cache_prepare_read()
151 struct netfs_cache_resources *cres = &rreq->cache_resources; in netfs_read_cache_to_pagecache() local
154 cres->ops->read(cres, subreq->start, &subreq->io_iter, NETFS_READ_HOLE_IGNORE, in netfs_read_cache_to_pagecache()
/linux-6.15/fs/cachefiles/
H A Dio.c93 object = cachefiles_cres_object(cres); in cachefiles_read()
94 file = cachefiles_cres_file(cres); in cachefiles_read()
213 object = cachefiles_cres_object(cres); in cachefiles_query_occupancy()
214 file = cachefiles_cres_file(cres); in cachefiles_query_occupancy()
375 cachefiles_cres_file(cres), in cachefiles_write()
417 file = cachefiles_cres_file(cres); in cachefiles_do_prepare_read()
613 if (!cachefiles_cres_file(cres)) { in cachefiles_prepare_write()
616 if (!cachefiles_cres_file(cres)) in cachefiles_prepare_write()
639 if (!cachefiles_cres_file(cres)) { in cachefiles_prepare_write_subreq()
642 if (!cachefiles_cres_file(cres)) in cachefiles_prepare_write_subreq()
[all …]
H A Dinternal.h155 struct file *cachefiles_cres_file(struct netfs_cache_resources *cres) in cachefiles_cres_file() argument
157 return cres->cache_priv2; in cachefiles_cres_file()
161 struct cachefiles_object *cachefiles_cres_object(struct netfs_cache_resources *cres) in cachefiles_cres_object() argument
163 return fscache_cres_cookie(cres)->cache_priv; in cachefiles_cres_object()
251 extern bool cachefiles_begin_operation(struct netfs_cache_resources *cres,
H A Dinterface.c278 static void cachefiles_resize_cookie(struct netfs_cache_resources *cres, in cachefiles_resize_cookie() argument
281 struct cachefiles_object *object = cachefiles_cres_object(cres); in cachefiles_resize_cookie()
285 struct file *file = cachefiles_cres_file(cres); in cachefiles_resize_cookie()
/linux-6.15/include/linux/
H A Dfscache.h26 #define fscache_resources_valid(cres) ((cres)->cache_priv) argument
33 #define fscache_resources_valid(cres) (false) argument
431 return fscache_resources_valid(cres) ? cres->ops : NULL; in fscache_operation_valid()
457 return __fscache_begin_read_operation(cres, cookie); in fscache_begin_read_operation()
469 const struct netfs_cache_ops *ops = fscache_operation_valid(cres); in fscache_end_operation()
472 ops->end_operation(cres); in fscache_end_operation()
507 int fscache_read(struct netfs_cache_resources *cres, in fscache_read() argument
514 const struct netfs_cache_ops *ops = fscache_operation_valid(cres); in fscache_read()
515 return ops->read(cres, start_pos, iter, read_hole, in fscache_read()
542 return __fscache_begin_write_operation(cres, cookie); in fscache_begin_write_operation()
[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.h333 void (*end_operation)(struct netfs_cache_resources *cres);
336 int (*read)(struct netfs_cache_resources *cres,
344 int (*write)(struct netfs_cache_resources *cres,
354 void (*expand_readahead)(struct netfs_cache_resources *cres,
375 int (*prepare_write)(struct netfs_cache_resources *cres,
382 enum netfs_io_source (*prepare_ondemand_read)(struct netfs_cache_resources *cres,
390 int (*query_occupancy)(struct netfs_cache_resources *cres,
/linux-6.15/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_cmdbuf_res.c201 struct vmw_cmdbuf_res *cres; in vmw_cmdbuf_res_add() local
203 cres = kzalloc(sizeof(*cres), GFP_KERNEL); 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-6.15/fs/erofs/
H A Dfscache.c29 struct netfs_cache_resources cres; member
49 if (io->cres.ops) in erofs_fscache_io_put()
50 io->cres.ops->end_operation(&io->cres); in erofs_fscache_io_put()
137 struct netfs_cache_resources *cres = &io->cres; in erofs_fscache_read_io_async() local
141 ret = fscache_begin_read_operation(cres, cookie); in erofs_fscache_read_io_async()
149 source = cres->ops->prepare_ondemand_read(cres, in erofs_fscache_read_io_async()
160 ret = fscache_read(cres, pstart, iter, NETFS_READ_HOLE_FAIL, in erofs_fscache_read_io_async()
/linux-6.15/fs/afs/
H A Ddir.c1280 struct netfs_cache_resources cres = {}; in afs_create_edit_dir() local
1287 fscache_begin_write_operation(&cres, afs_vnode_cache(dvnode)); in afs_create_edit_dir()
1294 fscache_end_operation(&cres); in afs_create_edit_dir()
1374 struct netfs_cache_resources cres = {}; in afs_rmdir_edit_dir() local
1381 fscache_begin_write_operation(&cres, afs_vnode_cache(dvnode)); in afs_rmdir_edit_dir()
1388 fscache_end_operation(&cres); in afs_rmdir_edit_dir()
1522 struct netfs_cache_resources cres = {}; in afs_unlink_edit_dir() local
1527 fscache_begin_write_operation(&cres, afs_vnode_cache(dvnode)); in afs_unlink_edit_dir()
1534 fscache_end_operation(&cres); in afs_unlink_edit_dir()
/linux-6.15/Documentation/filesystems/
H A Dnetfs_library.rst470 void (*end_operation)(struct netfs_cache_resources *cres);
472 void (*expand_readahead)(struct netfs_cache_resources *cres,
478 int (*read)(struct netfs_cache_resources *cres,
485 int (*prepare_write)(struct netfs_cache_resources *cres,
489 int (*write)(struct netfs_cache_resources *cres,
495 int (*query_occupancy)(struct netfs_cache_resources *cres,
/linux-6.15/fs/nfs/
H A Dnfs42proc.c309 struct nfs_commitres cres; in process_copy_commit() local
312 cres.verf = kzalloc(sizeof(struct nfs_writeverf), GFP_KERNEL); in process_copy_commit()
313 if (!cres.verf) in process_copy_commit()
316 status = nfs4_proc_commit(dst, pos_dst, res->write_res.count, &cres); in process_copy_commit()
320 &cres.verf->verifier)) { in process_copy_commit()
325 kfree(cres.verf); in process_copy_commit()
/linux-6.15/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-6.15/drivers/mtd/nand/raw/
H A Dstm32_fmc2_nand.c1912 struct resource cres; in stm32_fmc2_nfc_probe() local
1940 ret = of_address_to_resource(nfc->cdev->of_node, 0, &cres); in stm32_fmc2_nfc_probe()
1944 nfc->io_phys_addr = cres.start; in stm32_fmc2_nfc_probe()