Home
last modified time | relevance | path

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

/kernel/linux/linux-6.6/fs/fscache/
H A Dio.c17 * @cres: The cache resources for the operation being performed
23 bool fscache_wait_for_operation(struct netfs_cache_resources *cres, in fscache_wait_for_operation() argument
26 struct fscache_cookie *cookie = fscache_cres_cookie(cres); in fscache_wait_for_operation()
60 if (!cres->cache_priv2) in fscache_wait_for_operation()
61 return cookie->volume->cache->ops->begin_operation(cres, want_state); in fscache_wait_for_operation()
71 static int fscache_begin_operation(struct netfs_cache_resources *cres, in fscache_begin_operation() argument
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 in fscache_begin_operation()
145 __fscache_begin_read_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie) __fscache_begin_read_operation() argument
153 __fscache_begin_write_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie) __fscache_begin_write_operation() argument
256 struct netfs_cache_resources *cres; __fscache_write_to_cache() local
309 struct netfs_cache_resources cres; __fscache_resize_cookie() local
[all...]
/kernel/linux/linux-6.6/fs/smb/client/
H A Dfscache.c145 struct netfs_cache_resources cres; in fscache_fallback_read_page() local
151 memset(&cres, 0, sizeof(cres)); in fscache_fallback_read_page()
155 ret = fscache_begin_read_operation(&cres, cookie); in fscache_fallback_read_page()
159 ret = fscache_read(&cres, page_offset(page), &iter, NETFS_READ_HOLE_FAIL, in fscache_fallback_read_page()
161 fscache_end_operation(&cres); in fscache_fallback_read_page()
171 struct netfs_cache_resources cres; in fscache_fallback_write_pages() local
176 memset(&cres, 0, sizeof(cres)); in fscache_fallback_write_pages()
179 ret = fscache_begin_write_operation(&cres, cooki in fscache_fallback_write_pages()
226 struct netfs_cache_resources cres; __cifs_fscache_query_occupancy() local
[all...]
/kernel/linux/linux-6.6/fs/cachefiles/
H A Dio.c73 static int cachefiles_read(struct netfs_cache_resources *cres, in cachefiles_read() argument
87 if (!fscache_wait_for_operation(cres, FSCACHE_WANT_READ)) in cachefiles_read()
91 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()
197 static int cachefiles_query_occupancy(struct netfs_cache_resources *cres, in cachefiles_query_occupancy() argument
208 if (!fscache_wait_for_operation(cres, FSCACHE_WANT_READ)) in cachefiles_query_occupancy()
211 object = cachefiles_cres_object(cres); in cachefiles_query_occupancy()
212 file = cachefiles_cres_file(cres); in cachefiles_query_occupancy()
360 static int cachefiles_write(struct netfs_cache_resources *cres, in cachefiles_write() argument
379 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) cachefiles_do_prepare_read() argument
509 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) cachefiles_prepare_ondemand_read() argument
594 cachefiles_prepare_write(struct netfs_cache_resources *cres, loff_t *_start, size_t *_len, loff_t i_size, bool no_space_allocated_yet) cachefiles_prepare_write() argument
621 cachefiles_end_operation(struct netfs_cache_resources *cres) cachefiles_end_operation() argument
643 cachefiles_begin_operation(struct netfs_cache_resources *cres, enum fscache_want_state want_state) cachefiles_begin_operation() argument
[all...]
H A Dinternal.h137 struct file *cachefiles_cres_file(struct netfs_cache_resources *cres) in cachefiles_cres_file() argument
139 return cres->cache_priv2; in cachefiles_cres_file()
143 struct cachefiles_object *cachefiles_cres_object(struct netfs_cache_resources *cres) in cachefiles_cres_object() argument
145 return fscache_cres_cookie(cres)->cache_priv; in cachefiles_cres_object()
232 extern bool cachefiles_begin_operation(struct netfs_cache_resources *cres,
H A Dinterface.c273 static void cachefiles_resize_cookie(struct netfs_cache_resources *cres, in cachefiles_resize_cookie() argument
276 struct cachefiles_object *object = cachefiles_cres_object(cres); in cachefiles_resize_cookie()
280 struct file *file = cachefiles_cres_file(cres); in cachefiles_resize_cookie()
/kernel/linux/linux-6.6/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) in fscache_operation_valid() argument
428 return fscache_resources_valid(cres) ? cres->ops : NULL; in fscache_operation_valid()
433 * @cres: The cache resources for the read being performed
436 * Begin a read operation on behalf of the netfs helper library. @cres
443 * @cres
453 fscache_begin_read_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie) fscache_begin_read_operation() argument
467 fscache_end_operation(struct netfs_cache_resources *cres) fscache_end_operation() argument
507 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) fscache_read() argument
538 fscache_begin_write_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie) fscache_begin_write_operation() argument
566 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) fscache_write() argument
[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.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) in fscache_cres_cookie() argument
145 return cres->cache_priv; in fscache_cres_cookie()
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_cmdbuf_res.c203 struct vmw_cmdbuf_res *cres; in vmw_cmdbuf_res_add() local
206 cres = kzalloc(sizeof(*cres), GFP_KERNEL); in vmw_cmdbuf_res_add()
207 if (unlikely(!cres)) in vmw_cmdbuf_res_add()
210 cres->hash.key = user_key | (res_type << 24); in vmw_cmdbuf_res_add()
211 ret = drm_ht_insert_item(&man->resources, &cres->hash); in vmw_cmdbuf_res_add()
213 kfree(cres); in vmw_cmdbuf_res_add()
217 cres->state = VMW_CMDBUF_RES_ADD; in vmw_cmdbuf_res_add()
218 cres->res = vmw_resource_reference(res); in vmw_cmdbuf_res_add()
219 cres in vmw_cmdbuf_res_add()
[all...]
/kernel/linux/linux-6.6/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 in vmw_cmdbuf_res_add()
[all...]
/kernel/linux/linux-6.6/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 in netfs_cache_prepare_read()
[all...]
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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/fs/nfs/
H A Dnfs42proc.c251 struct nfs_commitres cres; in process_copy_commit() local
254 cres.verf = kzalloc(sizeof(struct nfs_writeverf), GFP_NOFS); in process_copy_commit()
255 if (!cres.verf) in process_copy_commit()
258 status = nfs4_proc_commit(dst, pos_dst, res->write_res.count, &cres); in process_copy_commit()
262 &cres.verf->verifier)) { in process_copy_commit()
267 kfree(cres.verf); in process_copy_commit()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
H A Dstm32_fmc2_nand.c1858 struct resource cres; in stm32_fmc2_nfc_probe() local
1878 ret = of_address_to_resource(nfc->cdev->of_node, 0, &cres); in stm32_fmc2_nfc_probe()
1882 nfc->io_phys_addr = cres.start; in stm32_fmc2_nfc_probe()
/kernel/linux/linux-6.6/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()

Completed in 19 milliseconds