Home
last modified time | relevance | path

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

12

/Linux-v6.6/fs/btrfs/
Dextent-io-tree.c558 u32 bits, struct extent_state **cached_state, in __clear_extent_bit() argument
597 if (cached_state) { in __clear_extent_bit()
598 cached = *cached_state; in __clear_extent_bit()
601 *cached_state = NULL; in __clear_extent_bit()
602 cached_state = NULL; in __clear_extent_bit()
730 struct extent_state **cached_state) in wait_extent_bit() argument
742 if (cached_state && *cached_state) { in wait_extent_bit()
743 state = *cached_state; in wait_extent_bit()
779 if (cached_state && *cached_state) { in wait_extent_bit()
780 state = *cached_state; in wait_extent_bit()
[all …]
Dextent-io-tree.h131 struct extent_state **cached_state);
135 u32 bits, int filled, struct extent_state *cached_state);
164 u32 bits, struct extent_state **cached_state);
167 u64 end, struct extent_state **cached_state) in clear_extent_uptodate() argument
170 cached_state, NULL); in clear_extent_uptodate()
183 struct extent_state **cached_state);
187 struct extent_state **cached_state);
194 struct extent_state **cached_state);
196 struct extent_state **cached_state);
Dfile.c980 struct extent_state **cached_state) in lock_and_cleanup_extent_if_need() argument
996 cached_state)) { in lock_and_cleanup_extent_if_need()
1006 lock_extent(&inode->io_tree, start_pos, last_pos, cached_state); in lock_and_cleanup_extent_if_need()
1015 cached_state); in lock_and_cleanup_extent_if_need()
1066 struct extent_state *cached_state = NULL; in btrfs_check_nocow_lock() local
1084 &cached_state)) { in btrfs_check_nocow_lock()
1090 &cached_state); in btrfs_check_nocow_lock()
1099 unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in btrfs_check_nocow_lock()
1224 struct extent_state *cached_state = NULL; in btrfs_buffered_write() local
1323 &lockend, nowait, &cached_state); in btrfs_buffered_write()
[all …]
Ddefrag.c726 struct extent_state *cached_state = NULL; in defrag_prepare_one_page() local
760 lock_extent(&inode->io_tree, page_start, page_end, &cached_state); in defrag_prepare_one_page()
763 &cached_state); in defrag_prepare_one_page()
1023 struct extent_state **cached_state) in defrag_one_locked_target() argument
1042 EXTENT_DEFRAG, cached_state); in defrag_one_locked_target()
1044 EXTENT_DELALLOC | EXTENT_DEFRAG, cached_state); in defrag_one_locked_target()
1061 struct extent_state *cached_state = NULL; in defrag_one_range() local
1095 &cached_state); in defrag_one_range()
1111 &cached_state); in defrag_one_range()
1123 &cached_state); in defrag_one_range()
Dinode.c2612 struct extent_state **cached_state) in btrfs_find_new_delalloc_bytes() argument
2638 EXTENT_DELALLOC_NEW, cached_state); in btrfs_find_new_delalloc_bytes()
2650 struct extent_state **cached_state) in btrfs_set_extent_delalloc() argument
2666 cached_state); in btrfs_set_extent_delalloc()
2672 EXTENT_DELALLOC | extra_bits, cached_state); in btrfs_set_extent_delalloc()
2687 struct extent_state *cached_state = NULL; in btrfs_writepage_fixup_worker() local
2746 lock_extent(&inode->io_tree, page_start, page_end, &cached_state); in btrfs_writepage_fixup_worker()
2755 &cached_state); in btrfs_writepage_fixup_worker()
2763 &cached_state); in btrfs_writepage_fixup_worker()
2781 unlock_extent(&inode->io_tree, page_start, page_end, &cached_state); in btrfs_writepage_fixup_worker()
[all …]
Dordered-data.h206 struct extent_state **cached_state);
208 struct extent_state **cached_state);
Dordered-data.c1091 struct extent_state **cached_state) in btrfs_lock_and_flush_ordered_range() argument
1097 if (cached_state) in btrfs_lock_and_flush_ordered_range()
1098 cachedp = cached_state; in btrfs_lock_and_flush_ordered_range()
1110 if (!cached_state) in btrfs_lock_and_flush_ordered_range()
1128 struct extent_state **cached_state) in btrfs_try_lock_ordered_range() argument
1132 if (!try_lock_extent(&inode->io_tree, start, end, cached_state)) in btrfs_try_lock_ordered_range()
1140 unlock_extent(&inode->io_tree, start, end, cached_state); in btrfs_try_lock_ordered_range()
Dfile.h30 struct extent_state **cached_state,
Dtransaction.c1082 struct extent_state *cached_state = NULL; in btrfs_write_marked_extents() local
1087 mark, &cached_state)) { in btrfs_write_marked_extents()
1092 mark, &cached_state); in btrfs_write_marked_extents()
1116 free_extent_state(cached_state); in btrfs_write_marked_extents()
1117 cached_state = NULL; in btrfs_write_marked_extents()
1136 struct extent_state *cached_state = NULL; in __btrfs_wait_marked_extents() local
1141 EXTENT_NEED_WAIT, &cached_state)) { in __btrfs_wait_marked_extents()
1151 EXTENT_NEED_WAIT, &cached_state); in __btrfs_wait_marked_extents()
1158 free_extent_state(cached_state); in __btrfs_wait_marked_extents()
1159 cached_state = NULL; in __btrfs_wait_marked_extents()
Drelocation.c1126 struct extent_state *cached_state = NULL; in replace_file_extents() local
1136 &cached_state); in replace_file_extents()
1143 key.offset, end, &cached_state); in replace_file_extents()
1532 struct extent_state *cached_state = NULL; in invalidate_extent_cache() local
1584 lock_extent(&BTRFS_I(inode)->io_tree, start, end, &cached_state); in invalidate_extent_cache()
1586 unlock_extent(&BTRFS_I(inode)->io_tree, start, end, &cached_state); in invalidate_extent_cache()
2914 struct extent_state *cached_state = NULL; in prealloc_file_extent_cluster() local
2922 lock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster()
2928 unlock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster()
2944 struct extent_state *cached_state = NULL; in setup_relocation_extent_mapping() local
[all …]
Dextent_io.c334 struct extent_state *cached_state = NULL; in find_lock_delalloc_range() local
349 max_bytes, &cached_state); in find_lock_delalloc_range()
355 free_extent_state(cached_state); in find_lock_delalloc_range()
381 free_extent_state(cached_state); in find_lock_delalloc_range()
382 cached_state = NULL; in find_lock_delalloc_range()
394 lock_extent(tree, delalloc_start, delalloc_end, &cached_state); in find_lock_delalloc_range()
398 EXTENT_DELALLOC, 1, cached_state); in find_lock_delalloc_range()
401 &cached_state); in find_lock_delalloc_range()
407 free_extent_state(cached_state); in find_lock_delalloc_range()
2261 struct extent_state *cached_state = NULL; in extent_invalidate_folio() local
[all …]
Ddev-replace.c787 struct extent_state *cached_state = NULL; in btrfs_set_target_alloc_state() local
797 CHUNK_ALLOCATED, &cached_state)) { in btrfs_set_target_alloc_state()
805 free_extent_state(cached_state); in btrfs_set_target_alloc_state()
Dfree-space-cache.c308 struct extent_state *cached_state = NULL; in btrfs_truncate_free_space_cache() local
341 lock_extent(&inode->io_tree, 0, (u64)-1, &cached_state); in btrfs_truncate_free_space_cache()
353 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()
1382 struct extent_state *cached_state = NULL; in __btrfs_write_out_cache() local
1418 &cached_state); in __btrfs_write_out_cache()
1460 &cached_state, false); in __btrfs_write_out_cache()
1474 &cached_state); in __btrfs_write_out_cache()
1496 cleanup_write_cache_enospc(inode, io_ctl, &cached_state); in __btrfs_write_out_cache()
Dbtrfs_inode.h437 struct extent_state **cached_state);
Ddisk-io.c4743 struct extent_state *cached_state = NULL; in btrfs_destroy_pinned_extent() local
4753 EXTENT_DIRTY, &cached_state)) { in btrfs_destroy_pinned_extent()
4758 clear_extent_dirty(unpin, start, end, &cached_state); in btrfs_destroy_pinned_extent()
4759 free_extent_state(cached_state); in btrfs_destroy_pinned_extent()
Dextent-tree.c2791 struct extent_state *cached_state = NULL; in btrfs_finish_extent_commit() local
2795 EXTENT_DIRTY, &cached_state)) { in btrfs_finish_extent_commit()
2804 clear_extent_dirty(unpin, start, end, &cached_state); in btrfs_finish_extent_commit()
2807 free_extent_state(cached_state); in btrfs_finish_extent_commit()
/Linux-v6.6/drivers/gpu/drm/msm/dsi/phy/
Ddsi_phy_28nm_8960.c65 struct pll_28nm_cached_state cached_state; member
346 struct pll_28nm_cached_state *cached_state = &pll_28nm->cached_state; in dsi_28nm_pll_save_state() local
349 cached_state->postdiv3 = in dsi_28nm_pll_save_state()
351 cached_state->postdiv2 = in dsi_28nm_pll_save_state()
353 cached_state->postdiv1 = in dsi_28nm_pll_save_state()
356 cached_state->vco_rate = clk_hw_get_rate(phy->vco_hw); in dsi_28nm_pll_save_state()
362 struct pll_28nm_cached_state *cached_state = &pll_28nm->cached_state; in dsi_28nm_pll_restore_state() local
367 cached_state->vco_rate, 0); in dsi_28nm_pll_restore_state()
375 cached_state->postdiv3); in dsi_28nm_pll_restore_state()
377 cached_state->postdiv2); in dsi_28nm_pll_restore_state()
[all …]
Ddsi_phy_28nm.c74 struct pll_28nm_cached_state cached_state; member
559 struct pll_28nm_cached_state *cached_state = &pll_28nm->cached_state; in dsi_28nm_pll_save_state() local
562 cached_state->postdiv3 = in dsi_28nm_pll_save_state()
564 cached_state->postdiv1 = in dsi_28nm_pll_save_state()
566 cached_state->byte_mux = dsi_phy_read(base + REG_DSI_28nm_PHY_PLL_VREG_CFG); in dsi_28nm_pll_save_state()
568 cached_state->vco_rate = clk_hw_get_rate(phy->vco_hw); in dsi_28nm_pll_save_state()
570 cached_state->vco_rate = 0; in dsi_28nm_pll_save_state()
576 struct pll_28nm_cached_state *cached_state = &pll_28nm->cached_state; in dsi_28nm_pll_restore_state() local
581 cached_state->vco_rate, 0); in dsi_28nm_pll_restore_state()
589 cached_state->postdiv3); in dsi_28nm_pll_restore_state()
[all …]
Ddsi_phy_14nm.c79 struct pll_14nm_cached_state cached_state; member
690 struct pll_14nm_cached_state *cached_state = &pll_14nm->cached_state; in dsi_14nm_pll_save_state() local
696 cached_state->n1postdiv = data & 0xf; in dsi_14nm_pll_save_state()
697 cached_state->n2postdiv = (data >> 4) & 0xf; in dsi_14nm_pll_save_state()
700 cached_state->n1postdiv, cached_state->n2postdiv); in dsi_14nm_pll_save_state()
702 cached_state->vco_rate = clk_hw_get_rate(phy->vco_hw); in dsi_14nm_pll_save_state()
708 struct pll_14nm_cached_state *cached_state = &pll_14nm->cached_state; in dsi_14nm_pll_restore_state() local
714 cached_state->vco_rate, 0); in dsi_14nm_pll_restore_state()
721 data = cached_state->n1postdiv | (cached_state->n2postdiv << 4); in dsi_14nm_pll_restore_state()
724 cached_state->n1postdiv, cached_state->n2postdiv); in dsi_14nm_pll_restore_state()
Ddsi_phy_10nm.c79 struct pll_10nm_cached_state cached_state; member
487 struct pll_10nm_cached_state *cached = &pll_10nm->cached_state; in dsi_10nm_pll_save_state()
510 struct pll_10nm_cached_state *cached = &pll_10nm->cached_state; in dsi_10nm_pll_restore_state()
Ddsi_phy_7nm.c86 struct pll_7nm_cached_state cached_state; member
536 struct pll_7nm_cached_state *cached = &pll_7nm->cached_state; in dsi_7nm_pll_save_state()
559 struct pll_7nm_cached_state *cached = &pll_7nm->cached_state; in dsi_7nm_pll_restore_state()
/Linux-v6.6/drivers/iio/multiplexer/
Diio-mux.c30 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()
392 mux->cached_state = -1; in mux_probe()
/Linux-v6.6/drivers/mux/
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-v6.6/include/linux/mux/
Ddriver.h48 int cached_state; member
/Linux-v6.6/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm.h487 struct drm_atomic_state *cached_state; member

12