/linux/drivers/md/bcache/ |
H A D | bset.h | 172 struct bkey end; 204 struct bkey *l, struct bkey *r); 317 struct bkey *k, *end; 337 struct bkey *end); 423 void bch_bkey_copy_single_ptr(struct bkey *dest, const struct bkey *src, 425 bool __bch_cut_front(const struct bkey *where, struct bkey *k); 426 bool __bch_cut_back(const struct bkey *where, struct bkey *k); 428 static inline bool bch_cut_front(const struct bkey *where, struct bkey *k) in bch_cut_front() 434 static inline bool bch_cut_back(const struct bkey *where, struct bkey *k) in bch_cut_back() 489 struct bkey *keys; [all …]
|
H A D | bcache_ondisk.h | 23 struct bkey { struct 30 BITMASK(name, struct bkey, field, offset, size) argument 56 static inline __u64 KEY_OFFSET(const struct bkey *k) in KEY_OFFSET() 72 ((struct bkey) { \ 112 static inline void bkey_copy_key(struct bkey *dest, const struct bkey *src) in bkey_copy_key() 118 static inline struct bkey *bkey_next(const struct bkey *k) in bkey_next() 122 return (struct bkey *) (d + bkey_u64s(k)); in bkey_next() 125 static inline struct bkey *bkey_idx(const struct bkey *k, unsigned int nr_keys) in bkey_idx() 129 return (struct bkey *) (d + nr_keys); in bkey_idx() 363 DECLARE_FLEX_ARRAY(struct bkey, start); [all …]
|
H A D | btree.h | 200 void bkey_put(struct cache_set *c, struct bkey *k); 272 struct bkey *k, int level, bool write, 276 struct bkey *check_key); 278 atomic_t *journal_ref, struct bkey *replace_key); 382 struct bkey *from, btree_map_nodes_fn *fn) in bch_btree_map_nodes() 389 struct bkey *from, in bch_btree_map_leaf_nodes() 396 struct bkey *k); 400 struct bkey *from, btree_map_keys_fn *fn, 407 struct bkey *end, keybuf_pred_fn *pred); 409 struct bkey *end); [all …]
|
H A D | bset.c | 23 struct bkey *k, *next; in bch_dump_bset() 58 struct bkey *k; in __bch_count_data() 71 struct bkey *k, *p = NULL; in __bch_check_keys() 188 void bch_bkey_copy_single_ptr(struct bkey *dest, const struct bkey *src, in bch_bkey_copy_single_ptr() 201 bool __bch_cut_front(const struct bkey *where, struct bkey *k) in __bch_cut_front() 221 bool __bch_cut_back(const struct bkey *where, struct bkey *k) in __bch_cut_back() 543 struct bkey *k) in bkey_to_cacheline_offset() 942 struct bkey *l, *r; 968 struct bkey *l, *r; in bset_search_tree() 1110 struct bkey *end) in bch_btree_iter_push() [all …]
|
H A D | extents.c | 229 struct bkey *insert, in bch_btree_ptr_insert_fixup() 231 struct bkey *replace_key) in bch_btree_ptr_insert_fixup() 278 struct bkey *tmp) in bch_extent_sort_fixup() 328 static void bch_subtract_dirty(struct bkey *k, in bch_subtract_dirty() 339 struct bkey *insert, in bch_extent_insert_fixup() 341 struct bkey *replace_key) in bch_extent_insert_fixup() 352 struct bkey *k = bch_btree_iter_next(iter); in bch_extent_insert_fixup() 420 struct bkey *top; in bch_extent_insert_fixup() 590 static uint64_t merge_chksums(struct bkey *l, struct bkey *r) in merge_chksums() 597 struct bkey *l, in bch_extent_merge() [all …]
|
H A D | extents.h | 8 struct bkey; 11 void bch_extent_to_text(char *buf, size_t size, const struct bkey *k); 12 bool __bch_btree_ptr_invalid(struct cache_set *c, const struct bkey *k); 13 bool __bch_extent_invalid(struct cache_set *c, const struct bkey *k);
|
H A D | bcache.h | 233 struct bkey last_scanned; 241 struct bkey start; 242 struct bkey end; 639 struct bkey gc_done; 748 struct bkey key; 814 const struct bkey *k, in PTR_BUCKET_NR() 821 const struct bkey *k, in PTR_BUCKET() 978 struct bkey *k, unsigned int ptr); 987 void bch_bucket_free(struct cache_set *c, struct bkey *k); 991 struct bkey *k, bool wait); [all …]
|
H A D | btree.c | 1229 struct bkey *k) in __bch_btree_mark_key() 1311 struct bkey *k; in btree_gc_mark_node() 1370 struct bkey *k; in btree_gc_coalesce() 1574 struct bkey *k; in btree_gc_count_keys() 1617 struct bkey *k; in btree_gc_recurse() 1966 struct bkey *k, *p; in bch_btree_check_thread() 2520 struct bkey *k; in bch_btree_insert() 2565 struct bkey *k; in bch_btree_map_nodes_recurse() 2599 struct bkey *k; in bch_btree_map_keys_recurse() 2651 struct bkey *end; [all …]
|
H A D | alloc.c | 507 void bch_bucket_free(struct cache_set *c, struct bkey *k) in bch_bucket_free() 516 struct bkey *k, bool wait) in __bch_bucket_alloc_set() 544 struct bkey *k, bool wait) in bch_bucket_alloc_set() 589 const struct bkey *search, in pick_data_bucket() 591 struct bkey *alloc) in pick_data_bucket() 630 struct bkey *k, in bch_alloc_sectors()
|
H A D | writeback.c | 641 static bool dirty_pred(struct keybuf *buf, struct bkey *k) in dirty_pred() 704 struct bkey start = KEY(dc->disk.id, 0, 0); in refill_dirty() 705 struct bkey end = KEY(dc->disk.id, MAX_KEY_OFFSET, 0); in refill_dirty() 706 struct bkey start_pos; in refill_dirty() 854 struct bkey *k) in sectors_dirty_init_fn() 874 struct bkey *k) in bch_root_node_dirty_init() 912 struct bkey *k, *p; in bch_dirty_init_thread() 982 struct bkey *k = NULL; in bch_sectors_dirty_init()
|
H A D | request.c | 40 static void bio_csum(struct bio *bio, struct bkey *k) in bio_csum() 62 struct bkey *replace_key = op->replace ? &op->replace_key : NULL; in CLOSURE_CALLBACK() 152 struct bkey *src = op->insert_keys.keys, *dst = op->insert_keys.keys; in CLOSURE_CALLBACK() 155 struct bkey *n = bkey_next(src); in CLOSURE_CALLBACK() 206 struct bkey *k; in CLOSURE_CALLBACK() 527 static int cache_lookup_fn(struct btree_op *op, struct btree *b, struct bkey *k) in cache_lookup_fn() 531 struct bkey *bio_key; in cache_lookup_fn() 985 struct bkey start = KEY(dc->disk.id, bio->bi_iter.bi_sector, 0); in cached_dev_write() 986 struct bkey end = KEY(dc->disk.id, bio_end_sector(bio), 0); in cached_dev_write()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_lookup_key.c | 28 struct bpf_key *bkey; in BPF_PROG() local 36 bkey = bpf_lookup_user_key(key_serial, flags); in BPF_PROG() 38 bkey = bpf_lookup_system_key(key_id); in BPF_PROG() 40 if (!bkey) in BPF_PROG() 43 bpf_key_put(bkey); in BPF_PROG()
|
H A D | rcu_read_lock.c | 247 struct bpf_key *bkey; in BPF_PROG() local 251 bkey = bpf_lookup_user_key(key_serial, flags); in BPF_PROG() 253 if (!bkey) in BPF_PROG() 255 bpf_key_put(bkey); in BPF_PROG()
|
/linux/fs/bcachefs/ |
H A D | bkey_types.h | 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; 57 struct bkey *k; 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() 102 struct bkey k; \ 111 const struct bkey *k; \ 121 struct bkey *k; \
|
H A D | bkey.h | 251 return bkey_packed(k) ? NULL : (const struct bkey *) k; in packed_to_bkey_c() 303 static inline u64 bkey_start_offset(const struct bkey *k) in bkey_start_offset() 308 static inline struct bpos bkey_start_pos(const struct bkey *k) in bkey_start_pos() 365 struct bkey __bch2_bkey_unpack_key(const struct bkey_format *, 400 struct bkey *dst, in __bkey_unpack_key_format_checked() 409 struct bkey dst2 = __bch2_bkey_unpack_key(&b->format, src); in __bkey_unpack_key_format_checked() 418 static inline struct bkey 422 struct bkey dst; in bkey_unpack_key_format_checked() 429 struct bkey *dst, in __bkey_unpack_key() 472 struct bkey *u) in bkey_disassemble() [all …]
|
H A D | bkey_methods.h | 10 struct bkey; 60 void bch2_bkey_to_text(struct printbuf *, const struct bkey *); 70 static inline bool bch2_bkey_maybe_mergable(const struct bkey *l, const struct bkey *r) in bch2_bkey_maybe_mergable()
|
H A D | bkey_cmp.h | 113 struct bkey unpacked; in bch2_bkey_cmp_packed_inlined() 126 return bpos_cmp(((struct bkey *) l)->p, ((struct bkey *) r)->p); in bch2_bkey_cmp_packed_inlined()
|
H A D | extents.h | 152 bch2_extent_crc_unpack(const struct bkey *k, const union bch_extent_crc *crc) in bch2_extent_crc_unpack() 477 static inline bool bkey_is_btree_ptr(const struct bkey *k) in bkey_is_btree_ptr() 488 static inline bool bkey_extent_is_direct_data(const struct bkey *k) in bkey_extent_is_direct_data() 501 static inline bool bkey_extent_is_inline_data(const struct bkey *k) in bkey_extent_is_inline_data() 507 static inline unsigned bkey_inline_data_offset(const struct bkey *k) in bkey_inline_data_offset() 519 static inline unsigned bkey_inline_data_bytes(const struct bkey *k) in bkey_inline_data_bytes() 526 static inline bool bkey_extent_is_data(const struct bkey *k) in bkey_extent_is_data() 536 static inline bool bkey_extent_is_allocation(const struct bkey *k) in bkey_extent_is_allocation() 732 static inline enum bch_extent_overlap bch2_extent_overlap(const struct bkey *k, in bch2_extent_overlap() 733 const struct bkey *m) in bch2_extent_overlap() [all …]
|
H A D | bkey.c | 53 const struct bkey *unpacked, in bch2_bkey_pack_verify() 56 struct bkey tmp; in bch2_bkey_pack_verify() 65 if (memcmp(&tmp, unpacked, sizeof(struct bkey))) { in bch2_bkey_pack_verify() 100 const struct bkey *unpacked, in bch2_bkey_pack_verify() 266 struct bkey __bch2_bkey_unpack_key(const struct bkey_format *format, in __bch2_bkey_unpack_key() 270 struct bkey out; in __bch2_bkey_unpack_key() 317 bool bch2_bkey_pack_key(struct bkey_packed *out, const struct bkey *in, in bch2_bkey_pack_key() 1001 offsetof(struct bkey, field), \ in bch2_compile_bkey_format() 1002 sizeof(((struct bkey *) NULL)->field), \ in bch2_compile_bkey_format() 1045 const struct bkey *l_unpacked; in __bch2_bkey_cmp_left_packed() [all …]
|
H A D | bcachefs_format.h | 199 struct bkey { struct 292 __u8 pad[sizeof(struct bkey) - 3]; 300 #define BKEY_U64s (sizeof(struct bkey) / sizeof(__u64)) 320 [BKEY_FIELD_##name] = (sizeof(((struct bkey *) NULL)->field) * 8) 340 struct bkey k; 345 ((struct bkey) { \ 352 ((struct bkey) { \ 359 static inline void bkey_init(struct bkey *k) in bkey_init()
|
H A D | bset.c | 59 struct bkey uk, n; in bch2_dump_bset() 124 struct bkey uk = bkey_unpack_key(b, k); in bch2_dump_btree_node_iter() 171 struct bkey ku = bkey_unpack_key(b, k); in bch2_btree_node_iter_next_check() 172 struct bkey nu = bkey_unpack_key(b, n); in bch2_btree_node_iter_next_check() 254 struct bkey k1 = bkey_unpack_key(b, prev); in bch2_verify_insert_pos() 255 struct bkey k2 = bkey_unpack_key(b, insert); in bch2_verify_insert_pos() 273 struct bkey k1 = bkey_unpack_key(b, insert); in bch2_verify_insert_pos() 274 struct bkey k2 = bkey_unpack_key(b, next); in bch2_verify_insert_pos() 1511 struct bkey *u) in bch2_btree_node_iter_peek_unpack() 1545 struct bkey uk; in bch2_bfloat_to_text()
|
/linux/include/trace/events/ |
H A D | bcache.h | 41 DECLARE_EVENT_CLASS(bkey, 42 TP_PROTO(struct bkey *k), 187 DEFINE_EVENT(bkey, bcache_cache_insert, 188 TP_PROTO(struct bkey *k), 210 TP_PROTO(struct bkey *k), 322 DEFINE_EVENT(bkey, bcache_gc_copy, 323 TP_PROTO(struct bkey *k), 328 TP_PROTO(struct bkey *k), 492 DEFINE_EVENT(bkey, bcache_writeback, 493 TP_PROTO(struct bkey *k), [all …]
|
/linux/lib/ |
H A D | btree.c | 160 longcpy(bkey(geo, node, n), key, geo->keylen); in setkey() 171 longset(bkey(geo, node, n), 0, geo->keylen); in clearpair() 218 longcpy(key, bkey(geo, node, 0), geo->keylen); in btree_last() 333 retry_key = bkey(geo, oldnode, i); in btree_get_prev() 342 longcpy(__key, bkey(geo, node, i), geo->keylen); in btree_get_prev() 472 bkey(geo, node, fill / 2 - 1), in btree_insert_level() 479 setkey(geo, new, i, bkey(geo, node, i)); in btree_insert_level() 486 setkey(geo, node, i, bkey(geo, node, fill - 1)); in btree_insert_level() 496 setkey(geo, node, i, bkey(geo, node, i - 1)); in btree_insert_level() 609 setkey(geo, node, i, bkey(geo, node, i + 1)); in btree_remove_level() [all …]
|
/linux/kernel/trace/ |
H A D | bpf_trace.c | 1269 struct bpf_key *bkey; in bpf_lookup_user_key() local 1282 bkey = kmalloc(sizeof(*bkey), GFP_KERNEL); in bpf_lookup_user_key() 1283 if (!bkey) { in bpf_lookup_user_key() 1289 bkey->has_ref = true; in bpf_lookup_user_key() 1291 return bkey; in bpf_lookup_user_key() 1322 bkey = kmalloc(sizeof(*bkey), GFP_ATOMIC); in bpf_lookup_system_key() 1323 if (!bkey) in bpf_lookup_system_key() 1329 return bkey; in bpf_lookup_system_key() 1341 if (bkey->has_ref) in bpf_key_put() 1342 key_put(bkey->key); in bpf_key_put() [all …]
|
/linux/arch/arm64/boot/dts/ti/ |
H A D | Makefile | 76 k3-am6548-iot2050-advanced-m2-bkey-ekey-pcie-dtbs := k3-am6548-iot2050-advanced-m2.dtb \ 77 k3-am6548-iot2050-advanced-m2-bkey-ekey-pcie.dtbo 78 k3-am6548-iot2050-advanced-m2-bkey-usb3-dtbs := k3-am6548-iot2050-advanced-m2.dtb \ 79 k3-am6548-iot2050-advanced-m2-bkey-usb3.dtbo 84 dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced-m2-bkey-ekey-pcie.dtb 85 dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced-m2-bkey-usb3.dtb
|