Home
last modified time | relevance | path

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

12

/linux-6.15/fs/btrfs/
H A Dextent-io-tree.c663 if (cached_state) { in __clear_extent_bit()
668 cached_state = NULL; in __clear_extent_bit()
795 if (cached_state && *cached_state) { in wait_extent_bit()
838 if (cached_state && *cached_state) { in wait_extent_bit()
840 *cached_state = NULL; in wait_extent_bit()
903 if (cached_state && *cached_state) { in find_first_extent_bit()
924 *cached_state = NULL; in find_first_extent_bit()
1089 if (cached_state && *cached_state) { in __set_extent_bit()
1339 if (cached_state && *cached_state) { in convert_extent_bit()
1656 if (!cached_state || !*cached_state) in count_range_bits()
[all …]
H A Dextent-io-tree.h163 struct extent_state **cached_state);
167 struct extent_state *cached_state);
197 u32 bits, struct extent_state **cached_state);
200 u64 end, struct extent_state **cached_state) in clear_extent_uptodate() argument
203 cached_state, NULL); in clear_extent_uptodate()
216 struct extent_state **cached_state);
220 struct extent_state **cached_state);
227 struct extent_state **cached_state);
H A Dfile.c943 cached_state); in lock_and_cleanup_extent_if_need()
1009 &cached_state)) { in btrfs_check_nocow_lock()
1015 &cached_state); in btrfs_check_nocow_lock()
1882 &cached_state); in btrfs_page_mkwrite()
2117 cached_state); in btrfs_punch_hole_lock_range()
2136 cached_state); in btrfs_punch_hole_lock_range()
2635 &cached_state); in btrfs_punch_hole()
2901 &cached_state); in btrfs_zero_range()
3026 &cached_state); in btrfs_fallocate()
3115 &cached_state); in btrfs_fallocate()
[all …]
H A Ddirect-io.c34 struct extent_state **cached_state, in lock_extent_direct() argument
45 if (!try_lock_dio_extent(io_tree, lockstart, lockend, cached_state)) in lock_extent_direct()
48 lock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
54 cached_state)) { in lock_extent_direct()
59 lock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
81 unlock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
134 unlock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
361 struct extent_state *cached_state = NULL; in btrfs_dio_iomap_begin() local
453 ret = lock_extent_direct(inode, lockstart, lockend, &cached_state, flags); in btrfs_dio_iomap_begin()
579 unlock_bits, &cached_state); in btrfs_dio_iomap_begin()
[all …]
H A Ddefrag.c862 struct extent_state *cached_state = NULL; in defrag_prepare_one_folio() local
897 lock_extent(&inode->io_tree, page_start, page_end, &cached_state); in defrag_prepare_one_folio()
900 &cached_state); in defrag_prepare_one_folio()
1159 struct extent_state **cached_state) in defrag_one_locked_target() argument
1178 EXTENT_DEFRAG, cached_state); in defrag_one_locked_target()
1180 EXTENT_DELALLOC | EXTENT_DEFRAG, cached_state); in defrag_one_locked_target()
1197 struct extent_state *cached_state = NULL; in defrag_one_range() local
1231 &cached_state); in defrag_one_range()
1247 &cached_state); in defrag_one_range()
1259 &cached_state); in defrag_one_range()
H A Dordered-data.h219 struct extent_state **cached_state);
221 struct extent_state **cached_state);
H A Dreflink.c638 struct extent_state *cached_state = NULL; in btrfs_extent_same_range() local
649 lock_extent(&dst->io_tree, dst_loff, end, &cached_state); in btrfs_extent_same_range()
652 unlock_extent(&dst->io_tree, dst_loff, end, &cached_state); in btrfs_extent_same_range()
705 struct extent_state *cached_state = NULL; in btrfs_clone_files() local
752 lock_extent(&BTRFS_I(inode)->io_tree, destoff, end, &cached_state); in btrfs_clone_files()
754 unlock_extent(&BTRFS_I(inode)->io_tree, destoff, end, &cached_state); in btrfs_clone_files()
H A Dinode.c2731 cached_state); in btrfs_set_extent_delalloc()
2821 &cached_state); in btrfs_writepage_fixup_worker()
2829 &cached_state); in btrfs_writepage_fixup_worker()
3234 &cached_state); in btrfs_finish_one_ordered()
3244 &cached_state); in btrfs_finish_one_ordered()
4899 &cached_state); in btrfs_truncate_block()
4902 &cached_state); in btrfs_truncate_block()
5028 &cached_state); in btrfs_cont_expand()
5285 &cached_state); in evict_inode_truncate_pages()
7502 extra_flags, &cached_state); in btrfs_invalidate_folio()
[all …]
H A Dextent_io.c322 struct extent_state *cached_state = NULL; in find_lock_delalloc_range() local
337 max_bytes, &cached_state); in find_lock_delalloc_range()
343 free_extent_state(cached_state); in find_lock_delalloc_range()
369 free_extent_state(cached_state); in find_lock_delalloc_range()
370 cached_state = NULL; in find_lock_delalloc_range()
386 EXTENT_DELALLOC, cached_state); in find_lock_delalloc_range()
1203 struct extent_state **cached_state) in lock_extents_for_read() argument
1208 ASSERT(cached_state); in lock_extents_for_read()
1251 struct extent_state *cached_state = NULL; in btrfs_read_folio() local
2568 struct extent_state *cached_state = NULL; in btrfs_readahead() local
[all …]
H A Dordered-data.c1166 struct extent_state **cached_state) in btrfs_lock_and_flush_ordered_range() argument
1172 if (cached_state) in btrfs_lock_and_flush_ordered_range()
1173 cachedp = cached_state; in btrfs_lock_and_flush_ordered_range()
1185 if (!cached_state) in btrfs_lock_and_flush_ordered_range()
1203 struct extent_state **cached_state) in btrfs_try_lock_ordered_range() argument
1207 if (!try_lock_extent(&inode->io_tree, start, end, cached_state)) in btrfs_try_lock_ordered_range()
1215 unlock_extent(&inode->io_tree, start, end, cached_state); in btrfs_try_lock_ordered_range()
H A Dbtrfs_inode.h558 struct extent_state **cached_state);
628 struct extent_state **cached_state,
632 struct extent_state **cached_state,
H A Dfile.h46 struct extent_state **cached_state,
H A Dtransaction.c1127 struct extent_state *cached_state = NULL; in btrfs_write_marked_extents() local
1132 mark, &cached_state)) { in btrfs_write_marked_extents()
1137 mark, &cached_state); in btrfs_write_marked_extents()
1159 free_extent_state(cached_state); in btrfs_write_marked_extents()
1162 cached_state = NULL; in btrfs_write_marked_extents()
1179 struct extent_state *cached_state = NULL; in __btrfs_wait_marked_extents() local
1185 EXTENT_NEED_WAIT, &cached_state)) { in __btrfs_wait_marked_extents()
1195 EXTENT_NEED_WAIT, &cached_state); in __btrfs_wait_marked_extents()
1200 free_extent_state(cached_state); in __btrfs_wait_marked_extents()
1203 cached_state = NULL; in __btrfs_wait_marked_extents()
H A Drelocation.c902 struct extent_state *cached_state = NULL; in replace_file_extents() local
914 end, &cached_state); in replace_file_extents()
922 &cached_state); in replace_file_extents()
1328 struct extent_state *cached_state = NULL; in invalidate_extent_cache() local
2733 struct extent_state *cached_state = NULL; in prealloc_file_extent_cluster() local
2763 struct extent_state *cached_state = NULL; in setup_relocation_extent_mapping() local
2889 struct extent_state *cached_state = NULL; in relocate_one_folio() local
2906 &cached_state); in relocate_one_folio()
2908 clamped_end, 0, &cached_state); in relocate_one_folio()
2913 &cached_state); in relocate_one_folio()
[all …]
H A Dfiemap.c635 struct extent_state *cached_state = NULL; in extent_fiemap() local
664 lock_extent(&inode->io_tree, range_start, range_end, &cached_state); in extent_fiemap()
844 unlock_extent(&inode->io_tree, range_start, range_end, &cached_state); in extent_fiemap()
H A Dioctl.c4439 struct extent_state *cached_state = NULL; in btrfs_ioctl_encoded_read() local
4492 ret = btrfs_encoded_read(&kiocb, &iter, &args, &cached_state, in btrfs_ioctl_encoded_read()
4508 &cached_state, disk_bytenr, in btrfs_ioctl_encoded_read()
4513 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_ioctl_encoded_read()
4647 struct extent_state *cached_state; member
4729 struct extent_state *cached_state, in btrfs_uring_read_extent() argument
4762 priv->cached_state = cached_state; in btrfs_uring_read_extent()
4791 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_uring_read_extent()
4816 struct extent_state *cached_state = NULL; in btrfs_uring_encoded_read() local
4916 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_uring_encoded_read()
[all …]
H A Dfree-space-cache.c306 struct extent_state *cached_state = NULL; in btrfs_truncate_free_space_cache() local
339 lock_extent(&inode->io_tree, 0, (u64)-1, &cached_state); in btrfs_truncate_free_space_cache()
351 unlock_extent(&inode->io_tree, 0, (u64)-1, &cached_state); in btrfs_truncate_free_space_cache()
1288 struct extent_state **cached_state) in cleanup_write_cache_enospc() argument
1292 cached_state); in cleanup_write_cache_enospc()
1381 struct extent_state *cached_state = NULL; in __btrfs_write_out_cache() local
1418 &cached_state); in __btrfs_write_out_cache()
1464 dirty_start, dirty_len, &cached_state, false); in __btrfs_write_out_cache()
1479 &cached_state); in __btrfs_write_out_cache()
1501 cleanup_write_cache_enospc(inode, io_ctl, &cached_state); in __btrfs_write_out_cache()
H A Ddev-replace.c789 struct extent_state *cached_state = NULL; in btrfs_set_target_alloc_state() local
799 CHUNK_ALLOCATED, &cached_state)) { in btrfs_set_target_alloc_state()
807 free_extent_state(cached_state); in btrfs_set_target_alloc_state()
/linux-6.15/drivers/gpu/drm/msm/dsi/phy/
H A Ddsi_phy_28nm_8960.c66 struct pll_28nm_cached_state cached_state; member
342 struct pll_28nm_cached_state *cached_state = &pll_28nm->cached_state; in dsi_28nm_pll_save_state() local
345 cached_state->postdiv3 = in dsi_28nm_pll_save_state()
347 cached_state->postdiv2 = in dsi_28nm_pll_save_state()
349 cached_state->postdiv1 = in dsi_28nm_pll_save_state()
352 cached_state->vco_rate = clk_hw_get_rate(phy->vco_hw); in dsi_28nm_pll_save_state()
358 struct pll_28nm_cached_state *cached_state = &pll_28nm->cached_state; in dsi_28nm_pll_restore_state() local
363 cached_state->vco_rate, 0); in dsi_28nm_pll_restore_state()
370 writel(cached_state->postdiv3, base + REG_DSI_28nm_8960_PHY_PLL_CTRL_10); in dsi_28nm_pll_restore_state()
371 writel(cached_state->postdiv2, base + REG_DSI_28nm_8960_PHY_PLL_CTRL_9); in dsi_28nm_pll_restore_state()
[all …]
H A Ddsi_phy_28nm.c75 struct pll_28nm_cached_state cached_state; member
583 struct pll_28nm_cached_state *cached_state = &pll_28nm->cached_state; in dsi_28nm_pll_save_state() local
586 cached_state->postdiv3 = in dsi_28nm_pll_save_state()
588 cached_state->postdiv1 = in dsi_28nm_pll_save_state()
590 cached_state->byte_mux = readl(base + REG_DSI_28nm_PHY_PLL_VREG_CFG); in dsi_28nm_pll_save_state()
592 cached_state->vco_rate = clk_hw_get_rate(phy->vco_hw); in dsi_28nm_pll_save_state()
594 cached_state->vco_rate = 0; in dsi_28nm_pll_save_state()
600 struct pll_28nm_cached_state *cached_state = &pll_28nm->cached_state; in dsi_28nm_pll_restore_state() local
605 cached_state->vco_rate, 0); in dsi_28nm_pll_restore_state()
612 writel(cached_state->postdiv3, base + REG_DSI_28nm_PHY_PLL_POSTDIV3_CFG); in dsi_28nm_pll_restore_state()
[all …]
H A Ddsi_phy_14nm.c80 struct pll_14nm_cached_state cached_state; member
694 struct pll_14nm_cached_state *cached_state = &pll_14nm->cached_state; in dsi_14nm_pll_save_state() local
700 cached_state->n1postdiv = data & 0xf; in dsi_14nm_pll_save_state()
701 cached_state->n2postdiv = (data >> 4) & 0xf; in dsi_14nm_pll_save_state()
704 cached_state->n1postdiv, cached_state->n2postdiv); in dsi_14nm_pll_save_state()
706 cached_state->vco_rate = clk_hw_get_rate(phy->vco_hw); in dsi_14nm_pll_save_state()
712 struct pll_14nm_cached_state *cached_state = &pll_14nm->cached_state; in dsi_14nm_pll_restore_state() local
718 cached_state->vco_rate, 0); in dsi_14nm_pll_restore_state()
725 data = cached_state->n1postdiv | (cached_state->n2postdiv << 4); in dsi_14nm_pll_restore_state()
728 cached_state->n1postdiv, cached_state->n2postdiv); in dsi_14nm_pll_restore_state()
H A Ddsi_phy_10nm.c80 struct pll_10nm_cached_state cached_state; member
475 struct pll_10nm_cached_state *cached = &pll_10nm->cached_state; in dsi_10nm_pll_save_state()
498 struct pll_10nm_cached_state *cached = &pll_10nm->cached_state; in dsi_10nm_pll_restore_state()
/linux-6.15/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-6.15/drivers/mux/
H A Dcore.c130 mux->cached_state = MUX_CACHE_UNKNOWN; in mux_chip_alloc()
145 mux->cached_state = ret < 0 ? MUX_CACHE_UNKNOWN : state; in mux_control_set()
171 if (mux->idle_state == mux->cached_state) in mux_chip_register()
319 if (mux->cached_state == state) in __mux_control_select()
483 mux->idle_state != mux->cached_state) in mux_control_deselect()
/linux-6.15/include/linux/mux/
H A Ddriver.h48 int cached_state; member

12