| /linux/drivers/md/bcache/ |
| H A D | bset.h | 172 struct bkey end; 192 struct bkey *(*sort_fixup)(struct btree_iter *iter, 193 struct bkey *tmp); 195 struct bkey *insert, 197 struct bkey *replace_key); 199 const struct bkey *k); 201 const struct bkey *k); 203 struct bkey *l, struct bkey *r); 206 const struct bkey *k); 208 const struct bkey *k); [all …]
|
| H A D | bcache_ondisk.h | 23 struct bkey { struct 30 BITMASK(name, struct bkey, field, offset, size) argument 33 static inline __u64 name(const struct bkey *k, unsigned int i) \ 36 static inline void SET_##name(struct bkey *k, unsigned int i, __u64 v) \ 56 static inline __u64 KEY_OFFSET(const struct bkey *k) in KEY_OFFSET() 61 static inline void SET_KEY_OFFSET(struct bkey *k, __u64 v) in SET_KEY_OFFSET() 72 ((struct bkey) { \ 99 static inline unsigned long bkey_u64s(const struct bkey *k) in bkey_u64s() 101 return (sizeof(struct bkey) / sizeof(__u64)) + KEY_PTRS(k); in bkey_u64s() 104 static inline unsigned long bkey_bytes(const struct bkey *k) in bkey_bytes() [all …]
|
| H A D | bset.c | 23 struct bkey *k, *next; in bch_dump_bset() 58 struct bkey *k; in __bch_count_data() 69 struct bkey *k, *p = NULL; in __bch_check_keys() 113 struct bkey *k = iter->data->k, *next = bkey_next(k); in bch_btree_iter_next_check() 159 struct bkey *bch_keylist_pop(struct keylist *l) in bch_keylist_pop() 161 struct bkey *k = l->keys; in bch_keylist_pop() 184 void bch_bkey_copy_single_ptr(struct bkey *dest, const struct bkey *src, in bch_bkey_copy_single_ptr() 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() 525 static struct bkey *cacheline_to_bkey(struct bset_tree *t, in cacheline_to_bkey() [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); 284 void bch_initial_mark_key(struct cache_set *c, int level, struct bkey *k); 379 struct bkey *from, btree_map_nodes_fn *fn, int flags); 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); 398 struct bkey *from, btree_map_keys_fn *fn, int flags); [all …]
|
| 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() 228 struct bkey *insert, in bch_btree_ptr_insert_fixup() 230 struct bkey *replace_key) in bch_btree_ptr_insert_fixup() [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() 834 static inline uint8_t ptr_stale(struct cache_set *c, const struct bkey *k, in ptr_stale() 840 static inline bool ptr_available(struct cache_set *c, const struct bkey *k, in ptr_available() 978 struct bkey *k, unsigned int ptr); [all …]
|
| H A D | btree.c | 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() 1061 static void btree_node_prefetch(struct btree *parent, struct bkey *k) in btree_node_prefetch() [all …]
|
| H A D | alloc.c | 477 void bch_bucket_free(struct cache_set *c, struct bkey *k) in bch_bucket_free() 486 struct bkey *k, bool wait) in __bch_bucket_alloc_set() 514 struct bkey *k, bool wait) in bch_bucket_alloc_set() 559 const struct bkey *search, in pick_data_bucket() 561 struct bkey *alloc) in pick_data_bucket() 600 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() 981 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()
|
| H A D | journal.c | 296 struct bkey *k; in bch_journal_mark() 352 struct bkey *k; in bch_journal_replay() 651 struct bkey *k = &c->journal.key; in journal_reclaim() 754 struct bkey *k = &c->journal.key;
|
| H A D | io.c | 46 struct bkey *k, unsigned int ptr) in bch_submit_bbio()
|
| H A D | movinggc.c | 22 static bool moving_pred(struct keybuf *buf, struct bkey *k) in moving_pred()
|
| H A D | debug.c | 166 static bool dump_pred(struct keybuf *buf, struct bkey *k) in dump_pred()
|
| /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 | 249 struct bpf_key *bkey; in BPF_PROG() local 253 bkey = bpf_lookup_user_key(key_serial, flags); in BPF_PROG() 255 if (!bkey) in BPF_PROG() 257 bpf_key_put(bkey); in BPF_PROG()
|
| /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), 209 DEFINE_EVENT(bkey, bcache_journal_replay_key, 210 TP_PROTO(struct bkey *k), 322 DEFINE_EVENT(bkey, bcache_gc_copy, 323 TP_PROTO(struct bkey *k), 327 DEFINE_EVENT(bkey, bcache_gc_copy_collision, 328 TP_PROTO(struct bkey *k), [all …]
|
| /linux/lib/ |
| H A D | btree.c | 147 static unsigned long *bkey(struct btree_geo *geo, unsigned long *node, int n) in bkey() function 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() 226 return longcmp(bkey(geo, node, pos), key, geo->keylen); in keycmp() 333 retry_key = bkey(geo, oldnode, i); in btree_get_prev() 342 longcpy(__key, bkey(geo, node, i), geo->keylen); in btree_get_prev() 419 setkey(geo, node, 0, bkey(geo, head->node, fill - 1)); in btree_grow() 472 bkey(geo, node, fill / 2 - 1), in btree_insert_level() 479 setkey(geo, new, i, bkey(geo, node, i)); in btree_insert_level() [all …]
|
| /linux/drivers/soc/qcom/ |
| H A D | ice.c | 305 const struct blk_crypto_key *bkey) in qcom_ice_program_wrapped_key() argument 309 .dusize = bkey->crypto_cfg.data_unit_size / 512, in qcom_ice_program_wrapped_key() 328 err = qcom_scm_ice_set_key(translate_hwkm_slot(ice, slot), bkey->bytes, in qcom_ice_program_wrapped_key() 329 bkey->size, cfg.capidx, cfg.dusize); in qcom_ice_program_wrapped_key()
|
| /linux/kernel/bpf/ |
| H A D | helpers.c | 3781 struct bpf_key *bkey; in bpf_lookup_user_key() local 3794 bkey = kmalloc(sizeof(*bkey), GFP_KERNEL); in bpf_lookup_user_key() 3795 if (!bkey) { in bpf_lookup_user_key() 3800 bkey->key = key_ref_to_ptr(key_ref); in bpf_lookup_user_key() 3801 bkey->has_ref = true; in bpf_lookup_user_key() 3803 return bkey; in bpf_lookup_user_key() 3829 struct bpf_key *bkey; in bpf_lookup_system_key() local 3834 bkey = kmalloc(sizeof(*bkey), GFP_ATOMIC); in bpf_lookup_system_key() 3835 if (!bkey) in bpf_lookup_system_key() 3838 bkey->key = (struct key *)(unsigned long)id; in bpf_lookup_system_key() [all …]
|
| /linux/arch/arm64/boot/dts/ti/ |
| H A D | Makefile | 92 k3-am6548-iot2050-advanced-m2-bkey-ekey-pcie-dtbs := k3-am6548-iot2050-advanced-m2.dtb \ 93 k3-am6548-iot2050-advanced-m2-bkey-ekey-pcie.dtbo 94 k3-am6548-iot2050-advanced-m2-bkey-usb3-dtbs := k3-am6548-iot2050-advanced-m2.dtb \ 95 k3-am6548-iot2050-advanced-m2-bkey-usb3.dtbo 100 dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced-m2-bkey-ekey-pcie.dtb 101 dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced-m2-bkey-usb3.dtb
|
| H A D | k3-am6548-iot2050-advanced-m2.dts | 27 main_bkey_pcie_reset: main-bkey-pcie-reset-default-pins {
|
| /linux/tools/testing/selftests/net/ovpn/ |
| H A D | ovpn-cli.c | 341 __u8 *bkey = NULL; in ovpn_parse_key() local 385 bkey = malloc(olen); in ovpn_parse_key() 386 if (!bkey) { in ovpn_parse_key() 391 ret = mbedtls_base64_decode(bkey, olen, &olen, ckey, ckey_len); in ovpn_parse_key() 422 memcpy(ctx->key_enc, bkey + KEY_LEN * idx_enc, KEY_LEN); in ovpn_parse_key() 423 memcpy(ctx->key_dec, bkey + KEY_LEN * idx_dec, KEY_LEN); in ovpn_parse_key() 424 memcpy(ctx->nonce, bkey + 2 * KEY_LEN, NONCE_LEN); in ovpn_parse_key() 430 free(bkey); in ovpn_parse_key()
|
| /linux/arch/s390/include/asm/ |
| H A D | qdio.h | 43 u32 bkey : 4; member
|