Home
last modified time | relevance | path

Searched refs:cached_state (Results 1 – 19 of 19) sorted by relevance

/linux/fs/btrfs/
H A Dextent-io-tree.h167 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 Dfile.c906 struct extent_state **cached_state) in lock_and_cleanup_extent_if_need() argument
921 last_pos, cached_state)) { in lock_and_cleanup_extent_if_need()
928 cached_state); in lock_and_cleanup_extent_if_need()
937 cached_state); in lock_and_cleanup_extent_if_need()
987 struct extent_state *cached_state = NULL; in btrfs_check_nocow_lock() local
1004 &cached_state)) { in btrfs_check_nocow_lock()
1010 &cached_state); in btrfs_check_nocow_lock()
1031 btrfs_unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in btrfs_check_nocow_lock()
1209 struct extent_state *cached_state = NULL; in copy_one_range() local
1273 &cached_state); in copy_one_range()
[all …]
H A Ddefrag.c851 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 Dinode.c1707 struct extent_state *cached_state = NULL; in fallback_to_cow() local
1744 btrfs_lock_extent(io_tree, start, end, &cached_state); in fallback_to_cow()
1761 &cached_state); in fallback_to_cow()
1763 btrfs_unlock_extent(io_tree, start, end, &cached_state); in fallback_to_cow()
2054 struct extent_state *cached_state = NULL; in run_delalloc_nocow() local
2191 ret = nocow_one_range(inode, locked_folio, &cached_state, in run_delalloc_nocow()
2773 struct extent_state **cached_state) in btrfs_find_new_delalloc_bytes() argument
2799 EXTENT_DELALLOC_NEW, cached_state); in btrfs_find_new_delalloc_bytes()
2811 struct extent_state **cached_state) in btrfs_set_extent_delalloc() argument
2827 cached_state); in btrfs_set_extent_delalloc()
[all …]
H A Dextent_io.c382 struct extent_state *cached_state = NULL; in find_lock_delalloc_range() local
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) in lock_extents_for_read() argument
1292 ASSERT(cached_state); in lock_extents_for_read()
[all …]
H A Dfile.h46 struct extent_state **cached_state,
H A Dtransaction.c1155 struct extent_state *cached_state = NULL; in btrfs_write_marked_extents() local
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_write_marked_extents()
1190 cached_state = NULL; in btrfs_write_marked_extents()
1206 struct extent_state *cached_state = NULL; in __btrfs_wait_marked_extents() local
1212 EXTENT_NEED_WAIT, &cached_state)) { in __btrfs_wait_marked_extents()
1222 EXTENT_NEED_WAIT, &cached_state); in __btrfs_wait_marked_extents()
1227 btrfs_free_extent_state(cached_state); in __btrfs_wait_marked_extents()
1230 cached_state = NULL; in __btrfs_wait_marked_extents()
H A Dfiemap.c635 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 Drelocation.c916 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() local
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 = NULL; in setup_relocation_extent_mapping() local
[all …]
H A Dioctl.c4308 struct extent_state *cached_state = NULL; in btrfs_ioctl_encoded_read() local
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; member
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() argument
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()
4693 struct extent_state *cached_state = NULL; in btrfs_uring_encoded_read() local
[all …]
H A Dfree-space-cache.c307 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 Dextent-tree.c2985 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 Ddisk-io.c4699 struct extent_state *cached_state = NULL; in btrfs_destroy_pinned_extent() local
4709 EXTENT_DIRTY, &cached_state)) { in btrfs_destroy_pinned_extent()
4714 btrfs_clear_extent_dirty(unpin, start, end, &cached_state); in btrfs_destroy_pinned_extent()
4715 btrfs_free_extent_state(cached_state); in btrfs_destroy_pinned_extent()
H A Dtree-log.c4730 struct extent_state *cached_state = NULL; in log_csums() local
4748 &cached_state); in log_csums()
4765 &cached_state); in log_csums()
/linux/drivers/iio/multiplexer/
H A Diio-mux.c31 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/include/linux/mux/
H A Ddriver.h48 int cached_state; member
/linux/drivers/gpu/drm/msm/dsi/phy/
H A Ddsi_phy_7nm.c100 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 Damdgpu_dm.h587 struct drm_atomic_state *cached_state; member
H A Damdgpu_dm.c3225 adev->dm.cached_state = drm_atomic_helper_suspend(adev_to_drm(adev)); in dm_cache_state()
3226 if (IS_ERR(adev->dm.cached_state)) { in dm_cache_state()
3227 r = PTR_ERR(adev->dm.cached_state); in dm_cache_state()
3228 adev->dm.cached_state = NULL; in dm_cache_state()
3231 return adev->dm.cached_state ? 0 : r; in dm_cache_state()
3246 if (!dm->cached_state) in dm_destroy_cached_state()
3250 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) { in dm_destroy_cached_state()
3261 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) { in dm_destroy_cached_state()
3271 for_each_new_plane_in_state(dm->cached_state, plane, new_plane_state, i) { in dm_destroy_cached_state()
3280 drm_atomic_helper_resume(ddev, dm->cached_state); in dm_destroy_cached_state()
[all …]