| /linux/drivers/md/bcache/ |
| 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 | 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 | 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 | 339 const struct blk_crypto_key *bkey) in qcom_ice_program_wrapped_key() argument 343 .dusize = bkey->crypto_cfg.data_unit_size / 512, in qcom_ice_program_wrapped_key() 362 err = qcom_scm_ice_set_key(translate_hwkm_slot(ice, slot), bkey->bytes, in qcom_ice_program_wrapped_key() 363 bkey->size, cfg.capidx, cfg.dusize); in qcom_ice_program_wrapped_key()
|
| /linux/kernel/bpf/ |
| H A D | helpers.c | 3887 struct bpf_key *bkey; in bpf_lookup_user_key() local 3900 bkey = kmalloc(sizeof(*bkey), GFP_KERNEL); in bpf_lookup_user_key() 3901 if (!bkey) { in bpf_lookup_user_key() 3906 bkey->key = key_ref_to_ptr(key_ref); in bpf_lookup_user_key() 3907 bkey->has_ref = true; in bpf_lookup_user_key() 3909 return bkey; in bpf_lookup_user_key() 3935 struct bpf_key *bkey; in bpf_lookup_system_key() local 3940 bkey = kmalloc(sizeof(*bkey), GFP_ATOMIC); in bpf_lookup_system_key() 3941 if (!bkey) in bpf_lookup_system_key() 3944 bkey->key = (struct key *)(unsigned long)id; in bpf_lookup_system_key() [all …]
|
| /linux/arch/arm64/boot/dts/ti/ |
| H A D | Makefile | 95 k3-am6548-iot2050-advanced-m2-bkey-ekey-pcie-dtbs := k3-am6548-iot2050-advanced-m2.dtb \ 96 k3-am6548-iot2050-advanced-m2-bkey-ekey-pcie.dtbo 97 k3-am6548-iot2050-advanced-m2-bkey-usb3-dtbs := k3-am6548-iot2050-advanced-m2.dtb \ 98 k3-am6548-iot2050-advanced-m2-bkey-usb3.dtbo 103 dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced-m2-bkey-ekey-pcie.dtb 104 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
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3588-edgeble-neu6a-io.dtsi | 43 vcc3v3_bkey: regulator-vcc3v3-bkey {
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_btree.c | 3735 union xfs_btree_key bkey; /* key of block to insert */ in xfs_btree_insert() local 3742 key = &bkey; in xfs_btree_insert()
|