/linux/fs/bcachefs/ |
H A D | extents.c | 187 int bch2_bkey_pick_read_device(struct bch_fs *c, struct bkey_s_c k, in bch2_bkey_pick_read_device() 304 int bch2_btree_ptr_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_btree_ptr_validate() 319 struct bkey_s_c k) in bch2_btree_ptr_to_text() 324 int bch2_btree_ptr_v2_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_btree_ptr_v2_validate() 351 struct bkey_s_c k) in bch2_btree_ptr_v2_to_text() 367 struct bkey_s k) in bch2_btree_ptr_v2_compat() 531 int bch2_reservation_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_reservation_validate() 545 struct bkey_s_c k) in bch2_reservation_to_text() 593 bool bch2_can_narrow_extent_crcs(struct bkey_s_c k, in bch2_can_narrow_extent_crcs() 619 bool bch2_bkey_narrow_crcs(struct bkey_i *k, struct bch_extent_crc_unpacked n) in bch2_bkey_narrow_crcs() [all …]
|
H A D | extents.h | 84 static inline void __extent_entry_insert(struct bkey_i *k, in __extent_entry_insert() 96 static inline void extent_entry_drop(struct bkey_s k, union bch_extent_entry *entry) in extent_entry_drop() 151 bch2_extent_crc_unpack(const struct bkey *k, const union bch_extent_crc *crc) in bch2_extent_crc_unpack() 228 static inline struct bkey_ptrs_c bch2_bkey_ptrs_c(struct bkey_s_c k) in bch2_bkey_ptrs_c() 276 static inline struct bkey_ptrs bch2_bkey_ptrs(struct bkey_s k) in bch2_bkey_ptrs() 473 static inline bool bkey_is_btree_ptr(const struct bkey *k) in bkey_is_btree_ptr() 484 static inline bool bkey_extent_is_direct_data(const struct bkey *k) in bkey_extent_is_direct_data() 497 static inline bool bkey_extent_is_inline_data(const struct bkey *k) in bkey_extent_is_inline_data() 503 static inline unsigned bkey_inline_data_offset(const struct bkey *k) in bkey_inline_data_offset() 515 static inline unsigned bkey_inline_data_bytes(const struct bkey *k) in bkey_inline_data_bytes() [all …]
|
H A D | bkey_methods.c | 30 static int deleted_key_validate(struct bch_fs *c, struct bkey_s_c k, in deleted_key_validate() 44 static int empty_val_key_validate(struct bch_fs *c, struct bkey_s_c k, in empty_val_key_validate() 61 static int key_type_cookie_validate(struct bch_fs *c, struct bkey_s_c k, in key_type_cookie_validate() 68 struct bkey_s_c k) in key_type_cookie_to_text() 85 static int key_type_inline_data_validate(struct bch_fs *c, struct bkey_s_c k, in key_type_inline_data_validate() 92 struct bkey_s_c k) in key_type_inline_data_to_text() 126 int bch2_bkey_val_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_bkey_val_validate() 169 int __bch2_bkey_validate(struct bch_fs *c, struct bkey_s_c k, in __bch2_bkey_validate() 247 int bch2_bkey_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_bkey_validate() 255 struct bkey_s_c k, in bch2_bkey_in_btree_node() [all …]
|
H A D | inode.c | 82 struct bkey_i_inode_v3 *k = &packed->inode; in bch2_inode_pack_inlined() local 233 static int bch2_inode_unpack_v3(struct bkey_s_c k, in bch2_inode_unpack_v3() 285 static noinline int bch2_inode_unpack_slowpath(struct bkey_s_c k, in bch2_inode_unpack_slowpath() 329 int bch2_inode_unpack(struct bkey_s_c k, in bch2_inode_unpack() 348 struct bkey_s_c k = bch2_bkey_get_iter(trans, iter, BTREE_ID_inodes, in __bch2_inode_peek() local 377 struct bkey_s_c k = bch2_bkey_get_iter(trans, &iter, BTREE_ID_inodes, in bch2_inode_find_by_inum_snapshot() local 427 struct bkey_s_c k; in bch2_inode_find_snapshot_root() local 487 struct bkey_i *bch2_inode_to_v3(struct btree_trans *trans, struct bkey_i *k) in bch2_inode_to_v3() 508 static int __bch2_inode_validate(struct bch_fs *c, struct bkey_s_c k, in __bch2_inode_validate() 548 int bch2_inode_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_inode_validate() [all …]
|
H A D | bkey_types.h | 15 static inline struct bkey_i *bkey_next(struct bkey_i *k) in bkey_next() 22 static inline size_t bkey_val_bytes(const struct bkey *k) in bkey_val_bytes() 27 static inline void set_bkey_val_u64s(struct bkey *k, unsigned val_u64s) in set_bkey_val_u64s() 35 static inline void set_bkey_val_bytes(struct bkey *k, unsigned bytes) in set_bkey_val_bytes() 49 const struct bkey *k; member 57 struct bkey *k; member 70 static inline struct bkey_s bkey_to_s(struct bkey *k) in bkey_to_s() 75 static inline struct bkey_s_c bkey_to_s_c(const struct bkey *k) in bkey_to_s_c() 80 static inline struct bkey_s bkey_i_to_s(struct bkey_i *k) in bkey_i_to_s() 85 static inline struct bkey_s_c bkey_i_to_s_c(const struct bkey_i *k) in bkey_i_to_s_c()
|
H A D | btree_update.c | 35 struct bkey_s_c k, in extent_front_merge() 72 struct bkey_s_c k) in extent_back_merge() 99 struct bkey_s_c k; in need_whiteout_for_snapshot() local 135 struct bkey_s_c k = bch2_bkey_get_iter(trans, &iter, btree, pos, in __bch2_insert_snapshot_whiteouts() local 272 struct bkey_s_c k; in bch2_trans_update_extent() local 333 struct bkey k; in flush_new_cached_update() local 367 struct bkey_i *k, enum btree_iter_update_trigger_flags flags, in bch2_trans_update_by_path() 494 struct bkey_i *k, enum btree_iter_update_trigger_flags flags, in bch2_trans_update_ip() 536 struct bkey_i *k) in bch2_btree_insert_clone_trans() 582 struct bkey_s_c k = bch2_btree_iter_peek_prev(trans, iter); in bch2_bkey_get_empty_slot() local [all …]
|
H A D | reflink.c | 19 static inline bool bkey_extent_is_reflink_data(const struct bkey *k) in bkey_extent_is_reflink_data() 30 static inline unsigned bkey_type_to_indirect(const struct bkey *k) in bkey_type_to_indirect() 44 int bch2_reflink_p_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_reflink_p_validate() 59 struct bkey_s_c k) in bch2_reflink_p_to_text() 95 int bch2_reflink_v_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_reflink_v_validate() 111 struct bkey_s_c k) in bch2_reflink_v_to_text() 134 int bch2_indirect_inline_data_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_indirect_inline_data_validate() 141 struct bch_fs *c, struct bkey_s_c k) in bch2_indirect_inline_data_to_text() 269 struct bkey_s_c k = bch2_bkey_get_iter(trans, iter, BTREE_ID_reflink, in bch2_lookup_indirect_extent() local 308 struct bkey_s_c k = bch2_lookup_indirect_extent(trans, &iter, &offset_into_extent, p, false, in trans_trigger_reflink_p_segment() local [all …]
|
H A D | rebalance.c | 40 static const struct bch_extent_rebalance *bch2_bkey_rebalance_opts(struct bkey_s_c k) in bch2_bkey_rebalance_opts() 47 struct bkey_s_c k, in bch2_bkey_ptrs_need_compress() 95 struct bkey_s_c k) in bch2_bkey_ptrs_need_rebalance() 106 u64 bch2_bkey_sectors_need_rebalance(struct bch_fs *c, struct bkey_s_c k) in bch2_bkey_sectors_need_rebalance() 148 struct bkey_s_c k) in bch2_bkey_rebalance_needs_update() 169 struct bkey_s k = bkey_i_to_s(_k); in bch2_bkey_set_needs_rebalance() local 191 struct bkey_s_c k) in bch2_get_update_rebalance_opts() 238 struct bkey_s_c k; in bch2_set_rebalance_needs_scan_trans() local 287 struct bkey_s_c k; in bch2_clear_rebalance_needs_scan() local 320 struct bkey_s_c k) in bch2_bkey_clear_needs_rebalance() [all …]
|
H A D | alloc_background.c | 88 struct bkey_s_c k) in bch2_alloc_unpack_v1() 102 struct bkey_s_c k) in bch2_alloc_unpack_v2() 135 struct bkey_s_c k) in bch2_alloc_unpack_v3() 170 static struct bkey_alloc_unpacked bch2_alloc_unpack(struct bkey_s_c k) in bch2_alloc_unpack() 200 int bch2_alloc_v1_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_alloc_v1_validate() 215 int bch2_alloc_v2_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_alloc_v2_validate() 228 int bch2_alloc_v3_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_alloc_v3_validate() 241 int bch2_alloc_v4_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_alloc_v4_validate() 323 void bch2_alloc_v4_swab(struct bkey_s k) in bch2_alloc_v4_swab() 370 void bch2_alloc_to_text(struct printbuf *out, struct bch_fs *c, struct bkey_s_c k) in bch2_alloc_to_text() [all …]
|
H A D | data_update.c | 32 static void bkey_put_dev_refs(struct bch_fs *c, struct bkey_s_c k) in bkey_put_dev_refs() 40 static bool bkey_get_dev_refs(struct bch_fs *c, struct bkey_s_c k) in bkey_get_dev_refs() 57 static void bkey_nocow_unlock(struct bch_fs *c, struct bkey_s_c k) in bkey_nocow_unlock() 195 struct bkey_s_c old, struct bkey_s_c k, in trace_data_update2() 214 struct bkey_s_c old, struct bkey_s_c k, in trace_io_move_created_rebalance2() 237 struct bkey_s_c old, struct bkey_s_c k, in data_update_invalid_bkey() 275 struct bkey_s_c k; in __bch2_data_update_index_update() local 523 struct bkey_s_c k = bkey_i_to_s_c(update->k.k); in bch2_data_update_exit() local 545 struct bkey_s_c k; in bch2_update_unwritten_extent() local 689 struct bkey_s_c k, in bch2_extent_drop_ptrs() [all …]
|
H A D | tests.c | 36 struct bkey_i_cookie k; in test_delete() local 77 struct bkey_i_cookie k; in test_delete_written() local 349 struct bkey_s_c k; in test_peek_end() local 371 struct bkey_s_c k; in test_peek_end_extents() local 394 struct bkey_i_cookie k; in insert_test_extent() local 448 struct bkey_i_cookie k; in insert_test_overlapping_extent() local 482 struct bkey_s_c k; in test_snapshot_filter() local 546 struct bkey_i_cookie k; in rand_insert() local 568 struct bkey_i_cookie k[8]; in rand_insert_multi() local 601 struct bkey_s_c k; in rand_lookup() local [all …]
|
H A D | extent_update.c | 14 static unsigned bch2_bkey_nr_alloc_ptrs(struct bkey_s_c k) in bch2_bkey_nr_alloc_ptrs() 43 struct bkey_s_c k, in count_iters_for_insert() 117 struct bkey_s_c k; in bch2_extent_atomic_end() local 135 struct bkey_i *k) in bch2_extent_trim_atomic()
|
H A D | logged_ops.c | 34 struct bkey_s_c k) in resume_logged_op() 76 static int __bch2_logged_op_start(struct btree_trans *trans, struct bkey_i *k) in __bch2_logged_op_start() 91 int bch2_logged_op_start(struct btree_trans *trans, struct bkey_i *k) in bch2_logged_op_start() 97 int bch2_logged_op_finish(struct btree_trans *trans, struct bkey_i *k) in bch2_logged_op_finish()
|
/linux/drivers/md/bcache/ |
H A D | extents.c | 47 static bool __ptr_invalid(struct cache_set *c, const struct bkey *k) in __ptr_invalid() 68 static const char *bch_ptr_status(struct cache_set *c, const struct bkey *k) in bch_ptr_status() 97 void bch_extent_to_text(char *buf, size_t size, const struct bkey *k) in bch_extent_to_text() 126 static void bch_bkey_dump(struct btree_keys *keys, const struct bkey *k) in bch_bkey_dump() 149 bool __bch_btree_ptr_invalid(struct cache_set *c, const struct bkey *k) in __bch_btree_ptr_invalid() 166 static bool bch_btree_ptr_invalid(struct btree_keys *bk, const struct bkey *k) in bch_btree_ptr_invalid() 173 static bool btree_ptr_bad_expensive(struct btree *b, const struct bkey *k) in btree_ptr_bad_expensive() 205 static bool bch_btree_ptr_bad(struct btree_keys *bk, const struct bkey *k) in bch_btree_ptr_bad() 313 static void bch_subtract_dirty(struct bkey *k, in bch_subtract_dirty() 337 struct bkey *k = bch_btree_iter_next(iter); in bch_extent_insert_fixup() local [all …]
|
H A D | bset.h | 244 static inline bool bkey_written(struct btree_keys *b, struct bkey *k) in bkey_written() 261 #define __set_bytes(i, k) (sizeof(*(i)) + (k) * sizeof(uint64_t)) argument 264 #define __set_blocks(i, k, block_bytes) \ argument 323 struct bkey *k, *end; member 360 #define for_each_key_filter(b, k, stack_iter, filter) \ argument 365 #define for_each_key(b, k, stack_iter) \ argument 416 static inline void bkey_init(struct bkey *k) in bkey_init() 434 static inline bool bch_cut_front(const struct bkey *where, struct bkey *k) in bch_cut_front() 440 static inline bool bch_cut_back(const struct bkey *where, struct bkey *k) in bch_cut_back() 455 static inline void preceding_key(struct bkey *k, struct bkey **preceding_key_p) in preceding_key() [all …]
|
H A D | btree.c | 98 #define PTR_HASH(c, k) \ argument 127 void bkey_put(struct cache_set *c, struct bkey *k) in bkey_put() 542 static unsigned int btree_order(struct bkey *k) in btree_order() 547 static void mca_data_alloc(struct btree *b, struct bkey *k, gfp_t gfp) in mca_data_alloc() 581 struct bkey *k, gfp_t gfp) in mca_bucket_alloc() 847 static struct hlist_head *mca_hash(struct cache_set *c, struct bkey *k) in mca_hash() 852 static struct btree *mca_find(struct cache_set *c, struct bkey *k) in mca_find() 884 struct bkey *k) in mca_cannibalize() 922 struct bkey *k, int level) in mca_alloc() 1005 struct bkey *k, int level, bool write, in bch_btree_node_get() [all …]
|
H A D | bset.c | 23 struct bkey *k, *next; in bch_dump_bset() local 58 struct bkey *k; in __bch_count_data() local 69 struct bkey *k, *p = NULL; in __bch_check_keys() local 113 struct bkey *k = iter->data->k, *next = bkey_next(k); in bch_btree_iter_next_check() local 161 struct bkey *k = l->keys; in bch_keylist_pop() local 197 bool __bch_cut_front(const struct bkey *where, struct bkey *k) in __bch_cut_front() 217 bool __bch_cut_back(const struct bkey *where, struct bkey *k) in __bch_cut_back() 532 static unsigned int bkey_to_cacheline(struct bset_tree *t, struct bkey *k) in bkey_to_cacheline() 539 struct bkey *k) in bkey_to_cacheline_offset() 584 static inline unsigned int bfloat_mantissa(const struct bkey *k, in bfloat_mantissa() [all …]
|
/linux/lib/ |
H A D | klist.c | 84 void klist_init(struct klist *k, void (*get)(struct klist_node *), in klist_init() 94 static void add_head(struct klist *k, struct klist_node *n) in add_head() 101 static void add_tail(struct klist *k, struct klist_node *n) in add_tail() 108 static void klist_node_init(struct klist *k, struct klist_node *n) in klist_node_init() 122 void klist_add_head(struct klist_node *n, struct klist *k) in klist_add_head() 134 void klist_add_tail(struct klist_node *n, struct klist *k) in klist_add_tail() 148 struct klist *k = knode_klist(pos); in klist_add_behind() local 164 struct klist *k = knode_klist(pos); in klist_add_before() local 211 struct klist *k = knode_klist(n); in klist_put() local 280 void klist_iter_init_node(struct klist *k, struct klist_iter *i, in klist_iter_init_node() [all …]
|
H A D | bitmap.c | 40 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal() local 58 unsigned int k, lim = bits / BITS_PER_LONG; in __bitmap_or_equal() local 75 unsigned int k, lim = BITS_TO_LONGS(bits); in __bitmap_complement() local 95 unsigned k, lim = BITS_TO_LONGS(nbits); in __bitmap_shift_right() local 140 int k; in __bitmap_shift_left() local 232 unsigned int k; in __bitmap_and() local 248 unsigned int k; in __bitmap_or() local 259 unsigned int k; in __bitmap_xor() local 270 unsigned int k; in __bitmap_andnot() local 287 unsigned int k; in __bitmap_replace() local [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | hashmap.c | 14 static size_t hash_fn(long k, void *ctx) in hash_fn() 56 long oldk, k = i; in test_hashmap_generic() local 93 long k = entry->key; in test_hashmap_generic() local 106 long oldk, k = i; in test_hashmap_generic() local 141 long k = entry->key; in test_hashmap_generic() local 164 long oldk, k; in test_hashmap_generic() local 198 long oldk, k; in test_hashmap_generic() local 334 static size_t collision_hash_fn(long k, void *ctx) in collision_hash_fn() 416 long k = 0; in test_hashmap_empty() local
|
/linux/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
H A D | dcn_calc_auto.c | 42 int k; in scaler_settings_calculation() local 125 int k; in mode_support_and_system_configuration() local 1020 int k; in display_pipe_configuration() local 1178 int k; in dispclkdppclkdcfclk_deep_sleep_prefetch_parameters_watermarks_and_performance_calculation() local
|
/linux/arch/sparc/kernel/ |
H A D | termios.c | 33 int user_termios_to_kernel_termios(struct ktermios *k, in user_termios_to_kernel_termios() 56 struct ktermios *k) in kernel_termios_to_user_termios() 77 int user_termios_to_kernel_termios_1(struct ktermios *k, in user_termios_to_kernel_termios_1() 98 struct ktermios *k) in kernel_termios_to_user_termios_1()
|
/linux/fs/ubifs/ |
H A D | key.h | 103 static inline void ino_key_init_flash(const struct ubifs_info *c, void *k, in ino_key_init_flash() 181 static inline void dent_key_init_flash(const struct ubifs_info *c, void *k, in dent_key_init_flash() 233 static inline void xent_key_init_flash(const struct ubifs_info *c, void *k, in xent_key_init_flash() 333 static inline int key_type_flash(const struct ubifs_info *c, const void *k) in key_type_flash() 345 static inline ino_t key_inum(const struct ubifs_info *c, const void *k) in key_inum() 357 static inline ino_t key_inum_flash(const struct ubifs_info *c, const void *k) in key_inum_flash() 380 static inline uint32_t key_hash_flash(const struct ubifs_info *c, const void *k) in key_hash_flash() 404 const void *k) in key_block_flash()
|
/linux/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/ |
H A D | dml2_core_dcn4_calcs.c | 159 for (unsigned int k = 0; k < display_cfg->num_planes; k++) { in get_stream_output_bpp() local 209 for (unsigned int k = 0; k < num_planes; k++) { in dml_get_num_active_pipes() local 221 for (unsigned int k = 0; k < DML2_MAX_PLANES; ++k) { in dml_calc_pipe_plane_mapping() local 433 for (unsigned int k = 0; k < display_cfg->num_planes; ++k) { in PixelClockAdjustmentForProgressiveToInterlaceUnit() local 854 for (unsigned int k = 0; k < NumberOfActiveSurfaces; ++k) { in CalculateSwathWidth() local 1051 for (unsigned int k = 0; k < NumberOfActiveSurfaces; ++k) { in CalculateDETBufferSize() local 1103 for (unsigned int k = 0; k < display_cfg->num_streams; ++k) { in CalculateDETBufferSize() local 1108 for (unsigned int k = 0; k < display_cfg->num_streams; ++k) { in CalculateDETBufferSize() local 1114 for (unsigned int k = 0; k < NumberOfActiveSurfaces; ++k) { in CalculateDETBufferSize() local 1133 for (unsigned int k = 0; k < NumberOfActiveSurfaces; ++k) { in CalculateDETBufferSize() local [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dml/ |
H A D | display_mode_vba.c | 221 unsigned int k; in get_total_immediate_flip_bw() local 234 unsigned int k; in get_total_prefetch_bw() local 248 unsigned int k; in get_total_surface_size_in_mall_bytes() local 521 unsigned int j, k; in fetch_pipe_params() local 949 int k = 0; in cache_debug_params() local 1050 unsigned int k; in PixelClockAdjustmentForProgressiveToInterlaceUnit() local 1079 unsigned int k; in ModeSupportAndSystemConfiguration() local
|