| /linux/fs/btrfs/ |
| H A D | extent-io-tree.h | 167 struct extent_state **cached_state); 171 struct extent_state *cached_state); 174 struct extent_state **cached_state); 198 u32 bits, struct extent_state **cached_state); 210 struct extent_state **cached_state); 214 struct extent_state **cached_state); 221 struct extent_state **cached_state);
|
| H A D | file.c | 901 struct extent_state **cached_state) in lock_and_cleanup_extent_if_need() argument 916 last_pos, cached_state)) { in lock_and_cleanup_extent_if_need() 923 cached_state); in lock_and_cleanup_extent_if_need() 932 cached_state); in lock_and_cleanup_extent_if_need() 982 struct extent_state *cached_state = NULL; in btrfs_check_nocow_lock() local 999 &cached_state)) { in btrfs_check_nocow_lock() 1005 &cached_state); in btrfs_check_nocow_lock() 1026 btrfs_unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in btrfs_check_nocow_lock() 1204 struct extent_state *cached_state = NULL; in copy_one_range() local 1268 &cached_state); in copy_one_range() 1859 struct extent_state *cached_state = NULL; btrfs_page_mkwrite() local 2274 btrfs_punch_hole_lock_range(struct inode * inode,const u64 lockstart,const u64 lockend,struct extent_state ** cached_state) btrfs_punch_hole_lock_range() argument 2656 struct extent_state *cached_state = NULL; btrfs_punch_hole() local 3054 struct extent_state *cached_state = NULL; btrfs_zero_range() local 3099 struct extent_state *cached_state = NULL; btrfs_fallocate() local 3297 find_delalloc_subrange(struct btrfs_inode * inode,u64 start,u64 end,struct extent_state ** cached_state,bool * search_io_tree,u64 * delalloc_start_ret,u64 * delalloc_end_ret) find_delalloc_subrange() argument 3421 btrfs_find_delalloc_in_range(struct btrfs_inode * inode,u64 start,u64 end,struct extent_state ** cached_state,u64 * delalloc_start_ret,u64 * delalloc_end_ret) btrfs_find_delalloc_in_range() argument 3481 find_desired_extent_in_hole(struct btrfs_inode * inode,int whence,struct extent_state ** cached_state,u64 start,u64 end,u64 * start_ret) find_desired_extent_in_hole() argument 3536 struct extent_state *cached_state = NULL; find_desired_extent() local [all...] |
| H A D | defrag.c | 851 struct extent_state *cached_state = NULL; in defrag_prepare_one_folio() local 892 btrfs_lock_extent(&inode->io_tree, lock_start, lock_end, &cached_state); in defrag_prepare_one_folio() 894 btrfs_unlock_extent(&inode->io_tree, lock_start, lock_end, &cached_state); in defrag_prepare_one_folio() 1153 struct extent_state **cached_state) in defrag_one_locked_target() argument 1166 EXTENT_DEFRAG, cached_state); in defrag_one_locked_target() 1168 EXTENT_DELALLOC | EXTENT_DEFRAG, cached_state); in defrag_one_locked_target() 1195 struct extent_state *cached_state = NULL; in defrag_one_range() local 1232 btrfs_lock_extent(&inode->io_tree, folio_pos(folios[0]), cur - 1, &cached_state); in defrag_one_range() 1248 &cached_state); in defrag_one_range() 1258 btrfs_unlock_extent(&inode->io_tree, folio_pos(folios[0]), cur - 1, &cached_state); in defrag_one_range()
|
| H A D | extent_io.c | 382 struct extent_state *cached_state = NULL; in find_lock_delalloc_range() 404 max_bytes, &cached_state); in find_lock_delalloc_range() 410 btrfs_free_extent_state(cached_state); in find_lock_delalloc_range() 437 btrfs_free_extent_state(cached_state); in find_lock_delalloc_range() 438 cached_state = NULL; in find_lock_delalloc_range() 449 btrfs_lock_extent(tree, delalloc_start, delalloc_end, &cached_state); in find_lock_delalloc_range() 453 EXTENT_DELALLOC, cached_state); in find_lock_delalloc_range() 455 btrfs_unlock_extent(tree, delalloc_start, delalloc_end, &cached_state); in find_lock_delalloc_range() 1287 struct extent_state **cached_state) 1291 /* Caller must provide a valid @cached_state 381 struct extent_state *cached_state = NULL; find_lock_delalloc_range() local 1293 lock_extents_for_read(struct btrfs_inode * inode,u64 start,u64 end,struct extent_state ** cached_state) lock_extents_for_read() argument 1342 struct extent_state *cached_state = NULL; btrfs_read_folio() local 2731 struct extent_state *cached_state = NULL; btrfs_readahead() local 2756 struct extent_state *cached_state = NULL; extent_invalidate_folio() local 2788 struct extent_state *cached_state = NULL; try_release_extent_state() local [all...] |
| H A D | reflink.c | 681 struct extent_state *cached_state = NULL; in btrfs_extent_same() 692 btrfs_lock_extent(&dst->io_tree, dst_loff, end, &cached_state); in btrfs_extent_same() 695 btrfs_unlock_extent(&dst->io_tree, dst_loff, end, &cached_state); in btrfs_extent_same() 748 struct extent_state *cached_state = NULL; in btrfs_clone_files() 794 btrfs_lock_extent(&BTRFS_I(inode)->io_tree, destoff, end, &cached_state); in btrfs_remap_file_range_prep() 796 btrfs_unlock_extent(&BTRFS_I(inode)->io_tree, destoff, end, &cached_state); in btrfs_remap_file_range_prep() 636 struct extent_state *cached_state = NULL; btrfs_extent_same_range() local 703 struct extent_state *cached_state = NULL; btrfs_clone_files() local
|
| H A D | ordered-data.h | 223 struct extent_state **cached_state); 225 struct extent_state **cached_state);
|
| H A D | inode.c | 1707 struct extent_state *cached_state = NULL; in run_delalloc_compressed() 1744 btrfs_lock_extent(io_tree, start, end, &cached_state); in run_delalloc_compressed() 1761 &cached_state); in run_delalloc_compressed() 1763 btrfs_unlock_extent(io_tree, start, end, &cached_state); in run_delalloc_compressed() 2054 struct extent_state *cached_state = NULL; in nocow_one_range() 2191 ret = nocow_one_range(inode, locked_folio, &cached_state, in run_delalloc_nocow() 2773 struct extent_state **cached_state) in add_pending_csums() 2799 EXTENT_DELALLOC_NEW, cached_state); in btrfs_find_new_delalloc_bytes() 2811 struct extent_state **cached_state) in btrfs_find_new_delalloc_bytes() 2827 cached_state); in btrfs_set_extent_delalloc() 1817 struct extent_state *cached_state = NULL; fallback_to_cow() local 2164 struct extent_state *cached_state = NULL; run_delalloc_nocow() local 2781 btrfs_find_new_delalloc_bytes(struct btrfs_inode * inode,const u64 start,const u64 len,struct extent_state ** cached_state) btrfs_find_new_delalloc_bytes() argument 2819 btrfs_set_extent_delalloc(struct btrfs_inode * inode,u64 start,u64 end,unsigned int extra_bits,struct extent_state ** cached_state) btrfs_set_extent_delalloc() argument 2856 struct extent_state *cached_state = NULL; btrfs_writepage_fixup_worker() local 3198 struct extent_state *cached_state = NULL; btrfs_finish_one_ordered() local 5056 struct extent_state *cached_state = NULL; btrfs_truncate_block() local 5303 struct extent_state *cached_state = NULL; btrfs_cont_expand() local 5553 struct extent_state *cached_state = NULL; evict_inode_truncate_pages() local 7678 struct extent_state *cached_state = NULL; btrfs_invalidate_folio() local 7923 struct extent_state *cached_state = NULL; btrfs_truncate() local 9458 btrfs_encoded_read_inline(struct kiocb * iocb,struct iov_iter * iter,u64 start,u64 lockend,struct extent_state ** cached_state,u64 extent_start,size_t count,struct btrfs_ioctl_encoded_io_args * encoded,bool * unlocked) btrfs_encoded_read_inline() argument 9646 btrfs_encoded_read_regular(struct kiocb * iocb,struct iov_iter * iter,u64 start,u64 lockend,struct extent_state ** cached_state,u64 disk_bytenr,u64 disk_io_size,size_t count,bool compressed,bool * unlocked) btrfs_encoded_read_regular() argument 9710 btrfs_encoded_read(struct kiocb * iocb,struct iov_iter * iter,struct btrfs_ioctl_encoded_io_args * encoded,struct extent_state ** cached_state,u64 * disk_bytenr,u64 * disk_io_size) btrfs_encoded_read() argument 9884 struct extent_state *cached_state = NULL; btrfs_do_encoded_write() local 10269 struct extent_state *cached_state = NULL; btrfs_swap_activate() local [all...] |
| H A D | transaction.c | 1155 struct extent_state *cached_state = NULL; in btrfs_write_marked_extents() 1160 mark, &cached_state)) { in btrfs_write_marked_extents() 1165 mark, &cached_state); in btrfs_write_marked_extents() 1187 btrfs_free_extent_state(cached_state); in __btrfs_wait_marked_extents() 1190 cached_state = NULL; in __btrfs_wait_marked_extents() 1206 struct extent_state *cached_state = NULL; in __btrfs_wait_marked_extents() 1212 EXTENT_NEED_WAIT, &cached_state)) { in __btrfs_wait_marked_extents() 1222 EXTENT_NEED_WAIT, &cached_state); in btrfs_wait_extents() 1227 btrfs_free_extent_state(cached_state); in btrfs_wait_extents() 1230 cached_state in btrfs_wait_extents() 1137 struct extent_state *cached_state = NULL; btrfs_write_marked_extents() local 1188 struct extent_state *cached_state = NULL; __btrfs_wait_marked_extents() local [all...] |
| H A D | file.h | 46 struct extent_state **cached_state,
|
| H A D | fiemap.c | 635 struct extent_state *cached_state = NULL; in extent_fiemap() local 663 btrfs_lock_extent(&inode->io_tree, range_start, range_end, &cached_state); in extent_fiemap() 843 btrfs_unlock_extent(&inode->io_tree, range_start, range_end, &cached_state); in extent_fiemap()
|
| H A D | relocation.c | 916 struct extent_state *cached_state = NULL; in replace_file_extents() local 928 end, &cached_state); in replace_file_extents() 936 &cached_state); in replace_file_extents() 1342 struct extent_state *cached_state = NULL; in invalidate_extent_cache() local 1395 btrfs_lock_extent(&inode->io_tree, start, end, &cached_state); in invalidate_extent_cache() 1397 btrfs_unlock_extent(&inode->io_tree, start, end, &cached_state); in invalidate_extent_cache() 2698 struct extent_state *cached_state = NULL; in prealloc_file_extent_cluster() 2706 btrfs_lock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster() 2712 btrfs_unlock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster() 2728 struct extent_state *cached_state in setup_relocation_extent_mapping() 2701 struct extent_state *cached_state = NULL; prealloc_file_extent_cluster() local 2731 struct extent_state *cached_state = NULL; setup_relocation_extent_mapping() local 2857 struct extent_state *cached_state = NULL; relocate_one_folio() local [all...] |
| H A D | ioctl.c | 4308 struct extent_state *cached_state = NULL; in btrfs_ioctl_encoded_read() 4361 ret = btrfs_encoded_read(&kiocb, &iter, &args, &cached_state, in btrfs_ioctl_encoded_read() 4377 &cached_state, disk_bytenr, in btrfs_ioctl_encoded_read() 4382 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_ioctl_encoded_read() 4523 struct extent_state *cached_state; 4580 btrfs_unlock_extent(io_tree, priv->start, priv->lockend, &priv->cached_state); in btrfs_uring_read_finished() 4608 struct extent_state *cached_state, in btrfs_uring_read_extent() 4641 priv->cached_state = cached_state; in btrfs_uring_read_extent() 4670 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_uring_read_extent() 4307 struct extent_state *cached_state = NULL; btrfs_ioctl_encoded_read() local 4522 struct extent_state *cached_state; global() member 4607 btrfs_uring_read_extent(struct kiocb * iocb,struct iov_iter * iter,u64 start,u64 lockend,struct extent_state * cached_state,u64 disk_bytenr,u64 disk_io_size,size_t count,bool compressed,struct iovec * iov,struct io_uring_cmd * cmd) btrfs_uring_read_extent() argument 4692 struct extent_state *cached_state = NULL; btrfs_uring_encoded_read() local [all...] |
| H A D | free-space-cache.c | 307 struct extent_state *cached_state = NULL; in btrfs_truncate_free_space_cache() local 340 btrfs_lock_extent(&inode->io_tree, 0, (u64)-1, &cached_state); in btrfs_truncate_free_space_cache() 352 btrfs_unlock_extent(&inode->io_tree, 0, (u64)-1, &cached_state); in btrfs_truncate_free_space_cache() 1282 struct extent_state **cached_state) in cleanup_write_cache_enospc() argument 1286 cached_state); in cleanup_write_cache_enospc() 1375 struct extent_state *cached_state = NULL; in __btrfs_write_out_cache() local 1412 &cached_state); in __btrfs_write_out_cache() 1458 dirty_start, dirty_len, &cached_state, false); in __btrfs_write_out_cache() 1473 &cached_state); in __btrfs_write_out_cache() 1495 cleanup_write_cache_enospc(inode, io_ctl, &cached_state); in __btrfs_write_out_cache()
|
| H A D | extent-tree.c | 2985 struct extent_state *cached_state = NULL; in btrfs_finish_extent_commit() local 2992 btrfs_find_first_extent_bit(unpin, 0, &start, &end, EXTENT_DIRTY, &cached_state); in btrfs_finish_extent_commit() 2994 while (!TRANS_ABORTED(trans) && cached_state) { in btrfs_finish_extent_commit() 3007 next_state = btrfs_next_extent_state(unpin, cached_state); in btrfs_finish_extent_commit() 3008 btrfs_clear_extent_dirty(unpin, start, end, &cached_state); in btrfs_finish_extent_commit() 3027 btrfs_free_extent_state(cached_state); in btrfs_finish_extent_commit() 3033 cached_state = NULL; in btrfs_finish_extent_commit() 3036 EXTENT_DIRTY, &cached_state); in btrfs_finish_extent_commit() 3038 cached_state = next_state; in btrfs_finish_extent_commit() 3039 if (cached_state) { in btrfs_finish_extent_commit() [all...] |
| H A D | disk-io.c | 4698 struct extent_state *cached_state = NULL; in btrfs_destroy_marked_extents() 4708 EXTENT_DIRTY, &cached_state)) { in btrfs_destroy_marked_extents() 4713 btrfs_clear_extent_dirty(unpin, start, end, &cached_state); 4714 btrfs_free_extent_state(cached_state); in btrfs_destroy_pinned_extent() 4721 struct extent_state *cached_state = NULL; btrfs_destroy_pinned_extent() local
|
| H A D | tree-log.c | 4730 struct extent_state *cached_state = NULL; in log_csums() 4748 &cached_state); in log_csums() 4765 &cached_state); in log_csums() 4734 struct extent_state *cached_state = NULL; log_csums() local
|
| /linux/drivers/iio/multiplexer/ |
| H A D | iio-mux.c | 31 int cached_state; member 50 mux->cached_state = -1; in iio_mux_select() 54 if (mux->cached_state == chan->channel) in iio_mux_select() 73 mux->cached_state = -1; in iio_mux_select() 78 mux->cached_state = chan->channel; in iio_mux_select() 399 mux->cached_state = -1; in mux_probe()
|
| /linux/drivers/mux/ |
| H A D | core.c | 129 mux->cached_state = MUX_CACHE_UNKNOWN; in mux_chip_alloc() 144 mux->cached_state = ret < 0 ? MUX_CACHE_UNKNOWN : state; in mux_control_set() 170 if (mux->idle_state == mux->cached_state) in mux_chip_register() 318 if (mux->cached_state == state) in __mux_control_select() 482 mux->idle_state != mux->cached_state) in mux_control_deselect()
|
| /linux/include/linux/mux/ |
| H A D | driver.h | 48 int cached_state; member
|
| /linux/drivers/gpu/drm/msm/dsi/phy/ |
| H A D | dsi_phy_7nm.c | 100 struct pll_7nm_cached_state cached_state; member 634 struct pll_7nm_cached_state *cached = &pll_7nm->cached_state; in dsi_7nm_pll_save_state() 659 struct pll_7nm_cached_state *cached = &pll_7nm->cached_state; in dsi_7nm_pll_restore_state()
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm.h | 587 struct drm_atomic_state *cached_state; member
|
| H A D | amdgpu_dm.c | 3135 adev->dm.cached_state = drm_atomic_helper_suspend(adev_to_drm(adev)); in dm_cache_state() 3136 if (IS_ERR(adev->dm.cached_state)) { in dm_cache_state() 3137 r = PTR_ERR(adev->dm.cached_state); in dm_cache_state() 3138 adev->dm.cached_state = NULL; in dm_cache_state() 3141 return adev->dm.cached_state ? 0 : r; in dm_cache_state() 3156 if (!dm->cached_state) in dm_destroy_cached_state() 3160 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) { in dm_destroy_cached_state() 3171 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) { in dm_destroy_cached_state() 3181 for_each_new_plane_in_state(dm->cached_state, plane, new_plane_state, i) { in dm_destroy_cached_state() 3190 drm_atomic_helper_resume(ddev, dm->cached_state); in dm_destroy_cached_state() [all …]
|