Home
last modified time | relevance | path

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

/openbmc/linux/fs/fscache/
H A Dio.c60 if (!cres->cache_priv2) in fscache_wait_for_operation()
80 cres->ops = NULL; in fscache_begin_operation()
81 cres->cache_priv = cookie; in fscache_begin_operation()
82 cres->cache_priv2 = NULL; in fscache_begin_operation()
83 cres->debug_id = cookie->debug_id; in fscache_begin_operation()
138 cres->cache_priv = NULL; in fscache_begin_operation()
139 cres->ops = NULL; in fscache_begin_operation()
275 cres = &wreq->cache_resources; in __fscache_write_to_cache()
280 ret = cres->ops->prepare_write(cres, &start, &len, i_size, false); in __fscache_write_to_cache()
309 struct netfs_cache_resources cres; in __fscache_resize_cookie() local
[all …]
/openbmc/linux/fs/cachefiles/
H A Dio.c91 object = cachefiles_cres_object(cres); in cachefiles_read()
92 file = cachefiles_cres_file(cres); in cachefiles_read()
144 ki->inval_counter = cres->inval_counter; in cachefiles_read()
211 object = cachefiles_cres_object(cres); in cachefiles_query_occupancy()
212 file = cachefiles_cres_file(cres); in cachefiles_query_occupancy()
373 cachefiles_cres_file(cres), in cachefiles_write()
415 file = cachefiles_cres_file(cres); in cachefiles_do_prepare_read()
421 object = cachefiles_cres_object(cres); in cachefiles_do_prepare_read()
603 if (!cachefiles_cres_file(cres)) { in cachefiles_prepare_write()
606 if (!cachefiles_cres_file(cres)) in cachefiles_prepare_write()
[all …]
H A Dinternal.h154 struct file *cachefiles_cres_file(struct netfs_cache_resources *cres) in cachefiles_cres_file() argument
156 return cres->cache_priv2; in cachefiles_cres_file()
160 struct cachefiles_object *cachefiles_cres_object(struct netfs_cache_resources *cres) in cachefiles_cres_object() argument
162 return fscache_cres_cookie(cres)->cache_priv; in cachefiles_cres_object()
250 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()
/openbmc/linux/fs/smb/client/
H A Dfscache.c179 struct netfs_cache_resources cres; in fscache_fallback_read_page() local
185 memset(&cres, 0, sizeof(cres)); in fscache_fallback_read_page()
189 ret = fscache_begin_read_operation(&cres, cookie); in fscache_fallback_read_page()
195 fscache_end_operation(&cres); in fscache_fallback_read_page()
205 struct netfs_cache_resources cres; in fscache_fallback_write_pages() local
210 memset(&cres, 0, sizeof(cres)); in fscache_fallback_write_pages()
217 ret = cres.ops->prepare_write(&cres, &start, &len, i_size_read(inode), in fscache_fallback_write_pages()
221 fscache_end_operation(&cres); in fscache_fallback_write_pages()
260 struct netfs_cache_resources cres; in __cifs_fscache_query_occupancy() local
272 ret = cres.ops->query_occupancy(&cres, start, len, PAGE_SIZE, in __cifs_fscache_query_occupancy()
[all …]
/openbmc/linux/include/linux/
H A Dfscache.h26 #define fscache_resources_valid(cres) ((cres)->cache_priv) argument
33 #define fscache_resources_valid(cres) (false) argument
428 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 Dnetfs.h237 void (*end_operation)(struct netfs_cache_resources *cres);
240 int (*read)(struct netfs_cache_resources *cres,
248 int (*write)(struct netfs_cache_resources *cres,
255 void (*expand_readahead)(struct netfs_cache_resources *cres,
267 int (*prepare_write)(struct netfs_cache_resources *cres,
274 enum netfs_io_source (*prepare_ondemand_read)(struct netfs_cache_resources *cres,
282 int (*query_occupancy)(struct netfs_cache_resources *cres,
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()
/openbmc/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()
/openbmc/linux/fs/netfs/
H A Dio.c48 struct netfs_cache_resources *cres = &rreq->cache_resources; in netfs_read_from_cache() local
56 cres->ops->read(cres, subreq->start, &iter, read_hole, in netfs_read_from_cache()
171 struct netfs_cache_resources *cres = &rreq->cache_resources; in netfs_rreq_do_write_to_cache() local
203 ret = cres->ops->prepare_write(cres, &subreq->start, &subreq->len, in netfs_rreq_do_write_to_cache()
218 cres->ops->write(cres, subreq->start, &iter, in netfs_rreq_do_write_to_cache()
490 struct netfs_cache_resources *cres = &rreq->cache_resources; in netfs_cache_prepare_read() local
492 if (cres->ops) in netfs_cache_prepare_read()
493 return cres->ops->prepare_read(subreq, i_size); in netfs_cache_prepare_read()
H A Dbuffered_read.c110 struct netfs_cache_resources *cres = &rreq->cache_resources; in netfs_cache_expand_readahead() local
112 if (cres->ops && cres->ops->expand_readahead) in netfs_cache_expand_readahead()
113 cres->ops->expand_readahead(cres, _start, _len, i_size); in netfs_cache_expand_readahead()
/openbmc/linux/fs/erofs/
H A Dfscache.c133 struct netfs_cache_resources *cres = &req->cache_resources; in erofs_fscache_read_folios_async() local
141 ret = fscache_begin_read_operation(cres, cookie); in erofs_fscache_read_folios_async()
150 source = cres->ops->prepare_ondemand_read(cres, in erofs_fscache_read_folios_async()
163 ret = fscache_read(cres, sstart, &iter, NETFS_READ_HOLE_FAIL, in erofs_fscache_read_folios_async()
/openbmc/linux/fs/nfs/
H A Dnfs42proc.c259 struct nfs_commitres cres; in process_copy_commit() local
262 cres.verf = kzalloc(sizeof(struct nfs_writeverf), GFP_KERNEL); in process_copy_commit()
263 if (!cres.verf) in process_copy_commit()
266 status = nfs4_proc_commit(dst, pos_dst, res->write_res.count, &cres); in process_copy_commit()
270 &cres.verf->verifier)) { in process_copy_commit()
275 kfree(cres.verf); in process_copy_commit()
/openbmc/linux/Documentation/filesystems/
H A Dnetfs_library.rst485 void (*end_operation)(struct netfs_cache_resources *cres);
487 void (*expand_readahead)(struct netfs_cache_resources *cres,
493 int (*read)(struct netfs_cache_resources *cres,
500 int (*prepare_write)(struct netfs_cache_resources *cres,
504 int (*write)(struct netfs_cache_resources *cres,
510 int (*query_occupancy)(struct netfs_cache_resources *cres,
/openbmc/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,
/openbmc/linux/drivers/mtd/nand/raw/
H A Dstm32_fmc2_nand.c1887 struct resource cres; in stm32_fmc2_nfc_probe() local
1907 ret = of_address_to_resource(nfc->cdev->of_node, 0, &cres); in stm32_fmc2_nfc_probe()
1911 nfc->io_phys_addr = cres.start; in stm32_fmc2_nfc_probe()