Home
last modified time | relevance | path

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

/linux/fs/btrfs/
H A Dextent-io-tree.c652 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 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.c888 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 Ddirect-io.c37 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 Ddefrag.c851 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 Dbtrfs_inode.h539 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 Dreflink.c690 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 Dinode.c1687 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()
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
2833 cached_state); in btrfs_set_extent_delalloc()
2859 struct extent_state *cached_state = NULL; btrfs_writepage_fixup_worker() local
3022 btrfs_reset_extent_delalloc(struct btrfs_inode * inode,u64 start,u64 end,unsigned int extra_bits,struct extent_state ** cached_state) btrfs_reset_extent_delalloc() argument
3216 struct extent_state *cached_state = NULL; btrfs_finish_one_ordered() local
5085 struct extent_state *cached_state = NULL; btrfs_truncate_block() local
5325 struct extent_state *cached_state = NULL; btrfs_cont_expand() local
5575 struct extent_state *cached_state = NULL; evict_inode_truncate_pages() local
7694 struct extent_state *cached_state = NULL; btrfs_invalidate_folio() local
7938 struct extent_state *cached_state = NULL; btrfs_truncate() local
9502 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
9690 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
9754 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
9928 struct extent_state *cached_state = NULL; btrfs_do_encoded_write() local
10325 struct extent_state *cached_state = NULL; btrfs_swap_activate() local
[all...]
H A Dextent_io.c403 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 Dfile.h46 struct extent_state **cached_state,
H A Dtransaction.c1166 struct extent_state *cached_state = NULL; in btrfs_write_marked_extents()
1171 mark, &cached_state)) { in btrfs_write_marked_extents()
1176 mark, &cached_state); in btrfs_write_marked_extents()
1198 btrfs_free_extent_state(cached_state); in btrfs_write_marked_extents()
1201 cached_state = NULL; in btrfs_write_marked_extents()
1217 struct extent_state *cached_state = NULL; in __btrfs_wait_marked_extents()
1223 EXTENT_NEED_WAIT, &cached_state)) { in __btrfs_wait_marked_extents()
1233 EXTENT_NEED_WAIT, &cached_state); in __btrfs_wait_marked_extents()
1238 btrfs_free_extent_state(cached_state); in __btrfs_wait_marked_extents()
1241 cached_state in __btrfs_wait_marked_extents()
1165 struct extent_state *cached_state = NULL; btrfs_write_marked_extents() local
1216 struct extent_state *cached_state = NULL; __btrfs_wait_marked_extents() local
[all...]
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 - 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 Drelocation.c994 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 Dioctl.c4364 struct extent_state *cached_state = NULL; in btrfs_ioctl_encoded_read() local
4417 ret = btrfs_encoded_read(&kiocb, &iter, &args, &cached_state, in btrfs_ioctl_encoded_read()
4433 &cached_state, disk_bytenr, in btrfs_ioctl_encoded_read()
4438 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_ioctl_encoded_read()
4579 struct extent_state *cached_state; member
4636 btrfs_unlock_extent(io_tree, priv->start, priv->lockend, &priv->cached_state); in btrfs_uring_read_finished()
4664 struct extent_state *cached_state, in btrfs_uring_read_extent() argument
4696 priv->cached_state = cached_state; in btrfs_uring_read_extent()
4746 struct extent_state *cached_state in btrfs_uring_encoded_read()
4749 struct extent_state *cached_state = NULL; 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()
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 Ddev-replace.c802 struct extent_state *cached_state = NULL; in btrfs_set_target_alloc_state() local
812 CHUNK_ALLOCATED, &cached_state)) { in btrfs_set_target_alloc_state()
820 btrfs_free_extent_state(cached_state); in btrfs_set_target_alloc_state()
H A Dextent-tree.c2989 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 Ddisk-io.c496 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()
4844 struct extent_state *cached_state = NULL; in btrfs_destroy_pinned_extent() local
4854 EXTENT_DIRTY, &cached_state)) { in btrfs_destroy_pinned_extent()
4859 btrfs_clear_extent_dirty(unpin, start, end, &cached_state); in btrfs_destroy_pinned_extent()
4860 btrfs_free_extent_state(cached_state); in btrfs_destroy_pinned_extent()
H A Dtree-log.c4704 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 Diio-mux.c30 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 Ddriver.h48 int cached_state; member
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm.c1508 adev->dm.cached_state = drm_atomic_helper_suspend(adev_to_drm(adev)); in dm_cache_state()
1509 if (IS_ERR(adev->dm.cached_state)) { in dm_cache_state()
1510 r = PTR_ERR(adev->dm.cached_state); in dm_cache_state()
1511 adev->dm.cached_state = NULL; in dm_cache_state()
1514 return adev->dm.cached_state ? 0 : r;
1529 if (!dm->cached_state) in dm_destroy_cached_state()
1533 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) { in dm_destroy_cached_state()
1544 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) { in dm_destroy_cached_state()
1554 for_each_new_plane_in_state(dm->cached_state, plane, new_plane_state, i) { in dm_destroy_cached_state()
1563 drm_atomic_helper_resume(ddev, dm->cached_state); in dm_destroy_cached_state()
[all...]
H A Damdgpu_dm.h609 struct drm_atomic_commit *cached_state; member
/linux/drivers/gpu/drm/msm/dsi/phy/
H A Ddsi_phy_7nm.c100 struct pll_7nm_cached_state cached_state; member
637 struct pll_7nm_cached_state *cached = &pll_7nm->cached_state; in dsi_7nm_pll_save_state()
662 struct pll_7nm_cached_state *cached = &pll_7nm->cached_state; in dsi_7nm_pll_restore_state()