Home
last modified time | relevance | path

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

/linux/fs/cachefiles/
H A Dio.c75 static int cachefiles_read(struct netfs_cache_resources *cres, in cachefiles_read() argument
89 if (!fscache_wait_for_operation(cres, FSCACHE_WANT_READ)) in cachefiles_read()
93 object = cachefiles_cres_object(cres); in cachefiles_read()
94 file = cachefiles_cres_file(cres); in cachefiles_read()
146 ki->inval_counter = cres->inval_counter; in cachefiles_read()
199 static int cachefiles_query_occupancy(struct netfs_cache_resources *cres, in cachefiles_query_occupancy() argument
210 if (!fscache_wait_for_operation(cres, FSCACHE_WANT_READ)) in cachefiles_query_occupancy()
213 object = cachefiles_cres_object(cres); in cachefiles_query_occupancy()
214 file = cachefiles_cres_file(cres); in cachefiles_query_occupancy()
359 static int cachefiles_write(struct netfs_cache_resources *cres, in cachefiles_write() argument
[all …]
/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(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/fs/netfs/
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()
134 struct netfs_cache_resources *cres = &rreq->cache_resources; in netfs_cache_prepare_read() local
137 if (!cres->ops) in netfs_cache_prepare_read()
139 source = cres->ops->prepare_read(subreq, i_size); in netfs_cache_prepare_read()
152 struct netfs_cache_resources *cres = &rreq->cache_resources; in netfs_read_cache_to_pagecache() local
155 cres->ops->read(cres, subreq->start, &subreq->io_iter, NETFS_READ_HOLE_IGNORE, in netfs_read_cache_to_pagecache()
/linux/include/linux/
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.h329 void (*end_operation)(struct netfs_cache_resources *cres);
332 int (*read)(struct netfs_cache_resources *cres,
340 int (*write)(struct netfs_cache_resources *cres,
350 void (*expand_readahead)(struct netfs_cache_resources *cres,
371 int (*prepare_write)(struct netfs_cache_resources *cres,
378 enum netfs_io_source (*prepare_ondemand_read)(struct netfs_cache_resources *cres,
386 int (*query_occupancy)(struct netfs_cache_resources *cres,
/linux/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/fs/nfs/
H A Dnfs42proc.c343 struct nfs_commitres cres; in process_copy_commit() local
346 cres.verf = kzalloc(sizeof(struct nfs_writeverf), GFP_KERNEL); in process_copy_commit()
347 if (!cres.verf) in process_copy_commit()
350 status = nfs4_proc_commit(dst, pos_dst, res->write_res.count, &cres); in process_copy_commit()
354 &cres.verf->verifier)) { in process_copy_commit()
359 kfree(cres.verf); in process_copy_commit()
/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()