Home
last modified time | relevance | path

Searched refs:cached_state (Results 1 – 20 of 20) 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.c901 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()
[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 Dordered-data.h219 struct extent_state **cached_state);
221 struct extent_state **cached_state);
H A Dextent_io.c381 struct extent_state *cached_state = NULL; in find_lock_delalloc_range() local
403 max_bytes, &cached_state); in find_lock_delalloc_range()
409 btrfs_free_extent_state(cached_state); in find_lock_delalloc_range()
436 btrfs_free_extent_state(cached_state); in find_lock_delalloc_range()
437 cached_state = NULL; in find_lock_delalloc_range()
448 btrfs_lock_extent(tree, delalloc_start, delalloc_end, &cached_state); in find_lock_delalloc_range()
452 EXTENT_DELALLOC, cached_state); in find_lock_delalloc_range()
454 btrfs_unlock_extent(tree, delalloc_start, delalloc_end, &cached_state); in find_lock_delalloc_range()
1293 struct extent_state **cached_state) in lock_extents_for_read() argument
1298 ASSERT(cached_state); in lock_extents_for_read()
[all …]
H A Dreflink.c636 struct extent_state *cached_state = NULL; in btrfs_extent_same_range() local
647 btrfs_lock_extent(&dst->io_tree, dst_loff, end, &cached_state); in btrfs_extent_same_range()
650 btrfs_unlock_extent(&dst->io_tree, dst_loff, end, &cached_state); in btrfs_extent_same_range()
703 struct extent_state *cached_state = NULL; in btrfs_clone_files() local
749 btrfs_lock_extent(&BTRFS_I(inode)->io_tree, destoff, end, &cached_state); in btrfs_clone_files()
751 btrfs_unlock_extent(&BTRFS_I(inode)->io_tree, destoff, end, &cached_state); in btrfs_clone_files()
H A Dinode.c1802 struct extent_state *cached_state = NULL; in fallback_to_cow() local
1839 btrfs_lock_extent(io_tree, start, end, &cached_state); in fallback_to_cow()
1856 &cached_state); in fallback_to_cow()
1858 btrfs_unlock_extent(io_tree, start, end, &cached_state); in fallback_to_cow()
2142 struct extent_state *cached_state = NULL; in run_delalloc_nocow() local
2279 ret = nocow_one_range(inode, locked_folio, &cached_state, in run_delalloc_nocow()
2752 struct extent_state **cached_state) in btrfs_find_new_delalloc_bytes() argument
2778 EXTENT_DELALLOC_NEW, cached_state); in btrfs_find_new_delalloc_bytes()
2790 struct extent_state **cached_state) in btrfs_set_extent_delalloc() argument
2806 cached_state); in btrfs_set_extent_delalloc()
[all …]
H A Dfile.h46 struct extent_state **cached_state,
H A Dtransaction.c1137 struct extent_state *cached_state = NULL; in btrfs_write_marked_extents() local
1142 mark, &cached_state)) { in btrfs_write_marked_extents()
1147 mark, &cached_state); in btrfs_write_marked_extents()
1169 btrfs_free_extent_state(cached_state); in btrfs_write_marked_extents()
1172 cached_state = NULL; in btrfs_write_marked_extents()
1188 struct extent_state *cached_state = NULL; in __btrfs_wait_marked_extents() local
1194 EXTENT_NEED_WAIT, &cached_state)) { in __btrfs_wait_marked_extents()
1204 EXTENT_NEED_WAIT, &cached_state); in __btrfs_wait_marked_extents()
1209 btrfs_free_extent_state(cached_state); in __btrfs_wait_marked_extents()
1212 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()
2701 struct extent_state *cached_state = NULL; in prealloc_file_extent_cluster() local
2709 btrfs_lock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster()
2715 btrfs_unlock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster()
2731 struct extent_state *cached_state = NULL; in setup_relocation_extent_mapping() local
[all …]
H A Dioctl.c4277 struct extent_state *cached_state = NULL; in btrfs_ioctl_encoded_read() local
4330 ret = btrfs_encoded_read(&kiocb, &iter, &args, &cached_state, in btrfs_ioctl_encoded_read()
4346 &cached_state, disk_bytenr, in btrfs_ioctl_encoded_read()
4351 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_ioctl_encoded_read()
4492 struct extent_state *cached_state; member
4549 btrfs_unlock_extent(io_tree, priv->start, priv->lockend, &priv->cached_state); in btrfs_uring_read_finished()
4577 struct extent_state *cached_state, in btrfs_uring_read_extent() argument
4610 priv->cached_state = cached_state; in btrfs_uring_read_extent()
4639 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_uring_read_extent()
4657 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 Ddisk-io.c4696 struct extent_state *cached_state = NULL; in btrfs_destroy_pinned_extent() local
4706 EXTENT_DIRTY, &cached_state)) { in btrfs_destroy_pinned_extent()
4711 btrfs_clear_extent_dirty(unpin, start, end, &cached_state); in btrfs_destroy_pinned_extent()
4712 btrfs_free_extent_state(cached_state); in btrfs_destroy_pinned_extent()
H A Dtree-log.c4716 struct extent_state *cached_state = NULL; in log_csums() local
4734 &cached_state); in log_csums()
4751 &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/drivers/mux/
H A Dcore.c129 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 Ddriver.h48 int cached_state; member
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm.h587 struct drm_atomic_state *cached_state; member
H A Damdgpu_dm.c3135 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 …]