| /linux/fs/btrfs/ |
| H A D | extent-io-tree.c | 652 u32 bits, struct extent_state **cached_state, in btrfs_clear_extent_bit_changeset() argument 689 if (cached_state) { in btrfs_clear_extent_bit_changeset() 690 cached = *cached_state; in btrfs_clear_extent_bit_changeset() 693 *cached_state = NULL; in btrfs_clear_extent_bit_changeset() 694 cached_state = NULL; in btrfs_clear_extent_bit_changeset() 889 u32 bits, struct extent_state **cached_state) in wait_extent_bit() argument 901 if (cached_state && *cached_state) { in wait_extent_bit() 902 state = *cached_state; in wait_extent_bit() 945 if (cached_state && *cached_state) { in wait_extent_bit() 946 state = *cached_state; in wait_extent_bit() [all …]
|
| 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 | 888 struct extent_state **cached_state) in lock_and_cleanup_extent() argument 900 last_pos, cached_state)) { in lock_and_cleanup_extent() 907 cached_state); in lock_and_cleanup_extent() 916 cached_state); in lock_and_cleanup_extent() 964 struct extent_state *cached_state = NULL; in btrfs_check_nocow_lock() local 981 &cached_state)) { in btrfs_check_nocow_lock() 987 &cached_state); in btrfs_check_nocow_lock() 1008 btrfs_unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in btrfs_check_nocow_lock() 1186 struct extent_state *cached_state = NULL; in copy_one_range() local 1250 &lockstart, &lockend, nowait, &cached_state); in copy_one_range() [all …]
|
| H A D | direct-io.c | 37 struct extent_state **cached_state, in lock_extent_direct() argument 48 if (!btrfs_try_lock_dio_extent(io_tree, lockstart, lockend, cached_state)) in lock_extent_direct() 51 btrfs_lock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() 57 cached_state)) { in lock_extent_direct() 62 btrfs_lock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() 84 btrfs_unlock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() 137 btrfs_unlock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct() 376 struct extent_state *cached_state = NULL; in btrfs_dio_iomap_begin() local 468 ret = lock_extent_direct(inode, lockstart, lockend, &cached_state, flags); in btrfs_dio_iomap_begin() 594 unlock_bits, &cached_state); in btrfs_dio_iomap_begin() [all …]
|
| H A D | defrag.c | 851 struct extent_state *cached_state = NULL; in defrag_prepare_one_folio() local 875 btrfs_lock_extent(&inode->io_tree, lock_start, lock_end, &cached_state); in defrag_prepare_one_folio() 877 btrfs_unlock_extent(&inode->io_tree, lock_start, lock_end, &cached_state); in defrag_prepare_one_folio() 1136 struct extent_state **cached_state) in defrag_one_locked_target() argument 1144 EXTENT_DEFRAG, cached_state); in defrag_one_locked_target() 1146 EXTENT_DELALLOC | EXTENT_DEFRAG, cached_state); in defrag_one_locked_target() 1168 struct extent_state *cached_state = NULL; in defrag_one_range() local 1221 btrfs_lock_extent(&inode->io_tree, folio_pos(folios[0]), cur - 1, &cached_state); in defrag_one_range() 1236 defrag_one_locked_target(inode, entry, folios, nr_pages, &cached_state); in defrag_one_range() 1244 btrfs_unlock_extent(&inode->io_tree, folio_pos(folios[0]), cur - 1, &cached_state); in defrag_one_range()
|
| H A D | btrfs_inode.h | 539 struct extent_state **cached_state); 541 unsigned int extra_bits, struct extent_state **cached_state); 611 struct extent_state **cached_state, 615 struct extent_state **cached_state,
|
| H A D | reflink.c | 690 struct extent_state *cached_state = NULL; in btrfs_extent_same_range() local 702 btrfs_lock_extent(&dst->io_tree, dst_loff, end, &cached_state); in btrfs_extent_same_range() 704 btrfs_unlock_extent(&dst->io_tree, dst_loff, end, &cached_state); in btrfs_extent_same_range() 756 struct extent_state *cached_state = NULL; in btrfs_clone_files() local 803 btrfs_lock_extent(&inode->io_tree, destoff, end, &cached_state); in btrfs_clone_files() 805 btrfs_unlock_extent(&inode->io_tree, destoff, end, &cached_state); in btrfs_clone_files()
|
| H A D | inode.c | 1687 struct extent_state *cached_state = NULL; in fallback_to_cow() local 1724 btrfs_lock_extent(io_tree, start, end, &cached_state); in fallback_to_cow() 1741 &cached_state); in fallback_to_cow() 1743 btrfs_unlock_extent(io_tree, start, end, &cached_state); in fallback_to_cow() 2033 struct extent_state *cached_state = NULL; in run_delalloc_nocow() local 2170 ret = nocow_one_range(inode, locked_folio, &cached_state, in run_delalloc_nocow() 2758 struct extent_state **cached_state) in btrfs_find_new_delalloc_bytes() argument 2784 EXTENT_DELALLOC_NEW, cached_state); in btrfs_find_new_delalloc_bytes() 2796 struct extent_state **cached_state) in btrfs_set_extent_delalloc() argument 2818 cached_state); in btrfs_set_extent_delalloc() [all …]
|
| H A D | extent_io.c | 403 struct extent_state *cached_state = NULL; in find_lock_delalloc_range() local 425 max_bytes, &cached_state); in find_lock_delalloc_range() 431 btrfs_free_extent_state(cached_state); in find_lock_delalloc_range() 458 btrfs_free_extent_state(cached_state); in find_lock_delalloc_range() 459 cached_state = NULL; in find_lock_delalloc_range() 470 btrfs_lock_extent(tree, delalloc_start, delalloc_end, &cached_state); in find_lock_delalloc_range() 474 EXTENT_DELALLOC, cached_state); in find_lock_delalloc_range() 476 btrfs_unlock_extent(tree, delalloc_start, delalloc_end, &cached_state); in find_lock_delalloc_range() 1352 struct extent_state **cached_state) in lock_extents_for_read() argument 1357 ASSERT(cached_state); in lock_extents_for_read() [all …]
|
| H A D | file.h | 46 struct extent_state **cached_state,
|
| H A D | transaction.c | 1154 struct extent_state *cached_state = NULL; in btrfs_write_marked_extents() local 1159 mark, &cached_state)) { in btrfs_write_marked_extents() 1164 mark, &cached_state); in btrfs_write_marked_extents() 1186 btrfs_free_extent_state(cached_state); in btrfs_write_marked_extents() 1189 cached_state = NULL; in btrfs_write_marked_extents() 1205 struct extent_state *cached_state = NULL; in __btrfs_wait_marked_extents() local 1211 EXTENT_NEED_WAIT, &cached_state)) { in __btrfs_wait_marked_extents() 1221 EXTENT_NEED_WAIT, &cached_state); in __btrfs_wait_marked_extents() 1226 btrfs_free_extent_state(cached_state); in __btrfs_wait_marked_extents() 1229 cached_state = NULL; in __btrfs_wait_marked_extents()
|
| 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 - 1, &cached_state); in extent_fiemap() 843 btrfs_unlock_extent(&inode->io_tree, range_start, range_end - 1, &cached_state); in extent_fiemap()
|
| H A D | relocation.c | 994 struct extent_state *cached_state = NULL; in replace_file_extents() local 1006 end, &cached_state); in replace_file_extents() 1014 &cached_state); in replace_file_extents() 1420 struct extent_state *cached_state = NULL; in invalidate_extent_cache() local 1473 btrfs_lock_extent(&inode->io_tree, start, end, &cached_state); in invalidate_extent_cache() 1475 btrfs_unlock_extent(&inode->io_tree, start, end, &cached_state); in invalidate_extent_cache() 2826 struct extent_state *cached_state = NULL; in prealloc_file_extent_cluster() local 2834 btrfs_lock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster() 2840 btrfs_unlock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster() 2856 struct extent_state *cached_state = NULL; in setup_relocation_extent_mapping() local [all …]
|
| H A D | ioctl.c | 4349 struct extent_state *cached_state = NULL; in btrfs_ioctl_encoded_read() local 4402 ret = btrfs_encoded_read(&kiocb, &iter, &args, &cached_state, in btrfs_ioctl_encoded_read() 4418 &cached_state, disk_bytenr, in btrfs_ioctl_encoded_read() 4423 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_ioctl_encoded_read() 4564 struct extent_state *cached_state; member 4621 btrfs_unlock_extent(io_tree, priv->start, priv->lockend, &priv->cached_state); in btrfs_uring_read_finished() 4649 struct extent_state *cached_state, in btrfs_uring_read_extent() argument 4682 priv->cached_state = cached_state; in btrfs_uring_read_extent() 4711 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_uring_read_extent() 4734 struct extent_state *cached_state = NULL; in 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() 1281 struct extent_state **cached_state) in cleanup_write_cache_enospc() argument 1285 cached_state); in cleanup_write_cache_enospc() 1374 struct extent_state *cached_state = NULL; in __btrfs_write_out_cache() local 1411 &cached_state); in __btrfs_write_out_cache() 1456 dirty_start, dirty_len, &cached_state, false); in __btrfs_write_out_cache() 1471 &cached_state); in __btrfs_write_out_cache() 1493 cleanup_write_cache_enospc(inode, io_ctl, &cached_state); in __btrfs_write_out_cache()
|
| H A D | extent-tree.c | 2989 struct extent_state *cached_state = NULL; in btrfs_finish_extent_commit() local 2996 btrfs_find_first_extent_bit(unpin, 0, &start, &end, EXTENT_DIRTY, &cached_state); in btrfs_finish_extent_commit() 2998 while (!TRANS_ABORTED(trans) && cached_state) { in btrfs_finish_extent_commit() 3011 next_state = btrfs_next_extent_state(unpin, cached_state); in btrfs_finish_extent_commit() 3012 btrfs_clear_extent_dirty(unpin, start, end, &cached_state); in btrfs_finish_extent_commit() 3031 btrfs_free_extent_state(cached_state); in btrfs_finish_extent_commit() 3037 cached_state = NULL; in btrfs_finish_extent_commit() 3040 EXTENT_DIRTY, &cached_state); in btrfs_finish_extent_commit() 3042 cached_state = next_state; in btrfs_finish_extent_commit() 3043 if (cached_state) { in btrfs_finish_extent_commit() [all …]
|
| H A D | disk-io.c | 496 struct extent_state *cached_state = NULL; in btree_invalidate_folio() local 513 btrfs_lock_extent(tree, start, end, &cached_state); in btree_invalidate_folio() 521 btrfs_unlock_extent(tree, start, end, &cached_state); in btree_invalidate_folio() 4840 struct extent_state *cached_state = NULL; in btrfs_destroy_pinned_extent() local 4850 EXTENT_DIRTY, &cached_state)) { in btrfs_destroy_pinned_extent() 4855 btrfs_clear_extent_dirty(unpin, start, end, &cached_state); in btrfs_destroy_pinned_extent() 4856 btrfs_free_extent_state(cached_state); in btrfs_destroy_pinned_extent()
|
| H A D | tree-log.c | 4704 struct extent_state *cached_state = NULL; in log_csums() local 4722 &cached_state); in log_csums() 4739 &cached_state); in log_csums()
|
| /linux/drivers/iio/multiplexer/ |
| H A D | iio-mux.c | 30 int cached_state; member 49 mux->cached_state = -1; in iio_mux_select() 53 if (mux->cached_state == chan->channel) in iio_mux_select() 72 mux->cached_state = -1; in iio_mux_select() 77 mux->cached_state = chan->channel; in iio_mux_select() 398 mux->cached_state = -1; in mux_probe()
|
| /linux/include/linux/mux/ |
| H A D | driver.h | 48 int cached_state; member
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm.c | 1506 adev->dm.cached_state = drm_atomic_helper_suspend(adev_to_drm(adev)); in dm_cache_state() 1507 if (IS_ERR(adev->dm.cached_state)) { in dm_cache_state() 1508 r = PTR_ERR(adev->dm.cached_state); in dm_cache_state() 1509 adev->dm.cached_state = NULL; in dm_cache_state() 1512 return adev->dm.cached_state ? 0 : r; in dm_cache_state() 1527 if (!dm->cached_state) in dm_destroy_cached_state() 1531 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) { in dm_destroy_cached_state() 1542 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) { in dm_destroy_cached_state() 1552 for_each_new_plane_in_state(dm->cached_state, plane, new_plane_state, i) { in dm_destroy_cached_state() 1561 drm_atomic_helper_resume(ddev, dm->cached_state); in dm_destroy_cached_state() [all …]
|