key 51 arch/arm/crypto/aes-neonbs-glue.c struct aesbs_ctx key; key 56 arch/arm/crypto/aes-neonbs-glue.c struct aesbs_ctx key; key 62 arch/arm/crypto/aes-neonbs-glue.c struct aesbs_ctx key; /* must be first member */ key 136 arch/arm/crypto/aes-neonbs-glue.c ctx->key.rounds = 6 + key_len / 4; key 139 arch/arm/crypto/aes-neonbs-glue.c aesbs_convert_key(ctx->key.rk, rk.key_enc, ctx->key.rounds); key 175 arch/arm/crypto/aes-neonbs-glue.c ctx->key.rk, ctx->key.rounds, blocks, key 211 arch/arm/crypto/aes-neonbs-glue.c ctx->key.rounds = 6 + key_len / 4; key 214 arch/arm/crypto/aes-neonbs-glue.c aesbs_convert_key(ctx->key.rk, ctx->fallback.key_enc, ctx->key.rounds); key 371 arch/arm/crypto/aes-neonbs-glue.c fn(walk.dst.virt.addr, walk.src.virt.addr, ctx->key.rk, key 372 arch/arm/crypto/aes-neonbs-glue.c ctx->key.rounds, blocks, walk.iv, reorder_last_tweak); key 117 arch/arm/crypto/chacha-neon-glue.c hchacha_block_neon(state, subctx.key, ctx->nrounds); key 38 arch/arm/crypto/crc32-ce-glue.c u32 *key = crypto_tfm_ctx(tfm); key 40 arch/arm/crypto/crc32-ce-glue.c *key = 0; key 46 arch/arm/crypto/crc32-ce-glue.c u32 *key = crypto_tfm_ctx(tfm); key 48 arch/arm/crypto/crc32-ce-glue.c *key = ~0; key 52 arch/arm/crypto/crc32-ce-glue.c static int crc32_setkey(struct crypto_shash *hash, const u8 *key, key 61 arch/arm/crypto/crc32-ce-glue.c *mctx = le32_to_cpup((__le32 *)key); key 69 arch/arm/crypto/ghash-ce-glue.c struct ghash_key *key, const char *head) key 73 arch/arm/crypto/ghash-ce-glue.c pmull_ghash_update(blocks, dg, src, key, head); key 90 arch/arm/crypto/ghash-ce-glue.c gf128mul_lle(&dst, &key->k); key 107 arch/arm/crypto/ghash-ce-glue.c struct ghash_key *key = crypto_shash_ctx(desc->tfm); key 121 arch/arm/crypto/ghash-ce-glue.c ghash_do_update(blocks, ctx->digest, src, key, key 137 arch/arm/crypto/ghash-ce-glue.c struct ghash_key *key = crypto_shash_ctx(desc->tfm); key 140 arch/arm/crypto/ghash-ce-glue.c ghash_do_update(1, ctx->digest, ctx->buf, key, NULL); key 163 arch/arm/crypto/ghash-ce-glue.c struct ghash_key *key = crypto_shash_ctx(tfm); key 172 arch/arm/crypto/ghash-ce-glue.c memcpy(&key->k, inkey, GHASH_BLOCK_SIZE); key 173 arch/arm/crypto/ghash-ce-glue.c ghash_reflect(key->h, &key->k); key 175 arch/arm/crypto/ghash-ce-glue.c h = key->k; key 176 arch/arm/crypto/ghash-ce-glue.c gf128mul_lle(&h, &key->k); key 177 arch/arm/crypto/ghash-ce-glue.c ghash_reflect(key->h2, &h); key 179 arch/arm/crypto/ghash-ce-glue.c gf128mul_lle(&h, &key->k); key 180 arch/arm/crypto/ghash-ce-glue.c ghash_reflect(key->h3, &h); key 182 arch/arm/crypto/ghash-ce-glue.c gf128mul_lle(&h, &key->k); key 183 arch/arm/crypto/ghash-ce-glue.c ghash_reflect(key->h4, &h); key 294 arch/arm/crypto/ghash-ce-glue.c static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, key 304 arch/arm/crypto/ghash-ce-glue.c err = crypto_ahash_setkey(child, key, keylen); key 16 arch/arm/crypto/nhpoly1305-neon-glue.c asmlinkage void nh_neon(const u32 *key, const u8 *message, size_t message_len, key 20 arch/arm/crypto/nhpoly1305-neon-glue.c static void _nh_neon(const u32 *key, const u8 *message, size_t message_len, key 23 arch/arm/crypto/nhpoly1305-neon-glue.c nh_neon(key, message, message_len, (u8 *)hash); key 12 arch/arm/include/asm/jump_label.h static __always_inline bool arch_static_branch(struct static_key *key, bool branch) key 19 arch/arm/include/asm/jump_label.h : : "i" (&((char *)key)[branch]) : : l_yes); key 26 arch/arm/include/asm/jump_label.h static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) key 33 arch/arm/include/asm/jump_label.h : : "i" (&((char *)key)[branch]) : : l_yes); key 45 arch/arm/include/asm/jump_label.h jump_label_t key; key 555 arch/arm/kvm/coproc.c static int match_reg(const void *key, const void *elt) key 557 arch/arm/kvm/coproc.c const unsigned long pval = (unsigned long)key; key 121 arch/arm/mach-highbank/highbank.c u32 key = *(u32 *)data; key 126 arch/arm/mach-highbank/highbank.c if (key == KEY_POWER) key 128 arch/arm/mach-highbank/highbank.c else if (key == 0xffff) key 244 arch/arm/mach-pxa/mioa701.c #define MIO_KEY(key, _gpio, _desc, _wakeup) \ key 245 arch/arm/mach-pxa/mioa701.c { .code = (key), .gpio = (_gpio), .active_low = 0, \ key 105 arch/arm64/crypto/aes-ce-ccm-glue.c static void ccm_update_mac(struct crypto_aes_ctx *key, u8 mac[], u8 const in[], key 110 arch/arm64/crypto/aes-ce-ccm-glue.c ce_aes_ccm_auth_data(mac, in, abytes, macp, key->key_enc, key 111 arch/arm64/crypto/aes-ce-ccm-glue.c num_rounds(key)); key 125 arch/arm64/crypto/aes-ce-ccm-glue.c aes_encrypt(key, mac, mac); key 133 arch/arm64/crypto/aes-ce-ccm-glue.c aes_encrypt(key, mac, mac); key 122 arch/arm64/crypto/aes-glue.c struct crypto_aes_ctx key; key 796 arch/arm64/crypto/aes-glue.c err = aes_expandkey(&ctx->key, in_key, key_len); key 826 arch/arm64/crypto/aes-glue.c aes_ecb_encrypt(ctx->consts, (u8[AES_BLOCK_SIZE]){}, ctx->key.key_enc, key 847 arch/arm64/crypto/aes-glue.c u8 key[AES_BLOCK_SIZE]; key 855 arch/arm64/crypto/aes-glue.c aes_ecb_encrypt(key, ks[0], ctx->key.key_enc, rounds, 1); key 856 arch/arm64/crypto/aes-glue.c aes_ecb_encrypt(ctx->consts, ks[1], ctx->key.key_enc, rounds, 2); key 859 arch/arm64/crypto/aes-glue.c return cbcmac_setkey(tfm, key, sizeof(key)); key 911 arch/arm64/crypto/aes-glue.c mac_do_update(&tctx->key, p, blocks, ctx->dg, key 941 arch/arm64/crypto/aes-glue.c mac_do_update(&tctx->key, NULL, 0, ctx->dg, (ctx->len != 0), 0); key 959 arch/arm64/crypto/aes-glue.c mac_do_update(&tctx->key, consts, 1, ctx->dg, 0, 1); key 62 arch/arm64/crypto/aes-neonbs-glue.c struct aesbs_ctx key; key 67 arch/arm64/crypto/aes-neonbs-glue.c struct aesbs_ctx key; /* must be first member */ key 72 arch/arm64/crypto/aes-neonbs-glue.c struct aesbs_ctx key; key 147 arch/arm64/crypto/aes-neonbs-glue.c ctx->key.rounds = 6 + key_len / 4; key 152 arch/arm64/crypto/aes-neonbs-glue.c aesbs_convert_key(ctx->key.rk, rk.key_enc, ctx->key.rounds); key 173 arch/arm64/crypto/aes-neonbs-glue.c ctx->enc, ctx->key.rounds, blocks, key 199 arch/arm64/crypto/aes-neonbs-glue.c ctx->key.rk, ctx->key.rounds, blocks, key 219 arch/arm64/crypto/aes-neonbs-glue.c ctx->key.rounds = 6 + key_len / 4; key 222 arch/arm64/crypto/aes-neonbs-glue.c aesbs_convert_key(ctx->key.rk, ctx->fallback.key_enc, ctx->key.rounds); key 372 arch/arm64/crypto/aes-neonbs-glue.c ctx->key.rounds, 1); key 375 arch/arm64/crypto/aes-neonbs-glue.c fn(out, in, ctx->key.rk, ctx->key.rounds, blocks, key 412 arch/arm64/crypto/aes-neonbs-glue.c neon_aes_xts_encrypt(out, in, ctx->cts.key_enc, ctx->key.rounds, key 415 arch/arm64/crypto/aes-neonbs-glue.c neon_aes_xts_decrypt(out, in, ctx->cts.key_dec, ctx->key.rounds, key 114 arch/arm64/crypto/chacha-neon-glue.c hchacha_block_neon(state, subctx.key, ctx->nrounds); key 82 arch/arm64/crypto/ghash-ce-glue.c struct ghash_key *key, const char *head, key 90 arch/arm64/crypto/ghash-ce-glue.c simd_update(blocks, dg, src, key, head); key 107 arch/arm64/crypto/ghash-ce-glue.c gf128mul_lle(&dst, &key->k); key 131 arch/arm64/crypto/ghash-ce-glue.c struct ghash_key *key = crypto_shash_ctx(desc->tfm); key 148 arch/arm64/crypto/ghash-ce-glue.c ghash_do_update(chunk, ctx->digest, src, key, key 180 arch/arm64/crypto/ghash-ce-glue.c struct ghash_key *key = crypto_shash_ctx(desc->tfm); key 184 arch/arm64/crypto/ghash-ce-glue.c ghash_do_update(1, ctx->digest, ctx->buf, key, NULL, key 200 arch/arm64/crypto/ghash-ce-glue.c struct ghash_key *key = crypto_shash_ctx(desc->tfm); key 204 arch/arm64/crypto/ghash-ce-glue.c ghash_do_update(1, ctx->digest, ctx->buf, key, NULL, key 225 arch/arm64/crypto/ghash-ce-glue.c static int __ghash_setkey(struct ghash_key *key, key 231 arch/arm64/crypto/ghash-ce-glue.c memcpy(&key->k, inkey, GHASH_BLOCK_SIZE); key 233 arch/arm64/crypto/ghash-ce-glue.c ghash_reflect(key->h, &key->k); key 235 arch/arm64/crypto/ghash-ce-glue.c h = key->k; key 236 arch/arm64/crypto/ghash-ce-glue.c gf128mul_lle(&h, &key->k); key 237 arch/arm64/crypto/ghash-ce-glue.c ghash_reflect(key->h2, &h); key 239 arch/arm64/crypto/ghash-ce-glue.c gf128mul_lle(&h, &key->k); key 240 arch/arm64/crypto/ghash-ce-glue.c ghash_reflect(key->h3, &h); key 242 arch/arm64/crypto/ghash-ce-glue.c gf128mul_lle(&h, &key->k); key 243 arch/arm64/crypto/ghash-ce-glue.c ghash_reflect(key->h4, &h); key 251 arch/arm64/crypto/ghash-ce-glue.c struct ghash_key *key = crypto_shash_ctx(tfm); key 258 arch/arm64/crypto/ghash-ce-glue.c return __ghash_setkey(key, inkey, keylen); key 307 arch/arm64/crypto/ghash-ce-glue.c u8 key[GHASH_BLOCK_SIZE]; key 316 arch/arm64/crypto/ghash-ce-glue.c aes_encrypt(&ctx->aes_key, key, (u8[AES_BLOCK_SIZE]){}); key 318 arch/arm64/crypto/ghash-ce-glue.c return __ghash_setkey(&ctx->ghash_key, key, sizeof(be128)); key 16 arch/arm64/crypto/nhpoly1305-neon-glue.c asmlinkage void nh_neon(const u32 *key, const u8 *message, size_t message_len, key 20 arch/arm64/crypto/nhpoly1305-neon-glue.c static void _nh_neon(const u32 *key, const u8 *message, size_t message_len, key 23 arch/arm64/crypto/nhpoly1305-neon-glue.c nh_neon(key, message, message_len, (u8 *)hash); key 143 arch/arm64/include/asm/compat.h compat_key_t key; key 18 arch/arm64/include/asm/jump_label.h static __always_inline bool arch_static_branch(struct static_key *key, key 28 arch/arm64/include/asm/jump_label.h : : "i"(&((char *)key)[branch]) : : l_yes); key 35 arch/arm64/include/asm/jump_label.h static __always_inline bool arch_static_branch_jump(struct static_key *key, key 45 arch/arm64/include/asm/jump_label.h : : "i"(&((char *)key)[branch]) : : l_yes); key 986 arch/arm64/kernel/ptrace.c static __uint128_t pac_key_to_user(const struct ptrauth_key *key) key 988 arch/arm64/kernel/ptrace.c return (__uint128_t)key->hi << 64 | key->lo; key 993 arch/arm64/kernel/ptrace.c struct ptrauth_key key = { key 998 arch/arm64/kernel/ptrace.c return key; key 2010 arch/arm64/kvm/sys_regs.c static int match_sys_reg(const void *key, const void *elt) key 2012 arch/arm64/kvm/sys_regs.c const unsigned long pval = (unsigned long)key; key 53 arch/c6x/platforms/dscr.c u32 key; /* unlock key */ key 121 arch/c6x/platforms/dscr.c if (dscr.locked[i].key && reg == dscr.locked[i].reg) key 130 arch/c6x/platforms/dscr.c u32 lock, u32 key) key 148 arch/c6x/platforms/dscr.c : "a"(reg_addr), "b"(val), "a"(lock_addr), "b"(key) key 175 arch/c6x/platforms/dscr.c dscr_write_locked1(reg, val, lock->lockreg, lock->key); key 412 arch/c6x/platforms/dscr.c r->key = be32_to_cpup(p++); key 170 arch/ia64/include/asm/processor.h __u64 key : 24; /* 8-31 */ key 728 arch/ia64/kernel/palinfo.c unsigned long key:24; key 153 arch/mips/crypto/crc32-mips.c u32 key; key 165 arch/mips/crypto/crc32-mips.c ctx->crc = mctx->key; key 175 arch/mips/crypto/crc32-mips.c static int chksum_setkey(struct crypto_shash *tfm, const u8 *key, key 180 arch/mips/crypto/crc32-mips.c if (keylen != sizeof(mctx->key)) { key 184 arch/mips/crypto/crc32-mips.c mctx->key = get_unaligned_le32(key); key 255 arch/mips/crypto/crc32-mips.c return __chksum_finup(mctx->key, data, length, out); key 263 arch/mips/crypto/crc32-mips.c return __chksumc_finup(mctx->key, data, length, out); key 270 arch/mips/crypto/crc32-mips.c mctx->key = ~0; key 100 arch/mips/fw/arc/tree.c p->key, p->amask, (int)p->cdsize, (int)p->ilen, p->iname); key 130 arch/mips/include/asm/compat.h compat_key_t key; key 35 arch/mips/include/asm/jump_label.h static __always_inline bool arch_static_branch(struct static_key *key, bool branch) key 42 arch/mips/include/asm/jump_label.h : : "i" (&((char *)key)[branch]) : : l_yes); key 49 arch/mips/include/asm/jump_label.h static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) key 55 arch/mips/include/asm/jump_label.h : : "i" (&((char *)key)[branch]) : : l_yes); key 71 arch/mips/include/asm/jump_label.h jump_label_t key; key 2495 arch/mips/include/asm/octeon/cvmx-lmcx-defs.h uint64_t key:64; key 2497 arch/mips/include/asm/octeon/cvmx-lmcx-defs.h uint64_t key:64; key 2506 arch/mips/include/asm/octeon/cvmx-lmcx-defs.h uint64_t key:64; key 2508 arch/mips/include/asm/octeon/cvmx-lmcx-defs.h uint64_t key:64; key 2433 arch/mips/include/asm/octeon/cvmx-mio-defs.h uint64_t key:24; key 2435 arch/mips/include/asm/octeon/cvmx-mio-defs.h uint64_t key:24; key 3734 arch/mips/include/asm/octeon/cvmx-npei-defs.h uint64_t key:1; key 3744 arch/mips/include/asm/octeon/cvmx-npei-defs.h uint64_t key:1; key 2242 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t key:1; key 2252 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t key:1; key 2311 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t key:1; key 2321 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t key:1; key 2382 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t key:1; key 2392 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t key:1; key 2449 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t key:1; key 2459 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t key:1; key 153 arch/mips/include/asm/octeon/cvmx-rnm-defs.h uint64_t key:64; key 155 arch/mips/include/asm/octeon/cvmx-rnm-defs.h uint64_t key:64; key 85 arch/mips/include/asm/sgiarcs.h ULONG key; /* completely magic */ key 120 arch/mips/include/asm/txx9/tx4939.h } key[3], ini; key 124 arch/mips/include/asm/txx9/tx4939.h struct tx4939_le_reg key[4]; key 47 arch/mips/kernel/sysrq.c static void sysrq_handle_tlbdump(int key) key 244 arch/mips/pmcs-msp71xx/msp_prom.c static char identify_enetfeature(char key, unsigned long interface_num) key 249 arch/mips/pmcs-msp71xx/msp_prom.c if (*feature++ == key && interface_num-- == 0) key 127 arch/mips/txx9/generic/smsc_fdc37m81x.c static void smsc_fdc37m81x_config_dump_one(const char *key, u8 dev, u8 reg) key 129 arch/mips/txx9/generic/smsc_fdc37m81x.c pr_info("%s: dev=0x%02x reg=0x%02x val=0x%02x\n", key, dev, reg, key 111 arch/parisc/include/asm/compat.h compat_key_t key; key 12 arch/parisc/include/asm/jump_label.h static __always_inline bool arch_static_branch(struct static_key *key, bool branch) key 20 arch/parisc/include/asm/jump_label.h : : "i" (&((char *)key)[branch]) : : l_yes); key 27 arch/parisc/include/asm/jump_label.h static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) key 35 arch/parisc/include/asm/jump_label.h : : "i" (&((char *)key)[branch]) : : l_yes); key 17 arch/parisc/include/uapi/asm/ipcbuf.h __kernel_key_t key; key 38 arch/powerpc/boot/planetcore.c const char *planetcore_get_key(const char *table, const char *key) key 40 arch/powerpc/boot/planetcore.c int keylen = strlen(key); key 43 arch/powerpc/boot/planetcore.c if (!strncmp(table, key, keylen) && table[keylen] == '=') key 52 arch/powerpc/boot/planetcore.c int planetcore_get_decimal(const char *table, const char *key, u64 *val) key 54 arch/powerpc/boot/planetcore.c const char *str = planetcore_get_key(table, key); key 62 arch/powerpc/boot/planetcore.c int planetcore_get_hex(const char *table, const char *key, u64 *val) key 64 arch/powerpc/boot/planetcore.c const char *str = planetcore_get_key(table, key); key 33 arch/powerpc/boot/planetcore.h const char *planetcore_get_key(const char *table, const char *key); key 34 arch/powerpc/boot/planetcore.h int planetcore_get_decimal(const char *table, const char *key, u64 *val); key 35 arch/powerpc/boot/planetcore.h int planetcore_get_hex(const char *table, const char *key, u64 *val); key 68 arch/powerpc/crypto/aes-spe-glue.c extern void ppc_expand_key_128(u32 *key_enc, const u8 *key); key 69 arch/powerpc/crypto/aes-spe-glue.c extern void ppc_expand_key_192(u32 *key_enc, const u8 *key); key 70 arch/powerpc/crypto/aes-spe-glue.c extern void ppc_expand_key_256(u32 *key_enc, const u8 *key); key 59 arch/powerpc/crypto/crc32c-vpmsum_glue.c u32 *key = crypto_tfm_ctx(tfm); key 61 arch/powerpc/crypto/crc32c-vpmsum_glue.c *key = ~0; key 71 arch/powerpc/crypto/crc32c-vpmsum_glue.c static int crc32c_vpmsum_setkey(struct crypto_shash *hash, const u8 *key, key 80 arch/powerpc/crypto/crc32c-vpmsum_glue.c *mctx = le32_to_cpup((__le32 *)key); key 137 arch/powerpc/include/asm/compat.h compat_key_t key; key 18 arch/powerpc/include/asm/jump_label.h static __always_inline bool arch_static_branch(struct static_key *key, bool branch) key 25 arch/powerpc/include/asm/jump_label.h : : "i" (&((char *)key)[branch]) : : l_yes); key 32 arch/powerpc/include/asm/jump_label.h static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) key 39 arch/powerpc/include/asm/jump_label.h : : "i" (&((char *)key)[branch]) : : l_yes); key 55 arch/powerpc/include/asm/jump_label.h jump_label_t key; key 450 arch/powerpc/include/asm/kvm_book3s_64.h static inline bool hpte_read_permission(unsigned long pp, unsigned long key) key 452 arch/powerpc/include/asm/kvm_book3s_64.h if (key) key 457 arch/powerpc/include/asm/kvm_book3s_64.h static inline bool hpte_write_permission(unsigned long pp, unsigned long key) key 459 arch/powerpc/include/asm/kvm_book3s_64.h if (key) key 23 arch/powerpc/include/uapi/asm/ipcbuf.h __kernel_key_t key; key 360 arch/powerpc/kernel/traps.c void _exception_pkey(struct pt_regs *regs, unsigned long addr, int key) key 365 arch/powerpc/kernel/traps.c force_sig_pkuerr((void __user *) addr, key); key 217 arch/powerpc/kvm/book3s_64_mmu.c u8 pp, key = 0; key 272 arch/powerpc/kvm/book3s_64_mmu.c key = 4; key 274 arch/powerpc/kvm/book3s_64_mmu.c key = 4; key 304 arch/powerpc/kvm/book3s_64_mmu.c pp = (r & HPTE_R_PP) | key; key 346 arch/powerpc/kvm/book3s_64_mmu_hv.c unsigned long pp, key; key 388 arch/powerpc/kvm/book3s_64_mmu_hv.c key = (vcpu->arch.shregs.msr & MSR_PR) ? SLB_VSID_KP : SLB_VSID_KS; key 389 arch/powerpc/kvm/book3s_64_mmu_hv.c key &= slb_v; key 392 arch/powerpc/kvm/book3s_64_mmu_hv.c gpte->may_read = hpte_read_permission(pp, key); key 393 arch/powerpc/kvm/book3s_64_mmu_hv.c gpte->may_write = hpte_write_permission(pp, key); key 1217 arch/powerpc/kvm/book3s_hv_rm_mmu.c unsigned long pp, key; key 1259 arch/powerpc/kvm/book3s_hv_rm_mmu.c key = (vcpu->arch.shregs.msr & MSR_PR) ? SLB_VSID_KP : SLB_VSID_KS; key 1264 arch/powerpc/kvm/book3s_hv_rm_mmu.c if (!hpte_read_permission(pp, slb_v & key)) key 1268 arch/powerpc/kvm/book3s_hv_rm_mmu.c if (!hpte_write_permission(pp, slb_v & key)) key 1271 arch/powerpc/kvm/book3s_hv_rm_mmu.c if (!hpte_read_permission(pp, slb_v & key)) key 167 arch/powerpc/platforms/ps3/os-area.c int key; key 172 arch/powerpc/platforms/ps3/os-area.c .key = OS_AREA_DB_KEY_NONE key 177 arch/powerpc/platforms/ps3/os-area.c .key = OS_AREA_DB_KEY_ANY key 182 arch/powerpc/platforms/ps3/os-area.c .key = OS_AREA_DB_KEY_RTC_DIFF key 391 arch/powerpc/platforms/ps3/os-area.c uint8_t key:3; key 442 arch/powerpc/platforms/ps3/os-area.c if (i->match_id.key != OS_AREA_DB_KEY_ANY key 443 arch/powerpc/platforms/ps3/os-area.c && i->match_id.key != (int)i->idx->key) key 456 arch/powerpc/platforms/ps3/os-area.c i.idx->owner, i.idx->key, key 460 arch/powerpc/platforms/ps3/os-area.c i.idx->key = 0; key 472 arch/powerpc/platforms/ps3/os-area.c id->owner, id->key, (unsigned long long)value); key 475 arch/powerpc/platforms/ps3/os-area.c || id->key == OS_AREA_DB_KEY_ANY) { key 477 arch/powerpc/platforms/ps3/os-area.c __LINE__, id->owner, id->key); key 487 arch/powerpc/platforms/ps3/os-area.c i.idx->owner, i.idx->key, key 491 arch/powerpc/platforms/ps3/os-area.c i.idx->key = id->key; key 495 arch/powerpc/platforms/ps3/os-area.c i.idx->owner, i.idx->key, key 852 arch/powerpc/platforms/pseries/setup.c char *ptr, *key, *value, *end; key 874 arch/powerpc/platforms/pseries/setup.c key = value = ptr; key 887 arch/powerpc/platforms/pseries/setup.c if (key == value) { key 893 arch/powerpc/platforms/pseries/setup.c if (0 == strcmp(key, "CMOPageSize")) key 895 arch/powerpc/platforms/pseries/setup.c else if (0 == strcmp(key, "PrPSP")) key 897 arch/powerpc/platforms/pseries/setup.c else if (0 == strcmp(key, "SecPSP")) key 899 arch/powerpc/platforms/pseries/setup.c value = key = ptr + 1; key 3811 arch/powerpc/xmon/xmon.c static void sysrq_handle_xmon(int key) key 61 arch/s390/boot/pgm_check_info.c *p++ = hex_asc_lo(psw->key); key 43 arch/s390/crypto/aes_s390.c u8 key[AES_MAX_KEY_SIZE]; key 53 arch/s390/crypto/aes_s390.c u8 key[32]; key 107 arch/s390/crypto/aes_s390.c memcpy(sctx->key, in_key, key_len); key 119 arch/s390/crypto/aes_s390.c cpacf_km(sctx->fc, &sctx->key, out, in, AES_BLOCK_SIZE); key 131 arch/s390/crypto/aes_s390.c &sctx->key, out, in, AES_BLOCK_SIZE); key 181 arch/s390/crypto/aes_s390.c static int setkey_fallback_blk(struct crypto_tfm *tfm, const u8 *key, key 192 arch/s390/crypto/aes_s390.c ret = crypto_sync_skcipher_setkey(sctx->fallback.blk, key, len); key 254 arch/s390/crypto/aes_s390.c memcpy(sctx->key, in_key, key_len); key 269 arch/s390/crypto/aes_s390.c cpacf_km(sctx->fc | modifier, sctx->key, key 369 arch/s390/crypto/aes_s390.c memcpy(sctx->key, in_key, key_len); key 381 arch/s390/crypto/aes_s390.c u8 key[AES_MAX_KEY_SIZE]; key 386 arch/s390/crypto/aes_s390.c memcpy(param.key, sctx->key, sctx->key_len); key 450 arch/s390/crypto/aes_s390.c static int xts_fallback_setkey(struct crypto_tfm *tfm, const u8 *key, key 461 arch/s390/crypto/aes_s390.c ret = crypto_sync_skcipher_setkey(xts_ctx->fallback, key, len); key 537 arch/s390/crypto/aes_s390.c memcpy(xts_ctx->key, in_key, key_len); key 549 arch/s390/crypto/aes_s390.c u8 key[32]; key 556 arch/s390/crypto/aes_s390.c u8 key[32]; key 566 arch/s390/crypto/aes_s390.c memcpy(pcc_param.key + offset, xts_ctx->pcc_key, xts_ctx->key_len); key 567 arch/s390/crypto/aes_s390.c cpacf_pcc(xts_ctx->fc, pcc_param.key + offset); key 569 arch/s390/crypto/aes_s390.c memcpy(xts_param.key + offset, xts_ctx->key, xts_ctx->key_len); key 575 arch/s390/crypto/aes_s390.c cpacf_km(xts_ctx->fc | modifier, xts_param.key + offset, key 680 arch/s390/crypto/aes_s390.c memcpy(sctx->key, in_key, key_len); key 715 arch/s390/crypto/aes_s390.c cpacf_kmctr(sctx->fc | modifier, sctx->key, key 730 arch/s390/crypto/aes_s390.c cpacf_kmctr(sctx->fc | modifier, sctx->key, key 793 arch/s390/crypto/aes_s390.c static int gcm_aes_setkey(struct crypto_aead *tfm, const u8 *key, key 812 arch/s390/crypto/aes_s390.c memcpy(ctx->key, key, keylen); key 1033 arch/s390/crypto/aes_s390.c memcpy(param.k, ctx->key, ctx->key_len); key 27 arch/s390/crypto/crc32-vx.c u32 key; key 88 arch/s390/crypto/crc32-vx.c mctx->key = 0; key 96 arch/s390/crypto/crc32-vx.c mctx->key = ~0; key 105 arch/s390/crypto/crc32-vx.c ctx->crc = mctx->key; key 114 arch/s390/crypto/crc32-vx.c if (newkeylen != sizeof(mctx->key)) { key 118 arch/s390/crypto/crc32-vx.c mctx->key = le32_to_cpu(*(__le32 *)newkey); key 127 arch/s390/crypto/crc32-vx.c if (newkeylen != sizeof(mctx->key)) { key 131 arch/s390/crypto/crc32-vx.c mctx->key = be32_to_cpu(*(__be32 *)newkey); key 31 arch/s390/crypto/des_s390.c u8 key[DES3_KEY_SIZE]; key 34 arch/s390/crypto/des_s390.c static int des_setkey(struct crypto_tfm *tfm, const u8 *key, key 40 arch/s390/crypto/des_s390.c err = crypto_des_verify_key(tfm, key); key 44 arch/s390/crypto/des_s390.c memcpy(ctx->key, key, key_len); key 52 arch/s390/crypto/des_s390.c cpacf_km(CPACF_KM_DEA, ctx->key, out, in, DES_BLOCK_SIZE); key 60 arch/s390/crypto/des_s390.c ctx->key, out, in, DES_BLOCK_SIZE); key 93 arch/s390/crypto/des_s390.c cpacf_km(fc, ctx->key, walk->dst.virt.addr, key 108 arch/s390/crypto/des_s390.c u8 key[DES3_KEY_SIZE]; key 113 arch/s390/crypto/des_s390.c memcpy(param.key, ctx->key, DES3_KEY_SIZE); key 221 arch/s390/crypto/des_s390.c static int des3_setkey(struct crypto_tfm *tfm, const u8 *key, key 227 arch/s390/crypto/des_s390.c err = crypto_des3_ede_verify_key(tfm, key); key 231 arch/s390/crypto/des_s390.c memcpy(ctx->key, key, key_len); key 239 arch/s390/crypto/des_s390.c cpacf_km(CPACF_KM_TDEA_192, ctx->key, dst, src, DES_BLOCK_SIZE); key 247 arch/s390/crypto/des_s390.c ctx->key, dst, src, DES_BLOCK_SIZE); key 383 arch/s390/crypto/des_s390.c cpacf_kmctr(fc, ctx->key, walk->dst.virt.addr, key 395 arch/s390/crypto/des_s390.c cpacf_kmctr(fc, ctx->key, buf, walk->src.virt.addr, key 20 arch/s390/crypto/ghash_s390.c u8 key[GHASH_BLOCK_SIZE]; key 25 arch/s390/crypto/ghash_s390.c u8 key[GHASH_BLOCK_SIZE]; key 36 arch/s390/crypto/ghash_s390.c memcpy(dctx->key, ctx->key, GHASH_BLOCK_SIZE); key 42 arch/s390/crypto/ghash_s390.c const u8 *key, unsigned int keylen) key 51 arch/s390/crypto/ghash_s390.c memcpy(ctx->key, key, GHASH_BLOCK_SIZE); key 50 arch/s390/crypto/paes_s390.c u8 *key; key 56 arch/s390/crypto/paes_s390.c const u8 *key, key 60 arch/s390/crypto/paes_s390.c kb->key = kb->keybuf; key 62 arch/s390/crypto/paes_s390.c kb->key = kmalloc(keylen, GFP_KERNEL); key 63 arch/s390/crypto/paes_s390.c if (!kb->key) key 66 arch/s390/crypto/paes_s390.c memcpy(kb->key, key, keylen); key 74 arch/s390/crypto/paes_s390.c if (kb->key && kb->key != kb->keybuf key 76 arch/s390/crypto/paes_s390.c kfree(kb->key); key 77 arch/s390/crypto/paes_s390.c kb->key = NULL; key 100 arch/s390/crypto/paes_s390.c ret = pkey_keyblob2pkey(kb->key, kb->keylen, pk); key 130 arch/s390/crypto/paes_s390.c ctx->kb.key = NULL; key 231 arch/s390/crypto/paes_s390.c ctx->kb.key = NULL; key 287 arch/s390/crypto/paes_s390.c u8 key[MAXPROTKEYSIZE]; key 292 arch/s390/crypto/paes_s390.c memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); key 303 arch/s390/crypto/paes_s390.c memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); key 358 arch/s390/crypto/paes_s390.c ctx->kb[0].key = NULL; key 359 arch/s390/crypto/paes_s390.c ctx->kb[1].key = NULL; key 440 arch/s390/crypto/paes_s390.c u8 key[MAXPROTKEYSIZE]; /* key + verification pattern */ key 447 arch/s390/crypto/paes_s390.c u8 key[MAXPROTKEYSIZE]; /* key + verification pattern */ key 457 arch/s390/crypto/paes_s390.c memcpy(pcc_param.key + offset, ctx->pk[1].protkey, keylen); key 458 arch/s390/crypto/paes_s390.c cpacf_pcc(ctx->fc, pcc_param.key + offset); key 460 arch/s390/crypto/paes_s390.c memcpy(xts_param.key + offset, ctx->pk[0].protkey, keylen); key 466 arch/s390/crypto/paes_s390.c k = cpacf_km(ctx->fc | modifier, xts_param.key + offset, key 527 arch/s390/crypto/paes_s390.c ctx->kb.key = NULL; key 197 arch/s390/include/asm/ccwdev.h unsigned long intparm, u8 lpm, u8 key); key 206 arch/s390/include/asm/compat.h compat_key_t key; key 101 arch/s390/include/asm/ipl.h void *key; key 110 arch/s390/include/asm/ipl.h int ipl_report_add_certificate(struct ipl_report *report, void *key, key 23 arch/s390/include/asm/jump_label.h static __always_inline bool arch_static_branch(struct static_key *key, bool branch) key 31 arch/s390/include/asm/jump_label.h : : JUMP_LABEL_STATIC_KEY_CONSTRAINT (key), "i" (branch) : : label); key 37 arch/s390/include/asm/jump_label.h static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) key 45 arch/s390/include/asm/jump_label.h : : JUMP_LABEL_STATIC_KEY_CONSTRAINT (key), "i" (branch) : : label); key 1156 arch/s390/include/asm/pgtable.h unsigned char key, bool nq); key 1158 arch/s390/include/asm/pgtable.h unsigned char key, unsigned char *oldkey, key 1162 arch/s390/include/asm/pgtable.h unsigned char *key); key 25 arch/s390/include/asm/pkey.h int pkey_keyblob2pkey(const u8 *key, u32 keylen, key 240 arch/s390/include/asm/processor.h static inline void psw_set_key(unsigned int key) key 242 arch/s390/include/asm/processor.h asm volatile("spka 0(%0)" : : "d" (key)); key 38 arch/s390/include/asm/ptrace.h unsigned long key : 4; /* PSW Key */ key 40 arch/s390/include/asm/scsw.h __u32 key : 4; key 82 arch/s390/include/asm/scsw.h u32 key:4; key 118 arch/s390/include/asm/scsw.h u32 key:4; key 240 arch/s390/include/asm/scsw.h return scsw->tm.key; key 242 arch/s390/include/asm/scsw.h return scsw->cmd.key; key 23 arch/s390/include/uapi/asm/chsc.h __u32 key : 4; key 17 arch/s390/include/uapi/asm/ipcbuf.h __kernel_key_t key; key 195 arch/s390/include/uapi/asm/pkey.h __u8 __user *key; /* in: the key blob */ key 224 arch/s390/include/uapi/asm/pkey.h __u8 __user *key; /* in: pointer to key blob buffer */ key 255 arch/s390/include/uapi/asm/pkey.h __u8 __user *key; /* in: pointer to key blob buffer */ key 283 arch/s390/include/uapi/asm/pkey.h __u8 __user *key; /* in: pointer to key blob */ key 305 arch/s390/include/uapi/asm/pkey.h __u8 __user *key; /* in: pointer to key blob */ key 336 arch/s390/include/uapi/asm/pkey.h __u8 __user *key; /* in: pointer to key blob */ key 29 arch/s390/include/uapi/asm/runtime_instr.h __u32 key : 4; key 158 arch/s390/kernel/dumpstack.c psw->key, psw->mcheck, psw->wait, psw->pstate, psw->as, psw->cc, psw->pm); key 1734 arch/s390/kernel/ipl.c int ipl_report_add_certificate(struct ipl_report *report, void *key, key 1746 arch/s390/kernel/ipl.c cert->key = key; key 1820 arch/s390/kernel/ipl.c memcpy(ptr, cert->key, cert->entry.len); key 1259 arch/s390/kernel/ptrace.c cb->key == PAGE_DEFAULT_KEY && key 60 arch/s390/kernel/runtime_instr.c cb->key = PAGE_DEFAULT_KEY; key 104 arch/s390/kernel/suspend.c unsigned char key; key 108 arch/s390/kernel/suspend.c key = (unsigned char) page_get_storage_key(addr) & 0x7f; key 110 arch/s390/kernel/suspend.c key |= 0x80; key 111 arch/s390/kernel/suspend.c *(unsigned char *) pfn = key; key 137 arch/s390/kernel/suspend.c unsigned char key; key 139 arch/s390/kernel/suspend.c key = page_key_rp->data[page_key_rx]; key 140 arch/s390/kernel/suspend.c page_set_storage_key((unsigned long) address, key & 0x7f, 0); key 142 arch/s390/kernel/suspend.c if (key & 0x80) key 249 arch/s390/kvm/priv.c unsigned char key; key 274 arch/s390/kvm/priv.c rc = get_guest_storage_key(current->mm, vmaddr, &key); key 290 arch/s390/kvm/priv.c vcpu->run->s.regs.gprs[reg1] |= key; key 347 arch/s390/kvm/priv.c unsigned char key, oldkey; key 370 arch/s390/kvm/priv.c key = vcpu->run->s.regs.gprs[reg1] & 0xfe; key 389 arch/s390/kvm/priv.c rc = cond_set_guest_storage_key(current->mm, vmaddr, key, &oldkey, key 1012 arch/s390/kvm/priv.c unsigned char key; key 1040 arch/s390/kvm/priv.c key = vcpu->run->s.regs.gprs[reg1] & PFMF_KEY; key 1091 arch/s390/kvm/priv.c key, NULL, nq, mr, mc); key 755 arch/s390/mm/pgtable.c unsigned char key, bool nq) key 780 arch/s390/mm/pgtable.c page_set_storage_key(paddr, key, 1); key 793 arch/s390/mm/pgtable.c keyul = (unsigned long) key; key 802 arch/s390/mm/pgtable.c skey = key & (_PAGE_ACC_BITS | _PAGE_FP_BIT); key 827 arch/s390/mm/pgtable.c unsigned char key, unsigned char *oldkey, key 844 arch/s390/mm/pgtable.c if (!((tmp ^ key) & mask)) key 847 arch/s390/mm/pgtable.c rc = set_guest_storage_key(current->mm, addr, key, nq); key 912 arch/s390/mm/pgtable.c unsigned char *key) key 928 arch/s390/mm/pgtable.c *key = 0; key 935 arch/s390/mm/pgtable.c *key = page_get_storage_key(paddr); key 946 arch/s390/mm/pgtable.c *key = (pgste_val(pgste) & (PGSTE_ACC_BITS | PGSTE_FP_BIT)) >> 56; key 949 arch/s390/mm/pgtable.c *key = page_get_storage_key(paddr); key 951 arch/s390/mm/pgtable.c *key |= (pgste_val(pgste) & (PGSTE_GR_BIT | PGSTE_GC_BIT)) >> 48; key 44 arch/sh/mm/extable_64.c static int cmp_ex_search(const void *key, const void *elt) key 47 arch/sh/mm/extable_64.c unsigned long _key = *(unsigned long *)key; key 35 arch/sparc/crypto/aes_glue.c void (*encrypt)(const u64 *key, const u32 *input, u32 *output); key 36 arch/sparc/crypto/aes_glue.c void (*decrypt)(const u64 *key, const u32 *input, u32 *output); key 37 arch/sparc/crypto/aes_glue.c void (*load_encrypt_keys)(const u64 *key); key 38 arch/sparc/crypto/aes_glue.c void (*load_decrypt_keys)(const u64 *key); key 39 arch/sparc/crypto/aes_glue.c void (*ecb_encrypt)(const u64 *key, const u64 *input, u64 *output, key 41 arch/sparc/crypto/aes_glue.c void (*ecb_decrypt)(const u64 *key, const u64 *input, u64 *output, key 43 arch/sparc/crypto/aes_glue.c void (*cbc_encrypt)(const u64 *key, const u64 *input, u64 *output, key 45 arch/sparc/crypto/aes_glue.c void (*cbc_decrypt)(const u64 *key, const u64 *input, u64 *output, key 47 arch/sparc/crypto/aes_glue.c void (*ctr_crypt)(const u64 *key, const u64 *input, u64 *output, key 53 arch/sparc/crypto/aes_glue.c u64 key[AES_MAX_KEYLENGTH / sizeof(u64)]; key 58 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_encrypt_128(const u64 *key, const u32 *input, key 60 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_encrypt_192(const u64 *key, const u32 *input, key 62 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_encrypt_256(const u64 *key, const u32 *input, key 65 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_decrypt_128(const u64 *key, const u32 *input, key 67 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_decrypt_192(const u64 *key, const u32 *input, key 69 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_decrypt_256(const u64 *key, const u32 *input, key 72 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_load_encrypt_keys_128(const u64 *key); key 73 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_load_encrypt_keys_192(const u64 *key); key 74 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_load_encrypt_keys_256(const u64 *key); key 76 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_load_decrypt_keys_128(const u64 *key); key 77 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_load_decrypt_keys_192(const u64 *key); key 78 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_load_decrypt_keys_256(const u64 *key); key 80 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_ecb_encrypt_128(const u64 *key, const u64 *input, key 82 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_ecb_encrypt_192(const u64 *key, const u64 *input, key 84 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_ecb_encrypt_256(const u64 *key, const u64 *input, key 87 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_ecb_decrypt_128(const u64 *key, const u64 *input, key 89 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_ecb_decrypt_192(const u64 *key, const u64 *input, key 91 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_ecb_decrypt_256(const u64 *key, const u64 *input, key 94 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_cbc_encrypt_128(const u64 *key, const u64 *input, key 98 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_cbc_encrypt_192(const u64 *key, const u64 *input, key 102 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_cbc_encrypt_256(const u64 *key, const u64 *input, key 106 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_cbc_decrypt_128(const u64 *key, const u64 *input, key 110 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_cbc_decrypt_192(const u64 *key, const u64 *input, key 114 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_cbc_decrypt_256(const u64 *key, const u64 *input, key 118 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_ctr_crypt_128(const u64 *key, const u64 *input, key 121 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_ctr_crypt_192(const u64 *key, const u64 *input, key 124 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_ctr_crypt_256(const u64 *key, const u64 *input, key 194 arch/sparc/crypto/aes_glue.c aes_sparc64_key_expand((const u32 *)in_key, &ctx->key[0], key_len); key 204 arch/sparc/crypto/aes_glue.c ctx->ops->encrypt(&ctx->key[0], (const u32 *) src, (u32 *) dst); key 211 arch/sparc/crypto/aes_glue.c ctx->ops->decrypt(&ctx->key[0], (const u32 *) src, (u32 *) dst); key 228 arch/sparc/crypto/aes_glue.c ctx->ops->load_encrypt_keys(&ctx->key[0]); key 233 arch/sparc/crypto/aes_glue.c ctx->ops->ecb_encrypt(&ctx->key[0], key 258 arch/sparc/crypto/aes_glue.c ctx->ops->load_decrypt_keys(&ctx->key[0]); key 259 arch/sparc/crypto/aes_glue.c key_end = &ctx->key[ctx->expanded_key_length / sizeof(u64)]; key 288 arch/sparc/crypto/aes_glue.c ctx->ops->load_encrypt_keys(&ctx->key[0]); key 293 arch/sparc/crypto/aes_glue.c ctx->ops->cbc_encrypt(&ctx->key[0], key 318 arch/sparc/crypto/aes_glue.c ctx->ops->load_decrypt_keys(&ctx->key[0]); key 319 arch/sparc/crypto/aes_glue.c key_end = &ctx->key[ctx->expanded_key_length / sizeof(u64)]; key 346 arch/sparc/crypto/aes_glue.c ctx->ops->ecb_encrypt(&ctx->key[0], (const u64 *)ctrblk, key 364 arch/sparc/crypto/aes_glue.c ctx->ops->load_encrypt_keys(&ctx->key[0]); key 369 arch/sparc/crypto/aes_glue.c ctx->ops->ctr_crypt(&ctx->key[0], key 55 arch/sparc/crypto/camellia_glue.c extern void camellia_sparc64_crypt(const u64 *key, const u32 *input, key 76 arch/sparc/crypto/camellia_glue.c extern void camellia_sparc64_load_keys(const u64 *key, unsigned int key_len); key 79 arch/sparc/crypto/camellia_glue.c const u64 *key); key 93 arch/sparc/crypto/camellia_glue.c const u64 *key; key 105 arch/sparc/crypto/camellia_glue.c key = &ctx->encrypt_key[0]; key 107 arch/sparc/crypto/camellia_glue.c key = &ctx->decrypt_key[0]; key 108 arch/sparc/crypto/camellia_glue.c camellia_sparc64_load_keys(key, ctx->key_len); key 118 arch/sparc/crypto/camellia_glue.c op(src64, dst64, block_len, key); key 142 arch/sparc/crypto/camellia_glue.c const u64 *key, u64 *iv); key 156 arch/sparc/crypto/camellia_glue.c const u64 *key; key 167 arch/sparc/crypto/camellia_glue.c key = &ctx->encrypt_key[0]; key 168 arch/sparc/crypto/camellia_glue.c camellia_sparc64_load_keys(key, ctx->key_len); key 178 arch/sparc/crypto/camellia_glue.c op(src64, dst64, block_len, key, key 195 arch/sparc/crypto/camellia_glue.c const u64 *key; key 206 arch/sparc/crypto/camellia_glue.c key = &ctx->decrypt_key[0]; key 207 arch/sparc/crypto/camellia_glue.c camellia_sparc64_load_keys(key, ctx->key_len); key 217 arch/sparc/crypto/camellia_glue.c op(src64, dst64, block_len, key, key 31 arch/sparc/crypto/crc32c_glue.c static int crc32c_sparc64_setkey(struct crypto_shash *hash, const u8 *key, key 40 arch/sparc/crypto/crc32c_glue.c *(__le32 *)mctx = le32_to_cpup((__le32 *)key); key 114 arch/sparc/crypto/crc32c_glue.c u32 *key = crypto_tfm_ctx(tfm); key 116 arch/sparc/crypto/crc32c_glue.c *key = ~0; key 42 arch/sparc/crypto/des_glue.c extern void des_sparc64_key_expand(const u32 *input_key, u64 *key); key 44 arch/sparc/crypto/des_glue.c static int des_set_key(struct crypto_tfm *tfm, const u8 *key, key 54 arch/sparc/crypto/des_glue.c err = crypto_des_verify_key(tfm, key); key 58 arch/sparc/crypto/des_glue.c des_sparc64_key_expand((const u32 *) key, &dctx->encrypt_expkey[0]); key 64 arch/sparc/crypto/des_glue.c extern void des_sparc64_crypt(const u64 *key, const u64 *input, key 83 arch/sparc/crypto/des_glue.c extern void des_sparc64_load_keys(const u64 *key); key 197 arch/sparc/crypto/des_glue.c static int des3_ede_set_key(struct crypto_tfm *tfm, const u8 *key, key 206 arch/sparc/crypto/des_glue.c err = crypto_des3_ede_verify_key(tfm, key); key 210 arch/sparc/crypto/des_glue.c des_sparc64_key_expand((const u32 *)key, k1); key 211 arch/sparc/crypto/des_glue.c key += DES_KEY_SIZE; key 212 arch/sparc/crypto/des_glue.c des_sparc64_key_expand((const u32 *)key, k2); key 213 arch/sparc/crypto/des_glue.c key += DES_KEY_SIZE; key 214 arch/sparc/crypto/des_glue.c des_sparc64_key_expand((const u32 *)key, k3); key 230 arch/sparc/crypto/des_glue.c extern void des3_ede_sparc64_crypt(const u64 *key, const u64 *input, key 249 arch/sparc/crypto/des_glue.c extern void des3_ede_sparc64_load_keys(const u64 *key); key 165 arch/sparc/include/asm/compat.h compat_key_t key; key 11 arch/sparc/include/asm/jump_label.h static __always_inline bool arch_static_branch(struct static_key *key, bool branch) key 20 arch/sparc/include/asm/jump_label.h : : "i" (&((char *)key)[branch]) : : l_yes); key 27 arch/sparc/include/asm/jump_label.h static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) key 36 arch/sparc/include/asm/jump_label.h : : "i" (&((char *)key)[branch]) : : l_yes); key 48 arch/sparc/include/asm/jump_label.h jump_label_t key; key 18 arch/sparc/include/uapi/asm/ipcbuf.h __kernel_key_t key; key 311 arch/sparc/kernel/process_64.c static void sysrq_handle_globreg(int key) key 386 arch/sparc/kernel/process_64.c static void sysrq_handle_globpmu(int key) key 398 arch/um/drivers/chan_kern.c char *key; key 451 arch/um/drivers/chan_kern.c if (!strncmp(str, entry->key, strlen(entry->key))) { key 453 arch/um/drivers/chan_kern.c str += strlen(entry->key); key 38 arch/um/drivers/vector_transports.c bool key; key 102 arch/um/drivers/vector_transports.c if (td->key) key 169 arch/um/drivers/vector_transports.c uint32_t key; key 184 arch/um/drivers/vector_transports.c if (td->key) { key 185 arch/um/drivers/vector_transports.c key = (*(uint32_t *)(header + td->key_offset)); key 186 arch/um/drivers/vector_transports.c if (key != td->rx_key) { key 189 arch/um/drivers/vector_transports.c key, td->rx_key); key 269 arch/um/drivers/vector_transports.c td->key = false; key 272 arch/um/drivers/vector_transports.c td->key = true; key 698 arch/x86/boot/compressed/eboot.c unsigned long map_sz, key, desc_size, buff_size; key 711 arch/x86/boot/compressed/eboot.c map.key_ptr = &key; key 102 arch/x86/boot/video.c int key; key 106 arch/x86/boot/video.c key = getchar(); key 108 arch/x86/boot/video.c if (key == '\b') { key 113 arch/x86/boot/video.c } else if ((key >= '0' && key <= '9') || key 114 arch/x86/boot/video.c (key >= 'A' && key <= 'Z') || key 115 arch/x86/boot/video.c (key >= 'a' && key <= 'z')) { key 117 arch/x86/boot/video.c entry_buf[len++] = key; key 118 arch/x86/boot/video.c putchar(key); key 121 arch/x86/boot/video.c } while (key != '\r'); key 130 arch/x86/boot/video.c key = entry_buf[i] | 0x20; key 131 arch/x86/boot/video.c v += (key > '9') ? key-'a'+10 : key-'0'; key 202 arch/x86/boot/video.c int key; key 210 arch/x86/boot/video.c key = getchar_timeout(); key 211 arch/x86/boot/video.c if (key == ' ' || key == 0) key 213 arch/x86/boot/video.c if (key == '\r') key 26 arch/x86/crypto/aegis128-aesni-glue.c asmlinkage void crypto_aegis128_aesni_init(void *state, void *key, void *iv); key 56 arch/x86/crypto/aegis128-aesni-glue.c struct aegis_block key; key 142 arch/x86/crypto/aegis128-aesni-glue.c static int crypto_aegis128_aesni_setkey(struct crypto_aead *aead, const u8 *key, key 152 arch/x86/crypto/aegis128-aesni-glue.c memcpy(ctx->key.bytes, key, AEGIS128_KEY_SIZE); key 181 arch/x86/crypto/aegis128-aesni-glue.c crypto_aegis128_aesni_init(&state, ctx->key.bytes, req->iv); key 373 arch/x86/crypto/aesni-intel_glue.c static int aesni_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, key 377 arch/x86/crypto/aesni-intel_glue.c crypto_skcipher_ctx(tfm), key, len); key 529 arch/x86/crypto/aesni-intel_glue.c static int xts_aesni_setkey(struct crypto_skcipher *tfm, const u8 *key, key 535 arch/x86/crypto/aesni-intel_glue.c err = xts_verify_key(tfm, key, keylen); key 543 arch/x86/crypto/aesni-intel_glue.c key, keylen); key 549 arch/x86/crypto/aesni-intel_glue.c key + keylen, keylen); key 629 arch/x86/crypto/aesni-intel_glue.c rfc4106_set_hash_subkey(u8 *hash_subkey, const u8 *key, unsigned int key_len) key 634 arch/x86/crypto/aesni-intel_glue.c ret = aes_expandkey(&ctx, key, key_len); key 648 arch/x86/crypto/aesni-intel_glue.c static int common_rfc4106_set_key(struct crypto_aead *aead, const u8 *key, key 660 arch/x86/crypto/aesni-intel_glue.c memcpy(ctx->nonce, key + key_len, sizeof(ctx->nonce)); key 663 arch/x86/crypto/aesni-intel_glue.c &ctx->aes_key_expanded, key, key_len) ?: key 664 arch/x86/crypto/aesni-intel_glue.c rfc4106_set_hash_subkey(ctx->hash_subkey, key, key_len); key 998 arch/x86/crypto/aesni-intel_glue.c static int generic_gcmaes_set_key(struct crypto_aead *aead, const u8 *key, key 1004 arch/x86/crypto/aesni-intel_glue.c &ctx->aes_key_expanded, key, key_len) ?: key 1005 arch/x86/crypto/aesni-intel_glue.c rfc4106_set_hash_subkey(ctx->hash_subkey, key, key_len); key 66 arch/x86/crypto/blowfish_glue.c const u8 *key, unsigned int keylen) key 68 arch/x86/crypto/blowfish_glue.c return blowfish_setkey(&tfm->base, key, keylen); key 145 arch/x86/crypto/camellia_aesni_avx2_glue.c static int camellia_setkey(struct crypto_skcipher *tfm, const u8 *key, key 148 arch/x86/crypto/camellia_aesni_avx2_glue.c return __camellia_setkey(crypto_skcipher_ctx(tfm), key, keylen, key 149 arch/x86/crypto/camellia_aesni_avx_glue.c static int camellia_setkey(struct crypto_skcipher *tfm, const u8 *key, key 152 arch/x86/crypto/camellia_aesni_avx_glue.c return __camellia_setkey(crypto_skcipher_ctx(tfm), key, keylen, key 182 arch/x86/crypto/camellia_aesni_avx_glue.c int xts_camellia_setkey(struct crypto_skcipher *tfm, const u8 *key, key 189 arch/x86/crypto/camellia_aesni_avx_glue.c err = xts_verify_key(tfm, key, keylen); key 194 arch/x86/crypto/camellia_aesni_avx_glue.c err = __camellia_setkey(&ctx->crypt_ctx, key, keylen / 2, flags); key 199 arch/x86/crypto/camellia_aesni_avx_glue.c return __camellia_setkey(&ctx->tweak_ctx, key + keylen / 2, keylen / 2, key 980 arch/x86/crypto/camellia_glue.c static void camellia_setup128(const unsigned char *key, u64 *subkey) key 988 arch/x86/crypto/camellia_glue.c kl = get_unaligned_be64(key); key 989 arch/x86/crypto/camellia_glue.c kr = get_unaligned_be64(key + 8); key 1086 arch/x86/crypto/camellia_glue.c static void camellia_setup256(const unsigned char *key, u64 *subkey) key 1096 arch/x86/crypto/camellia_glue.c kl = get_unaligned_be64(key); key 1097 arch/x86/crypto/camellia_glue.c kr = get_unaligned_be64(key + 8); key 1098 arch/x86/crypto/camellia_glue.c krl = get_unaligned_be64(key + 16); key 1099 arch/x86/crypto/camellia_glue.c krr = get_unaligned_be64(key + 24); key 1219 arch/x86/crypto/camellia_glue.c static void camellia_setup192(const unsigned char *key, u64 *subkey) key 1224 arch/x86/crypto/camellia_glue.c memcpy(kk, key, 24); key 1225 arch/x86/crypto/camellia_glue.c memcpy((unsigned char *)&krl, key+16, 8); key 1231 arch/x86/crypto/camellia_glue.c int __camellia_setkey(struct camellia_ctx *cctx, const unsigned char *key, key 1243 arch/x86/crypto/camellia_glue.c camellia_setup128(key, cctx->key_table); key 1246 arch/x86/crypto/camellia_glue.c camellia_setup192(key, cctx->key_table); key 1249 arch/x86/crypto/camellia_glue.c camellia_setup256(key, cctx->key_table); key 1257 arch/x86/crypto/camellia_glue.c static int camellia_setkey(struct crypto_tfm *tfm, const u8 *key, key 1260 arch/x86/crypto/camellia_glue.c return __camellia_setkey(crypto_tfm_ctx(tfm), key, key_len, key 1264 arch/x86/crypto/camellia_glue.c static int camellia_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, key 1267 arch/x86/crypto/camellia_glue.c return camellia_setkey(&tfm->base, key, key_len); key 29 arch/x86/crypto/cast5_avx_glue.c static int cast5_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, key 32 arch/x86/crypto/cast5_avx_glue.c return cast5_setkey(&tfm->base, key, keylen); key 39 arch/x86/crypto/cast6_avx_glue.c const u8 *key, unsigned int keylen) key 41 arch/x86/crypto/cast6_avx_glue.c return cast6_setkey(&tfm->base, key, keylen); key 176 arch/x86/crypto/cast6_avx_glue.c static int xts_cast6_setkey(struct crypto_skcipher *tfm, const u8 *key, key 183 arch/x86/crypto/cast6_avx_glue.c err = xts_verify_key(tfm, key, keylen); key 188 arch/x86/crypto/cast6_avx_glue.c err = __cast6_setkey(&ctx->crypt_ctx, key, keylen / 2, flags); key 193 arch/x86/crypto/cast6_avx_glue.c return __cast6_setkey(&ctx->tweak_ctx, key + keylen / 2, keylen / 2, key 205 arch/x86/crypto/chacha_glue.c hchacha_block_ssse3(state, subctx.key, ctx->nrounds); key 85 arch/x86/crypto/crc32-pclmul_glue.c u32 *key = crypto_tfm_ctx(tfm); key 87 arch/x86/crypto/crc32-pclmul_glue.c *key = 0; key 92 arch/x86/crypto/crc32-pclmul_glue.c static int crc32_pclmul_setkey(struct crypto_shash *hash, const u8 *key, key 101 arch/x86/crypto/crc32-pclmul_glue.c *mctx = le32_to_cpup((__le32 *)key); key 89 arch/x86/crypto/crc32c-intel_glue.c static int crc32c_intel_setkey(struct crypto_shash *hash, const u8 *key, key 98 arch/x86/crypto/crc32c-intel_glue.c *mctx = le32_to_cpup((__le32 *)key); key 151 arch/x86/crypto/crc32c-intel_glue.c u32 *key = crypto_tfm_ctx(tfm); key 153 arch/x86/crypto/crc32c-intel_glue.c *key = ~0; key 344 arch/x86/crypto/des3_ede_glue.c static int des3_ede_x86_setkey(struct crypto_tfm *tfm, const u8 *key, key 351 arch/x86/crypto/des3_ede_glue.c err = des3_ede_expand_key(&ctx->enc, key, keylen); key 379 arch/x86/crypto/des3_ede_glue.c const u8 *key, key 382 arch/x86/crypto/des3_ede_glue.c return des3_ede_x86_setkey(&tfm->base, key, keylen); key 54 arch/x86/crypto/ghash-clmulni-intel_glue.c const u8 *key, unsigned int keylen) key 57 arch/x86/crypto/ghash-clmulni-intel_glue.c be128 *x = (be128 *)key; key 255 arch/x86/crypto/ghash-clmulni-intel_glue.c static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, key 265 arch/x86/crypto/ghash-clmulni-intel_glue.c err = crypto_ahash_setkey(child, key, keylen); key 15 arch/x86/crypto/nhpoly1305-avx2-glue.c asmlinkage void nh_avx2(const u32 *key, const u8 *message, size_t message_len, key 19 arch/x86/crypto/nhpoly1305-avx2-glue.c static void _nh_avx2(const u32 *key, const u8 *message, size_t message_len, key 22 arch/x86/crypto/nhpoly1305-avx2-glue.c nh_avx2(key, message, message_len, (u8 *)hash); key 15 arch/x86/crypto/nhpoly1305-sse2-glue.c asmlinkage void nh_sse2(const u32 *key, const u8 *message, size_t message_len, key 19 arch/x86/crypto/nhpoly1305-sse2-glue.c static void _nh_sse2(const u32 *key, const u8 *message, size_t message_len, key 22 arch/x86/crypto/nhpoly1305-sse2-glue.c nh_sse2(key, message, message_len, (u8 *)hash); key 36 arch/x86/crypto/serpent_avx2_glue.c const u8 *key, unsigned int keylen) key 38 arch/x86/crypto/serpent_avx2_glue.c return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen); key 74 arch/x86/crypto/serpent_avx_glue.c const u8 *key, unsigned int keylen) key 76 arch/x86/crypto/serpent_avx_glue.c return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen); key 79 arch/x86/crypto/serpent_avx_glue.c int xts_serpent_setkey(struct crypto_skcipher *tfm, const u8 *key, key 85 arch/x86/crypto/serpent_avx_glue.c err = xts_verify_key(tfm, key, keylen); key 90 arch/x86/crypto/serpent_avx_glue.c err = __serpent_setkey(&ctx->crypt_ctx, key, keylen / 2); key 95 arch/x86/crypto/serpent_avx_glue.c return __serpent_setkey(&ctx->tweak_ctx, key + keylen / 2, keylen / 2); key 29 arch/x86/crypto/serpent_sse2_glue.c const u8 *key, unsigned int keylen) key 31 arch/x86/crypto/serpent_sse2_glue.c return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen); key 41 arch/x86/crypto/twofish_avx_glue.c const u8 *key, unsigned int keylen) key 43 arch/x86/crypto/twofish_avx_glue.c return twofish_setkey(&tfm->base, key, keylen); key 69 arch/x86/crypto/twofish_avx_glue.c static int xts_twofish_setkey(struct crypto_skcipher *tfm, const u8 *key, key 76 arch/x86/crypto/twofish_avx_glue.c err = xts_verify_key(tfm, key, keylen); key 81 arch/x86/crypto/twofish_avx_glue.c err = __twofish_setkey(&ctx->crypt_ctx, key, keylen / 2, flags); key 86 arch/x86/crypto/twofish_avx_glue.c return __twofish_setkey(&ctx->tweak_ctx, key + keylen / 2, keylen / 2, key 23 arch/x86/crypto/twofish_glue_3way.c const u8 *key, unsigned int keylen) key 25 arch/x86/crypto/twofish_glue_3way.c return twofish_setkey(&tfm->base, key, keylen); key 107 arch/x86/include/asm/compat.h compat_key_t key; key 28 arch/x86/include/asm/crypto/camellia.h const unsigned char *key, key 31 arch/x86/include/asm/crypto/camellia.h extern int xts_camellia_setkey(struct crypto_skcipher *tfm, const u8 *key, key 39 arch/x86/include/asm/crypto/serpent-avx.h extern int xts_serpent_setkey(struct crypto_skcipher *tfm, const u8 *key, key 23 arch/x86/include/asm/jump_label.h static __always_inline bool arch_static_branch(struct static_key *key, bool branch) key 32 arch/x86/include/asm/jump_label.h : : "i" (key), "i" (branch) : : l_yes); key 39 arch/x86/include/asm/jump_label.h static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) key 49 arch/x86/include/asm/jump_label.h : : "i" (key), "i" (branch) : : l_yes); key 58 arch/x86/include/asm/jump_label.h .macro STATIC_JUMP_IF_TRUE target, key, def key 75 arch/x86/include/asm/jump_label.h .macro STATIC_JUMP_IF_FALSE target, key, def key 73 arch/x86/include/asm/msr.h #define msr_tracepoint_active(t) static_key_false(&(t).key) key 22 arch/x86/include/uapi/asm/mman.h #define arch_calc_vm_prot_bits(prot, key) ( \ key 23 arch/x86/include/uapi/asm/mman.h ((key) & 0x1 ? VM_PKEY_BIT0 : 0) | \ key 24 arch/x86/include/uapi/asm/mman.h ((key) & 0x2 ? VM_PKEY_BIT1 : 0) | \ key 25 arch/x86/include/uapi/asm/mman.h ((key) & 0x4 ? VM_PKEY_BIT2 : 0) | \ key 26 arch/x86/include/uapi/asm/mman.h ((key) & 0x8 ? VM_PKEY_BIT3 : 0)) key 944 arch/x86/kernel/alternative.c static int patch_cmp(const void *key, const void *elt) key 948 arch/x86/kernel/alternative.c if (key < tp->addr) key 950 arch/x86/kernel/alternative.c if (key > tp->addr) key 456 arch/x86/kernel/apm_32.c int key; key 500 arch/x86/kernel/apm_32.c if (error_table[i].key == err) key 437 arch/x86/kernel/cpu/common.c static_key_enable(&cr_pinning.key); key 104 arch/x86/kernel/kvm.c u32 key = hash_32(token, KVM_TASK_SLEEP_HASHBITS); key 105 arch/x86/kernel/kvm.c struct kvm_task_sleep_head *b = &async_pf_sleepers[key]; key 192 arch/x86/kernel/kvm.c u32 key = hash_32(token, KVM_TASK_SLEEP_HASHBITS); key 193 arch/x86/kernel/kvm.c struct kvm_task_sleep_head *b = &async_pf_sleepers[key]; key 261 arch/x86/kvm/lapic.c static_key_slow_inc(&apic_sw_disabled.key); key 2136 arch/x86/kvm/lapic.c static_key_slow_inc(&apic_hw_disabled.key); key 2317 arch/x86/kvm/lapic.c static_key_slow_inc(&apic_sw_disabled.key); /* sw disabled at reset */ key 175 arch/x86/kvm/lapic.h if (static_key_false(&apic_hw_disabled.key)) key 184 arch/x86/kvm/lapic.h if (static_key_false(&apic_sw_disabled.key)) key 10087 arch/x86/kvm/x86.c static inline u32 kvm_async_pf_next_probe(u32 key) key 10089 arch/x86/kvm/x86.c return (key + 1) & (roundup_pow_of_two(ASYNC_PF_PER_VCPU) - 1); key 10094 arch/x86/kvm/x86.c u32 key = kvm_async_pf_hash_fn(gfn); key 10096 arch/x86/kvm/x86.c while (vcpu->arch.apf.gfns[key] != ~0) key 10097 arch/x86/kvm/x86.c key = kvm_async_pf_next_probe(key); key 10099 arch/x86/kvm/x86.c vcpu->arch.apf.gfns[key] = gfn; key 10105 arch/x86/kvm/x86.c u32 key = kvm_async_pf_hash_fn(gfn); key 10108 arch/x86/kvm/x86.c (vcpu->arch.apf.gfns[key] != gfn && key 10109 arch/x86/kvm/x86.c vcpu->arch.apf.gfns[key] != ~0); i++) key 10110 arch/x86/kvm/x86.c key = kvm_async_pf_next_probe(key); key 10112 arch/x86/kvm/x86.c return key; key 13 arch/xtensa/include/asm/jump_label.h static __always_inline bool arch_static_branch(struct static_key *key, key 21 arch/xtensa/include/asm/jump_label.h : : "i" (&((char *)key)[branch]) : : l_yes); key 28 arch/xtensa/include/asm/jump_label.h static __always_inline bool arch_static_branch_jump(struct static_key *key, key 49 arch/xtensa/include/asm/jump_label.h : : "i" (&((char *)key)[branch]) : : l_yes); key 61 arch/xtensa/include/asm/jump_label.h jump_label_t key; key 27 arch/xtensa/include/uapi/asm/ipcbuf.h __kernel_key_t key; key 496 block/blk-flush.c lockdep_register_key(&fq->key); key 497 block/blk-flush.c lockdep_set_class(&fq->mq_flush_lock, &fq->key); key 513 block/blk-flush.c lockdep_unregister_key(&fq->key); key 1117 block/blk-iocost.c int flags, void *key) key 1120 block/blk-iocost.c struct iocg_wake_ctx *ctx = (struct iocg_wake_ctx *)key; key 1138 block/blk-iocost.c default_wake_function(wq_entry, mode, flags, key); key 809 block/blk-iolatency.c char key[16]; key 812 block/blk-iolatency.c if (sscanf(tok, "%15[^=]=%20s", key, val) != 2) key 815 block/blk-iolatency.c if (!strcmp(key, "target")) { key 1087 block/blk-mq.c int flags, void *key) key 213 block/blk-rq-qos.c unsigned int mode, int wake_flags, void *key) key 657 block/blk-throttle.c unsigned long key = tg->disptime; key 664 block/blk-throttle.c if (time_before(key, __tg->disptime)) key 33 block/blk.h struct lock_class_key key; key 348 block/ioctl.c return ops->pr_reserve(bdev, rsv.key, rsv.type, rsv.flags); key 366 block/ioctl.c return ops->pr_release(bdev, rsv.key, rsv.type); key 402 block/ioctl.c return ops->pr_clear(bdev, c.key); key 193 block/kyber-iosched.c void *key); key 692 block/kyber-iosched.c void *key) key 1330 block/sed-opal.c const char *key, key 1336 block/sed-opal.c if (key == NULL && auth != OPAL_ANYBODY_UID) key 1355 block/sed-opal.c add_token_bytestring(&err, dev, key, key_len); key 1385 block/sed-opal.c const u8 *key = dev->prev_data; key 1387 block/sed-opal.c if (!key) { key 1392 block/sed-opal.c okey->key, key 1397 block/sed-opal.c key, dev->prev_d_len); key 1398 block/sed-opal.c kfree(key); key 1407 block/sed-opal.c struct opal_key *key = data; key 1411 block/sed-opal.c key->key, key->key_len); key 1420 block/sed-opal.c okey->key, key 1431 block/sed-opal.c u8 *key = session->opal_key.key; key 1455 block/sed-opal.c add_token_bytestring(&err, dev, key, keylen); key 1650 block/sed-opal.c static int generic_pw_cmd(u8 *key, size_t key_len, u8 *cpin_uid, key 1662 block/sed-opal.c add_token_bytestring(&err, dev, key, key_len); key 1685 block/sed-opal.c if (generic_pw_cmd(usr->opal_key.key, usr->opal_key.key_len, key 1697 block/sed-opal.c struct opal_key *key = data; key 1701 block/sed-opal.c if (generic_pw_cmd(key->key, key->key_len, cpin_uid, dev)) { key 2092 block/sed-opal.c { start_admin1LSP_opal_session, &opal_mbr->key }, key 2095 block/sed-opal.c { start_admin1LSP_opal_session, &opal_mbr->key }, key 2120 block/sed-opal.c { start_admin1LSP_opal_session, &mbr_done->key }, key 2142 block/sed-opal.c { start_admin1LSP_opal_session, &info->key }, key 2271 block/sed-opal.c static int __opal_set_mbr_done(struct opal_dev *dev, struct opal_key *key) key 2275 block/sed-opal.c { start_admin1LSP_opal_session, key }, key 2325 block/sed-opal.c { start_SIDASP_opal_session, &opal_lr_act->key }, key 20 certs/blacklist.c static struct key *blacklist_keyring; key 65 certs/blacklist.c static void blacklist_describe(const struct key *key, struct seq_file *m) key 67 certs/blacklist.c seq_puts(m, key->description); key 85 certs/blacklist.c key_ref_t key; key 87 certs/blacklist.c key = key_create_or_update(make_key_ref(blacklist_keyring, true), key 96 certs/blacklist.c if (IS_ERR(key)) { key 97 certs/blacklist.c pr_err("Problem blacklisting hash (%ld)\n", PTR_ERR(key)); key 98 certs/blacklist.c return PTR_ERR(key); key 19 certs/system_keyring.c static struct key *builtin_trusted_keys; key 21 certs/system_keyring.c static struct key *secondary_trusted_keys; key 24 certs/system_keyring.c static struct key *platform_trusted_keys; key 36 certs/system_keyring.c int restrict_link_by_builtin_trusted(struct key *dest_keyring, key 39 certs/system_keyring.c struct key *restriction_key) key 55 certs/system_keyring.c struct key *dest_keyring, key 58 certs/system_keyring.c struct key *restrict_key) key 139 certs/system_keyring.c key_ref_t key; key 161 certs/system_keyring.c key = key_create_or_update(make_key_ref(builtin_trusted_keys, 1), key 171 certs/system_keyring.c if (IS_ERR(key)) { key 173 certs/system_keyring.c PTR_ERR(key)); key 176 certs/system_keyring.c key_ref_to_ptr(key)->description); key 177 certs/system_keyring.c key_ref_put(key); key 205 certs/system_keyring.c struct key *trusted_keys, key 284 certs/system_keyring.c struct key *trusted_keys, key 310 certs/system_keyring.c void __init set_platform_trusted_keys(struct key *keyring) key 295 crypto/ablkcipher.c static int setkey_unaligned(struct crypto_ablkcipher *tfm, const u8 *key, key 310 crypto/ablkcipher.c memcpy(alignbuffer, key, keylen); key 317 crypto/ablkcipher.c static int setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 328 crypto/ablkcipher.c if ((unsigned long)key & alignmask) key 329 crypto/ablkcipher.c return setkey_unaligned(tfm, key, keylen); key 331 crypto/ablkcipher.c return cipher->setkey(tfm, key, keylen); key 117 crypto/adiantum.c static int adiantum_setkey(struct crypto_skcipher *tfm, const u8 *key, key 136 crypto/adiantum.c err = crypto_skcipher_setkey(tctx->streamcipher, key, keylen); key 27 crypto/aead.c static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key, key 41 crypto/aead.c memcpy(alignbuffer, key, keylen); key 49 crypto/aead.c const u8 *key, unsigned int keylen) key 54 crypto/aead.c if ((unsigned long)key & alignmask) key 55 crypto/aead.c err = setkey_unaligned(tfm, key, keylen); key 57 crypto/aead.c err = crypto_aead_alg(tfm)->setkey(tfm, key, keylen); key 216 crypto/aead.c const u8 *key, unsigned int keylen) key 220 crypto/aead.c return crypto_aead_setkey(ctx->child, key, keylen); key 43 crypto/aegis.h const union aegis_block *key) key 54 crypto/aegis.h dst->words32[0] = cpu_to_le32(d0) ^ key->words32[0]; key 55 crypto/aegis.h dst->words32[1] = cpu_to_le32(d1) ^ key->words32[1]; key 56 crypto/aegis.h dst->words32[2] = cpu_to_le32(d2) ^ key->words32[2]; key 57 crypto/aegis.h dst->words32[3] = cpu_to_le32(d3) ^ key->words32[3]; key 35 crypto/aegis128-core.c union aegis_block key; key 111 crypto/aegis128-core.c const union aegis_block *key, key 117 crypto/aegis128-core.c key_iv = *key; key 123 crypto/aegis128-core.c state->blocks[3] = *key; key 124 crypto/aegis128-core.c state->blocks[4] = *key; key 130 crypto/aegis128-core.c crypto_aegis128_update_a(state, key); key 369 crypto/aegis128-core.c static int crypto_aegis128_setkey(struct crypto_aead *aead, const u8 *key, key 379 crypto/aegis128-core.c memcpy(ctx->key.bytes, key, AEGIS128_KEY_SIZE); key 402 crypto/aegis128-core.c crypto_aegis128_init(&state, &ctx->key, req->iv); key 211 crypto/af_alg.c u8 *key; key 214 crypto/af_alg.c key = sock_kmalloc(sk, keylen, GFP_KERNEL); key 215 crypto/af_alg.c if (!key) key 219 crypto/af_alg.c if (copy_from_user(key, ukey, keylen)) key 222 crypto/af_alg.c err = type->setkey(ask->private, key, keylen); key 225 crypto/af_alg.c sock_kzfree_s(sk, key, keylen); key 168 crypto/ahash.c static int ahash_setkey_unaligned(struct crypto_ahash *tfm, const u8 *key, key 182 crypto/ahash.c memcpy(alignbuffer, key, keylen); key 188 crypto/ahash.c static int ahash_nosetkey(struct crypto_ahash *tfm, const u8 *key, key 203 crypto/ahash.c int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, key 209 crypto/ahash.c if ((unsigned long)key & alignmask) key 210 crypto/ahash.c err = ahash_setkey_unaligned(tfm, key, keylen); key 212 crypto/ahash.c err = tfm->setkey(tfm, key, keylen); key 518 crypto/algif_aead.c static int aead_setkey(void *private, const u8 *key, unsigned int keylen) key 522 crypto/algif_aead.c return crypto_aead_setkey(tfm->aead, key, keylen); key 411 crypto/algif_hash.c static int hash_setkey(void *private, const u8 *key, unsigned int keylen) key 413 crypto/algif_hash.c return crypto_ahash_setkey(private, key, keylen); key 314 crypto/algif_skcipher.c static int skcipher_setkey(void *private, const u8 *key, unsigned int keylen) key 316 crypto/algif_skcipher.c return crypto_skcipher_setkey(private, key, keylen); key 276 crypto/ansi_cprng.c const unsigned char *key, size_t klen, key 285 crypto/ansi_cprng.c prng_key = (key != NULL) ? key : (unsigned char *)DEFAULT_PRNG_KEY; key 287 crypto/ansi_cprng.c if (!key) key 367 crypto/ansi_cprng.c const u8 *key = seed + DEFAULT_BLK_SZ; key 374 crypto/ansi_cprng.c dt = key + DEFAULT_PRNG_KSZ; key 376 crypto/ansi_cprng.c reset_prng_context(prng, key, DEFAULT_PRNG_KSZ, seed, dt); key 397 crypto/ansi_cprng.c const u8 *key = seed + DEFAULT_BLK_SZ; key 406 crypto/ansi_cprng.c if (!memcmp(seed, key, DEFAULT_PRNG_KSZ)) key 466 crypto/anubis.c const __be32 *key = (const __be32 *)in_key; key 487 crypto/anubis.c kappa[i] = be32_to_cpu(key[i]); key 300 crypto/asymmetric_keys/asym_tpm.c static void asym_tpm_describe(const struct key *asymmetric_key, key 411 crypto/asymmetric_keys/asym_tpm.c struct tpm_key *tk = params->key->payload.data[asym_crypto]; key 724 crypto/asymmetric_keys/asym_tpm.c struct tpm_key *tk = params->key->payload.data[asym_crypto]; key 748 crypto/asymmetric_keys/asym_tpm.c static int tpm_key_verify_signature(const struct key *key, key 751 crypto/asymmetric_keys/asym_tpm.c const struct tpm_key *tk = key->payload.data[asym_crypto]; key 46 crypto/asymmetric_keys/asymmetric_type.c struct key *find_asymmetric_key(struct key *keyring, key 51 crypto/asymmetric_keys/asymmetric_type.c struct key *key; key 103 crypto/asymmetric_keys/asymmetric_type.c key = key_ref_to_ptr(ref); key 105 crypto/asymmetric_keys/asymmetric_type.c const struct asymmetric_key_ids *kids = asymmetric_key_ids(key); key 117 crypto/asymmetric_keys/asymmetric_type.c pr_devel("<==%s() = 0 [%x]\n", __func__, key_serial(key)); key 118 crypto/asymmetric_keys/asymmetric_type.c return key; key 121 crypto/asymmetric_keys/asymmetric_type.c key_put(key); key 247 crypto/asymmetric_keys/asymmetric_type.c static bool asymmetric_key_cmp(const struct key *key, key 250 crypto/asymmetric_keys/asymmetric_type.c const struct asymmetric_key_ids *kids = asymmetric_key_ids(key); key 260 crypto/asymmetric_keys/asymmetric_type.c static bool asymmetric_key_cmp_partial(const struct key *key, key 263 crypto/asymmetric_keys/asymmetric_type.c const struct asymmetric_key_ids *kids = asymmetric_key_ids(key); key 288 crypto/asymmetric_keys/asymmetric_type.c bool (*cmp)(const struct key *, const struct key_match_data *) = key 330 crypto/asymmetric_keys/asymmetric_type.c static void asymmetric_key_describe(const struct key *key, struct seq_file *m) key 332 crypto/asymmetric_keys/asymmetric_type.c const struct asymmetric_key_subtype *subtype = asymmetric_key_subtype(key); key 333 crypto/asymmetric_keys/asymmetric_type.c const struct asymmetric_key_ids *kids = asymmetric_key_ids(key); key 338 crypto/asymmetric_keys/asymmetric_type.c seq_puts(m, key->description); key 342 crypto/asymmetric_keys/asymmetric_type.c subtype->describe(key, m); key 434 crypto/asymmetric_keys/asymmetric_type.c static void asymmetric_key_destroy(struct key *key) key 436 crypto/asymmetric_keys/asymmetric_type.c struct asymmetric_key_subtype *subtype = asymmetric_key_subtype(key); key 437 crypto/asymmetric_keys/asymmetric_type.c struct asymmetric_key_ids *kids = key->payload.data[asym_key_ids]; key 438 crypto/asymmetric_keys/asymmetric_type.c void *data = key->payload.data[asym_crypto]; key 439 crypto/asymmetric_keys/asymmetric_type.c void *auth = key->payload.data[asym_auth]; key 441 crypto/asymmetric_keys/asymmetric_type.c key->payload.data[asym_crypto] = NULL; key 442 crypto/asymmetric_keys/asymmetric_type.c key->payload.data[asym_subtype] = NULL; key 443 crypto/asymmetric_keys/asymmetric_type.c key->payload.data[asym_key_ids] = NULL; key 444 crypto/asymmetric_keys/asymmetric_type.c key->payload.data[asym_auth] = NULL; key 456 crypto/asymmetric_keys/asymmetric_type.c struct key *key) key 465 crypto/asymmetric_keys/asymmetric_type.c keyres->key = key; key 500 crypto/asymmetric_keys/asymmetric_type.c struct key *key; key 519 crypto/asymmetric_keys/asymmetric_type.c key = NULL; key 521 crypto/asymmetric_keys/asymmetric_type.c key = key_lookup(serial); key 522 crypto/asymmetric_keys/asymmetric_type.c if (IS_ERR(key)) { key 523 crypto/asymmetric_keys/asymmetric_type.c ret = ERR_CAST(key); key 528 crypto/asymmetric_keys/asymmetric_type.c ret = asymmetric_restriction_alloc(link_fn, key); key 530 crypto/asymmetric_keys/asymmetric_type.c key_put(key); key 542 crypto/asymmetric_keys/asymmetric_type.c struct key *key = params->key; key 547 crypto/asymmetric_keys/asymmetric_type.c if (key->type != &key_type_asymmetric) key 549 crypto/asymmetric_keys/asymmetric_type.c subtype = asymmetric_key_subtype(key); key 551 crypto/asymmetric_keys/asymmetric_type.c !key->payload.data[0]) key 574 crypto/asymmetric_keys/asymmetric_type.c return verify_signature(params->key, &sig); key 24 crypto/asymmetric_keys/pkcs7_trust.c struct key *trust_keyring) key 28 crypto/asymmetric_keys/pkcs7_trust.c struct key *key; key 50 crypto/asymmetric_keys/pkcs7_trust.c key = find_asymmetric_key(trust_keyring, key 52 crypto/asymmetric_keys/pkcs7_trust.c if (!IS_ERR(key)) { key 59 crypto/asymmetric_keys/pkcs7_trust.c sinfo->index, x509->index, key_serial(key)); key 62 crypto/asymmetric_keys/pkcs7_trust.c if (key == ERR_PTR(-ENOMEM)) key 82 crypto/asymmetric_keys/pkcs7_trust.c key = find_asymmetric_key(trust_keyring, key 86 crypto/asymmetric_keys/pkcs7_trust.c if (!IS_ERR(key)) { key 89 crypto/asymmetric_keys/pkcs7_trust.c sinfo->index, x509->index, key_serial(key)); key 92 crypto/asymmetric_keys/pkcs7_trust.c if (PTR_ERR(key) != -ENOKEY) key 93 crypto/asymmetric_keys/pkcs7_trust.c return PTR_ERR(key); key 99 crypto/asymmetric_keys/pkcs7_trust.c key = find_asymmetric_key(trust_keyring, key 101 crypto/asymmetric_keys/pkcs7_trust.c if (!IS_ERR(key)) { key 103 crypto/asymmetric_keys/pkcs7_trust.c sinfo->index, key_serial(key)); key 108 crypto/asymmetric_keys/pkcs7_trust.c if (PTR_ERR(key) != -ENOKEY) key 109 crypto/asymmetric_keys/pkcs7_trust.c return PTR_ERR(key); key 115 crypto/asymmetric_keys/pkcs7_trust.c ret = verify_signature(key, sig); key 116 crypto/asymmetric_keys/pkcs7_trust.c key_put(key); key 159 crypto/asymmetric_keys/pkcs7_trust.c struct key *trust_keyring) key 26 crypto/asymmetric_keys/pkcs8_parser.c const void *key; key 89 crypto/asymmetric_keys/pkcs8_parser.c ctx->key = value; key 119 crypto/asymmetric_keys/pkcs8_parser.c pub->key = kmemdup(ctx.key, ctx.key_size, GFP_KERNEL); key 120 crypto/asymmetric_keys/pkcs8_parser.c if (!pub->key) key 28 crypto/asymmetric_keys/public_key.c static void public_key_describe(const struct key *asymmetric_key, key 31 crypto/asymmetric_keys/public_key.c struct public_key *key = asymmetric_key->payload.data[asym_crypto]; key 33 crypto/asymmetric_keys/public_key.c if (key) key 34 crypto/asymmetric_keys/public_key.c seq_printf(m, "%s.%s", key->id_type, key->pkey_algo); key 40 crypto/asymmetric_keys/public_key.c void public_key_free(struct public_key *key) key 42 crypto/asymmetric_keys/public_key.c if (key) { key 43 crypto/asymmetric_keys/public_key.c kfree(key->key); key 44 crypto/asymmetric_keys/public_key.c kfree(key->params); key 45 crypto/asymmetric_keys/public_key.c kfree(key); key 107 crypto/asymmetric_keys/public_key.c struct public_key *pkey = params->key->payload.data[asym_crypto]; key 109 crypto/asymmetric_keys/public_key.c u8 *key, *ptr; key 122 crypto/asymmetric_keys/public_key.c key = kmalloc(pkey->keylen + sizeof(u32) * 2 + pkey->paramlen, key 124 crypto/asymmetric_keys/public_key.c if (!key) key 126 crypto/asymmetric_keys/public_key.c memcpy(key, pkey->key, pkey->keylen); key 127 crypto/asymmetric_keys/public_key.c ptr = key + pkey->keylen; key 133 crypto/asymmetric_keys/public_key.c ret = crypto_akcipher_set_priv_key(tfm, key, pkey->keylen); key 135 crypto/asymmetric_keys/public_key.c ret = crypto_akcipher_set_pub_key(tfm, key, pkey->keylen); key 153 crypto/asymmetric_keys/public_key.c kfree(key); key 166 crypto/asymmetric_keys/public_key.c const struct public_key *pkey = params->key->payload.data[asym_crypto]; key 172 crypto/asymmetric_keys/public_key.c char *key, *ptr; key 192 crypto/asymmetric_keys/public_key.c key = kmalloc(pkey->keylen + sizeof(u32) * 2 + pkey->paramlen, key 194 crypto/asymmetric_keys/public_key.c if (!key) key 197 crypto/asymmetric_keys/public_key.c memcpy(key, pkey->key, pkey->keylen); key 198 crypto/asymmetric_keys/public_key.c ptr = key + pkey->keylen; key 204 crypto/asymmetric_keys/public_key.c ret = crypto_akcipher_set_priv_key(tfm, key, pkey->keylen); key 206 crypto/asymmetric_keys/public_key.c ret = crypto_akcipher_set_pub_key(tfm, key, pkey->keylen); key 239 crypto/asymmetric_keys/public_key.c kfree(key); key 259 crypto/asymmetric_keys/public_key.c char *key, *ptr; key 283 crypto/asymmetric_keys/public_key.c key = kmalloc(pkey->keylen + sizeof(u32) * 2 + pkey->paramlen, key 285 crypto/asymmetric_keys/public_key.c if (!key) key 288 crypto/asymmetric_keys/public_key.c memcpy(key, pkey->key, pkey->keylen); key 289 crypto/asymmetric_keys/public_key.c ptr = key + pkey->keylen; key 295 crypto/asymmetric_keys/public_key.c ret = crypto_akcipher_set_priv_key(tfm, key, pkey->keylen); key 297 crypto/asymmetric_keys/public_key.c ret = crypto_akcipher_set_pub_key(tfm, key, pkey->keylen); key 313 crypto/asymmetric_keys/public_key.c kfree(key); key 325 crypto/asymmetric_keys/public_key.c static int public_key_verify_signature_2(const struct key *key, key 328 crypto/asymmetric_keys/public_key.c const struct public_key *pk = key->payload.data[asym_crypto]; key 70 crypto/asymmetric_keys/restrict.c int restrict_link_by_signature(struct key *dest_keyring, key 73 crypto/asymmetric_keys/restrict.c struct key *trust_keyring) key 76 crypto/asymmetric_keys/restrict.c struct key *key; key 97 crypto/asymmetric_keys/restrict.c key = find_asymmetric_key(trust_keyring, key 100 crypto/asymmetric_keys/restrict.c if (IS_ERR(key)) key 103 crypto/asymmetric_keys/restrict.c if (use_builtin_keys && !test_bit(KEY_FLAG_BUILTIN, &key->flags)) key 106 crypto/asymmetric_keys/restrict.c ret = verify_signature(key, sig); key 107 crypto/asymmetric_keys/restrict.c key_put(key); key 118 crypto/asymmetric_keys/restrict.c static int key_or_keyring_common(struct key *dest_keyring, key 121 crypto/asymmetric_keys/restrict.c struct key *trusted, bool check_dest) key 124 crypto/asymmetric_keys/restrict.c struct key *key = NULL; key 149 crypto/asymmetric_keys/restrict.c key = find_asymmetric_key(trusted, sig->auth_ids[0], key 151 crypto/asymmetric_keys/restrict.c if (IS_ERR(key)) key 152 crypto/asymmetric_keys/restrict.c key = NULL; key 180 crypto/asymmetric_keys/restrict.c key = __key_get(trusted); key 186 crypto/asymmetric_keys/restrict.c key = __key_get(trusted); key 193 crypto/asymmetric_keys/restrict.c if (check_dest && !key) { key 195 crypto/asymmetric_keys/restrict.c key = find_asymmetric_key(dest_keyring, sig->auth_ids[0], key 197 crypto/asymmetric_keys/restrict.c if (IS_ERR(key)) key 198 crypto/asymmetric_keys/restrict.c key = NULL; key 201 crypto/asymmetric_keys/restrict.c if (!key) key 204 crypto/asymmetric_keys/restrict.c ret = key_validate(key); key 206 crypto/asymmetric_keys/restrict.c ret = verify_signature(key, sig); key 208 crypto/asymmetric_keys/restrict.c key_put(key); key 230 crypto/asymmetric_keys/restrict.c int restrict_link_by_key_or_keyring(struct key *dest_keyring, key 233 crypto/asymmetric_keys/restrict.c struct key *trusted) key 257 crypto/asymmetric_keys/restrict.c int restrict_link_by_key_or_keyring_chain(struct key *dest_keyring, key 260 crypto/asymmetric_keys/restrict.c struct key *trusted) key 46 crypto/asymmetric_keys/signature.c struct key *key = params->key; key 51 crypto/asymmetric_keys/signature.c if (key->type != &key_type_asymmetric) key 53 crypto/asymmetric_keys/signature.c subtype = asymmetric_key_subtype(key); key 55 crypto/asymmetric_keys/signature.c !key->payload.data[0]) key 137 crypto/asymmetric_keys/signature.c int verify_signature(const struct key *key, key 145 crypto/asymmetric_keys/signature.c if (key->type != &key_type_asymmetric) key 147 crypto/asymmetric_keys/signature.c subtype = asymmetric_key_subtype(key); key 149 crypto/asymmetric_keys/signature.c !key->payload.data[0]) key 154 crypto/asymmetric_keys/signature.c ret = subtype->verify_signature(key, sig); key 417 crypto/asymmetric_keys/verify_pefile.c struct key *trusted_keys, key 23 crypto/asymmetric_keys/x509_cert_parser.c const void *key; /* Key data */ key 105 crypto/asymmetric_keys/x509_cert_parser.c cert->pub->key = kmemdup(ctx->key, ctx->key_size, GFP_KERNEL); key 106 crypto/asymmetric_keys/x509_cert_parser.c if (!cert->pub->key) key 437 crypto/asymmetric_keys/x509_cert_parser.c if (!ctx->cert->raw_subject || ctx->key) key 465 crypto/asymmetric_keys/x509_cert_parser.c ctx->key = value + 1; key 46 crypto/authenc.c int crypto_authenc_extractkeys(struct crypto_authenc_keys *keys, const u8 *key, key 49 crypto/authenc.c struct rtattr *rta = (struct rtattr *)key; key 70 crypto/authenc.c key += rta->rta_len; key 77 crypto/authenc.c keys->authkey = key; key 78 crypto/authenc.c keys->enckey = key + keys->authkeylen; key 84 crypto/authenc.c static int crypto_authenc_setkey(struct crypto_aead *authenc, const u8 *key, key 93 crypto/authenc.c if (crypto_authenc_extractkeys(&keys, key, keylen) != 0) key 58 crypto/authencesn.c static int crypto_authenc_esn_setkey(struct crypto_aead *authenc_esn, const u8 *key, key 67 crypto/authencesn.c if (crypto_authenc_extractkeys(&keys, key, keylen) != 0) key 368 crypto/blkcipher.c static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, key 383 crypto/blkcipher.c memcpy(alignbuffer, key, keylen); key 390 crypto/blkcipher.c static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) key 400 crypto/blkcipher.c if ((unsigned long)key & alignmask) key 401 crypto/blkcipher.c return setkey_unaligned(tfm, key, keylen); key 403 crypto/blkcipher.c return cipher->setkey(tfm, key, keylen); key 406 crypto/blkcipher.c static int async_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 409 crypto/blkcipher.c return setkey(crypto_ablkcipher_tfm(tfm), key, keylen); key 344 crypto/blowfish_common.c int blowfish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) key 363 crypto/blowfish_common.c temp = (((u32)key[j] << 24) | key 364 crypto/blowfish_common.c ((u32)key[(j + 1) % keylen] << 16) | key 365 crypto/blowfish_common.c ((u32)key[(j + 2) % keylen] << 8) | key 366 crypto/blowfish_common.c ((u32)key[(j + 3) % keylen])); key 545 crypto/camellia_generic.c static void camellia_setup128(const unsigned char *key, u32 *subkey) key 555 crypto/camellia_generic.c kll = get_unaligned_be32(key); key 556 crypto/camellia_generic.c klr = get_unaligned_be32(key + 4); key 557 crypto/camellia_generic.c krl = get_unaligned_be32(key + 8); key 558 crypto/camellia_generic.c krr = get_unaligned_be32(key + 12); key 651 crypto/camellia_generic.c static void camellia_setup256(const unsigned char *key, u32 *subkey) key 663 crypto/camellia_generic.c kll = get_unaligned_be32(key); key 664 crypto/camellia_generic.c klr = get_unaligned_be32(key + 4); key 665 crypto/camellia_generic.c krl = get_unaligned_be32(key + 8); key 666 crypto/camellia_generic.c krr = get_unaligned_be32(key + 12); key 667 crypto/camellia_generic.c krll = get_unaligned_be32(key + 16); key 668 crypto/camellia_generic.c krlr = get_unaligned_be32(key + 20); key 669 crypto/camellia_generic.c krrl = get_unaligned_be32(key + 24); key 670 crypto/camellia_generic.c krrr = get_unaligned_be32(key + 28); key 800 crypto/camellia_generic.c static void camellia_setup192(const unsigned char *key, u32 *subkey) key 805 crypto/camellia_generic.c memcpy(kk, key, 24); key 806 crypto/camellia_generic.c memcpy((unsigned char *)&krll, key+16, 4); key 807 crypto/camellia_generic.c memcpy((unsigned char *)&krlr, key+20, 4); key 972 crypto/camellia_generic.c const unsigned char *key = (const unsigned char *)in_key; key 984 crypto/camellia_generic.c camellia_setup128(key, cctx->key_table); key 987 crypto/camellia_generic.c camellia_setup192(key, cctx->key_table); key 990 crypto/camellia_generic.c camellia_setup256(key, cctx->key_table); key 479 crypto/cast5_generic.c int cast5_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len) key 491 crypto/cast5_generic.c memcpy(p_key, key, key_len); key 93 crypto/cast6_generic.c static inline void W(u32 *key, unsigned int i) key 96 crypto/cast6_generic.c key[6] ^= F1(key[7], Tr[i % 4][0], Tm[i][0]); key 97 crypto/cast6_generic.c key[5] ^= F2(key[6], Tr[i % 4][1], Tm[i][1]); key 98 crypto/cast6_generic.c key[4] ^= F3(key[5], Tr[i % 4][2], Tm[i][2]); key 99 crypto/cast6_generic.c key[3] ^= F1(key[4], Tr[i % 4][3], Tm[i][3]); key 100 crypto/cast6_generic.c key[2] ^= F2(key[3], Tr[i % 4][4], Tm[i][4]); key 101 crypto/cast6_generic.c key[1] ^= F3(key[2], Tr[i % 4][5], Tm[i][5]); key 102 crypto/cast6_generic.c key[0] ^= F1(key[1], Tr[i % 4][6], Tm[i][6]); key 103 crypto/cast6_generic.c key[7] ^= F2(key[0], Tr[i % 4][7], Tm[i][7]); key 110 crypto/cast6_generic.c u32 key[8]; key 121 crypto/cast6_generic.c key[0] = be32_to_cpu(p_key[0]); /* A */ key 122 crypto/cast6_generic.c key[1] = be32_to_cpu(p_key[1]); /* B */ key 123 crypto/cast6_generic.c key[2] = be32_to_cpu(p_key[2]); /* C */ key 124 crypto/cast6_generic.c key[3] = be32_to_cpu(p_key[3]); /* D */ key 125 crypto/cast6_generic.c key[4] = be32_to_cpu(p_key[4]); /* E */ key 126 crypto/cast6_generic.c key[5] = be32_to_cpu(p_key[5]); /* F */ key 127 crypto/cast6_generic.c key[6] = be32_to_cpu(p_key[6]); /* G */ key 128 crypto/cast6_generic.c key[7] = be32_to_cpu(p_key[7]); /* H */ key 131 crypto/cast6_generic.c W(key, 2 * i); key 132 crypto/cast6_generic.c W(key, 2 * i + 1); key 134 crypto/cast6_generic.c c->Kr[i][0] = key[0] & 0x1f; key 135 crypto/cast6_generic.c c->Kr[i][1] = key[2] & 0x1f; key 136 crypto/cast6_generic.c c->Kr[i][2] = key[4] & 0x1f; key 137 crypto/cast6_generic.c c->Kr[i][3] = key[6] & 0x1f; key 139 crypto/cast6_generic.c c->Km[i][0] = key[7]; key 140 crypto/cast6_generic.c c->Km[i][1] = key[5]; key 141 crypto/cast6_generic.c c->Km[i][2] = key[3]; key 142 crypto/cast6_generic.c c->Km[i][3] = key[1]; key 149 crypto/cast6_generic.c int cast6_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) key 151 crypto/cast6_generic.c return __cast6_setkey(crypto_tfm_ctx(tfm), key, keylen, key 88 crypto/ccm.c static int crypto_ccm_setkey(struct crypto_aead *aead, const u8 *key, key 99 crypto/ccm.c err = crypto_skcipher_setkey(ctr, key, keylen); key 108 crypto/ccm.c err = crypto_ahash_setkey(mac, key, keylen); key 602 crypto/ccm.c static int crypto_rfc4309_setkey(struct crypto_aead *parent, const u8 *key, key 613 crypto/ccm.c memcpy(ctx->nonce, key + keylen, 3); key 618 crypto/ccm.c err = crypto_aead_setkey(child, key, keylen); key 57 crypto/chacha20poly1305.c u8 key[POLY1305_KEY_SIZE]; key 320 crypto/chacha20poly1305.c sg_init_one(preq->src, rctx->key, sizeof(rctx->key)); key 325 crypto/chacha20poly1305.c ahash_request_set_crypt(&preq->req, preq->src, NULL, sizeof(rctx->key)); key 378 crypto/chacha20poly1305.c memset(rctx->key, 0, sizeof(rctx->key)); key 379 crypto/chacha20poly1305.c sg_init_one(creq->src, rctx->key, sizeof(rctx->key)); key 476 crypto/chacha20poly1305.c static int chachapoly_setkey(struct crypto_aead *aead, const u8 *key, key 486 crypto/chacha20poly1305.c memcpy(ctx->salt, key + keylen, ctx->saltlen); key 492 crypto/chacha20poly1305.c err = crypto_skcipher_setkey(ctx->chacha, key, keylen); key 65 crypto/chacha_generic.c state[4] = ctx->key[0]; key 66 crypto/chacha_generic.c state[5] = ctx->key[1]; key 67 crypto/chacha_generic.c state[6] = ctx->key[2]; key 68 crypto/chacha_generic.c state[7] = ctx->key[3]; key 69 crypto/chacha_generic.c state[8] = ctx->key[4]; key 70 crypto/chacha_generic.c state[9] = ctx->key[5]; key 71 crypto/chacha_generic.c state[10] = ctx->key[6]; key 72 crypto/chacha_generic.c state[11] = ctx->key[7]; key 80 crypto/chacha_generic.c static int chacha_setkey(struct crypto_skcipher *tfm, const u8 *key, key 89 crypto/chacha_generic.c for (i = 0; i < ARRAY_SIZE(ctx->key); i++) key 90 crypto/chacha_generic.c ctx->key[i] = get_unaligned_le32(key + i * sizeof(u32)); key 96 crypto/chacha_generic.c int crypto_chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key, key 99 crypto/chacha_generic.c return chacha_setkey(tfm, key, keysize, 20); key 103 crypto/chacha_generic.c int crypto_chacha12_setkey(struct crypto_skcipher *tfm, const u8 *key, key 106 crypto/chacha_generic.c return chacha_setkey(tfm, key, keysize, 12); key 129 crypto/chacha_generic.c hchacha_block(state, subctx.key, ctx->nrounds); key 19 crypto/cipher.c static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, key 34 crypto/cipher.c memcpy(alignbuffer, key, keylen); key 42 crypto/cipher.c static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) key 53 crypto/cipher.c if ((unsigned long)key & alignmask) key 54 crypto/cipher.c return setkey_unaligned(tfm, key, keylen); key 56 crypto/cipher.c return cia->cia_setkey(tfm, key, keylen); key 46 crypto/crc32_generic.c u32 *key = crypto_tfm_ctx(tfm); key 48 crypto/crc32_generic.c *key = 0; key 58 crypto/crc32_generic.c static int crc32_setkey(struct crypto_shash *hash, const u8 *key, key 67 crypto/crc32_generic.c *mctx = get_unaligned_le32(key); key 45 crypto/crc32c_generic.c u32 key; key 62 crypto/crc32c_generic.c ctx->crc = mctx->key; key 72 crypto/crc32c_generic.c static int chksum_setkey(struct crypto_shash *tfm, const u8 *key, key 77 crypto/crc32c_generic.c if (keylen != sizeof(mctx->key)) { key 81 crypto/crc32c_generic.c mctx->key = get_unaligned_le32(key); key 121 crypto/crc32c_generic.c return __chksum_finup(&mctx->key, data, length, out); key 128 crypto/crc32c_generic.c mctx->key = ~0; key 251 crypto/cryptd.c const u8 *key, unsigned int keylen) key 261 crypto/cryptd.c err = crypto_sync_skcipher_setkey(child, key, keylen); key 490 crypto/cryptd.c const u8 *key, unsigned int keylen) key 499 crypto/cryptd.c err = crypto_shash_setkey(child, key, keylen); key 735 crypto/cryptd.c const u8 *key, unsigned int keylen) key 740 crypto/cryptd.c return crypto_aead_setkey(child, key, keylen); key 59 crypto/crypto_null.c static int null_hash_setkey(struct crypto_shash *tfm, const u8 *key, key 63 crypto/crypto_null.c static int null_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, key 67 crypto/crypto_null.c static int null_setkey(struct crypto_tfm *tfm, const u8 *key, key 170 crypto/ctr.c const u8 *key, unsigned int keylen) key 180 crypto/ctr.c memcpy(ctx->nonce, key + (keylen - CTR_RFC3686_NONCE_SIZE), key 188 crypto/ctr.c err = crypto_skcipher_setkey(child, key, keylen); key 76 crypto/cts.c static int crypto_cts_setkey(struct crypto_skcipher *parent, const u8 *key, key 86 crypto/cts.c err = crypto_skcipher_setkey(child, key, keylen); key 19 crypto/des_generic.c static int des_setkey(struct crypto_tfm *tfm, const u8 *key, key 25 crypto/des_generic.c err = des_expand_key(dctx, key, keylen); key 54 crypto/des_generic.c static int des3_ede_setkey(struct crypto_tfm *tfm, const u8 *key, key 60 crypto/des_generic.c err = des3_ede_expand_key(dctx, key, keylen); key 89 crypto/dh.c ctx->xa = mpi_read_raw_data(params.key, params.key_size); key 58 crypto/dh_helper.c ptr = dh_pack_data(ptr, end, params->key, params->key_size); key 98 crypto/dh_helper.c params->key = (void *)ptr; key 307 crypto/drbg.c const unsigned char *key); key 319 crypto/drbg.c unsigned char *out, const unsigned char *key, key 330 crypto/drbg.c drbg_kcapi_symsetkey(drbg, key); key 636 crypto/drbg.c const unsigned char *key); key 1697 crypto/drbg.c const unsigned char *key) key 1701 crypto/drbg.c crypto_shash_setkey(sdesc->shash.tfm, key, drbg_statelen(drbg)); key 1800 crypto/drbg.c const unsigned char *key) key 1805 crypto/drbg.c crypto_cipher_setkey(tfm, key, (drbg_keylen(drbg))); key 52 crypto/ecdh.c if (!params.key || !params.key_size) key 57 crypto/ecdh.c (const u64 *)params.key, params.key_size) < 0) key 60 crypto/ecdh.c memcpy(ctx->private_key, params.key, params.key_size); key 51 crypto/ecdh_helper.c ecdh_pack_data(ptr, params->key, params->key_size); key 78 crypto/ecdh_helper.c params->key = (void *)ptr; key 41 crypto/ecrdsa.c const char *key; /* raw public key */ key 178 crypto/ecrdsa.c ctx->key = value; key 190 crypto/ecrdsa.c static int ecrdsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, key 199 crypto/ecrdsa.c err = asn1_ber_decoder(&ecrdsa_pub_key_decoder, ctx, key, keylen); key 205 crypto/ecrdsa.c ecrdsa_unpack_u32(&algo, (u8 *)key + keylen)); key 241 crypto/ecrdsa.c vli_from_le64(ctx->pub_key.x, ctx->key, ndigits); key 242 crypto/ecrdsa.c vli_from_le64(ctx->pub_key.y, ctx->key + ndigits * sizeof(u64), key 66 crypto/essiv.c const u8 *key, unsigned int keylen) key 77 crypto/essiv.c err = crypto_skcipher_setkey(tctx->u.skcipher, key, keylen); key 85 crypto/essiv.c err = crypto_shash_digest(desc, key, keylen, salt); key 102 crypto/essiv.c static int essiv_aead_setkey(struct crypto_aead *tfm, const u8 *key, key 114 crypto/essiv.c err = crypto_aead_setkey(tctx->u.aead, key, keylen); key 120 crypto/essiv.c if (crypto_authenc_extractkeys(&keys, key, keylen) != 0) { key 303 crypto/fcrypt.c static int fcrypt_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) key 314 crypto/fcrypt.c k = (*key++) >> 1; key 316 crypto/fcrypt.c k |= (*key++) >> 1; key 318 crypto/fcrypt.c k |= (*key++) >> 1; key 320 crypto/fcrypt.c k |= (*key++) >> 1; key 322 crypto/fcrypt.c k |= (*key++) >> 1; key 324 crypto/fcrypt.c k |= (*key++) >> 1; key 326 crypto/fcrypt.c k |= (*key++) >> 1; key 328 crypto/fcrypt.c k |= (*key) >> 1; key 353 crypto/fcrypt.c lo = (*key++) >> 1; key 355 crypto/fcrypt.c lo |= (*key++) >> 1; key 357 crypto/fcrypt.c lo |= (*key++) >> 1; key 359 crypto/fcrypt.c lo |= (*key++) >> 1; key 363 crypto/fcrypt.c lo |= (*key++) >> 1; key 365 crypto/fcrypt.c lo |= (*key++) >> 1; key 367 crypto/fcrypt.c lo |= (*key++) >> 1; key 369 crypto/fcrypt.c lo |= (*key) >> 1; key 93 crypto/gcm.c static int crypto_gcm_setkey(struct crypto_aead *aead, const u8 *key, key 113 crypto/gcm.c err = crypto_skcipher_setkey(ctr, key, keylen); key 725 crypto/gcm.c static int crypto_rfc4106_setkey(struct crypto_aead *parent, const u8 *key, key 736 crypto/gcm.c memcpy(ctx->nonce, key + keylen, 4); key 741 crypto/gcm.c err = crypto_aead_setkey(child, key, keylen); key 954 crypto/gcm.c static int crypto_rfc4543_setkey(struct crypto_aead *parent, const u8 *key, key 965 crypto/gcm.c memcpy(ctx->nonce, key + keylen, 4); key 970 crypto/gcm.c err = crypto_aead_setkey(child, key, keylen); key 56 crypto/ghash-generic.c const u8 *key, unsigned int keylen) key 70 crypto/ghash-generic.c memcpy(&k, key, GHASH_BLOCK_SIZE); /* avoid violating alignment rules */ key 760 crypto/khazad.c const __be32 *key = (const __be32 *)in_key; key 766 crypto/khazad.c K2 = ((u64)be32_to_cpu(key[0]) << 32) | be32_to_cpu(key[1]); key 767 crypto/khazad.c K1 = ((u64)be32_to_cpu(key[2]) << 32) | be32_to_cpu(key[3]); key 68 crypto/lrw.c static int setkey(struct crypto_skcipher *parent, const u8 *key, key 74 crypto/lrw.c const u8 *tweak = key + keylen - bsize; key 81 crypto/lrw.c err = crypto_skcipher_setkey(child, key, keylen - bsize); key 133 crypto/michael_mic.c static int michael_setkey(struct crypto_shash *tfm, const u8 *key, key 138 crypto/michael_mic.c const __le32 *data = (const __le32 *)key; key 41 crypto/nhpoly1305.c static void nh_generic(const u32 *key, const u8 *message, size_t message_len, key 55 crypto/nhpoly1305.c sums[0] += (u64)(u32)(m0 + key[ 0]) * (u32)(m2 + key[ 2]); key 56 crypto/nhpoly1305.c sums[1] += (u64)(u32)(m0 + key[ 4]) * (u32)(m2 + key[ 6]); key 57 crypto/nhpoly1305.c sums[2] += (u64)(u32)(m0 + key[ 8]) * (u32)(m2 + key[10]); key 58 crypto/nhpoly1305.c sums[3] += (u64)(u32)(m0 + key[12]) * (u32)(m2 + key[14]); key 59 crypto/nhpoly1305.c sums[0] += (u64)(u32)(m1 + key[ 1]) * (u32)(m3 + key[ 3]); key 60 crypto/nhpoly1305.c sums[1] += (u64)(u32)(m1 + key[ 5]) * (u32)(m3 + key[ 7]); key 61 crypto/nhpoly1305.c sums[2] += (u64)(u32)(m1 + key[ 9]) * (u32)(m3 + key[11]); key 62 crypto/nhpoly1305.c sums[3] += (u64)(u32)(m1 + key[13]) * (u32)(m3 + key[15]); key 63 crypto/nhpoly1305.c key += NH_MESSAGE_UNIT / sizeof(key[0]); key 76 crypto/nhpoly1305.c const struct nhpoly1305_key *key) key 80 crypto/nhpoly1305.c poly1305_core_blocks(&state->poly_state, &key->poly_key, state->nh_hash, key 92 crypto/nhpoly1305.c const struct nhpoly1305_key *key, key 101 crypto/nhpoly1305.c nh_fn(key->nh_key, src, bytes, state->nh_hash); key 111 crypto/nhpoly1305.c nh_fn(&key->nh_key[pos / 4], src, bytes, tmp_hash); key 118 crypto/nhpoly1305.c process_nh_hash_value(state, key); key 125 crypto/nhpoly1305.c const u8 *key, unsigned int keylen) key 133 crypto/nhpoly1305.c poly1305_core_setkey(&ctx->poly_key, key); key 134 crypto/nhpoly1305.c key += POLY1305_BLOCK_SIZE; key 137 crypto/nhpoly1305.c ctx->nh_key[i] = get_unaligned_le32(key + i * sizeof(u32)); key 159 crypto/nhpoly1305.c const struct nhpoly1305_key *key = crypto_shash_ctx(desc->tfm); key 168 crypto/nhpoly1305.c nhpoly1305_units(state, key, state->buffer, NH_MESSAGE_UNIT, key 177 crypto/nhpoly1305.c nhpoly1305_units(state, key, src, bytes, nh_fn); key 200 crypto/nhpoly1305.c const struct nhpoly1305_key *key = crypto_shash_ctx(desc->tfm); key 205 crypto/nhpoly1305.c nhpoly1305_units(state, key, state->buffer, NH_MESSAGE_UNIT, key 210 crypto/nhpoly1305.c process_nh_hash_value(state, key); key 44 crypto/pcrypt.c const u8 *key, unsigned int keylen) key 48 crypto/pcrypt.c return crypto_aead_setkey(ctx->child, key, keylen); key 50 crypto/poly1305_generic.c void poly1305_core_setkey(struct poly1305_key *key, const u8 *raw_key) key 53 crypto/poly1305_generic.c key->r[0] = (get_unaligned_le32(raw_key + 0) >> 0) & 0x3ffffff; key 54 crypto/poly1305_generic.c key->r[1] = (get_unaligned_le32(raw_key + 3) >> 2) & 0x3ffff03; key 55 crypto/poly1305_generic.c key->r[2] = (get_unaligned_le32(raw_key + 6) >> 4) & 0x3ffc0ff; key 56 crypto/poly1305_generic.c key->r[3] = (get_unaligned_le32(raw_key + 9) >> 6) & 0x3f03fff; key 57 crypto/poly1305_generic.c key->r[4] = (get_unaligned_le32(raw_key + 12) >> 8) & 0x00fffff; key 91 crypto/poly1305_generic.c const struct poly1305_key *key, key 103 crypto/poly1305_generic.c r0 = key->r[0]; key 104 crypto/poly1305_generic.c r1 = key->r[1]; key 105 crypto/poly1305_generic.c r2 = key->r[2]; key 106 crypto/poly1305_generic.c r3 = key->r[3]; key 107 crypto/poly1305_generic.c r4 = key->r[4]; key 159 crypto/poly1305_generic.c const struct poly1305_key *key, key 162 crypto/poly1305_generic.c poly1305_blocks_internal(state, key, src, nblocks, 1 << 24); key 106 crypto/rsa-pkcs1pad.c static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key, key 114 crypto/rsa-pkcs1pad.c err = crypto_akcipher_set_pub_key(ctx->child, key, keylen); key 127 crypto/rsa-pkcs1pad.c static int pkcs1pad_set_priv_key(struct crypto_akcipher *tfm, const void *key, key 135 crypto/rsa-pkcs1pad.c err = crypto_akcipher_set_priv_key(ctx->child, key, keylen); key 25 crypto/rsa.c static int _rsa_enc(const struct rsa_mpi_key *key, MPI c, MPI m) key 28 crypto/rsa.c if (mpi_cmp_ui(m, 0) < 0 || mpi_cmp(m, key->n) >= 0) key 32 crypto/rsa.c return mpi_powm(c, m, key->e, key->n); key 39 crypto/rsa.c static int _rsa_dec(const struct rsa_mpi_key *key, MPI m, MPI c) key 42 crypto/rsa.c if (mpi_cmp_ui(c, 0) < 0 || mpi_cmp(c, key->n) >= 0) key 46 crypto/rsa.c return mpi_powm(m, c, key->d, key->n); key 131 crypto/rsa.c static void rsa_free_mpi_key(struct rsa_mpi_key *key) key 133 crypto/rsa.c mpi_free(key->d); key 134 crypto/rsa.c mpi_free(key->e); key 135 crypto/rsa.c mpi_free(key->n); key 136 crypto/rsa.c key->d = NULL; key 137 crypto/rsa.c key->e = NULL; key 138 crypto/rsa.c key->n = NULL; key 156 crypto/rsa.c static int rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, key 166 crypto/rsa.c ret = rsa_parse_pub_key(&raw_key, key, keylen); key 190 crypto/rsa.c static int rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, key 200 crypto/rsa.c ret = rsa_parse_priv_key(&raw_key, key, keylen); key 19 crypto/rsa_helper.c struct rsa_key *key = context; key 40 crypto/rsa_helper.c key->n = value; key 41 crypto/rsa_helper.c key->n_sz = vlen; key 49 crypto/rsa_helper.c struct rsa_key *key = context; key 52 crypto/rsa_helper.c if (!value || !key->n_sz || !vlen || vlen > key->n_sz) key 55 crypto/rsa_helper.c key->e = value; key 56 crypto/rsa_helper.c key->e_sz = vlen; key 64 crypto/rsa_helper.c struct rsa_key *key = context; key 67 crypto/rsa_helper.c if (!value || !key->n_sz || !vlen || vlen > key->n_sz) key 70 crypto/rsa_helper.c key->d = value; key 71 crypto/rsa_helper.c key->d_sz = vlen; key 79 crypto/rsa_helper.c struct rsa_key *key = context; key 82 crypto/rsa_helper.c if (!value || !vlen || vlen > key->n_sz) key 85 crypto/rsa_helper.c key->p = value; key 86 crypto/rsa_helper.c key->p_sz = vlen; key 94 crypto/rsa_helper.c struct rsa_key *key = context; key 97 crypto/rsa_helper.c if (!value || !vlen || vlen > key->n_sz) key 100 crypto/rsa_helper.c key->q = value; key 101 crypto/rsa_helper.c key->q_sz = vlen; key 109 crypto/rsa_helper.c struct rsa_key *key = context; key 112 crypto/rsa_helper.c if (!value || !vlen || vlen > key->n_sz) key 115 crypto/rsa_helper.c key->dp = value; key 116 crypto/rsa_helper.c key->dp_sz = vlen; key 124 crypto/rsa_helper.c struct rsa_key *key = context; key 127 crypto/rsa_helper.c if (!value || !vlen || vlen > key->n_sz) key 130 crypto/rsa_helper.c key->dq = value; key 131 crypto/rsa_helper.c key->dq_sz = vlen; key 139 crypto/rsa_helper.c struct rsa_key *key = context; key 142 crypto/rsa_helper.c if (!value || !vlen || vlen > key->n_sz) key 145 crypto/rsa_helper.c key->qinv = value; key 146 crypto/rsa_helper.c key->qinv_sz = vlen; key 162 crypto/rsa_helper.c int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, key 165 crypto/rsa_helper.c return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); key 181 crypto/rsa_helper.c int rsa_parse_priv_key(struct rsa_key *rsa_key, const void *key, key 184 crypto/rsa_helper.c return asn1_ber_decoder(&rsaprivkey_decoder, rsa_key, key, key_len); key 111 crypto/salsa20_generic.c static int salsa20_setkey(struct crypto_skcipher *tfm, const u8 *key, key 123 crypto/salsa20_generic.c ctx->initial_state[1] = get_unaligned_le32(key + 0); key 124 crypto/salsa20_generic.c ctx->initial_state[2] = get_unaligned_le32(key + 4); key 125 crypto/salsa20_generic.c ctx->initial_state[3] = get_unaligned_le32(key + 8); key 126 crypto/salsa20_generic.c ctx->initial_state[4] = get_unaligned_le32(key + 12); key 128 crypto/salsa20_generic.c key += 16; key 133 crypto/salsa20_generic.c ctx->initial_state[11] = get_unaligned_le32(key + 0); key 134 crypto/salsa20_generic.c ctx->initial_state[12] = get_unaligned_le32(key + 4); key 135 crypto/salsa20_generic.c ctx->initial_state[13] = get_unaligned_le32(key + 8); key 136 crypto/salsa20_generic.c ctx->initial_state[14] = get_unaligned_le32(key + 12); key 332 crypto/seed.c const __be32 *key = (const __be32 *)in_key; key 335 crypto/seed.c x1 = be32_to_cpu(key[0]); key 336 crypto/seed.c x2 = be32_to_cpu(key[1]); key 337 crypto/seed.c x3 = be32_to_cpu(key[2]); key 338 crypto/seed.c x4 = be32_to_cpu(key[3]); key 274 crypto/serpent_generic.c int __serpent_setkey(struct serpent_ctx *ctx, const u8 *key, key 285 crypto/serpent_generic.c k8[i] = key[i]; key 446 crypto/serpent_generic.c int serpent_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) key 448 crypto/serpent_generic.c return __serpent_setkey(crypto_tfm_ctx(tfm), key, keylen); key 577 crypto/serpent_generic.c static int tnepres_setkey(struct crypto_tfm *tfm, const u8 *key, key 584 crypto/serpent_generic.c rev_key[keylen - i - 1] = key[i]; key 23 crypto/shash.c int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, key 30 crypto/shash.c static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, key 45 crypto/shash.c memcpy(alignbuffer, key, keylen); key 58 crypto/shash.c int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, key 65 crypto/shash.c if ((unsigned long)key & alignmask) key 66 crypto/shash.c err = shash_setkey_unaligned(tfm, key, keylen); key 68 crypto/shash.c err = shash->setkey(tfm, key, keylen); key 222 crypto/shash.c static int shash_async_setkey(struct crypto_ahash *tfm, const u8 *key, key 227 crypto/shash.c return crypto_shash_setkey(*ctx, key, keylen); key 50 crypto/simd.c static int simd_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, key 60 crypto/simd.c err = crypto_skcipher_setkey(child, key, key_len); key 293 crypto/simd.c static int simd_aead_setkey(struct crypto_aead *tfm, const u8 *key, key 303 crypto/simd.c err = crypto_aead_setkey(child, key, key_len); key 599 crypto/skcipher.c const u8 *key, unsigned int keylen) key 608 crypto/skcipher.c err = crypto_blkcipher_setkey(blkcipher, key, keylen); key 698 crypto/skcipher.c const u8 *key, unsigned int keylen) key 708 crypto/skcipher.c err = crypto_ablkcipher_setkey(ablkcipher, key, keylen); key 798 crypto/skcipher.c const u8 *key, unsigned int keylen) key 812 crypto/skcipher.c memcpy(alignbuffer, key, keylen); key 818 crypto/skcipher.c static int skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, key 830 crypto/skcipher.c if ((unsigned long)key & alignmask) key 831 crypto/skcipher.c err = skcipher_setkey_unaligned(tfm, key, keylen); key 833 crypto/skcipher.c err = cipher->setkey(tfm, key, keylen); key 1108 crypto/skcipher.c static int skcipher_setkey_simple(struct crypto_skcipher *tfm, const u8 *key, key 1117 crypto/skcipher.c err = crypto_cipher_setkey(cipher, key, keylen); key 120 crypto/sm4_generic.c const u32 *key = (u32 *)in_key; key 127 crypto/sm4_generic.c rk[i] = get_unaligned_be32(&key[i]) ^ fk[i]; key 258 crypto/tcrypt.c const char *key; key 352 crypto/tcrypt.c key = tvmem[0]; key 355 crypto/tcrypt.c key = template[j].key; key 362 crypto/tcrypt.c ret = crypto_aead_setkey(tfm, key, *keysize); key 526 crypto/tcrypt.c const char *key; key 602 crypto/tcrypt.c key = tvmem[0]; key 605 crypto/tcrypt.c key = template[j].key; key 609 crypto/tcrypt.c ret = crypto_aead_setkey(tfm, key, *keysize); key 1255 crypto/tcrypt.c const char *key; key 1330 crypto/tcrypt.c key = tvmem[0]; key 1333 crypto/tcrypt.c key = template[j].key; key 1340 crypto/tcrypt.c ret = crypto_skcipher_setkey(tfm, key, *keysize); key 1495 crypto/tcrypt.c const char *key; key 1550 crypto/tcrypt.c key = tvmem[0]; key 1553 crypto/tcrypt.c key = template[j].key; key 1560 crypto/tcrypt.c ret = crypto_skcipher_setkey(tfm, key, *keysize); key 16 crypto/tcrypt.h const char *key; key 21 crypto/tcrypt.h const char *key; key 38 crypto/tcrypt.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" key 46 crypto/tea.c const __le32 *key = (const __le32 *)in_key; key 48 crypto/tea.c ctx->KEY[0] = le32_to_cpu(key[0]); key 49 crypto/tea.c ctx->KEY[1] = le32_to_cpu(key[1]); key 50 crypto/tea.c ctx->KEY[2] = le32_to_cpu(key[2]); key 51 crypto/tea.c ctx->KEY[3] = le32_to_cpu(key[3]); key 119 crypto/tea.c const __le32 *key = (const __le32 *)in_key; key 121 crypto/tea.c ctx->KEY[0] = le32_to_cpu(key[0]); key 122 crypto/tea.c ctx->KEY[1] = le32_to_cpu(key[1]); key 123 crypto/tea.c ctx->KEY[2] = le32_to_cpu(key[2]); key 124 crypto/tea.c ctx->KEY[3] = le32_to_cpu(key[3]); key 1106 crypto/testmgr.c err = crypto_shash_setkey(tfm, vec->key, vec->ksize); key 1293 crypto/testmgr.c err = crypto_ahash_setkey(tfm, vec->key, vec->ksize); key 1526 crypto/testmgr.c generate_random_bytes((u8 *)vec->key, vec->ksize); key 1528 crypto/testmgr.c vec->setkey_error = crypto_shash_setkey(desc->tfm, vec->key, key 1632 crypto/testmgr.c vec.key = kmalloc(maxkeysize, GFP_KERNEL); key 1635 crypto/testmgr.c if (!vec.key || !vec.plaintext || !vec.digest) { key 1655 crypto/testmgr.c kfree(vec.key); key 1864 crypto/testmgr.c err = crypto_aead_setkey(tfm, vec->key, vec->klen); key 2074 crypto/testmgr.c generate_random_bytes((u8 *)vec->key, vec->klen); key 2075 crypto/testmgr.c vec->setkey_error = crypto_aead_setkey(tfm, vec->key, vec->klen); key 2229 crypto/testmgr.c vec.key = kmalloc(maxkeysize, GFP_KERNEL); key 2234 crypto/testmgr.c if (!vec.key || !vec.iv || !vec.assoc || !vec.ptext || !vec.ctext) { key 2260 crypto/testmgr.c kfree(vec.key); key 2392 crypto/testmgr.c ret = crypto_cipher_setkey(tfm, template[i].key, key 2463 crypto/testmgr.c err = crypto_skcipher_setkey(tfm, vec->key, vec->klen); key 2663 crypto/testmgr.c generate_random_bytes((u8 *)vec->key, vec->klen); key 2664 crypto/testmgr.c vec->setkey_error = crypto_skcipher_setkey(tfm, vec->key, vec->klen); key 2793 crypto/testmgr.c vec.key = kmalloc(tfm->keysize, GFP_KERNEL); key 2797 crypto/testmgr.c if (!vec.key || !vec.iv || !vec.ptext || !vec.ctext) { key 2820 crypto/testmgr.c kfree(vec.key); key 3207 crypto/testmgr.c memcpy(seed + template[i].vlen, template[i].key, key 3671 crypto/testmgr.c u8 *key, *ptr; key 3682 crypto/testmgr.c key = kmalloc(vecs->key_len + sizeof(u32) * 2 + vecs->param_len, key 3684 crypto/testmgr.c if (!key) key 3686 crypto/testmgr.c memcpy(key, vecs->key, vecs->key_len); key 3687 crypto/testmgr.c ptr = key + vecs->key_len; key 3693 crypto/testmgr.c err = crypto_akcipher_set_pub_key(tfm, key, vecs->key_len); key 3695 crypto/testmgr.c err = crypto_akcipher_set_priv_key(tfm, key, vecs->key_len); key 3825 crypto/testmgr.c kfree(key); key 38 crypto/testmgr.h const char *key; key 65 crypto/testmgr.h const char *key; key 100 crypto/testmgr.h const char *key; key 117 crypto/testmgr.h const char *key; key 144 crypto/testmgr.h const unsigned char *key; key 179 crypto/testmgr.h .key = key 209 crypto/testmgr.h .key = key 253 crypto/testmgr.h .key = key 318 crypto/testmgr.h .key = key 362 crypto/testmgr.h .key = key 568 crypto/testmgr.h .key = key 594 crypto/testmgr.h .key = key 620 crypto/testmgr.h .key = key 646 crypto/testmgr.h .key = key 681 crypto/testmgr.h .key = key 722 crypto/testmgr.h .key = key 2524 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 2543 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 3924 crypto/testmgr.h .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03" key 3933 crypto/testmgr.h .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" key 3941 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 3952 crypto/testmgr.h .key = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6" key 3963 crypto/testmgr.h .key = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0" key 3971 crypto/testmgr.h .key = "\x0a\x1b\x2c\x3d\x4e\x5f\x64\x71" key 4037 crypto/testmgr.h .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", key 4044 crypto/testmgr.h .key = "Jefe", key 4051 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", key 4061 crypto/testmgr.h .key = "\x01\x02\x03\x04\x05\x06\x07\x08" key 4073 crypto/testmgr.h .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", key 4080 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 4093 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 4114 crypto/testmgr.h .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", key 4121 crypto/testmgr.h .key = "Jefe", key 4128 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", key 4138 crypto/testmgr.h .key = "\x01\x02\x03\x04\x05\x06\x07\x08" key 4150 crypto/testmgr.h .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", key 4157 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 4170 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 4191 crypto/testmgr.h .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", key 4198 crypto/testmgr.h .key = "Jefe", key 4205 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", key 4215 crypto/testmgr.h .key = "\x01\x02\x03\x04\x05\x06\x07\x08" key 4227 crypto/testmgr.h .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", key 4234 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 4247 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 4268 crypto/testmgr.h .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", key 4276 crypto/testmgr.h .key = "Jefe", key 4283 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", key 4293 crypto/testmgr.h .key = "\x01\x02\x03\x04\x05\x06\x07\x08" key 4305 crypto/testmgr.h .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", key 4312 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 4325 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 4347 crypto/testmgr.h .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" key 4359 crypto/testmgr.h .key = "Jefe", key 4372 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 4404 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 4458 crypto/testmgr.h .key = "\x01\x02\x03\x04\x05\x06\x07\x08" key 4470 crypto/testmgr.h .key = "\x01\x02\x03\x04\x05\x06\x07\x08" key 4482 crypto/testmgr.h .key = "\x01\x02\x03\x04\x05\x06\x07\x08" key 4495 crypto/testmgr.h .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" key 4506 crypto/testmgr.h .key = "Jefe", key 4515 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 4529 crypto/testmgr.h .key = "\x01\x02\x03\x04\x05\x06\x07\x08" key 4545 crypto/testmgr.h .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c" key 4556 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 4571 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 4591 crypto/testmgr.h .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" key 4599 crypto/testmgr.h .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" key 4608 crypto/testmgr.h .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" key 4620 crypto/testmgr.h .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" key 4635 crypto/testmgr.h .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" key 4645 crypto/testmgr.h .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" key 4666 crypto/testmgr.h .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" key 4675 crypto/testmgr.h .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" key 4687 crypto/testmgr.h .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" key 4702 crypto/testmgr.h .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" key 4729 crypto/testmgr.h .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62" key 4737 crypto/testmgr.h .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62" key 4745 crypto/testmgr.h .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62" key 4755 crypto/testmgr.h .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62" key 4770 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 4778 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 4786 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 4795 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 4805 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 4816 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 4878 crypto/testmgr.h .key = "abcdefghijklmnop", key 4884 crypto/testmgr.h .key = "abcdefghijklmnop", key 4890 crypto/testmgr.h .key = "abcdefghijklmnop", key 4897 crypto/testmgr.h .key = "abcdefghijklmnop", key 4909 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 4917 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 4924 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 4931 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 4938 crypto/testmgr.h .key = "abcdefghijklmnop", key 4945 crypto/testmgr.h .key = "abcdefghijklmnop", key 4951 crypto/testmgr.h .key = "abcdefghijklmnop", key 4957 crypto/testmgr.h .key = "abcdefghijklmnop", key 4963 crypto/testmgr.h .key = "a09b5cd!f#07K\x00\x00\x00", key 4969 crypto/testmgr.h .key = "a09b5cd!f#07K\x00\x00\x00", key 4975 crypto/testmgr.h .key = "a09b5cd!f#07K\x00\x00\x00", key 4989 crypto/testmgr.h .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" key 5002 crypto/testmgr.h .key = "Jefe", key 5013 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 5041 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 5085 crypto/testmgr.h .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" key 5100 crypto/testmgr.h .key = "Jefe", key 5113 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 5145 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 5188 crypto/testmgr.h .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" key 5199 crypto/testmgr.h .key = "Jefe", key 5208 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 5236 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 5275 crypto/testmgr.h .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" key 5286 crypto/testmgr.h .key = "Jefe", key 5295 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 5323 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 5362 crypto/testmgr.h .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" key 5375 crypto/testmgr.h .key = "Jefe", key 5386 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 5416 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 5457 crypto/testmgr.h .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" key 5472 crypto/testmgr.h .key = "Jefe", key 5485 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 5517 crypto/testmgr.h .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" key 5849 crypto/testmgr.h .key = "\xd2\x5d\x4c\xdd\x8d\x2b\x7f\x7a" key 5991 crypto/testmgr.h .key = "\x29\x21\x43\xcb\xcb\x13\x07\xde" key 6134 crypto/testmgr.h .key = "\x2e\x77\x1e\x2c\x63\x76\x34\x3f" key 6278 crypto/testmgr.h .key = "\x65\x4d\xe3\xf8\xd2\x4c\xac\x28" key 6547 crypto/testmgr.h .key = "\x1b\x82\x2e\x1b\x17\x23\xb9\x6d" key 6818 crypto/testmgr.h .key = "\xf6\x34\x42\x71\x35\x52\x8b\x58" key 7223 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", key 7229 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", key 7235 crypto/testmgr.h .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57", key 7241 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", key 7253 crypto/testmgr.h .key = "\x01\x01\x01\x01\x01\x01\x01\x01", key 7259 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", key 7267 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", key 7275 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", key 7287 crypto/testmgr.h .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", key 7357 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", key 7369 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", key 7377 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", key 7385 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", key 7393 crypto/testmgr.h .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", key 7465 crypto/testmgr.h .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", key 7533 crypto/testmgr.h .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", key 7605 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" key 7613 crypto/testmgr.h .key = "\x03\x52\x02\x07\x67\x20\x82\x17" key 7621 crypto/testmgr.h .key = "\x10\x46\x10\x34\x89\x98\x80\x20" key 7629 crypto/testmgr.h .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67" key 7763 crypto/testmgr.h .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" key 7803 crypto/testmgr.h .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" key 7940 crypto/testmgr.h .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" key 8072 crypto/testmgr.h .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" key 8213 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00", key 8219 crypto/testmgr.h .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e", key 8225 crypto/testmgr.h .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", key 8231 crypto/testmgr.h .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" key 8238 crypto/testmgr.h .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" key 8246 crypto/testmgr.h .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" key 8258 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 8395 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" key 8410 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 8549 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 8684 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 8819 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 8961 crypto/testmgr.h .key = zeroed_string, key 8968 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" key 8977 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" key 8987 crypto/testmgr.h .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" key 9122 crypto/testmgr.h .key = zeroed_string, key 9132 crypto/testmgr.h .key = zeroed_string, key 9143 crypto/testmgr.h .key = zeroed_string, key 9154 crypto/testmgr.h .key = zeroed_string, key 9168 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 9307 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 9442 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 9577 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 9719 crypto/testmgr.h .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" key 9732 crypto/testmgr.h .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" key 9745 crypto/testmgr.h .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" key 9758 crypto/testmgr.h .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" key 9772 crypto/testmgr.h .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" key 9786 crypto/testmgr.h .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" key 9801 crypto/testmgr.h .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" key 9816 crypto/testmgr.h .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" key 9960 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00" key 9977 crypto/testmgr.h .key = "\x11\x11\x11\x11\x11\x11\x11\x11" key 9994 crypto/testmgr.h .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" key 10011 crypto/testmgr.h .key = "\x27\x18\x28\x18\x28\x45\x90\x45" key 10148 crypto/testmgr.h .key = "\x27\x18\x28\x18\x28\x45\x90\x45" key 10303 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 10312 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 10323 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", key 10330 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 10474 crypto/testmgr.h .key = "\x80\x00\x00\x00\x00\x00\x00\x00" key 10481 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 10490 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", key 10497 crypto/testmgr.h .key = "\x80\x00\x00\x00\x00\x00\x00\x00" key 10507 crypto/testmgr.h .key = "\x80\x00\x00\x00\x00\x00\x00\x00" key 10518 crypto/testmgr.h .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18" key 10529 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 10544 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 10683 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 10818 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 10955 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 11095 crypto/testmgr.h .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" key 11108 crypto/testmgr.h .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" key 11121 crypto/testmgr.h .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" key 11134 crypto/testmgr.h .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" key 11148 crypto/testmgr.h .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" key 11162 crypto/testmgr.h .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" key 11177 crypto/testmgr.h .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" key 11192 crypto/testmgr.h .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" key 11336 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00" key 11353 crypto/testmgr.h .key = "\x11\x11\x11\x11\x11\x11\x11\x11" key 11370 crypto/testmgr.h .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" key 11387 crypto/testmgr.h .key = "\x27\x18\x28\x18\x28\x45\x90\x45" key 11524 crypto/testmgr.h .key = "\x27\x18\x28\x18\x28\x45\x90\x45" key 11675 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF" key 11684 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF" key 11729 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF" key 11742 crypto/testmgr.h .key = "\xFE\xDC\xBA\x98\x76\x54\x32\x10" key 11759 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF" key 11776 crypto/testmgr.h .key = "\xFE\xDC\xBA\x98\x76\x54\x32\x10" key 11797 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF" key 11822 crypto/testmgr.h .key = "\xFE\xDC\xBA\x98\x76\x54\x32\x10" key 11852 crypto/testmgr.h .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" key 11860 crypto/testmgr.h .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" key 11869 crypto/testmgr.h .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" key 11879 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 12016 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 12155 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 12172 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 12311 crypto/testmgr.h .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" key 12454 crypto/testmgr.h .key = "\x27\x18\x28\x18\x28\x45\x90\x45" key 12602 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 12611 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 12621 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 12632 crypto/testmgr.h .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32" key 12767 crypto/testmgr.h .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" key 12779 crypto/testmgr.h .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" key 12796 crypto/testmgr.h .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" key 12822 crypto/testmgr.h .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" key 12849 crypto/testmgr.h .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" key 12988 crypto/testmgr.h .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" key 13011 crypto/testmgr.h .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" key 13035 crypto/testmgr.h .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" key 13060 crypto/testmgr.h .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" key 13073 crypto/testmgr.h .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" key 13087 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13090 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13106 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13109 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13129 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13132 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13157 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13160 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13190 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13193 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13222 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13225 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13263 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13266 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13309 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13312 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13351 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13354 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13398 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13401 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13419 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13422 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13444 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13447 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13474 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13477 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13509 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13512 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13543 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13546 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13586 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13589 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13634 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13637 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13678 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13681 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13727 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13730 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13765 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13768 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13808 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13811 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13850 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13853 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13901 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13904 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 13957 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 13960 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 14009 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 14012 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 14066 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 14069 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 14125 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 14128 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 14184 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 14187 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 14245 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 14248 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 14310 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 14313 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 14379 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 14382 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 14440 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 14443 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 14501 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 14504 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 14564 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 14567 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 14631 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 14634 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 14702 crypto/testmgr.h .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" key 14715 crypto/testmgr.h .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" key 14728 crypto/testmgr.h .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" key 14741 crypto/testmgr.h .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" key 14755 crypto/testmgr.h .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" key 14769 crypto/testmgr.h .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" key 14784 crypto/testmgr.h .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" key 14799 crypto/testmgr.h .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" key 14821 crypto/testmgr.h .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" key 14965 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00" key 14983 crypto/testmgr.h .key = "\x11\x11\x11\x11\x11\x11\x11\x11" key 15000 crypto/testmgr.h .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" key 15017 crypto/testmgr.h .key = "\x27\x18\x28\x18\x28\x45\x90\x45" key 15154 crypto/testmgr.h .key = "\x27\x18\x28\x18\x28\x45\x90\x45" key 15299 crypto/testmgr.h .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" key 15324 crypto/testmgr.h .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" key 15350 crypto/testmgr.h .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" key 15377 crypto/testmgr.h .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" key 15512 crypto/testmgr.h .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" key 15653 crypto/testmgr.h .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc" key 15663 crypto/testmgr.h .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7" key 15678 crypto/testmgr.h .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79" key 15689 crypto/testmgr.h .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c" key 15705 crypto/testmgr.h .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f" key 15717 crypto/testmgr.h .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb" key 15735 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 16776 crypto/testmgr.h .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" key 16799 crypto/testmgr.h .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" key 16812 crypto/testmgr.h .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" key 16825 crypto/testmgr.h .key = zeroed_string, key 16831 crypto/testmgr.h .key = zeroed_string, key 16841 crypto/testmgr.h .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" key 16867 crypto/testmgr.h .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" key 16897 crypto/testmgr.h .key = zeroed_string, key 16903 crypto/testmgr.h .key = zeroed_string, key 16913 crypto/testmgr.h .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" key 16940 crypto/testmgr.h .key = zeroed_string, key 16946 crypto/testmgr.h .key = zeroed_string, key 16956 crypto/testmgr.h .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" key 16984 crypto/testmgr.h .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" key 17016 crypto/testmgr.h .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" key 17051 crypto/testmgr.h .key = zeroed_string, key 17064 crypto/testmgr.h .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" key 17081 crypto/testmgr.h .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" key 17097 crypto/testmgr.h .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" key 17114 crypto/testmgr.h .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" key 17131 crypto/testmgr.h .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" key 17160 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 17222 crypto/testmgr.h .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" key 17254 crypto/testmgr.h .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" key 17283 crypto/testmgr.h .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" key 17312 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00" key 17341 crypto/testmgr.h .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" key 17371 crypto/testmgr.h .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" key 17393 crypto/testmgr.h .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" key 17417 crypto/testmgr.h .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" key 17451 crypto/testmgr.h .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" key 17477 crypto/testmgr.h .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" key 17511 crypto/testmgr.h .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" key 17545 crypto/testmgr.h .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25" key 17560 crypto/testmgr.h .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" key 17580 crypto/testmgr.h .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65" key 17610 crypto/testmgr.h .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" key 17638 crypto/testmgr.h .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" key 17664 crypto/testmgr.h .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda" key 17691 crypto/testmgr.h .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda" key 17723 crypto/testmgr.h .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" key 17740 crypto/testmgr.h .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" key 17758 crypto/testmgr.h .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" key 17777 crypto/testmgr.h .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" key 17795 crypto/testmgr.h .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" key 17812 crypto/testmgr.h .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" key 17830 crypto/testmgr.h .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" key 17849 crypto/testmgr.h .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05" key 17867 crypto/testmgr.h .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0" key 17890 crypto/testmgr.h .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1" key 17905 crypto/testmgr.h .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42" key 17929 crypto/testmgr.h .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a" key 17953 crypto/testmgr.h .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c" key 17978 crypto/testmgr.h .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83" key 18004 crypto/testmgr.h .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1" key 18016 crypto/testmgr.h .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1" key 18027 crypto/testmgr.h .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38" key 18051 crypto/testmgr.h .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38" key 18074 crypto/testmgr.h .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73" key 18090 crypto/testmgr.h .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" key 18113 crypto/testmgr.h .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" key 18138 crypto/testmgr.h .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01" key 18151 crypto/testmgr.h .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73" key 18173 crypto/testmgr.h .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" key 18210 crypto/testmgr.h .key = zeroed_string, key 18223 crypto/testmgr.h .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" key 18240 crypto/testmgr.h .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" key 18256 crypto/testmgr.h .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" key 18273 crypto/testmgr.h .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" key 18290 crypto/testmgr.h .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" key 18319 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 18381 crypto/testmgr.h .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" key 18413 crypto/testmgr.h .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" key 18442 crypto/testmgr.h .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" key 18471 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00" key 18500 crypto/testmgr.h .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" key 18530 crypto/testmgr.h .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" key 18552 crypto/testmgr.h .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" key 18576 crypto/testmgr.h .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" key 18610 crypto/testmgr.h .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" key 18636 crypto/testmgr.h .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" key 18670 crypto/testmgr.h .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" key 18704 crypto/testmgr.h .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25" key 18719 crypto/testmgr.h .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" key 18739 crypto/testmgr.h .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65" key 18769 crypto/testmgr.h .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" key 18797 crypto/testmgr.h .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" key 18826 crypto/testmgr.h .key = "\x80\x81\x82\x83\x84\x85\x86\x87" key 18871 crypto/testmgr.h .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" key 18961 crypto/testmgr.h .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" key 19056 crypto/testmgr.h .key = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86" key 19069 crypto/testmgr.h .key = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2" key 19083 crypto/testmgr.h .key = "\x88\x12\x01\xa6\x64\x96\xfb\xbe" key 19099 crypto/testmgr.h .key = "\xc4\x37\x3b\x45\x74\x11\xa4\xda" key 19115 crypto/testmgr.h .key = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6" key 19133 crypto/testmgr.h .key = "\x3d\x80\xae\x84\x94\x09\xf6\x12" key 19153 crypto/testmgr.h .key = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d" key 19173 crypto/testmgr.h .key = "\xb6\xca\x22\xc3\xb4\x00\x47\x49" key 19186 crypto/testmgr.h .key = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65" key 19200 crypto/testmgr.h .key = "\x2f\x13\x95\x01\xd5\xf7\x99\x81" key 19214 crypto/testmgr.h .key = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d" key 19229 crypto/testmgr.h .key = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8" key 19245 crypto/testmgr.h .key = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4" key 19261 crypto/testmgr.h .key = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0" key 19275 crypto/testmgr.h .key = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c" key 19292 crypto/testmgr.h .key = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28" key 19309 crypto/testmgr.h .key = "\xd7\x14\x29\x5d\x45\x59\x36\x44" key 19329 crypto/testmgr.h .key = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f" key 19352 crypto/testmgr.h .key = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b" key 19375 crypto/testmgr.h .key = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97" key 19409 crypto/testmgr.h .key = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3" key 19439 crypto/testmgr.h .key = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf" key 19456 crypto/testmgr.h .key = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea" key 19473 crypto/testmgr.h .key = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06" key 19501 crypto/testmgr.h .key = "\x75\x75\xda\x3a\x93\x60\x7c\xc2" key 19512 crypto/testmgr.h .key = "\x80\xaa\x99\x73\x27\xa4\x80\x6b" key 19535 crypto/testmgr.h .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" key 19549 crypto/testmgr.h .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" key 19563 crypto/testmgr.h .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" key 19577 crypto/testmgr.h .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" key 19591 crypto/testmgr.h .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" key 19605 crypto/testmgr.h .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5" key 20452 crypto/testmgr.h .key = "\x01\x23\x45\x67\x12\x34\x56\x78" key 20459 crypto/testmgr.h .key = "\x01\x23\x45\x67\x12\x34\x56\x78" key 20466 crypto/testmgr.h .key = "\x01\x23\x45\x67\x12", key 20472 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 20606 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 20741 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 20754 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 20892 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", key 20898 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", key 20904 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00", key 20910 crypto/testmgr.h .key = "\xef\x01\x23\x45", key 20920 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", key 20932 crypto/testmgr.h .key = "\xef\x01\x23\x45", key 20940 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF" key 20954 crypto/testmgr.h .key = zeroed_string, key 20960 crypto/testmgr.h .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" key 20967 crypto/testmgr.h .key = "\x09\x65\x43\x11\x66\x44\x39\x25" key 20976 crypto/testmgr.h .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" key 20996 crypto/testmgr.h .key = zeroed_string, key 21002 crypto/testmgr.h .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" key 21009 crypto/testmgr.h .key = "\x09\x65\x43\x11\x66\x44\x39\x25" key 21018 crypto/testmgr.h .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" key 21038 crypto/testmgr.h .key = "\x80\x00\x00\x00\x00\x00\x00\x00" key 21045 crypto/testmgr.h .key = "\x38\x38\x38\x38\x38\x38\x38\x38" key 21052 crypto/testmgr.h .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2" key 21059 crypto/testmgr.h .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" key 21066 crypto/testmgr.h .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" key 21083 crypto/testmgr.h .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" key 21093 crypto/testmgr.h .key = "\x03\x03\x03\x03\x03\x03\x03\x03" key 21103 crypto/testmgr.h .key = "\x24\x24\x24\x24\x24\x24\x24\x24" key 21114 crypto/testmgr.h .key = "\x25\x25\x25\x25\x25\x25\x25\x25" key 21125 crypto/testmgr.h .key = "\x35\x35\x35\x35\x35\x35\x35\x35" key 21141 crypto/testmgr.h .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" key 21156 crypto/testmgr.h .key = "\x35\x35\x35\x35\x35\x35\x35\x35" key 21181 crypto/testmgr.h .key = zeroed_string, key 21187 crypto/testmgr.h .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" key 21194 crypto/testmgr.h .key = "\x09\x65\x43\x11\x66\x44\x39\x25" key 21203 crypto/testmgr.h .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" key 21223 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00", key 21230 crypto/testmgr.h .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66", key 21237 crypto/testmgr.h .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", key 21249 crypto/testmgr.h .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", key 21268 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" key 21277 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" key 21287 crypto/testmgr.h .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" key 21298 crypto/testmgr.h .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" key 21561 crypto/testmgr.h .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" key 21573 crypto/testmgr.h .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" key 21590 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 21857 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 21992 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 22257 crypto/testmgr.h .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" key 22525 crypto/testmgr.h .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" key 22538 crypto/testmgr.h .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" key 22551 crypto/testmgr.h .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" key 22564 crypto/testmgr.h .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" key 22578 crypto/testmgr.h .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" key 22592 crypto/testmgr.h .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" key 22607 crypto/testmgr.h .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" key 22622 crypto/testmgr.h .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" key 22766 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00" key 22783 crypto/testmgr.h .key = "\x11\x11\x11\x11\x11\x11\x11\x11" key 22800 crypto/testmgr.h .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" key 22817 crypto/testmgr.h .key = "\x27\x18\x28\x18\x28\x45\x90\x45" key 22954 crypto/testmgr.h .key = "\x27\x18\x28\x18\x28\x45\x90\x45" key 23102 crypto/testmgr.h .key = zeroed_string, key 23110 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 23118 crypto/testmgr.h .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8" key 23127 crypto/testmgr.h .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d" key 23145 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 23161 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00" key 23183 crypto/testmgr.h .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22" key 23219 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00" key 23261 crypto/testmgr.h .key = "\x00\x01\x02\x03\x04\x05\x06\x07" key 24302 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00" key 24327 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00" key 24431 crypto/testmgr.h .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" key 24472 crypto/testmgr.h .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" key 24807 crypto/testmgr.h .key = "\x79\xc9\x97\x98\xac\x67\x30\x0b" key 24826 crypto/testmgr.h .key = "\x9d\x23\xbd\x41\x49\xcb\x97\x9c" key 24863 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00" key 24890 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00" key 24996 crypto/testmgr.h .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" key 25039 crypto/testmgr.h .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" key 25372 crypto/testmgr.h .key = "\x80\x81\x82\x83\x84\x85\x86\x87" key 25467 crypto/testmgr.h .key = "\x79\xc9\x97\x98\xac\x67\x30\x0b" key 25486 crypto/testmgr.h .key = "\x9d\x23\xbd\x41\x49\xcb\x97\x9c" key 25521 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00" key 25548 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00" key 25655 crypto/testmgr.h .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" key 25698 crypto/testmgr.h .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" key 26031 crypto/testmgr.h .key = "\x80\x81\x82\x83\x84\x85\x86\x87" key 26123 crypto/testmgr.h .key = "\x9e\xeb\xb2\x49\x3c\x1c\xf5\xf4" key 26138 crypto/testmgr.h .key = "\x36\x2b\x57\x97\xf8\x5d\xcd\x99" key 26157 crypto/testmgr.h .key = "\xa5\x28\x24\x34\x1a\x3c\xd8\xf7" key 26200 crypto/testmgr.h .key = "\xd3\x81\x72\x18\x23\xff\x6f\x4a" key 26339 crypto/testmgr.h .key = "\xeb\xe5\x11\x3a\x72\xeb\x10\xbe" key 26734 crypto/testmgr.h .key = "\x60\xd5\x36\xb0\x8e\x5d\x0e\x5f" key 27775 crypto/testmgr.h .key = "\x9e\xeb\xb2\x49\x3c\x1c\xf5\xf4" key 27790 crypto/testmgr.h .key = "\x36\x2b\x57\x97\xf8\x5d\xcd\x99" key 27809 crypto/testmgr.h .key = "\xa5\x28\x24\x34\x1a\x3c\xd8\xf7" key 27852 crypto/testmgr.h .key = "\xd3\x81\x72\x18\x23\xff\x6f\x4a" key 27991 crypto/testmgr.h .key = "\xeb\xe5\x11\x3a\x72\xeb\x10\xbe" key 28386 crypto/testmgr.h .key = "\x60\xd5\x36\xb0\x8e\x5d\x0e\x5f" key 29429 crypto/testmgr.h .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" key 29440 crypto/testmgr.h .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" key 29453 crypto/testmgr.h .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" key 29466 crypto/testmgr.h .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" key 29483 crypto/testmgr.h .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" key 29500 crypto/testmgr.h .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" key 29853 crypto/testmgr.h .key = "\x00\x00\x00\x00\x00\x00\x00\x00", key 29860 crypto/testmgr.h .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8", key 29867 crypto/testmgr.h .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f", key 29874 crypto/testmgr.h .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29", key 29881 crypto/testmgr.h .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb", key 29888 crypto/testmgr.h .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86", key 29910 crypto/testmgr.h .key = "\x87\xa9\xcb\xed", key 29916 crypto/testmgr.h .key = "\xff\xff\xff\xff", key 29927 crypto/testmgr.h .key = "\xff\xff\xff\xff", key 29938 crypto/testmgr.h .key = "\xff\xff\xff\xff", key 29949 crypto/testmgr.h .key = "\xff\xff\xff\xff", key 29960 crypto/testmgr.h .key = "\xff\xff\xff\xff", key 29971 crypto/testmgr.h .key = "\xff\xff\xff\xff", key 29982 crypto/testmgr.h .key = "\x80\xea\xd3\xf1", key 29993 crypto/testmgr.h .key = "\xf3\x4a\x1d\x5d", key 30004 crypto/testmgr.h .key = "\x2e\x80\x04\x59", key 30015 crypto/testmgr.h .key = "\xa6\xcc\x19\x85", key 30026 crypto/testmgr.h .key = "\x41\xfc\xfe\x2d", key 30037 crypto/testmgr.h .key = "\xff\xff\xff\xff", key 30072 crypto/testmgr.h .key = "\xff\xff\xff\xff", key 30349 crypto/testmgr.h .key = "\x87\xa9\xcb\xed", key 30355 crypto/testmgr.h .key = "\xff\xff\xff\xff", key 30366 crypto/testmgr.h .key = "\xff\xff\xff\xff", key 30377 crypto/testmgr.h .key = "\xff\xff\xff\xff", key 30388 crypto/testmgr.h .key = "\xff\xff\xff\xff", key 30399 crypto/testmgr.h .key = "\xff\xff\xff\xff", key 30410 crypto/testmgr.h .key = "\xff\xff\xff\xff", key 30421 crypto/testmgr.h .key = "\x80\xea\xd3\xf1", key 30432 crypto/testmgr.h .key = "\xf3\x4a\x1d\x5d", key 30443 crypto/testmgr.h .key = "\x2e\x80\x04\x59", key 30454 crypto/testmgr.h .key = "\xa6\xcc\x19\x85", key 30465 crypto/testmgr.h .key = "\x41\xfc\xfe\x2d", key 30476 crypto/testmgr.h .key = "\xff\xff\xff\xff", key 30511 crypto/testmgr.h .key = "\xff\xff\xff\xff", key 30824 crypto/testmgr.h .key = "\xb1\x79\x37\x9e\x00\x00\x00\x00", key 30832 crypto/testmgr.h .key = "\xb1\x79\x37\x9e\x00\x00\x00\x00", key 30840 crypto/testmgr.h .key = "\xb1\x79\x37\x9e\x00\x00\x00\x00", key 30874 crypto/testmgr.h .key = "\xb1\x79\x37\x9e\x00\x00\x00\x00", key 31077 crypto/testmgr.h .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" key 31087 crypto/testmgr.h .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" key 31102 crypto/testmgr.h .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" key 31126 crypto/testmgr.h .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" key 31151 crypto/testmgr.h .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" key 31290 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 31293 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 31320 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 31323 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 31355 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 31358 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 31389 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 31392 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 31432 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 31435 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 31480 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 31483 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 31524 crypto/testmgr.h .key = "\x08\x00" /* rta length */ key 31527 crypto/testmgr.h .key = "\x00\x08" /* rta length */ key 469 crypto/twofish_common.c if (key[i]) { \ key 470 crypto/twofish_common.c tmp = poly_to_exp[key[i] - 1]; \ key 530 crypto/twofish_common.c mds[0][q0[a ^ key[(j) + 8]] ^ key[j]] \ key 531 crypto/twofish_common.c ^ mds[1][q0[b ^ key[(j) + 9]] ^ key[(j) + 1]] \ key 532 crypto/twofish_common.c ^ mds[2][q1[c ^ key[(j) + 10]] ^ key[(j) + 2]] \ key 533 crypto/twofish_common.c ^ mds[3][q1[d ^ key[(j) + 11]] ^ key[(j) + 3]] key 543 crypto/twofish_common.c CALC_K_2 (q0[a ^ key[(j) + 16]], \ key 544 crypto/twofish_common.c q1[b ^ key[(j) + 17]], \ key 545 crypto/twofish_common.c q0[c ^ key[(j) + 18]], \ key 546 crypto/twofish_common.c q1[d ^ key[(j) + 19]], j) key 556 crypto/twofish_common.c CALC_K192_2 (q1[b ^ key[(j) + 24]], \ key 557 crypto/twofish_common.c q1[a ^ key[(j) + 25]], \ key 558 crypto/twofish_common.c q0[a ^ key[(j) + 26]], \ key 559 crypto/twofish_common.c q0[b ^ key[(j) + 27]], j) key 569 crypto/twofish_common.c int __twofish_setkey(struct twofish_ctx *ctx, const u8 *key, key 689 crypto/twofish_common.c int twofish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len) key 691 crypto/twofish_common.c return __twofish_setkey(crypto_tfm_ctx(tfm), key, key_len, key 430 crypto/vmac.c const u8 *key, unsigned int keylen) key 443 crypto/vmac.c err = crypto_cipher_setkey(tctx->cipher, key, keylen); key 40 crypto/xts.c static int setkey(struct crypto_skcipher *parent, const u8 *key, key 48 crypto/xts.c err = xts_verify_key(parent, key, keylen); key 63 crypto/xts.c err = crypto_cipher_setkey(tweak, key + keylen, keylen); key 74 crypto/xts.c err = crypto_skcipher_setkey(child, key, keylen); key 20 crypto/xxhash_generic.c static int xxhash64_setkey(struct crypto_shash *tfm, const u8 *key, key 29 crypto/xxhash_generic.c tctx->seed = get_unaligned_le64(key); key 235 drivers/acpi/nfit/intel.c const struct nvdimm_key_data *key, key 260 drivers/acpi/nfit/intel.c memcpy(nd_cmd.cmd.passphrase, key->data, key 242 drivers/acpi/sysfs.c #define acpi_compare_param(val, key) \ key 243 drivers/acpi/sysfs.c strncmp((val), (key), sizeof(key) - 1) key 68 drivers/acpi/x86/apple.c union acpi_object *key = &props->package.elements[i * 2]; key 71 drivers/acpi/x86/apple.c if ( key->type != ACPI_TYPE_STRING || key 77 drivers/acpi/x86/apple.c newsize += key->string.length + 1; key 103 drivers/acpi/x86/apple.c union acpi_object *key = &props->package.elements[i * 2]; key 113 drivers/acpi/x86/apple.c newprops[k].string.length = key->string.length; key 115 drivers/acpi/x86/apple.c memcpy(free_space, key->string.pointer, key->string.length); key 116 drivers/acpi/x86/apple.c free_space += key->string.length + 1; key 1487 drivers/auxdisplay/panel.c struct logical_input *key; key 1489 drivers/auxdisplay/panel.c key = kzalloc(sizeof(*key), GFP_KERNEL); key 1490 drivers/auxdisplay/panel.c if (!key) key 1493 drivers/auxdisplay/panel.c if (!input_name2mask(name, &key->mask, &key->value, &scan_mask_i, key 1495 drivers/auxdisplay/panel.c kfree(key); key 1499 drivers/auxdisplay/panel.c key->type = INPUT_TYPE_KBD; key 1500 drivers/auxdisplay/panel.c key->state = INPUT_ST_LOW; key 1501 drivers/auxdisplay/panel.c key->rise_time = 1; key 1502 drivers/auxdisplay/panel.c key->fall_time = 1; key 1504 drivers/auxdisplay/panel.c strncpy(key->u.kbd.press_str, press, sizeof(key->u.kbd.press_str)); key 1505 drivers/auxdisplay/panel.c strncpy(key->u.kbd.repeat_str, repeat, sizeof(key->u.kbd.repeat_str)); key 1506 drivers/auxdisplay/panel.c strncpy(key->u.kbd.release_str, release, key 1507 drivers/auxdisplay/panel.c sizeof(key->u.kbd.release_str)); key 1508 drivers/auxdisplay/panel.c list_add(&key->list, &logical_inputs); key 1509 drivers/auxdisplay/panel.c return key; key 805 drivers/base/bus.c struct lock_class_key *key = &bus->lock_key; key 847 drivers/base/bus.c __mutex_init(&priv->mutex, "subsys mutex", key); key 152 drivers/base/class.c int __class_register(struct class *cls, struct lock_class_key *key) key 165 drivers/base/class.c __mutex_init(&cp->mutex, "subsys mutex", key); key 226 drivers/base/class.c struct lock_class_key *key) key 241 drivers/base/class.c retval = __class_register(cls, key); key 645 drivers/base/regmap/regcache.c struct reg_default key; key 648 drivers/base/regmap/regcache.c key.reg = reg; key 649 drivers/base/regmap/regcache.c key.def = 0; key 651 drivers/base/regmap/regcache.c r = bsearch(&key, map->reg_defaults, map->num_reg_defaults, key 99 drivers/block/loop.c char *in, *out, *key; key 110 drivers/block/loop.c key = lo->lo_encrypt_key; key 113 drivers/block/loop.c *out++ = *in++ ^ key[(i & 511) % keysize]; key 1014 drivers/block/skd_main.c static void skd_log_check_status(struct skd_device *skdev, u8 status, u8 key, key 1018 drivers/block/skd_main.c if ((status == SAM_STAT_CHECK_CONDITION) && (key == 0x02) key 1022 drivers/block/skd_main.c key, code, qual, fruc); key 1052 drivers/block/skd_main.c skd_log_check_status(skdev, status, skerr->key, skerr->code, key 1060 drivers/block/skd_main.c (skerr->key == MEDIUM_ERROR)) key 1147 drivers/block/skd_main.c (skerr->key == MEDIUM_ERROR)) { key 1310 drivers/block/skd_main.c u8 key; key 1359 drivers/block/skd_main.c skerr->key, skerr->code, skerr->qual, skerr->fruc); key 1363 drivers/block/skd_main.c skerr->type, cmp_status, skerr->key, skerr->code, skerr->qual, key 1379 drivers/block/skd_main.c if (skerr->key != sns->key) key 1393 drivers/block/skd_main.c skerr->key, skerr->code, skerr->qual); key 1548 drivers/block/skd_main.c skd_log_check_status(skdev, cmp_status, skerr->key, key 259 drivers/block/skd_s1120.h uint8_t key:4; /* 02: Bits0-3 indicate the sense key. */ key 1676 drivers/cdrom/cdrom.c copy_key(ai->lsk.key, &buf[4]); key 1738 drivers/cdrom/cdrom.c copy_key(&buf[4], ai->hsk.key); key 206 drivers/char/agp/agp.h void agp_free_key(int key); key 166 drivers/char/agp/compat_ioctl.c alloc.key = memory->key; key 185 drivers/char/agp/compat_ioctl.c memory = agp_find_mem_by_key(bind_info.key); key 202 drivers/char/agp/compat_ioctl.c memory = agp_find_mem_by_key(unbind.key); key 71 drivers/char/agp/compat_ioctl.h compat_int_t key; /* tag of allocation */ key 81 drivers/char/agp/compat_ioctl.h compat_int_t key; /* tag of allocation */ key 86 drivers/char/agp/compat_ioctl.h compat_int_t key; /* tag of allocation */ key 103 drivers/char/agp/compat_ioctl.h struct agp_memory *agp_find_mem_by_key(int key); key 47 drivers/char/agp/frontend.c struct agp_memory *agp_find_mem_by_key(int key) key 57 drivers/char/agp/frontend.c if (curr->key == key) key 62 drivers/char/agp/frontend.c DBG("key=%d -> mem=%p", key, curr); key 74 drivers/char/agp/frontend.c if (agp_find_mem_by_key(temp->key) != NULL) { key 891 drivers/char/agp/frontend.c alloc.key = memory->key; key 924 drivers/char/agp/frontend.c memory = agp_find_mem_by_key(bind_info.key); key 941 drivers/char/agp/frontend.c memory = agp_find_mem_by_key(unbind.key); key 62 drivers/char/agp/generic.c void agp_free_key(int key) key 64 drivers/char/agp/generic.c if (key < 0) key 67 drivers/char/agp/generic.c if (key < MAXKEY) key 68 drivers/char/agp/generic.c clear_bit(key, agp_bridge->key_list); key 109 drivers/char/agp/generic.c new->key = agp_get_key(); key 111 drivers/char/agp/generic.c if (new->key < 0) { key 119 drivers/char/agp/generic.c agp_free_key(new->key); key 135 drivers/char/agp/generic.c new->key = agp_get_key(); key 137 drivers/char/agp/generic.c if (new->key < 0) { key 145 drivers/char/agp/generic.c agp_free_key(new->key); key 199 drivers/char/agp/generic.c agp_free_key(curr->key); key 1158 drivers/char/agp/generic.c agp_free_key(curr->key); key 278 drivers/char/agp/intel-gtt.c agp_free_key(curr->key); key 1006 drivers/char/random.c __u32 key[8]; key 1024 drivers/char/random.c crng->state[i+4] ^= buf.key[i] ^ rv; key 461 drivers/char/sonypi.c int key; key 769 drivers/char/sonypi.c input_report_key(kp.dev, kp.key, 0); key 795 drivers/char/sonypi.c kp.key = BTN_MIDDLE; key 807 drivers/char/sonypi.c kp.key = sonypi_inputkeys[i].inputev; key 814 drivers/char/sonypi.c input_report_key(kp.dev, kp.key, 1); key 297 drivers/char/toshiba.c int key; key 299 drivers/char/toshiba.c key = tosh_fn_status(); key 316 drivers/char/toshiba.c key); key 456 drivers/char/tpm/tpm2-cmd.c tpm_buf_append(&buf, payload->key, payload->key_len); key 638 drivers/char/tpm/tpm2-cmd.c memcpy(payload->key, data, data_len - 1); key 374 drivers/clk/keystone/sci-clk.c struct sci_clk key; key 379 drivers/clk/keystone/sci-clk.c key.dev_id = clkspec->args[0]; key 380 drivers/clk/keystone/sci-clk.c key.clk_id = clkspec->args[1]; key 382 drivers/clk/keystone/sci-clk.c clk = bsearch(&key, provider->clocks, provider->num_clocks, key 30 drivers/clk/qcom/clk-smd-rpm.c key) \ key 36 drivers/clk/qcom/clk-smd-rpm.c .rpm_key = (key), \ key 51 drivers/clk/qcom/clk-smd-rpm.c .rpm_key = (key), \ key 63 drivers/clk/qcom/clk-smd-rpm.c stat_id, r, key) \ key 69 drivers/clk/qcom/clk-smd-rpm.c .rpm_key = (key), \ key 85 drivers/clk/qcom/clk-smd-rpm.c .rpm_key = (key), \ key 136 drivers/clk/qcom/clk-smd-rpm.c __le32 key; key 158 drivers/clk/qcom/clk-smd-rpm.c .key = cpu_to_le32(r->rpm_key), key 181 drivers/clk/qcom/clk-smd-rpm.c .key = cpu_to_le32(r->rpm_key), key 195 drivers/clk/qcom/clk-smd-rpm.c .key = cpu_to_le32(r->rpm_key), key 371 drivers/clk/qcom/clk-smd-rpm.c .key = cpu_to_le32(QCOM_RPM_SMD_KEY_ENABLE), key 202 drivers/cpufreq/powernv-cpufreq.c unsigned int key = pstate % POWERNV_MAX_PSTATES; key 205 drivers/cpufreq/powernv-cpufreq.c hash_for_each_possible(pstate_revmap, revmap_data, hentry, key) { key 315 drivers/cpufreq/powernv-cpufreq.c unsigned int key; key 329 drivers/cpufreq/powernv-cpufreq.c key = (revmap_data->pstate_id) % POWERNV_MAX_PSTATES; key 330 drivers/cpufreq/powernv-cpufreq.c hash_add(pstate_revmap, &revmap_data->hentry, key); key 122 drivers/crypto/amcc/crypto4xx_alg.c const u8 *key, key 164 drivers/crypto/amcc/crypto4xx_alg.c key, keylen); key 181 drivers/crypto/amcc/crypto4xx_alg.c const u8 *key, unsigned int keylen) key 183 drivers/crypto/amcc/crypto4xx_alg.c return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_CBC, key 188 drivers/crypto/amcc/crypto4xx_alg.c const u8 *key, unsigned int keylen) key 190 drivers/crypto/amcc/crypto4xx_alg.c return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_CFB, key 195 drivers/crypto/amcc/crypto4xx_alg.c const u8 *key, unsigned int keylen) key 197 drivers/crypto/amcc/crypto4xx_alg.c return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_ECB, key 202 drivers/crypto/amcc/crypto4xx_alg.c const u8 *key, unsigned int keylen) key 204 drivers/crypto/amcc/crypto4xx_alg.c return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_OFB, key 209 drivers/crypto/amcc/crypto4xx_alg.c const u8 *key, unsigned int keylen) key 214 drivers/crypto/amcc/crypto4xx_alg.c rc = crypto4xx_setkey_aes(cipher, key, keylen - CTR_RFC3686_NONCE_SIZE, key 219 drivers/crypto/amcc/crypto4xx_alg.c ctx->iv_nonce = cpu_to_le32p((u32 *)&key[keylen - key 292 drivers/crypto/amcc/crypto4xx_alg.c const u8 *key, key 301 drivers/crypto/amcc/crypto4xx_alg.c rc = crypto_sync_skcipher_setkey(ctx->sw_cipher.cipher, key, keylen); key 311 drivers/crypto/amcc/crypto4xx_alg.c const u8 *key, unsigned int keylen) key 316 drivers/crypto/amcc/crypto4xx_alg.c rc = crypto4xx_sk_setup_fallback(ctx, cipher, key, keylen); key 320 drivers/crypto/amcc/crypto4xx_alg.c return crypto4xx_setkey_aes(cipher, key, keylen, key 379 drivers/crypto/amcc/crypto4xx_alg.c const u8 *key, key 387 drivers/crypto/amcc/crypto4xx_alg.c rc = crypto_aead_setkey(ctx->sw_cipher.aead, key, keylen); key 400 drivers/crypto/amcc/crypto4xx_alg.c int crypto4xx_setkey_aes_ccm(struct crypto_aead *cipher, const u8 *key, key 408 drivers/crypto/amcc/crypto4xx_alg.c rc = crypto4xx_aead_setup_fallback(ctx, cipher, key, keylen); key 438 drivers/crypto/amcc/crypto4xx_alg.c crypto4xx_memcpy_to_le32(get_dynamic_sa_key_field(sa), key, keylen); key 527 drivers/crypto/amcc/crypto4xx_alg.c static int crypto4xx_compute_gcm_hash_key_sw(__le32 *hash_start, const u8 *key, key 534 drivers/crypto/amcc/crypto4xx_alg.c rc = aes_expandkey(&ctx, key, keylen); key 547 drivers/crypto/amcc/crypto4xx_alg.c const u8 *key, unsigned int keylen) key 559 drivers/crypto/amcc/crypto4xx_alg.c rc = crypto4xx_aead_setup_fallback(ctx, cipher, key, keylen); key 588 drivers/crypto/amcc/crypto4xx_alg.c key, keylen); key 591 drivers/crypto/amcc/crypto4xx_alg.c key, keylen); key 163 drivers/crypto/amcc/crypto4xx_core.h const u8 *key, unsigned int keylen); key 165 drivers/crypto/amcc/crypto4xx_core.h const u8 *key, unsigned int keylen); key 167 drivers/crypto/amcc/crypto4xx_core.h const u8 *key, unsigned int keylen); key 169 drivers/crypto/amcc/crypto4xx_core.h const u8 *key, unsigned int keylen); key 171 drivers/crypto/amcc/crypto4xx_core.h const u8 *key, unsigned int keylen); key 173 drivers/crypto/amcc/crypto4xx_core.h const u8 *key, unsigned int keylen); key 236 drivers/crypto/amcc/crypto4xx_core.h const u8 *key, unsigned int keylen); key 240 drivers/crypto/amcc/crypto4xx_core.h const u8 *key, unsigned int keylen); key 193 drivers/crypto/amcc/crypto4xx_sa.h __le32 key[4]; key 207 drivers/crypto/amcc/crypto4xx_sa.h __le32 key[6]; key 221 drivers/crypto/amcc/crypto4xx_sa.h __le32 key[8]; key 236 drivers/crypto/amcc/crypto4xx_sa.h __le32 key[4]; key 250 drivers/crypto/amcc/crypto4xx_sa.h __le32 key[4]; key 107 drivers/crypto/atmel-aes.c u32 key[AES_KEYSIZE_256 / sizeof(u32)]; key 537 drivers/crypto/atmel-aes.c const u32 *iv, const u32 *key, int keylen) key 561 drivers/crypto/atmel-aes.c atmel_aes_write_n(dd, AES_KEYWR(0), key, SIZE_IN_WORDS(keylen)); key 572 drivers/crypto/atmel-aes.c dd->ctx->key, dd->ctx->keylen); key 1134 drivers/crypto/atmel-aes.c static int atmel_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 1146 drivers/crypto/atmel-aes.c memcpy(ctx->key, key, keylen); key 1764 drivers/crypto/atmel-aes.c static int atmel_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key, key 1776 drivers/crypto/atmel-aes.c memcpy(ctx->key, key, keylen); key 1915 drivers/crypto/atmel-aes.c static int atmel_aes_xts_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 1921 drivers/crypto/atmel-aes.c err = xts_check_key(crypto_ablkcipher_tfm(tfm), key, keylen); key 1925 drivers/crypto/atmel-aes.c memcpy(ctx->base.key, key, keylen/2); key 1926 drivers/crypto/atmel-aes.c memcpy(ctx->key2, key + keylen/2, keylen/2); key 2118 drivers/crypto/atmel-aes.c static int atmel_aes_authenc_setkey(struct crypto_aead *tfm, const u8 *key, key 2126 drivers/crypto/atmel-aes.c if (crypto_authenc_extractkeys(&keys, key, keylen) != 0) key 2129 drivers/crypto/atmel-aes.c if (keys.enckeylen > sizeof(ctx->base.key)) key 2145 drivers/crypto/atmel-aes.c memcpy(ctx->base.key, keys.enckey, keys.enckeylen); key 33 drivers/crypto/atmel-authenc.h const u8 *key, unsigned int keylen, key 1695 drivers/crypto/atmel-sha.c const u8 *key, key 1701 drivers/crypto/atmel-sha.c hkey->keydup = kmemdup(key, keylen, GFP_KERNEL); key 1706 drivers/crypto/atmel-sha.c memcpy(hkey->buffer, key, keylen); key 1715 drivers/crypto/atmel-sha.c const u8 **key, key 1722 drivers/crypto/atmel-sha.c *key = (hkey->keydup) ? hkey->keydup : hkey->buffer; key 1739 drivers/crypto/atmel-sha.c const u8 *key, unsigned int keylen); key 1758 drivers/crypto/atmel-sha.c const u8 *key; key 1793 drivers/crypto/atmel-sha.c if (likely(!atmel_sha_hmac_key_get(&hmac->hkey, &key, &keylen))) key 1798 drivers/crypto/atmel-sha.c return atmel_sha_hmac_prehash_key(dd, key, keylen); key 1801 drivers/crypto/atmel-sha.c memcpy((u8 *)hmac->ipad, key, keylen); key 1807 drivers/crypto/atmel-sha.c const u8 *key, unsigned int keylen) key 1809 drivers/crypto/atmel-sha.c return atmel_sha_cpu_hash(dd, key, keylen, true, key 1916 drivers/crypto/atmel-sha.c static int atmel_sha_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, key 1921 drivers/crypto/atmel-sha.c return atmel_sha_hmac_key_set(&hmac->hkey, key, keylen); key 2345 drivers/crypto/atmel-sha.c const u8 *key, unsigned int keylen, key 2353 drivers/crypto/atmel-sha.c err = crypto_ahash_setkey(tfm, key, keylen); key 75 drivers/crypto/atmel-tdes.c u32 key[3*DES_KEY_SIZE / sizeof(u32)]; key 306 drivers/crypto/atmel-tdes.c atmel_tdes_write_n(dd, TDES_KEY1W1R, dd->ctx->key, key 773 drivers/crypto/atmel-tdes.c static int atmel_des_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 779 drivers/crypto/atmel-tdes.c err = verify_ablkcipher_des_key(tfm, key); key 783 drivers/crypto/atmel-tdes.c memcpy(ctx->key, key, keylen); key 789 drivers/crypto/atmel-tdes.c static int atmel_tdes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 795 drivers/crypto/atmel-tdes.c err = verify_ablkcipher_des3_key(tfm, key); key 799 drivers/crypto/atmel-tdes.c memcpy(ctx->key, key, keylen); key 1247 drivers/crypto/axis/artpec6_crypto.c static int artpec6_crypto_aead_set_key(struct crypto_aead *tfm, const u8 *key, key 1259 drivers/crypto/axis/artpec6_crypto.c memcpy(ctx->aes_key, key, len); key 1597 drivers/crypto/axis/artpec6_crypto.c artpec6_crypto_cipher_set_key(struct crypto_skcipher *cipher, const u8 *key, key 1614 drivers/crypto/axis/artpec6_crypto.c memcpy(ctx->aes_key, key, keylen); key 1620 drivers/crypto/axis/artpec6_crypto.c artpec6_crypto_xts_set_key(struct crypto_skcipher *cipher, const u8 *key, key 1627 drivers/crypto/axis/artpec6_crypto.c ret = xts_check_key(&cipher->base, key, keylen); key 1642 drivers/crypto/axis/artpec6_crypto.c memcpy(ctx->aes_key, key, keylen); key 2231 drivers/crypto/axis/artpec6_crypto.c const u8 *key, unsigned int keylen) key 2253 drivers/crypto/axis/artpec6_crypto.c ret = crypto_shash_digest(hdesc, key, keylen, key 2259 drivers/crypto/axis/artpec6_crypto.c memcpy(tfm_ctx->hmac_key, key, keylen); key 1801 drivers/crypto/bcm/cipher.c static int des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 1807 drivers/crypto/bcm/cipher.c err = verify_ablkcipher_des_key(cipher, key); key 1815 drivers/crypto/bcm/cipher.c static int threedes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 1821 drivers/crypto/bcm/cipher.c err = verify_ablkcipher_des3_key(cipher, key); key 1829 drivers/crypto/bcm/cipher.c static int aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 1857 drivers/crypto/bcm/cipher.c static int rc4_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 1870 drivers/crypto/bcm/cipher.c ctx->enckey[i + ARC4_STATE_SIZE] = key[i % keylen]; key 1877 drivers/crypto/bcm/cipher.c static int ablkcipher_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 1887 drivers/crypto/bcm/cipher.c flow_dump(" key: ", key, keylen); key 1891 drivers/crypto/bcm/cipher.c err = des_setkey(cipher, key, keylen); key 1894 drivers/crypto/bcm/cipher.c err = threedes_setkey(cipher, key, keylen); key 1897 drivers/crypto/bcm/cipher.c err = aes_setkey(cipher, key, keylen); key 1900 drivers/crypto/bcm/cipher.c err = rc4_setkey(cipher, key, keylen); key 1911 drivers/crypto/bcm/cipher.c memcpy(ctx->enckey, key, keylen); key 1919 drivers/crypto/bcm/cipher.c memcpy(ctx->enckey, key + xts_keylen, xts_keylen); key 1920 drivers/crypto/bcm/cipher.c memcpy(ctx->enckey + xts_keylen, key, xts_keylen); key 2315 drivers/crypto/bcm/cipher.c static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, key 2321 drivers/crypto/bcm/cipher.c __func__, ahash, key, keylen); key 2322 drivers/crypto/bcm/cipher.c flow_dump(" key: ", key, keylen); key 2343 drivers/crypto/bcm/cipher.c memcpy(ctx->authkey, key, keylen); key 2379 drivers/crypto/bcm/cipher.c static int ahash_hmac_setkey(struct crypto_ahash *ahash, const u8 *key, key 2390 drivers/crypto/bcm/cipher.c __func__, ahash, key, keylen, blocksize, digestsize); key 2391 drivers/crypto/bcm/cipher.c flow_dump(" key: ", key, keylen); key 2396 drivers/crypto/bcm/cipher.c rc = do_shash("md5", ctx->authkey, key, keylen, NULL, key 2400 drivers/crypto/bcm/cipher.c rc = do_shash("sha1", ctx->authkey, key, keylen, NULL, key 2404 drivers/crypto/bcm/cipher.c rc = do_shash("sha224", ctx->authkey, key, keylen, NULL, key 2408 drivers/crypto/bcm/cipher.c rc = do_shash("sha256", ctx->authkey, key, keylen, NULL, key 2412 drivers/crypto/bcm/cipher.c rc = do_shash("sha384", ctx->authkey, key, keylen, NULL, key 2416 drivers/crypto/bcm/cipher.c rc = do_shash("sha512", ctx->authkey, key, keylen, NULL, key 2420 drivers/crypto/bcm/cipher.c rc = do_shash("sha3-224", ctx->authkey, key, keylen, key 2424 drivers/crypto/bcm/cipher.c rc = do_shash("sha3-256", ctx->authkey, key, keylen, key 2428 drivers/crypto/bcm/cipher.c rc = do_shash("sha3-384", ctx->authkey, key, keylen, key 2432 drivers/crypto/bcm/cipher.c rc = do_shash("sha3-512", ctx->authkey, key, keylen, key 2449 drivers/crypto/bcm/cipher.c memcpy(ctx->authkey, key, keylen); key 2820 drivers/crypto/bcm/cipher.c const u8 *key, unsigned int keylen) key 2828 drivers/crypto/bcm/cipher.c flow_log("%s() aead:%p key:%p keylen:%u\n", __func__, cipher, key, key 2830 drivers/crypto/bcm/cipher.c flow_dump(" key: ", key, keylen); key 2832 drivers/crypto/bcm/cipher.c ret = crypto_authenc_extractkeys(&keys, key, keylen); key 2896 drivers/crypto/bcm/cipher.c ret = crypto_aead_setkey(ctx->fallback_cipher, key, keylen); key 2924 drivers/crypto/bcm/cipher.c const u8 *key, unsigned int keylen) key 2933 drivers/crypto/bcm/cipher.c flow_dump(" key: ", key, keylen); key 2940 drivers/crypto/bcm/cipher.c memcpy(ctx->enckey, key, ctx->enckeylen); key 2968 drivers/crypto/bcm/cipher.c ret = crypto_aead_setkey(ctx->fallback_cipher, key, key 3011 drivers/crypto/bcm/cipher.c const u8 *key, unsigned int keylen) key 3018 drivers/crypto/bcm/cipher.c memcpy(ctx->salt, key + keylen - GCM_ESP_SALT_SIZE, GCM_ESP_SALT_SIZE); key 3024 drivers/crypto/bcm/cipher.c return aead_gcm_ccm_setkey(cipher, key, keylen); key 3039 drivers/crypto/bcm/cipher.c const u8 *key, unsigned int keylen) key 3046 drivers/crypto/bcm/cipher.c memcpy(ctx->salt, key + keylen - GCM_ESP_SALT_SIZE, GCM_ESP_SALT_SIZE); key 3053 drivers/crypto/bcm/cipher.c return aead_gcm_ccm_setkey(cipher, key, keylen); key 3068 drivers/crypto/bcm/cipher.c const u8 *key, unsigned int keylen) key 3075 drivers/crypto/bcm/cipher.c memcpy(ctx->salt, key + keylen - CCM_ESP_SALT_SIZE, CCM_ESP_SALT_SIZE); key 3080 drivers/crypto/bcm/cipher.c return aead_gcm_ccm_setkey(cipher, key, keylen); key 213 drivers/crypto/bcm/util.c const u8 *key, unsigned int key_len) key 236 drivers/crypto/bcm/util.c rc = crypto_shash_setkey(hash, key, key_len); key 91 drivers/crypto/bcm/util.h const u8 *key, unsigned int key_len); key 106 drivers/crypto/caam/caamalg.c u8 key[CAAM_MAX_KEY_SIZE]; key 132 drivers/crypto/caam/caamalg.c ctx->adata.key_virt = ctx->key; key 151 drivers/crypto/caam/caamalg.c ctx->adata.key_virt = ctx->key; key 204 drivers/crypto/caam/caamalg.c nonce = (u32 *)((void *)ctx->key + ctx->adata.keylen_pad + key 214 drivers/crypto/caam/caamalg.c ctx->adata.key_virt = ctx->key; key 217 drivers/crypto/caam/caamalg.c ctx->cdata.key_virt = ctx->key + ctx->adata.keylen_pad; key 327 drivers/crypto/caam/caamalg.c ctx->cdata.key_virt = ctx->key; key 344 drivers/crypto/caam/caamalg.c ctx->cdata.key_virt = ctx->key; key 392 drivers/crypto/caam/caamalg.c ctx->cdata.key_virt = ctx->key; key 410 drivers/crypto/caam/caamalg.c ctx->cdata.key_virt = ctx->key; key 460 drivers/crypto/caam/caamalg.c ctx->cdata.key_virt = ctx->key; key 478 drivers/crypto/caam/caamalg.c ctx->cdata.key_virt = ctx->key; key 544 drivers/crypto/caam/caamalg.c static int chachapoly_setkey(struct crypto_aead *aead, const u8 *key, key 556 drivers/crypto/caam/caamalg.c ctx->cdata.key_virt = key; key 563 drivers/crypto/caam/caamalg.c const u8 *key, unsigned int keylen) key 571 drivers/crypto/caam/caamalg.c if (crypto_authenc_extractkeys(&keys, key, keylen) != 0) key 578 drivers/crypto/caam/caamalg.c DUMP_PREFIX_ADDRESS, 16, 4, key, keylen, 1); key 592 drivers/crypto/caam/caamalg.c memcpy(ctx->key, keys.authkey, keys.authkeylen); key 593 drivers/crypto/caam/caamalg.c memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, key 601 drivers/crypto/caam/caamalg.c ret = gen_split_key(ctx->jrdev, ctx->key, &ctx->adata, keys.authkey, key 609 drivers/crypto/caam/caamalg.c memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, keys.enckeylen); key 614 drivers/crypto/caam/caamalg.c DUMP_PREFIX_ADDRESS, 16, 4, ctx->key, key 627 drivers/crypto/caam/caamalg.c static int des3_aead_setkey(struct crypto_aead *aead, const u8 *key, key 633 drivers/crypto/caam/caamalg.c err = crypto_authenc_extractkeys(&keys, key, keylen); key 638 drivers/crypto/caam/caamalg.c aead_setkey(aead, key, keylen); key 645 drivers/crypto/caam/caamalg.c const u8 *key, unsigned int keylen) key 658 drivers/crypto/caam/caamalg.c DUMP_PREFIX_ADDRESS, 16, 4, key, keylen, 1); key 660 drivers/crypto/caam/caamalg.c memcpy(ctx->key, key, keylen); key 668 drivers/crypto/caam/caamalg.c const u8 *key, unsigned int keylen) key 681 drivers/crypto/caam/caamalg.c DUMP_PREFIX_ADDRESS, 16, 4, key, keylen, 1); key 683 drivers/crypto/caam/caamalg.c memcpy(ctx->key, key, keylen); key 696 drivers/crypto/caam/caamalg.c const u8 *key, unsigned int keylen) key 709 drivers/crypto/caam/caamalg.c DUMP_PREFIX_ADDRESS, 16, 4, key, keylen, 1); key 711 drivers/crypto/caam/caamalg.c memcpy(ctx->key, key, keylen); key 723 drivers/crypto/caam/caamalg.c static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, key 736 drivers/crypto/caam/caamalg.c DUMP_PREFIX_ADDRESS, 16, 4, key, keylen, 1); key 739 drivers/crypto/caam/caamalg.c ctx->cdata.key_virt = key; key 760 drivers/crypto/caam/caamalg.c const u8 *key, unsigned int keylen) key 771 drivers/crypto/caam/caamalg.c return skcipher_setkey(skcipher, key, keylen, 0); key 775 drivers/crypto/caam/caamalg.c const u8 *key, unsigned int keylen) key 795 drivers/crypto/caam/caamalg.c return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); key 799 drivers/crypto/caam/caamalg.c const u8 *key, unsigned int keylen) key 818 drivers/crypto/caam/caamalg.c return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); key 822 drivers/crypto/caam/caamalg.c const u8 *key, unsigned int keylen) key 824 drivers/crypto/caam/caamalg.c return skcipher_setkey(skcipher, key, keylen, 0); key 828 drivers/crypto/caam/caamalg.c const u8 *key, unsigned int keylen) key 830 drivers/crypto/caam/caamalg.c return verify_skcipher_des_key(skcipher, key) ?: key 831 drivers/crypto/caam/caamalg.c skcipher_setkey(skcipher, key, keylen, 0); key 835 drivers/crypto/caam/caamalg.c const u8 *key, unsigned int keylen) key 837 drivers/crypto/caam/caamalg.c return verify_skcipher_des3_key(skcipher, key) ?: key 838 drivers/crypto/caam/caamalg.c skcipher_setkey(skcipher, key, keylen, 0); key 841 drivers/crypto/caam/caamalg.c static int xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, key 855 drivers/crypto/caam/caamalg.c ctx->cdata.key_virt = key; key 1173 drivers/crypto/caam/caamalg.c append_data(desc, ctx->key + ctx->cdata.keylen, 4); key 3439 drivers/crypto/caam/caamalg.c ctx->key_dma = dma_addr + offsetof(struct caam_ctx, key); key 61 drivers/crypto/caam/caamalg_qi.c u8 key[CAAM_MAX_KEY_SIZE]; key 104 drivers/crypto/caam/caamalg_qi.c nonce = (u32 *)((void *)ctx->key + ctx->adata.keylen_pad + key 114 drivers/crypto/caam/caamalg_qi.c ctx->adata.key_virt = ctx->key; key 117 drivers/crypto/caam/caamalg_qi.c ctx->cdata.key_virt = ctx->key + ctx->adata.keylen_pad; key 187 drivers/crypto/caam/caamalg_qi.c static int aead_setkey(struct crypto_aead *aead, const u8 *key, key 196 drivers/crypto/caam/caamalg_qi.c if (crypto_authenc_extractkeys(&keys, key, keylen) != 0) key 203 drivers/crypto/caam/caamalg_qi.c DUMP_PREFIX_ADDRESS, 16, 4, key, keylen, 1); key 217 drivers/crypto/caam/caamalg_qi.c memcpy(ctx->key, keys.authkey, keys.authkeylen); key 218 drivers/crypto/caam/caamalg_qi.c memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, key 226 drivers/crypto/caam/caamalg_qi.c ret = gen_split_key(jrdev, ctx->key, &ctx->adata, keys.authkey, key 233 drivers/crypto/caam/caamalg_qi.c memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, keys.enckeylen); key 239 drivers/crypto/caam/caamalg_qi.c DUMP_PREFIX_ADDRESS, 16, 4, ctx->key, key 276 drivers/crypto/caam/caamalg_qi.c static int des3_aead_setkey(struct crypto_aead *aead, const u8 *key, key 282 drivers/crypto/caam/caamalg_qi.c err = crypto_authenc_extractkeys(&keys, key, keylen); key 287 drivers/crypto/caam/caamalg_qi.c aead_setkey(aead, key, keylen); key 309 drivers/crypto/caam/caamalg_qi.c ctx->cdata.key_virt = ctx->key; key 324 drivers/crypto/caam/caamalg_qi.c ctx->cdata.key_virt = ctx->key; key 352 drivers/crypto/caam/caamalg_qi.c const u8 *key, unsigned int keylen) key 365 drivers/crypto/caam/caamalg_qi.c DUMP_PREFIX_ADDRESS, 16, 4, key, keylen, 1); key 367 drivers/crypto/caam/caamalg_qi.c memcpy(ctx->key, key, keylen); key 408 drivers/crypto/caam/caamalg_qi.c ctx->cdata.key_virt = ctx->key; key 458 drivers/crypto/caam/caamalg_qi.c const u8 *key, unsigned int keylen) key 471 drivers/crypto/caam/caamalg_qi.c DUMP_PREFIX_ADDRESS, 16, 4, key, keylen, 1); key 473 drivers/crypto/caam/caamalg_qi.c memcpy(ctx->key, key, keylen); key 518 drivers/crypto/caam/caamalg_qi.c ctx->cdata.key_virt = ctx->key; key 566 drivers/crypto/caam/caamalg_qi.c const u8 *key, unsigned int keylen) key 579 drivers/crypto/caam/caamalg_qi.c DUMP_PREFIX_ADDRESS, 16, 4, key, keylen, 1); key 581 drivers/crypto/caam/caamalg_qi.c memcpy(ctx->key, key, keylen); key 616 drivers/crypto/caam/caamalg_qi.c static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, key 629 drivers/crypto/caam/caamalg_qi.c DUMP_PREFIX_ADDRESS, 16, 4, key, keylen, 1); key 632 drivers/crypto/caam/caamalg_qi.c ctx->cdata.key_virt = key; key 667 drivers/crypto/caam/caamalg_qi.c const u8 *key, unsigned int keylen) key 678 drivers/crypto/caam/caamalg_qi.c return skcipher_setkey(skcipher, key, keylen, 0); key 682 drivers/crypto/caam/caamalg_qi.c const u8 *key, unsigned int keylen) key 702 drivers/crypto/caam/caamalg_qi.c return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); key 706 drivers/crypto/caam/caamalg_qi.c const u8 *key, unsigned int keylen) key 725 drivers/crypto/caam/caamalg_qi.c return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); key 729 drivers/crypto/caam/caamalg_qi.c const u8 *key, unsigned int keylen) key 731 drivers/crypto/caam/caamalg_qi.c return verify_skcipher_des3_key(skcipher, key) ?: key 732 drivers/crypto/caam/caamalg_qi.c skcipher_setkey(skcipher, key, keylen, 0); key 736 drivers/crypto/caam/caamalg_qi.c const u8 *key, unsigned int keylen) key 738 drivers/crypto/caam/caamalg_qi.c return verify_skcipher_des_key(skcipher, key) ?: key 739 drivers/crypto/caam/caamalg_qi.c skcipher_setkey(skcipher, key, keylen, 0); key 742 drivers/crypto/caam/caamalg_qi.c static int xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, key 755 drivers/crypto/caam/caamalg_qi.c ctx->cdata.key_virt = key; key 2439 drivers/crypto/caam/caamalg_qi.c ctx->key_dma = dma_map_single(dev, ctx->key, sizeof(ctx->key), key 2485 drivers/crypto/caam/caamalg_qi.c dma_unmap_single(ctx->jrdev->parent, ctx->key_dma, sizeof(ctx->key), key 75 drivers/crypto/caam/caamalg_qi2.c u8 key[CAAM_MAX_KEY_SIZE]; key 198 drivers/crypto/caam/caamalg_qi2.c nonce = (u32 *)((void *)ctx->key + ctx->adata.keylen_pad + key 208 drivers/crypto/caam/caamalg_qi2.c ctx->adata.key_virt = ctx->key; key 211 drivers/crypto/caam/caamalg_qi2.c ctx->cdata.key_virt = ctx->key + ctx->adata.keylen_pad; key 280 drivers/crypto/caam/caamalg_qi2.c static int aead_setkey(struct crypto_aead *aead, const u8 *key, key 287 drivers/crypto/caam/caamalg_qi2.c if (crypto_authenc_extractkeys(&keys, key, keylen) != 0) key 294 drivers/crypto/caam/caamalg_qi2.c DUMP_PREFIX_ADDRESS, 16, 4, key, keylen, 1); key 303 drivers/crypto/caam/caamalg_qi2.c memcpy(ctx->key, keys.authkey, keys.authkeylen); key 304 drivers/crypto/caam/caamalg_qi2.c memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, keys.enckeylen); key 308 drivers/crypto/caam/caamalg_qi2.c DUMP_PREFIX_ADDRESS, 16, 4, ctx->key, key 321 drivers/crypto/caam/caamalg_qi2.c static int des3_aead_setkey(struct crypto_aead *aead, const u8 *key, key 327 drivers/crypto/caam/caamalg_qi2.c err = crypto_authenc_extractkeys(&keys, key, keylen); key 336 drivers/crypto/caam/caamalg_qi2.c aead_setkey(aead, key, keylen); key 630 drivers/crypto/caam/caamalg_qi2.c static int chachapoly_setkey(struct crypto_aead *aead, const u8 *key, key 642 drivers/crypto/caam/caamalg_qi2.c ctx->cdata.key_virt = key; key 668 drivers/crypto/caam/caamalg_qi2.c ctx->cdata.key_virt = ctx->key; key 688 drivers/crypto/caam/caamalg_qi2.c ctx->cdata.key_virt = ctx->key; key 721 drivers/crypto/caam/caamalg_qi2.c const u8 *key, unsigned int keylen) key 733 drivers/crypto/caam/caamalg_qi2.c DUMP_PREFIX_ADDRESS, 16, 4, key, keylen, 1); key 735 drivers/crypto/caam/caamalg_qi2.c memcpy(ctx->key, key, keylen); key 755 drivers/crypto/caam/caamalg_qi2.c ctx->cdata.key_virt = ctx->key; key 818 drivers/crypto/caam/caamalg_qi2.c const u8 *key, unsigned int keylen) key 831 drivers/crypto/caam/caamalg_qi2.c DUMP_PREFIX_ADDRESS, 16, 4, key, keylen, 1); key 833 drivers/crypto/caam/caamalg_qi2.c memcpy(ctx->key, key, keylen); key 858 drivers/crypto/caam/caamalg_qi2.c ctx->cdata.key_virt = ctx->key; key 919 drivers/crypto/caam/caamalg_qi2.c const u8 *key, unsigned int keylen) key 932 drivers/crypto/caam/caamalg_qi2.c DUMP_PREFIX_ADDRESS, 16, 4, key, keylen, 1); key 934 drivers/crypto/caam/caamalg_qi2.c memcpy(ctx->key, key, keylen); key 946 drivers/crypto/caam/caamalg_qi2.c static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, key 960 drivers/crypto/caam/caamalg_qi2.c DUMP_PREFIX_ADDRESS, 16, 4, key, keylen, 1); key 963 drivers/crypto/caam/caamalg_qi2.c ctx->cdata.key_virt = key; key 990 drivers/crypto/caam/caamalg_qi2.c const u8 *key, unsigned int keylen) key 1001 drivers/crypto/caam/caamalg_qi2.c return skcipher_setkey(skcipher, key, keylen, 0); key 1005 drivers/crypto/caam/caamalg_qi2.c const u8 *key, unsigned int keylen) key 1025 drivers/crypto/caam/caamalg_qi2.c return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); key 1029 drivers/crypto/caam/caamalg_qi2.c const u8 *key, unsigned int keylen) key 1048 drivers/crypto/caam/caamalg_qi2.c return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); key 1052 drivers/crypto/caam/caamalg_qi2.c const u8 *key, unsigned int keylen) key 1060 drivers/crypto/caam/caamalg_qi2.c return skcipher_setkey(skcipher, key, keylen, 0); key 1064 drivers/crypto/caam/caamalg_qi2.c const u8 *key, unsigned int keylen) key 1066 drivers/crypto/caam/caamalg_qi2.c return verify_skcipher_des_key(skcipher, key) ?: key 1067 drivers/crypto/caam/caamalg_qi2.c skcipher_setkey(skcipher, key, keylen, 0); key 1071 drivers/crypto/caam/caamalg_qi2.c const u8 *key, unsigned int keylen) key 1073 drivers/crypto/caam/caamalg_qi2.c return verify_skcipher_des3_key(skcipher, key) ?: key 1074 drivers/crypto/caam/caamalg_qi2.c skcipher_setkey(skcipher, key, keylen, 0); key 1077 drivers/crypto/caam/caamalg_qi2.c static int xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, key 1092 drivers/crypto/caam/caamalg_qi2.c ctx->cdata.key_virt = key; key 2988 drivers/crypto/caam/caamalg_qi2.c u8 key[CAAM_MAX_HASH_BLOCK_SIZE] ____cacheline_aligned; key 3163 drivers/crypto/caam/caamalg_qi2.c static int hash_digest_key(struct caam_hash_ctx *ctx, u32 *keylen, u8 *key, key 3186 drivers/crypto/caam/caamalg_qi2.c key_dma = dma_map_single(ctx->dev, key, *keylen, DMA_BIDIRECTIONAL); key 3221 drivers/crypto/caam/caamalg_qi2.c DUMP_PREFIX_ADDRESS, 16, 4, key, *keylen, 1); key 3241 drivers/crypto/caam/caamalg_qi2.c DUMP_PREFIX_ADDRESS, 16, 4, key, key 3259 drivers/crypto/caam/caamalg_qi2.c static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, key 3271 drivers/crypto/caam/caamalg_qi2.c hashed_key = kmemdup(key, keylen, GFP_KERNEL | GFP_DMA); key 3277 drivers/crypto/caam/caamalg_qi2.c key = hashed_key; key 3286 drivers/crypto/caam/caamalg_qi2.c ctx->adata.key_virt = key; key 3296 drivers/crypto/caam/caamalg_qi2.c memcpy(ctx->key, key, keylen); key 4533 drivers/crypto/caam/caamalg_qi2.c ctx->adata.key_dma = dma_map_single_attrs(ctx->dev, ctx->key, key 4534 drivers/crypto/caam/caamalg_qi2.c ARRAY_SIZE(ctx->key), key 4550 drivers/crypto/caam/caamalg_qi2.c ARRAY_SIZE(ctx->key), key 4580 drivers/crypto/caam/caamalg_qi2.c ARRAY_SIZE(ctx->key), DMA_TO_DEVICE, key 93 drivers/crypto/caam/caamhash.c u8 key[CAAM_MAX_HASH_KEY_SIZE] ____cacheline_aligned; key 230 drivers/crypto/caam/caamhash.c ctx->adata.key_virt = ctx->key; key 306 drivers/crypto/caam/caamhash.c ctx->adata.key_virt = ctx->key; key 381 drivers/crypto/caam/caamhash.c static int hash_digest_key(struct caam_hash_ctx *ctx, u32 *keylen, u8 *key, key 398 drivers/crypto/caam/caamhash.c key_dma = dma_map_single(jrdev, key, *keylen, DMA_BIDIRECTIONAL); key 416 drivers/crypto/caam/caamhash.c DUMP_PREFIX_ADDRESS, 16, 4, key, *keylen, 1); key 431 drivers/crypto/caam/caamhash.c DUMP_PREFIX_ADDRESS, 16, 4, key, key 444 drivers/crypto/caam/caamhash.c const u8 *key, unsigned int keylen) key 457 drivers/crypto/caam/caamhash.c hashed_key = kmemdup(key, keylen, GFP_KERNEL | GFP_DMA); key 463 drivers/crypto/caam/caamhash.c key = hashed_key; key 479 drivers/crypto/caam/caamhash.c memcpy(ctx->key, key, keylen); key 493 drivers/crypto/caam/caamhash.c ret = gen_split_key(ctx->jrdev, ctx->key, &ctx->adata, key, key 507 drivers/crypto/caam/caamhash.c static int axcbc_setkey(struct crypto_ahash *ahash, const u8 *key, key 518 drivers/crypto/caam/caamhash.c memcpy(ctx->key, key, keylen); key 524 drivers/crypto/caam/caamhash.c DUMP_PREFIX_ADDRESS, 16, 4, ctx->key, keylen, 1); key 529 drivers/crypto/caam/caamhash.c static int acmac_setkey(struct crypto_ahash *ahash, const u8 *key, key 542 drivers/crypto/caam/caamhash.c ctx->adata.key_virt = key; key 546 drivers/crypto/caam/caamhash.c DUMP_PREFIX_ADDRESS, 16, 4, key, keylen, 1); key 1864 drivers/crypto/caam/caamhash.c ctx->adata.key_dma = dma_map_single_attrs(ctx->jrdev, ctx->key, key 1865 drivers/crypto/caam/caamhash.c ARRAY_SIZE(ctx->key), key 1876 drivers/crypto/caam/caamhash.c offsetof(struct caam_hash_ctx, key), key 1883 drivers/crypto/caam/caamhash.c ARRAY_SIZE(ctx->key), key 1915 drivers/crypto/caam/caamhash.c offsetof(struct caam_hash_ctx, key), key 1919 drivers/crypto/caam/caamhash.c ARRAY_SIZE(ctx->key), ctx->key_dir, key 61 drivers/crypto/caam/caampkc.c struct caam_rsa_key *key = &ctx->key; key 64 drivers/crypto/caam/caampkc.c dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE); key 65 drivers/crypto/caam/caampkc.c dma_unmap_single(dev, pdb->e_dma, key->e_sz, DMA_TO_DEVICE); key 73 drivers/crypto/caam/caampkc.c struct caam_rsa_key *key = &ctx->key; key 76 drivers/crypto/caam/caampkc.c dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE); key 77 drivers/crypto/caam/caampkc.c dma_unmap_single(dev, pdb->d_dma, key->d_sz, DMA_TO_DEVICE); key 85 drivers/crypto/caam/caampkc.c struct caam_rsa_key *key = &ctx->key; key 87 drivers/crypto/caam/caampkc.c size_t p_sz = key->p_sz; key 88 drivers/crypto/caam/caampkc.c size_t q_sz = key->q_sz; key 90 drivers/crypto/caam/caampkc.c dma_unmap_single(dev, pdb->d_dma, key->d_sz, DMA_TO_DEVICE); key 102 drivers/crypto/caam/caampkc.c struct caam_rsa_key *key = &ctx->key; key 104 drivers/crypto/caam/caampkc.c size_t p_sz = key->p_sz; key 105 drivers/crypto/caam/caampkc.c size_t q_sz = key->q_sz; key 250 drivers/crypto/caam/caampkc.c struct caam_rsa_key *key = &ctx->key; key 261 drivers/crypto/caam/caampkc.c if (req->src_len > key->n_sz) { key 267 drivers/crypto/caam/caampkc.c key->n_sz, sg_flags); key 279 drivers/crypto/caam/caampkc.c diff_size = key->n_sz - req->src_len; key 368 drivers/crypto/caam/caampkc.c struct caam_rsa_key *key = &ctx->key; key 373 drivers/crypto/caam/caampkc.c pdb->n_dma = dma_map_single(dev, key->n, key->n_sz, DMA_TO_DEVICE); key 379 drivers/crypto/caam/caampkc.c pdb->e_dma = dma_map_single(dev, key->e, key->e_sz, DMA_TO_DEVICE); key 382 drivers/crypto/caam/caampkc.c dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE); key 402 drivers/crypto/caam/caampkc.c pdb->sgf |= (key->e_sz << RSA_PDB_E_SHIFT) | key->n_sz; key 413 drivers/crypto/caam/caampkc.c struct caam_rsa_key *key = &ctx->key; key 418 drivers/crypto/caam/caampkc.c pdb->n_dma = dma_map_single(dev, key->n, key->n_sz, DMA_TO_DEVICE); key 424 drivers/crypto/caam/caampkc.c pdb->d_dma = dma_map_single(dev, key->d, key->d_sz, DMA_TO_DEVICE); key 427 drivers/crypto/caam/caampkc.c dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE); key 449 drivers/crypto/caam/caampkc.c pdb->sgf |= (key->d_sz << RSA_PDB_D_SHIFT) | key->n_sz; key 459 drivers/crypto/caam/caampkc.c struct caam_rsa_key *key = &ctx->key; key 463 drivers/crypto/caam/caampkc.c size_t p_sz = key->p_sz; key 464 drivers/crypto/caam/caampkc.c size_t q_sz = key->q_sz; key 466 drivers/crypto/caam/caampkc.c pdb->d_dma = dma_map_single(dev, key->d, key->d_sz, DMA_TO_DEVICE); key 472 drivers/crypto/caam/caampkc.c pdb->p_dma = dma_map_single(dev, key->p, p_sz, DMA_TO_DEVICE); key 478 drivers/crypto/caam/caampkc.c pdb->q_dma = dma_map_single(dev, key->q, q_sz, DMA_TO_DEVICE); key 484 drivers/crypto/caam/caampkc.c pdb->tmp1_dma = dma_map_single(dev, key->tmp1, p_sz, DMA_BIDIRECTIONAL); key 490 drivers/crypto/caam/caampkc.c pdb->tmp2_dma = dma_map_single(dev, key->tmp2, q_sz, DMA_BIDIRECTIONAL); key 514 drivers/crypto/caam/caampkc.c pdb->sgf |= (key->d_sz << RSA_PDB_D_SHIFT) | key->n_sz; key 526 drivers/crypto/caam/caampkc.c dma_unmap_single(dev, pdb->d_dma, key->d_sz, DMA_TO_DEVICE); key 536 drivers/crypto/caam/caampkc.c struct caam_rsa_key *key = &ctx->key; key 540 drivers/crypto/caam/caampkc.c size_t p_sz = key->p_sz; key 541 drivers/crypto/caam/caampkc.c size_t q_sz = key->q_sz; key 543 drivers/crypto/caam/caampkc.c pdb->p_dma = dma_map_single(dev, key->p, p_sz, DMA_TO_DEVICE); key 549 drivers/crypto/caam/caampkc.c pdb->q_dma = dma_map_single(dev, key->q, q_sz, DMA_TO_DEVICE); key 555 drivers/crypto/caam/caampkc.c pdb->dp_dma = dma_map_single(dev, key->dp, p_sz, DMA_TO_DEVICE); key 561 drivers/crypto/caam/caampkc.c pdb->dq_dma = dma_map_single(dev, key->dq, q_sz, DMA_TO_DEVICE); key 567 drivers/crypto/caam/caampkc.c pdb->c_dma = dma_map_single(dev, key->qinv, p_sz, DMA_TO_DEVICE); key 573 drivers/crypto/caam/caampkc.c pdb->tmp1_dma = dma_map_single(dev, key->tmp1, p_sz, DMA_BIDIRECTIONAL); key 579 drivers/crypto/caam/caampkc.c pdb->tmp2_dma = dma_map_single(dev, key->tmp2, q_sz, DMA_BIDIRECTIONAL); key 603 drivers/crypto/caam/caampkc.c pdb->sgf |= key->n_sz; key 628 drivers/crypto/caam/caampkc.c struct caam_rsa_key *key = &ctx->key; key 633 drivers/crypto/caam/caampkc.c if (unlikely(!key->n || !key->e)) key 636 drivers/crypto/caam/caampkc.c if (req->dst_len < key->n_sz) { key 637 drivers/crypto/caam/caampkc.c req->dst_len = key->n_sz; key 770 drivers/crypto/caam/caampkc.c struct caam_rsa_key *key = &ctx->key; key 773 drivers/crypto/caam/caampkc.c if (unlikely(!key->n || !key->d)) key 776 drivers/crypto/caam/caampkc.c if (req->dst_len < key->n_sz) { key 777 drivers/crypto/caam/caampkc.c req->dst_len = key->n_sz; key 782 drivers/crypto/caam/caampkc.c if (key->priv_form == FORM3) key 784 drivers/crypto/caam/caampkc.c else if (key->priv_form == FORM2) key 792 drivers/crypto/caam/caampkc.c static void caam_rsa_free_key(struct caam_rsa_key *key) key 794 drivers/crypto/caam/caampkc.c kzfree(key->d); key 795 drivers/crypto/caam/caampkc.c kzfree(key->p); key 796 drivers/crypto/caam/caampkc.c kzfree(key->q); key 797 drivers/crypto/caam/caampkc.c kzfree(key->dp); key 798 drivers/crypto/caam/caampkc.c kzfree(key->dq); key 799 drivers/crypto/caam/caampkc.c kzfree(key->qinv); key 800 drivers/crypto/caam/caampkc.c kzfree(key->tmp1); key 801 drivers/crypto/caam/caampkc.c kzfree(key->tmp2); key 802 drivers/crypto/caam/caampkc.c kfree(key->e); key 803 drivers/crypto/caam/caampkc.c kfree(key->n); key 804 drivers/crypto/caam/caampkc.c memset(key, 0, sizeof(*key)); key 869 drivers/crypto/caam/caampkc.c static int caam_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, key 874 drivers/crypto/caam/caampkc.c struct caam_rsa_key *rsa_key = &ctx->key; key 880 drivers/crypto/caam/caampkc.c ret = rsa_parse_pub_key(&raw_key, key, keylen); key 916 drivers/crypto/caam/caampkc.c struct caam_rsa_key *rsa_key = &ctx->key; key 971 drivers/crypto/caam/caampkc.c static int caam_rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, key 976 drivers/crypto/caam/caampkc.c struct caam_rsa_key *rsa_key = &ctx->key; key 982 drivers/crypto/caam/caampkc.c ret = rsa_parse_priv_key(&raw_key, key, keylen); key 1027 drivers/crypto/caam/caampkc.c return ctx->key.n_sz; key 1058 drivers/crypto/caam/caampkc.c struct caam_rsa_key *key = &ctx->key; key 1062 drivers/crypto/caam/caampkc.c caam_rsa_free_key(key); key 95 drivers/crypto/caam/caampkc.h struct caam_rsa_key key; key 287 drivers/crypto/caam/desc_constr.h APPEND_CMD_PTR(key, KEY) key 374 drivers/crypto/caam/desc_constr.h APPEND_CMD_PTR_TO_IMM2(key, KEY); key 230 drivers/crypto/cavium/cpt/cptvf_algs.c static int cvm_xts_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 236 drivers/crypto/cavium/cpt/cptvf_algs.c const u8 *key1 = key; key 237 drivers/crypto/cavium/cpt/cptvf_algs.c const u8 *key2 = key + (keylen / 2); key 239 drivers/crypto/cavium/cpt/cptvf_algs.c err = xts_check_key(tfm, key, keylen); key 287 drivers/crypto/cavium/cpt/cptvf_algs.c static int cvm_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 295 drivers/crypto/cavium/cpt/cptvf_algs.c memcpy(ctx->enc_key, key, keylen); key 304 drivers/crypto/cavium/cpt/cptvf_algs.c static int cvm_cbc_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 307 drivers/crypto/cavium/cpt/cptvf_algs.c return cvm_setkey(cipher, key, keylen, AES_CBC); key 310 drivers/crypto/cavium/cpt/cptvf_algs.c static int cvm_ecb_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 313 drivers/crypto/cavium/cpt/cptvf_algs.c return cvm_setkey(cipher, key, keylen, AES_ECB); key 316 drivers/crypto/cavium/cpt/cptvf_algs.c static int cvm_cfb_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 319 drivers/crypto/cavium/cpt/cptvf_algs.c return cvm_setkey(cipher, key, keylen, AES_CFB); key 322 drivers/crypto/cavium/cpt/cptvf_algs.c static int cvm_cbc_des3_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 325 drivers/crypto/cavium/cpt/cptvf_algs.c return verify_ablkcipher_des3_key(cipher, key) ?: key 326 drivers/crypto/cavium/cpt/cptvf_algs.c cvm_setkey(cipher, key, keylen, DES3_CBC); key 329 drivers/crypto/cavium/cpt/cptvf_algs.c static int cvm_ecb_des3_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 332 drivers/crypto/cavium/cpt/cptvf_algs.c return verify_ablkcipher_des3_key(cipher, key) ?: key 333 drivers/crypto/cavium/cpt/cptvf_algs.c cvm_setkey(cipher, key, keylen, DES3_ECB); key 34 drivers/crypto/cavium/nitrox/nitrox_aead.c static int nitrox_aes_gcm_setkey(struct crypto_aead *aead, const u8 *key, key 56 drivers/crypto/cavium/nitrox/nitrox_aead.c memcpy(fctx->crypto.u.key, key, keylen); key 329 drivers/crypto/cavium/nitrox/nitrox_aead.c static int nitrox_rfc4106_setkey(struct crypto_aead *aead, const u8 *key, key 340 drivers/crypto/cavium/nitrox/nitrox_aead.c ret = nitrox_aes_gcm_setkey(aead, key, keylen); key 344 drivers/crypto/cavium/nitrox/nitrox_aead.c memcpy(fctx->crypto.iv, key + keylen, GCM_AES_SALT_SIZE); key 129 drivers/crypto/cavium/nitrox/nitrox_req.h u8 key[AES_MAX_KEY_SIZE]; key 93 drivers/crypto/cavium/nitrox/nitrox_skcipher.c int aes_keylen, const u8 *key, key 119 drivers/crypto/cavium/nitrox/nitrox_skcipher.c memcpy(fctx->crypto.u.key, key, keylen); key 124 drivers/crypto/cavium/nitrox/nitrox_skcipher.c static int nitrox_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, key 134 drivers/crypto/cavium/nitrox/nitrox_skcipher.c return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); key 258 drivers/crypto/cavium/nitrox/nitrox_skcipher.c const u8 *key, unsigned int keylen) key 260 drivers/crypto/cavium/nitrox/nitrox_skcipher.c return verify_skcipher_des3_key(cipher, key) ?: key 261 drivers/crypto/cavium/nitrox/nitrox_skcipher.c nitrox_skcipher_setkey(cipher, 0, key, keylen); key 275 drivers/crypto/cavium/nitrox/nitrox_skcipher.c const u8 *key, unsigned int keylen) key 282 drivers/crypto/cavium/nitrox/nitrox_skcipher.c ret = xts_check_key(tfm, key, keylen); key 296 drivers/crypto/cavium/nitrox/nitrox_skcipher.c memcpy(fctx->auth.u.key2, (key + keylen), keylen); key 298 drivers/crypto/cavium/nitrox/nitrox_skcipher.c return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); key 302 drivers/crypto/cavium/nitrox/nitrox_skcipher.c const u8 *key, unsigned int keylen) key 314 drivers/crypto/cavium/nitrox/nitrox_skcipher.c memcpy(fctx->crypto.iv, key + (keylen - CTR_RFC3686_NONCE_SIZE), key 324 drivers/crypto/cavium/nitrox/nitrox_skcipher.c return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); key 162 drivers/crypto/ccp/ccp-crypto-aes-cmac.c rctx->cmd.u.aes.key = &ctx->u.aes.key_sg; key 256 drivers/crypto/ccp/ccp-crypto-aes-cmac.c static int ccp_aes_cmac_setkey(struct crypto_ahash *tfm, const u8 *key, key 288 drivers/crypto/ccp/ccp-crypto-aes-cmac.c ret = aes_expandkey(&aes, key, key_len); key 293 drivers/crypto/ccp/ccp-crypto-aes-cmac.c memset(ctx->u.aes.key, 0, sizeof(ctx->u.aes.key)); key 294 drivers/crypto/ccp/ccp-crypto-aes-cmac.c aes_encrypt(&aes, ctx->u.aes.key, ctx->u.aes.key); key 298 drivers/crypto/ccp/ccp-crypto-aes-cmac.c k0_hi = be64_to_cpu(*((__be64 *)ctx->u.aes.key)); key 299 drivers/crypto/ccp/ccp-crypto-aes-cmac.c k0_lo = be64_to_cpu(*((__be64 *)ctx->u.aes.key + 1)); key 303 drivers/crypto/ccp/ccp-crypto-aes-cmac.c if (ctx->u.aes.key[0] & 0x80) { key 328 drivers/crypto/ccp/ccp-crypto-aes-cmac.c memset(ctx->u.aes.key, 0, sizeof(ctx->u.aes.key)); key 329 drivers/crypto/ccp/ccp-crypto-aes-cmac.c memcpy(ctx->u.aes.key, key, key_len); key 331 drivers/crypto/ccp/ccp-crypto-aes-cmac.c sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); key 29 drivers/crypto/ccp/ccp-crypto-aes-galois.c static int ccp_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key, key 52 drivers/crypto/ccp/ccp-crypto-aes-galois.c memcpy(ctx->u.aes.key, key, key_len); key 53 drivers/crypto/ccp/ccp-crypto-aes-galois.c sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); key 124 drivers/crypto/ccp/ccp-crypto-aes-galois.c rctx->cmd.u.aes.key = &ctx->u.aes.key_sg; key 75 drivers/crypto/ccp/ccp-crypto-aes-xts.c static int ccp_aes_xts_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 83 drivers/crypto/ccp/ccp-crypto-aes-xts.c ret = xts_check_key(xfm, key, key_len); key 92 drivers/crypto/ccp/ccp-crypto-aes-xts.c memcpy(ctx->u.aes.key, key, key_len); key 96 drivers/crypto/ccp/ccp-crypto-aes-xts.c memcpy(ctx->u.aes.key, key, key_len); key 100 drivers/crypto/ccp/ccp-crypto-aes-xts.c sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); key 102 drivers/crypto/ccp/ccp-crypto-aes-xts.c return crypto_sync_skcipher_setkey(ctx->u.aes.tfm_skcipher, key, key_len); key 175 drivers/crypto/ccp/ccp-crypto-aes-xts.c rctx->cmd.u.xts.key = &ctx->u.aes.key_sg; key 37 drivers/crypto/ccp/ccp-crypto-aes.c static int ccp_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 61 drivers/crypto/ccp/ccp-crypto-aes.c memcpy(ctx->u.aes.key, key, key_len); key 62 drivers/crypto/ccp/ccp-crypto-aes.c sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); key 100 drivers/crypto/ccp/ccp-crypto-aes.c rctx->cmd.u.aes.key = &ctx->u.aes.key_sg; key 151 drivers/crypto/ccp/ccp-crypto-aes.c static int ccp_aes_rfc3686_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 160 drivers/crypto/ccp/ccp-crypto-aes.c memcpy(ctx->u.aes.nonce, key + key_len, CTR_RFC3686_NONCE_SIZE); key 162 drivers/crypto/ccp/ccp-crypto-aes.c return ccp_aes_setkey(tfm, key, key_len); key 36 drivers/crypto/ccp/ccp-crypto-des3.c static int ccp_des3_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 44 drivers/crypto/ccp/ccp-crypto-des3.c err = verify_ablkcipher_des3_key(tfm, key); key 55 drivers/crypto/ccp/ccp-crypto-des3.c memcpy(ctx->u.des3.key, key, key_len); key 56 drivers/crypto/ccp/ccp-crypto-des3.c sg_init_one(&ctx->u.des3.key_sg, ctx->u.des3.key, key_len); key 95 drivers/crypto/ccp/ccp-crypto-des3.c rctx->cmd.u.des3.key = &ctx->u.des3.key_sg; key 126 drivers/crypto/ccp/ccp-crypto-rsa.c static int ccp_rsa_setkey(struct crypto_akcipher *tfm, const void *key, key 138 drivers/crypto/ccp/ccp-crypto-rsa.c ret = rsa_parse_priv_key(&raw_key, key, keylen); key 140 drivers/crypto/ccp/ccp-crypto-rsa.c ret = rsa_parse_pub_key(&raw_key, key, keylen); key 181 drivers/crypto/ccp/ccp-crypto-rsa.c static int ccp_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, key 184 drivers/crypto/ccp/ccp-crypto-rsa.c return ccp_rsa_setkey(tfm, key, keylen, true); key 187 drivers/crypto/ccp/ccp-crypto-rsa.c static int ccp_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, key 190 drivers/crypto/ccp/ccp-crypto-rsa.c return ccp_rsa_setkey(tfm, key, keylen, false); key 270 drivers/crypto/ccp/ccp-crypto-sha.c static int ccp_sha_setkey(struct crypto_ahash *tfm, const u8 *key, key 288 drivers/crypto/ccp/ccp-crypto-sha.c memset(ctx->u.sha.key, 0, sizeof(ctx->u.sha.key)); key 294 drivers/crypto/ccp/ccp-crypto-sha.c ret = crypto_shash_digest(sdesc, key, key_len, key 295 drivers/crypto/ccp/ccp-crypto-sha.c ctx->u.sha.key); key 303 drivers/crypto/ccp/ccp-crypto-sha.c memcpy(ctx->u.sha.key, key, key_len); key 307 drivers/crypto/ccp/ccp-crypto-sha.c ctx->u.sha.ipad[i] = ctx->u.sha.key[i] ^ HMAC_IPAD_VALUE; key 308 drivers/crypto/ccp/ccp-crypto-sha.c ctx->u.sha.opad[i] = ctx->u.sha.key[i] ^ HMAC_OPAD_VALUE; key 99 drivers/crypto/ccp/ccp-crypto.h u8 key[AES_MAX_KEY_SIZE * 2]; key 168 drivers/crypto/ccp/ccp-crypto.h u8 key[AES_MAX_KEY_SIZE]; key 189 drivers/crypto/ccp/ccp-crypto.h u8 key[MAX_SHA_BLOCK_SIZE]; key 460 drivers/crypto/ccp/ccp-ops.c struct ccp_dm_workarea key, ctx; key 477 drivers/crypto/ccp/ccp-ops.c if (!aes->key || !aes->iv || !aes->src) key 507 drivers/crypto/ccp/ccp-ops.c ret = ccp_init_dm_workarea(&key, cmd_q, key 514 drivers/crypto/ccp/ccp-ops.c ret = ccp_set_dm_area(&key, dm_offset, aes->key, 0, aes->key_len); key 517 drivers/crypto/ccp/ccp-ops.c ret = ccp_copy_to_sb(cmd_q, &key, op.jobid, op.sb_key, key 607 drivers/crypto/ccp/ccp-ops.c ccp_dm_free(&key); key 616 drivers/crypto/ccp/ccp-ops.c struct ccp_dm_workarea key, ctx, final_wa, tag; key 642 drivers/crypto/ccp/ccp-ops.c if (!aes->key) /* Gotta have a key SGL */ key 689 drivers/crypto/ccp/ccp-ops.c ret = ccp_init_dm_workarea(&key, cmd_q, key 696 drivers/crypto/ccp/ccp-ops.c ret = ccp_set_dm_area(&key, dm_offset, aes->key, 0, aes->key_len); key 699 drivers/crypto/ccp/ccp-ops.c ret = ccp_copy_to_sb(cmd_q, &key, op.jobid, op.sb_key, key 890 drivers/crypto/ccp/ccp-ops.c ccp_dm_free(&key); key 899 drivers/crypto/ccp/ccp-ops.c struct ccp_dm_workarea key, ctx; key 916 drivers/crypto/ccp/ccp-ops.c if (!aes->key || !aes->src || !aes->dst) key 946 drivers/crypto/ccp/ccp-ops.c ret = ccp_init_dm_workarea(&key, cmd_q, key 953 drivers/crypto/ccp/ccp-ops.c ret = ccp_set_dm_area(&key, dm_offset, aes->key, 0, aes->key_len); key 956 drivers/crypto/ccp/ccp-ops.c ret = ccp_copy_to_sb(cmd_q, &key, op.jobid, op.sb_key, key 1067 drivers/crypto/ccp/ccp-ops.c ccp_dm_free(&key); key 1076 drivers/crypto/ccp/ccp-ops.c struct ccp_dm_workarea key, ctx; key 1119 drivers/crypto/ccp/ccp-ops.c if (!xts->key || !xts->iv || !xts->src || !xts->dst) key 1144 drivers/crypto/ccp/ccp-ops.c ret = ccp_init_dm_workarea(&key, cmd_q, key 1156 drivers/crypto/ccp/ccp-ops.c ret = ccp_set_dm_area(&key, dm_offset, xts->key, 0, xts->key_len); key 1159 drivers/crypto/ccp/ccp-ops.c ret = ccp_set_dm_area(&key, 0, xts->key, xts->key_len, xts->key_len); key 1170 drivers/crypto/ccp/ccp-ops.c ret = ccp_set_dm_area(&key, pad, xts->key, 0, xts->key_len); key 1173 drivers/crypto/ccp/ccp-ops.c ret = ccp_set_dm_area(&key, dm_offset + pad, xts->key, key 1178 drivers/crypto/ccp/ccp-ops.c ret = ccp_copy_to_sb(cmd_q, &key, op.jobid, op.sb_key, key 1267 drivers/crypto/ccp/ccp-ops.c ccp_dm_free(&key); key 1277 drivers/crypto/ccp/ccp-ops.c struct ccp_dm_workarea key, ctx; key 1300 drivers/crypto/ccp/ccp-ops.c if (!des3->key || !des3->src || !des3->dst) key 1330 drivers/crypto/ccp/ccp-ops.c ret = ccp_init_dm_workarea(&key, cmd_q, key 1344 drivers/crypto/ccp/ccp-ops.c ret = ccp_set_dm_area(&key, dm_offset + 2 * len_singlekey, key 1345 drivers/crypto/ccp/ccp-ops.c des3->key, 0, len_singlekey); key 1348 drivers/crypto/ccp/ccp-ops.c ret = ccp_set_dm_area(&key, dm_offset + len_singlekey, key 1349 drivers/crypto/ccp/ccp-ops.c des3->key, len_singlekey, len_singlekey); key 1352 drivers/crypto/ccp/ccp-ops.c ret = ccp_set_dm_area(&key, dm_offset, key 1353 drivers/crypto/ccp/ccp-ops.c des3->key, 2 * len_singlekey, len_singlekey); key 1358 drivers/crypto/ccp/ccp-ops.c ret = ccp_copy_to_sb(cmd_q, &key, op.jobid, op.sb_key, key 1464 drivers/crypto/ccp/ccp-ops.c ccp_dm_free(&key); key 426 drivers/crypto/ccree/cc_aead.c u8 *key = NULL; key 446 drivers/crypto/ccree/cc_aead.c key = kmemdup(authkey, keylen, GFP_KERNEL); key 447 drivers/crypto/ccree/cc_aead.c if (!key) key 450 drivers/crypto/ccree/cc_aead.c key_dma_addr = dma_map_single(dev, (void *)key, keylen, key 454 drivers/crypto/ccree/cc_aead.c key, keylen); key 455 drivers/crypto/ccree/cc_aead.c kzfree(key); key 538 drivers/crypto/ccree/cc_aead.c kzfree(key); key 543 drivers/crypto/ccree/cc_aead.c static int cc_aead_setkey(struct crypto_aead *tfm, const u8 *key, key 555 drivers/crypto/ccree/cc_aead.c ctx, crypto_tfm_alg_name(crypto_aead_tfm(tfm)), key, keylen); key 562 drivers/crypto/ccree/cc_aead.c rc = crypto_authenc_extractkeys(&keys, key, keylen); key 585 drivers/crypto/ccree/cc_aead.c enckey = key; key 648 drivers/crypto/ccree/cc_aead.c static int cc_des3_aead_setkey(struct crypto_aead *aead, const u8 *key, key 654 drivers/crypto/ccree/cc_aead.c err = crypto_authenc_extractkeys(&keys, key, keylen); key 659 drivers/crypto/ccree/cc_aead.c cc_aead_setkey(aead, key, keylen); key 665 drivers/crypto/ccree/cc_aead.c static int cc_rfc4309_ccm_setkey(struct crypto_aead *tfm, const u8 *key, key 674 drivers/crypto/ccree/cc_aead.c memcpy(ctx->ctr_nonce, key + keylen, 3); key 676 drivers/crypto/ccree/cc_aead.c return cc_aead_setkey(tfm, key, keylen); key 2138 drivers/crypto/ccree/cc_aead.c static int cc_rfc4106_gcm_setkey(struct crypto_aead *tfm, const u8 *key, key 2144 drivers/crypto/ccree/cc_aead.c dev_dbg(dev, "%s() keylen %d, key %p\n", __func__, keylen, key); key 2150 drivers/crypto/ccree/cc_aead.c memcpy(ctx->ctr_nonce, key + keylen, 4); key 2152 drivers/crypto/ccree/cc_aead.c return cc_aead_setkey(tfm, key, keylen); key 2155 drivers/crypto/ccree/cc_aead.c static int cc_rfc4543_gcm_setkey(struct crypto_aead *tfm, const u8 *key, key 2161 drivers/crypto/ccree/cc_aead.c dev_dbg(dev, "%s() keylen %d, key %p\n", __func__, keylen, key); key 2167 drivers/crypto/ccree/cc_aead.c memcpy(ctx->ctr_nonce, key + keylen, 4); key 2169 drivers/crypto/ccree/cc_aead.c return cc_aead_setkey(tfm, key, keylen); key 28 drivers/crypto/ccree/cc_cipher.c u8 *key; key 179 drivers/crypto/ccree/cc_cipher.c ctx_p->user.key = kmalloc(max_key_buf_size, GFP_KERNEL); key 180 drivers/crypto/ccree/cc_cipher.c if (!ctx_p->user.key) key 184 drivers/crypto/ccree/cc_cipher.c ctx_p->user.key); key 187 drivers/crypto/ccree/cc_cipher.c ctx_p->user.key_dma_addr = dma_map_single(dev, (void *)ctx_p->user.key, key 192 drivers/crypto/ccree/cc_cipher.c max_key_buf_size, ctx_p->user.key); key 196 drivers/crypto/ccree/cc_cipher.c max_key_buf_size, ctx_p->user.key, &ctx_p->user.key_dma_addr); key 236 drivers/crypto/ccree/cc_cipher.c kzfree(ctx_p->user.key); key 237 drivers/crypto/ccree/cc_cipher.c dev_dbg(dev, "Free key buffer in context. key=@%p\n", ctx_p->user.key); key 277 drivers/crypto/ccree/cc_cipher.c static int cc_cipher_sethkey(struct crypto_skcipher *sktfm, const u8 *key, key 287 drivers/crypto/ccree/cc_cipher.c dump_byte_array("key", (u8 *)key, keylen); key 298 drivers/crypto/ccree/cc_cipher.c memcpy(&hki, key, keylen); key 379 drivers/crypto/ccree/cc_cipher.c static int cc_cipher_setkey(struct crypto_skcipher *sktfm, const u8 *key, key 392 drivers/crypto/ccree/cc_cipher.c dump_byte_array("key", (u8 *)key, keylen); key 411 drivers/crypto/ccree/cc_cipher.c verify_skcipher_des3_key(sktfm, key)) || key 412 drivers/crypto/ccree/cc_cipher.c verify_skcipher_des_key(sktfm, key)) { key 419 drivers/crypto/ccree/cc_cipher.c xts_check_key(tfm, key, keylen)) { key 428 drivers/crypto/ccree/cc_cipher.c memcpy(ctx_p->user.key, key, keylen); key 430 drivers/crypto/ccree/cc_cipher.c memset(ctx_p->user.key + 24, 0, CC_AES_KEY_SIZE_MAX - 24); key 441 drivers/crypto/ccree/cc_cipher.c err = crypto_shash_digest(desc, ctx_p->user.key, key_len, key 442 drivers/crypto/ccree/cc_cipher.c ctx_p->user.key + key_len); key 72 drivers/crypto/ccree/cc_hash.c u8 *key; key 719 drivers/crypto/ccree/cc_hash.c static int cc_hash_setkey(struct crypto_ahash *ahash, const u8 *key, key 747 drivers/crypto/ccree/cc_hash.c ctx->key_params.key = NULL; key 750 drivers/crypto/ccree/cc_hash.c ctx->key_params.key = kmemdup(key, keylen, GFP_KERNEL); key 751 drivers/crypto/ccree/cc_hash.c if (!ctx->key_params.key) key 755 drivers/crypto/ccree/cc_hash.c dma_map_single(dev, (void *)ctx->key_params.key, keylen, key 759 drivers/crypto/ccree/cc_hash.c ctx->key_params.key, keylen); key 760 drivers/crypto/ccree/cc_hash.c kzfree(ctx->key_params.key); key 912 drivers/crypto/ccree/cc_hash.c kzfree(ctx->key_params.key); key 918 drivers/crypto/ccree/cc_hash.c const u8 *key, unsigned int keylen) key 940 drivers/crypto/ccree/cc_hash.c ctx->key_params.key = kmemdup(key, keylen, GFP_KERNEL); key 941 drivers/crypto/ccree/cc_hash.c if (!ctx->key_params.key) key 945 drivers/crypto/ccree/cc_hash.c dma_map_single(dev, ctx->key_params.key, keylen, DMA_TO_DEVICE); key 948 drivers/crypto/ccree/cc_hash.c key, keylen); key 949 drivers/crypto/ccree/cc_hash.c kzfree(ctx->key_params.key); key 1001 drivers/crypto/ccree/cc_hash.c kzfree(ctx->key_params.key); key 1007 drivers/crypto/ccree/cc_hash.c const u8 *key, unsigned int keylen) key 1032 drivers/crypto/ccree/cc_hash.c memcpy(ctx->opad_tmp_keys_buff, key, keylen); key 234 drivers/crypto/chelsio/chcr_algo.c const unsigned char *key, key 259 drivers/crypto/chelsio/chcr_algo.c w_ring[i] = be32_to_cpu(*(u32 *)&key[4 * i]); key 602 drivers/crypto/chelsio/chcr_algo.c memcpy(key_ctx->key, ablkctx->rrkey, ablkctx->enckey_len); key 604 drivers/crypto/chelsio/chcr_algo.c memcpy(key_ctx->key, key 605 drivers/crypto/chelsio/chcr_algo.c ablkctx->key + (ablkctx->enckey_len >> 1), key 607 drivers/crypto/chelsio/chcr_algo.c memcpy(key_ctx->key + (ablkctx->enckey_len >> 1), key 818 drivers/crypto/chelsio/chcr_algo.c memcpy(chcr_req->key_ctx.key, ablkctx->key, key 821 drivers/crypto/chelsio/chcr_algo.c memcpy(chcr_req->key_ctx.key, ablkctx->key + key 824 drivers/crypto/chelsio/chcr_algo.c memcpy(chcr_req->key_ctx.key + key 826 drivers/crypto/chelsio/chcr_algo.c ablkctx->key, key 870 drivers/crypto/chelsio/chcr_algo.c const u8 *key, key 881 drivers/crypto/chelsio/chcr_algo.c err = crypto_sync_skcipher_setkey(ablkctx->sw_cipher, key, keylen); key 890 drivers/crypto/chelsio/chcr_algo.c const u8 *key, key 898 drivers/crypto/chelsio/chcr_algo.c err = chcr_cipher_fallback_setkey(cipher, key, keylen); key 904 drivers/crypto/chelsio/chcr_algo.c memcpy(ablkctx->key, key, keylen); key 906 drivers/crypto/chelsio/chcr_algo.c get_aes_decrypt_key(ablkctx->rrkey, ablkctx->key, keylen << 3); key 922 drivers/crypto/chelsio/chcr_algo.c const u8 *key, key 930 drivers/crypto/chelsio/chcr_algo.c err = chcr_cipher_fallback_setkey(cipher, key, keylen); key 935 drivers/crypto/chelsio/chcr_algo.c memcpy(ablkctx->key, key, keylen); key 953 drivers/crypto/chelsio/chcr_algo.c const u8 *key, key 963 drivers/crypto/chelsio/chcr_algo.c memcpy(ablkctx->nonce, key + (keylen - CTR_RFC3686_NONCE_SIZE), key 967 drivers/crypto/chelsio/chcr_algo.c err = chcr_cipher_fallback_setkey(cipher, key, keylen); key 973 drivers/crypto/chelsio/chcr_algo.c memcpy(ablkctx->key, key, keylen); key 1028 drivers/crypto/chelsio/chcr_algo.c u8 *key; key 1036 drivers/crypto/chelsio/chcr_algo.c key = ablkctx->key + keylen; key 1037 drivers/crypto/chelsio/chcr_algo.c ret = aes_expandkey(&aes, key, keylen); key 1538 drivers/crypto/chelsio/chcr_algo.c memcpy(chcr_req->key_ctx.key, req_ctx->partial_hash, key 1542 drivers/crypto/chelsio/chcr_algo.c memcpy(chcr_req->key_ctx.key + key 2099 drivers/crypto/chelsio/chcr_algo.c static int chcr_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, key 2115 drivers/crypto/chelsio/chcr_algo.c err = crypto_shash_digest(shash, key, keylen, key 2121 drivers/crypto/chelsio/chcr_algo.c memcpy(hmacctx->ipad, key, keylen); key 2151 drivers/crypto/chelsio/chcr_algo.c static int chcr_aes_xts_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 2158 drivers/crypto/chelsio/chcr_algo.c err = chcr_cipher_fallback_setkey(cipher, key, key_len); key 2162 drivers/crypto/chelsio/chcr_algo.c memcpy(ablkctx->key, key, key_len); key 2164 drivers/crypto/chelsio/chcr_algo.c get_aes_decrypt_key(ablkctx->rrkey, ablkctx->key, key_len << 2); key 2423 drivers/crypto/chelsio/chcr_algo.c memcpy(chcr_req->key_ctx.key, aeadctx->key, key 2426 drivers/crypto/chelsio/chcr_algo.c memcpy(chcr_req->key_ctx.key, actx->dec_rrkey, key 2429 drivers/crypto/chelsio/chcr_algo.c memcpy(chcr_req->key_ctx.key + roundup(aeadctx->enckey_len, 16), key 2951 drivers/crypto/chelsio/chcr_algo.c memcpy(chcr_req->key_ctx.key, aeadctx->key, aeadctx->enckey_len); key 2952 drivers/crypto/chelsio/chcr_algo.c memcpy(chcr_req->key_ctx.key + roundup(aeadctx->enckey_len, 16), key 2953 drivers/crypto/chelsio/chcr_algo.c aeadctx->key, aeadctx->enckey_len); key 3059 drivers/crypto/chelsio/chcr_algo.c memcpy(chcr_req->key_ctx.key, aeadctx->key, aeadctx->enckey_len); key 3060 drivers/crypto/chelsio/chcr_algo.c memcpy(chcr_req->key_ctx.key + roundup(aeadctx->enckey_len, 16), key 3267 drivers/crypto/chelsio/chcr_algo.c const u8 *key, key 3291 drivers/crypto/chelsio/chcr_algo.c memcpy(aeadctx->key, key, keylen); key 3298 drivers/crypto/chelsio/chcr_algo.c const u8 *key, key 3307 drivers/crypto/chelsio/chcr_algo.c error = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); key 3313 drivers/crypto/chelsio/chcr_algo.c return chcr_ccm_common_setkey(aead, key, keylen); key 3316 drivers/crypto/chelsio/chcr_algo.c static int chcr_aead_rfc4309_setkey(struct crypto_aead *aead, const u8 *key, key 3330 drivers/crypto/chelsio/chcr_algo.c error = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); key 3337 drivers/crypto/chelsio/chcr_algo.c memcpy(aeadctx->salt, key + keylen, 3); key 3338 drivers/crypto/chelsio/chcr_algo.c return chcr_ccm_common_setkey(aead, key, keylen); key 3341 drivers/crypto/chelsio/chcr_algo.c static int chcr_gcm_setkey(struct crypto_aead *aead, const u8 *key, key 3354 drivers/crypto/chelsio/chcr_algo.c ret = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); key 3364 drivers/crypto/chelsio/chcr_algo.c memcpy(aeadctx->salt, key + keylen, 4); key 3379 drivers/crypto/chelsio/chcr_algo.c memcpy(aeadctx->key, key, keylen); key 3390 drivers/crypto/chelsio/chcr_algo.c ret = aes_expandkey(&aes, key, keylen); key 3403 drivers/crypto/chelsio/chcr_algo.c static int chcr_authenc_setkey(struct crypto_aead *authenc, const u8 *key, key 3423 drivers/crypto/chelsio/chcr_algo.c err = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); key 3430 drivers/crypto/chelsio/chcr_algo.c if (crypto_authenc_extractkeys(&keys, key, keylen) != 0) { key 3463 drivers/crypto/chelsio/chcr_algo.c memcpy(aeadctx->key, keys.enckey, keys.enckeylen); key 3468 drivers/crypto/chelsio/chcr_algo.c get_aes_decrypt_key(actx->dec_rrkey, aeadctx->key, key 3539 drivers/crypto/chelsio/chcr_algo.c const u8 *key, unsigned int keylen) key 3553 drivers/crypto/chelsio/chcr_algo.c err = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); key 3560 drivers/crypto/chelsio/chcr_algo.c if (crypto_authenc_extractkeys(&keys, key, keylen) != 0) { key 3583 drivers/crypto/chelsio/chcr_algo.c memcpy(aeadctx->key, keys.enckey, keys.enckeylen); key 3587 drivers/crypto/chelsio/chcr_algo.c get_aes_decrypt_key(actx->dec_rrkey, aeadctx->key, key 360 drivers/crypto/chelsio/chcr_algo.h static inline void copy_hash_init_values(char *key, int digestsize) key 363 drivers/crypto/chelsio/chcr_algo.h __be32 *dkey = (__be32 *)key; key 364 drivers/crypto/chelsio/chcr_algo.h u64 *ldkey = (u64 *)key; key 70 drivers/crypto/chelsio/chcr_core.h unsigned char key[0]; key 192 drivers/crypto/chelsio/chcr_core.h char key[2 * AES_MAX_KEY_SIZE]; key 178 drivers/crypto/chelsio/chcr_crypto.h u8 key[CHCR_AES_MAX_KEY_LEN]; key 232 drivers/crypto/chelsio/chcr_crypto.h u8 key[CHCR_AES_MAX_KEY_LEN]; key 136 drivers/crypto/chelsio/chcr_ipsec.c unsigned char *key = x->aead->alg_key; key 144 drivers/crypto/chelsio/chcr_ipsec.c memcpy(sa_entry->salt, key + keylen, 4); key 159 drivers/crypto/chelsio/chcr_ipsec.c memcpy(sa_entry->key, key, keylen); key 173 drivers/crypto/chelsio/chcr_ipsec.c ret = aes_expandkey(&aes, key, keylen); key 182 drivers/crypto/chelsio/chcr_ipsec.c memcpy(sa_entry->key + (DIV_ROUND_UP(sa_entry->enckey_len, 16) * key 506 drivers/crypto/chelsio/chcr_ipsec.c memcpy(key_ctx->key, sa_entry->key, key_len); key 509 drivers/crypto/chelsio/chcr_ipsec.c memcpy(pos, sa_entry->key, left); key 510 drivers/crypto/chelsio/chcr_ipsec.c memcpy(q->q.desc, sa_entry->key + left, key 507 drivers/crypto/chelsio/chtls/chtls_cm.c int key = listen_hashfn(sk); key 512 drivers/crypto/chelsio/chtls/chtls_cm.c p->next = cdev->listen_hash_tab[key]; key 513 drivers/crypto/chelsio/chtls/chtls_cm.c cdev->listen_hash_tab[key] = p; key 524 drivers/crypto/chelsio/chtls/chtls_cm.c int key; key 526 drivers/crypto/chelsio/chtls/chtls_cm.c key = listen_hashfn(sk); key 529 drivers/crypto/chelsio/chtls/chtls_cm.c for (p = cdev->listen_hash_tab[key]; p; p = p->next) key 543 drivers/crypto/chelsio/chtls/chtls_cm.c int key; key 545 drivers/crypto/chelsio/chtls/chtls_cm.c key = listen_hashfn(sk); key 546 drivers/crypto/chelsio/chtls/chtls_cm.c prev = &cdev->listen_hash_tab[key]; key 122 drivers/crypto/chelsio/chtls/chtls_hw.c num_key_ctx = (lldi->vr->key.size / TLS_KEY_CONTEXT_SZ); key 132 drivers/crypto/chelsio/chtls/chtls_hw.c cdev->kmap.start = lldi->vr->key.start; key 213 drivers/crypto/chelsio/chtls/chtls_hw.c unsigned char key[AES_KEYSIZE_128]; key 232 drivers/crypto/chelsio/chtls/chtls_hw.c memcpy(key, gcm_ctx->key, keylen); key 237 drivers/crypto/chelsio/chtls/chtls_hw.c ret = aes_expandkey(&aes, key, keylen); key 262 drivers/crypto/chelsio/chtls/chtls_hw.c memcpy(kctx->key, gcm_ctx->key, keylen); key 263 drivers/crypto/chelsio/chtls/chtls_hw.c memcpy(kctx->key + keylen, ghash_h, AEAD_H_SIZE); key 265 drivers/crypto/chelsio/chtls/chtls_hw.c memset(gcm_ctx->key, 0, keylen); key 273 drivers/crypto/chelsio/chtls/chtls_main.c if (lldi->vr->key.size) key 96 drivers/crypto/geode-aes.c _writefield(AES_WRITEKEY0_REG, tctx->key); key 109 drivers/crypto/geode-aes.c static int geode_setkey_cip(struct crypto_tfm *tfm, const u8 *key, key 118 drivers/crypto/geode-aes.c memcpy(tctx->key, key, len); key 135 drivers/crypto/geode-aes.c ret = crypto_cipher_setkey(tctx->fallback.cip, key, len); key 144 drivers/crypto/geode-aes.c static int geode_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, key 153 drivers/crypto/geode-aes.c memcpy(tctx->key, key, len); key 171 drivers/crypto/geode-aes.c ret = crypto_skcipher_setkey(tctx->fallback.skcipher, key, len); key 50 drivers/crypto/geode-aes.h u8 key[AES_KEYSIZE_128]; key 614 drivers/crypto/hifn_795x.c u8 key[HIFN_MAX_CRYPT_KEY_LENGTH]; key 1072 drivers/crypto/hifn_795x.c u8 *key, int keylen, u8 *iv, int ivsize, u16 mode) key 1098 drivers/crypto/hifn_795x.c memcpy(buf_pos, key, keylen); key 1200 drivers/crypto/hifn_795x.c nbytes, nbytes, ctx->key, ctx->keysize, key 1584 drivers/crypto/hifn_795x.c ctx->key, ctx->keysize, key 1939 drivers/crypto/hifn_795x.c static int hifn_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 1946 drivers/crypto/hifn_795x.c err = verify_ablkcipher_des_key(cipher, key); key 1952 drivers/crypto/hifn_795x.c memcpy(ctx->key, key, len); key 1958 drivers/crypto/hifn_795x.c static int hifn_des3_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 1965 drivers/crypto/hifn_795x.c err = verify_ablkcipher_des3_key(cipher, key); key 1971 drivers/crypto/hifn_795x.c memcpy(ctx->key, key, len); key 143 drivers/crypto/hisilicon/sec/sec_algs.c const u8 *key, key 151 drivers/crypto/hisilicon/sec/sec_algs.c memcpy(ctx->key, key, keylen); key 227 drivers/crypto/hisilicon/sec/sec_algs.c const u8 *key, unsigned int keylen, key 234 drivers/crypto/hisilicon/sec/sec_algs.c if (ctx->key) { key 236 drivers/crypto/hisilicon/sec/sec_algs.c memset(ctx->key, 0, SEC_MAX_CIPHER_KEY); key 239 drivers/crypto/hisilicon/sec/sec_algs.c ctx->key = dma_alloc_coherent(dev, SEC_MAX_CIPHER_KEY, key 241 drivers/crypto/hisilicon/sec/sec_algs.c if (!ctx->key) { key 247 drivers/crypto/hisilicon/sec/sec_algs.c sec_alg_skcipher_init_context(tfm, key, keylen, alg); key 253 drivers/crypto/hisilicon/sec/sec_algs.c const u8 *key, unsigned int keylen) key 271 drivers/crypto/hisilicon/sec/sec_algs.c return sec_alg_skcipher_setkey(tfm, key, keylen, alg); key 275 drivers/crypto/hisilicon/sec/sec_algs.c const u8 *key, unsigned int keylen) key 293 drivers/crypto/hisilicon/sec/sec_algs.c return sec_alg_skcipher_setkey(tfm, key, keylen, alg); key 297 drivers/crypto/hisilicon/sec/sec_algs.c const u8 *key, unsigned int keylen) key 315 drivers/crypto/hisilicon/sec/sec_algs.c return sec_alg_skcipher_setkey(tfm, key, keylen, alg); key 319 drivers/crypto/hisilicon/sec/sec_algs.c const u8 *key, unsigned int keylen) key 324 drivers/crypto/hisilicon/sec/sec_algs.c ret = xts_verify_key(tfm, key, keylen); key 339 drivers/crypto/hisilicon/sec/sec_algs.c return sec_alg_skcipher_setkey(tfm, key, keylen, alg); key 343 drivers/crypto/hisilicon/sec/sec_algs.c const u8 *key, unsigned int keylen) key 345 drivers/crypto/hisilicon/sec/sec_algs.c return verify_skcipher_des_key(tfm, key) ?: key 346 drivers/crypto/hisilicon/sec/sec_algs.c sec_alg_skcipher_setkey(tfm, key, keylen, SEC_C_DES_ECB_64); key 350 drivers/crypto/hisilicon/sec/sec_algs.c const u8 *key, unsigned int keylen) key 352 drivers/crypto/hisilicon/sec/sec_algs.c return verify_skcipher_des_key(tfm, key) ?: key 353 drivers/crypto/hisilicon/sec/sec_algs.c sec_alg_skcipher_setkey(tfm, key, keylen, SEC_C_DES_CBC_64); key 357 drivers/crypto/hisilicon/sec/sec_algs.c const u8 *key, unsigned int keylen) key 359 drivers/crypto/hisilicon/sec/sec_algs.c return verify_skcipher_des3_key(tfm, key) ?: key 360 drivers/crypto/hisilicon/sec/sec_algs.c sec_alg_skcipher_setkey(tfm, key, keylen, key 365 drivers/crypto/hisilicon/sec/sec_algs.c const u8 *key, unsigned int keylen) key 367 drivers/crypto/hisilicon/sec/sec_algs.c return verify_skcipher_des3_key(tfm, key) ?: key 368 drivers/crypto/hisilicon/sec/sec_algs.c sec_alg_skcipher_setkey(tfm, key, keylen, key 893 drivers/crypto/hisilicon/sec/sec_algs.c if (ctx->key) { key 894 drivers/crypto/hisilicon/sec/sec_algs.c memzero_explicit(ctx->key, SEC_MAX_CIPHER_KEY); key 895 drivers/crypto/hisilicon/sec/sec_algs.c dma_free_coherent(dev, SEC_MAX_CIPHER_KEY, ctx->key, key 244 drivers/crypto/hisilicon/sec/sec_drv.h u8 *key; key 817 drivers/crypto/inside-secure/safexcel.h int safexcel_hmac_setkey(const char *alg, const u8 *key, unsigned int keylen, key 47 drivers/crypto/inside-secure/safexcel_cipher.c __le32 key[16]; key 271 drivers/crypto/inside-secure/safexcel_cipher.c const u8 *key, unsigned int len) key 279 drivers/crypto/inside-secure/safexcel_cipher.c ret = aes_expandkey(&aes, key, len); key 287 drivers/crypto/inside-secure/safexcel_cipher.c if (ctx->key[i] != cpu_to_le32(aes.key_enc[i])) { key 295 drivers/crypto/inside-secure/safexcel_cipher.c ctx->key[i] = cpu_to_le32(aes.key_enc[i]); key 303 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_setkey(struct crypto_aead *ctfm, const u8 *key, key 314 drivers/crypto/inside-secure/safexcel_cipher.c if (crypto_authenc_extractkeys(&keys, key, len) != 0) key 347 drivers/crypto/inside-secure/safexcel_cipher.c memcmp(ctx->key, keys.enckey, keys.enckeylen)) key 391 drivers/crypto/inside-secure/safexcel_cipher.c memcpy(ctx->key, keys.enckey, keys.enckeylen); key 638 drivers/crypto/inside-secure/safexcel_cipher.c memcpy(ctx->base.ctxr->data, ctx->key, ctx->key_len); key 1083 drivers/crypto/inside-secure/safexcel_cipher.c memzero_explicit(ctx->key, sizeof(ctx->key)); key 1277 drivers/crypto/inside-secure/safexcel_cipher.c const u8 *key, unsigned int len) key 1287 drivers/crypto/inside-secure/safexcel_cipher.c ctx->nonce = *(u32 *)(key + len - CTR_RFC3686_NONCE_SIZE); key 1290 drivers/crypto/inside-secure/safexcel_cipher.c ret = aes_expandkey(&aes, key, keylen); key 1298 drivers/crypto/inside-secure/safexcel_cipher.c if (ctx->key[i] != cpu_to_le32(aes.key_enc[i])) { key 1306 drivers/crypto/inside-secure/safexcel_cipher.c ctx->key[i] = cpu_to_le32(aes.key_enc[i]); key 1351 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_des_setkey(struct crypto_skcipher *ctfm, const u8 *key, key 1357 drivers/crypto/inside-secure/safexcel_cipher.c ret = verify_skcipher_des_key(ctfm, key); key 1363 drivers/crypto/inside-secure/safexcel_cipher.c if (memcmp(ctx->key, key, len)) key 1366 drivers/crypto/inside-secure/safexcel_cipher.c memcpy(ctx->key, key, len); key 1444 drivers/crypto/inside-secure/safexcel_cipher.c const u8 *key, unsigned int len) key 1449 drivers/crypto/inside-secure/safexcel_cipher.c err = verify_skcipher_des3_key(ctfm, key); key 1455 drivers/crypto/inside-secure/safexcel_cipher.c if (memcmp(ctx->key, key, len)) key 1459 drivers/crypto/inside-secure/safexcel_cipher.c memcpy(ctx->key, key, len); key 1951 drivers/crypto/inside-secure/safexcel_cipher.c const u8 *key, unsigned int len) key 1961 drivers/crypto/inside-secure/safexcel_cipher.c ret = xts_verify_key(ctfm, key, len); key 1967 drivers/crypto/inside-secure/safexcel_cipher.c ret = aes_expandkey(&aes, key, keylen); key 1975 drivers/crypto/inside-secure/safexcel_cipher.c if (ctx->key[i] != cpu_to_le32(aes.key_enc[i])) { key 1983 drivers/crypto/inside-secure/safexcel_cipher.c ctx->key[i] = cpu_to_le32(aes.key_enc[i]); key 1986 drivers/crypto/inside-secure/safexcel_cipher.c ret = aes_expandkey(&aes, (u8 *)(key + keylen), keylen); key 1994 drivers/crypto/inside-secure/safexcel_cipher.c if (ctx->key[i + keylen / sizeof(u32)] != key 2003 drivers/crypto/inside-secure/safexcel_cipher.c ctx->key[i + keylen / sizeof(u32)] = key 2066 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_gcm_setkey(struct crypto_aead *ctfm, const u8 *key, key 2076 drivers/crypto/inside-secure/safexcel_cipher.c ret = aes_expandkey(&aes, key, len); key 2085 drivers/crypto/inside-secure/safexcel_cipher.c if (ctx->key[i] != cpu_to_le32(aes.key_enc[i])) { key 2093 drivers/crypto/inside-secure/safexcel_cipher.c ctx->key[i] = cpu_to_le32(aes.key_enc[i]); key 2101 drivers/crypto/inside-secure/safexcel_cipher.c ret = crypto_cipher_setkey(ctx->hkaes, key, len); key 2184 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_ccm_setkey(struct crypto_aead *ctfm, const u8 *key, key 2193 drivers/crypto/inside-secure/safexcel_cipher.c ret = aes_expandkey(&aes, key, len); key 2202 drivers/crypto/inside-secure/safexcel_cipher.c if (ctx->key[i] != cpu_to_le32(aes.key_enc[i])) { key 2210 drivers/crypto/inside-secure/safexcel_cipher.c ctx->key[i] = cpu_to_le32(aes.key_enc[i]); key 925 drivers/crypto/inside-secure/safexcel_hash.c unsigned int blocksize, const u8 *key, key 934 drivers/crypto/inside-secure/safexcel_hash.c memcpy(ipad, key, keylen); key 936 drivers/crypto/inside-secure/safexcel_hash.c keydup = kmemdup(key, keylen, GFP_KERNEL); key 1006 drivers/crypto/inside-secure/safexcel_hash.c int safexcel_hmac_setkey(const char *alg, const u8 *key, unsigned int keylen, key 1036 drivers/crypto/inside-secure/safexcel_hash.c ret = safexcel_hmac_init_pad(areq, blocksize, key, keylen, ipad, opad); key 1056 drivers/crypto/inside-secure/safexcel_hash.c static int safexcel_hmac_alg_setkey(struct crypto_ahash *tfm, const u8 *key, key 1065 drivers/crypto/inside-secure/safexcel_hash.c ret = safexcel_hmac_setkey(alg, key, keylen, &istate, &ostate); key 1080 drivers/crypto/inside-secure/safexcel_hash.c static int safexcel_hmac_sha1_setkey(struct crypto_ahash *tfm, const u8 *key, key 1083 drivers/crypto/inside-secure/safexcel_hash.c return safexcel_hmac_alg_setkey(tfm, key, keylen, "safexcel-sha1", key 1228 drivers/crypto/inside-secure/safexcel_hash.c static int safexcel_hmac_sha224_setkey(struct crypto_ahash *tfm, const u8 *key, key 1231 drivers/crypto/inside-secure/safexcel_hash.c return safexcel_hmac_alg_setkey(tfm, key, keylen, "safexcel-sha224", key 1298 drivers/crypto/inside-secure/safexcel_hash.c static int safexcel_hmac_sha256_setkey(struct crypto_ahash *tfm, const u8 *key, key 1301 drivers/crypto/inside-secure/safexcel_hash.c return safexcel_hmac_alg_setkey(tfm, key, keylen, "safexcel-sha256", key 1478 drivers/crypto/inside-secure/safexcel_hash.c static int safexcel_hmac_sha512_setkey(struct crypto_ahash *tfm, const u8 *key, key 1481 drivers/crypto/inside-secure/safexcel_hash.c return safexcel_hmac_alg_setkey(tfm, key, keylen, "safexcel-sha512", key 1548 drivers/crypto/inside-secure/safexcel_hash.c static int safexcel_hmac_sha384_setkey(struct crypto_ahash *tfm, const u8 *key, key 1551 drivers/crypto/inside-secure/safexcel_hash.c return safexcel_hmac_alg_setkey(tfm, key, keylen, "safexcel-sha384", key 1696 drivers/crypto/inside-secure/safexcel_hash.c static int safexcel_hmac_md5_setkey(struct crypto_ahash *tfm, const u8 *key, key 1699 drivers/crypto/inside-secure/safexcel_hash.c return safexcel_hmac_alg_setkey(tfm, key, keylen, "safexcel-md5", key 599 drivers/crypto/ixp4xx_crypto.c int init_len, u32 ctx_addr, const u8 *key, int key_len) key 624 drivers/crypto/ixp4xx_crypto.c memcpy(pad, key, key_len); key 655 drivers/crypto/ixp4xx_crypto.c const u8 *key, int key_len, unsigned digest_len) key 694 drivers/crypto/ixp4xx_crypto.c init_len, npe_ctx_addr, key, key_len); key 698 drivers/crypto/ixp4xx_crypto.c init_len, npe_ctx_addr, key, key_len); key 730 drivers/crypto/ixp4xx_crypto.c const u8 *key, int key_len) key 759 drivers/crypto/ixp4xx_crypto.c crypto_des_verify_key(tfm, key); key 766 drivers/crypto/ixp4xx_crypto.c memcpy(cinfo, key, key_len); key 812 drivers/crypto/ixp4xx_crypto.c static int ablk_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 828 drivers/crypto/ixp4xx_crypto.c ret = setup_cipher(&tfm->base, 0, key, key_len); key 831 drivers/crypto/ixp4xx_crypto.c ret = setup_cipher(&tfm->base, 1, key, key_len); key 848 drivers/crypto/ixp4xx_crypto.c static int ablk_des3_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 851 drivers/crypto/ixp4xx_crypto.c return verify_ablkcipher_des3_key(tfm, key) ?: key 852 drivers/crypto/ixp4xx_crypto.c ablk_setkey(tfm, key, key_len); key 855 drivers/crypto/ixp4xx_crypto.c static int ablk_rfc3686_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 864 drivers/crypto/ixp4xx_crypto.c memcpy(ctx->nonce, key + (key_len - CTR_RFC3686_NONCE_SIZE), key 868 drivers/crypto/ixp4xx_crypto.c return ablk_setkey(tfm, key, key_len); key 1143 drivers/crypto/ixp4xx_crypto.c static int aead_setkey(struct crypto_aead *tfm, const u8 *key, key 1149 drivers/crypto/ixp4xx_crypto.c if (crypto_authenc_extractkeys(&keys, key, keylen) != 0) key 1171 drivers/crypto/ixp4xx_crypto.c static int des3_aead_setkey(struct crypto_aead *tfm, const u8 *key, key 1178 drivers/crypto/ixp4xx_crypto.c err = crypto_authenc_extractkeys(&keys, key, keylen); key 242 drivers/crypto/marvell/cesa.h u32 key[8]; key 19 drivers/crypto/marvell/cipher.c u8 key[DES_KEY_SIZE]; key 24 drivers/crypto/marvell/cipher.c u8 key[DES3_EDE_KEY_SIZE]; key 247 drivers/crypto/marvell/cipher.c static int mv_cesa_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, key 257 drivers/crypto/marvell/cipher.c ret = aes_expandkey(&ctx->aes, key, len); key 272 drivers/crypto/marvell/cipher.c static int mv_cesa_des_setkey(struct crypto_skcipher *cipher, const u8 *key, key 278 drivers/crypto/marvell/cipher.c err = verify_skcipher_des_key(cipher, key); key 282 drivers/crypto/marvell/cipher.c memcpy(ctx->key, key, DES_KEY_SIZE); key 288 drivers/crypto/marvell/cipher.c const u8 *key, unsigned int len) key 293 drivers/crypto/marvell/cipher.c err = verify_skcipher_des3_key(cipher, key); key 297 drivers/crypto/marvell/cipher.c memcpy(ctx->key, key, DES3_EDE_KEY_SIZE); key 473 drivers/crypto/marvell/cipher.c memcpy(tmpl->ctx.blkcipher.key, ctx->key, DES_KEY_SIZE); key 578 drivers/crypto/marvell/cipher.c memcpy(tmpl->ctx.blkcipher.key, ctx->key, DES3_EDE_KEY_SIZE); key 686 drivers/crypto/marvell/cipher.c u32 *key; key 692 drivers/crypto/marvell/cipher.c key = ctx->aes.key_dec; key 694 drivers/crypto/marvell/cipher.c key = ctx->aes.key_enc; key 697 drivers/crypto/marvell/cipher.c tmpl->ctx.blkcipher.key[i] = cpu_to_le32(key[i]); key 1120 drivers/crypto/marvell/hash.c const u8 *key, unsigned int keylen, key 1130 drivers/crypto/marvell/hash.c memcpy(ipad, key, keylen); key 1132 drivers/crypto/marvell/hash.c u8 *keydup = kmemdup(key, keylen, GFP_KERNEL); key 1171 drivers/crypto/marvell/hash.c const u8 *key, unsigned int keylen, key 1203 drivers/crypto/marvell/hash.c ret = mv_cesa_ahmac_pad_init(req, key, keylen, ipad, opad, blocksize); key 1247 drivers/crypto/marvell/hash.c static int mv_cesa_ahmac_md5_setkey(struct crypto_ahash *tfm, const u8 *key, key 1254 drivers/crypto/marvell/hash.c ret = mv_cesa_ahmac_setkey("mv-md5", key, keylen, &istate, &ostate); key 1317 drivers/crypto/marvell/hash.c static int mv_cesa_ahmac_sha1_setkey(struct crypto_ahash *tfm, const u8 *key, key 1324 drivers/crypto/marvell/hash.c ret = mv_cesa_ahmac_setkey("mv-sha1", key, keylen, &istate, &ostate); key 1374 drivers/crypto/marvell/hash.c static int mv_cesa_ahmac_sha256_setkey(struct crypto_ahash *tfm, const u8 *key, key 1381 drivers/crypto/marvell/hash.c ret = mv_cesa_ahmac_setkey("mv-sha256", key, keylen, &istate, &ostate); key 108 drivers/crypto/mediatek/mtk-aes.c __le32 key[12]; key 539 drivers/crypto/mediatek/mtk-aes.c memcpy(ctx->info.state, ctx->key, sizeof(ctx->key)); key 638 drivers/crypto/mediatek/mtk-aes.c const u8 *key, u32 keylen) key 659 drivers/crypto/mediatek/mtk-aes.c mtk_aes_write_state_le(ctx->key, (const u32 *)key, keylen); key 1012 drivers/crypto/mediatek/mtk-aes.c static int mtk_aes_gcm_setkey(struct crypto_aead *aead, const u8 *key, key 1051 drivers/crypto/mediatek/mtk-aes.c err = crypto_skcipher_setkey(ctr, key, keylen); key 1076 drivers/crypto/mediatek/mtk-aes.c mtk_aes_write_state_le(ctx->key, (const u32 *)key, keylen); key 1077 drivers/crypto/mediatek/mtk-aes.c mtk_aes_write_state_be(ctx->key + ctx->keylen, data->hash, key 799 drivers/crypto/mediatek/mtk-sha.c static int mtk_sha_setkey(struct crypto_ahash *tfm, const u8 *key, key 813 drivers/crypto/mediatek/mtk-sha.c err = crypto_shash_digest(shash, key, keylen, bctx->ipad); key 818 drivers/crypto/mediatek/mtk-sha.c memcpy(bctx->ipad, key, keylen); key 102 drivers/crypto/mxs-dcp.c uint8_t key[AES_KEYSIZE_128]; key 294 drivers/crypto/mxs-dcp.c uint8_t *key = sdcp->coh->aes_key; key 305 drivers/crypto/mxs-dcp.c memcpy(key, actx->key, actx->key_len); key 309 drivers/crypto/mxs-dcp.c memcpy(key + AES_KEYSIZE_128, req->info, AES_KEYSIZE_128); key 313 drivers/crypto/mxs-dcp.c memset(key + AES_KEYSIZE_128, 0, AES_KEYSIZE_128); key 492 drivers/crypto/mxs-dcp.c static int mxs_dcp_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 505 drivers/crypto/mxs-dcp.c memcpy(actx->key, key, len); key 518 drivers/crypto/mxs-dcp.c ret = crypto_sync_skcipher_setkey(actx->fallback, key, len); key 458 drivers/crypto/n2_core.c static int n2_hmac_async_setkey(struct crypto_ahash *tfm, const u8 *key, key 468 drivers/crypto/n2_core.c err = crypto_ahash_setkey(fallback_tfm, key, keylen); key 478 drivers/crypto/n2_core.c err = crypto_shash_digest(shash, key, keylen, key 484 drivers/crypto/n2_core.c memcpy(ctx->hash_key, key, keylen); key 668 drivers/crypto/n2_core.c } key; key 728 drivers/crypto/n2_core.c static int n2_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 753 drivers/crypto/n2_core.c memcpy(ctx->key.aes, key, keylen); key 757 drivers/crypto/n2_core.c static int n2_des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 765 drivers/crypto/n2_core.c err = verify_ablkcipher_des_key(cipher, key); key 772 drivers/crypto/n2_core.c memcpy(ctx->key.des, key, keylen); key 776 drivers/crypto/n2_core.c static int n2_3des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 784 drivers/crypto/n2_core.c err = verify_ablkcipher_des3_key(cipher, key); key 791 drivers/crypto/n2_core.c memcpy(ctx->key.des3, key, keylen); key 795 drivers/crypto/n2_core.c static int n2_arc4_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 801 drivers/crypto/n2_core.c u8 *s = ctx->key.arc4; key 815 drivers/crypto/n2_core.c j = (j + key[k] + a) & 0xff; key 859 drivers/crypto/n2_core.c ent->enc_key_addr = __pa(&ctx->key); key 48 drivers/crypto/nx/nx-aes-cbc.c memcpy(csbcpb->cpb.aes_cbc.key, in_key, key_len); key 44 drivers/crypto/nx/nx-aes-ccm.c memcpy(csbcpb->cpb.aes_ccm.key, in_key, key_len); key 47 drivers/crypto/nx/nx-aes-ccm.c memcpy(csbcpb_aead->cpb.aes_cca.key, in_key, key_len); key 49 drivers/crypto/nx/nx-aes-ctr.c memcpy(csbcpb->cpb.aes_ctr.key, in_key, key_len); key 48 drivers/crypto/nx/nx-aes-ecb.c memcpy(csbcpb->cpb.aes_ecb.key, in_key, key_len); key 54 drivers/crypto/nx/nx-aes-gcm.c memcpy(csbcpb->cpb.aes_gcm.key, in_key, key_len); key 57 drivers/crypto/nx/nx-aes-gcm.c memcpy(csbcpb_aead->cpb.aes_gca.key, in_key, key_len); key 261 drivers/crypto/nx/nx-aes-gcm.c memcpy(csbcpb->cpb.aes_ecb.key, csbcpb->cpb.aes_gcm.key, key 262 drivers/crypto/nx/nx-aes-gcm.c sizeof(csbcpb->cpb.aes_ecb.key)); key 304 drivers/crypto/nx/nx-aes-gcm.c memset(csbcpb->cpb.aes_ecb.key, 0, sizeof(csbcpb->cpb.aes_ecb.key)); key 43 drivers/crypto/nx/nx-aes-xcbc.c memcpy(csbcpb->cpb.aes_xcbc.key, in_key, key_len); key 65 drivers/crypto/nx/nx-aes-xcbc.c u8 key[32]; key 71 drivers/crypto/nx/nx-aes-xcbc.c memcpy(key, csbcpb->cpb.aes_xcbc.key, AES_BLOCK_SIZE); key 72 drivers/crypto/nx/nx-aes-xcbc.c memcpy(csbcpb->cpb.aes_ecb.key, key, AES_BLOCK_SIZE); key 107 drivers/crypto/nx/nx-aes-xcbc.c memcpy(csbcpb->cpb.aes_ecb.key, keys[0], AES_BLOCK_SIZE); key 132 drivers/crypto/nx/nx-aes-xcbc.c memcpy(csbcpb->cpb.aes_xcbc.key, key, AES_BLOCK_SIZE); key 110 drivers/crypto/nx/nx.h u8 key[16]; key 7 drivers/crypto/nx/nx_csbcpb.h u8 key[32]; key 13 drivers/crypto/nx/nx_csbcpb.h u8 key[32]; key 21 drivers/crypto/nx/nx_csbcpb.h u8 key[32]; key 33 drivers/crypto/nx/nx_csbcpb.h u8 key[32]; key 44 drivers/crypto/nx/nx_csbcpb.h u8 key[32]; key 53 drivers/crypto/nx/nx_csbcpb.h u8 key[16]; key 63 drivers/crypto/nx/nx_csbcpb.h u8 key[16]; key 74 drivers/crypto/nx/nx_csbcpb.h u8 key[16]; key 195 drivers/crypto/omap-aes-gcm.c ret = crypto_skcipher_setkey(ctx->ctr, (u8 *)ctx->key, ctx->keylen); key 372 drivers/crypto/omap-aes-gcm.c int omap_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key, key 381 drivers/crypto/omap-aes-gcm.c memcpy(ctx->key, key, keylen); key 387 drivers/crypto/omap-aes-gcm.c int omap_aes_4106gcm_setkey(struct crypto_aead *tfm, const u8 *key, key 400 drivers/crypto/omap-aes-gcm.c memcpy(ctx->key, key, keylen); key 401 drivers/crypto/omap-aes-gcm.c memcpy(ctx->nonce, key + keylen, 4); key 142 drivers/crypto/omap-aes.c __le32_to_cpu(dd->ctx->key[i])); key 548 drivers/crypto/omap-aes.c static int omap_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 560 drivers/crypto/omap-aes.c memcpy(ctx->key, key, keylen); key 567 drivers/crypto/omap-aes.c ret = crypto_sync_skcipher_setkey(ctx->fallback, key, keylen); key 98 drivers/crypto/omap-aes.h u32 key[AES_KEYSIZE_256 / sizeof(u32)]; key 199 drivers/crypto/omap-aes.h int omap_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key, key 201 drivers/crypto/omap-aes.h int omap_aes_4106gcm_setkey(struct crypto_aead *tfm, const u8 *key, key 89 drivers/crypto/omap-des.c u32 key[(3 * DES_KEY_SIZE) / sizeof(u32)]; key 261 drivers/crypto/omap-des.c __le32_to_cpu(dd->ctx->key[i])); key 649 drivers/crypto/omap-des.c static int omap_des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 657 drivers/crypto/omap-des.c err = verify_ablkcipher_des_key(cipher, key); key 661 drivers/crypto/omap-des.c memcpy(ctx->key, key, keylen); key 667 drivers/crypto/omap-des.c static int omap_des3_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 675 drivers/crypto/omap-des.c err = verify_ablkcipher_des3_key(cipher, key); key 679 drivers/crypto/omap-des.c memcpy(ctx->key, key, keylen); key 1298 drivers/crypto/omap-sham.c static int omap_sham_setkey(struct crypto_ahash *tfm, const u8 *key, key 1320 drivers/crypto/omap-sham.c err = crypto_shash_setkey(tctx->fallback, key, keylen); key 1327 drivers/crypto/omap-sham.c key, keylen, bctx->ipad); key 1332 drivers/crypto/omap-sham.c memcpy(bctx->ipad, key, keylen); key 109 drivers/crypto/padlock-aes.c const __le32 *key = (const __le32 *)in_key; key 126 drivers/crypto/padlock-aes.c ctx->E[0] = le32_to_cpu(key[0]); key 127 drivers/crypto/padlock-aes.c ctx->E[1] = le32_to_cpu(key[1]); key 128 drivers/crypto/padlock-aes.c ctx->E[2] = le32_to_cpu(key[2]); key 129 drivers/crypto/padlock-aes.c ctx->E[3] = le32_to_cpu(key[3]); key 191 drivers/crypto/padlock-aes.c static inline void rep_xcrypt_ecb(const u8 *input, u8 *output, void *key, key 196 drivers/crypto/padlock-aes.c : "d"(control_word), "b"(key), "c"(count)); key 199 drivers/crypto/padlock-aes.c static inline u8 *rep_xcrypt_cbc(const u8 *input, u8 *output, void *key, key 204 drivers/crypto/padlock-aes.c : "d" (control_word), "b" (key), "c" (count)); key 208 drivers/crypto/padlock-aes.c static void ecb_crypt_copy(const u8 *in, u8 *out, u32 *key, key 219 drivers/crypto/padlock-aes.c rep_xcrypt_ecb(tmp, out, key, cword, count); key 222 drivers/crypto/padlock-aes.c static u8 *cbc_crypt_copy(const u8 *in, u8 *out, u32 *key, key 233 drivers/crypto/padlock-aes.c return rep_xcrypt_cbc(tmp, out, key, iv, cword, count); key 236 drivers/crypto/padlock-aes.c static inline void ecb_crypt(const u8 *in, u8 *out, u32 *key, key 243 drivers/crypto/padlock-aes.c ecb_crypt_copy(in, out, key, cword, count); key 247 drivers/crypto/padlock-aes.c rep_xcrypt_ecb(in, out, key, cword, count); key 250 drivers/crypto/padlock-aes.c static inline u8 *cbc_crypt(const u8 *in, u8 *out, u32 *key, key 255 drivers/crypto/padlock-aes.c return cbc_crypt_copy(in, out, key, iv, cword, count); key 257 drivers/crypto/padlock-aes.c return rep_xcrypt_cbc(in, out, key, iv, cword, count); key 260 drivers/crypto/padlock-aes.c static inline void padlock_xcrypt_ecb(const u8 *input, u8 *output, void *key, key 266 drivers/crypto/padlock-aes.c ecb_crypt(input, output, key, control_word, count); key 275 drivers/crypto/padlock-aes.c : "d"(control_word), "b"(key), "c"(initial)); key 279 drivers/crypto/padlock-aes.c : "d"(control_word), "b"(key), "c"(count)); key 282 drivers/crypto/padlock-aes.c static inline u8 *padlock_xcrypt_cbc(const u8 *input, u8 *output, void *key, key 288 drivers/crypto/padlock-aes.c return cbc_crypt(input, output, key, iv, control_word, count); key 295 drivers/crypto/padlock-aes.c : "d" (control_word), "b" (key), "c" (initial)); key 299 drivers/crypto/padlock-aes.c : "d" (control_word), "b" (key), "c" (count)); key 155 drivers/crypto/picoxcell_crypto.c u8 key[AES_MAX_KEY_SIZE]; key 220 drivers/crypto/picoxcell_crypto.c void __iomem *page_addr, const u8 *key, key 226 drivers/crypto/picoxcell_crypto.c memcpy_toio32(key_ptr, key, key_len / 4); key 457 drivers/crypto/picoxcell_crypto.c static int spacc_aead_setkey(struct crypto_aead *tfm, const u8 *key, key 467 drivers/crypto/picoxcell_crypto.c err = crypto_aead_setkey(ctx->sw_cipher, key, keylen); key 474 drivers/crypto/picoxcell_crypto.c if (crypto_authenc_extractkeys(&keys, key, keylen) != 0) key 736 drivers/crypto/picoxcell_crypto.c static int spacc_des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 742 drivers/crypto/picoxcell_crypto.c err = verify_ablkcipher_des_key(cipher, key); key 746 drivers/crypto/picoxcell_crypto.c memcpy(ctx->key, key, len); key 756 drivers/crypto/picoxcell_crypto.c static int spacc_des3_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 762 drivers/crypto/picoxcell_crypto.c err = verify_ablkcipher_des3_key(cipher, key); key 766 drivers/crypto/picoxcell_crypto.c memcpy(ctx->key, key, len); key 776 drivers/crypto/picoxcell_crypto.c static int spacc_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, key 807 drivers/crypto/picoxcell_crypto.c err = crypto_sync_skcipher_setkey(ctx->sw_cipher, key, len); key 818 drivers/crypto/picoxcell_crypto.c memcpy(ctx->key, key, len); key 826 drivers/crypto/picoxcell_crypto.c const u8 *key, unsigned int len) key 838 drivers/crypto/picoxcell_crypto.c memcpy(ctx->key, key, len); key 886 drivers/crypto/picoxcell_crypto.c req->ctx_id = spacc_load_ctx(&ctx->generic, ctx->key, key 75 drivers/crypto/qat/qat_common/adf_cfg.c seq_printf(sfile, "%s = %s\n", ptr->key, ptr->val); key 218 drivers/crypto/qat/qat_common/adf_cfg.c const char *key) key 225 drivers/crypto/qat/qat_common/adf_cfg.c if (!strcmp(ptr->key, key)) key 279 drivers/crypto/qat/qat_common/adf_cfg.c const char *key, const void *val, key 294 drivers/crypto/qat/qat_common/adf_cfg.c strlcpy(key_val->key, key, sizeof(key_val->key)); key 58 drivers/crypto/qat/qat_common/adf_cfg.h char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES]; key 82 drivers/crypto/qat/qat_common/adf_cfg.h const char *key, const void *val, key 54 drivers/crypto/qat/qat_common/adf_cfg_user.h char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES]; key 160 drivers/crypto/qat/qat_common/adf_ctl_drv.c key_val->key, (void *)val, key 168 drivers/crypto/qat/qat_common/adf_ctl_drv.c key_val->key, key_val->val, key 356 drivers/crypto/qat/qat_common/adf_transport.c uint32_t key, uint32_t *value) key 361 drivers/crypto/qat/qat_common/adf_transport.c snprintf(key_buf, ADF_CFG_MAX_KEY_LEN_IN_BYTES, format, key); key 299 drivers/crypto/qat/qat_common/icp_qat_hw.h uint8_t key[ICP_QAT_HW_AES_256_F8_KEY_SZ]; key 314 drivers/crypto/qat/qat_common/qat_algs.c memcpy(cipher->aes.key, keys->enckey, keys->enckeylen); key 400 drivers/crypto/qat/qat_common/qat_algs.c memcpy(cipher->aes.key, keys->enckey, keys->enckeylen); key 469 drivers/crypto/qat/qat_common/qat_algs.c const uint8_t *key, unsigned int keylen) key 475 drivers/crypto/qat/qat_common/qat_algs.c memcpy(cd->aes.key, key, keylen); key 489 drivers/crypto/qat/qat_common/qat_algs.c int alg, const uint8_t *key, key 496 drivers/crypto/qat/qat_common/qat_algs.c qat_alg_ablkcipher_init_com(ctx, req, enc_cd, key, keylen); key 502 drivers/crypto/qat/qat_common/qat_algs.c int alg, const uint8_t *key, key 509 drivers/crypto/qat/qat_common/qat_algs.c qat_alg_ablkcipher_init_com(ctx, req, dec_cd, key, keylen); key 551 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_aead_init_sessions(struct crypto_aead *tfm, const u8 *key, key 557 drivers/crypto/qat/qat_common/qat_algs.c if (crypto_authenc_extractkeys(&keys, key, keylen)) key 581 drivers/crypto/qat/qat_common/qat_algs.c const uint8_t *key, key 590 drivers/crypto/qat/qat_common/qat_algs.c qat_alg_ablkcipher_init_enc(ctx, alg, key, keylen, mode); key 591 drivers/crypto/qat/qat_common/qat_algs.c qat_alg_ablkcipher_init_dec(ctx, alg, key, keylen, mode); key 598 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_aead_rekey(struct crypto_aead *tfm, const uint8_t *key, key 608 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_aead_init_sessions(tfm, key, keylen, key 612 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_aead_newkey(struct crypto_aead *tfm, const uint8_t *key, key 641 drivers/crypto/qat/qat_common/qat_algs.c ret = qat_alg_aead_init_sessions(tfm, key, keylen, key 664 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_aead_setkey(struct crypto_aead *tfm, const uint8_t *key, key 670 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_aead_rekey(tfm, key, keylen); key 672 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_aead_newkey(tfm, key, keylen); key 953 drivers/crypto/qat/qat_common/qat_algs.c const u8 *key, unsigned int keylen, key 961 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_ablkcipher_init_sessions(ctx, key, keylen, mode); key 965 drivers/crypto/qat/qat_common/qat_algs.c const u8 *key, unsigned int keylen, key 993 drivers/crypto/qat/qat_common/qat_algs.c ret = qat_alg_ablkcipher_init_sessions(ctx, key, keylen, mode); key 1016 drivers/crypto/qat/qat_common/qat_algs.c const u8 *key, unsigned int keylen, key 1022 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_ablkcipher_rekey(ctx, key, keylen, mode); key 1024 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_ablkcipher_newkey(ctx, key, keylen, mode); key 1028 drivers/crypto/qat/qat_common/qat_algs.c const u8 *key, unsigned int keylen) key 1030 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_ablkcipher_setkey(tfm, key, keylen, key 1035 drivers/crypto/qat/qat_common/qat_algs.c const u8 *key, unsigned int keylen) key 1037 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_ablkcipher_setkey(tfm, key, keylen, key 1042 drivers/crypto/qat/qat_common/qat_algs.c const u8 *key, unsigned int keylen) key 1044 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_ablkcipher_setkey(tfm, key, keylen, key 512 drivers/crypto/qat/qat_common/qat_asym_algs.c memcpy(ctx->xa + (ctx->p_size - params.key_size), params.key, key 1201 drivers/crypto/qat/qat_common/qat_asym_algs.c static int qat_rsa_setkey(struct crypto_akcipher *tfm, const void *key, key 1212 drivers/crypto/qat/qat_common/qat_asym_algs.c ret = rsa_parse_priv_key(&rsa_key, key, keylen); key 1214 drivers/crypto/qat/qat_common/qat_asym_algs.c ret = rsa_parse_pub_key(&rsa_key, key, keylen); key 1248 drivers/crypto/qat/qat_common/qat_asym_algs.c static int qat_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, key 1251 drivers/crypto/qat/qat_common/qat_asym_algs.c return qat_rsa_setkey(tfm, key, keylen, false); key 1254 drivers/crypto/qat/qat_common/qat_asym_algs.c static int qat_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, key 1257 drivers/crypto/qat/qat_common/qat_asym_algs.c return qat_rsa_setkey(tfm, key, keylen, true); key 165 drivers/crypto/qat/qat_common/qat_crypto.c char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES]; key 175 drivers/crypto/qat/qat_common/qat_crypto.c snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_BANK_NUM, i); key 177 drivers/crypto/qat/qat_common/qat_crypto.c key, (void *)&val, ADF_DEC)) key 180 drivers/crypto/qat/qat_common/qat_crypto.c snprintf(key, sizeof(key), ADF_CY "%d" ADF_ETRMGR_CORE_AFFINITY, key 183 drivers/crypto/qat/qat_common/qat_crypto.c key, (void *)&val, ADF_DEC)) key 186 drivers/crypto/qat/qat_common/qat_crypto.c snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_SIZE, i); key 189 drivers/crypto/qat/qat_common/qat_crypto.c key, (void *)&val, ADF_DEC)) key 193 drivers/crypto/qat/qat_common/qat_crypto.c snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_SIZE, i); key 195 drivers/crypto/qat/qat_common/qat_crypto.c key, (void *)&val, ADF_DEC)) key 199 drivers/crypto/qat/qat_common/qat_crypto.c snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_TX, i); key 201 drivers/crypto/qat/qat_common/qat_crypto.c key, (void *)&val, ADF_DEC)) key 205 drivers/crypto/qat/qat_common/qat_crypto.c snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_TX, i); key 207 drivers/crypto/qat/qat_common/qat_crypto.c key, (void *)&val, ADF_DEC)) key 211 drivers/crypto/qat/qat_common/qat_crypto.c snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_RX, i); key 213 drivers/crypto/qat/qat_common/qat_crypto.c key, (void *)&val, ADF_DEC)) key 217 drivers/crypto/qat/qat_common/qat_crypto.c snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_RX, i); key 219 drivers/crypto/qat/qat_common/qat_crypto.c key, (void *)&val, ADF_DEC)) key 223 drivers/crypto/qat/qat_common/qat_crypto.c snprintf(key, sizeof(key), ADF_ETRMGR_COALESCE_TIMER_FORMAT, i); key 225 drivers/crypto/qat/qat_common/qat_crypto.c key, (void *)&val, ADF_DEC)) key 249 drivers/crypto/qat/qat_common/qat_crypto.c char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES]; key 253 drivers/crypto/qat/qat_common/qat_crypto.c strlcpy(key, ADF_NUM_CY, sizeof(key)); key 254 drivers/crypto/qat/qat_common/qat_crypto.c if (adf_cfg_get_param_value(accel_dev, SEC, key, val)) key 270 drivers/crypto/qat/qat_common/qat_crypto.c snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_BANK_NUM, i); key 271 drivers/crypto/qat/qat_common/qat_crypto.c if (adf_cfg_get_param_value(accel_dev, SEC, key, val)) key 276 drivers/crypto/qat/qat_common/qat_crypto.c snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_SIZE, i); key 277 drivers/crypto/qat/qat_common/qat_crypto.c if (adf_cfg_get_param_value(accel_dev, SEC, key, val)) key 285 drivers/crypto/qat/qat_common/qat_crypto.c snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_SIZE, i); key 286 drivers/crypto/qat/qat_common/qat_crypto.c if (adf_cfg_get_param_value(accel_dev, SEC, key, val)) key 294 drivers/crypto/qat/qat_common/qat_crypto.c snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_TX, i); key 296 drivers/crypto/qat/qat_common/qat_crypto.c msg_size, key, NULL, 0, &inst->sym_tx)) key 300 drivers/crypto/qat/qat_common/qat_crypto.c snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_TX, i); key 302 drivers/crypto/qat/qat_common/qat_crypto.c msg_size, key, NULL, 0, &inst->pke_tx)) key 306 drivers/crypto/qat/qat_common/qat_crypto.c snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_RX, i); key 308 drivers/crypto/qat/qat_common/qat_crypto.c msg_size, key, qat_alg_callback, 0, key 312 drivers/crypto/qat/qat_common/qat_crypto.c snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_RX, i); key 314 drivers/crypto/qat/qat_common/qat_crypto.c msg_size, key, qat_alg_asym_callback, 0, key 152 drivers/crypto/qce/ablkcipher.c static int qce_ablkcipher_setkey(struct crypto_ablkcipher *ablk, const u8 *key, key 159 drivers/crypto/qce/ablkcipher.c if (!key || !keylen) key 171 drivers/crypto/qce/ablkcipher.c memcpy(ctx->enc_key, key, keylen); key 174 drivers/crypto/qce/ablkcipher.c ret = crypto_sync_skcipher_setkey(ctx->fallback, key, keylen); key 180 drivers/crypto/qce/ablkcipher.c static int qce_des_setkey(struct crypto_ablkcipher *ablk, const u8 *key, key 186 drivers/crypto/qce/ablkcipher.c err = verify_ablkcipher_des_key(ablk, key); key 191 drivers/crypto/qce/ablkcipher.c memcpy(ctx->enc_key, key, keylen); key 195 drivers/crypto/qce/ablkcipher.c static int qce_des3_setkey(struct crypto_ablkcipher *ablk, const u8 *key, key 201 drivers/crypto/qce/ablkcipher.c err = verify_ablkcipher_des3_key(ablk, key); key 206 drivers/crypto/qce/ablkcipher.c memcpy(ctx->enc_key, key, keylen); key 344 drivers/crypto/qce/sha.c static int qce_ahash_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, key 362 drivers/crypto/qce/sha.c memcpy(ctx->authkey, key, keylen); key 394 drivers/crypto/qce/sha.c memcpy(buf, key, keylen); key 31 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c const u8 *key, unsigned int keylen) key 42 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c memcpy_toio(ctx->dev->reg + RK_CRYPTO_AES_KEY_0, key, keylen); key 47 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c const u8 *key, unsigned int keylen) key 52 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c err = verify_ablkcipher_des_key(cipher, key); key 57 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c memcpy_toio(ctx->dev->reg + RK_CRYPTO_TDES_KEY1_0, key, keylen); key 62 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c const u8 *key, unsigned int keylen) key 67 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c err = verify_ablkcipher_des3_key(cipher, key); key 72 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c memcpy_toio(ctx->dev->reg + RK_CRYPTO_TDES_KEY1_0, key, keylen); key 1838 drivers/crypto/s5p-sss.c const u8 *key, const u8 *iv, const u8 *ctr, key 1858 drivers/crypto/s5p-sss.c memcpy_toio(keystart, key, keylen); key 2074 drivers/crypto/s5p-sss.c const u8 *key, unsigned int keylen) key 2084 drivers/crypto/s5p-sss.c memcpy(ctx->aes_key, key, keylen); key 148 drivers/crypto/sahara.c u8 key[AES_KEYSIZE_128]; key 451 drivers/crypto/sahara.c memcpy(dev->key_base, ctx->key, ctx->keylen); key 600 drivers/crypto/sahara.c static int sahara_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 610 drivers/crypto/sahara.c memcpy(ctx->key, key, keylen); key 625 drivers/crypto/sahara.c ret = crypto_sync_skcipher_setkey(ctx->fallback, key, keylen); key 56 drivers/crypto/stm32/stm32-crc32.c u32 key; key 69 drivers/crypto/stm32/stm32-crc32.c mctx->key = CRC_INIT_DEFAULT; key 78 drivers/crypto/stm32/stm32-crc32.c mctx->key = CRC_INIT_DEFAULT; key 83 drivers/crypto/stm32/stm32-crc32.c static int stm32_crc_setkey(struct crypto_shash *tfm, const u8 *key, key 93 drivers/crypto/stm32/stm32-crc32.c mctx->key = get_unaligned_le32(key); key 113 drivers/crypto/stm32/stm32-crc32.c writel_relaxed(bitrev32(mctx->key), ctx->crc->regs + CRC_INIT); key 120 drivers/crypto/stm32/stm32-cryp.c u32 key[AES_KEYSIZE_256 / sizeof(u32)]; key 419 drivers/crypto/stm32/stm32-cryp.c stm32_cryp_write(c, CRYP_K1LR, cpu_to_be32(c->ctx->key[0])); key 420 drivers/crypto/stm32/stm32-cryp.c stm32_cryp_write(c, CRYP_K1RR, cpu_to_be32(c->ctx->key[1])); key 425 drivers/crypto/stm32/stm32-cryp.c cpu_to_be32(c->ctx->key[i - 1])); key 673 drivers/crypto/stm32/stm32-cryp.c memset(cryp->ctx->key, 0, cryp->ctx->keylen); key 746 drivers/crypto/stm32/stm32-cryp.c static int stm32_cryp_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 751 drivers/crypto/stm32/stm32-cryp.c memcpy(ctx->key, key, keylen); key 757 drivers/crypto/stm32/stm32-cryp.c static int stm32_cryp_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 764 drivers/crypto/stm32/stm32-cryp.c return stm32_cryp_setkey(tfm, key, keylen); key 767 drivers/crypto/stm32/stm32-cryp.c static int stm32_cryp_des_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 770 drivers/crypto/stm32/stm32-cryp.c return verify_ablkcipher_des_key(tfm, key) ?: key 771 drivers/crypto/stm32/stm32-cryp.c stm32_cryp_setkey(tfm, key, keylen); key 774 drivers/crypto/stm32/stm32-cryp.c static int stm32_cryp_tdes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, key 777 drivers/crypto/stm32/stm32-cryp.c return verify_ablkcipher_des3_key(tfm, key) ?: key 778 drivers/crypto/stm32/stm32-cryp.c stm32_cryp_setkey(tfm, key, keylen); key 781 drivers/crypto/stm32/stm32-cryp.c static int stm32_cryp_aes_aead_setkey(struct crypto_aead *tfm, const u8 *key, key 790 drivers/crypto/stm32/stm32-cryp.c memcpy(ctx->key, key, keylen); key 118 drivers/crypto/stm32/stm32-hash.c u8 key[HASH_MAX_KEY_SIZE]; key 229 drivers/crypto/stm32/stm32-hash.c void *key = ctx->key; key 235 drivers/crypto/stm32/stm32-hash.c stm32_hash_write(hdev, HASH_DIN, *(u32 *)key); key 237 drivers/crypto/stm32/stm32-hash.c key += 4; key 489 drivers/crypto/stm32/stm32-hash.c sg_init_one(&rctx->sg_key, ctx->key, key 1020 drivers/crypto/stm32/stm32-hash.c const u8 *key, unsigned int keylen) key 1025 drivers/crypto/stm32/stm32-hash.c memcpy(ctx->key, key, keylen); key 48 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c writel(*(op->key + i / 4), ss->base + SS_KEY0 + i); key 210 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c writel(*(op->key + i / 4), ss->base + SS_KEY0 + i); key 516 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c int sun4i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, key 538 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c memcpy(op->key, key, keylen); key 543 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c return crypto_sync_skcipher_setkey(op->fallback_tfm, key, keylen); key 547 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c int sun4i_ss_des_setkey(struct crypto_skcipher *tfm, const u8 *key, key 553 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c err = verify_skcipher_des_key(tfm, key); key 558 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c memcpy(op->key, key, keylen); key 563 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c return crypto_sync_skcipher_setkey(op->fallback_tfm, key, keylen); key 567 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c int sun4i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, key 573 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c err = verify_skcipher_des3_key(tfm, key); key 578 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c memcpy(op->key, key, keylen); key 583 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c return crypto_sync_skcipher_setkey(op->fallback_tfm, key, keylen); key 159 drivers/crypto/sunxi-ss/sun4i-ss.h u32 key[AES_MAX_KEY_SIZE / 4];/* divided by sizeof(u32) */ key 207 drivers/crypto/sunxi-ss/sun4i-ss.h int sun4i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, key 209 drivers/crypto/sunxi-ss/sun4i-ss.h int sun4i_ss_des_setkey(struct crypto_skcipher *tfm, const u8 *key, key 211 drivers/crypto/sunxi-ss/sun4i-ss.h int sun4i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, key 853 drivers/crypto/talitos.c u8 key[TALITOS_MAX_KEY_SIZE]; key 889 drivers/crypto/talitos.c const u8 *key, unsigned int keylen) key 895 drivers/crypto/talitos.c if (crypto_authenc_extractkeys(&keys, key, keylen) != 0) key 904 drivers/crypto/talitos.c memcpy(ctx->key, keys.authkey, keys.authkeylen); key 905 drivers/crypto/talitos.c memcpy(&ctx->key[keys.authkeylen], keys.enckey, keys.enckeylen); key 910 drivers/crypto/talitos.c ctx->dma_key = dma_map_single(dev, ctx->key, ctx->keylen, key 923 drivers/crypto/talitos.c const u8 *key, unsigned int keylen) key 930 drivers/crypto/talitos.c err = crypto_authenc_extractkeys(&keys, key, keylen); key 945 drivers/crypto/talitos.c memcpy(ctx->key, keys.authkey, keys.authkeylen); key 946 drivers/crypto/talitos.c memcpy(&ctx->key[keys.authkeylen], keys.enckey, keys.enckeylen); key 951 drivers/crypto/talitos.c ctx->dma_key = dma_map_single(dev, ctx->key, ctx->keylen, key 1494 drivers/crypto/talitos.c const u8 *key, unsigned int keylen) key 1502 drivers/crypto/talitos.c memcpy(&ctx->key, key, keylen); key 1505 drivers/crypto/talitos.c ctx->dma_key = dma_map_single(dev, ctx->key, keylen, DMA_TO_DEVICE); key 1511 drivers/crypto/talitos.c const u8 *key, unsigned int keylen) key 1513 drivers/crypto/talitos.c return verify_ablkcipher_des_key(cipher, key) ?: key 1514 drivers/crypto/talitos.c ablkcipher_setkey(cipher, key, keylen); key 1518 drivers/crypto/talitos.c const u8 *key, unsigned int keylen) key 1520 drivers/crypto/talitos.c return verify_ablkcipher_des3_key(cipher, key) ?: key 1521 drivers/crypto/talitos.c ablkcipher_setkey(cipher, key, keylen); key 1525 drivers/crypto/talitos.c const u8 *key, unsigned int keylen) key 1529 drivers/crypto/talitos.c return ablkcipher_setkey(cipher, key, keylen); key 2184 drivers/crypto/talitos.c static int keyhash(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen, key 2205 drivers/crypto/talitos.c sg_init_one(&sg[0], key, keylen); key 2215 drivers/crypto/talitos.c static int ahash_setkey(struct crypto_ahash *tfm, const u8 *key, key 2228 drivers/crypto/talitos.c memcpy(ctx->key, key, keysize); key 2231 drivers/crypto/talitos.c ret = keyhash(tfm, key, keylen, hash); key 2239 drivers/crypto/talitos.c memcpy(ctx->key, hash, digestsize); key 2246 drivers/crypto/talitos.c ctx->dma_key = dma_map_single(dev, ctx->key, keysize, DMA_TO_DEVICE); key 77 drivers/crypto/ux500/cryp/cryp_core.c u8 key[CRYP_MAX_KEY_SIZE]; key 346 drivers/crypto/ux500/cryp/cryp_core.c swap_words_in_key_and_bits_in_byte((u8 *)ctx->key, key 351 drivers/crypto/ux500/cryp/cryp_core.c swapped_key[i] = uint8p_to_uint32_be(ctx->key + i*4); key 952 drivers/crypto/ux500/cryp/cryp_core.c const u8 *key, unsigned int keylen) key 978 drivers/crypto/ux500/cryp/cryp_core.c memcpy(ctx->key, key, keylen); key 987 drivers/crypto/ux500/cryp/cryp_core.c const u8 *key, unsigned int keylen) key 994 drivers/crypto/ux500/cryp/cryp_core.c err = verify_ablkcipher_des_key(cipher, key); key 998 drivers/crypto/ux500/cryp/cryp_core.c memcpy(ctx->key, key, keylen); key 1006 drivers/crypto/ux500/cryp/cryp_core.c const u8 *key, unsigned int keylen) key 1013 drivers/crypto/ux500/cryp/cryp_core.c err = verify_ablkcipher_des3_key(cipher, key); key 1017 drivers/crypto/ux500/cryp/cryp_core.c memcpy(ctx->key, key, keylen); key 329 drivers/crypto/ux500/hash/hash_alg.h u8 *key; key 427 drivers/crypto/ux500/hash/hash_core.c const u8 *key, unsigned int keylen) key 435 drivers/crypto/ux500/hash/hash_core.c u32 *key_word = (u32 *)key; key 439 drivers/crypto/ux500/hash/hash_core.c key += 4; key 446 drivers/crypto/ux500/hash/hash_core.c word |= (key[keylen - 1] << (8 * (keylen - 1))); key 485 drivers/crypto/ux500/hash/hash_core.c hash_hw_write_key(device_data, ctx->key, ctx->keylen); key 555 drivers/crypto/ux500/hash/hash_core.c if (!ctx->key) key 903 drivers/crypto/ux500/hash/hash_core.c hash_hw_write_key(device_data, ctx->key, ctx->keylen); key 933 drivers/crypto/ux500/hash/hash_core.c if (ctx->config.oper_mode == HASH_OPER_MODE_HMAC && ctx->key) { key 935 drivers/crypto/ux500/hash/hash_core.c u8 *key = ctx->key; key 939 drivers/crypto/ux500/hash/hash_core.c hash_hw_write_key(device_data, key, keylen); key 951 drivers/crypto/ux500/hash/hash_core.c kfree(ctx->key); key 1035 drivers/crypto/ux500/hash/hash_core.c if (ctx->config.oper_mode == HASH_OPER_MODE_HMAC && ctx->key) { key 1037 drivers/crypto/ux500/hash/hash_core.c u8 *key = ctx->key; key 1041 drivers/crypto/ux500/hash/hash_core.c hash_hw_write_key(device_data, key, keylen); key 1053 drivers/crypto/ux500/hash/hash_core.c kfree(ctx->key); key 1334 drivers/crypto/ux500/hash/hash_core.c const u8 *key, unsigned int keylen, int alg) key 1342 drivers/crypto/ux500/hash/hash_core.c ctx->key = kmemdup(key, keylen, GFP_KERNEL); key 1343 drivers/crypto/ux500/hash/hash_core.c if (!ctx->key) { key 1476 drivers/crypto/ux500/hash/hash_core.c const u8 *key, unsigned int keylen) key 1478 drivers/crypto/ux500/hash/hash_core.c return hash_setkey(tfm, key, keylen, HASH_ALGO_SHA1); key 1482 drivers/crypto/ux500/hash/hash_core.c const u8 *key, unsigned int keylen) key 1484 drivers/crypto/ux500/hash/hash_core.c return hash_setkey(tfm, key, keylen, HASH_ALGO_SHA256); key 115 drivers/crypto/virtio/virtio_crypto_algs.c uint32_t alg, const uint8_t *key, key 130 drivers/crypto/virtio/virtio_crypto_algs.c uint8_t *cipher_key = kmemdup(key, keylen, GFP_ATOMIC); key 266 drivers/crypto/virtio/virtio_crypto_algs.c const uint8_t *key, unsigned int keylen) key 282 drivers/crypto/virtio/virtio_crypto_algs.c alg, key, keylen, 1); key 287 drivers/crypto/virtio/virtio_crypto_algs.c alg, key, keylen, 0); key 301 drivers/crypto/virtio/virtio_crypto_algs.c const uint8_t *key, key 330 drivers/crypto/virtio/virtio_crypto_algs.c ret = virtio_crypto_alg_ablkcipher_init_sessions(ctx, key, keylen); key 60 drivers/crypto/vmx/aes.c static int p8_aes_setkey(struct crypto_tfm *tfm, const u8 *key, key 69 drivers/crypto/vmx/aes.c ret = aes_p8_set_encrypt_key(key, keylen * 8, &ctx->enc_key); key 70 drivers/crypto/vmx/aes.c ret |= aes_p8_set_decrypt_key(key, keylen * 8, &ctx->dec_key); key 75 drivers/crypto/vmx/aes.c ret |= crypto_cipher_setkey(ctx->fallback, key, keylen); key 51 drivers/crypto/vmx/aes_cbc.c static int p8_aes_cbc_setkey(struct crypto_skcipher *tfm, const u8 *key, key 60 drivers/crypto/vmx/aes_cbc.c ret = aes_p8_set_encrypt_key(key, keylen * 8, &ctx->enc_key); key 61 drivers/crypto/vmx/aes_cbc.c ret |= aes_p8_set_decrypt_key(key, keylen * 8, &ctx->dec_key); key 66 drivers/crypto/vmx/aes_cbc.c ret |= crypto_skcipher_setkey(ctx->fallback, key, keylen); key 50 drivers/crypto/vmx/aes_ctr.c static int p8_aes_ctr_setkey(struct crypto_skcipher *tfm, const u8 *key, key 59 drivers/crypto/vmx/aes_ctr.c ret = aes_p8_set_encrypt_key(key, keylen * 8, &ctx->enc_key); key 64 drivers/crypto/vmx/aes_ctr.c ret |= crypto_skcipher_setkey(ctx->fallback, key, keylen); key 53 drivers/crypto/vmx/aes_xts.c static int p8_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key, key 59 drivers/crypto/vmx/aes_xts.c ret = xts_verify_key(tfm, key, keylen); key 66 drivers/crypto/vmx/aes_xts.c ret = aes_p8_set_encrypt_key(key + keylen/2, (keylen/2) * 8, &ctx->tweak_key); key 67 drivers/crypto/vmx/aes_xts.c ret |= aes_p8_set_encrypt_key(key, (keylen/2) * 8, &ctx->enc_key); key 68 drivers/crypto/vmx/aes_xts.c ret |= aes_p8_set_decrypt_key(key, (keylen/2) * 8, &ctx->dec_key); key 73 drivers/crypto/vmx/aes_xts.c ret |= crypto_skcipher_setkey(ctx->fallback, key, keylen); key 6 drivers/crypto/vmx/aesp8-ppc.h u8 key[AES_MAX_KEYLENGTH]; key 11 drivers/crypto/vmx/aesp8-ppc.h struct aes_key *key); key 13 drivers/crypto/vmx/aesp8-ppc.h struct aes_key *key); key 14 drivers/crypto/vmx/aesp8-ppc.h void aes_p8_encrypt(const u8 *in, u8 *out, const struct aes_key *key); key 15 drivers/crypto/vmx/aesp8-ppc.h void aes_p8_decrypt(const u8 *in, u8 *out, const struct aes_key *key); key 17 drivers/crypto/vmx/aesp8-ppc.h const struct aes_key *key, u8 *iv, const int enc); key 19 drivers/crypto/vmx/aesp8-ppc.h size_t len, const struct aes_key *key, key 36 drivers/crypto/vmx/ghash.c be128 key; key 54 drivers/crypto/vmx/ghash.c static int p8_ghash_setkey(struct crypto_shash *tfm, const u8 *key, key 65 drivers/crypto/vmx/ghash.c gcm_init_p8(ctx->htable, (const u64 *) key); key 70 drivers/crypto/vmx/ghash.c memcpy(&ctx->key, key, GHASH_BLOCK_SIZE); key 89 drivers/crypto/vmx/ghash.c gf128mul_lle((be128 *)dctx->shash, &ctx->key); key 109 drivers/crypto/vmx/ghash.c gf128mul_lle((be128 *)dctx->shash, &ctx->key); key 113 drivers/extcon/extcon-arizona.c { .max = 11, .key = BTN_0 }, key 114 drivers/extcon/extcon-arizona.c { .max = 28, .key = BTN_1 }, key 115 drivers/extcon/extcon-arizona.c { .max = 54, .key = BTN_2 }, key 116 drivers/extcon/extcon-arizona.c { .max = 100, .key = BTN_3 }, key 117 drivers/extcon/extcon-arizona.c { .max = 186, .key = BTN_4 }, key 118 drivers/extcon/extcon-arizona.c { .max = 430, .key = BTN_5 }, key 821 drivers/extcon/extcon-arizona.c int ret, i, key; key 969 drivers/extcon/extcon-arizona.c info->micd_ranges[i].key, 0); key 974 drivers/extcon/extcon-arizona.c key = info->micd_ranges[ffs(lvl) - 1].key; key 975 drivers/extcon/extcon-arizona.c input_report_key(info->input, key, 1); key 993 drivers/extcon/extcon-arizona.c info->micd_ranges[i].key, 0); key 1179 drivers/extcon/extcon-arizona.c info->micd_ranges[i].key, 0); key 1576 drivers/extcon/extcon-arizona.c info->micd_ranges[i].key); key 125 drivers/firewire/core-card.c config_rom[i] = cpu_to_be32(desc->key | (j - i)); key 883 drivers/firewire/core-cdev.c r->descriptor.key = a->key; key 41 drivers/firewire/core-device.c int fw_csr_iterator_next(struct fw_csr_iterator *ci, int *key, int *value) key 43 drivers/firewire/core-device.c *key = *ci->p >> 24; key 53 drivers/firewire/core-device.c int last_key = 0, key, value; key 56 drivers/firewire/core-device.c while (fw_csr_iterator_next(&ci, &key, &value)) { key 58 drivers/firewire/core-device.c key == (CSR_DESCRIPTOR | CSR_LEAF)) key 61 drivers/firewire/core-device.c last_key = key; key 110 drivers/firewire/core-device.c int fw_csr_string(const u32 *directory, int key, char *buf, size_t size) key 112 drivers/firewire/core-device.c const u32 *leaf = search_leaf(directory, key); key 123 drivers/firewire/core-device.c int key, value; key 126 drivers/firewire/core-device.c while (fw_csr_iterator_next(&ci, &key, &value)) { key 127 drivers/firewire/core-device.c switch (key) { key 245 drivers/firewire/core-device.c u32 key; key 255 drivers/firewire/core-device.c int key, value, ret = -ENOENT; key 265 drivers/firewire/core-device.c while (fw_csr_iterator_next(&ci, &key, &value)) key 266 drivers/firewire/core-device.c if (attr->key == key) { key 277 drivers/firewire/core-device.c #define IMMEDIATE_ATTR(name, key) \ key 278 drivers/firewire/core-device.c { __ATTR(name, S_IRUGO, show_immediate, NULL), key } key 304 drivers/firewire/core-device.c ret = fw_csr_string(dir, attr->key, buf, bufsize); key 319 drivers/firewire/core-device.c #define TEXT_LEAF_ATTR(name, key) \ key 320 drivers/firewire/core-device.c { __ATTR(name, S_IRUGO, show_text_leaf, NULL), key } key 424 drivers/firewire/core-device.c int key, value; key 429 drivers/firewire/core-device.c while (fw_csr_iterator_next(&ci, &key, &value)) { key 430 drivers/firewire/core-device.c switch (key) { key 448 drivers/firewire/core-device.c int key, value, i = 0; key 452 drivers/firewire/core-device.c while (fw_csr_iterator_next(&ci, &key, &value)) { key 453 drivers/firewire/core-device.c if (key != (CSR_UNIT | CSR_DIRECTORY)) key 512 drivers/firewire/core-device.c u32 sp, key; key 589 drivers/firewire/core-device.c key = stack[--sp]; key 590 drivers/firewire/core-device.c i = key & 0xffffff; key 625 drivers/firewire/core-device.c if ((key >> 30) != 3 || (rom[i] >> 30) < 2) key 693 drivers/firewire/core-device.c int key, value, i; key 697 drivers/firewire/core-device.c while (fw_csr_iterator_next(&ci, &key, &value)) { key 698 drivers/firewire/core-device.c if (key != (CSR_UNIT | CSR_DIRECTORY)) key 1247 drivers/firewire/core-transaction.c .key = 0x81000000, key 1254 drivers/firewire/core-transaction.c .key = 0x81000000, key 1640 drivers/firewire/net.c .key = (CSR_DIRECTORY | CSR_UNIT) << 24, key 1663 drivers/firewire/net.c .key = (CSR_DIRECTORY | CSR_UNIT) << 24, key 1007 drivers/firewire/sbp2.c int key, value; key 1010 drivers/firewire/sbp2.c while (fw_csr_iterator_next(&ci, &key, &value)) key 1011 drivers/firewire/sbp2.c if (key == SBP2_CSR_LOGICAL_UNIT_NUMBER && key 1021 drivers/firewire/sbp2.c int key, value; key 1024 drivers/firewire/sbp2.c while (fw_csr_iterator_next(&ci, &key, &value)) { key 1025 drivers/firewire/sbp2.c switch (key) { key 51 drivers/firmware/broadcom/bcm47xx_sprom.c char key[40]; key 54 drivers/firmware/broadcom/bcm47xx_sprom.c create_key(prefix, postfix, name, key, sizeof(key)); key 56 drivers/firmware/broadcom/bcm47xx_sprom.c err = bcm47xx_nvram_getenv(key, buf, len); key 58 drivers/firmware/broadcom/bcm47xx_sprom.c create_key(NULL, postfix, name, key, sizeof(key)); key 59 drivers/firmware/broadcom/bcm47xx_sprom.c err = bcm47xx_nvram_getenv(key, buf, len); key 243 drivers/firmware/edd.c if (!(info->params.key == 0xBEDD || info->params.key == 0xDDBE)) key 534 drivers/firmware/edd.c if (!(info->params.key == 0xBEDD || info->params.key == 0xDDBE)) { key 57 drivers/firmware/efi/apple-properties.c char *key; key 80 drivers/firmware/efi/apple-properties.c key = kzalloc((key_len - sizeof(key_len)) * 4 + 1, GFP_KERNEL); key 81 drivers/firmware/efi/apple-properties.c if (!key) { key 85 drivers/firmware/efi/apple-properties.c ucs2_as_utf8(key, ptr + sizeof(key_len), key 88 drivers/firmware/efi/apple-properties.c entry[i].name = key; key 87 drivers/firmware/efi/libstub/efi-stub-helper.c unsigned long key; key 100 drivers/firmware/efi/libstub/efi-stub-helper.c key = 0; key 102 drivers/firmware/efi/libstub/efi-stub-helper.c &key, map->desc_size, &desc_version); key 123 drivers/firmware/efi/libstub/efi-stub-helper.c *map->key_ptr = key; key 49 drivers/firmware/google/vpd.c char *key; key 81 drivers/firmware/google/vpd.c static int vpd_section_check_key_name(const u8 *key, s32 key_len) key 86 drivers/firmware/google/vpd.c c = *key++; key 95 drivers/firmware/google/vpd.c static int vpd_section_attrib_add(const u8 *key, u32 key_len, key 107 drivers/firmware/google/vpd.c if (vpd_section_check_key_name(key, key_len) != VPD_OK) key 114 drivers/firmware/google/vpd.c info->key = kstrndup(key, key_len, GFP_KERNEL); key 115 drivers/firmware/google/vpd.c if (!info->key) { key 121 drivers/firmware/google/vpd.c info->bin_attr.attr.name = info->key; key 139 drivers/firmware/google/vpd.c kfree(info->key); key 153 drivers/firmware/google/vpd.c kfree(info->key); key 66 drivers/firmware/google/vpd_decode.c const u8 *key; key 80 drivers/firmware/google/vpd_decode.c if (vpd_decode_entry(max_len, input_buf, consumed, &key, key 89 drivers/firmware/google/vpd_decode.c return callback(key, key_len, value, value_len, key 28 drivers/firmware/google/vpd_decode.h typedef int vpd_decode_callback(const u8 *key, u32 key_len, key 62 drivers/firmware/qemu_fw_cfg.c static void fw_cfg_sel_endianness(u16 key) key 65 drivers/firmware/qemu_fw_cfg.c iowrite16be(key, fw_cfg_reg_ctrl); key 67 drivers/firmware/qemu_fw_cfg.c iowrite16(key, fw_cfg_reg_ctrl); key 131 drivers/firmware/qemu_fw_cfg.c static ssize_t fw_cfg_read_blob(u16 key, key 149 drivers/firmware/qemu_fw_cfg.c fw_cfg_sel_endianness(key); key 161 drivers/firmware/qemu_fw_cfg.c static ssize_t fw_cfg_write_blob(u16 key, key 180 drivers/firmware/qemu_fw_cfg.c ret = fw_cfg_dma_transfer(buf, count, key << 16 key 184 drivers/firmware/qemu_fw_cfg.c fw_cfg_sel_endianness(key); key 421 drivers/firmware/qemu_fw_cfg.c static FW_CFG_SYSFS_ATTR(key); key 252 drivers/gpio/gpio-adp5588.c int key = adp5588_gpio_read(dev->client, key 257 drivers/gpio/gpio-adp5588.c int gpio = (key & 0x7f) - 97; key 258 drivers/gpio/gpio-adp5588.c int lvl = key & (1 << 7); key 271 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c uint64_t stamp, key = addr << 4 | pasid; key 282 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c hash = hash_64(key, AMDGPU_GMC_FAULT_HASH_ORDER); key 287 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c if (fault->key == key) key 300 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c fault->key = key; key 71 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h uint64_t key:52; key 320 drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c unsigned long key = AMDGPU_MN_KEY(mm, type); key 329 drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c hash_for_each_possible(adev->mn_hash, amn, node, key) key 330 drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c if (AMDGPU_MN_KEY(amn->mm, amn->type) == key) key 312 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c unsigned int key, key 315 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c unsigned int ret = key; key 306 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h unsigned int key, key 1265 drivers/gpu/drm/amd/powerplay/hwmgr/pp_overdriver.c int pp_override_get_default_fuse_value(uint64_t key, key 1271 drivers/gpu/drm/amd/powerplay/hwmgr/pp_overdriver.c for (i = 0; list[i].key != 0; i++) { key 1272 drivers/gpu/drm/amd/powerplay/hwmgr/pp_overdriver.c if (key == list[i].key) { key 1273 drivers/gpu/drm/amd/powerplay/hwmgr/pp_overdriver.c result->key = list[i].key; key 31 drivers/gpu/drm/amd/powerplay/hwmgr/pp_overdriver.h uint64_t key; key 43 drivers/gpu/drm/amd/powerplay/hwmgr/pp_overdriver.h extern int pp_override_get_default_fuse_value(uint64_t key, key 223 drivers/gpu/drm/drm_agpsupport.c entry->handle = (unsigned long)memory->key + 1; key 105 drivers/gpu/drm/drm_bufs.c hash->key = user_token >> PAGE_SHIFT; key 368 drivers/gpu/drm/drm_bufs.c list->user_token = list->hash.key << PAGE_SHIFT; key 63 drivers/gpu/drm/drm_hashtab.c void drm_ht_verbose_list(struct drm_open_hash *ht, unsigned long key) key 70 drivers/gpu/drm/drm_hashtab.c hashed_key = hash_long(key, ht->order); key 71 drivers/gpu/drm/drm_hashtab.c DRM_DEBUG("Key is 0x%08lx, Hashed key is 0x%08x\n", key, hashed_key); key 74 drivers/gpu/drm/drm_hashtab.c DRM_DEBUG("count %d, key: 0x%08lx\n", count++, entry->key); key 78 drivers/gpu/drm/drm_hashtab.c unsigned long key) key 84 drivers/gpu/drm/drm_hashtab.c hashed_key = hash_long(key, ht->order); key 87 drivers/gpu/drm/drm_hashtab.c if (entry->key == key) key 89 drivers/gpu/drm/drm_hashtab.c if (entry->key > key) key 96 drivers/gpu/drm/drm_hashtab.c unsigned long key) key 102 drivers/gpu/drm/drm_hashtab.c hashed_key = hash_long(key, ht->order); key 105 drivers/gpu/drm/drm_hashtab.c if (entry->key == key) key 107 drivers/gpu/drm/drm_hashtab.c if (entry->key > key) key 119 drivers/gpu/drm/drm_hashtab.c unsigned long key = item->key; key 121 drivers/gpu/drm/drm_hashtab.c hashed_key = hash_long(key, ht->order); key 125 drivers/gpu/drm/drm_hashtab.c if (entry->key == key) key 127 drivers/gpu/drm/drm_hashtab.c if (entry->key > key) key 155 drivers/gpu/drm/drm_hashtab.c item->key = (unshifted_key << shift) + add; key 169 drivers/gpu/drm/drm_hashtab.c int drm_ht_find_item(struct drm_open_hash *ht, unsigned long key, key 174 drivers/gpu/drm/drm_hashtab.c list = drm_ht_find_key_rcu(ht, key); key 183 drivers/gpu/drm/drm_hashtab.c int drm_ht_remove_key(struct drm_open_hash *ht, unsigned long key) key 187 drivers/gpu/drm/drm_hashtab.c list = drm_ht_find_key(ht, key); key 4144 drivers/gpu/drm/i915/display/intel_display.c const struct drm_intel_sprite_colorkey *key = &plane_state->ckey; key 4168 drivers/gpu/drm/i915/display/intel_display.c if (key->flags & I915_SET_COLORKEY_DESTINATION) key 4170 drivers/gpu/drm/i915/display/intel_display.c else if (key->flags & I915_SET_COLORKEY_SOURCE) key 14252 drivers/gpu/drm/i915/display/intel_display.c unsigned mode, int sync, void *key) key 665 drivers/gpu/drm/i915/display/intel_overlay.c u32 key = overlay->color_key; key 677 drivers/gpu/drm/i915/display/intel_overlay.c key = 0; key 681 drivers/gpu/drm/i915/display/intel_overlay.c key = RGB15_TO_COLORKEY(key); key 685 drivers/gpu/drm/i915/display/intel_overlay.c key = RGB16_TO_COLORKEY(key); key 693 drivers/gpu/drm/i915/display/intel_overlay.c iowrite32(key, ®s->DCLRKV); key 547 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_intel_sprite_colorkey *key = &plane_state->ckey; key 574 drivers/gpu/drm/i915/display/intel_sprite.c keymax = (key->max_value & 0xffffff) | PLANE_KEYMAX_ALPHA(alpha); key 576 drivers/gpu/drm/i915/display/intel_sprite.c keymsk = key->channel_mask & 0x7ffffff; key 623 drivers/gpu/drm/i915/display/intel_sprite.c I915_WRITE_FW(PLANE_KEYVAL(pipe, plane_id), key->min_value); key 843 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_intel_sprite_colorkey *key = &plane_state->ckey; key 899 drivers/gpu/drm/i915/display/intel_sprite.c if (key->flags & I915_SET_COLORKEY_SOURCE) key 940 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_intel_sprite_colorkey *key = &plane_state->ckey; key 969 drivers/gpu/drm/i915/display/intel_sprite.c if (key->flags) { key 970 drivers/gpu/drm/i915/display/intel_sprite.c I915_WRITE_FW(SPKEYMINVAL(pipe, plane_id), key->min_value); key 971 drivers/gpu/drm/i915/display/intel_sprite.c I915_WRITE_FW(SPKEYMSK(pipe, plane_id), key->channel_mask); key 972 drivers/gpu/drm/i915/display/intel_sprite.c I915_WRITE_FW(SPKEYMAXVAL(pipe, plane_id), key->max_value); key 1054 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_intel_sprite_colorkey *key = &plane_state->ckey; key 1100 drivers/gpu/drm/i915/display/intel_sprite.c if (key->flags & I915_SET_COLORKEY_DESTINATION) key 1102 drivers/gpu/drm/i915/display/intel_sprite.c else if (key->flags & I915_SET_COLORKEY_SOURCE) key 1156 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_intel_sprite_colorkey *key = &plane_state->ckey; key 1189 drivers/gpu/drm/i915/display/intel_sprite.c if (key->flags) { key 1190 drivers/gpu/drm/i915/display/intel_sprite.c I915_WRITE_FW(SPRKEYVAL(pipe), key->min_value); key 1191 drivers/gpu/drm/i915/display/intel_sprite.c I915_WRITE_FW(SPRKEYMSK(pipe), key->channel_mask); key 1192 drivers/gpu/drm/i915/display/intel_sprite.c I915_WRITE_FW(SPRKEYMAX(pipe), key->max_value); key 1288 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_intel_sprite_colorkey *key = &plane_state->ckey; key 1332 drivers/gpu/drm/i915/display/intel_sprite.c if (key->flags & I915_SET_COLORKEY_DESTINATION) key 1334 drivers/gpu/drm/i915/display/intel_sprite.c else if (key->flags & I915_SET_COLORKEY_SOURCE) key 1409 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_intel_sprite_colorkey *key = &plane_state->ckey; key 1441 drivers/gpu/drm/i915/display/intel_sprite.c if (key->flags) { key 1442 drivers/gpu/drm/i915/display/intel_sprite.c I915_WRITE_FW(DVSKEYVAL(pipe), key->min_value); key 1443 drivers/gpu/drm/i915/display/intel_sprite.c I915_WRITE_FW(DVSKEYMSK(pipe), key->channel_mask); key 1444 drivers/gpu/drm/i915/display/intel_sprite.c I915_WRITE_FW(DVSKEYMAX(pipe), key->max_value); key 1873 drivers/gpu/drm/i915/display/intel_sprite.c struct drm_intel_sprite_colorkey *key = &plane_state->ckey; key 1875 drivers/gpu/drm/i915/display/intel_sprite.c *key = *set; key 1883 drivers/gpu/drm/i915/display/intel_sprite.c key->flags = 0; key 1891 drivers/gpu/drm/i915/display/intel_sprite.c key->flags = 0; key 244 drivers/gpu/drm/i915/i915_active.c struct lock_class_key *key) key 256 drivers/gpu/drm/i915/i915_active.c __mutex_init(&ref->mutex, "i915_active", key); key 365 drivers/gpu/drm/i915/i915_active.h struct lock_class_key *key); key 217 drivers/gpu/drm/i915/i915_sw_fence.c struct lock_class_key *key) key 223 drivers/gpu/drm/i915/i915_sw_fence.c __init_waitqueue_head(&fence->wait, name, key); key 236 drivers/gpu/drm/i915/i915_sw_fence.c static int i915_sw_fence_wake(wait_queue_entry_t *wq, unsigned mode, int flags, void *key) key 241 drivers/gpu/drm/i915/i915_sw_fence.c __i915_sw_fence_complete(wq->private, key); key 44 drivers/gpu/drm/i915/i915_sw_fence.h struct lock_class_key *key); key 832 drivers/gpu/drm/i915/intel_uncore.c #define BSEARCH(key, base, num, cmp) ({ \ key 837 drivers/gpu/drm/i915/intel_uncore.c int ret__ = (cmp)((key), (base) + mid__); \ key 938 drivers/gpu/drm/i915/intel_uncore.c static int mmio_reg_cmp(u32 key, const i915_reg_t *reg) key 942 drivers/gpu/drm/i915/intel_uncore.c if (key < offset) key 944 drivers/gpu/drm/i915/intel_uncore.c else if (key > offset) key 98 drivers/gpu/drm/i915/intel_wakeref.c struct lock_class_key *key) key 103 drivers/gpu/drm/i915/intel_wakeref.c __mutex_init(&wf->mutex, "wakeref", key); key 52 drivers/gpu/drm/i915/intel_wakeref.h struct lock_class_key *key); key 37 drivers/gpu/drm/i915/selftests/lib_sw_fence.c struct lock_class_key *key) key 41 drivers/gpu/drm/i915/selftests/lib_sw_fence.c __init_waitqueue_head(&fence->wait, name, key); key 29 drivers/gpu/drm/i915/selftests/lib_sw_fence.h struct lock_class_key *key); key 85 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c struct lock_class_key *key, int bar_nr) key 102 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c ret = nvkm_vmm_new(device, 0, bar_len, NULL, 0, key, key 1036 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c struct lock_class_key *key, const char *name, key 1051 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c __mutex_init(&vmm->mutex, "&vmm->mutex", key ? key : &_key); key 1142 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c struct lock_class_key *key, const char *name, key 1147 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c return nvkm_vmm_ctor(func, mmu, hdr, managed, addr, size, key, name, *pvmm); key 1862 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c u32 argc, struct lock_class_key *key, const char *name, key 1869 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c key, name, &vmm); key 404 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c void *argv, u32 argc, struct lock_class_key *key, key 409 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c argv, argc, key, name, pvmm); key 411 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c argv, argc, key, name, pvmm); key 420 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c void *argv, u32 argc, struct lock_class_key *key, key 424 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c size, argv, argc, key, name, pvmm); key 99 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgk104.c void *argv, u32 argc, struct lock_class_key *key, key 103 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgk104.c size, argv, argc, key, name, pvmm); key 68 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgk20a.c void *argv, u32 argc, struct lock_class_key *key, key 72 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgk20a.c size, argv, argc, key, name, pvmm); key 145 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c void *argv, u32 argc, struct lock_class_key *key, key 168 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c return nvkm_vmm_new_(func, mmu, 0, managed, addr, size, key, name, pvmm); key 173 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c void *argv, u32 argc, struct lock_class_key *key, key 177 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c size, argv, argc, key, name, pvmm); key 182 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c void *argv, u32 argc, struct lock_class_key *key, key 186 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c size, argv, argc, key, name, pvmm); key 58 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm20b.c void *argv, u32 argc, struct lock_class_key *key, key 62 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm20b.c size, argv, argc, key, name, pvmm); key 67 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm20b.c void *argv, u32 argc, struct lock_class_key *key, key 71 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm20b.c size, argv, argc, key, name, pvmm); key 510 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c void *argv, u32 argc, struct lock_class_key *key, key 528 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c ret = nvkm_vmm_new_(func, mmu, 0, managed, addr, size, key, name, pvmm); key 538 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c void *argv, u32 argc, struct lock_class_key *key, key 542 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c argv, argc, key, name, pvmm); key 46 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp10b.c void *argv, u32 argc, struct lock_class_key *key, key 50 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp10b.c argv, argc, key, name, pvmm); key 84 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgv100.c void *argv, u32 argc, struct lock_class_key *key, key 88 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgv100.c argv, argc, key, name, pvmm); key 40 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmmcp77.c void *argv, u32 argc, struct lock_class_key *key, key 44 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmmcp77.c argv, argc, key, name, pvmm); key 104 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv04.c void *argv, u32 argc, struct lock_class_key *key, key 113 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv04.c key, name, pvmm); key 122 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv04.c void *argv, u32 argc, struct lock_class_key *key, const char *name, key 130 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv04.c argv, argc, key, name, &vmm); key 108 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv41.c void *argv, u32 argc, struct lock_class_key *key, const char *name, key 112 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv41.c argv, argc, key, name, pvmm); key 209 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv44.c void *argv, u32 argc, struct lock_class_key *key, const char *name, key 217 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv44.c argv, argc, key, name, &vmm); key 380 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c void *argv, u32 argc, struct lock_class_key *key, const char *name, key 384 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c argv, argc, key, name, pvmm); key 73 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmtu102.c void *argv, u32 argc, struct lock_class_key *key, key 77 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmtu102.c argv, argc, key, name, pvmm); key 167 drivers/gpu/drm/radeon/radeon_fence.c static int radeon_fence_check_signaled(wait_queue_entry_t *wait, unsigned mode, int flags, void *key) key 62 drivers/gpu/drm/udl/udl_main.c u16 key; key 64 drivers/gpu/drm/udl/udl_main.c key = le16_to_cpu(*((u16 *) desc)); key 69 drivers/gpu/drm/udl/udl_main.c switch (key) { key 245 drivers/gpu/drm/vmwgfx/ttm_object.c ttm_base_object_noref_lookup(struct ttm_object_file *tfile, uint32_t key) key 252 drivers/gpu/drm/vmwgfx/ttm_object.c ret = drm_ht_find_item_rcu(ht, key, &hash); key 264 drivers/gpu/drm/vmwgfx/ttm_object.c uint32_t key) key 272 drivers/gpu/drm/vmwgfx/ttm_object.c ret = drm_ht_find_item_rcu(ht, key, &hash); key 285 drivers/gpu/drm/vmwgfx/ttm_object.c ttm_base_object_lookup_for_ref(struct ttm_object_device *tdev, uint32_t key) key 290 drivers/gpu/drm/vmwgfx/ttm_object.c base = idr_find(&tdev->idr, key); key 391 drivers/gpu/drm/vmwgfx/ttm_object.c ref->hash.key = base->handle; key 444 drivers/gpu/drm/vmwgfx/ttm_object.c unsigned long key, enum ttm_ref_type ref_type) key 452 drivers/gpu/drm/vmwgfx/ttm_object.c ret = drm_ht_find_item(ht, key, &hash); key 197 drivers/gpu/drm/vmwgfx/ttm_object.h *tfile, uint32_t key); key 211 drivers/gpu/drm/vmwgfx/ttm_object.h ttm_base_object_lookup_for_ref(struct ttm_object_device *tdev, uint32_t key); key 267 drivers/gpu/drm/vmwgfx/ttm_object.h unsigned long key, key 363 drivers/gpu/drm/vmwgfx/ttm_object.h ttm_base_object_noref_lookup(struct ttm_object_file *tfile, uint32_t key); key 86 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c unsigned long key = user_key | (res_type << 24); key 88 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c ret = drm_ht_find_item(&man->resources, key, &hash); key 210 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c cres->hash.key = user_key | (res_type << 24); key 278 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c bo_node->hash.key = (unsigned long) vbo; key 333 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c node->hash.key = (unsigned long) res; key 204 drivers/hid/hid-apple.c if (test_bit(trans->from, input->key)) key 206 drivers/hid/hid-apple.c else if (test_bit(trans->to, input->key)) key 142 drivers/hid/hid-appleir.c int key = (data >> 1) & KEY_MASK; key 146 drivers/hid/hid-appleir.c key = -key; key 148 drivers/hid/hid-appleir.c return key; key 151 drivers/hid/hid-appleir.c static void key_up(struct hid_device *hid, struct appleir *appleir, int key) key 153 drivers/hid/hid-appleir.c input_report_key(appleir->input_dev, key, 0); key 157 drivers/hid/hid-appleir.c static void key_down(struct hid_device *hid, struct appleir *appleir, int key) key 159 drivers/hid/hid-appleir.c input_report_key(appleir->input_dev, key, 1); key 2564 drivers/hid/hid-core.c if (hidinput->input->key[i]) key 154 drivers/hid/hid-creative-sb0540.c int key; key 170 drivers/hid/hid-creative-sb0540.c key = get_key(creative_sb0540, main_code); key 171 drivers/hid/hid-creative-sb0540.c if (key == 0 || key == KEY_RESERVED) { key 177 drivers/hid/hid-creative-sb0540.c input_report_key(creative_sb0540->input_dev, key, 1); key 178 drivers/hid/hid-creative-sb0540.c input_report_key(creative_sb0540->input_dev, key, 0); key 1389 drivers/hid/hid-input.c (!test_bit(usage->code, input->key)) == value) key 157 drivers/hid/hid-magicmouse.c int last_state = test_bit(BTN_LEFT, msc->input->key) << 0 | key 158 drivers/hid/hid-magicmouse.c test_bit(BTN_RIGHT, msc->input->key) << 1 | key 159 drivers/hid/hid-magicmouse.c test_bit(BTN_MIDDLE, msc->input->key) << 2; key 264 drivers/hid/hid-microsoft.c unsigned int key = 0; key 266 drivers/hid/hid-microsoft.c case 0x01: key = KEY_F14; break; key 267 drivers/hid/hid-microsoft.c case 0x02: key = KEY_F15; break; key 268 drivers/hid/hid-microsoft.c case 0x04: key = KEY_F16; break; key 269 drivers/hid/hid-microsoft.c case 0x08: key = KEY_F17; break; key 270 drivers/hid/hid-microsoft.c case 0x10: key = KEY_F18; break; key 272 drivers/hid/hid-microsoft.c if (key) { key 273 drivers/hid/hid-microsoft.c input_event(input, usage->type, key, 1); key 274 drivers/hid/hid-microsoft.c last_key = key; key 383 drivers/hid/hid-prodikeys.c unsigned key; key 402 drivers/hid/hid-prodikeys.c key = 0; key 427 drivers/hid/hid-prodikeys.c key = KEY_MESSENGER; key 430 drivers/hid/hid-prodikeys.c key = KEY_CALENDAR; key 433 drivers/hid/hid-prodikeys.c key = KEY_ADDRESSBOOK; key 436 drivers/hid/hid-prodikeys.c key = KEY_DOCUMENTS; key 439 drivers/hid/hid-prodikeys.c key = KEY_WORDPROCESSOR; key 442 drivers/hid/hid-prodikeys.c key = KEY_SPREADSHEET; key 445 drivers/hid/hid-prodikeys.c key = KEY_COFFEE; key 448 drivers/hid/hid-prodikeys.c key = KEY_HELP; key 451 drivers/hid/hid-prodikeys.c key = KEY_SEND; key 454 drivers/hid/hid-prodikeys.c key = KEY_REPLY; key 457 drivers/hid/hid-prodikeys.c key = KEY_FORWARDMAIL; key 460 drivers/hid/hid-prodikeys.c key = KEY_NEW; key 463 drivers/hid/hid-prodikeys.c key = KEY_OPEN; key 466 drivers/hid/hid-prodikeys.c key = KEY_CLOSE; key 469 drivers/hid/hid-prodikeys.c key = KEY_SAVE; key 472 drivers/hid/hid-prodikeys.c key = KEY_UNDO; key 475 drivers/hid/hid-prodikeys.c key = KEY_REDO; key 478 drivers/hid/hid-prodikeys.c key = KEY_SPELLCHECK; key 481 drivers/hid/hid-prodikeys.c key = KEY_PRINT; key 484 drivers/hid/hid-prodikeys.c if (key) { key 485 drivers/hid/hid-prodikeys.c input_event(pm->input_ep82, EV_KEY, key, 1); key 486 drivers/hid/hid-prodikeys.c pm->last_key[bit_index] = key; key 49 drivers/hid/hid-roccat-kone.c roccat_report.key = 0; key 806 drivers/hid/hid-roccat-kone.c roccat_report.key = 0; key 815 drivers/hid/hid-roccat-kone.c roccat_report.key = event->macro_key; key 15 drivers/hid/hid-roccat-kone.h uint8_t key; key 188 drivers/hid/hid-roccat-kone.h uint8_t key; /* macro key on overlong macro execution */ key 270 drivers/hid/hid-roccat-pyra.c roccat_report.key = 0; key 519 drivers/hid/hid-roccat-pyra.c roccat_report.key = 0; key 528 drivers/hid/hid-roccat-pyra.c roccat_report.key = button_event->data1; key 137 drivers/hid/hid-roccat-pyra.h uint8_t key; key 683 drivers/hid/hid-sony.c unsigned int key = usage->hid & HID_USAGE; key 690 drivers/hid/hid-sony.c if (key >= ARRAY_SIZE(ps3remote_keymap_joypad_buttons)) key 693 drivers/hid/hid-sony.c key = ps3remote_keymap_joypad_buttons[key]; key 694 drivers/hid/hid-sony.c if (!key) key 698 drivers/hid/hid-sony.c if (key >= ARRAY_SIZE(ps3remote_keymap_remote_buttons)) key 701 drivers/hid/hid-sony.c key = ps3remote_keymap_remote_buttons[key]; key 702 drivers/hid/hid-sony.c if (!key) key 709 drivers/hid/hid-sony.c hid_map_usage_clear(hi, usage, bit, max, EV_KEY, key); key 718 drivers/hid/hid-sony.c unsigned int key = usage->hid & HID_USAGE; key 720 drivers/hid/hid-sony.c if (key >= ARRAY_SIZE(sixaxis_keymap)) key 723 drivers/hid/hid-sony.c key = navigation_keymap[key]; key 724 drivers/hid/hid-sony.c if (!key) key 727 drivers/hid/hid-sony.c hid_map_usage_clear(hi, usage, bit, max, EV_KEY, key); key 766 drivers/hid/hid-sony.c unsigned int key = usage->hid & HID_USAGE; key 768 drivers/hid/hid-sony.c if (key >= ARRAY_SIZE(sixaxis_keymap)) key 771 drivers/hid/hid-sony.c key = sixaxis_keymap[key]; key 772 drivers/hid/hid-sony.c hid_map_usage_clear(hi, usage, bit, max, EV_KEY, key); key 814 drivers/hid/hid-sony.c unsigned int key = usage->hid & HID_USAGE; key 816 drivers/hid/hid-sony.c if (key >= ARRAY_SIZE(ds4_keymap)) key 819 drivers/hid/hid-sony.c key = ds4_keymap[key]; key 820 drivers/hid/hid-sony.c hid_map_usage_clear(hi, usage, bit, max, EV_KEY, key); key 1329 drivers/hid/hid-sony.c unsigned int key = usage->hid & HID_USAGE; key 1336 drivers/hid/hid-sony.c if (key >= ARRAY_SIZE(buzz_keymap)) key 1339 drivers/hid/hid-sony.c key = buzz_keymap[key]; key 1340 drivers/hid/hid-sony.c if (!key) key 1347 drivers/hid/hid-sony.c hid_map_usage_clear(hi, usage, bit, max, EV_KEY, key); key 62 drivers/hid/hid-uclogic-core.c if (test_bit(BTN_TOUCH, input->key)) { key 114 drivers/hid/hid-zydacron.c unsigned key; key 121 drivers/hid/hid-zydacron.c key = zc->last_key[index]; key 122 drivers/hid/hid-zydacron.c if (key) { key 123 drivers/hid/hid-zydacron.c input_event(zc->input_ep81, EV_KEY, key, 0); key 128 drivers/hid/hid-zydacron.c key = 0; key 134 drivers/hid/hid-zydacron.c key = KEY_MODE; key 138 drivers/hid/hid-zydacron.c key = KEY_SCREEN; key 142 drivers/hid/hid-zydacron.c key = KEY_INFO; key 146 drivers/hid/hid-zydacron.c key = KEY_RADIO; key 151 drivers/hid/hid-zydacron.c if (key) { key 152 drivers/hid/hid-zydacron.c input_event(zc->input_ep81, EV_KEY, key, 1); key 153 drivers/hid/hid-zydacron.c zc->last_key[index] = key; key 1239 drivers/hid/wacom_wac.c return test_bit(BTN_TOUCH, input->key) && key 3889 drivers/hid/wacom_wac.c int key = wacom_numbered_button_to_key(i); key 3891 drivers/hid/wacom_wac.c if (key) key 3892 drivers/hid/wacom_wac.c __set_bit(key, input_dev->keybit); key 3999 drivers/hid/wacom_wac.c int key = wacom_numbered_button_to_key(i); key 4001 drivers/hid/wacom_wac.c if (key) key 4002 drivers/hid/wacom_wac.c input_report_key(input_dev, key, mask & (1 << i)); key 234 drivers/hv/hv_kvp.c if (data->data.key[0] == 0) key 461 drivers/hv/hv_kvp.c (wchar_t *)in_msg->body.kvp_set.data.key, key 464 drivers/hv/hv_kvp.c message->body.kvp_set.data.key, key 472 drivers/hv/hv_kvp.c (wchar_t *)in_msg->body.kvp_get.data.key, key 475 drivers/hv/hv_kvp.c message->body.kvp_get.data.key, key 482 drivers/hv/hv_kvp.c (wchar_t *)in_msg->body.kvp_delete.key, key 485 drivers/hv/hv_kvp.c message->body.kvp_delete.key, key 588 drivers/hv/hv_kvp.c key_name = msg_to_host->body.kvp_enum_data.data.key; key 597 drivers/hv/hv_kvp.c (wchar_t *) kvp_data->key, key 110 drivers/hwmon/applesmc.c char key[5]; /* four-letter key code */ key 209 drivers/hwmon/applesmc.c static int send_argument(const char *key) key 214 drivers/hwmon/applesmc.c if (send_byte(key[i], APPLESMC_DATA_PORT)) key 219 drivers/hwmon/applesmc.c static int read_smc(u8 cmd, const char *key, u8 *buffer, u8 len) key 224 drivers/hwmon/applesmc.c if (send_command(cmd) || send_argument(key)) { key 225 drivers/hwmon/applesmc.c pr_warn("%.4s: read arg fail\n", key); key 231 drivers/hwmon/applesmc.c pr_warn("%.4s: read len fail\n", key); key 237 drivers/hwmon/applesmc.c pr_warn("%.4s: read data[%d] fail\n", key, i); key 257 drivers/hwmon/applesmc.c static int write_smc(u8 cmd, const char *key, const u8 *buffer, u8 len) key 261 drivers/hwmon/applesmc.c if (send_command(cmd) || send_argument(key)) { key 262 drivers/hwmon/applesmc.c pr_warn("%s: write arg fail\n", key); key 267 drivers/hwmon/applesmc.c pr_warn("%.4s: write len fail\n", key); key 273 drivers/hwmon/applesmc.c pr_warn("%s: write data fail\n", key); key 309 drivers/hwmon/applesmc.c ret = read_smc(APPLESMC_READ_CMD, entry->key, buf, len); key 323 drivers/hwmon/applesmc.c ret = write_smc(APPLESMC_WRITE_CMD, entry->key, buf, len); key 331 drivers/hwmon/applesmc.c u8 key[4], info[6]; key 343 drivers/hwmon/applesmc.c ret = read_smc(APPLESMC_GET_KEY_BY_INDEX_CMD, (u8 *)&be, key, 4); key 346 drivers/hwmon/applesmc.c ret = read_smc(APPLESMC_GET_KEY_TYPE_CMD, key, info, 6); key 350 drivers/hwmon/applesmc.c memcpy(cache->key, key, 4); key 363 drivers/hwmon/applesmc.c static int applesmc_get_lower_bound(unsigned int *lo, const char *key) key 375 drivers/hwmon/applesmc.c if (strcmp(entry->key, key) < 0) key 385 drivers/hwmon/applesmc.c static int applesmc_get_upper_bound(unsigned int *hi, const char *key) key 397 drivers/hwmon/applesmc.c if (strcmp(key, entry->key) < 0) key 407 drivers/hwmon/applesmc.c static const struct applesmc_entry *applesmc_get_entry_by_key(const char *key) key 412 drivers/hwmon/applesmc.c ret = applesmc_get_lower_bound(&begin, key); key 415 drivers/hwmon/applesmc.c ret = applesmc_get_upper_bound(&end, key); key 424 drivers/hwmon/applesmc.c static int applesmc_read_key(const char *key, u8 *buffer, u8 len) key 428 drivers/hwmon/applesmc.c entry = applesmc_get_entry_by_key(key); key 435 drivers/hwmon/applesmc.c static int applesmc_write_key(const char *key, const u8 *buffer, u8 len) key 439 drivers/hwmon/applesmc.c entry = applesmc_get_entry_by_key(key); key 446 drivers/hwmon/applesmc.c static int applesmc_has_key(const char *key, bool *value) key 450 drivers/hwmon/applesmc.c entry = applesmc_get_entry_by_key(key); key 461 drivers/hwmon/applesmc.c static int applesmc_read_s16(const char *key, s16 *value) key 466 drivers/hwmon/applesmc.c ret = applesmc_read_key(key, buffer, 2); key 516 drivers/hwmon/applesmc.c s->index[s->index_count++] = entry->key; key 773 drivers/hwmon/applesmc.c const char *key = smcreg.index[to_index(devattr)]; key 775 drivers/hwmon/applesmc.c return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", key); key 782 drivers/hwmon/applesmc.c const char *key = smcreg.index[to_index(devattr)]; key 787 drivers/hwmon/applesmc.c ret = applesmc_read_s16(key, &value); key 1007 drivers/hwmon/applesmc.c return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", entry->key); key 282 drivers/ide/ide-cd_verbose.c unsigned long key = (sense->sense_key << 16); key 284 drivers/ide/ide-cd_verbose.c key |= (sense->asc << 8); key 286 drivers/ide/ide-cd_verbose.c key |= sense->ascq; key 291 drivers/ide/ide-cd_verbose.c if (sense_data_texts[mid].asc_ascq == key || key 292 drivers/ide/ide-cd_verbose.c sense_data_texts[mid].asc_ascq == (0xff0000|key)) { key 295 drivers/ide/ide-cd_verbose.c } else if (sense_data_texts[mid].asc_ascq > key) key 183 drivers/infiniband/core/rdma_core.h char *uapi_key_format(char *S, unsigned int key); key 436 drivers/infiniband/core/rw.c ctx->reg->reg_wr.key = ctx->reg->mr->lkey; key 481 drivers/infiniband/core/rw.c reg->reg_wr.key = reg->mr->lkey; key 527 drivers/infiniband/core/sa_query.c { SERVICE_REC_FIELD(key), key 16 drivers/infiniband/core/uverbs_uapi.c static void *uapi_add_elm(struct uverbs_api *uapi, u32 key, size_t alloc_size) key 21 drivers/infiniband/core/uverbs_uapi.c if (key == UVERBS_API_KEY_ERR) key 27 drivers/infiniband/core/uverbs_uapi.c rc = radix_tree_insert(&uapi->radix, key, elm); key 36 drivers/infiniband/core/uverbs_uapi.c static void *uapi_add_get_elm(struct uverbs_api *uapi, u32 key, key 41 drivers/infiniband/core/uverbs_uapi.c elm = uapi_add_elm(uapi, key, alloc_size); key 50 drivers/infiniband/core/uverbs_uapi.c elm = radix_tree_lookup(&uapi->radix, key); key 509 drivers/infiniband/core/uverbs_uapi.c static void uapi_key_okay(u32 key) key 513 drivers/infiniband/core/uverbs_uapi.c if (uapi_key_is_object(key)) key 515 drivers/infiniband/core/uverbs_uapi.c if (uapi_key_is_ioctl_method(key)) key 517 drivers/infiniband/core/uverbs_uapi.c if (uapi_key_is_write_method(key)) key 519 drivers/infiniband/core/uverbs_uapi.c if (uapi_key_is_write_ex_method(key)) key 521 drivers/infiniband/core/uverbs_uapi.c if (uapi_key_is_attr(key)) key 523 drivers/infiniband/core/uverbs_uapi.c WARN(count != 1, "Bad count %d key=%x", count, key); key 2206 drivers/infiniband/hw/bnxt_re/ib_verbs.c wqe->frmr.l_key = wr->key; key 577 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.key = cpu_to_le32(mrw->rkey); key 579 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.key = cpu_to_le32(mrw->lkey); key 725 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.key = cpu_to_le32(mr->lkey); key 1410 drivers/infiniband/hw/bnxt_re/roce_hsi.h __le32 key; key 1465 drivers/infiniband/hw/bnxt_re/roce_hsi.h __le32 key; key 496 drivers/infiniband/hw/cxgb3/iwch_cm.c memcpy(mpa->key, MPA_KEY_REQ, sizeof(mpa->key)); key 549 drivers/infiniband/hw/cxgb3/iwch_cm.c memcpy(mpa->key, MPA_KEY_REP, sizeof(mpa->key)); key 599 drivers/infiniband/hw/cxgb3/iwch_cm.c memcpy(mpa->key, MPA_KEY_REP, sizeof(mpa->key)); key 857 drivers/infiniband/hw/cxgb3/iwch_cm.c if (memcmp(mpa->key, MPA_KEY_REP, sizeof(mpa->key))) { key 989 drivers/infiniband/hw/cxgb3/iwch_cm.c if (memcmp(mpa->key, MPA_KEY_REQ, sizeof(mpa->key))) { key 70 drivers/infiniband/hw/cxgb3/iwch_cm.h u8 key[16]; key 174 drivers/infiniband/hw/cxgb3/iwch_provider.c uresp.key = ucontext->key; key 175 drivers/infiniband/hw/cxgb3/iwch_provider.c ucontext->key += PAGE_SIZE; key 177 drivers/infiniband/hw/cxgb3/iwch_provider.c mm->key = uresp.key; key 240 drivers/infiniband/hw/cxgb3/iwch_provider.c u32 key = vma->vm_pgoff << PAGE_SHIFT; key 248 drivers/infiniband/hw/cxgb3/iwch_provider.c key, len); key 257 drivers/infiniband/hw/cxgb3/iwch_provider.c mm = remove_mmap(ucontext, key, len); key 824 drivers/infiniband/hw/cxgb3/iwch_provider.c uresp.key = ucontext->key; key 825 drivers/infiniband/hw/cxgb3/iwch_provider.c ucontext->key += PAGE_SIZE; key 826 drivers/infiniband/hw/cxgb3/iwch_provider.c uresp.db_key = ucontext->key; key 827 drivers/infiniband/hw/cxgb3/iwch_provider.c ucontext->key += PAGE_SIZE; key 835 drivers/infiniband/hw/cxgb3/iwch_provider.c mm1->key = uresp.key; key 839 drivers/infiniband/hw/cxgb3/iwch_provider.c mm2->key = uresp.db_key; key 189 drivers/infiniband/hw/cxgb3/iwch_provider.h u32 key; key 202 drivers/infiniband/hw/cxgb3/iwch_provider.h u32 key; key 207 drivers/infiniband/hw/cxgb3/iwch_provider.h u32 key, unsigned len) key 216 drivers/infiniband/hw/cxgb3/iwch_provider.h if (mm->key == key && mm->len == len) { key 220 drivers/infiniband/hw/cxgb3/iwch_provider.h __func__, key, key 234 drivers/infiniband/hw/cxgb3/iwch_provider.h __func__, mm->key, (unsigned long long)mm->addr, mm->len); key 159 drivers/infiniband/hw/cxgb3/iwch_qp.c wqe->fastreg.stag = cpu_to_be32(wr->key); key 976 drivers/infiniband/hw/cxgb4/cm.c memcpy(mpa->key, MPA_KEY_REQ, sizeof(mpa->key)); key 1083 drivers/infiniband/hw/cxgb4/cm.c memcpy(mpa->key, MPA_KEY_REP, sizeof(mpa->key)); key 1163 drivers/infiniband/hw/cxgb4/cm.c memcpy(mpa->key, MPA_KEY_REP, sizeof(mpa->key)); key 1503 drivers/infiniband/hw/cxgb4/cm.c if (memcmp(mpa->key, MPA_KEY_REP, sizeof(mpa->key))) { key 1748 drivers/infiniband/hw/cxgb4/cm.c if (memcmp(mpa->key, MPA_KEY_REQ, sizeof(mpa->key))) key 1100 drivers/infiniband/hw/cxgb4/cq.c uresp.key = ucontext->key; key 1101 drivers/infiniband/hw/cxgb4/cq.c ucontext->key += PAGE_SIZE; key 1102 drivers/infiniband/hw/cxgb4/cq.c uresp.gts_key = ucontext->key; key 1103 drivers/infiniband/hw/cxgb4/cq.c ucontext->key += PAGE_SIZE; key 1117 drivers/infiniband/hw/cxgb4/cq.c mm->key = uresp.key; key 1122 drivers/infiniband/hw/cxgb4/cq.c mm2->key = uresp.gts_key; key 530 drivers/infiniband/hw/cxgb4/iw_cxgb4.h u32 key; key 544 drivers/infiniband/hw/cxgb4/iw_cxgb4.h u32 key; key 549 drivers/infiniband/hw/cxgb4/iw_cxgb4.h u32 key, unsigned len) key 558 drivers/infiniband/hw/cxgb4/iw_cxgb4.h if (mm->key == key && mm->len == len) { key 561 drivers/infiniband/hw/cxgb4/iw_cxgb4.h pr_debug("key 0x%x addr 0x%llx len %d\n", key, key 575 drivers/infiniband/hw/cxgb4/iw_cxgb4.h mm->key, (unsigned long long)mm->addr, mm->len); key 706 drivers/infiniband/hw/cxgb4/iw_cxgb4.h u8 key[16]; key 280 drivers/infiniband/hw/cxgb4/mem.c static atomic_t key; key 306 drivers/infiniband/hw/cxgb4/mem.c *stag = (stag_idx << 8) | (atomic_inc_return(&key) & 0xff); key 103 drivers/infiniband/hw/cxgb4/provider.c uresp.status_page_key = context->key; key 104 drivers/infiniband/hw/cxgb4/provider.c context->key += PAGE_SIZE; key 112 drivers/infiniband/hw/cxgb4/provider.c mm->key = uresp.status_page_key; key 127 drivers/infiniband/hw/cxgb4/provider.c u32 key = vma->vm_pgoff << PAGE_SHIFT; key 135 drivers/infiniband/hw/cxgb4/provider.c key, len); key 143 drivers/infiniband/hw/cxgb4/provider.c mm = remove_mmap(ucontext, key, len); key 838 drivers/infiniband/hw/cxgb4/qp.c wqe->fr.stag = cpu_to_be32(wr->key); key 2273 drivers/infiniband/hw/cxgb4/qp.c uresp.ma_sync_key = ucontext->key; key 2274 drivers/infiniband/hw/cxgb4/qp.c ucontext->key += PAGE_SIZE; key 2276 drivers/infiniband/hw/cxgb4/qp.c uresp.sq_key = ucontext->key; key 2277 drivers/infiniband/hw/cxgb4/qp.c ucontext->key += PAGE_SIZE; key 2279 drivers/infiniband/hw/cxgb4/qp.c uresp.rq_key = ucontext->key; key 2280 drivers/infiniband/hw/cxgb4/qp.c ucontext->key += PAGE_SIZE; key 2282 drivers/infiniband/hw/cxgb4/qp.c uresp.sq_db_gts_key = ucontext->key; key 2283 drivers/infiniband/hw/cxgb4/qp.c ucontext->key += PAGE_SIZE; key 2285 drivers/infiniband/hw/cxgb4/qp.c uresp.rq_db_gts_key = ucontext->key; key 2286 drivers/infiniband/hw/cxgb4/qp.c ucontext->key += PAGE_SIZE; key 2292 drivers/infiniband/hw/cxgb4/qp.c sq_key_mm->key = uresp.sq_key; key 2297 drivers/infiniband/hw/cxgb4/qp.c rq_key_mm->key = uresp.rq_key; key 2302 drivers/infiniband/hw/cxgb4/qp.c sq_db_key_mm->key = uresp.sq_db_gts_key; key 2307 drivers/infiniband/hw/cxgb4/qp.c rq_db_key_mm->key = uresp.rq_db_gts_key; key 2314 drivers/infiniband/hw/cxgb4/qp.c ma_sync_key_mm->key = uresp.ma_sync_key; key 2759 drivers/infiniband/hw/cxgb4/qp.c uresp.srq_key = ucontext->key; key 2760 drivers/infiniband/hw/cxgb4/qp.c ucontext->key += PAGE_SIZE; key 2761 drivers/infiniband/hw/cxgb4/qp.c uresp.srq_db_gts_key = ucontext->key; key 2762 drivers/infiniband/hw/cxgb4/qp.c ucontext->key += PAGE_SIZE; key 2767 drivers/infiniband/hw/cxgb4/qp.c srq_key_mm->key = uresp.srq_key; key 2771 drivers/infiniband/hw/cxgb4/qp.c srq_db_key_mm->key = uresp.srq_db_gts_key; key 206 drivers/infiniband/hw/efa/efa_verbs.c u64 key, u64 len) key 211 drivers/infiniband/hw/efa/efa_verbs.c mmap_page = (key & EFA_MMAP_PAGE_MASK) >> PAGE_SHIFT; key 216 drivers/infiniband/hw/efa/efa_verbs.c if (!entry || get_mmap_key(entry) != key || entry->length != len) key 221 drivers/infiniband/hw/efa/efa_verbs.c entry->obj, key, entry->address, entry->length); key 1593 drivers/infiniband/hw/efa/efa_verbs.c struct vm_area_struct *vma, u64 key, u64 length) key 1600 drivers/infiniband/hw/efa/efa_verbs.c entry = mmap_entry_get(dev, ucontext, key, length); key 1603 drivers/infiniband/hw/efa/efa_verbs.c key); key 1650 drivers/infiniband/hw/efa/efa_verbs.c u64 key = vma->vm_pgoff << PAGE_SHIFT; key 1654 drivers/infiniband/hw/efa/efa_verbs.c vma->vm_start, vma->vm_end, length, key); key 1668 drivers/infiniband/hw/efa/efa_verbs.c return __efa_mmap(dev, ucontext, vma, key, length); key 451 drivers/infiniband/hw/hfi1/mad.c void hfi1_bad_pkey(struct hfi1_ibport *ibp, u32 key, u32 sl, key 468 drivers/infiniband/hw/hfi1/mad.c trap->data.ntc_257_258.key = cpu_to_be32(key); key 1698 drivers/infiniband/hw/hfi1/mad.c u16 key = pkeys[i]; key 1701 drivers/infiniband/hw/hfi1/mad.c if (key == okey) key 1708 drivers/infiniband/hw/hfi1/mad.c ppd->pkeys[i] = key; key 141 drivers/infiniband/hw/hfi1/mad.h __be32 key; key 326 drivers/infiniband/hw/hfi1/verbs.h void hfi1_bad_pkey(struct hfi1_ibport *ibp, u32 key, u32 sl, key 389 drivers/infiniband/hw/hns/hns_roce_device.h u32 key; /* Key of MR */ key 1203 drivers/infiniband/hw/hns/hns_roce_device.h unsigned long key_to_hw_index(u32 key); key 1078 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->qpn, ret, hr_mr->key, ne); key 1089 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_mr->key, ne); key 1114 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (hns_roce_hw2sw_mpt(hr_dev, NULL, key_to_hw_index(mr->key) key 1146 drivers/infiniband/hw/hns/hns_roce_hw_v1.c dev_warn(dev, "Free mr work 0x%x over 50s and failed!\n", mr->key); key 1151 drivers/infiniband/hw/hns/hns_roce_hw_v1.c mr->key, jiffies_to_usecs(jiffies) - jiffies_to_usecs(start)); key 1160 drivers/infiniband/hw/hns/hns_roce_hw_v1.c key_to_hw_index(mr->key), 0); key 1845 drivers/infiniband/hw/hns/hns_roce_hw_v1.c MPT_BYTE_4_KEY_S, mr->key); key 88 drivers/infiniband/hw/hns/hns_roce_hw_v2.c rc_sq_wqe->rkey = cpu_to_le32(wr->key); key 2310 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->lkey = cpu_to_le32(mr->key); key 46 drivers/infiniband/hw/hns/hns_roce_mr.c unsigned long key_to_hw_index(u32 key) key 48 drivers/infiniband/hw/hns/hns_roce_mr.c return (key << 24) | (key >> 8); key 589 drivers/infiniband/hw/hns/hns_roce_mr.c mr->key = hw_index_to_key(index); /* MR key */ key 710 drivers/infiniband/hw/hns/hns_roce_mr.c ret = hns_roce_hw2sw_mpt(hr_dev, NULL, key_to_hw_index(mr->key) key 730 drivers/infiniband/hw/hns/hns_roce_mr.c key_to_hw_index(mr->key)); key 733 drivers/infiniband/hw/hns/hns_roce_mr.c key_to_hw_index(mr->key), BITMAP_NO_RR); key 740 drivers/infiniband/hw/hns/hns_roce_mr.c unsigned long mtpt_idx = key_to_hw_index(mr->key); key 1006 drivers/infiniband/hw/hns/hns_roce_mr.c mr->ibmr.rkey = mr->ibmr.lkey = mr->key; key 1193 drivers/infiniband/hw/hns/hns_roce_mr.c mr->ibmr.rkey = mr->ibmr.lkey = mr->key; key 1304 drivers/infiniband/hw/hns/hns_roce_mr.c mtpt_idx = key_to_hw_index(mr->key) & (hr_dev->caps.num_mtpts - 1); key 1412 drivers/infiniband/hw/hns/hns_roce_mr.c mr->ibmr.rkey = mr->ibmr.lkey = mr->key; key 742 drivers/infiniband/hw/i40iw/i40iw_cm.c memcpy(mpa_frame->key, IEFT_MPA_KEY_REQ, IETF_MPA_KEY_SIZE); key 745 drivers/infiniband/hw/i40iw/i40iw_cm.c memcpy(mpa_frame->key, IEFT_MPA_KEY_REP, IETF_MPA_KEY_SIZE); key 947 drivers/infiniband/hw/i40iw/i40iw_cm.c if (memcmp(mpa_frame->key, IEFT_MPA_KEY_REQ, IETF_MPA_KEY_SIZE)) { key 952 drivers/infiniband/hw/i40iw/i40iw_cm.c if (memcmp(mpa_frame->key, IEFT_MPA_KEY_REP, IETF_MPA_KEY_SIZE)) { key 84 drivers/infiniband/hw/i40iw/i40iw_cm.h u8 key[IETF_MPA_KEY_SIZE]; key 99 drivers/infiniband/hw/i40iw/i40iw_cm.h u8 key[IETF_MPA_KEY_SIZE]; key 2243 drivers/infiniband/hw/i40iw/i40iw_verbs.c info.stag_key = reg_wr(ib_wr)->key & 0xff; key 2244 drivers/infiniband/hw/i40iw/i40iw_verbs.c info.stag_idx = reg_wr(ib_wr)->key >> 8; key 76 drivers/infiniband/hw/mlx4/mr.c mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key; key 440 drivers/infiniband/hw/mlx4/mr.c mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key; key 634 drivers/infiniband/hw/mlx4/mr.c mw->ibmw.rkey = mw->mmw.key; key 686 drivers/infiniband/hw/mlx4/mr.c mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key; key 722 drivers/infiniband/hw/mlx4/mr.c fmr->ibfmr.rkey = fmr->ibfmr.lkey = fmr->mfmr.mr.key; key 3324 drivers/infiniband/hw/mlx4/qp.c fseg->mem_key = cpu_to_be32(wr->key); key 383 drivers/infiniband/hw/mlx5/cq.c item->key = be32_to_cpu(cqe->mkey); key 557 drivers/infiniband/hw/mlx5/cq.c cq->mcq.cqn, mr->sig->err_item.key, key 1255 drivers/infiniband/hw/mlx5/devx.c u8 key; key 1259 drivers/infiniband/hw/mlx5/devx.c key = MLX5_GET(mkc, mkc, mkey_7_0); key 1260 drivers/infiniband/hw/mlx5/devx.c mkey->key = mlx5_idx_to_mkey( key 1261 drivers/infiniband/hw/mlx5/devx.c MLX5_GET(create_mkey_out, out, mkey_index)) | key; key 1269 drivers/infiniband/hw/mlx5/devx.c mlx5_base_mkey(mkey->key), mkey, GFP_KERNEL)); key 1349 drivers/infiniband/hw/mlx5/devx.c mlx5_base_mkey(obj->devx_mr.mmkey.key)); key 2916 drivers/infiniband/hw/mlx5/main.c &ib_spec->gre.mask.key, key 2917 drivers/infiniband/hw/mlx5/main.c sizeof(ib_spec->gre.mask.key)); key 2920 drivers/infiniband/hw/mlx5/main.c &ib_spec->gre.val.key, key 2921 drivers/infiniband/hw/mlx5/main.c sizeof(ib_spec->gre.val.key)); key 95 drivers/infiniband/hw/mlx5/mr.c u8 key; key 113 drivers/infiniband/hw/mlx5/mr.c key = dev->mdev->priv.mkey_key++; key 115 drivers/infiniband/hw/mlx5/mr.c mr->mmkey.key = mlx5_idx_to_mkey(MLX5_GET(create_mkey_out, mr->out, mkey_index)) | key; key 126 drivers/infiniband/hw/mlx5/mr.c err = xa_err(__xa_store(mkeys, mlx5_base_mkey(mr->mmkey.key), key 722 drivers/infiniband/hw/mlx5/mr.c mr->ibmr.lkey = mr->mmkey.key; key 723 drivers/infiniband/hw/mlx5/mr.c mr->ibmr.rkey = mr->mmkey.key; key 996 drivers/infiniband/hw/mlx5/mr.c wr.mkey = mr->mmkey.key; key 1122 drivers/infiniband/hw/mlx5/mr.c mlx5_ib_dbg(dev, "mkey = 0x%x\n", mr->mmkey.key); key 1141 drivers/infiniband/hw/mlx5/mr.c mr->ibmr.lkey = mr->mmkey.key; key 1142 drivers/infiniband/hw/mlx5/mr.c mr->ibmr.rkey = mr->mmkey.key; key 1318 drivers/infiniband/hw/mlx5/mr.c mlx5_ib_dbg(dev, "mkey 0x%x\n", mr->mmkey.key); key 1363 drivers/infiniband/hw/mlx5/mr.c umrwr.mkey = mr->mmkey.key; key 1379 drivers/infiniband/hw/mlx5/mr.c umrwr.mkey = mr->mmkey.key; key 1681 drivers/infiniband/hw/mlx5/mr.c mr->ibmr.lkey = mr->mmkey.key; key 1682 drivers/infiniband/hw/mlx5/mr.c mr->ibmr.rkey = mr->mmkey.key; key 1941 drivers/infiniband/hw/mlx5/mr.c mw->ibmw.rkey = mw->mmkey.key; key 1971 drivers/infiniband/hw/mlx5/mr.c mlx5_base_mkey(mmw->mmkey.key)); key 2010 drivers/infiniband/hw/mlx5/mr.c if (ibmr->lkey == mmr->sig->err_item.key) key 2016 drivers/infiniband/hw/mlx5/mr.c mr_status->sig_err.key = mmr->sig->err_item.key; key 2084 drivers/infiniband/hw/mlx5/mr.c klms[i].key = cpu_to_be32(lkey); key 2106 drivers/infiniband/hw/mlx5/mr.c klms[i + j].key = cpu_to_be32(lkey); key 175 drivers/infiniband/hw/mlx5/odp.c pklm->key = cpu_to_be32(dev->null_mkey); key 213 drivers/infiniband/hw/mlx5/odp.c pklm->key = cpu_to_be32(mtt->ibmr.lkey); key 216 drivers/infiniband/hw/mlx5/odp.c pklm->key = cpu_to_be32(dev->null_mkey); key 219 drivers/infiniband/hw/mlx5/odp.c i, va, be32_to_cpu(pklm->key)); key 460 drivers/infiniband/hw/mlx5/odp.c mr->ibmr.lkey = mr->mmkey.key; key 461 drivers/infiniband/hw/mlx5/odp.c mr->ibmr.rkey = mr->mmkey.key; key 464 drivers/infiniband/hw/mlx5/odp.c mr->mmkey.key, dev->mdev, mr); key 733 drivers/infiniband/hw/mlx5/odp.c u32 key; key 739 drivers/infiniband/hw/mlx5/odp.c static bool mkey_is_eq(struct mlx5_core_mkey *mmkey, u32 key) key 744 drivers/infiniband/hw/mlx5/odp.c return mlx5_base_mkey(mmkey->key) == mlx5_base_mkey(key); key 745 drivers/infiniband/hw/mlx5/odp.c return mmkey->key == key; key 775 drivers/infiniband/hw/mlx5/odp.c struct ib_pd *pd, u32 key, key 796 drivers/infiniband/hw/mlx5/odp.c mmkey = xa_load(&dev->mdev->priv.mkey_table, mlx5_base_mkey(key)); key 797 drivers/infiniband/hw/mlx5/odp.c if (!mkey_is_eq(mmkey, key)) { key 798 drivers/infiniband/hw/mlx5/odp.c mlx5_ib_dbg(dev, "failed to find mkey %x\n", key); key 831 drivers/infiniband/hw/mlx5/odp.c key); key 891 drivers/infiniband/hw/mlx5/odp.c frame->key = be32_to_cpu(pklm->key); key 914 drivers/infiniband/hw/mlx5/odp.c key = frame->key; key 961 drivers/infiniband/hw/mlx5/odp.c u32 key; key 975 drivers/infiniband/hw/mlx5/odp.c key = be32_to_cpu(dseg->lkey); key 989 drivers/infiniband/hw/mlx5/odp.c if (receive_queue && bcnt == 0 && key == MLX5_INVALID_LKEY && key 1009 drivers/infiniband/hw/mlx5/odp.c ret = pagefault_single_data_segment(dev, NULL, key, key 1668 drivers/infiniband/hw/mlx5/odp.c if (!mmkey || mmkey->key != sg_list[i].lkey) { key 4148 drivers/infiniband/hw/mlx5/qp.c dseg->av.key.qkey.qkey = cpu_to_be32(ud_wr(wr)->remote_qkey); key 4343 drivers/infiniband/hw/mlx5/qp.c u32 key, int access) key 4356 drivers/infiniband/hw/mlx5/qp.c seg->qpn_mkey7_0 = cpu_to_be32((key & 0xff) | 0xffffff00); key 4633 drivers/infiniband/hw/mlx5/qp.c data_klm->key = cpu_to_be32(data_key); key 4672 drivers/infiniband/hw/mlx5/qp.c data_sentry->key = cpu_to_be32(data_key); key 4677 drivers/infiniband/hw/mlx5/qp.c prot_sentry->key = cpu_to_be32(prot_key); key 4847 drivers/infiniband/hw/mlx5/qp.c set_reg_mkey_seg(*seg, mr, wr->key, wr->access); key 5076 drivers/infiniband/hw/mlx5/qp.c ctrl->imm = cpu_to_be32(reg_wr(wr)->key); key 5098 drivers/infiniband/hw/mlx5/qp.c reg_pi_wr.key = pi_mr->ibmr.rkey; key 5100 drivers/infiniband/hw/mlx5/qp.c ctrl->imm = cpu_to_be32(reg_pi_wr.key); key 197 drivers/infiniband/hw/mthca/mthca_av.c ah->key = pd->ntmr.ibmr.lkey; key 53 drivers/infiniband/hw/mthca/mthca_mr.c __be32 key; key 390 drivers/infiniband/hw/mthca/mthca_mr.c static inline u32 tavor_key_to_hw_index(u32 key) key 392 drivers/infiniband/hw/mthca/mthca_mr.c return key; key 400 drivers/infiniband/hw/mthca/mthca_mr.c static inline u32 arbel_key_to_hw_index(u32 key) key 402 drivers/infiniband/hw/mthca/mthca_mr.c return (key << 24) | (key >> 8); key 413 drivers/infiniband/hw/mthca/mthca_mr.c static inline u32 key_to_hw_index(struct mthca_dev *dev, u32 key) key 416 drivers/infiniband/hw/mthca/mthca_mr.c return arbel_key_to_hw_index(key); key 418 drivers/infiniband/hw/mthca/mthca_mr.c return tavor_key_to_hw_index(key); key 421 drivers/infiniband/hw/mthca/mthca_mr.c static inline u32 adjust_key(struct mthca_dev *dev, u32 key) key 424 drivers/infiniband/hw/mthca/mthca_mr.c return ((key << 20) & 0x800000) | (key & 0x7fffff); key 426 drivers/infiniband/hw/mthca/mthca_mr.c return key; key 434 drivers/infiniband/hw/mthca/mthca_mr.c u32 key; key 440 drivers/infiniband/hw/mthca/mthca_mr.c key = mthca_alloc(&dev->mr_table.mpt_alloc); key 441 drivers/infiniband/hw/mthca/mthca_mr.c if (key == -1) key 443 drivers/infiniband/hw/mthca/mthca_mr.c key = adjust_key(dev, key); key 444 drivers/infiniband/hw/mthca/mthca_mr.c mr->ibmr.rkey = mr->ibmr.lkey = hw_index_to_key(dev, key); key 447 drivers/infiniband/hw/mthca/mthca_mr.c err = mthca_table_get(dev, dev->mr_table.mpt_table, key); key 467 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry->key = cpu_to_be32(key); key 492 drivers/infiniband/hw/mthca/mthca_mr.c key & (dev->limits.num_mpts - 1)); key 505 drivers/infiniband/hw/mthca/mthca_mr.c mthca_table_put(dev, dev->mr_table.mpt_table, key); key 508 drivers/infiniband/hw/mthca/mthca_mr.c mthca_free(&dev->mr_table.mpt_alloc, key); key 573 drivers/infiniband/hw/mthca/mthca_mr.c u32 key, idx; key 588 drivers/infiniband/hw/mthca/mthca_mr.c key = mthca_alloc(&dev->mr_table.mpt_alloc); key 589 drivers/infiniband/hw/mthca/mthca_mr.c if (key == -1) key 591 drivers/infiniband/hw/mthca/mthca_mr.c key = adjust_key(dev, key); key 593 drivers/infiniband/hw/mthca/mthca_mr.c idx = key & (dev->limits.num_mpts - 1); key 594 drivers/infiniband/hw/mthca/mthca_mr.c mr->ibmr.rkey = mr->ibmr.lkey = hw_index_to_key(dev, key); key 597 drivers/infiniband/hw/mthca/mthca_mr.c err = mthca_table_get(dev, dev->mr_table.mpt_table, key); key 601 drivers/infiniband/hw/mthca/mthca_mr.c mr->mem.arbel.mpt = mthca_table_find(dev->mr_table.mpt_table, key, NULL); key 637 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry->key = cpu_to_be32(key); key 655 drivers/infiniband/hw/mthca/mthca_mr.c key & (dev->limits.num_mpts - 1)); key 671 drivers/infiniband/hw/mthca/mthca_mr.c mthca_table_put(dev, dev->mr_table.mpt_table, key); key 674 drivers/infiniband/hw/mthca/mthca_mr.c mthca_free(&dev->mr_table.mpt_alloc, key); key 723 drivers/infiniband/hw/mthca/mthca_mr.c u32 key; key 732 drivers/infiniband/hw/mthca/mthca_mr.c key = tavor_key_to_hw_index(fmr->ibmr.lkey); key 733 drivers/infiniband/hw/mthca/mthca_mr.c key += dev->limits.num_mpts; key 734 drivers/infiniband/hw/mthca/mthca_mr.c fmr->ibmr.lkey = fmr->ibmr.rkey = tavor_hw_index_to_key(key); key 744 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry.lkey = cpu_to_be32(key); key 748 drivers/infiniband/hw/mthca/mthca_mr.c __raw_writel((__force u32) mpt_entry.lkey, &fmr->mem.tavor.mpt->key); key 763 drivers/infiniband/hw/mthca/mthca_mr.c u32 key; key 772 drivers/infiniband/hw/mthca/mthca_mr.c key = arbel_key_to_hw_index(fmr->ibmr.lkey); key 774 drivers/infiniband/hw/mthca/mthca_mr.c key += SINAI_FMR_KEY_INC; key 776 drivers/infiniband/hw/mthca/mthca_mr.c key += dev->limits.num_mpts; key 777 drivers/infiniband/hw/mthca/mthca_mr.c fmr->ibmr.lkey = fmr->ibmr.rkey = arbel_hw_index_to_key(key); key 793 drivers/infiniband/hw/mthca/mthca_mr.c fmr->mem.arbel.mpt->key = cpu_to_be32(key); key 794 drivers/infiniband/hw/mthca/mthca_mr.c fmr->mem.arbel.mpt->lkey = cpu_to_be32(key); key 130 drivers/infiniband/hw/mthca/mthca_provider.h u32 key; key 1608 drivers/infiniband/hw/mthca/mthca_qp.c useg->lkey = cpu_to_be32(to_mah(wr->ah)->key); key 453 drivers/infiniband/hw/ocrdma/ocrdma.h } key; key 207 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c mm->key.phy_addr = phy_addr; key 208 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c mm->key.len = len; key 224 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (len != mm->key.len && phy_addr != mm->key.phy_addr) key 242 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (len != mm->key.len && phy_addr != mm->key.phy_addr) key 2061 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c hdr->lkey = wr->key; key 308 drivers/infiniband/hw/qedr/qedr.h } key; key 269 drivers/infiniband/hw/qedr/verbs.c mm->key.phy_addr = phy_addr; key 277 drivers/infiniband/hw/qedr/verbs.c mm->key.len = roundup(len, PAGE_SIZE); key 286 drivers/infiniband/hw/qedr/verbs.c (unsigned long long)mm->key.phy_addr, key 287 drivers/infiniband/hw/qedr/verbs.c (unsigned long)mm->key.len, uctx); key 300 drivers/infiniband/hw/qedr/verbs.c if (len != mm->key.len || phy_addr != mm->key.phy_addr) key 309 drivers/infiniband/hw/qedr/verbs.c mm->key.phy_addr, mm->key.len, uctx, found); key 381 drivers/infiniband/hw/qedr/verbs.c mm->key.phy_addr, mm->key.len, uctx); key 2645 drivers/infiniband/hw/qedr/verbs.c mr->hw_mr.key = 0; key 2670 drivers/infiniband/hw/qedr/verbs.c mr->ibmr.lkey = mr->hw_mr.itid << 8 | mr->hw_mr.key; key 2673 drivers/infiniband/hw/qedr/verbs.c mr->ibmr.rkey = mr->hw_mr.itid << 8 | mr->hw_mr.key; key 2742 drivers/infiniband/hw/qedr/verbs.c mr->hw_mr.key = 0; key 2766 drivers/infiniband/hw/qedr/verbs.c mr->ibmr.lkey = mr->hw_mr.itid << 8 | mr->hw_mr.key; key 2888 drivers/infiniband/hw/qedr/verbs.c mr->ibmr.lkey = mr->hw_mr.itid << 8 | mr->hw_mr.key; key 2891 drivers/infiniband/hw/qedr/verbs.c mr->ibmr.rkey = mr->hw_mr.itid << 8 | mr->hw_mr.key; key 3085 drivers/infiniband/hw/qedr/verbs.c fwqe1->l_key = wr->key; key 572 drivers/infiniband/hw/qib/qib_file_ops.c static int qib_set_part_key(struct qib_ctxtdata *rcd, u16 key) key 577 drivers/infiniband/hw/qib/qib_file_ops.c u16 lkey = key & 0x7FFF; key 592 drivers/infiniband/hw/qib/qib_file_ops.c key |= 0x8000; key 597 drivers/infiniband/hw/qib/qib_file_ops.c if (rcd->pkeys[i] == key) key 607 drivers/infiniband/hw/qib/qib_file_ops.c if (ppd->pkeys[i] == key) { key 611 drivers/infiniband/hw/qib/qib_file_ops.c rcd->pkeys[pidx] = key; key 633 drivers/infiniband/hw/qib/qib_file_ops.c rcd->pkeys[pidx] = key; key 634 drivers/infiniband/hw/qib/qib_file_ops.c ppd->pkeys[i] = key; key 139 drivers/infiniband/hw/qib/qib_mad.c void qib_bad_pkey(struct qib_ibport *ibp, u32 key, u32 sl, key 157 drivers/infiniband/hw/qib/qib_mad.c data.details.ntc_257_258.key = cpu_to_be32(key); key 895 drivers/infiniband/hw/qib/qib_mad.c static int rm_pkey(struct qib_pportdata *ppd, u16 key) key 901 drivers/infiniband/hw/qib/qib_mad.c if (ppd->pkeys[i] != key) key 925 drivers/infiniband/hw/qib/qib_mad.c static int add_pkey(struct qib_pportdata *ppd, u16 key) key 928 drivers/infiniband/hw/qib/qib_mad.c u16 lkey = key & 0x7FFF; key 944 drivers/infiniband/hw/qib/qib_mad.c if (ppd->pkeys[i] == key) { key 971 drivers/infiniband/hw/qib/qib_mad.c ppd->pkeys[i] = key; key 1005 drivers/infiniband/hw/qib/qib_mad.c u16 key = pkeys[i]; key 1008 drivers/infiniband/hw/qib/qib_mad.c if (key == okey) key 1016 drivers/infiniband/hw/qib/qib_mad.c if (key & 0x7FFF) { key 1017 drivers/infiniband/hw/qib/qib_mad.c int ret = add_pkey(ppd, key); key 1020 drivers/infiniband/hw/qib/qib_mad.c key = 0; key 1024 drivers/infiniband/hw/qib/qib_mad.c rcd->pkeys[i] = key; key 241 drivers/infiniband/hw/qib/qib_verbs.h void qib_bad_pkey(struct qib_ibport *ibp, u32 key, u32 sl, key 604 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c wqe_hdr->wr.fast_reg.rkey = wr->key; key 658 drivers/infiniband/sw/rdmavt/mr.c int rvt_fast_reg_mr(struct rvt_qp *qp, struct ib_mr *ibmr, u32 key, key 670 drivers/infiniband/sw/rdmavt/mr.c if ((key & 0xFFFFFF00) != (mr->mr.lkey & 0xFFFFFF00)) key 673 drivers/infiniband/sw/rdmavt/mr.c ibmr->lkey = key; key 674 drivers/infiniband/sw/rdmavt/mr.c ibmr->rkey = key; key 675 drivers/infiniband/sw/rdmavt/mr.c mr->mr.lkey = key; key 2044 drivers/infiniband/sw/rdmavt/qp.c reg_wr(wr)->key, key 130 drivers/infiniband/sw/rxe/rxe_loc.h struct rxe_mem *lookup_mem(struct rxe_pd *pd, int access, u32 key, key 42 drivers/infiniband/sw/rxe/rxe_mr.c static u32 key = 1; key 44 drivers/infiniband/sw/rxe/rxe_mr.c key = key << 1; key 46 drivers/infiniband/sw/rxe/rxe_mr.c key |= (0 != (key & 0x100)) ^ (0 != (key & 0x10)) key 47 drivers/infiniband/sw/rxe/rxe_mr.c ^ (0 != (key & 0x80)) ^ (0 != (key & 0x40)); key 49 drivers/infiniband/sw/rxe/rxe_mr.c key &= 0xff; key 51 drivers/infiniband/sw/rxe/rxe_mr.c return key; key 568 drivers/infiniband/sw/rxe/rxe_mr.c struct rxe_mem *lookup_mem(struct rxe_pd *pd, int access, u32 key, key 573 drivers/infiniband/sw/rxe/rxe_mr.c int index = key >> 8; key 579 drivers/infiniband/sw/rxe/rxe_mr.c if (unlikely((type == lookup_local && mem->lkey != key) || key 580 drivers/infiniband/sw/rxe/rxe_mr.c (type == lookup_remote && mem->rkey != key) || key 341 drivers/infiniband/sw/rxe/rxe_pool.c void rxe_add_key(void *arg, void *key) key 348 drivers/infiniband/sw/rxe/rxe_pool.c memcpy((u8 *)elem + pool->key_offset, key, pool->key_size); key 508 drivers/infiniband/sw/rxe/rxe_pool.c void *rxe_pool_get_key(struct rxe_pool *pool, void *key) key 526 drivers/infiniband/sw/rxe/rxe_pool.c key, pool->key_size); key 149 drivers/infiniband/sw/rxe/rxe_pool.h void rxe_add_key(void *elem, void *key); key 158 drivers/infiniband/sw/rxe/rxe_pool.h void *rxe_pool_get_key(struct rxe_pool *pool, void *key); key 650 drivers/infiniband/sw/rxe/rxe_req.c rmr->lkey = wqe->wr.wr.reg.key; key 651 drivers/infiniband/sw/rxe/rxe_req.c rmr->rkey = wqe->wr.wr.reg.key; key 577 drivers/infiniband/sw/rxe/rxe_verbs.c wr->wr.reg.key = reg_wr(ibwr)->key; key 43 drivers/infiniband/sw/siw/iwarp.h __u8 key[16]; key 609 drivers/infiniband/sw/siw/siw_cm.c if (memcmp(req->key, MPA_KEY_REQ, 16)) key 613 drivers/infiniband/sw/siw/siw_cm.c memcpy(req->key, MPA_KEY_REP, 16); key 740 drivers/infiniband/sw/siw/siw_cm.c if (memcmp(rep->key, MPA_KEY_REP, 16)) { key 1498 drivers/infiniband/sw/siw/siw_cm.c memcpy(cep->mpa.hdr.key, MPA_KEY_REQ, 16); key 41 drivers/infiniband/sw/siw/siw_verbs.c u32 key; key 47 drivers/infiniband/sw/siw/siw_verbs.c if (xa_alloc_cyclic(&uctx->xa, &key, uobj, limit, &uctx->uobj_nextkey, key 55 drivers/infiniband/sw/siw/siw_verbs.c return key; key 896 drivers/infiniband/sw/siw/siw_verbs.c sqe->rkey = reg_wr(wr)->key; key 420 drivers/infiniband/ulp/iser/iser_memory.c wr->key = mr->rkey; key 467 drivers/infiniband/ulp/iser/iser_memory.c wr->key = mr->rkey; key 210 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c u8 key; key 254 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c key = node->entry.mac_addr[OPA_VNIC_MAC_HASH_IDX]; key 255 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c vnic_hash_add(new_mactbl, &node->hlist, key); key 276 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c key = new_node->entry.mac_addr[OPA_VNIC_MAC_HASH_IDX]; key 277 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c vnic_hash_add(new_mactbl, &new_node->hlist, key); key 304 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c u8 key; key 311 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c key = mac_hdr->h_dest[OPA_VNIC_MAC_HASH_IDX]; key 312 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c vnic_hash_for_each_possible(mactbl, node, hlist, key) { key 276 drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h #define vnic_hash_add(hashtable, node, key) \ key 278 drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h &hashtable[hash_min(key, ilog2(OPA_VNIC_MAC_TBL_SIZE))]) key 285 drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h #define vnic_hash_for_each_possible(name, obj, member, key) \ key 287 drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h &name[hash_min(key, ilog2(OPA_VNIC_MAC_TBL_SIZE))], member) key 1457 drivers/infiniband/ulp/srp/ib_srp.c desc->key = cpu_to_be32(rkey); key 1579 drivers/infiniband/ulp/srp/ib_srp.c wr.key = desc->mr->rkey; key 1761 drivers/infiniband/ulp/srp/ib_srp.c *idb_rkey = idb_desc.key; key 1877 drivers/infiniband/ulp/srp/ib_srp.c buf->key = cpu_to_be32(target->global_rkey); key 1961 drivers/infiniband/ulp/srp/ib_srp.c indirect_hdr->table_desc.key = idb_rkey; key 911 drivers/infiniband/ulp/srpt/ib_srpt.c u32 rkey = be32_to_cpu(db->key); key 1154 drivers/input/evdev.c return evdev_handle_get_val(client, dev, EV_KEY, dev->key, key 472 drivers/input/input-mt.c int input_mt_get_slot_by_key(struct input_dev *dev, int key) key 481 drivers/input/input-mt.c if (input_mt_is_active(s) && s->key == key) key 486 drivers/input/input-mt.c s->key = key; key 186 drivers/input/input.c if (test_bit(dev->repeat_key, dev->key) && key 293 drivers/input/input.c if (!!test_bit(code, dev->key) != !!value) { key 295 drivers/input/input.c __change_bit(code, dev->key); key 709 drivers/input/input.c for_each_set_bit(code, dev->key, KEY_CNT) { key 717 drivers/input/input.c memset(dev->key, 0, sizeof(dev->key)); key 955 drivers/input/input.c __test_and_clear_bit(old_keycode, dev->key)) { key 1505 drivers/input/input.c INPUT_DEV_CAP_ATTR(KEY, key); key 2074 drivers/input/input.c INPUT_CLEANSE_BITMASK(dev, KEY, key); key 306 drivers/input/joydev.c input->key); key 356 drivers/input/joydev.c test_bit(joydev->keypam[i], input->key) ? (1 << i) : 0; key 104 drivers/input/joystick/adi.c short *key; key 204 drivers/input/joystick/adi.c short *key = adi->key; key 222 drivers/input/joystick/adi.c input_report_key(dev, *key++, adi_get_bits(adi, 1)); key 232 drivers/input/joystick/adi.c input_report_key(dev, *key++, adi_get_bits(adi, 1)); key 402 drivers/input/joystick/adi.c adi->key = adi_key[t]; key 423 drivers/input/joystick/adi.c set_bit(adi->key[i], input_dev->keybit); key 272 drivers/input/keyboard/adp5588-keys.c int key = adp5588_read(kpad->client, Key_EVENTA + i); key 273 drivers/input/keyboard/adp5588-keys.c int key_val = key & KEY_EV_MASK; key 280 drivers/input/keyboard/adp5588-keys.c key & KEY_EV_PRESSED); key 287 drivers/input/keyboard/adp5588-keys.c key & KEY_EV_PRESSED); key 585 drivers/input/keyboard/adp5589-keys.c int key, int key_val) key 593 drivers/input/keyboard/adp5589-keys.c key & KEY_EV_PRESSED); key 604 drivers/input/keyboard/adp5589-keys.c int key = adp5589_read(kpad->client, ADP5589_5_FIFO_1 + i); key 605 drivers/input/keyboard/adp5589-keys.c int key_val = key & KEY_EV_MASK; key 609 drivers/input/keyboard/adp5589-keys.c adp5589_report_switches(kpad, key, key_val); key 613 drivers/input/keyboard/adp5589-keys.c key & KEY_EV_PRESSED); key 642 drivers/input/keyboard/adp5589-keys.c static int adp5589_get_evcode(struct adp5589_kpad *kpad, unsigned short key) key 647 drivers/input/keyboard/adp5589-keys.c if (key == kpad->keycode[i]) key 1051 drivers/input/keyboard/applespi.c applespi_find_translation(const struct applespi_key_translation *table, u16 key) key 1056 drivers/input/keyboard/applespi.c if (trans->from == key) key 1062 drivers/input/keyboard/applespi.c static unsigned int applespi_translate_fn_key(unsigned int key, int fn_pressed) key 1067 drivers/input/keyboard/applespi.c trans = applespi_find_translation(applespi_fn_codes, key); key 1076 drivers/input/keyboard/applespi.c key = trans->to; key 1079 drivers/input/keyboard/applespi.c return key; key 1082 drivers/input/keyboard/applespi.c static unsigned int applespi_translate_iso_layout(unsigned int key) key 1086 drivers/input/keyboard/applespi.c trans = applespi_find_translation(apple_iso_keyboard, key); key 1088 drivers/input/keyboard/applespi.c key = trans->to; key 1090 drivers/input/keyboard/applespi.c return key; key 1095 drivers/input/keyboard/applespi.c unsigned int key = applespi_scancodes[code]; key 1098 drivers/input/keyboard/applespi.c key = applespi_translate_fn_key(key, fn_pressed); key 1100 drivers/input/keyboard/applespi.c key = applespi_translate_iso_layout(key); key 1101 drivers/input/keyboard/applespi.c return key; key 1126 drivers/input/keyboard/applespi.c unsigned int key; key 1146 drivers/input/keyboard/applespi.c key = applespi_code_to_key(applespi->last_keys_pressed[i], key 1148 drivers/input/keyboard/applespi.c input_report_key(applespi->keyboard_input_dev, key, 0); key 1157 drivers/input/keyboard/applespi.c key = applespi_code_to_key( key 1160 drivers/input/keyboard/applespi.c input_report_key(applespi->keyboard_input_dev, key, 1); key 500 drivers/input/keyboard/atkbd.c } else if (!atkbd->softrepeat && test_bit(keycode, dev->key)) { key 33 drivers/input/keyboard/dlink-dir685-touchkeys.c unsigned long key; key 45 drivers/input/keyboard/dlink-dir685-touchkeys.c key = be16_to_cpup((__be16 *) &buf[4]); key 48 drivers/input/keyboard/dlink-dir685-touchkeys.c changed = tk->cur_key ^ key; key 51 drivers/input/keyboard/dlink-dir685-touchkeys.c test_bit(i, &key) ? "down" : "up"); key 52 drivers/input/keyboard/dlink-dir685-touchkeys.c input_report_key(tk->input, tk->codes[i], test_bit(i, &key)); key 56 drivers/input/keyboard/dlink-dir685-touchkeys.c tk->cur_key = key; key 170 drivers/input/keyboard/hil_kbd.c unsigned int key = kbd->data[i]; key 171 drivers/input/keyboard/hil_kbd.c int up = key & HIL_KBD_SET1_UPBIT; key 173 drivers/input/keyboard/hil_kbd.c key &= (~HIL_KBD_SET1_UPBIT & 0xff); key 174 drivers/input/keyboard/hil_kbd.c key = hil_kbd_set1[key >> HIL_KBD_SET1_SHIFT]; key 175 drivers/input/keyboard/hil_kbd.c input_report_key(dev, key, !up); key 181 drivers/input/keyboard/hil_kbd.c unsigned int key = kbd->data[i]; key 182 drivers/input/keyboard/hil_kbd.c int up = key & HIL_KBD_SET2_UPBIT; key 184 drivers/input/keyboard/hil_kbd.c key &= (~HIL_KBD_SET1_UPBIT & 0xff); key 185 drivers/input/keyboard/hil_kbd.c key = key >> HIL_KBD_SET2_SHIFT; key 186 drivers/input/keyboard/hil_kbd.c input_report_key(dev, key, !up); key 192 drivers/input/keyboard/hil_kbd.c unsigned int key = kbd->data[i]; key 193 drivers/input/keyboard/hil_kbd.c int up = key & HIL_KBD_SET3_UPBIT; key 195 drivers/input/keyboard/hil_kbd.c key &= (~HIL_KBD_SET1_UPBIT & 0xff); key 196 drivers/input/keyboard/hil_kbd.c key = hil_kbd_set3[key >> HIL_KBD_SET3_SHIFT]; key 197 drivers/input/keyboard/hil_kbd.c input_report_key(dev, key, !up); key 113 drivers/input/keyboard/hilkbd.c int key; key 120 drivers/input/keyboard/hilkbd.c key = hphilkeyb_keycode[scode]; key 121 drivers/input/keyboard/hilkbd.c input_report_key(hil_dev.dev, key, down); key 44 drivers/input/keyboard/ipaq-micro-keys.c int key, down; key 47 drivers/input/keyboard/ipaq-micro-keys.c key = 0x7f & msg[0]; key 49 drivers/input/keyboard/ipaq-micro-keys.c if (key < ARRAY_SIZE(micro_keycodes)) { key 50 drivers/input/keyboard/ipaq-micro-keys.c input_report_key(keys->input, keys->codes[key], down); key 58 drivers/input/keyboard/ipaq-micro-keys.c keys->micro->key = micro_key_receive; key 66 drivers/input/keyboard/ipaq-micro-keys.c keys->micro->key = NULL; key 476 drivers/input/keyboard/lkkbd.c !test_bit(keycode, input_dev->key)); key 267 drivers/input/keyboard/lm8323.c u8 key = lm8323_whichkey(event); key 269 drivers/input/keyboard/lm8323.c unsigned short keycode = lm->keymap[key]; key 272 drivers/input/keyboard/lm8323.c key, isdown ? "down" : "up"); key 275 drivers/input/keyboard/lm8323.c input_event(lm->idev, EV_MSC, MSC_SCAN, key); key 131 drivers/input/keyboard/locomokbd.c unsigned int scancode, pressed, key; key 135 drivers/input/keyboard/locomokbd.c key = locomokbd->keycode[scancode]; key 137 drivers/input/keyboard/locomokbd.c input_report_key(locomokbd->input, key, pressed); key 146 drivers/input/keyboard/locomokbd.c if (unlikely(key == KEY_ESC)) { key 76 drivers/input/keyboard/lpc32xx-keys.c u8 key; key 78 drivers/input/keyboard/lpc32xx-keys.c key = readl(LPC32XX_KS_DATA(kscandat->kscan_base, col)); key 79 drivers/input/keyboard/lpc32xx-keys.c changed = key ^ kscandat->lastkeystates[col]; key 80 drivers/input/keyboard/lpc32xx-keys.c kscandat->lastkeystates[col] = key; key 89 drivers/input/keyboard/lpc32xx-keys.c input_report_key(input, keycode, key & (1 << row)); key 110 drivers/input/keyboard/omap-keypad.c int key; key 118 drivers/input/keyboard/omap-keypad.c key = keycodes[MATRIX_SCAN_CODE(row, col, row_shift)]; key 120 drivers/input/keyboard/omap-keypad.c if (!(kp_cur_group == (key & GROUP_MASK) || key 124 drivers/input/keyboard/omap-keypad.c kp_cur_group = key & GROUP_MASK; key 125 drivers/input/keyboard/omap-keypad.c input_report_key(omap_kp_data->input, key & ~GROUP_MASK, key 41 drivers/input/keyboard/pxa930_rotary.c int ercr, delta, key; key 53 drivers/input/keyboard/pxa930_rotary.c key = (delta > 0) ? pdata->up_key : pdata->down_key; key 54 drivers/input/keyboard/pxa930_rotary.c input_report_key(r->input_dev, key, 1); key 56 drivers/input/keyboard/pxa930_rotary.c input_report_key(r->input_dev, key, 0); key 73 drivers/input/keyboard/spear-keyboard.c unsigned int key; key 88 drivers/input/keyboard/spear-keyboard.c key = kbd->keycodes[val]; key 91 drivers/input/keyboard/spear-keyboard.c input_report_key(input, key, 1); key 94 drivers/input/keyboard/spear-keyboard.c kbd->last_key = key; key 24 drivers/input/matrix-keymap.c unsigned int row_shift, unsigned int key) key 27 drivers/input/matrix-keymap.c unsigned int row = KEY_ROW(key); key 28 drivers/input/matrix-keymap.c unsigned int col = KEY_COL(key); key 29 drivers/input/matrix-keymap.c unsigned short code = KEY_VAL(key); key 34 drivers/input/matrix-keymap.c __func__, key, row, col, rows, cols); key 183 drivers/input/matrix-keymap.c unsigned int key = keymap_data->keymap[i]; key 186 drivers/input/matrix-keymap.c row_shift, key)) key 271 drivers/input/misc/adxl34x.c static void adxl34x_report_key_single(struct input_dev *input, int key) key 273 drivers/input/misc/adxl34x.c input_report_key(input, key, true); key 275 drivers/input/misc/adxl34x.c input_report_key(input, key, false); key 294 drivers/input/misc/cm109.c static void report_key(struct cm109_dev *dev, int key) key 303 drivers/input/misc/cm109.c dev->key_code = key; key 304 drivers/input/misc/cm109.c if (key >= 0) { key 306 drivers/input/misc/cm109.c input_report_key(idev, key, 1); key 54 drivers/input/misc/hisi_powerkey.c int value = test_bit(KEY_RESTART, input->key); key 230 drivers/input/misc/wistron_btns.c const struct key_entry *key; key 233 drivers/input/misc/wistron_btns.c for (key = keymap; key->type != KE_END; key++) { key 234 drivers/input/misc/wistron_btns.c if (key->type == KE_WIFI) key 236 drivers/input/misc/wistron_btns.c else if (key->type == KE_BLUETOOTH) key 239 drivers/input/misc/wistron_btns.c leds_present = key->code & (FE_MAIL_LED | FE_WIFI_LED); key 986 drivers/input/misc/wistron_btns.c const struct key_entry *key; key 990 drivers/input/misc/wistron_btns.c for (key = keymap; key->type != KE_END; key++) key 1116 drivers/input/misc/wistron_btns.c const struct key_entry *key = key 1119 drivers/input/misc/wistron_btns.c if (key) { key 1120 drivers/input/misc/wistron_btns.c switch (key->type) { key 1137 drivers/input/misc/wistron_btns.c key, 1, true); key 90 drivers/input/misc/xen-kbdfront.c struct xenkbd_key *key) key 93 drivers/input/misc/xen-kbdfront.c int value = key->pressed; key 95 drivers/input/misc/xen-kbdfront.c if (test_bit(key->keycode, info->ptr->keybit)) { key 97 drivers/input/misc/xen-kbdfront.c } else if (test_bit(key->keycode, info->kbd->keybit)) { key 99 drivers/input/misc/xen-kbdfront.c if (key->pressed && test_bit(key->keycode, info->kbd->key)) key 102 drivers/input/misc/xen-kbdfront.c pr_warn("unhandled keycode 0x%x\n", key->keycode); key 109 drivers/input/misc/xen-kbdfront.c input_event(dev, EV_KEY, key->keycode, value); key 168 drivers/input/misc/xen-kbdfront.c xenkbd_handle_key_event(info, &event->key); key 222 drivers/input/misc/yealink.c static void report_key(struct yealink_dev *yld, int key) key 233 drivers/input/misc/yealink.c yld->key_code = key; key 234 drivers/input/misc/yealink.c if (key >= 0) { key 236 drivers/input/misc/yealink.c input_report_key(idev, key & 0xff, 1); key 237 drivers/input/misc/yealink.c if (key >> 8) key 238 drivers/input/misc/yealink.c input_report_key(idev, key >> 8, 1); key 231 drivers/input/mouse/alps.c dev = (dev2 && test_bit(BTN_LEFT, dev2->key)) ? dev2 : dev1; key 234 drivers/input/mouse/alps.c dev = (dev2 && test_bit(BTN_RIGHT, dev2->key)) ? dev2 : dev1; key 237 drivers/input/mouse/alps.c dev = (dev2 && test_bit(BTN_MIDDLE, dev2->key)) ? dev2 : dev1; key 519 drivers/input/mouse/appletouch.c int key, fingers; key 600 drivers/input/mouse/appletouch.c key = dev->data[dev->info->datalen - 1] & ATP_STATUS_BUTTON; key 642 drivers/input/mouse/appletouch.c input_report_key(dev->input, BTN_LEFT, key); key 659 drivers/input/mouse/appletouch.c int key, fingers; key 720 drivers/input/mouse/appletouch.c key = dev->data[dev->info->datalen - 1] & ATP_STATUS_BUTTON; key 762 drivers/input/mouse/appletouch.c input_report_key(dev->input, BTN_LEFT, key); key 776 drivers/input/mouse/appletouch.c if (!x && !y && !key) { key 122 drivers/input/mouse/cyapa_gen3.c u8 key[8]; /* 8-byte security key */ key 658 drivers/input/mouse/cyapa_gen3.c memcpy(write_block_cmd.key, security_key, sizeof(security_key)); key 280 drivers/input/mouse/cyapa_gen5.c u8 key[CYAPA_TSG_BL_KEY_SIZE]; key 1082 drivers/input/mouse/cyapa_gen5.c memcpy(cmd_data->key, cyapa_pip_bl_cmd_key, CYAPA_TSG_BL_KEY_SIZE); key 116 drivers/input/mouse/sermouse.c input_report_key(dev, BTN_MIDDLE, !test_bit(BTN_MIDDLE, dev->key)); key 121 drivers/input/mouse/vmmouse.c if (test_bit(code, abs_dev->key)) key 123 drivers/input/mouse/vmmouse.c else if (test_bit(code, rel_dev->key)) key 25 drivers/input/sparse-keymap.c struct key_entry *key; key 28 drivers/input/sparse-keymap.c for (key = dev->keycode; key->type != KE_END; key++) { key 29 drivers/input/sparse-keymap.c if (key->type == KE_KEY) { key 30 drivers/input/sparse-keymap.c if (key == k) key 42 drivers/input/sparse-keymap.c struct key_entry *key; key 45 drivers/input/sparse-keymap.c for (key = dev->keycode; key->type != KE_END; key++) key 46 drivers/input/sparse-keymap.c if (key->type == KE_KEY) key 48 drivers/input/sparse-keymap.c return key; key 64 drivers/input/sparse-keymap.c struct key_entry *key; key 66 drivers/input/sparse-keymap.c for (key = dev->keycode; key->type != KE_END; key++) key 67 drivers/input/sparse-keymap.c if (code == key->code) key 68 drivers/input/sparse-keymap.c return key; key 85 drivers/input/sparse-keymap.c struct key_entry *key; key 87 drivers/input/sparse-keymap.c for (key = dev->keycode; key->type != KE_END; key++) key 88 drivers/input/sparse-keymap.c if (key->type == KE_KEY && keycode == key->keycode) key 89 drivers/input/sparse-keymap.c return key; key 98 drivers/input/sparse-keymap.c struct key_entry *key; key 102 drivers/input/sparse-keymap.c key = sparse_keymap_entry_by_index(dev, ke->index); key 104 drivers/input/sparse-keymap.c key = sparse_keymap_entry_from_scancode(dev, scancode); key 106 drivers/input/sparse-keymap.c key = NULL; key 108 drivers/input/sparse-keymap.c return key; key 114 drivers/input/sparse-keymap.c const struct key_entry *key; key 117 drivers/input/sparse-keymap.c key = sparse_keymap_locate(dev, ke); key 118 drivers/input/sparse-keymap.c if (key && key->type == KE_KEY) { key 119 drivers/input/sparse-keymap.c ke->keycode = key->keycode; key 122 drivers/input/sparse-keymap.c sparse_keymap_get_key_index(dev, key); key 123 drivers/input/sparse-keymap.c ke->len = sizeof(key->code); key 124 drivers/input/sparse-keymap.c memcpy(ke->scancode, &key->code, sizeof(key->code)); key 136 drivers/input/sparse-keymap.c struct key_entry *key; key 139 drivers/input/sparse-keymap.c key = sparse_keymap_locate(dev, ke); key 140 drivers/input/sparse-keymap.c if (key && key->type == KE_KEY) { key 141 drivers/input/sparse-keymap.c *old_keycode = key->keycode; key 142 drivers/input/sparse-keymap.c key->keycode = ke->keycode; key 432 drivers/input/touchscreen/melfas_mip4.c u8 key; key 438 drivers/input/touchscreen/melfas_mip4.c key = packet[0] & 0x0F; key 444 drivers/input/touchscreen/melfas_mip4.c key = packet[0] & 0x0F; key 450 drivers/input/touchscreen/melfas_mip4.c if (key >= 1 && key <= ts->key_num) { key 451 drivers/input/touchscreen/melfas_mip4.c unsigned short keycode = ts->key_code[key - 1]; key 455 drivers/input/touchscreen/melfas_mip4.c key, keycode, down); key 461 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, "Unknown key: %d\n", key); key 23 drivers/interconnect/qcom/smd-rpm.c __le32 key; key 37 drivers/interconnect/qcom/smd-rpm.c .key = cpu_to_le32(RPM_KEY_BW), key 266 drivers/isdn/mISDN/dsp.h extern int dsp_bf_init(struct dsp *dsp, const u8 *key, unsigned int keylen); key 599 drivers/isdn/mISDN/dsp_blowfish.c dsp_bf_init(struct dsp *dsp, const u8 *key, uint keylen) key 633 drivers/isdn/mISDN/dsp_blowfish.c temp = (((u32)key[j] << 24) | key 634 drivers/isdn/mISDN/dsp_blowfish.c ((u32)key[(j + 1) % keylen] << 16) | key 635 drivers/isdn/mISDN/dsp_blowfish.c ((u32)key[(j + 2) % keylen] << 8) | key 636 drivers/isdn/mISDN/dsp_blowfish.c ((u32)key[(j + 3) % keylen])); key 288 drivers/macintosh/adbhid.c int keycode, up_flag, key; key 394 drivers/macintosh/adbhid.c key = adbhid[id]->keycode[keycode]; key 395 drivers/macintosh/adbhid.c if (key) { key 396 drivers/macintosh/adbhid.c input_report_key(adbhid[id]->input, key, !up_flag); key 59 drivers/macintosh/via-pmu-event.c void via_pmu_event(int key, int down) key 65 drivers/macintosh/via-pmu-event.c switch (key) { key 7 drivers/macintosh/via-pmu-event.h extern void via_pmu_event(int key, int down); key 544 drivers/md/bcache/alloc.c BKEY_PADDED(key); key 580 drivers/md/bcache/alloc.c if (UUID_FLASH_ONLY(&c->uuids[KEY_INODE(&ret->key)]) != key 583 drivers/md/bcache/alloc.c else if (!bkey_cmp(&ret->key, search)) key 593 drivers/md/bcache/alloc.c bkey_copy(&ret->key, alloc); key 621 drivers/md/bcache/alloc.c BKEY_PADDED(key) alloc; key 631 drivers/md/bcache/alloc.c bkey_init(&alloc.key); key 634 drivers/md/bcache/alloc.c while (!(b = pick_data_bucket(c, k, write_point, &alloc.key))) { key 641 drivers/md/bcache/alloc.c if (bch_bucket_alloc_set(c, watermark, &alloc.key, 1, wait)) key 652 drivers/md/bcache/alloc.c if (KEY_PTRS(&alloc.key)) key 653 drivers/md/bcache/alloc.c bkey_put(c, &alloc.key); key 655 drivers/md/bcache/alloc.c for (i = 0; i < KEY_PTRS(&b->key); i++) key 656 drivers/md/bcache/alloc.c EBUG_ON(ptr_stale(c, &b->key, i)); key 660 drivers/md/bcache/alloc.c for (i = 0; i < KEY_PTRS(&b->key); i++) key 661 drivers/md/bcache/alloc.c k->ptr[i] = b->key.ptr[i]; key 667 drivers/md/bcache/alloc.c SET_KEY_PTRS(k, KEY_PTRS(&b->key)); key 674 drivers/md/bcache/alloc.c bkey_copy_key(&b->key, k); key 679 drivers/md/bcache/alloc.c for (i = 0; i < KEY_PTRS(&b->key); i++) { key 680 drivers/md/bcache/alloc.c SET_PTR_OFFSET(&b->key, i, PTR_OFFSET(&b->key, i) + sectors); key 683 drivers/md/bcache/alloc.c &PTR_CACHE(c, &b->key, i)->sectors_written); key 695 drivers/md/bcache/alloc.c for (i = 0; i < KEY_PTRS(&b->key); i++) key 696 drivers/md/bcache/alloc.c atomic_inc(&PTR_BUCKET(c, &b->key, i)->pin); key 227 drivers/md/bcache/bcache.h BKEY_PADDED(key); key 737 drivers/md/bcache/bcache.h struct bkey key; key 752 drivers/md/bcache/bcache.h ((unsigned int) (KEY_SIZE(&b->key) >> (b)->c->block_bits)) key 97 drivers/md/bcache/bset.c if (p && bkey_cmp(p, &b->key) > 0) key 122 drivers/md/bcache/btree.c #define btree(fn, key, b, op, ...) \ key 126 drivers/md/bcache/btree.c struct btree *_child = bch_btree_node_get((b)->c, op, key, l, \ key 197 drivers/md/bcache/btree.c uint64_t crc = b->key.ptr[0]; key 265 drivers/md/bcache/btree.c bset_sector_offset(&b->keys, i) < KEY_SIZE(&b->key); key 275 drivers/md/bcache/btree.c bkey_cmp(&b->key, &b->keys.set[0].end) < 0) key 287 drivers/md/bcache/btree.c err, PTR_BUCKET_NR(b->c, &b->key, 0), key 310 drivers/md/bcache/btree.c bio->bi_iter.bi_size = KEY_SIZE(&b->key) << 9; key 317 drivers/md/bcache/btree.c bch_submit_bbio(bio, b->c, &b->key, 0); key 334 drivers/md/bcache/btree.c PTR_BUCKET_NR(b->c, &b->key, 0)); key 398 drivers/md/bcache/btree.c BKEY_PADDED(key) k; key 427 drivers/md/bcache/btree.c bkey_copy(&k.key, &b->key); key 428 drivers/md/bcache/btree.c SET_PTR_OFFSET(&k.key, 0, PTR_OFFSET(&k.key, 0) + key 441 drivers/md/bcache/btree.c bch_submit_bbio(b->bio, b->c, &k.key, 0); key 452 drivers/md/bcache/btree.c bch_submit_bbio(b->bio, b->c, &k.key, 0); key 485 drivers/md/bcache/btree.c &PTR_CACHE(b->c, &b->key, 0)->btree_sectors_written); key 589 drivers/md/bcache/btree.c b->key.ptr[0] = 0; key 879 drivers/md/bcache/btree.c if (PTR_HASH(c, &b->key) == PTR_HASH(c, k)) key 979 drivers/md/bcache/btree.c bkey_copy(&b->key, k); key 1048 drivers/md/bcache/btree.c if (PTR_HASH(c, &b->key) != PTR_HASH(c, k)) { key 1124 drivers/md/bcache/btree.c bch_bucket_free(b->c, &b->key); key 1133 drivers/md/bcache/btree.c BKEY_PADDED(key) k; key 1138 drivers/md/bcache/btree.c if (__bch_bucket_alloc_set(c, RESERVE_BTREE, &k.key, 1, wait)) key 1141 drivers/md/bcache/btree.c bkey_put(c, &k.key); key 1142 drivers/md/bcache/btree.c SET_KEY_SIZE(&k.key, c->btree_pages * PAGE_SECTORS); key 1144 drivers/md/bcache/btree.c b = mca_alloc(c, op, &k.key, level); key 1163 drivers/md/bcache/btree.c bch_bucket_free(c, &k.key); key 1186 drivers/md/bcache/btree.c bkey_copy_key(&n->key, &b->key); key 1201 drivers/md/bcache/btree.c bkey_copy(k, &b->key); key 1206 drivers/md/bcache/btree.c bch_inc_gen(PTR_CACHE(b->c, &b->key, i), key 1207 drivers/md/bcache/btree.c PTR_BUCKET(b->c, &b->key, i))); key 1342 drivers/md/bcache/btree.c bkey_cmp(&b->key, &t->end) < 0, key 1449 drivers/md/bcache/btree.c last = &r->b->key; key 1456 drivers/md/bcache/btree.c bkey_copy_key(&new_nodes[i]->key, last); key 1473 drivers/md/bcache/btree.c bkey_u64s(&new_nodes[i]->key))) key 1477 drivers/md/bcache/btree.c bch_keylist_add(&keylist, &new_nodes[i]->key); key 1492 drivers/md/bcache/btree.c if (__bch_keylist_realloc(&keylist, bkey_u64s(&r[i].b->key))) key 1557 drivers/md/bcache/btree.c bch_keylist_add(&keys, &n->key); key 1659 drivers/md/bcache/btree.c bkey_copy_key(&b->c->gc_done, &last->b->key); key 1722 drivers/md/bcache/btree.c __bch_btree_mark_key(b->c, b->level + 1, &b->key); key 1730 drivers/md/bcache/btree.c bkey_copy_key(&b->c->gc_done, &b->key); key 1792 drivers/md/bcache/btree.c for (j = 0; j < KEY_PTRS(&w->key); j++) key 1793 drivers/md/bcache/btree.c SET_GC_MARK(PTR_BUCKET(c, &w->key, j), key 1926 drivers/md/bcache/btree.c bch_initial_mark_key(b->c, b->level + 1, &b->key); key 2008 drivers/md/bcache/btree.c BUG_ON(bkey_cmp(k, &b->key) > 0); key 2048 drivers/md/bcache/btree.c if (bkey_cmp(k, &b->key) <= 0) { key 2054 drivers/md/bcache/btree.c } else if (bkey_cmp(&START_KEY(k), &b->key) < 0) { key 2055 drivers/md/bcache/btree.c BKEY_PADDED(key) temp; key 2056 drivers/md/bcache/btree.c bkey_copy(&temp.key, insert_keys->keys); key 2058 drivers/md/bcache/btree.c bch_cut_back(&b->key, &temp.key); key 2059 drivers/md/bcache/btree.c bch_cut_front(&b->key, insert_keys->keys); key 2061 drivers/md/bcache/btree.c ret |= btree_insert_key(b, &temp.key, replace_key); key 2133 drivers/md/bcache/btree.c bkey_copy_key(&n1->key, key 2144 drivers/md/bcache/btree.c bkey_copy_key(&n2->key, &b->key); key 2146 drivers/md/bcache/btree.c bch_keylist_add(&parent_keys, &n2->key); key 2157 drivers/md/bcache/btree.c bch_keylist_add(&parent_keys, &n1->key); key 2164 drivers/md/bcache/btree.c bkey_copy_key(&n3->key, &MAX_KEY); key 2193 drivers/md/bcache/btree.c bkey_put(b->c, &n2->key); key 2197 drivers/md/bcache/btree.c bkey_put(b->c, &n1->key); key 2271 drivers/md/bcache/btree.c uint64_t btree_ptr = b->key.ptr[0]; key 2282 drivers/md/bcache/btree.c if (b->key.ptr[0] != btree_ptr || key 2370 drivers/md/bcache/btree.c for (i = 0; i < KEY_PTRS(&b->key); i++) key 2371 drivers/md/bcache/btree.c BUG_ON(PTR_BUCKET(b->c, &b->key, i)->prio != BTREE_PRIO); key 2441 drivers/md/bcache/btree.c ret = fn(op, b, &KEY(KEY_INODE(&b->key), key 2442 drivers/md/bcache/btree.c KEY_OFFSET(&b->key), 0)); key 2458 drivers/md/bcache/btree.c if (bkey_cmp(&l->key, &START_KEY(&r->key)) <= 0) key 2460 drivers/md/bcache/btree.c if (bkey_cmp(&START_KEY(&l->key), &r->key) >= 0) key 2468 drivers/md/bcache/btree.c return clamp_t(int64_t, bkey_cmp(&l->key, &r->key), -1, 1); key 2506 drivers/md/bcache/btree.c bkey_copy(&w->key, k); key 2551 drivers/md/bcache/btree.c buf->start = START_KEY(&w->key); key 2554 drivers/md/bcache/btree.c buf->end = w->key; key 2582 drivers/md/bcache/btree.c s.key = *start; key 2591 drivers/md/bcache/btree.c while (w && bkey_cmp(&START_KEY(&w->key), end) < 0) { key 122 drivers/md/bcache/btree.h BKEY_PADDED(key); key 26 drivers/md/bcache/debug.c (void *) i < (void *) (start) + (KEY_SIZE(&b->key) << 9) &&\ key 47 drivers/md/bcache/debug.c bkey_copy(&v->key, &b->key); key 53 drivers/md/bcache/debug.c bio_set_dev(bio, PTR_CACHE(b->c, &b->key, 0)->bdev); key 54 drivers/md/bcache/debug.c bio->bi_iter.bi_sector = PTR_OFFSET(&b->key, 0); key 55 drivers/md/bcache/debug.c bio->bi_iter.bi_size = KEY_SIZE(&v->key) << 9; key 62 drivers/md/bcache/debug.c memcpy(ondisk, sorted, KEY_SIZE(&v->key) << 9); key 198 drivers/md/bcache/debug.c bch_extent_to_text(kbuf, sizeof(kbuf), &w->key); key 427 drivers/md/bcache/extents.c BKEY_PADDED(key) temp; key 428 drivers/md/bcache/extents.c bkey_copy(&temp.key, k); key 429 drivers/md/bcache/extents.c bch_bset_insert(b, k, &temp.key); key 38 drivers/md/bcache/io.c bio->bi_iter.bi_sector = PTR_OFFSET(&b->key, 0); key 39 drivers/md/bcache/io.c bio_set_dev(bio, PTR_CACHE(c, &b->key, 0)->bdev); key 50 drivers/md/bcache/io.c bch_bkey_copy_single_ptr(&b->key, k, ptr); key 140 drivers/md/bcache/io.c struct cache *ca = PTR_CACHE(c, &b->key, 0); key 641 drivers/md/bcache/journal.c struct bkey *k = &c->journal.key; key 761 drivers/md/bcache/journal.c struct bkey *k = &c->journal.key; key 786 drivers/md/bcache/journal.c bkey_copy(&w->data->btree_root, &c->root->key); key 119 drivers/md/bcache/journal.h BKEY_PADDED(key); key 53 drivers/md/bcache/movinggc.c trace_bcache_gc_copy_collision(&io->w->key); key 70 drivers/md/bcache/movinggc.c else if (!KEY_DIRTY(&b->key) && key 71 drivers/md/bcache/movinggc.c ptr_stale(io->op.c, &b->key, 0)) { key 83 drivers/md/bcache/movinggc.c DIV_ROUND_UP(KEY_SIZE(&io->w->key), PAGE_SECTORS)); key 87 drivers/md/bcache/movinggc.c bio->bi_iter.bi_size = KEY_SIZE(&io->w->key) << 9; key 100 drivers/md/bcache/movinggc.c io->bio.bio.bi_iter.bi_sector = KEY_START(&io->w->key); key 104 drivers/md/bcache/movinggc.c op->writeback = KEY_DIRTY(&io->w->key); key 105 drivers/md/bcache/movinggc.c op->csum = KEY_CSUM(&io->w->key); key 107 drivers/md/bcache/movinggc.c bkey_copy(&op->replace_key, &io->w->key); key 121 drivers/md/bcache/movinggc.c bch_submit_bbio(bio, io->op.c, &io->w->key, 0); key 143 drivers/md/bcache/movinggc.c if (ptr_stale(c, &w->key, 0)) { key 149 drivers/md/bcache/movinggc.c * DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS), key 156 drivers/md/bcache/movinggc.c io->op.inode = KEY_INODE(&w->key); key 169 drivers/md/bcache/movinggc.c trace_bcache_gc_copy(&w->key); key 511 drivers/md/bcache/request.c else if (!KEY_DIRTY(&b->key) && key 512 drivers/md/bcache/request.c ptr_stale(s->iop.c, &b->key, 0)) { key 565 drivers/md/bcache/request.c bio_key = &container_of(n, struct bbio, bio)->key; key 423 drivers/md/bcache/super.c BKEY_PADDED(key) k; key 430 drivers/md/bcache/super.c if (bch_bucket_alloc_set(c, RESERVE_BTREE, &k.key, 1, true)) key 433 drivers/md/bcache/super.c SET_KEY_SIZE(&k.key, c->sb.bucket_size); key 434 drivers/md/bcache/super.c uuid_io(c, REQ_OP_WRITE, 0, &k.key, &cl); key 438 drivers/md/bcache/super.c ca = PTR_CACHE(c, &k.key, 0); key 441 drivers/md/bcache/super.c bkey_copy(&c->uuid_bucket, &k.key); key 442 drivers/md/bcache/super.c bkey_put(c, &k.key); key 1996 drivers/md/bcache/super.c bkey_copy_key(&c->root->key, &MAX_KEY); key 254 drivers/md/bcache/writeback.c DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS)); key 258 drivers/md/bcache/writeback.c bio->bi_iter.bi_size = KEY_SIZE(&w->key) << 9; key 279 drivers/md/bcache/writeback.c if (KEY_DIRTY(&w->key)) { key 286 drivers/md/bcache/writeback.c bkey_copy(keys.top, &w->key); key 290 drivers/md/bcache/writeback.c for (i = 0; i < KEY_PTRS(&w->key); i++) key 291 drivers/md/bcache/writeback.c atomic_inc(&PTR_BUCKET(dc->disk.c, &w->key, i)->pin); key 293 drivers/md/bcache/writeback.c ret = bch_btree_insert(dc->disk.c, &keys, NULL, &w->key); key 296 drivers/md/bcache/writeback.c trace_bcache_writeback_collision(&w->key); key 315 drivers/md/bcache/writeback.c SET_KEY_DIRTY(&w->key, false); key 354 drivers/md/bcache/writeback.c if (KEY_DIRTY(&w->key)) { key 357 drivers/md/bcache/writeback.c io->bio.bi_iter.bi_sector = KEY_START(&w->key); key 377 drivers/md/bcache/writeback.c bch_count_io_errors(PTR_CACHE(io->dc->disk.c, &w->key, 0), key 421 drivers/md/bcache/writeback.c BUG_ON(ptr_stale(dc->disk.c, &next->key, 0)); key 446 drivers/md/bcache/writeback.c if ((nk != 0) && bkey_cmp(&keys[nk-1]->key, key 447 drivers/md/bcache/writeback.c &START_KEY(&next->key))) key 450 drivers/md/bcache/writeback.c size += KEY_SIZE(&next->key); key 460 drivers/md/bcache/writeback.c DIV_ROUND_UP(KEY_SIZE(&w->key), key 472 drivers/md/bcache/writeback.c io->bio.bi_iter.bi_sector = PTR_OFFSET(&w->key, 0); key 474 drivers/md/bcache/writeback.c PTR_CACHE(dc->disk.c, &w->key, 0)->bdev); key 480 drivers/md/bcache/writeback.c trace_bcache_writeback(&w->key); key 76 drivers/md/dm-bio-prison-v1.c static void __setup_new_cell(struct dm_cell_key *key, key 80 drivers/md/dm-bio-prison-v1.c memcpy(&cell->key, key, sizeof(cell->key)); key 110 drivers/md/dm-bio-prison-v1.c struct dm_cell_key *key, key 122 drivers/md/dm-bio-prison-v1.c r = cmp_keys(key, &cell->key); key 137 drivers/md/dm-bio-prison-v1.c __setup_new_cell(key, inmate, cell_prealloc); key 147 drivers/md/dm-bio-prison-v1.c struct dm_cell_key *key, key 156 drivers/md/dm-bio-prison-v1.c r = __bio_detain(prison, key, inmate, cell_prealloc, cell_result); key 163 drivers/md/dm-bio-prison-v1.c struct dm_cell_key *key, key 168 drivers/md/dm-bio-prison-v1.c return bio_detain(prison, key, inmate, cell_prealloc, cell_result); key 173 drivers/md/dm-bio-prison-v1.c struct dm_cell_key *key, key 177 drivers/md/dm-bio-prison-v1.c return bio_detain(prison, key, NULL, cell_prealloc, cell_result); key 44 drivers/md/dm-bio-prison-v1.h struct dm_cell_key key; key 71 drivers/md/dm-bio-prison-v1.h struct dm_cell_key *key, key 82 drivers/md/dm-bio-prison-v1.h struct dm_cell_key *key, key 79 drivers/md/dm-bio-prison-v2.c static void __setup_new_cell(struct dm_cell_key_v2 *key, key 83 drivers/md/dm-bio-prison-v2.c memcpy(&cell->key, key, sizeof(cell->key)); key 115 drivers/md/dm-bio-prison-v2.c struct dm_cell_key_v2 *key, key 126 drivers/md/dm-bio-prison-v2.c r = cmp_keys(key, &cell->key); key 141 drivers/md/dm-bio-prison-v2.c __setup_new_cell(key, cell_prealloc); key 150 drivers/md/dm-bio-prison-v2.c struct dm_cell_key_v2 *key, key 156 drivers/md/dm-bio-prison-v2.c if (__find_or_insert(prison, key, cell_prealloc, cell)) { key 173 drivers/md/dm-bio-prison-v2.c struct dm_cell_key_v2 *key, key 183 drivers/md/dm-bio-prison-v2.c r = __get(prison, key, lock_level, inmate, cell_prealloc, cell_result); key 227 drivers/md/dm-bio-prison-v2.c struct dm_cell_key_v2 *key, key 234 drivers/md/dm-bio-prison-v2.c if (__find_or_insert(prison, key, cell_prealloc, &cell)) { key 258 drivers/md/dm-bio-prison-v2.c struct dm_cell_key_v2 *key, key 267 drivers/md/dm-bio-prison-v2.c r = __lock(prison, key, lock_level, cell_prealloc, cell_result); key 52 drivers/md/dm-bio-prison-v2.h struct dm_cell_key_v2 key; key 88 drivers/md/dm-bio-prison-v2.h struct dm_cell_key_v2 *key, key 116 drivers/md/dm-bio-prison-v2.h struct dm_cell_key_v2 *key, key 100 drivers/md/dm-cache-policy-internal.h const char *key, const char *value) key 102 drivers/md/dm-cache-policy-internal.h return p->set_config_value ? p->set_config_value(p, key, value) : -EINVAL; key 1641 drivers/md/dm-cache-policy-smq.c const char *key, const char *value) key 1648 drivers/md/dm-cache-policy-smq.c if (!strcasecmp(key, "random_threshold") || key 1649 drivers/md/dm-cache-policy-smq.c !strcasecmp(key, "sequential_threshold") || key 1650 drivers/md/dm-cache-policy-smq.c !strcasecmp(key, "discard_promote_adjustment") || key 1651 drivers/md/dm-cache-policy-smq.c !strcasecmp(key, "read_promote_adjustment") || key 1652 drivers/md/dm-cache-policy-smq.c !strcasecmp(key, "write_promote_adjustment")) { key 1653 drivers/md/dm-cache-policy-smq.c DMWARN("tunable '%s' no longer has any effect, mq policy is now an alias for smq", key); key 133 drivers/md/dm-cache-policy.h const char *key, const char *value); key 584 drivers/md/dm-cache-target.c static void build_key(dm_oblock_t begin, dm_oblock_t end, struct dm_cell_key_v2 *key) key 586 drivers/md/dm-cache-target.c key->virtual = 0; key 587 drivers/md/dm-cache-target.c key->dev = 0; key 588 drivers/md/dm-cache-target.c key->block_begin = from_oblock(begin); key 589 drivers/md/dm-cache-target.c key->block_end = from_oblock(end); key 660 drivers/md/dm-cache-target.c struct dm_cell_key_v2 key; key 666 drivers/md/dm-cache-target.c build_key(oblock, end, &key); key 667 drivers/md/dm-cache-target.c r = dm_cell_get_v2(cache->prison, &key, lock_level(bio), bio, cell_prealloc, &cell); key 1485 drivers/md/dm-cache-target.c struct dm_cell_key_v2 key; key 1496 drivers/md/dm-cache-target.c build_key(mg->op->oblock, oblock_succ(mg->op->oblock), &key); key 1497 drivers/md/dm-cache-target.c r = dm_cell_lock_v2(cache->prison, &key, key 1610 drivers/md/dm-cache-target.c struct dm_cell_key_v2 key; key 1616 drivers/md/dm-cache-target.c build_key(mg->invalidate_oblock, oblock_succ(mg->invalidate_oblock), &key); key 1617 drivers/md/dm-cache-target.c r = dm_cell_lock_v2(cache->prison, &key, key 2342 drivers/md/dm-cache-target.c static int process_config_option(struct cache *cache, const char *key, const char *value) key 2346 drivers/md/dm-cache-target.c if (!strcasecmp(key, "migration_threshold")) { key 2357 drivers/md/dm-cache-target.c static int set_config_value(struct cache *cache, const char *key, const char *value) key 2359 drivers/md/dm-cache-target.c int r = process_config_option(cache, key, value); key 2362 drivers/md/dm-cache-target.c r = policy_set_config_value(cache->policy, key, value); key 2365 drivers/md/dm-cache-target.c DMWARN("bad config value for %s: %s", key, value); key 208 drivers/md/dm-crypt.c u8 key[0]; key 437 drivers/md/dm-crypt.c memcpy(lmk->seed, cc->key + (cc->tfms_count * subkey_size), key 592 drivers/md/dm-crypt.c memcpy(tcw->iv_seed, &cc->key[key_offset], cc->iv_size); key 593 drivers/md/dm-crypt.c memcpy(tcw->whitening, &cc->key[key_offset + cc->iv_size], key 1842 drivers/md/dm-crypt.c static void crypt_copy_authenckey(char *p, const void *key, key 1854 drivers/md/dm-crypt.c memcpy(p, key + enckeylen, authkeylen); key 1856 drivers/md/dm-crypt.c memcpy(p, key, enckeylen); key 1871 drivers/md/dm-crypt.c crypt_copy_authenckey(cc->authenc_key, cc->key, key 1882 drivers/md/dm-crypt.c cc->key + (i * subkey_size), key 1886 drivers/md/dm-crypt.c cc->key + (i * subkey_size), key 1912 drivers/md/dm-crypt.c struct key *key; key 1937 drivers/md/dm-crypt.c key = request_key(key_string[0] == 'l' ? &key_type_logon : &key_type_user, key 1939 drivers/md/dm-crypt.c if (IS_ERR(key)) { key 1941 drivers/md/dm-crypt.c return PTR_ERR(key); key 1944 drivers/md/dm-crypt.c down_read(&key->sem); key 1946 drivers/md/dm-crypt.c ukp = user_key_payload_locked(key); key 1948 drivers/md/dm-crypt.c up_read(&key->sem); key 1949 drivers/md/dm-crypt.c key_put(key); key 1955 drivers/md/dm-crypt.c up_read(&key->sem); key 1956 drivers/md/dm-crypt.c key_put(key); key 1961 drivers/md/dm-crypt.c memcpy(cc->key, ukp->data, cc->key_size); key 1963 drivers/md/dm-crypt.c up_read(&key->sem); key 1964 drivers/md/dm-crypt.c key_put(key); key 2018 drivers/md/dm-crypt.c static int crypt_set_key(struct crypt_config *cc, char *key) key 2021 drivers/md/dm-crypt.c int key_string_len = strlen(key); key 2024 drivers/md/dm-crypt.c if (!cc->key_size && strcmp(key, "-")) key 2028 drivers/md/dm-crypt.c if (key[0] == ':') { key 2029 drivers/md/dm-crypt.c r = crypt_set_keyring_key(cc, key + 1); key 2041 drivers/md/dm-crypt.c if (cc->key_size && hex2bin(cc->key, key, cc->key_size) < 0) key 2050 drivers/md/dm-crypt.c memset(key, '0', key_string_len); key 2060 drivers/md/dm-crypt.c get_random_bytes(&cc->key, cc->key_size); key 2072 drivers/md/dm-crypt.c memset(&cc->key, 0, cc->key_size * sizeof(u8)); key 2267 drivers/md/dm-crypt.c static int crypt_ctr_cipher_new(struct dm_target *ti, char *cipher_in, char *key, key 2340 drivers/md/dm-crypt.c static int crypt_ctr_cipher_old(struct dm_target *ti, char *cipher_in, char *key, key 2425 drivers/md/dm-crypt.c static int crypt_ctr_cipher(struct dm_target *ti, char *cipher_in, char *key) key 2438 drivers/md/dm-crypt.c ret = crypt_ctr_cipher_new(ti, cipher_in, key, &ivmode, &ivopts); key 2440 drivers/md/dm-crypt.c ret = crypt_ctr_cipher_old(ti, cipher_in, key, &ivmode, &ivopts); key 2450 drivers/md/dm-crypt.c ret = crypt_set_key(cc, key); key 2476 drivers/md/dm-crypt.c memset(cc->key, 0, cc->key_size * sizeof(u8)); key 2582 drivers/md/dm-crypt.c cc = kzalloc(struct_size(cc, key, key_size), GFP_KERNEL); key 2834 drivers/md/dm-crypt.c DMEMIT("%02x", cc->key[i]); key 2927 drivers/md/dm-crypt.c memset(cc->key, 0, cc->key_size * sizeof(u8)); key 671 drivers/md/dm-era-target.c uint64_t key = d->era; key 674 drivers/md/dm-era-target.c &key, &md->writeset_tree_root); key 724 drivers/md/dm-era-target.c uint64_t key; key 728 drivers/md/dm-era-target.c md->writeset_tree_root, &key); key 732 drivers/md/dm-era-target.c d->era = key; key 735 drivers/md/dm-era-target.c md->writeset_tree_root, &key, &disk); key 747 drivers/md/dm-era-target.c d->value = cpu_to_le32(key); key 147 drivers/md/dm-integrity.c __u8 *key; key 3240 drivers/md/dm-integrity.c kzfree(a->key); key 3262 drivers/md/dm-integrity.c a->key = kmalloc(a->key_size, GFP_KERNEL); key 3263 drivers/md/dm-integrity.c if (!a->key) key 3265 drivers/md/dm-integrity.c if (hex2bin(a->key, a->key_string, a->key_size)) key 3292 drivers/md/dm-integrity.c if (a->key) { key 3293 drivers/md/dm-integrity.c r = crypto_shash_setkey(*hash, a->key, a->key_size); key 3351 drivers/md/dm-integrity.c if (ic->journal_crypt_alg.key) { key 3352 drivers/md/dm-integrity.c r = crypto_skcipher_setkey(ic->journal_crypt, ic->journal_crypt_alg.key, key 1126 drivers/md/dm-raid.c const char *arg, *key; key 1182 drivers/md/dm-raid.c key = dm_shift_arg(as); key 1183 drivers/md/dm-raid.c if (!key) { key 1188 drivers/md/dm-raid.c if (!strcasecmp(key, dm_raid_arg_name_by_flag(CTR_FLAG_NOSYNC))) { key 1195 drivers/md/dm-raid.c if (!strcasecmp(key, dm_raid_arg_name_by_flag(CTR_FLAG_SYNC))) { key 1202 drivers/md/dm-raid.c if (!strcasecmp(key, dm_raid_arg_name_by_flag(CTR_FLAG_RAID10_USE_NEAR_SETS))) { key 1221 drivers/md/dm-raid.c if (!strcasecmp(key, dm_raid_arg_name_by_flag(CTR_FLAG_RAID10_FORMAT))) { key 1239 drivers/md/dm-raid.c if (!strcasecmp(key, dm_raid_arg_name_by_flag(CTR_FLAG_JOURNAL_DEV))) { key 1272 drivers/md/dm-raid.c if (!strcasecmp(key, dm_raid_arg_name_by_flag(CTR_FLAG_JOURNAL_MODE))) { key 1300 drivers/md/dm-raid.c if (!strcasecmp(key, dm_raid_arg_name_by_flag(CTR_FLAG_REBUILD))) { key 1321 drivers/md/dm-raid.c } else if (!strcasecmp(key, dm_raid_arg_name_by_flag(CTR_FLAG_WRITE_MOSTLY))) { key 1335 drivers/md/dm-raid.c } else if (!strcasecmp(key, dm_raid_arg_name_by_flag(CTR_FLAG_MAX_WRITE_BEHIND))) { key 1356 drivers/md/dm-raid.c } else if (!strcasecmp(key, dm_raid_arg_name_by_flag(CTR_FLAG_DAEMON_SLEEP))) { key 1366 drivers/md/dm-raid.c } else if (!strcasecmp(key, dm_raid_arg_name_by_flag(CTR_FLAG_DATA_OFFSET))) { key 1379 drivers/md/dm-raid.c } else if (!strcasecmp(key, dm_raid_arg_name_by_flag(CTR_FLAG_DELTA_DISKS))) { key 1392 drivers/md/dm-raid.c } else if (!strcasecmp(key, dm_raid_arg_name_by_flag(CTR_FLAG_STRIPE_CACHE))) { key 1408 drivers/md/dm-raid.c } else if (!strcasecmp(key, dm_raid_arg_name_by_flag(CTR_FLAG_MIN_RECOVERY_RATE))) { key 1419 drivers/md/dm-raid.c } else if (!strcasecmp(key, dm_raid_arg_name_by_flag(CTR_FLAG_MAX_RECOVERY_RATE))) { key 1430 drivers/md/dm-raid.c } else if (!strcasecmp(key, dm_raid_arg_name_by_flag(CTR_FLAG_REGION_SIZE))) { key 1438 drivers/md/dm-raid.c } else if (!strcasecmp(key, dm_raid_arg_name_by_flag(CTR_FLAG_RAID10_COPIES))) { key 1451 drivers/md/dm-raid.c DMERR("Unable to parse RAID parameter: %s", key); key 335 drivers/md/dm-raid1.c region_t key = dm_rh_get_region_key(reg); key 341 drivers/md/dm-raid1.c from.sector = m->offset + dm_rh_region_to_sector(ms->rh, key); key 342 drivers/md/dm-raid1.c if (key == (ms->nr_regions - 1)) { key 360 drivers/md/dm-raid1.c dest->sector = m->offset + dm_rh_region_to_sector(ms->rh, key); key 104 drivers/md/dm-region-hash.c region_t key; key 143 drivers/md/dm-region-hash.c return reg->key; key 277 drivers/md/dm-region-hash.c if (reg->key == region) key 285 drivers/md/dm-region-hash.c list_add(®->hash_list, rh->buckets + rh_hash(rh, reg->key)); key 299 drivers/md/dm-region-hash.c nreg->key = region; key 368 drivers/md/dm-region-hash.c rh->log->type->set_region_sync(rh->log, reg->key, success); key 484 drivers/md/dm-region-hash.c rh->log->type->clear_region(rh->log, reg->key); key 495 drivers/md/dm-region-hash.c rh->log->type->clear_region(rh->log, reg->key); key 518 drivers/md/dm-region-hash.c rh->log->type->mark_region(rh->log, reg->key); key 793 drivers/md/dm-thin-metadata.c uint64_t key; key 799 drivers/md/dm-thin-metadata.c key = td->id; key 808 drivers/md/dm-thin-metadata.c &key, &details, &pmd->details_root); key 982 drivers/md/dm-thin-metadata.c uint64_t key = dev; key 1005 drivers/md/dm-thin-metadata.c &key, &details_le); key 1049 drivers/md/dm-thin-metadata.c uint64_t key = dev; key 1055 drivers/md/dm-thin-metadata.c &key, &details_le); key 1071 drivers/md/dm-thin-metadata.c r = dm_btree_insert(&pmd->tl_info, pmd->root, &key, &value, &pmd->root); key 1079 drivers/md/dm-thin-metadata.c dm_btree_remove(&pmd->tl_info, pmd->root, &key, &pmd->root); key 1126 drivers/md/dm-thin-metadata.c uint64_t key = origin, dev_key = dev; key 1138 drivers/md/dm-thin-metadata.c r = dm_btree_lookup(&pmd->tl_info, pmd->root, &key, &value); key 1149 drivers/md/dm-thin-metadata.c key = dev; key 1150 drivers/md/dm-thin-metadata.c r = dm_btree_insert(&pmd->tl_info, pmd->root, &key, &value, &pmd->root); key 1171 drivers/md/dm-thin-metadata.c dm_btree_remove(&pmd->tl_info, pmd->root, &key, &pmd->root); key 1173 drivers/md/dm-thin-metadata.c &key, &pmd->details_root); key 1194 drivers/md/dm-thin-metadata.c uint64_t key = dev; key 1210 drivers/md/dm-thin-metadata.c &key, &pmd->details_root); key 1214 drivers/md/dm-thin-metadata.c r = dm_btree_remove(&pmd->tl_info, pmd->root, &key, &pmd->root); key 121 drivers/md/dm-thin.c dm_block_t b, dm_block_t e, struct dm_cell_key *key) key 123 drivers/md/dm-thin.c key->virtual = (ls == VIRTUAL); key 124 drivers/md/dm-thin.c key->dev = dm_thin_dev_id(td); key 125 drivers/md/dm-thin.c key->block_begin = b; key 126 drivers/md/dm-thin.c key->block_end = e; key 130 drivers/md/dm-thin.c struct dm_cell_key *key) key 132 drivers/md/dm-thin.c build_key(td, PHYSICAL, b, b + 1llu, key); key 136 drivers/md/dm-thin.c struct dm_cell_key *key) key 138 drivers/md/dm-thin.c build_key(td, VIRTUAL, b, b + 1llu, key); key 443 drivers/md/dm-thin.c static int bio_detain(struct pool *pool, struct dm_cell_key *key, struct bio *bio, key 455 drivers/md/dm-thin.c r = dm_bio_detain(pool->prison, key, bio, cell_prealloc, cell_result); key 1066 drivers/md/dm-thin.c r = dm_thin_remove_range(tc->td, m->cell->key.block_begin, m->cell->key.block_end); key 1670 drivers/md/dm-thin.c m->virt_begin = virt_cell->key.block_begin; key 1671 drivers/md/dm-thin.c m->virt_end = virt_cell->key.block_end; key 1753 drivers/md/dm-thin.c break_up_discard_bio(tc, virt_cell->key.block_begin, virt_cell->key.block_end, bio); key 1793 drivers/md/dm-thin.c struct dm_cell_key *key, key 1868 drivers/md/dm-thin.c struct dm_cell_key key; key 1874 drivers/md/dm-thin.c build_data_key(tc->td, lookup_result->block, &key); key 1875 drivers/md/dm-thin.c if (bio_detain(pool, &key, bio, &data_cell)) { key 1881 drivers/md/dm-thin.c break_sharing(tc, bio, block, &key, lookup_result, data_cell); key 2004 drivers/md/dm-thin.c struct dm_cell_key key; key 2010 drivers/md/dm-thin.c build_virtual_key(tc->td, block, &key); key 2011 drivers/md/dm-thin.c if (bio_detain(pool, &key, bio, &cell)) key 2725 drivers/md/dm-thin.c struct dm_cell_key key; key 2749 drivers/md/dm-thin.c build_virtual_key(tc->td, block, &key); key 2750 drivers/md/dm-thin.c if (bio_detain(tc->pool, &key, bio, &virt_cell)) key 2779 drivers/md/dm-thin.c build_data_key(tc->td, result.block, &key); key 2780 drivers/md/dm-thin.c if (bio_detain(tc->pool, &key, bio, &data_cell)) { key 34 drivers/md/dm-verity-verify-sig.c struct key *key; key 38 drivers/md/dm-verity-verify-sig.c key = request_key(&key_type_user, key 40 drivers/md/dm-verity-verify-sig.c if (IS_ERR(key)) key 41 drivers/md/dm-verity-verify-sig.c return PTR_ERR(key); key 43 drivers/md/dm-verity-verify-sig.c down_read(&key->sem); key 45 drivers/md/dm-verity-verify-sig.c ukp = user_key_payload_locked(key); key 61 drivers/md/dm-verity-verify-sig.c up_read(&key->sem); key 62 drivers/md/dm-verity-verify-sig.c key_put(key); key 3119 drivers/md/dm.c static int dm_pr_reserve(struct block_device *bdev, u64 key, enum pr_type type, key 3132 drivers/md/dm.c r = ops->pr_reserve(bdev, key, type, flags); key 3140 drivers/md/dm.c static int dm_pr_release(struct block_device *bdev, u64 key, enum pr_type type) key 3152 drivers/md/dm.c r = ops->pr_release(bdev, key, type); key 3181 drivers/md/dm.c static int dm_pr_clear(struct block_device *bdev, u64 key) key 3193 drivers/md/dm.c r = ops->pr_clear(bdev, key); key 258 drivers/md/persistent-data/dm-array.c uint64_t key = index; key 261 drivers/md/persistent-data/dm-array.c r = dm_btree_lookup(&info->btree_info, root, &key, &block_le); key 332 drivers/md/persistent-data/dm-array.c uint64_t key = index; key 336 drivers/md/persistent-data/dm-array.c r = dm_btree_lookup(&info->btree_info, *root, &key, &block_le); key 443 drivers/md/persistent-data/dm-array.c uint64_t key = begin_index++; key 445 drivers/md/persistent-data/dm-array.c &key, &resize->root); key 851 drivers/md/persistent-data/dm-array.c int (*fn)(void *context, uint64_t key, void *leaf); key 886 drivers/md/persistent-data/dm-array.c int (*fn)(void *, uint64_t key, void *leaf), key 905 drivers/md/persistent-data/dm-array.c uint64_t key; key 914 drivers/md/persistent-data/dm-array.c r = dm_btree_cursor_get_value(&c->cursor, &key, &value_le); key 180 drivers/md/persistent-data/dm-array.h int (*fn)(void *context, uint64_t key, void *leaf), key 137 drivers/md/persistent-data/dm-btree-internal.h int lower_bound(struct btree_node *n, uint64_t key); key 409 drivers/md/persistent-data/dm-btree-remove.c struct dm_btree_value_type *vt, uint64_t key) key 432 drivers/md/persistent-data/dm-btree-remove.c i = lower_bound(n, key); key 451 drivers/md/persistent-data/dm-btree-remove.c static int do_leaf(struct btree_node *n, uint64_t key, unsigned *index) key 453 drivers/md/persistent-data/dm-btree-remove.c int i = lower_bound(n, key); key 457 drivers/md/persistent-data/dm-btree-remove.c (le64_to_cpu(n->keys[i]) != key)) key 471 drivers/md/persistent-data/dm-btree-remove.c uint64_t key, unsigned *index) key 495 drivers/md/persistent-data/dm-btree-remove.c return do_leaf(n, key, index); key 497 drivers/md/persistent-data/dm-btree-remove.c r = rebalance_children(s, info, vt, key); key 503 drivers/md/persistent-data/dm-btree-remove.c return do_leaf(n, key, index); key 505 drivers/md/persistent-data/dm-btree-remove.c i = lower_bound(n, key); key 563 drivers/md/persistent-data/dm-btree-remove.c uint64_t key, int *index) key 587 drivers/md/persistent-data/dm-btree-remove.c *index = lower_bound(n, key); key 591 drivers/md/persistent-data/dm-btree-remove.c r = rebalance_children(s, info, vt, key); key 597 drivers/md/persistent-data/dm-btree-remove.c *index = lower_bound(n, key); key 601 drivers/md/persistent-data/dm-btree-remove.c i = lower_bound(n, key); key 41 drivers/md/persistent-data/dm-btree.c static int bsearch(struct btree_node *n, uint64_t key, int want_hi) key 49 drivers/md/persistent-data/dm-btree.c if (mid_key == key) key 52 drivers/md/persistent-data/dm-btree.c if (mid_key < key) key 61 drivers/md/persistent-data/dm-btree.c int lower_bound(struct btree_node *n, uint64_t key) key 63 drivers/md/persistent-data/dm-btree.c return bsearch(n, key, 0); key 66 drivers/md/persistent-data/dm-btree.c static int upper_bound(struct btree_node *n, uint64_t key) key 68 drivers/md/persistent-data/dm-btree.c return bsearch(n, key, 1); key 86 drivers/md/persistent-data/dm-btree.c uint64_t key, void *value) key 90 drivers/md/persistent-data/dm-btree.c __le64 key_le = cpu_to_le64(key); key 344 drivers/md/persistent-data/dm-btree.c static int btree_lookup_raw(struct ro_spine *s, dm_block_t block, uint64_t key, key 356 drivers/md/persistent-data/dm-btree.c i = search_fn(ro_node(s), key); key 420 drivers/md/persistent-data/dm-btree.c uint64_t key, uint64_t *rkey, void *value_le) key 436 drivers/md/persistent-data/dm-btree.c i = lower_bound(n, key); key 449 drivers/md/persistent-data/dm-btree.c r = dm_btree_lookup_next_single(info, value64(n, i), key, rkey, value_le); key 452 drivers/md/persistent-data/dm-btree.c r = dm_btree_lookup_next_single(info, value64(n, i), key, rkey, value_le); key 456 drivers/md/persistent-data/dm-btree.c i = upper_bound(n, key); key 533 drivers/md/persistent-data/dm-btree.c uint64_t key) key 588 drivers/md/persistent-data/dm-btree.c if (key < le64_to_cpu(rn->keys[0])) { key 620 drivers/md/persistent-data/dm-btree.c static int btree_split_beneath(struct shadow_spine *s, uint64_t key) key 694 drivers/md/persistent-data/dm-btree.c uint64_t key, unsigned *index) key 723 drivers/md/persistent-data/dm-btree.c r = btree_split_beneath(s, key); key 725 drivers/md/persistent-data/dm-btree.c r = btree_split_sibling(s, i, key); key 733 drivers/md/persistent-data/dm-btree.c i = lower_bound(node, key); key 740 drivers/md/persistent-data/dm-btree.c node->keys[0] = cpu_to_le64(key); key 748 drivers/md/persistent-data/dm-btree.c if (i < 0 || le64_to_cpu(node->keys[i]) != key) key 1148 drivers/md/persistent-data/dm-btree.c int dm_btree_cursor_get_value(struct dm_btree_cursor *c, uint64_t *key, void *value_le) key 1157 drivers/md/persistent-data/dm-btree.c *key = le64_to_cpu(*key_ptr(bn, n->index)); key 213 drivers/md/persistent-data/dm-btree.h int dm_btree_cursor_get_value(struct dm_btree_cursor *c, uint64_t *key, void *value_le); key 32 drivers/media/common/b2c2/flexcop-eeprom.c static int eeprom_writeKey(struct adapter *adapter, u8 *key, u32 len) key 40 drivers/media/common/b2c2/flexcop-eeprom.c memcpy(wbuf, key, len); key 48 drivers/media/common/b2c2/flexcop-eeprom.c static int eeprom_readKey(struct adapter *adapter, u8 *key, u32 len) key 58 drivers/media/common/b2c2/flexcop-eeprom.c memcpy(key, buf, len); key 473 drivers/media/dvb-frontends/dib9000.c static int dib9000_firmware_download(struct dib9000_state *state, u8 risc_id, u16 key, const u8 * code, u32 len) key 485 drivers/media/dvb-frontends/dib9000.c dib9000_write_word(state, 1031 + offs, key); key 768 drivers/media/dvb-frontends/drxk_hard.c u16 key = 0; key 777 drivers/media/dvb-frontends/drxk_hard.c status = read16(state, SIO_TOP_COMM_KEY__A, &key); key 789 drivers/media/dvb-frontends/drxk_hard.c status = write16(state, SIO_TOP_COMM_KEY__A, key); key 244 drivers/media/i2c/ir-kbd-i2c.c unsigned char subaddr, key, keygroup; key 248 drivers/media/i2c/ir-kbd-i2c.c .buf = &key, .len = 1} }; key 255 drivers/media/i2c/ir-kbd-i2c.c if (key == 0xff) key 268 drivers/media/i2c/ir-kbd-i2c.c dev_dbg(&ir->rc->dev, "read key 0x%02x/0x%02x\n", key, keygroup); key 271 drivers/media/i2c/ir-kbd-i2c.c keygroup, key); key 273 drivers/media/i2c/ir-kbd-i2c.c key |= (keygroup & 1) << 6; key 276 drivers/media/i2c/ir-kbd-i2c.c *scancode = key; key 4630 drivers/media/pci/bt8xx/bttv-cards.c int key = input % 4; key 4634 drivers/media/pci/bt8xx/bttv-cards.c btv->c.nr, input, matrix, key); key 4638 drivers/media/pci/bt8xx/bttv-cards.c ((matrix == 3) ? (key | key << 2) : 0x00), 1); key 4640 drivers/media/pci/bt8xx/bttv-cards.c ((matrix == 0) ? (key | key << 2) : 0x00), 1); key 4642 drivers/media/pci/bt8xx/bttv-cards.c ((matrix == 1) ? (key | key << 2) : 0x00), 1); key 4644 drivers/media/pci/bt8xx/bttv-cards.c ((matrix == 2) ? (key | key << 2) : 0x00), 1); key 110 drivers/media/pci/ddbridge/ddbridge-mci.c static struct mci_base *match_base(void *key) key 115 drivers/media/pci/ddbridge/ddbridge-mci.c if (p->key == key) key 135 drivers/media/pci/ddbridge/ddbridge-mci.c void *key = cfg->type ? (void *)port : (void *)link; key 141 drivers/media/pci/ddbridge/ddbridge-mci.c base = match_base(key); key 149 drivers/media/pci/ddbridge/ddbridge-mci.c base->key = key; key 223 drivers/media/pci/ddbridge/ddbridge-mci.h void *key; key 419 drivers/media/platform/seco-cec/seco-cec.c u16 val, status, key, addr, toggle; key 428 drivers/media/platform/seco-cec/seco-cec.c key = val & SECOCEC_IR_COMMAND_MASK; key 432 drivers/media/platform/seco-cec/seco-cec.c rc_keydown(cec->ir, RC_PROTO_RC5, RC_SCANCODE_RC5(addr, key), toggle); key 434 drivers/media/platform/seco-cec/seco-cec.c dev_dbg(dev, "IR key pressed: 0x%02x addr 0x%02x toggle 0x%02x", key, key 467 drivers/media/rc/rc-main.c static int rc_map_cmp(const void *key, const void *elt) key 469 drivers/media/rc/rc-main.c const unsigned int *scancode = key; key 1825 drivers/media/usb/dvb-usb-v2/af9035.c u32 key; key 1838 drivers/media/usb/dvb-usb-v2/af9035.c key = RC_SCANCODE_NEC(buf[0], buf[2]); key 1842 drivers/media/usb/dvb-usb-v2/af9035.c key = RC_SCANCODE_NECX(buf[0] << 8 | buf[1], buf[2]); key 1847 drivers/media/usb/dvb-usb-v2/af9035.c key = RC_SCANCODE_NEC32(buf[0] << 24 | buf[1] << 16 | key 1854 drivers/media/usb/dvb-usb-v2/af9035.c rc_keydown(d->rc_dev, proto, key, 0); key 273 drivers/media/usb/dvb-usb-v2/lmedm04.c u32 key; key 305 drivers/media/usb/dvb-usb-v2/lmedm04.c key = RC_SCANCODE_NEC32(ibuf[2] << 24 | key 310 drivers/media/usb/dvb-usb-v2/lmedm04.c deb_info(1, "INT Key = 0x%08x", key); key 311 drivers/media/usb/dvb-usb-v2/lmedm04.c rc_keydown(adap_to_d(adap)->rc_dev, RC_PROTO_NEC32, key, key 40 drivers/media/usb/dvb-usb/a800.c u8 *key = kmalloc(5, GFP_KERNEL); key 41 drivers/media/usb/dvb-usb/a800.c if (!key) key 45 drivers/media/usb/dvb-usb/a800.c 0x04, USB_TYPE_VENDOR | USB_DIR_IN, 0, 0, key, 5, key 52 drivers/media/usb/dvb-usb/a800.c if (key[0] == 1) key 54 drivers/media/usb/dvb-usb/a800.c RC_SCANCODE_NEC(key[1], key[3]), 0); key 55 drivers/media/usb/dvb-usb/a800.c else if (key[0] == 2) key 58 drivers/media/usb/dvb-usb/a800.c kfree(key); key 234 drivers/media/usb/dvb-usb/digitv.c u8 key[5]; key 240 drivers/media/usb/dvb-usb/digitv.c ret = digitv_ctrl_msg(d, USB_READ_REMOTE, 0, NULL, 0, &key[1], 4); key 251 drivers/media/usb/dvb-usb/digitv.c if (key[1] != 0) key 254 drivers/media/usb/dvb-usb/digitv.c if (rc5_custom(&d->props.rc.legacy.rc_map_table[i]) == key[1] && key 255 drivers/media/usb/dvb-usb/digitv.c rc5_data(&d->props.rc.legacy.rc_map_table[i]) == key[2]) { key 263 drivers/media/usb/dvb-usb/digitv.c if (key[0] != 0) key 264 drivers/media/usb/dvb-usb/digitv.c deb_rc("key: %*ph\n", 5, key); key 79 drivers/media/usb/dvb-usb/dvb-usb.h static inline u8 rc5_custom(struct rc_map_table *key) key 81 drivers/media/usb/dvb-usb/dvb-usb.h return (key->scancode >> 8) & 0xff; key 84 drivers/media/usb/dvb-usb/dvb-usb.h static inline u8 rc5_data(struct rc_map_table *key) key 86 drivers/media/usb/dvb-usb/dvb-usb.h return key->scancode & 0xff; key 89 drivers/media/usb/dvb-usb/dvb-usb.h static inline u16 rc5_scan(struct rc_map_table *key) key 91 drivers/media/usb/dvb-usb/dvb-usb.h return key->scancode & 0xffff; key 1657 drivers/media/usb/dvb-usb/dw2102.c u8 key[2]; key 1661 drivers/media/usb/dvb-usb/dw2102.c .buf = key, key 1668 drivers/media/usb/dvb-usb/dw2102.c __func__, key[0], key[1]); key 1669 drivers/media/usb/dvb-usb/dw2102.c rc_keydown(d->rc_dev, RC_PROTO_UNKNOWN, key[0], 0); key 1678 drivers/media/usb/dvb-usb/dw2102.c u8 key[2]; key 1682 drivers/media/usb/dvb-usb/dw2102.c .buf = key, key 1689 drivers/media/usb/dvb-usb/dw2102.c __func__, key[0], key[1]); key 1690 drivers/media/usb/dvb-usb/dw2102.c rc_keydown(d->rc_dev, RC_PROTO_UNKNOWN, key[0] ^ 0xff, key 1700 drivers/media/usb/dvb-usb/dw2102.c u8 key[2]; key 1704 drivers/media/usb/dvb-usb/dw2102.c .buf = key, key 1711 drivers/media/usb/dvb-usb/dw2102.c __func__, key[0], key[1]); key 1713 drivers/media/usb/dvb-usb/dw2102.c RC_SCANCODE_RC5(key[1], key[0]), 0); key 261 drivers/media/usb/dvb-usb/vp702x.c u8 *key; key 264 drivers/media/usb/dvb-usb/vp702x.c key = kmalloc(10, GFP_KERNEL); key 265 drivers/media/usb/dvb-usb/vp702x.c if (!key) key 268 drivers/media/usb/dvb-usb/vp702x.c vp702x_usb_in_op(d,READ_REMOTE_REQ,0,0,key,10); key 270 drivers/media/usb/dvb-usb/vp702x.c deb_rc("remote query key: %x %d\n",key[1],key[1]); key 272 drivers/media/usb/dvb-usb/vp702x.c if (key[1] == 0x44) { key 274 drivers/media/usb/dvb-usb/vp702x.c kfree(key); key 279 drivers/media/usb/dvb-usb/vp702x.c if (rc5_custom(&rc_map_vp702x_table[i]) == key[1]) { key 284 drivers/media/usb/dvb-usb/vp702x.c kfree(key); key 100 drivers/media/usb/dvb-usb/vp7045.c u8 key; key 102 drivers/media/usb/dvb-usb/vp7045.c ret = vp7045_usb_op(d, RC_VAL_READ, NULL, 0, &key, 1, 20); key 106 drivers/media/usb/dvb-usb/vp7045.c deb_rc("remote query key: %x\n", key); key 108 drivers/media/usb/dvb-usb/vp7045.c if (key != 0x44) { key 114 drivers/media/usb/dvb-usb/vp7045.c rc_keydown(d->rc_dev, RC_PROTO_NEC, RC_SCANCODE_NEC(0, key), 0); key 166 drivers/media/usb/em28xx/em28xx-input.c unsigned char subaddr, keydetect, key; key 188 drivers/media/usb/em28xx/em28xx-input.c msg[1].buf = &key; key 191 drivers/media/usb/em28xx/em28xx-input.c if (key == 0x00) key 195 drivers/media/usb/em28xx/em28xx-input.c *scancode = key; key 2127 drivers/media/v4l2-core/v4l2-ctrls.c struct lock_class_key *key, const char *name) key 2131 drivers/media/v4l2-core/v4l2-ctrls.c lockdep_set_class_and_name(hdl->lock, key, name); key 121 drivers/mfd/ipaq-micro.c if (micro->key) key 122 drivers/mfd/ipaq-micro.c micro->key(micro->key_data, len, data); key 130 drivers/misc/altera-stapl/altera.c static void altera_export_int(char *key, s32 value) key 132 drivers/misc/altera-stapl/altera.c dprintk("Export: key = \"%s\", value = %d\n", key, value); key 138 drivers/misc/altera-stapl/altera.c static void altera_export_bool_array(char *key, u8 *data, s32 count) key 146 drivers/misc/altera-stapl/altera.c key, count); key 200 drivers/misc/altera-stapl/altera.c key, count, string); key 2116 drivers/misc/altera-stapl/altera.c char *key, char *value, int keylen, int vallen) key 2165 drivers/misc/altera-stapl/altera.c if (key && !strncasecmp(key, key_ptr, strlen(key_ptr))) { key 2188 drivers/misc/altera-stapl/altera.c if (key != NULL) key 2189 drivers/misc/altera-stapl/altera.c strlcpy(key, &p[note_strings + key 2407 drivers/misc/altera-stapl/altera.c char *key = NULL; key 2421 drivers/misc/altera-stapl/altera.c key = kzalloc(33, GFP_KERNEL); key 2422 drivers/misc/altera-stapl/altera.c if (!key) { key 2452 drivers/misc/altera-stapl/altera.c &offset, key, value, 32, 256) == 0) key 2454 drivers/misc/altera-stapl/altera.c __func__, key, value); key 2518 drivers/misc/altera-stapl/altera.c kfree(key); key 159 drivers/misc/ibmasm/remote.c unsigned int key; key 163 drivers/misc/ibmasm/remote.c key = xlate_high[code & 0xff]; key 165 drivers/misc/ibmasm/remote.c key = xlate[code]; key 166 drivers/misc/ibmasm/remote.c input_report_key(dev, key, input->data.keyboard.key_down); key 209 drivers/misc/sgi-xp/xp.h int ch_number, void *data, void *key); key 234 drivers/misc/sgi-xp/xp.h int ch_number, void *key); key 253 drivers/misc/sgi-xp/xp.h void *key; /* pointer to user's key */ key 304 drivers/misc/sgi-xp/xp.h u16 payload_size, xpc_notify_func func, void *key) key 310 drivers/misc/sgi-xp/xp.h payload_size, func, key); key 133 drivers/misc/sgi-xp/xp_main.c xpc_connect(int ch_number, xpc_channel_func func, void *key, u16 payload_size, key 162 drivers/misc/sgi-xp/xp_main.c registration->key = key; key 211 drivers/misc/sgi-xp/xp_main.c registration->key = NULL; key 293 drivers/misc/sgi-xp/xpc.h void *key; /* pointer to user's key */ key 345 drivers/misc/sgi-xp/xpc.h void *key; /* pointer to user's key */ key 142 drivers/misc/sgi-xp/xpc_channel.c ch->key = NULL; key 499 drivers/misc/sgi-xp/xpc_channel.c ch->key = registration->key; key 686 drivers/misc/sgi-xp/xpc_channel.c (void *)(u64)ch->local_nentries, ch->key); key 813 drivers/misc/sgi-xp/xpc_channel.c ch->func(reason, ch->partid, ch->number, NULL, ch->key); key 924 drivers/misc/sgi-xp/xpc_channel.c u16 payload_size, xpc_notify_func func, void *key) key 939 drivers/misc/sgi-xp/xpc_channel.c flags, payload, payload_size, XPC_N_CALL, func, key); key 972 drivers/misc/sgi-xp/xpc_channel.c ch->key); key 1383 drivers/misc/sgi-xp/xpc_uv.c func(reason, ch->partid, ch->number, msg_slot->key); key 1536 drivers/misc/sgi-xp/xpc_uv.c void *key) key 1568 drivers/misc/sgi-xp/xpc_uv.c msg_slot->key = key; key 1608 drivers/misc/sgi-xp/xpc_uv.c msg_slot->key = NULL; key 259 drivers/misc/sgi-xp/xpnet.c void *data, void *key) key 1640 drivers/misc/vmw_balloon.c static_key_enable(&balloon_stat_enabled.key); key 1717 drivers/misc/vmw_balloon.c static_key_disable(&balloon_stat_enabled.key); key 491 drivers/net/bonding/bond_3ad.c partner->key = ntohs(lacpdu->actor_key); key 558 drivers/net/bonding/bond_3ad.c ntohs(lacpdu->actor_key) != partner->key || key 590 drivers/net/bonding/bond_3ad.c admin->key != oper->key || key 805 drivers/net/bonding/bond_3ad.c lacpdu->partner_key = htons(partner->key); key 1465 drivers/net/bonding/bond_3ad.c (aggregator->partner_oper_aggregator_key == port->partner_oper.key) key 1516 drivers/net/bonding/bond_3ad.c port->aggregator->partner_oper_aggregator_key = port->partner_oper.key; key 1830 drivers/net/bonding/bond_3ad.c .key = 1, key 230 drivers/net/bonding/bond_procfs.c port->partner_oper.key); key 415 drivers/net/dsa/bcm_sf2_cfp.c core_writel(priv, ip.key->tos << IPTOS_SHIFT | key 434 drivers/net/dsa/bcm_sf2_cfp.c bcm_sf2_cfp_slice_ipv4(priv, ipv4.key, ports.key, slice_num, false); key 717 drivers/net/dsa/bcm_sf2_cfp.c bcm_sf2_cfp_slice_ipv6(priv, ipv6.key->src.in6_u.u6_addr32, key 718 drivers/net/dsa/bcm_sf2_cfp.c ports.key->src, slice_num, false); key 777 drivers/net/dsa/bcm_sf2_cfp.c bcm_sf2_cfp_slice_ipv6(priv, ipv6.key->dst.in6_u.u6_addr32, key 778 drivers/net/dsa/bcm_sf2_cfp.c ports.key->dst, slice_num, false); key 780 drivers/net/dsa/bcm_sf2_cfp.c ports.key->dst, SLICE_NUM_MASK, true); key 262 drivers/net/dsa/lantiq_gswip.c u16 key[8]; key 528 drivers/net/dsa/lantiq_gswip.c for (i = 0; i < ARRAY_SIZE(tbl->key); i++) key 529 drivers/net/dsa/lantiq_gswip.c tbl->key[i] = gswip_switch_r(priv, GSWIP_PCE_TBL_KEY(i)); key 565 drivers/net/dsa/lantiq_gswip.c for (i = 0; i < ARRAY_SIZE(tbl->key); i++) key 566 drivers/net/dsa/lantiq_gswip.c gswip_switch_w(priv, tbl->key[i], GSWIP_PCE_TBL_KEY(i)); key 613 drivers/net/dsa/lantiq_gswip.c vlan_active.key[0] = 0; /* vid */ key 875 drivers/net/dsa/lantiq_gswip.c vlan_active.key[0] = vid; key 1327 drivers/net/dsa/lantiq_gswip.c mac_bridge.key[0] = addr[5] | (addr[4] << 8); key 1328 drivers/net/dsa/lantiq_gswip.c mac_bridge.key[1] = addr[3] | (addr[2] << 8); key 1329 drivers/net/dsa/lantiq_gswip.c mac_bridge.key[2] = addr[1] | (addr[0] << 8); key 1330 drivers/net/dsa/lantiq_gswip.c mac_bridge.key[3] = fid; key 1377 drivers/net/dsa/lantiq_gswip.c addr[5] = mac_bridge.key[0] & 0xff; key 1378 drivers/net/dsa/lantiq_gswip.c addr[4] = (mac_bridge.key[0] >> 8) & 0xff; key 1379 drivers/net/dsa/lantiq_gswip.c addr[3] = mac_bridge.key[1] & 0xff; key 1380 drivers/net/dsa/lantiq_gswip.c addr[2] = (mac_bridge.key[1] >> 8) & 0xff; key 1381 drivers/net/dsa/lantiq_gswip.c addr[1] = mac_bridge.key[2] & 0xff; key 1382 drivers/net/dsa/lantiq_gswip.c addr[0] = (mac_bridge.key[2] >> 8) & 0xff; key 677 drivers/net/ethernet/amazon/ena/ena_admin_defs.h u32 key[10]; key 1054 drivers/net/ethernet/amazon/ena/ena_com.c netdev_rss_key_fill(&hash_key->key, sizeof(hash_key->key)); key 1059 drivers/net/ethernet/amazon/ena/ena_com.c hash_key->keys_num = sizeof(hash_key->key) / sizeof(u32); key 2287 drivers/net/ethernet/amazon/ena/ena_com.c const u8 *key, u16 key_len, u32 init_val) key 2313 drivers/net/ethernet/amazon/ena/ena_com.c if (key) { key 2314 drivers/net/ethernet/amazon/ena/ena_com.c if (key_len != sizeof(hash_key->key)) { key 2316 drivers/net/ethernet/amazon/ena/ena_com.c key_len, sizeof(hash_key->key)); key 2319 drivers/net/ethernet/amazon/ena/ena_com.c memcpy(hash_key->key, key, key_len); key 2344 drivers/net/ethernet/amazon/ena/ena_com.c u8 *key) key 2367 drivers/net/ethernet/amazon/ena/ena_com.c if (key) key 2368 drivers/net/ethernet/amazon/ena/ena_com.c memcpy(key, hash_key->key, (size_t)(hash_key->keys_num) << 2); key 683 drivers/net/ethernet/amazon/ena/ena_com.h const u8 *key, u16 key_len, u32 init_val); key 713 drivers/net/ethernet/amazon/ena/ena_com.h u8 *key); key 661 drivers/net/ethernet/amazon/ena/ena_ethtool.c static int ena_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, key 676 drivers/net/ethernet/amazon/ena/ena_ethtool.c rc = ena_com_get_hash_function(adapter->ena_dev, &ena_func, key); key 680 drivers/net/ethernet/amazon/ena/ena_ethtool.c key = NULL; key 711 drivers/net/ethernet/amazon/ena/ena_ethtool.c const u8 *key, const u8 hfunc) key 754 drivers/net/ethernet/amazon/ena/ena_ethtool.c if (key) { key 755 drivers/net/ethernet/amazon/ena/ena_ethtool.c rc = ena_com_fill_hash_function(ena_dev, func, key, key 362 drivers/net/ethernet/amd/xgbe/xgbe-dev.c unsigned int *key = (unsigned int *)&pdata->rss_key; key 367 drivers/net/ethernet/amd/xgbe/xgbe-dev.c key_regs, *key++); key 391 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_set_rss_hash_key(struct xgbe_prv_data *pdata, const u8 *key) key 393 drivers/net/ethernet/amd/xgbe/xgbe-dev.c memcpy(pdata->rss_key, key, sizeof(pdata->rss_key)); key 548 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c static int xgbe_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, key 560 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c if (key) key 561 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c memcpy(key, pdata->rss_key, sizeof(pdata->rss_key)); key 570 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c const u8 *key, const u8 hfunc) key 587 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c if (key) { key 588 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ret = hw_if->set_rss_hash_key(pdata, key); key 57 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c struct xgene_cle_ptree_key *key = &kn->key[i]; key 60 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c buf[j] = SET_VAL(CLE_KN_PRIO, key->priority) | key 61 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c SET_VAL(CLE_KN_RPTR, key->result_pointer); key 63 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c data = SET_VAL(CLE_KN_PRIO, key->priority) | key 64 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c SET_VAL(CLE_KN_RPTR, key->result_pointer); key 809 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c kn.key[0].priority = 0; key 810 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c kn.key[0].result_pointer = DB_RES_ACCEPT; key 230 drivers/net/ethernet/apm/xgene/xgene_enet_cle.h struct xgene_cle_ptree_key key[32]; key 183 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static int aq_ethtool_get_rss(struct net_device *ndev, u32 *indir, u8 *key, key 196 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c if (key) key 197 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c memcpy(key, cfg->aq_rss.hash_secret_key, key 203 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c const u8 *key, const u8 hfunc) key 223 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c if (key) { key 224 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c memcpy(cfg->aq_rss.hash_secret_key, key, key 3487 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c static int bnx2x_get_rxfh(struct net_device *dev, u32 *indir, u8 *key, key 3518 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c const u8 *key, const u8 hfunc) key 3526 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c if (key || key 1208 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c static int bnxt_get_rxfh(struct net_device *dev, u32 *indir, u8 *key, key 1227 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c if (key && vnic->rss_hash_key) key 1228 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c memcpy(key, vnic->rss_hash_key, HW_HASH_KEY_SIZE); key 102 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c const struct ip_tunnel_key *tun_key = &tun_info->key; key 191 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->l2_key.ether_type = match.key->n_proto; key 194 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c if (match.key->n_proto == htons(ETH_P_IP) || key 195 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c match.key->n_proto == htons(ETH_P_IPV6)) { key 196 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->l4_key.ip_proto = match.key->ip_proto; key 206 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c ether_addr_copy(flow->l2_key.dmac, match.key->dst); key 208 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c ether_addr_copy(flow->l2_key.smac, match.key->src); key 217 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c cpu_to_be16(VLAN_TCI(match.key->vlan_id, key 218 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c match.key->vlan_priority)); key 232 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->l3_key.ipv4.daddr.s_addr = match.key->dst; key 234 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->l3_key.ipv4.saddr.s_addr = match.key->src; key 241 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->l3_key.ipv6.daddr = match.key->dst; key 243 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->l3_key.ipv6.saddr = match.key->src; key 252 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->l4_key.ports.dport = match.key->dst; key 254 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->l4_key.ports.sport = match.key->src; key 263 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->l4_key.icmp.type = match.key->type; key 264 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->l4_key.icmp.code = match.key->code; key 274 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->tun_key.u.ipv4.dst = match.key->dst; key 276 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->tun_key.u.ipv4.src = match.key->src; key 288 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->tun_key.tun_id = key32_to_tunnel_id(match.key->keyid); key 297 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->tun_key.tp_dst = match.key->dst; key 299 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->tun_key.tp_src = match.key->src; key 374 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c static bool bits_set(void *key, int len) key 376 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c const u8 *p = key; key 708 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c l2_node->key = *l2_key; key 859 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c tunnel_node->key = *tun_key; key 1592 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c .key_offset = offsetof(struct bnxt_tc_l2_node, key), key 1599 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c .key_offset = offsetof(struct bnxt_tc_l2_node, key), key 1606 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c .key_offset = offsetof(struct bnxt_tc_tunnel_node, key), key 133 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.h struct ip_tunnel_key key; key 157 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.h struct bnxt_tc_l2_key key; key 12644 drivers/net/ethernet/broadcom/tg3.c static int tg3_get_rxfh(struct net_device *dev, u32 *indir, u8 *key, u8 *hfunc) key 12660 drivers/net/ethernet/broadcom/tg3.c static int tg3_set_rxfh(struct net_device *dev, const u32 *indir, const u8 *key, key 12669 drivers/net/ethernet/broadcom/tg3.c if (key || key 548 drivers/net/ethernet/brocade/bna/bfi_enet.h u32 key[BFI_ENET_RSS_KEY_LEN]; key 324 drivers/net/ethernet/brocade/bna/bna_tx_rx.c req->cfg.key[i] = key 146 drivers/net/ethernet/cavium/thunder/nic.h u64 key[RSS_HASH_KEY_SIZE]; key 370 drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c int mbox, key, stat, q; key 388 drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c for (key = 0; key < RSS_HASH_KEY_SIZE; key++) key 389 drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c p[i++] = nicvf_reg_read(nic, NIC_VNIC_RSS_KEY_0_4 | (key << 3)); key 664 drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c memcpy(hkey, rss->key, RSS_HASH_KEY_SIZE * sizeof(u64)); key 694 drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c memcpy(rss->key, hkey, RSS_HASH_KEY_SIZE * sizeof(u64)); key 367 drivers/net/ethernet/cavium/thunder/nicvf_main.c nicvf_reg_write(nic, key_addr, rss->key[idx]); key 387 drivers/net/ethernet/cavium/thunder/nicvf_main.c netdev_rss_key_fill(rss->key, RSS_HASH_KEY_SIZE * sizeof(u64)); key 68 drivers/net/ethernet/chelsio/cxgb3/l2t.c static inline unsigned int arp_hash(u32 key, int ifindex, key 71 drivers/net/ethernet/chelsio/cxgb3/l2t.c return jhash_2words(key, ifindex, 0) & (d->nentries - 1); key 2999 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c u32 addr, key[4], mask[4]; key 3001 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c key[0] = tp->sport | (tp->sip << 16); key 3002 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c key[1] = (tp->sip >> 16) | (tp->dport << 16); key 3003 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c key[2] = tp->dip; key 3004 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c key[3] = tp->proto | (tp->vlan << 8) | (tp->intf << 20); key 3012 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c key[3] |= (1 << 29); key 3014 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c key[3] |= (1 << 28); key 3017 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c tp_wr_indirect(adapter, addr++, key[0]); key 3019 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c tp_wr_indirect(adapter, addr++, key[1]); key 3021 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c tp_wr_indirect(adapter, addr++, key[2]); key 3023 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c tp_wr_indirect(adapter, addr++, key[3]); key 21 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c static inline unsigned int ipv4_clip_hash(struct clip_tbl *c, const u32 *key) key 25 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c return jhash_1word(*key, 0) % clipt_size_half; key 28 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c static inline unsigned int ipv6_clip_hash(struct clip_tbl *d, const u32 *key) key 31 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c u32 xor = key[0] ^ key[1] ^ key[2] ^ key[3]; key 1694 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h void t4_read_rss_key(struct adapter *adapter, u32 *key, bool sleep_ok); key 1695 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h void t4_write_rss_key(struct adapter *adap, const u32 *key, int idx, key 2190 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c u32 key[10]; key 2192 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c t4_read_rss_key(seq->private, key, true); key 2194 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c key[9], key[8], key[7], key[6], key[5], key[4], key[3], key 2195 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c key[2], key[1], key[0]); key 2208 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c u32 key[10]; key 2221 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c key[i] = 0; key 2225 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c key[i] = (key[i] << 4) | hex2val(*p); key 2229 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c t4_write_rss_key(adap, key, -1, true); key 1290 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c static int get_rss_table(struct net_device *dev, u32 *p, u8 *key, u8 *hfunc) key 1304 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c static int set_rss_table(struct net_device *dev, const u32 *p, const u8 *key, key 1313 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c if (key || key 4863 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c adap->vres.key.start = val[0]; key 4864 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c adap->vres.key.size = val[1] - val[0] + 1; key 94 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c addr_type = match.key->addr_type; key 102 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c ethtype_key = ntohs(match.key->n_proto); key 115 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->val.proto = match.key->ip_proto; key 124 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->val.lip[0], &match.key->dst, sizeof(match.key->dst)); key 125 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->val.fip[0], &match.key->src, sizeof(match.key->src)); key 130 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->nat_lip[0], &match.key->dst, sizeof(match.key->dst)); key 131 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->nat_fip[0], &match.key->src, sizeof(match.key->src)); key 139 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->val.lip[0], match.key->dst.s6_addr, key 140 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c sizeof(match.key->dst)); key 141 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->val.fip[0], match.key->src.s6_addr, key 142 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c sizeof(match.key->src)); key 149 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->nat_lip[0], match.key->dst.s6_addr, key 150 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c sizeof(match.key->dst)); key 151 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->nat_fip[0], match.key->src.s6_addr, key 152 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c sizeof(match.key->src)); key 159 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->val.lport = cpu_to_be16(match.key->dst); key 161 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->val.fport = cpu_to_be16(match.key->src); key 165 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->nat_lport = cpu_to_be16(match.key->dst); key 166 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->nat_fport = cpu_to_be16(match.key->src); key 173 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->val.tos = match.key->tos; key 181 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->val.vni = be32_to_cpu(match.key->keyid); key 194 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c vlan_tci = match.key->vlan_id | (match.key->vlan_priority << key 252 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c ethtype_key = ntohs(match.key->n_proto); key 293 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h struct cxgb4_range key; key 86 drivers/net/ethernet/chelsio/cxgb4/l2t.c static inline unsigned int arp_hash(struct l2t_data *d, const u32 *key, key 91 drivers/net/ethernet/chelsio/cxgb4/l2t.c return jhash_2words(*key, ifindex, 0) % l2t_size_half; key 94 drivers/net/ethernet/chelsio/cxgb4/l2t.c static inline unsigned int ipv6_hash(struct l2t_data *d, const u32 *key, key 98 drivers/net/ethernet/chelsio/cxgb4/l2t.c u32 xor = key[0] ^ key[1] ^ key[2] ^ key[3]; key 5466 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c void t4_read_rss_key(struct adapter *adap, u32 *key, bool sleep_ok) key 5468 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c t4_tp_pio_read(adap, key, 10, TP_RSS_SECRET_KEY0_A, sleep_ok); key 5482 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c void t4_write_rss_key(struct adapter *adap, const u32 *key, int idx, key 5496 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c t4_tp_pio_write(adap, (void *)key, 10, TP_RSS_SECRET_KEY0_A, sleep_ok); key 2226 drivers/net/ethernet/cisco/enic/enic_main.c rss_key_buf_va->key[kidx].b[bidx] = enic->rss_key[i]; key 32 drivers/net/ethernet/cisco/enic/vnic_rss.h } key[ENIC_RSS_KEYS]; key 2844 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c static int config_legacy_hash_key(struct dpaa2_eth_priv *priv, dma_addr_t key) key 2852 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c dist_cfg.key_cfg_iova = key; key 2864 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c static int config_hash_key(struct dpaa2_eth_priv *priv, dma_addr_t key) key 2872 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c dist_cfg.key_cfg_iova = key; key 2884 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c static int config_cls_key(struct dpaa2_eth_priv *priv, dma_addr_t key) key 2892 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c dist_cfg.key_cfg_iova = key; key 2969 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c struct dpkg_extract *key = key 2985 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c key->type = DPKG_EXTRACT_FROM_HDR; key 2986 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c key->extract.from_hdr.prot = dist_fields[i].cls_prot; key 2987 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c key->extract.from_hdr.type = DPKG_FULL_FIELD; key 2988 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c key->extract.from_hdr.field = dist_fields[i].cls_field; key 3033 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c u64 key = 0; key 3041 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c key |= dist_fields[i].id; key 3043 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c return dpaa2_eth_set_dist_key(net_dev, DPAA2_ETH_RX_DIST_HASH, key); key 521 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h int dpaa2_eth_set_cls(struct net_device *net_dev, u64 key); key 522 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h int dpaa2_eth_cls_key_size(u64 key); key 275 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c void *key, void *mask, u64 *fields) key 281 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = eth_value->h_proto; key 288 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c ether_addr_copy(key + off, eth_value->h_source); key 295 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c ether_addr_copy(key + off, eth_value->h_dest); key 305 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c void *key, void *mask, u64 *fields) key 315 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be32 *)(key + off) = uip_value->ip4src; key 322 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be32 *)(key + off) = uip_value->ip4dst; key 329 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(u8 *)(key + off) = uip_value->proto; key 339 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = htons(tmp_value >> 16); key 344 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = htons(tmp_value & 0xFFFF); key 351 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = htons(ETH_P_IP); key 360 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c void *key, void *mask, u8 l4_proto, u64 *fields) key 369 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be32 *)(key + off) = l4_value->ip4src; key 376 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be32 *)(key + off) = l4_value->ip4dst; key 383 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = l4_value->psrc; key 390 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = l4_value->pdst; key 397 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = htons(ETH_P_IP); key 402 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(u8 *)(key + off) = l4_proto; key 411 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c void *key, void *mask, u64 *fields) key 420 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = ext_value->vlan_tci; key 430 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c void *key, void *mask, u64 *fields) key 436 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c ether_addr_copy(key + off, ext_value->h_dest); key 444 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c static int prep_cls_rule(struct ethtool_rx_flow_spec *fs, void *key, void *mask, key 452 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c key, mask, fields); key 456 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c &fs->m_u.usr_ip4_spec, key, mask, fields); key 460 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c key, mask, IPPROTO_TCP, fields); key 464 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c key, mask, IPPROTO_UDP, fields); key 468 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c &fs->m_u.sctp_ip4_spec, key, mask, key 479 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c err = prep_ext_rule(&fs->h_ext, &fs->m_ext, key, mask, fields); key 485 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c err = prep_mac_ext_rule(&fs->h_ext, &fs->m_ext, key, mask, key 486 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c static int enetc_get_rxfh(struct net_device *ndev, u32 *indir, u8 *key, key 498 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c if (key && hw->port) key 500 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c ((u32 *)key)[i] = enetc_port_rd(hw, ENETC_PRSSK(i)); key 518 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c const u8 *key, const u8 hfunc) key 525 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c if (key && hw->port) key 526 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c enetc_set_rss_key(hw, key); key 530 drivers/net/ethernet/hisilicon/hns/hnae.h int (*get_rss)(struct hnae_handle *handle, u32 *indir, u8 *key, key 533 drivers/net/ethernet/hisilicon/hns/hnae.h const u8 *key, const u8 hfunc); key 910 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c static int hns_ae_get_rss(struct hnae_handle *handle, u32 *indir, u8 *key, key 920 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c if (key) key 921 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c memcpy(key, ppe_cb->rss_key, HNS_PPEV2_RSS_KEY_SIZE); key 932 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c const u8 *key, const u8 hfunc) key 937 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c if (key) { key 938 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c memcpy(ppe_cb->rss_key, key, HNS_PPEV2_RSS_KEY_SIZE); key 1207 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c hns_get_rss(struct net_device *netdev, u32 *indir, u8 *key, u8 *hfunc) key 1223 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c return ops->get_rss(priv->ae_handle, indir, key, hfunc); key 1227 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c hns_set_rss(struct net_device *netdev, const u32 *indir, const u8 *key, key 1246 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c return ops->set_rss(priv->ae_handle, indir, key, hfunc); key 457 drivers/net/ethernet/hisilicon/hns3/hnae3.h int (*get_rss)(struct hnae3_handle *handle, u32 *indir, u8 *key, key 460 drivers/net/ethernet/hisilicon/hns3/hnae3.h const u8 *key, const u8 hfunc); key 827 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c static int hns3_get_rss(struct net_device *netdev, u32 *indir, u8 *key, key 835 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c return h->ae_algo->ops->get_rss(h, indir, key, hfunc); key 839 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c const u8 *key, const u8 hfunc) key 859 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c return h->ae_algo->ops->set_rss(h, indir, key, hfunc); key 4010 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c const u8 hfunc, const u8 *key) key 4031 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c key + key_offset * HCLGE_RSS_HASH_KEY_NUM, key_size); key 4153 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c u8 *key, u8 *hfunc) key 4174 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (key) key 4175 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c memcpy(key, vport->rss_hash_key, HCLGE_RSS_KEY_SIZE); key 4186 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c const u8 *key, const u8 hfunc) key 4194 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (key) { key 4209 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ret = hclge_set_rss_algo_key(hdev, hash_algo, key); key 4214 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c memcpy(vport->rss_hash_key, key, HCLGE_RSS_KEY_SIZE); key 4395 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c u8 *key = vport[0].rss_hash_key; key 4406 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ret = hclge_set_rss_algo_key(hdev, hfunc, key); key 4805 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c int loc, u8 *key, bool is_add) key 4829 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (key) { key 4830 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c memcpy(req1->tcam_data, &key[0], sizeof(req1->tcam_data)); key 4831 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c memcpy(req2->tcam_data, &key[sizeof(req1->tcam_data)], key 4833 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c memcpy(req3->tcam_data, &key[sizeof(req1->tcam_data) + key 550 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c const u8 hfunc, const u8 *key) key 573 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c key + key_offset * HCLGEVF_RSS_HASH_KEY_NUM, key_size); key 707 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c static int hclgevf_get_rss(struct hnae3_handle *handle, u32 *indir, u8 *key, key 731 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c if (key) key 732 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c memcpy(key, rss_cfg->rss_hash_key, key 737 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c if (key) { key 741 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c memcpy(key, rss_cfg->rss_hash_key, key 754 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c const u8 *key, const u8 hfunc) key 762 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c if (key) { key 779 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c key); key 784 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c memcpy(rss_cfg->rss_hash_key, key, key 296 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c const u32 *indir, const u8 *key) key 319 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c if (key) { key 328 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c memcpy(nic_dev->rss_hkey_user, key, HINIC_RSS_KEY_SIZE); key 331 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c nic_dev->rss_tmpl_idx, key); key 378 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c u32 *indir, u8 *key, u8 *hfunc) key 404 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c if (key) key 406 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c nic_dev->rss_tmpl_idx, key); key 412 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c const u8 *key, const u8 hfunc) key 434 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c err = __set_rss_rxfh(netdev, indir, key); key 792 drivers/net/ethernet/huawei/hinic/hinic_port.c memcpy(rss_key.key, temp, HINIC_RSS_KEY_SIZE); key 835 drivers/net/ethernet/huawei/hinic/hinic_port.c memcpy(temp, temp_key.key, HINIC_RSS_KEY_SIZE); key 267 drivers/net/ethernet/huawei/hinic/hinic_port.h u8 key[HINIC_RSS_KEY_SIZE]; key 316 drivers/net/ethernet/huawei/hinic/hinic_port.h u8 key[HINIC_RSS_KEY_SIZE]; key 1053 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c static int fm10k_get_rssh(struct net_device *netdev, u32 *indir, u8 *key, key 1063 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c if (err || !key) key 1066 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c for (i = 0; i < FM10K_RSSRK_SIZE; i++, key += 4) key 1067 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c *(__le32 *)key = cpu_to_le32(interface->rssrk[i]); key 1073 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c const u8 *key, const u8 hfunc) key 1084 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c if (err || !key) key 1087 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c for (i = 0; i < FM10K_RSSRK_SIZE; i++, key += 4) { key 1088 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c u32 rssrk = le32_to_cpu(*(__le32 *)key); key 668 drivers/net/ethernet/intel/i40e/i40e.h u64 key = 0; key 670 drivers/net/ethernet/intel/i40e/i40e.h ether_addr_copy((u8 *)&key, macaddr); key 671 drivers/net/ethernet/intel/i40e/i40e.h return key; key 470 drivers/net/ethernet/intel/i40e/i40e_common.c struct i40e_aqc_get_set_rss_key_data *key, key 496 drivers/net/ethernet/intel/i40e/i40e_common.c status = i40e_asq_send_command(hw, &desc, key, key_size, NULL); key 510 drivers/net/ethernet/intel/i40e/i40e_common.c struct i40e_aqc_get_set_rss_key_data *key) key 512 drivers/net/ethernet/intel/i40e/i40e_common.c return i40e_aq_get_set_rss_key(hw, vsi_id, key, false); key 525 drivers/net/ethernet/intel/i40e/i40e_common.c struct i40e_aqc_get_set_rss_key_data *key) key 527 drivers/net/ethernet/intel/i40e/i40e_common.c return i40e_aq_get_set_rss_key(hw, vsi_id, key, true); key 4743 drivers/net/ethernet/intel/i40e/i40e_ethtool.c static int i40e_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, key 4758 drivers/net/ethernet/intel/i40e/i40e_ethtool.c seed = key; key 4785 drivers/net/ethernet/intel/i40e/i40e_ethtool.c const u8 *key, const u8 hfunc) key 4796 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (key) { key 4803 drivers/net/ethernet/intel/i40e/i40e_ethtool.c memcpy(vsi->rss_hkey_user, key, I40E_HKEY_ARRAY_SIZE); key 1124 drivers/net/ethernet/intel/i40e/i40e_main.c u64 key; key 1129 drivers/net/ethernet/intel/i40e/i40e_main.c key = i40e_addr_to_hkey(macaddr); key 1130 drivers/net/ethernet/intel/i40e/i40e_main.c hash_for_each_possible(vsi->mac_filter_hash, f, hlist, key) { key 1149 drivers/net/ethernet/intel/i40e/i40e_main.c u64 key; key 1154 drivers/net/ethernet/intel/i40e/i40e_main.c key = i40e_addr_to_hkey(macaddr); key 1155 drivers/net/ethernet/intel/i40e/i40e_main.c hash_for_each_possible(vsi->mac_filter_hash, f, hlist, key) { key 1355 drivers/net/ethernet/intel/i40e/i40e_main.c u64 key; key 1377 drivers/net/ethernet/intel/i40e/i40e_main.c key = i40e_addr_to_hkey(macaddr); key 1378 drivers/net/ethernet/intel/i40e/i40e_main.c hash_add(vsi->mac_filter_hash, &f->hlist, key); key 1972 drivers/net/ethernet/intel/i40e/i40e_main.c u64 key = i40e_addr_to_hkey(f->macaddr); key 1976 drivers/net/ethernet/intel/i40e/i40e_main.c hash_add(vsi->mac_filter_hash, &f->hlist, key); key 7773 drivers/net/ethernet/intel/i40e/i40e_main.c filter->tenant_id = be32_to_cpu(match.key->keyid); key 7780 drivers/net/ethernet/intel/i40e/i40e_main.c n_proto_key = ntohs(match.key->n_proto); key 7788 drivers/net/ethernet/intel/i40e/i40e_main.c filter->ip_proto = match.key->ip_proto; key 7816 drivers/net/ethernet/intel/i40e/i40e_main.c ether_addr_copy(filter->dst_mac, match.key->dst); key 7817 drivers/net/ethernet/intel/i40e/i40e_main.c ether_addr_copy(filter->src_mac, match.key->src); key 7835 drivers/net/ethernet/intel/i40e/i40e_main.c filter->vlan_id = cpu_to_be16(match.key->vlan_id); key 7842 drivers/net/ethernet/intel/i40e/i40e_main.c addr_type = match.key->addr_type; key 7873 drivers/net/ethernet/intel/i40e/i40e_main.c filter->dst_ipv4 = match.key->dst; key 7874 drivers/net/ethernet/intel/i40e/i40e_main.c filter->src_ipv4 = match.key->src; key 7885 drivers/net/ethernet/intel/i40e/i40e_main.c if (ipv6_addr_loopback(&match.key->dst) || key 7886 drivers/net/ethernet/intel/i40e/i40e_main.c ipv6_addr_loopback(&match.key->src)) { key 7895 drivers/net/ethernet/intel/i40e/i40e_main.c memcpy(&filter->src_ipv6, &match.key->src.s6_addr32, key 7897 drivers/net/ethernet/intel/i40e/i40e_main.c memcpy(&filter->dst_ipv6, &match.key->dst.s6_addr32, key 7925 drivers/net/ethernet/intel/i40e/i40e_main.c filter->dst_port = match.key->dst; key 7926 drivers/net/ethernet/intel/i40e/i40e_main.c filter->src_port = match.key->src; key 47 drivers/net/ethernet/intel/i40e/i40e_prototype.h struct i40e_aqc_get_set_rss_key_data *key); key 50 drivers/net/ethernet/intel/i40e/i40e_prototype.h struct i40e_aqc_get_set_rss_key_data *key); key 2959 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c aq_ret = i40e_config_rss(vsi, vrk->key, NULL, 0); key 444 drivers/net/ethernet/intel/iavf/iavf_common.c struct iavf_aqc_get_set_rss_key_data *key, key 470 drivers/net/ethernet/intel/iavf/iavf_common.c status = iavf_asq_send_command(hw, &desc, key, key_size, NULL); key 483 drivers/net/ethernet/intel/iavf/iavf_common.c struct iavf_aqc_get_set_rss_key_data *key) key 485 drivers/net/ethernet/intel/iavf/iavf_common.c return iavf_aq_get_set_rss_key(hw, vsi_id, key, false); key 497 drivers/net/ethernet/intel/iavf/iavf_common.c struct iavf_aqc_get_set_rss_key_data *key) key 499 drivers/net/ethernet/intel/iavf/iavf_common.c return iavf_aq_get_set_rss_key(hw, vsi_id, key, true); key 947 drivers/net/ethernet/intel/iavf/iavf_ethtool.c static int iavf_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, key 958 drivers/net/ethernet/intel/iavf/iavf_ethtool.c memcpy(key, adapter->rss_key, adapter->rss_key_size); key 978 drivers/net/ethernet/intel/iavf/iavf_ethtool.c const u8 *key, const u8 hfunc) key 984 drivers/net/ethernet/intel/iavf/iavf_ethtool.c if (key || key 990 drivers/net/ethernet/intel/iavf/iavf_ethtool.c if (key) key 991 drivers/net/ethernet/intel/iavf/iavf_ethtool.c memcpy(adapter->rss_key, key, adapter->rss_key_size); key 2727 drivers/net/ethernet/intel/iavf/iavf_main.c n_proto_key = ntohs(match.key->n_proto); key 2742 drivers/net/ethernet/intel/iavf/iavf_main.c if (match.key->ip_proto != IPPROTO_TCP) { key 2774 drivers/net/ethernet/intel/iavf/iavf_main.c if (!is_zero_ether_addr(match.key->dst)) key 2775 drivers/net/ethernet/intel/iavf/iavf_main.c if (is_valid_ether_addr(match.key->dst) || key 2776 drivers/net/ethernet/intel/iavf/iavf_main.c is_multicast_ether_addr(match.key->dst)) { key 2781 drivers/net/ethernet/intel/iavf/iavf_main.c match.key->dst); key 2784 drivers/net/ethernet/intel/iavf/iavf_main.c if (!is_zero_ether_addr(match.key->src)) key 2785 drivers/net/ethernet/intel/iavf/iavf_main.c if (is_valid_ether_addr(match.key->src) || key 2786 drivers/net/ethernet/intel/iavf/iavf_main.c is_multicast_ether_addr(match.key->src)) { key 2791 drivers/net/ethernet/intel/iavf/iavf_main.c match.key->src); key 2809 drivers/net/ethernet/intel/iavf/iavf_main.c vf->data.tcp_spec.vlan_id = cpu_to_be16(match.key->vlan_id); key 2816 drivers/net/ethernet/intel/iavf/iavf_main.c addr_type = match.key->addr_type; key 2847 drivers/net/ethernet/intel/iavf/iavf_main.c if (match.key->dst) { key 2849 drivers/net/ethernet/intel/iavf/iavf_main.c vf->data.tcp_spec.dst_ip[0] = match.key->dst; key 2851 drivers/net/ethernet/intel/iavf/iavf_main.c if (match.key->src) { key 2853 drivers/net/ethernet/intel/iavf/iavf_main.c vf->data.tcp_spec.src_ip[0] = match.key->src; key 2872 drivers/net/ethernet/intel/iavf/iavf_main.c if (ipv6_addr_loopback(&match.key->dst) || key 2873 drivers/net/ethernet/intel/iavf/iavf_main.c ipv6_addr_loopback(&match.key->src)) { key 2884 drivers/net/ethernet/intel/iavf/iavf_main.c memcpy(&vf->data.tcp_spec.dst_ip, &match.key->dst.s6_addr32, key 2888 drivers/net/ethernet/intel/iavf/iavf_main.c memcpy(&vf->data.tcp_spec.src_ip, &match.key->src.s6_addr32, key 2914 drivers/net/ethernet/intel/iavf/iavf_main.c if (match.key->dst) { key 2916 drivers/net/ethernet/intel/iavf/iavf_main.c vf->data.tcp_spec.dst_port = match.key->dst; key 2919 drivers/net/ethernet/intel/iavf/iavf_main.c if (match.key->src) { key 2921 drivers/net/ethernet/intel/iavf/iavf_main.c vf->data.tcp_spec.src_port = match.key->src; key 48 drivers/net/ethernet/intel/iavf/iavf_prototype.h struct iavf_aqc_get_set_rss_key_data *key); key 50 drivers/net/ethernet/intel/iavf/iavf_prototype.h struct iavf_aqc_get_set_rss_key_data *key); key 844 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c memcpy(vrk->key, adapter->rss_key, adapter->rss_key_size); key 2708 drivers/net/ethernet/intel/ice/ice_common.c struct ice_aqc_get_set_rss_keys *key, key 2712 drivers/net/ethernet/intel/ice/ice_common.c u16 key_size = sizeof(*key); key 2729 drivers/net/ethernet/intel/ice/ice_common.c return ice_aq_send_cmd(hw, &desc, key, key_size, NULL); key 2742 drivers/net/ethernet/intel/ice/ice_common.c struct ice_aqc_get_set_rss_keys *key) key 2744 drivers/net/ethernet/intel/ice/ice_common.c if (!ice_is_vsi_valid(hw, vsi_handle) || !key) key 2748 drivers/net/ethernet/intel/ice/ice_common.c key, false); key 2985 drivers/net/ethernet/intel/ice/ice_ethtool.c ice_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, u8 *hfunc) key 3009 drivers/net/ethernet/intel/ice/ice_ethtool.c if (ice_get_rss(vsi, key, lut, vsi->rss_table_size)) { key 3033 drivers/net/ethernet/intel/ice/ice_ethtool.c ice_set_rxfh(struct net_device *netdev, const u32 *indir, const u8 *key, key 3050 drivers/net/ethernet/intel/ice/ice_ethtool.c if (key) { key 3059 drivers/net/ethernet/intel/ice/ice_ethtool.c memcpy(vsi->rss_hkey_user, key, ICE_VSIQF_HKEY_ARRAY_SIZE); key 190 drivers/net/ethernet/intel/ice/ice_flex_type.h struct ice_boost_key_value key; key 199 drivers/net/ethernet/intel/ice/ice_flex_type.h struct ice_boost_key key; key 340 drivers/net/ethernet/intel/ice/ice_flex_type.h u8 key[ICE_TCAM_KEY_SZ]; key 1441 drivers/net/ethernet/intel/ice/ice_lib.c struct ice_aqc_get_set_rss_keys *key; key 1468 drivers/net/ethernet/intel/ice/ice_lib.c key = devm_kzalloc(&pf->pdev->dev, sizeof(*key), GFP_KERNEL); key 1469 drivers/net/ethernet/intel/ice/ice_lib.c if (!key) { key 1475 drivers/net/ethernet/intel/ice/ice_lib.c memcpy(key, key 1479 drivers/net/ethernet/intel/ice/ice_lib.c netdev_rss_key_fill((void *)key, key 1482 drivers/net/ethernet/intel/ice/ice_lib.c status = ice_aq_set_rss_key(&pf->hw, vsi->idx, key); key 1490 drivers/net/ethernet/intel/ice/ice_lib.c devm_kfree(&pf->pdev->dev, key); key 1810 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c if (ice_set_rss(vsi, vrk->key, NULL, 0)) key 3293 drivers/net/ethernet/intel/igb/igb_ethtool.c static int igb_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, key 3345 drivers/net/ethernet/intel/igb/igb_ethtool.c const u8 *key, const u8 hfunc) key 3353 drivers/net/ethernet/intel/igb/igb_ethtool.c if (key || key 2613 drivers/net/ethernet/intel/igb/igb_main.c ether_addr_copy(input->filter.dst_addr, match.key->dst); key 2624 drivers/net/ethernet/intel/igb/igb_main.c ether_addr_copy(input->filter.src_addr, match.key->src); key 2639 drivers/net/ethernet/intel/igb/igb_main.c input->filter.etype = match.key->n_proto; key 2654 drivers/net/ethernet/intel/igb/igb_main.c input->filter.vlan_tci = match.key->vlan_priority; key 1503 drivers/net/ethernet/intel/igc/igc_ethtool.c static int igc_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, key 1520 drivers/net/ethernet/intel/igc/igc_ethtool.c const u8 *key, const u8 hfunc) key 1527 drivers/net/ethernet/intel/igc/igc_ethtool.c if (key || key 2987 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c static int ixgbe_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, key 2998 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (key) key 2999 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c memcpy(key, adapter->rss_key, ixgbe_get_rxfh_key_size(netdev)); key 3005 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c const u8 *key, const u8 hfunc) key 3036 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (key) { key 3037 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c memcpy(adapter->rss_key, key, ixgbe_get_rxfh_key_size(netdev)); key 22 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c u32 key[], u32 salt) key 29 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c (__force u32)cpu_to_be32(key[3 - i])); key 74 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c u32 key[], u32 salt, u32 mode, u32 ip_idx) key 89 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c (__force u32)cpu_to_be32(key[3 - i])); key 327 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c r->key, r->salt, key 335 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ixgbe_ipsec_set_tx_sa(hw, i, t->key, t->salt); key 607 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ret = ixgbe_ipsec_parse_proto_keys(xs, rsa.key, &rsa.salt); key 685 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ixgbe_ipsec_set_rx_sa(hw, sa_idx, rsa.xs->id.spi, rsa.key, key 716 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ret = ixgbe_ipsec_parse_proto_keys(xs, tsa.key, &tsa.salt); key 726 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ixgbe_ipsec_set_tx_sa(hw, sa_idx, tsa.key, tsa.salt); key 939 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c memcpy(xs->aead->alg_key, sam->key, sizeof(sam->key)); key 35 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.h u32 key[4]; key 52 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.h u32 key[4]; key 81 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.h u32 key[5]; key 898 drivers/net/ethernet/intel/ixgbevf/ethtool.c static int ixgbevf_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, key 908 drivers/net/ethernet/intel/ixgbevf/ethtool.c if (key) key 909 drivers/net/ethernet/intel/ixgbevf/ethtool.c memcpy(key, adapter->rss_key, key 922 drivers/net/ethernet/intel/ixgbevf/ethtool.c if (!indir && !key) key 930 drivers/net/ethernet/intel/ixgbevf/ethtool.c if (!err && key) key 931 drivers/net/ethernet/intel/ixgbevf/ethtool.c err = ixgbevf_get_rss_key_locked(&adapter->hw, key); key 37 drivers/net/ethernet/intel/ixgbevf/ipsec.c memcpy(sam->key, xs->aead->alg_key, sizeof(sam->key)); key 299 drivers/net/ethernet/intel/ixgbevf/ipsec.c ret = ixgbevf_ipsec_parse_proto_keys(xs, rsa.key, &rsa.salt); key 352 drivers/net/ethernet/intel/ixgbevf/ipsec.c ret = ixgbevf_ipsec_parse_proto_keys(xs, tsa.key, &tsa.salt); key 21 drivers/net/ethernet/intel/ixgbevf/ipsec.h u32 key[4]; key 37 drivers/net/ethernet/intel/ixgbevf/ipsec.h u32 key[4]; key 64 drivers/net/ethernet/intel/ixgbevf/ipsec.h u32 key[5]; key 4231 drivers/net/ethernet/marvell/mvneta.c const u8 *key, const u8 hfunc) key 4242 drivers/net/ethernet/marvell/mvneta.c if (key || key 4254 drivers/net/ethernet/marvell/mvneta.c static int mvneta_ethtool_get_rxfh(struct net_device *dev, u32 *indir, u8 *key, key 1249 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c rule->c2_tcam |= ((u64)match.key->vlan_id) << offs; key 1261 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c rule->c2_tcam |= ((u64)match.key->vlan_priority) << key 1283 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c rule->c2_tcam |= ((u64)ntohs(match.key->src)) << offs; key 1291 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c rule->c2_tcam |= ((u64)ntohs(match.key->dst)) << offs; key 4275 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c static int mvpp2_ethtool_get_rxfh(struct net_device *dev, u32 *indir, u8 *key, key 4294 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c const u8 *key, const u8 hfunc) key 4305 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c if (key) key 4315 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c u8 *key, u8 *hfunc, u32 rss_context) key 4335 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c const u32 *indir, const u8 *key, key 4348 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c if (key) key 1232 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c static int mlx4_en_get_rxfh(struct net_device *dev, u32 *ring_index, u8 *key, key 1248 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (key) key 1249 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c memcpy(key, priv->rss_key, MLX4_EN_RSS_KEY_SIZE); key 1256 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c const u8 *key, const u8 hfunc) key 1300 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (key) key 1301 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c memcpy(priv->rss_key, key, MLX4_EN_RSS_KEY_SIZE); key 119 drivers/net/ethernet/mellanox/mlx4/en_rx.c rx_desc->data[i].lkey = cpu_to_be32(priv->mdev->mr.key); key 199 drivers/net/ethernet/mellanox/mlx4/en_tx.c ring->mr_key = cpu_to_be32(mdev->mr.key); key 304 drivers/net/ethernet/mellanox/mlx4/mlx4.h __be32 key; key 271 drivers/net/ethernet/mellanox/mlx4/mr.c static u32 key_to_hw_index(u32 key) key 273 drivers/net/ethernet/mellanox/mlx4/mr.c return (key << 24) | (key >> 8); key 297 drivers/net/ethernet/mellanox/mlx4/mr.c int key = key_to_hw_index(mmr->key) & (dev->caps.num_mpts - 1); key 303 drivers/net/ethernet/mellanox/mlx4/mr.c err = mlx4_HW2SW_MPT(dev, NULL, key); key 315 drivers/net/ethernet/mellanox/mlx4/mr.c key, NULL); key 321 drivers/net/ethernet/mellanox/mlx4/mr.c err = mlx4_cmd_box(dev, 0, mailbox->dma, key, key 360 drivers/net/ethernet/mellanox/mlx4/mr.c int key = key_to_hw_index(mmr->key) & (dev->caps.num_mpts - 1); key 367 drivers/net/ethernet/mellanox/mlx4/mr.c err = mlx4_SW2HW_MPT(dev, mailbox, key); key 426 drivers/net/ethernet/mellanox/mlx4/mr.c mr->key = hw_index_to_key(mridx); key 552 drivers/net/ethernet/mellanox/mlx4/mr.c key_to_hw_index(mr->key) & key 575 drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_mpt_free_icm(dev, key_to_hw_index(mr->key)); key 576 drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_mpt_release(dev, key_to_hw_index(mr->key)); key 633 drivers/net/ethernet/mellanox/mlx4/mr.c err = mlx4_mpt_alloc_icm(dev, key_to_hw_index(mr->key)); key 647 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->key = cpu_to_be32(key_to_hw_index(mr->key)); key 672 drivers/net/ethernet/mellanox/mlx4/mr.c key_to_hw_index(mr->key) & (dev->caps.num_mpts - 1)); key 687 drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_mpt_free_icm(dev, key_to_hw_index(mr->key)); key 829 drivers/net/ethernet/mellanox/mlx4/mr.c mw->key = hw_index_to_key(index); key 844 drivers/net/ethernet/mellanox/mlx4/mr.c err = mlx4_mpt_alloc_icm(dev, key_to_hw_index(mw->key)); key 858 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->key = cpu_to_be32(key_to_hw_index(mw->key)); key 867 drivers/net/ethernet/mellanox/mlx4/mr.c key_to_hw_index(mw->key) & key 883 drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_mpt_free_icm(dev, key_to_hw_index(mw->key)); key 894 drivers/net/ethernet/mellanox/mlx4/mr.c key_to_hw_index(mw->key) & key 902 drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_mpt_free_icm(dev, key_to_hw_index(mw->key)); key 903 drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_mpt_release(dev, key_to_hw_index(mw->key)); key 999 drivers/net/ethernet/mellanox/mlx4/mr.c u32 key; key 1008 drivers/net/ethernet/mellanox/mlx4/mr.c key = key_to_hw_index(fmr->mr.key); key 1009 drivers/net/ethernet/mellanox/mlx4/mr.c key += dev->caps.num_mpts; key 1010 drivers/net/ethernet/mellanox/mlx4/mr.c *lkey = *rkey = fmr->mr.key = hw_index_to_key(key); key 1026 drivers/net/ethernet/mellanox/mlx4/mr.c fmr->mpt->key = cpu_to_be32(key); key 1027 drivers/net/ethernet/mellanox/mlx4/mr.c fmr->mpt->lkey = cpu_to_be32(key); key 1096 drivers/net/ethernet/mellanox/mlx4/mr.c key_to_hw_index(fmr->mr.key), NULL); key 159 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int key; key 1084 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static struct res_common *alloc_mpt_tr(int id, int key) key 1094 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c ret->key = key; key 1923 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = __mlx4_mpt_alloc_icm(dev, mpt->key); key 2434 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c index = mpt->key; key 2451 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c __mlx4_mpt_free_icm(dev, mpt->key); key 2896 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mpt->key, NULL); key 4886 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c __mlx4_mpt_release(dev, mpt->key); key 4899 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c __mlx4_mpt_free_icm(dev, mpt->key); key 93 drivers/net/ethernet/mellanox/mlx5/core/accel/tls.c void *key; key 100 drivers/net/ethernet/mellanox/mlx5/core/accel/tls.c key = info->key; key 101 drivers/net/ethernet/mellanox/mlx5/core/accel/tls.c sz_bytes = sizeof(info->key); key 108 drivers/net/ethernet/mellanox/mlx5/core/accel/tls.c key = info->key; key 109 drivers/net/ethernet/mellanox/mlx5/core/accel/tls.c sz_bytes = sizeof(info->key); key 116 drivers/net/ethernet/mellanox/mlx5/core/accel/tls.c return mlx5_create_encryption_key(mdev, key, sz_bytes, p_key_id); key 746 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c MLX5_SET(mtrc_conf, in, trace_mkey, tracer->buff.mkey.key); key 213 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c const struct ip_tunnel_key *tun_key = &e->tun_info->key; key 332 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c const struct ip_tunnel_key *tun_key = &e->tun_info->key; key 549 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c ntohs(enc_ports.key->dst)); key 559 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c ntohs(enc_ports.key->src)); key 37 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c if (be16_to_cpu(enc_ports.key->dst) != GENEVE_UDP_PORT) { key 42 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c be16_to_cpu(enc_ports.key->dst)); key 104 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c udp->dest = tun_info->key.tp_dst; key 109 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c geneveh->oam = !!(tun_info->key.tun_flags & TUNNEL_OAM); key 110 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c geneveh->critical = !!(tun_info->key.tun_flags & TUNNEL_CRIT_OPT); key 111 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c mlx5e_tunnel_id_to_vni(tun_info->key.tun_id, geneveh->vni); key 114 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c if (tun_info->key.tun_flags & TUNNEL_GENEVE_OPT) { key 150 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c MLX5_SET(fte_match_set_misc, misc_v, geneve_vni, be32_to_cpu(enc_keyid.key->keyid)); key 191 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c if (enc_opts.key->dst_opt_type != TUNNEL_GENEVE_OPT) { key 214 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c if ((enc_opts.key->len / 4) > ((max_tlv_option_data_len + 1) * max_tlv_options)) { key 219 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c enc_opts.key->len); key 224 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c MLX5_SET(fte_match_set_misc, misc_v, geneve_opt_len, enc_opts.key->len / 4); key 227 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c option_key = (struct geneve_opt *)&enc_opts.key->data[0]; key 14 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_gre.c return gre_calc_hlen(e->tun_info->key.tun_flags); key 31 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_gre.c const struct ip_tunnel_key *tun_key = &e->tun_info->key; key 78 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_gre.c gre_key.key, be32_to_cpu(enc_keyid.mask->keyid)); key 80 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_gre.c gre_key.key, be32_to_cpu(enc_keyid.key->keyid)); key 33 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c be16_to_cpu(enc_ports.key->dst))) { key 38 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c be16_to_cpu(enc_ports.key->dst)); key 65 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c int dst_port = be16_to_cpu(e->tun_info->key.tp_dst); key 86 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c const struct ip_tunnel_key *tun_key = &e->tun_info->key; key 137 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c be32_to_cpu(enc_keyid.key->keyid)); key 1136 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c static int mlx5e_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, key 1146 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (key) key 1147 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c memcpy(key, rss->toeplitz_hash_key, key 1157 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c const u8 *key, const u8 hfunc) key 1201 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (key) { key 1202 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c memcpy(rss->toeplitz_hash_key, key, key 478 drivers/net/ethernet/mellanox/mlx5/core/en_main.c rq->mkey_be = cpu_to_be32(rq->umr_mkey.key); key 1991 drivers/net/ethernet/mellanox/mlx5/core/en_main.c c->mkey_be = cpu_to_be32(priv->mdev->mlx5e_res.mkey.key); key 202 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mod_hdr_key key; key 284 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c static inline u32 hash_mod_hdr_info(struct mod_hdr_key *key) key 286 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c return jhash(key->actions, key 287 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c key->num_actions * MLX5_MH_ACT_SZ, 0); key 309 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mlx5e_mod_hdr_get(struct mod_hdr_tbl *tbl, struct mod_hdr_key *key, u32 hash_key) key 314 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (!cmp_mod_hdr_info(&mh->key, key)) { key 354 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mod_hdr_key key; key 360 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c key.actions = parse_attr->mod_hdr_actions; key 361 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c key.num_actions = num_actions; key 363 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c hash_key = hash_mod_hdr_info(&key); key 369 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mh = mlx5e_mod_hdr_get(tbl, &key, hash_key); key 387 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mh->key.actions = (void *)mh + sizeof(*mh); key 388 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c memcpy(mh->key.actions, key.actions, actions_size); key 389 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mh->key.num_actions = num_actions; key 399 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mh->key.num_actions, key 400 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mh->key.actions); key 1678 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c addr_type = match.key->addr_type; key 1690 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c ntohl(match.key->src)); key 1697 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c ntohl(match.key->dst)); key 1713 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c &match.key->src, MLX5_FLD_SZ_BYTES(ipv6_layout, key 1722 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c &match.key->dst, MLX5_FLD_SZ_BYTES(ipv6_layout, key 1739 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key->tos & 0x3); key 1744 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key->tos >> 2); key 1749 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key->ttl); key 1867 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c ntohs(match.key->n_proto)); key 1879 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key = &filter_dev_key; key 1880 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key->vlan_id = vlan_dev_vlan_id(filter_dev); key 1881 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key->vlan_tpid = vlan_dev_vlan_proto(filter_dev); key 1882 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key->vlan_priority = 0; key 1892 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (match.key->vlan_tpid == htons(ETH_P_8021AD)) { key 1907 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key->vlan_id); key 1912 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key->vlan_priority); key 1932 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (match.key->vlan_tpid == htons(ETH_P_8021AD)) { key 1947 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key->vlan_id); key 1951 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key->vlan_priority); key 1966 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key->dst); key 1973 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key->src); key 1984 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c addr_type = match.key->addr_type; key 1993 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key->flags & FLOW_DIS_IS_FRAGMENT); key 1996 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (!(match.key->flags & FLOW_DIS_IS_FRAGMENT)) key 2008 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c ip_proto = match.key->ip_proto; key 2013 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key->ip_proto); key 2028 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c &match.key->src, sizeof(match.key->src)); key 2034 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c &match.key->dst, sizeof(match.key->dst)); key 2049 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c &match.key->src, sizeof(match.key->src)); key 2056 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c &match.key->dst, sizeof(match.key->dst)); key 2070 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key->tos & 0x3); key 2075 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key->tos >> 2); key 2080 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match.key->ttl); key 2105 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c tcp_sport, ntohs(match.key->src)); key 2110 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c tcp_dport, ntohs(match.key->dst)); key 2117 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c udp_sport, ntohs(match.key->src)); key 2122 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c udp_dport, ntohs(match.key->dst)); key 2143 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c ntohs(match.key->flags)); key 2934 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c static inline int hash_encap_info(struct encap_key *key) key 2936 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c return jhash(key->ip_tun_key, sizeof(*key->ip_tun_key), key 2937 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c key->tc_tunnel->tunnel_type); key 2962 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mlx5e_encap_get(struct mlx5e_priv *priv, struct encap_key *key, key 2971 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c e_key.ip_tun_key = &e->tun_info->key; key 2973 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (!cmp_encap_info(&e_key, key) && key 3000 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct encap_key key; key 3009 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c key.ip_tun_key = &tun_info->key; key 3010 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c key.tc_tunnel = mlx5e_get_tc_tun(mirred_dev); key 3011 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (!key.tc_tunnel) { key 3016 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c hash_key = hash_encap_info(&key); key 3019 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c e = mlx5e_encap_get(priv, &key, hash_key); key 585 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c dseg->av.key.qkey.qkey = cpu_to_be32(dqkey); key 118 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c data->lkey = cpu_to_be32(conn->fdev->conn_res.mkey.key); key 158 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c data->lkey = cpu_to_be32(conn->fdev->conn_res.mkey.key); key 1029 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c mlx5_fpga_dbg(fdev, "Created mkey 0x%x\n", fdev->conn_res.mkey.key); key 523 drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c crypto_info->key, TLS_CIPHER_AES_GCM_128_KEY_SIZE); key 528 drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c crypto_info->key, TLS_CIPHER_AES_GCM_128_KEY_SIZE); key 89 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c u8 key = hash_32(qpn, MLX5I_MAX_LOG_PKEY_SUP); key 99 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c hlist_add_head(&new_node->hlist, &ht->buckets[key]); key 8 drivers/net/ethernet/mellanox/mlx5/core/lib/crypto.c void *key, u32 sz_bytes, key 20 drivers/net/ethernet/mellanox/mlx5/core/lib/crypto.c key_p = MLX5_ADDR_OF(encryption_key_obj, obj, key); key 41 drivers/net/ethernet/mellanox/mlx5/core/lib/crypto.c memcpy(key_p, key, sz_bytes); key 84 drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h void *key, u32 sz_bytes, u32 *p_key_id); key 61 drivers/net/ethernet/mellanox/mlx5/core/mr.c u8 key; key 64 drivers/net/ethernet/mellanox/mlx5/core/mr.c key = dev->priv.mkey_key++; key 69 drivers/net/ethernet/mellanox/mlx5/core/mr.c MLX5_SET(mkc, mkc, mkey_7_0, key); key 82 drivers/net/ethernet/mellanox/mlx5/core/mr.c mkey->key = mlx5_idx_to_mkey(mkey_index) | key; key 86 drivers/net/ethernet/mellanox/mlx5/core/mr.c mkey_index, key, mkey->key); key 88 drivers/net/ethernet/mellanox/mlx5/core/mr.c err = xa_err(xa_store_irq(mkeys, mlx5_base_mkey(mkey->key), mkey, key 92 drivers/net/ethernet/mellanox/mlx5/core/mr.c mlx5_base_mkey(mkey->key), err); key 118 drivers/net/ethernet/mellanox/mlx5/core/mr.c __xa_erase(mkeys, mlx5_base_mkey(mkey->key)); key 122 drivers/net/ethernet/mellanox/mlx5/core/mr.c MLX5_SET(destroy_mkey_in, in, mkey_index, mlx5_mkey_to_idx(mkey->key)); key 134 drivers/net/ethernet/mellanox/mlx5/core/mr.c MLX5_SET(query_mkey_in, in, mkey_index, mlx5_mkey_to_idx(mkey->key)); key 247 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c chunk->rkey = icm_mr->mkey.key; key 346 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c send_info->read.lkey = send_ring->mr->mkey.key; key 374 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c send_info->write.lkey = send_ring->mr->mkey.key; key 980 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c send_info.rkey = send_ring->sync_mr->mkey.key; key 359 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c __mlxsw_item_set32(values->storage.key, storage_item, 0, key_value); key 379 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c __mlxsw_item_memcpy_to(values->storage.key, key_value, key 428 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c char *key, char *mask) key 450 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c values->storage.key, key 456 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c mlxsw_afk->ops->encode_block(key, i, block_key); key 462 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c void mlxsw_afk_clear(struct mlxsw_afk *mlxsw_afk, char *key, key 468 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c mlxsw_afk->ops->clear_block(key, i); key 235 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h char key[MLXSW_AFK_ELEMENT_STORAGE_SIZE]; key 250 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h char *key, char *mask); key 251 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h void mlxsw_afk_clear(struct mlxsw_afk *mlxsw_afk, char *key, key 2946 drivers/net/ethernet/mellanox/mlxsw/reg.h const char *key, u8 erp_id, key 2956 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_ptce3_flex2_key_blocks_memcpy_to(payload, key); key 917 drivers/net/ethernet/mellanox/mlxsw/spectrum.h struct mlxsw_sp_mr_route_key *key, key 922 drivers/net/ethernet/mellanox/mlxsw/spectrum.h struct mlxsw_sp_mr_route_key *key); key 924 drivers/net/ethernet/mellanox/mlxsw/spectrum.h struct mlxsw_sp_mr_route_key *key, key 30 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c struct mlxsw_sp_mr_route_key *key, key 35 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c switch (key->proto) { key 38 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c key->vrid, key 40 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c ntohl(key->group.addr4), key 41 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c ntohl(key->group_mask.addr4), key 42 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c ntohl(key->source.addr4), key 43 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c ntohl(key->source_mask.addr4), key 48 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c key->vrid, key 50 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c key->group.addr6, key 51 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c key->group_mask.addr6, key 52 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c key->source.addr6, key 53 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c key->source_mask.addr6, key 62 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c struct mlxsw_sp_mr_route_key *key) key 67 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c switch (key->proto) { key 70 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c key->vrid, 0, 0, 0, 0, 0, 0, NULL); key 74 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c key->vrid, 0, 0, zero_addr, zero_addr, key 92 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c struct mlxsw_sp_mr_route_key *key, key 98 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c tcam_region = mlxsw_sp1_mr_tcam_protocol_region(mr_tcam, key->proto); key 112 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c struct mlxsw_sp_mr_route_key *key) key 116 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c tcam_region = mlxsw_sp1_mr_tcam_protocol_region(mr_tcam, key->proto); key 124 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c struct mlxsw_sp_mr_route_key *key, key 133 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c key, prio); key 138 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c key, afa_block); key 144 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c mlxsw_sp1_mr_tcam_route_parman_item_remove(mr_tcam, route, key); key 151 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c struct mlxsw_sp_mr_route_key *key) key 156 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c mlxsw_sp1_mr_tcam_route_remove(mlxsw_sp, &route->parman_item, key); key 157 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c mlxsw_sp1_mr_tcam_route_parman_item_remove(mr_tcam, route, key); key 163 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c struct mlxsw_sp_mr_route_key *key, key 169 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c key, afa_block); key 143 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c struct mlxsw_sp_mr_route_key *key) key 146 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c (char *) &key->source.addr4, key 147 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c (char *) &key->source_mask.addr4, 4); key 149 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c (char *) &key->group.addr4, key 150 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c (char *) &key->group_mask.addr4, 4); key 155 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c struct mlxsw_sp_mr_route_key *key) key 158 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c &key->source.addr6.s6_addr[0x0], key 159 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c &key->source_mask.addr6.s6_addr[0x0], 4); key 161 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c &key->source.addr6.s6_addr[0x4], key 162 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c &key->source_mask.addr6.s6_addr[0x4], 4); key 164 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c &key->source.addr6.s6_addr[0x8], key 165 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c &key->source_mask.addr6.s6_addr[0x8], 4); key 167 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c &key->source.addr6.s6_addr[0xc], key 168 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c &key->source_mask.addr6.s6_addr[0xc], 4); key 170 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c &key->group.addr6.s6_addr[0x0], key 171 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c &key->group_mask.addr6.s6_addr[0x0], 4); key 173 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c &key->group.addr6.s6_addr[0x4], key 174 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c &key->group_mask.addr6.s6_addr[0x4], 4); key 176 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c &key->group.addr6.s6_addr[0x8], key 177 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c &key->group_mask.addr6.s6_addr[0x8], 4); key 179 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c &key->group.addr6.s6_addr[0xc], key 180 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c &key->group_mask.addr6.s6_addr[0xc], 4); key 185 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c struct mlxsw_sp_mr_route_key *key, key 193 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c key->vrid, GENMASK(7, 0)); key 196 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c key->vrid >> 8, GENMASK(2, 0)); key 197 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c switch (key->proto) { key 199 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c return mlxsw_sp2_mr_tcam_rule_parse4(rulei, key); key 201 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c return mlxsw_sp2_mr_tcam_rule_parse6(rulei, key); key 208 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c struct mlxsw_sp_mr_route_key *key, key 219 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c ruleset = mlxsw_sp2_mr_tcam_proto_ruleset(mr_tcam, key->proto); key 229 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c mlxsw_sp2_mr_tcam_rule_parse(rule, key, prio); key 244 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c struct mlxsw_sp_mr_route_key *key) key 250 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c ruleset = mlxsw_sp2_mr_tcam_proto_ruleset(mr_tcam, key->proto); key 266 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c struct mlxsw_sp_mr_route_key *key, key 274 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c ruleset = mlxsw_sp2_mr_tcam_proto_ruleset(mr_tcam, key->proto); key 52 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_ctcam.c char *key; key 63 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_ctcam.c key = mlxsw_reg_ptce2_flex_key_blocks_data(ptce2_pl); key 65 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_ctcam.c mlxsw_afk_encode(afk, region->key_info, &rulei->values, key, mask); key 40 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c struct mlxsw_sp_acl_erp_key key; key 73 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c struct mlxsw_sp_acl_erp_key *key); key 80 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c struct mlxsw_sp_acl_erp_key *key); key 86 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c struct mlxsw_sp_acl_erp_key *key); key 92 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c struct mlxsw_sp_acl_erp_key *key); key 198 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c struct mlxsw_sp_acl_erp_key *key) key 204 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c bitmap_from_arr32(mask_bitmap, (u32 *) key->mask, key 225 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c struct mlxsw_sp_acl_erp_key *key) key 231 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c bitmap_from_arr32(mask_bitmap, (u32 *) key->mask, key 252 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c struct mlxsw_sp_acl_erp_key *key) key 265 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c memcpy(&erp->key, key, sizeof(*key)); key 270 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c err = mlxsw_sp_acl_erp_master_mask_set(erp_table, &erp->key); key 290 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c mlxsw_sp_acl_erp_master_mask_clear(erp_table, &erp->key); key 395 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c erp->key.mask); key 794 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c struct mlxsw_sp_acl_erp_key *key) key 803 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c memcpy(&erp->key, key, sizeof(*key)); key 804 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c bitmap_from_arr32(erp->mask_bitmap, (u32 *) key->mask, key 813 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c err = mlxsw_sp_acl_erp_master_mask_set(erp_table, &erp->key); key 824 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c mlxsw_sp_acl_erp_master_mask_clear(erp_table, &erp->key); key 838 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c mlxsw_sp_acl_erp_master_mask_clear(erp_table, &erp->key); key 845 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c struct mlxsw_sp_acl_erp_key *key) key 850 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c if (key->ctcam) key 851 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c return mlxsw_sp_acl_erp_ctcam_mask_create(erp_table, key); key 858 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c erp = mlxsw_sp_acl_erp_generic_create(erp_table, key); key 891 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c if (erp->key.ctcam) key 906 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c struct mlxsw_sp_acl_erp_key *key) key 911 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c if (key->ctcam) key 912 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c return mlxsw_sp_acl_erp_ctcam_mask_create(erp_table, key); key 919 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c erp = mlxsw_sp_acl_erp_generic_create(erp_table, key); key 956 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c if (erp->key.ctcam) key 971 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c struct mlxsw_sp_acl_erp_key *key) key 975 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c if (key->ctcam) key 978 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c erp = mlxsw_sp_acl_erp_generic_create(erp_table, key); key 1007 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c struct mlxsw_sp_acl_erp_key key; key 1010 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c memcpy(key.mask, mask, MLXSW_REG_PTCEX_FLEX_KEY_BLOCKS_LEN); key 1011 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c key.ctcam = ctcam; key 1013 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c objagg_obj = objagg_obj_get(erp_table->objagg, &key); key 1071 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c const struct mlxsw_sp_acl_erp_key *key = objagg_obj_raw(objagg_obj); key 1073 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c return key->ctcam; key 1085 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c struct mlxsw_sp_acl_erp_key key; key 1155 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c const struct mlxsw_sp_acl_erp_key *key, key 1166 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c if (parent_key->mask[__MASK_IDX(i)] == key->mask[__MASK_IDX(i)]) key 1182 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c mask = (unsigned char) key->mask[__MASK_IDX(si)]; key 1185 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c mask |= (unsigned char) key->mask[__MASK_IDX(si + 1)] << 8; key 1208 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c const struct mlxsw_sp_acl_erp_key *key = obj; key 1213 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c err = mlxsw_sp_acl_erp_delta_fill(parent_key, key, key 1236 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c struct mlxsw_sp_acl_erp_key *key = obj; key 1242 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c if (parent_key->ctcam || key->ctcam) key 1244 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c err = mlxsw_sp_acl_erp_delta_fill(parent_key, key, key 1259 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c memcpy(&delta->key, key, sizeof(*key)); key 1260 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c err = mlxsw_sp_acl_erp_master_mask_set(erp_table, &delta->key); key 1279 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c mlxsw_sp_acl_erp_master_mask_clear(erp_table, &delta->key); key 1289 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c struct mlxsw_sp_acl_erp_key *key = obj; key 1291 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c if (!key->ctcam && key 1295 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c return erp_table->ops->erp_create(erp_table, key); key 161 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c match.key->ingress_ifindex); key 193 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c (char *) &match.key->src, key 196 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c (char *) &match.key->dst, key 208 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c &match.key->src.s6_addr[0x0], key 211 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c &match.key->src.s6_addr[0x4], key 214 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c &match.key->src.s6_addr[0x8], key 217 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c &match.key->src.s6_addr[0xC], key 220 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c &match.key->dst.s6_addr[0x0], key 223 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c &match.key->dst.s6_addr[0x4], key 226 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c &match.key->dst.s6_addr[0x8], key 229 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c &match.key->dst.s6_addr[0xC], key 252 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c ntohs(match.key->dst), key 255 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c ntohs(match.key->src), key 286 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c ntohs(match.key->flags), key 311 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c match.key->ttl, match.mask->ttl); key 314 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c match.key->tos & 0x3, key 318 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c match.key->tos >> 2, key 363 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c addr_type = match.key->addr_type; key 370 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c n_proto_key = ntohs(match.key->n_proto); key 381 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c ip_proto = match.key->ip_proto; key 384 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c match.key->ip_proto, key 394 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c match.key->dst, key 398 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c match.key->dst + 2, key 402 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c match.key->src, key 406 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c match.key->src + 2, key 427 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c match.key->vlan_id, key 432 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c match.key->vlan_priority, key 56 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c struct mlxsw_sp_mr_route_key *key, key 78 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c struct mlxsw_sp_mr_route_key key; key 92 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c .key_offset = offsetof(struct mlxsw_sp_mr_route, key), key 268 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c route_params.key = mr_route->key; key 314 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c mr_table->ops->key_create(mr_table, &mr_route->key, mr_route->mfc); key 398 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c &mr_route->key, key 458 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c struct mlxsw_sp_mr_route_key key; key 460 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c mr_table->ops->key_create(mr_table, &key, mfc); key 461 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c mr_route = rhashtable_lookup_fast(&mr_table->route_ht, &key, key 785 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c struct mlxsw_sp_mr_route_key *key, key 793 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c memset(key, 0, sizeof(*key)); key 794 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c key->vrid = mr_table->vr_id; key 795 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c key->proto = MLXSW_SP_L3_PROTO_IPV4; key 796 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c key->group.addr4 = mfc->mfc_mcastgrp; key 797 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c key->group_mask.addr4 = htonl(0xffffffff); key 798 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c key->source.addr4 = mfc->mfc_origin; key 799 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c key->source_mask.addr4 = htonl(starg ? 0 : 0xffffffff); key 805 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c return mr_route->key.source_mask.addr4 == htonl(INADDR_ANY); key 832 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c struct mlxsw_sp_mr_route_key *key, key 837 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c memset(key, 0, sizeof(*key)); key 838 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c key->vrid = mr_table->vr_id; key 839 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c key->proto = MLXSW_SP_L3_PROTO_IPV6; key 840 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c key->group.addr6 = mfc->mf6c_mcastgrp; key 841 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c memset(&key->group_mask.addr6, 0xff, sizeof(key->group_mask.addr6)); key 842 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c key->source.addr6 = mfc->mf6c_origin; key 844 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c memset(&key->source_mask.addr6, 0xff, key 845 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c sizeof(key->source_mask.addr6)); key 851 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c return ipv6_addr_any(&mr_route->key.source_mask.addr6); key 890 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c .key = { key 36 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.h struct mlxsw_sp_mr_route_key key; key 185 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr_tcam.c struct mlxsw_sp_mr_route_key key; key 288 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr_tcam.c route->key = route_params->key; key 325 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr_tcam.c &route->key, route->afa_block, key 350 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr_tcam.c ops->route_destroy(mlxsw_sp, mr_tcam->priv, route->priv, &route->key); key 387 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr_tcam.c err = ops->route_update(mlxsw_sp, route->priv, &route->key, afa_block); key 420 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr_tcam.c err = ops->route_update(mlxsw_sp, route->priv, &route->key, afa_block); key 501 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr_tcam.c err = ops->route_update(mlxsw_sp, route->priv, &route->key, afa_block); key 548 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr_tcam.c err = ops->route_update(mlxsw_sp, route->priv, &route->key, afa_block); key 76 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c struct mlxsw_sp_nve_mc_list_key key; key 81 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c .key_offset = offsetof(struct mlxsw_sp_nve_mc_list, key), key 193 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c const struct mlxsw_sp_nve_mc_list_key *key) key 197 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c return rhashtable_lookup_fast(&nve->mc_list_ht, key, key 203 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c const struct mlxsw_sp_nve_mc_list_key *key) key 214 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c mc_list->key = *key; key 241 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c const struct mlxsw_sp_nve_mc_list_key *key) key 245 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c mc_list = mlxsw_sp_nve_mc_list_find(mlxsw_sp, key); key 249 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c return mlxsw_sp_nve_mc_list_create(mlxsw_sp, key); key 628 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c struct mlxsw_sp_nve_mc_list_key key = { 0 }; key 632 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c key.fid_index = mlxsw_sp_fid_index(fid); key 633 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c mc_list = mlxsw_sp_nve_mc_list_get(mlxsw_sp, &key); key 659 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c struct mlxsw_sp_nve_mc_list_key key = { 0 }; key 662 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c key.fid_index = mlxsw_sp_fid_index(fid); key 663 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c mc_list = mlxsw_sp_nve_mc_list_find(mlxsw_sp, &key); key 696 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c struct mlxsw_sp_nve_mc_list_key key = { 0 }; key 704 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c key.fid_index = mlxsw_sp_fid_index(fid); key 705 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c mc_list = mlxsw_sp_nve_mc_list_find(mlxsw_sp, &key); key 47 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c struct mlxsw_sp1_ptp_key key; key 56 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c .key_len = sizeof_field(struct mlxsw_sp1_ptp_unmatched, key), key 57 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c .key_offset = offsetof(struct mlxsw_sp1_ptp_unmatched, key), key 364 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c struct mlxsw_sp1_ptp_key key, key 377 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c unmatched->key = key; key 392 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c struct mlxsw_sp1_ptp_key key, int *p_length) key 398 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c list = rhltable_lookup(&mlxsw_sp->ptp_state->unmatched_ht, &key, key 455 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c struct mlxsw_sp1_ptp_key key, key 468 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c key.local_port, key.ingress, &hwtstamps); key 476 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c mlxsw_sp1_packet_timestamp(mlxsw_sp, unmatched->key, key 481 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c unmatched->key.local_port, key 482 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c unmatched->key.ingress, NULL); key 499 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c struct mlxsw_sp1_ptp_key key, key 510 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c unmatched = mlxsw_sp1_ptp_unmatched_lookup(mlxsw_sp, key, &length); key 520 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c err = mlxsw_sp1_ptp_unmatched_save(mlxsw_sp, key, key 526 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c key.local_port, key 527 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c key.ingress, NULL); key 549 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c struct mlxsw_sp1_ptp_key key; key 562 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c memset(&key, 0, sizeof(key)); key 563 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c key.local_port = local_port; key 564 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c key.ingress = ingress; key 566 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c err = mlxsw_sp_ptp_parse(skb, &key.domain_number, &key.message_type, key 567 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c &key.sequence_id); key 574 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c if (!((1 << key.message_type) & types)) key 577 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c mlxsw_sp1_ptp_got_piece(mlxsw_sp, key, skb, 0); key 590 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c struct mlxsw_sp1_ptp_key key; key 606 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c memset(&key, 0, sizeof(key)); key 607 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c key.local_port = local_port; key 608 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c key.domain_number = domain_number; key 609 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c key.message_type = message_type; key 610 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c key.sequence_id = sequence_id; key 611 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c key.ingress = ingress; key 613 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c mlxsw_sp1_ptp_got_piece(mlxsw_sp, key, NULL, timestamp); key 655 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c mlxsw_sp_port = ptp_state->mlxsw_sp->ports[unmatched->key.local_port]; key 657 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c stats = unmatched->key.ingress ? key 387 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct mlxsw_sp_fib_key key; key 1874 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct mlxsw_sp_neigh_key key; key 1887 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c .key_offset = offsetof(struct mlxsw_sp_neigh_entry, key), key 1911 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c return neigh_entry->key.n->tbl->family; key 1924 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c n = neigh_entry->key.n; key 1933 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c n = neigh_entry->key.n; key 1958 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c neigh_entry->key.n = n; key 2077 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct mlxsw_sp_neigh_key key; key 2079 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c key.n = n; key 2081 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c &key, mlxsw_sp_neigh_ht_params); key 2292 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c neigh_event_send(neigh_entry->key.n, NULL); key 2340 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c neigh_event_send(neigh_entry->key.n, NULL); key 2363 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct neighbour *n = neigh_entry->key.n; key 2380 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct neighbour *n = neigh_entry->key.n; key 2394 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct neighbour *n = neigh_entry->key.n; key 2417 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c if (neigh_entry->key.n->tbl->family == AF_INET) { key 2422 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c } else if (neigh_entry->key.n->tbl->family == AF_INET6) { key 2435 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c neigh_entry->key.n->flags |= NTF_OFFLOADED; key 2437 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c neigh_entry->key.n->flags &= ~NTF_OFFLOADED; key 2684 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct mlxsw_sp_nexthop_key key; key 2892 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = arg->key; key 3027 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c .key_offset = offsetof(struct mlxsw_sp_nexthop, key), key 3048 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct mlxsw_sp_nexthop_key key) key 3050 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c return rhashtable_lookup_fast(&mlxsw_sp->router->nexthop_ht, &key, key 3464 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct neighbour *n, *old_n = neigh_entry->key.n; key 3483 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c neigh_entry->key.n = n; key 3507 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c neigh_entry->key.n = old_n; key 3622 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c n = neigh_entry->key.n; key 3754 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c nh->key.fib_nh = fib_nh; key 3799 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct mlxsw_sp_nexthop_key key; key 3805 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c key.fib_nh = fib_nh; key 3806 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c nh = mlxsw_sp_nexthop_lookup(mlxsw_sp, key); key 4036 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c nh_grp->nexthops->key.fib_nh->fib_nh_flags |= RTNH_F_OFFLOAD; key 4044 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c nh->key.fib_nh->fib_nh_flags |= RTNH_F_OFFLOAD; key 4046 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c nh->key.fib_nh->fib_nh_flags &= ~RTNH_F_OFFLOAD; key 4062 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c nh->key.fib_nh->fib_nh_flags &= ~RTNH_F_OFFLOAD; key 4168 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c p_dip = (u32 *) fib_entry->fib_node->key.addr; key 4170 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c fib_entry->fib_node->key.prefix_len, key 4175 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c fib_entry->fib_node->key.prefix_len, key 4176 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c fib_entry->fib_node->key.addr); key 4467 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c .key_offset = offsetof(struct mlxsw_sp_fib_node, key), key 4491 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct mlxsw_sp_fib_key key; key 4493 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c memset(&key, 0, sizeof(key)); key 4494 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c memcpy(key.addr, addr, addr_len); key 4495 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c key.prefix_len = prefix_len; key 4496 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c return rhashtable_lookup_fast(&fib->ht, &key, mlxsw_sp_fib_ht_params); key 4511 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c memcpy(fib_node->key.addr, addr, addr_len); key 4512 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c fib_node->key.prefix_len = prefix_len; key 4541 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c if (lpm_tree->prefix_ref_count[fib_node->key.prefix_len] != 0) key 4545 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c mlxsw_sp_prefix_usage_set(&req_prefix_usage, fib_node->key.prefix_len); key 4556 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c lpm_tree->prefix_ref_count[fib_node->key.prefix_len]++; key 4572 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c if (--lpm_tree->prefix_ref_count[fib_node->key.prefix_len] != 0) key 4579 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c fib_node->key.prefix_len); key 575 drivers/net/ethernet/microchip/lan743x_ethtool.c u32 *indir, u8 *key, u8 *hfunc) key 598 drivers/net/ethernet/microchip/lan743x_ethtool.c if (key) { key 608 drivers/net/ethernet/microchip/lan743x_ethtool.c key[byte_index + 0] = key 610 drivers/net/ethernet/microchip/lan743x_ethtool.c key[byte_index + 1] = key 612 drivers/net/ethernet/microchip/lan743x_ethtool.c key[byte_index + 2] = key 614 drivers/net/ethernet/microchip/lan743x_ethtool.c key[byte_index + 3] = key 624 drivers/net/ethernet/microchip/lan743x_ethtool.c const u32 *indir, const u8 *key, key 648 drivers/net/ethernet/microchip/lan743x_ethtool.c if (key) { key 656 drivers/net/ethernet/microchip/lan743x_ethtool.c ((((u32)(key[byte_index + 0])) << 0) | key 657 drivers/net/ethernet/microchip/lan743x_ethtool.c (((u32)(key[byte_index + 1])) << 8) | key 658 drivers/net/ethernet/microchip/lan743x_ethtool.c (((u32)(key[byte_index + 2])) << 16) | key 659 drivers/net/ethernet/microchip/lan743x_ethtool.c (((u32)(key[byte_index + 3])) << 24)); key 89 drivers/net/ethernet/mscc/ocelot_flower.c match.key->dst); key 91 drivers/net/ethernet/mscc/ocelot_flower.c match.key->src); key 103 drivers/net/ethernet/mscc/ocelot_flower.c if (ntohs(match.key->n_proto) == ETH_P_IP) { key 106 drivers/net/ethernet/mscc/ocelot_flower.c match.key->ip_proto; key 110 drivers/net/ethernet/mscc/ocelot_flower.c if (ntohs(match.key->n_proto) == ETH_P_IPV6) { key 113 drivers/net/ethernet/mscc/ocelot_flower.c match.key->ip_proto; key 126 drivers/net/ethernet/mscc/ocelot_flower.c memcpy(tmp, &match.key->src, 4); key 132 drivers/net/ethernet/mscc/ocelot_flower.c memcpy(tmp, &match.key->dst, 4); key 147 drivers/net/ethernet/mscc/ocelot_flower.c ocelot_rule->frame.ipv4.sport.value = ntohs(match.key->src); key 149 drivers/net/ethernet/mscc/ocelot_flower.c ocelot_rule->frame.ipv4.dport.value = ntohs(match.key->dst); key 158 drivers/net/ethernet/mscc/ocelot_flower.c ocelot_rule->vlan.vid.value = match.key->vlan_id; key 160 drivers/net/ethernet/mscc/ocelot_flower.c ocelot_rule->vlan.pcp.value[0] = match.key->vlan_priority; key 943 drivers/net/ethernet/neterion/s2io-regs.h #define SPI_CONTROL_KEY(key) vBIT(key,0,4) key 199 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c const u8 *key, u8 *out_key, u8 *out_value, key 231 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c if (memcmp(cached_key, key, map->key_size)) key 293 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c u8 *key, u8 *value, u64 flags, u8 *out_key, u8 *out_value) key 310 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c n_entries = nfp_bpf_ctrl_op_cache_get(nfp_map, op, key, out_key, key 327 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c if (key) key 328 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c memcpy(nfp_bpf_ctrl_req_key(bpf, req, 0), key, map->key_size); key 384 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c void *key, void *value, u64 flags) key 387 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c key, value, flags, NULL, NULL); key 390 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c int nfp_bpf_ctrl_del_entry(struct bpf_offloaded_map *offmap, void *key) key 393 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c key, NULL, 0, NULL, NULL); key 397 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c void *key, void *value) key 400 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c key, NULL, 0, NULL, value); key 411 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c void *key, void *next_key) key 414 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c key, NULL, 0, next_key, NULL); key 599 drivers/net/ethernet/netronome/nfp/bpf/main.h void *key, void *value, u64 flags); key 600 drivers/net/ethernet/netronome/nfp/bpf/main.h int nfp_bpf_ctrl_del_entry(struct bpf_offloaded_map *offmap, void *key); key 602 drivers/net/ethernet/netronome/nfp/bpf/main.h void *key, void *value); key 604 drivers/net/ethernet/netronome/nfp/bpf/main.h void *key, void *next_key); key 282 drivers/net/ethernet/netronome/nfp/bpf/offload.c void *key, void *value) key 286 drivers/net/ethernet/netronome/nfp/bpf/offload.c err = nfp_bpf_ctrl_lookup_entry(offmap, key, value); key 296 drivers/net/ethernet/netronome/nfp/bpf/offload.c void *key, void *value, u64 flags) key 300 drivers/net/ethernet/netronome/nfp/bpf/offload.c return nfp_bpf_ctrl_update_entry(offmap, key, value, flags); key 305 drivers/net/ethernet/netronome/nfp/bpf/offload.c void *key, void *next_key) key 307 drivers/net/ethernet/netronome/nfp/bpf/offload.c if (!key) key 309 drivers/net/ethernet/netronome/nfp/bpf/offload.c return nfp_bpf_ctrl_getnext_entry(offmap, key, next_key); key 313 drivers/net/ethernet/netronome/nfp/bpf/offload.c nfp_bpf_map_delete_elem(struct bpf_offloaded_map *offmap, void *key) key 317 drivers/net/ethernet/netronome/nfp/bpf/offload.c return nfp_bpf_ctrl_del_entry(offmap, key); key 41 drivers/net/ethernet/netronome/nfp/crypto/fw.h __be32 key[8]; key 337 drivers/net/ethernet/netronome/nfp/crypto/tls.c memcpy(back->key, tls_ci->key, TLS_CIPHER_AES_GCM_128_KEY_SIZE); key 338 drivers/net/ethernet/netronome/nfp/crypto/tls.c memset(&back->key[TLS_CIPHER_AES_GCM_128_KEY_SIZE / 4], 0, key 339 drivers/net/ethernet/netronome/nfp/crypto/tls.c sizeof(back->key) - TLS_CIPHER_AES_GCM_128_KEY_SIZE); key 293 drivers/net/ethernet/netronome/nfp/flower/action.c switch (tun->key.tp_dst) { key 429 drivers/net/ethernet/netronome/nfp/flower/action.c set_tun->tun_id = ip_tun->key.tun_id; key 431 drivers/net/ethernet/netronome/nfp/flower/action.c if (ip_tun->key.ttl) { key 432 drivers/net/ethernet/netronome/nfp/flower/action.c set_tun->ttl = ip_tun->key.ttl; key 443 drivers/net/ethernet/netronome/nfp/flower/action.c flow.daddr = ip_tun->key.u.ipv4.dst; key 455 drivers/net/ethernet/netronome/nfp/flower/action.c set_tun->tos = ip_tun->key.tos; key 457 drivers/net/ethernet/netronome/nfp/flower/action.c if (!(ip_tun->key.tun_flags & NFP_FL_TUNNEL_KEY) || key 458 drivers/net/ethernet/netronome/nfp/flower/action.c ip_tun->key.tun_flags & ~NFP_FL_SUPPORTED_IPV4_UDP_TUN_FLAGS) { key 462 drivers/net/ethernet/netronome/nfp/flower/action.c set_tun->tun_flags = ip_tun->key.tun_flags; key 470 drivers/net/ethernet/netronome/nfp/flower/action.c pre_tun->ipv4_dst = ip_tun->key.u.ipv4.dst; key 774 drivers/net/ethernet/netronome/nfp/flower/action.c ip_proto = match.key->ip_proto; key 35 drivers/net/ethernet/netronome/nfp/flower/match.c match.key->vlan_priority) | key 37 drivers/net/ethernet/netronome/nfp/flower/match.c match.key->vlan_id); key 93 drivers/net/ethernet/netronome/nfp/flower/match.c ether_addr_copy(ext->mac_dst, &match.key->dst[0]); key 94 drivers/net/ethernet/netronome/nfp/flower/match.c ether_addr_copy(ext->mac_src, &match.key->src[0]); key 104 drivers/net/ethernet/netronome/nfp/flower/match.c t_mpls = FIELD_PREP(NFP_FLOWER_MASK_MPLS_LB, match.key->mpls_label) | key 105 drivers/net/ethernet/netronome/nfp/flower/match.c FIELD_PREP(NFP_FLOWER_MASK_MPLS_TC, match.key->mpls_tc) | key 106 drivers/net/ethernet/netronome/nfp/flower/match.c FIELD_PREP(NFP_FLOWER_MASK_MPLS_BOS, match.key->mpls_bos) | key 122 drivers/net/ethernet/netronome/nfp/flower/match.c if (match.key->n_proto == cpu_to_be16(ETH_P_MPLS_UC) || key 123 drivers/net/ethernet/netronome/nfp/flower/match.c match.key->n_proto == cpu_to_be16(ETH_P_MPLS_MC)) { key 144 drivers/net/ethernet/netronome/nfp/flower/match.c ext->port_src = match.key->src; key 145 drivers/net/ethernet/netronome/nfp/flower/match.c ext->port_dst = match.key->dst; key 162 drivers/net/ethernet/netronome/nfp/flower/match.c ext->proto = match.key->ip_proto; key 170 drivers/net/ethernet/netronome/nfp/flower/match.c ext->tos = match.key->tos; key 171 drivers/net/ethernet/netronome/nfp/flower/match.c ext->ttl = match.key->ttl; key 181 drivers/net/ethernet/netronome/nfp/flower/match.c tcp_flags = be16_to_cpu(match.key->flags); key 214 drivers/net/ethernet/netronome/nfp/flower/match.c if (match.key->flags & FLOW_DIS_IS_FRAGMENT) key 218 drivers/net/ethernet/netronome/nfp/flower/match.c if (match.key->flags & FLOW_DIS_FIRST_FRAG) key 238 drivers/net/ethernet/netronome/nfp/flower/match.c ext->ipv4_src = match.key->src; key 239 drivers/net/ethernet/netronome/nfp/flower/match.c ext->ipv4_dst = match.key->dst; key 261 drivers/net/ethernet/netronome/nfp/flower/match.c ext->ipv6_src = match.key->src; key 262 drivers/net/ethernet/netronome/nfp/flower/match.c ext->ipv6_dst = match.key->dst; key 277 drivers/net/ethernet/netronome/nfp/flower/match.c memcpy(ext, match.key->data, match.key->len); key 294 drivers/net/ethernet/netronome/nfp/flower/match.c ext->src = match.key->src; key 295 drivers/net/ethernet/netronome/nfp/flower/match.c ext->dst = match.key->dst; key 312 drivers/net/ethernet/netronome/nfp/flower/match.c ext->tos = match.key->tos; key 313 drivers/net/ethernet/netronome/nfp/flower/match.c ext->ttl = match.key->ttl; key 337 drivers/net/ethernet/netronome/nfp/flower/match.c ext->tun_key = match.key->keyid; key 363 drivers/net/ethernet/netronome/nfp/flower/match.c temp_vni = be32_to_cpu(match.key->keyid) << NFP_FL_TUN_VNI_OFFSET; key 449 drivers/net/ethernet/netronome/nfp/flower/metadata.c const struct nfp_fl_flow_table_cmp_arg *cmp_arg = arg->key; key 262 drivers/net/ethernet/netronome/nfp/flower/offload.c vlan.key->vlan_priority) { key 280 drivers/net/ethernet/netronome/nfp/flower/offload.c if (enc_ctl.key->addr_type != FLOW_DISSECTOR_KEY_IPV4_ADDRS) { key 306 drivers/net/ethernet/netronome/nfp/flower/offload.c if (enc_op.key) { key 321 drivers/net/ethernet/netronome/nfp/flower/offload.c err = nfp_flower_calc_udp_tun_layer(enc_ports.key, key 322 drivers/net/ethernet/netronome/nfp/flower/offload.c enc_op.key, key 345 drivers/net/ethernet/netronome/nfp/flower/offload.c switch (basic.key->n_proto) { key 385 drivers/net/ethernet/netronome/nfp/flower/offload.c switch (basic.key->ip_proto) { key 408 drivers/net/ethernet/netronome/nfp/flower/offload.c tcp_flags = be16_to_cpu(tcp.key->flags); key 428 drivers/net/ethernet/netronome/nfp/flower/offload.c if (!basic.key) { key 435 drivers/net/ethernet/netronome/nfp/flower/offload.c switch (basic.key->n_proto) { key 457 drivers/net/ethernet/netronome/nfp/flower/offload.c if (ctl.key->flags & ~NFP_FLOWER_SUPPORTED_CTLFLAGS) { key 177 drivers/net/ethernet/netronome/nfp/nfp_devlink.c const char *key; key 202 drivers/net/ethernet/netronome/nfp/nfp_devlink.c err = devlink_info_version_fixed_put(req, info->key, val); key 212 drivers/net/ethernet/netronome/nfp/nfp_devlink.c const char *key; key 245 drivers/net/ethernet/netronome/nfp/nfp_devlink.c err = devlink_info_version_stored_put(req, info->key, key 248 drivers/net/ethernet/netronome/nfp/nfp_devlink.c err = devlink_info_version_running_put(req, info->key, key 435 drivers/net/ethernet/netronome/nfp/nfp_main.c const char *key, const char *default_val, int max_val, key 442 drivers/net/ethernet/netronome/nfp/nfp_main.c snprintf(hwinfo, sizeof(hwinfo), key); key 452 drivers/net/ethernet/netronome/nfp/nfp_main.c hwinfo, key); key 416 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c const char *key, *value; key 425 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c key = spec->data; key 426 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c value = nfp_hwinfo_lookup(pf->hwinfo, key); key 436 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c memcpy(dump_header->data, key, key_len + 1); key 920 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c static int nfp_net_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, key 932 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (key) key 933 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c memcpy(key, nn->rss_key, nfp_net_rss_key_sz(nn)); key 944 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c const u32 *indir, const u8 *key, key 954 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!key && !indir) key 957 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (key) { key 958 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c memcpy(nn->rss_key, key, nfp_net_rss_key_sz(nn)); key 108 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c const char *key, *val, *end = hwinfo->data + size; key 110 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c for (key = hwinfo->data; *key && key < end; key 111 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c key = val + strlen(val) + 1) { key 113 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c val = key + strlen(key) + 1; key 257 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c const char *key, *val, *end; key 264 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c for (key = hwinfo->data; *key && key < end; key 265 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c key = val + strlen(val) + 1) { key 267 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c val = key + strlen(key) + 1; key 269 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c if (strcmp(key, lookup) == 0) key 19 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_mutex.c u32 key; key 87 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_mutex.c int target, unsigned long long address, u32 key) key 97 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_mutex.c err = nfp_cpp_writel(cpp, muw, address + 4, key); key 124 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_mutex.c unsigned long long address, u32 key) key 140 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_mutex.c if (tmp != key) key 150 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_mutex.c mutex->key = key; key 200 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_mutex.c mutex->target, mutex->address, mutex->key); key 222 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_mutex.c u32 key, value; key 233 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_mutex.c err = nfp_cpp_readl(mutex->cpp, mur, mutex->address + 4, &key); key 237 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_mutex.c if (key != mutex->key) key 268 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_mutex.c u32 key, value, tmp; key 279 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_mutex.c err = nfp_cpp_readl(cpp, mur, mutex->address + 4, &key); key 283 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_mutex.c if (key != mutex->key) key 44 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c u32 key; key 72 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c u32 cpp_id, key; key 82 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c key = crc32_posix(res->name, NFP_RESOURCE_ENTRY_NAME_SZ); key 92 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c if (entry.mutex.key != key) key 98 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c NFP_RESOURCE_TBL_TARGET, addr, key); key 588 drivers/net/ethernet/pensando/ionic/ionic_ethtool.c static int ionic_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, key 600 drivers/net/ethernet/pensando/ionic/ionic_ethtool.c if (key) key 601 drivers/net/ethernet/pensando/ionic/ionic_ethtool.c memcpy(key, lif->rss_hash_key, IONIC_RSS_HASH_KEY_SIZE); key 610 drivers/net/ethernet/pensando/ionic/ionic_ethtool.c const u8 *key, const u8 hfunc) key 618 drivers/net/ethernet/pensando/ionic/ionic_ethtool.c err = ionic_lif_rss_config(lif, lif->rss_types, key, indir); key 1419 drivers/net/ethernet/pensando/ionic/ionic_if.h u8 key[IONIC_RSS_HASH_KEY_SIZE]; key 1335 drivers/net/ethernet/pensando/ionic/ionic_lif.c const u8 *key, const u32 *indir) key 1350 drivers/net/ethernet/pensando/ionic/ionic_lif.c if (key) key 1351 drivers/net/ethernet/pensando/ionic/ionic_lif.c memcpy(lif->rss_hash_key, key, IONIC_RSS_HASH_KEY_SIZE); key 1359 drivers/net/ethernet/pensando/ionic/ionic_lif.c memcpy(ctx.cmd.lif_setattr.rss.key, lif->rss_hash_key, key 240 drivers/net/ethernet/pensando/ionic/ionic_lif.h const u8 *key, const u32 *indir); key 68 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c unsigned int key; key 74 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c key = le16_to_cpu(ac->vlan.vlan); key 77 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c key = *(u32 *)ac->mac.addr; key 80 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c key = le16_to_cpu(ac->mac_vlan.vlan); key 100 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c key = hash_32(key, IONIC_RX_FILTER_HASH_BITS); key 101 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c head = &lif->rx_filters.by_hash[key]; key 104 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c key = f->filter_id & IONIC_RX_FILTER_HLISTS_MASK; key 105 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c head = &lif->rx_filters.by_id[key]; key 117 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c unsigned int key; key 119 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c key = hash_32(vid, IONIC_RX_FILTER_HASH_BITS); key 120 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c head = &lif->rx_filters.by_hash[key]; key 137 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c unsigned int key; key 139 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c key = hash_32(*(u32 *)addr, IONIC_RX_FILTER_HASH_BITS); key 140 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c head = &lif->rx_filters.by_hash[key]; key 834 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c static const u64 key[] = { key 862 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c for (i = 0; i < ARRAY_SIZE(key); i++) key 863 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c req.words[i+1] = cpu_to_le64(key[i]); key 6968 drivers/net/ethernet/qlogic/qed/qed_hsi.h u8 key; key 7024 drivers/net/ethernet/qlogic/qed/qed_hsi.h u8 key; key 7269 drivers/net/ethernet/qlogic/qed/qed_hsi.h u8 key; key 1532 drivers/net/ethernet/qlogic/qed/qed_rdma.c p_ramrod->key = params->key; key 1396 drivers/net/ethernet/qlogic/qede/qede_ethtool.c static int qede_get_rxfh(struct net_device *dev, u32 *indir, u8 *key, u8 *hfunc) key 1410 drivers/net/ethernet/qlogic/qede/qede_ethtool.c if (key) key 1411 drivers/net/ethernet/qlogic/qede/qede_ethtool.c memcpy(key, edev->rss_key, qede_get_rxfh_key_size(dev)); key 1417 drivers/net/ethernet/qlogic/qede/qede_ethtool.c const u8 *key, const u8 hfunc) key 1432 drivers/net/ethernet/qlogic/qede/qede_ethtool.c if (!indir && !key) key 1441 drivers/net/ethernet/qlogic/qede/qede_ethtool.c if (key) { key 1442 drivers/net/ethernet/qlogic/qede/qede_ethtool.c memcpy(&edev->rss_key, key, qede_get_rxfh_key_size(dev)); key 1788 drivers/net/ethernet/qlogic/qede/qede_filter.c if ((match.key->src && match.mask->src != U16_MAX) || key 1789 drivers/net/ethernet/qlogic/qede/qede_filter.c (match.key->dst && match.mask->dst != U16_MAX)) { key 1794 drivers/net/ethernet/qlogic/qede/qede_filter.c t->src_port = match.key->src; key 1795 drivers/net/ethernet/qlogic/qede/qede_filter.c t->dst_port = match.key->dst; key 1814 drivers/net/ethernet/qlogic/qede/qede_filter.c if ((memcmp(&match.key->src, &zero_addr, sizeof(addr)) && key 1816 drivers/net/ethernet/qlogic/qede/qede_filter.c (memcmp(&match.key->dst, &zero_addr, sizeof(addr)) && key 1823 drivers/net/ethernet/qlogic/qede/qede_filter.c memcpy(&t->src_ipv6, &match.key->src, sizeof(addr)); key 1824 drivers/net/ethernet/qlogic/qede/qede_filter.c memcpy(&t->dst_ipv6, &match.key->dst, sizeof(addr)); key 1841 drivers/net/ethernet/qlogic/qede/qede_filter.c if ((match.key->src && match.mask->src != U32_MAX) || key 1842 drivers/net/ethernet/qlogic/qede/qede_filter.c (match.key->dst && match.mask->dst != U32_MAX)) { key 1847 drivers/net/ethernet/qlogic/qede/qede_filter.c t->src_ipv4 = match.key->src; key 1848 drivers/net/ethernet/qlogic/qede/qede_filter.c t->dst_ipv4 = match.key->dst; key 1928 drivers/net/ethernet/qlogic/qede/qede_filter.c ip_proto = match.key->ip_proto; key 2138 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h u32 key) key 2141 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h adapter->nic_ops->request_reset(adapter, key); key 2045 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c const u64 key[] = { 0xbeac01fa6a42b73bULL, 0x8030f20c77cb2da3ULL, key 2067 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c memcpy(&cmd.req.arg[4], key, sizeof(key)); key 1301 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c void qlcnic_83xx_idc_request_reset(struct qlcnic_adapter *adapter, u32 key) key 1323 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c if (key == QLCNIC_FORCE_FW_RESET) { key 1327 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c } else if (key == QLCNIC_FORCE_FW_DUMP_KEY) { key 897 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c static const u64 key[] = { key 931 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c req.words[i+1] = cpu_to_le64(key[i]); key 3589 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c u32 key) key 96 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa_flow_tbl_key key; key 137 drivers/net/ethernet/rocker/rocker_ofdpa.c } key; key 309 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.ig_port.in_pport)) key 312 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.ig_port.in_pport_mask)) key 315 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.ig_port.goto_tbl)) key 326 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.vlan.in_pport)) key 329 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.vlan.vlan_id)) key 332 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.vlan.vlan_id_mask)) key 335 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.vlan.goto_tbl)) key 337 drivers/net/ethernet/rocker/rocker_ofdpa.c if (entry->key.vlan.untagged && key 339 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.vlan.new_vlan_id)) key 350 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.term_mac.in_pport)) key 353 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.term_mac.in_pport_mask)) key 356 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.term_mac.eth_type)) key 359 drivers/net/ethernet/rocker/rocker_ofdpa.c ETH_ALEN, entry->key.term_mac.eth_dst)) key 362 drivers/net/ethernet/rocker/rocker_ofdpa.c ETH_ALEN, entry->key.term_mac.eth_dst_mask)) key 365 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.term_mac.vlan_id)) key 368 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.term_mac.vlan_id_mask)) key 371 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.term_mac.goto_tbl)) key 373 drivers/net/ethernet/rocker/rocker_ofdpa.c if (entry->key.term_mac.copy_to_cpu && key 375 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.term_mac.copy_to_cpu)) key 386 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.ucast_routing.eth_type)) key 389 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.ucast_routing.dst4)) key 392 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.ucast_routing.dst4_mask)) key 395 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.ucast_routing.goto_tbl)) key 398 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.ucast_routing.group_id)) key 408 drivers/net/ethernet/rocker/rocker_ofdpa.c if (entry->key.bridge.has_eth_dst && key 410 drivers/net/ethernet/rocker/rocker_ofdpa.c ETH_ALEN, entry->key.bridge.eth_dst)) key 412 drivers/net/ethernet/rocker/rocker_ofdpa.c if (entry->key.bridge.has_eth_dst_mask && key 414 drivers/net/ethernet/rocker/rocker_ofdpa.c ETH_ALEN, entry->key.bridge.eth_dst_mask)) key 416 drivers/net/ethernet/rocker/rocker_ofdpa.c if (entry->key.bridge.vlan_id && key 418 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.bridge.vlan_id)) key 420 drivers/net/ethernet/rocker/rocker_ofdpa.c if (entry->key.bridge.tunnel_id && key 422 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.bridge.tunnel_id)) key 425 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.bridge.goto_tbl)) key 428 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.bridge.group_id)) key 430 drivers/net/ethernet/rocker/rocker_ofdpa.c if (entry->key.bridge.copy_to_cpu && key 432 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.bridge.copy_to_cpu)) key 443 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.in_pport)) key 446 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.in_pport_mask)) key 449 drivers/net/ethernet/rocker/rocker_ofdpa.c ETH_ALEN, entry->key.acl.eth_src)) key 452 drivers/net/ethernet/rocker/rocker_ofdpa.c ETH_ALEN, entry->key.acl.eth_src_mask)) key 455 drivers/net/ethernet/rocker/rocker_ofdpa.c ETH_ALEN, entry->key.acl.eth_dst)) key 458 drivers/net/ethernet/rocker/rocker_ofdpa.c ETH_ALEN, entry->key.acl.eth_dst_mask)) key 461 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.eth_type)) key 464 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.vlan_id)) key 467 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.vlan_id_mask)) key 470 drivers/net/ethernet/rocker/rocker_ofdpa.c switch (ntohs(entry->key.acl.eth_type)) { key 474 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.ip_proto)) key 478 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.ip_proto_mask)) key 481 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.ip_tos & 0x3f)) key 485 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.ip_tos_mask & 0x3f)) key 488 drivers/net/ethernet/rocker/rocker_ofdpa.c (entry->key.acl.ip_tos & 0xc0) >> 6)) key 492 drivers/net/ethernet/rocker/rocker_ofdpa.c (entry->key.acl.ip_tos_mask & 0xc0) >> 6)) key 497 drivers/net/ethernet/rocker/rocker_ofdpa.c if (entry->key.acl.group_id != ROCKER_GROUP_NONE && key 499 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.group_id)) key 519 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.tbl_id)) key 522 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.priority)) key 530 drivers/net/ethernet/rocker/rocker_ofdpa.c switch (entry->key.tbl_id) { key 745 drivers/net/ethernet/rocker/rocker_ofdpa.c size_t key_len = match->key_len ? match->key_len : sizeof(found->key); key 749 drivers/net/ethernet/rocker/rocker_ofdpa.c if (memcmp(&found->key, &match->key, key_len) == 0) key 761 drivers/net/ethernet/rocker/rocker_ofdpa.c size_t key_len = match->key_len ? match->key_len : sizeof(found->key); key 764 drivers/net/ethernet/rocker/rocker_ofdpa.c match->key_crc32 = crc32(~0, &match->key, key_len); key 796 drivers/net/ethernet/rocker/rocker_ofdpa.c size_t key_len = match->key_len ? match->key_len : sizeof(found->key); key 800 drivers/net/ethernet/rocker/rocker_ofdpa.c match->key_crc32 = crc32(~0, &match->key, key_len); key 845 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.priority = OFDPA_PRIORITY_IG_PORT; key 846 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.tbl_id = ROCKER_OF_DPA_TABLE_ID_INGRESS_PORT; key 847 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.ig_port.in_pport = in_pport; key 848 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.ig_port.in_pport_mask = in_pport_mask; key 849 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.ig_port.goto_tbl = goto_tbl; key 867 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.priority = OFDPA_PRIORITY_VLAN; key 868 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.tbl_id = ROCKER_OF_DPA_TABLE_ID_VLAN; key 869 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.vlan.in_pport = in_pport; key 870 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.vlan.vlan_id = vlan_id; key 871 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.vlan.vlan_id_mask = vlan_id_mask; key 872 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.vlan.goto_tbl = goto_tbl; key 874 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.vlan.untagged = untagged; key 875 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.vlan.new_vlan_id = new_vlan_id; key 894 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.priority = OFDPA_PRIORITY_TERM_MAC_MCAST; key 895 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.term_mac.goto_tbl = key 898 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.priority = OFDPA_PRIORITY_TERM_MAC_UCAST; key 899 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.term_mac.goto_tbl = key 903 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.tbl_id = ROCKER_OF_DPA_TABLE_ID_TERMINATION_MAC; key 904 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.term_mac.in_pport = in_pport; key 905 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.term_mac.in_pport_mask = in_pport_mask; key 906 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.term_mac.eth_type = eth_type; key 907 drivers/net/ethernet/rocker/rocker_ofdpa.c ether_addr_copy(entry->key.term_mac.eth_dst, eth_dst); key 908 drivers/net/ethernet/rocker/rocker_ofdpa.c ether_addr_copy(entry->key.term_mac.eth_dst_mask, eth_dst_mask); key 909 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.term_mac.vlan_id = vlan_id; key 910 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.term_mac.vlan_id_mask = vlan_id_mask; key 911 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.term_mac.copy_to_cpu = copy_to_cpu; key 933 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.tbl_id = ROCKER_OF_DPA_TABLE_ID_BRIDGING; key 936 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.bridge.has_eth_dst = 1; key 937 drivers/net/ethernet/rocker/rocker_ofdpa.c ether_addr_copy(entry->key.bridge.eth_dst, eth_dst); key 940 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.bridge.has_eth_dst_mask = 1; key 941 drivers/net/ethernet/rocker/rocker_ofdpa.c ether_addr_copy(entry->key.bridge.eth_dst_mask, eth_dst_mask); key 960 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.priority = priority; key 961 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.bridge.vlan_id = vlan_id; key 962 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.bridge.tunnel_id = tunnel_id; key 963 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.bridge.goto_tbl = goto_tbl; key 964 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.bridge.group_id = group_id; key 965 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.bridge.copy_to_cpu = copy_to_cpu; key 983 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.tbl_id = ROCKER_OF_DPA_TABLE_ID_UNICAST_ROUTING; key 984 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.priority = priority; key 985 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.ucast_routing.eth_type = eth_type; key 986 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.ucast_routing.dst4 = dst; key 987 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.ucast_routing.dst4_mask = dst_mask; key 988 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.ucast_routing.goto_tbl = goto_tbl; key 989 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.ucast_routing.group_id = group_id; key 1021 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.priority = priority; key 1022 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.tbl_id = ROCKER_OF_DPA_TABLE_ID_ACL_POLICY; key 1023 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.in_pport = in_pport; key 1024 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.in_pport_mask = in_pport_mask; key 1027 drivers/net/ethernet/rocker/rocker_ofdpa.c ether_addr_copy(entry->key.acl.eth_src, eth_src); key 1029 drivers/net/ethernet/rocker/rocker_ofdpa.c ether_addr_copy(entry->key.acl.eth_src_mask, eth_src_mask); key 1031 drivers/net/ethernet/rocker/rocker_ofdpa.c ether_addr_copy(entry->key.acl.eth_dst, eth_dst); key 1033 drivers/net/ethernet/rocker/rocker_ofdpa.c ether_addr_copy(entry->key.acl.eth_dst_mask, eth_dst_mask); key 1035 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.eth_type = eth_type; key 1036 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.vlan_id = vlan_id; key 1037 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.vlan_id_mask = vlan_id_mask; key 1038 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.ip_proto = ip_proto; key 1039 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.ip_proto_mask = ip_proto_mask; key 1040 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.ip_tos = ip_tos; key 1041 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.ip_tos_mask = ip_tos_mask; key 1042 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.acl.group_id = group_id; key 1890 drivers/net/ethernet/rocker/rocker_ofdpa.c if (memcmp(&found->key, &match->key, sizeof(found->key)) == 0) key 1912 drivers/net/ethernet/rocker/rocker_ofdpa.c fdb->key.ofdpa_port = ofdpa_port; key 1913 drivers/net/ethernet/rocker/rocker_ofdpa.c ether_addr_copy(fdb->key.addr, addr); key 1914 drivers/net/ethernet/rocker/rocker_ofdpa.c fdb->key.vlan_id = vlan_id; key 1915 drivers/net/ethernet/rocker/rocker_ofdpa.c fdb->key_crc32 = crc32(~0, &fdb->key, sizeof(fdb->key)); key 1964 drivers/net/ethernet/rocker/rocker_ofdpa.c if (found->key.ofdpa_port != ofdpa_port) key 1969 drivers/net/ethernet/rocker/rocker_ofdpa.c found->key.addr, key 1970 drivers/net/ethernet/rocker/rocker_ofdpa.c found->key.vlan_id); key 2000 drivers/net/ethernet/rocker/rocker_ofdpa.c ofdpa_port = entry->key.ofdpa_port; key 2004 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.addr, key 2005 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->key.vlan_id); key 2790 drivers/net/ethernet/rocker/rocker_ofdpa.c if (flow_entry->key.tbl_id != key 2782 drivers/net/ethernet/sfc/ef10.c const u32 *rx_indir_table, const u8 *key) key 2813 drivers/net/ethernet/sfc/ef10.c MCDI_PTR(keybuf, RSS_CONTEXT_SET_KEY_IN_TOEPLITZ_KEY)[i] = key[i]; key 2847 drivers/net/ethernet/sfc/ef10.c const u8 *key) key 2864 drivers/net/ethernet/sfc/ef10.c rx_indir_table, key); key 2875 drivers/net/ethernet/sfc/ef10.c if (key != efx->rss_context.rx_hash_key) key 2876 drivers/net/ethernet/sfc/ef10.c memcpy(efx->rss_context.rx_hash_key, key, key 2894 drivers/net/ethernet/sfc/ef10.c const u8 *key) key 2910 drivers/net/ethernet/sfc/ef10.c rx_indir_table, key); key 2916 drivers/net/ethernet/sfc/ef10.c memcpy(ctx->rx_hash_key, key, efx->type->rx_hash_key_size); key 3012 drivers/net/ethernet/sfc/ef10.c const u8 *key) key 3019 drivers/net/ethernet/sfc/ef10.c if (!key) key 3020 drivers/net/ethernet/sfc/ef10.c key = efx->rss_context.rx_hash_key; key 3022 drivers/net/ethernet/sfc/ef10.c rc = efx_ef10_rx_push_exclusive_rss_config(efx, rx_indir_table, key); key 3062 drivers/net/ethernet/sfc/ef10.c const u8 *key key 1326 drivers/net/ethernet/sfc/ethtool.c static int efx_ethtool_get_rxfh(struct net_device *net_dev, u32 *indir, u8 *key, key 1341 drivers/net/ethernet/sfc/ethtool.c if (key) key 1342 drivers/net/ethernet/sfc/ethtool.c memcpy(key, efx->rss_context.rx_hash_key, key 1348 drivers/net/ethernet/sfc/ethtool.c const u8 *key, const u8 hfunc) key 1355 drivers/net/ethernet/sfc/ethtool.c if (!indir && !key) key 1358 drivers/net/ethernet/sfc/ethtool.c if (!key) key 1359 drivers/net/ethernet/sfc/ethtool.c key = efx->rss_context.rx_hash_key; key 1363 drivers/net/ethernet/sfc/ethtool.c return efx->type->rx_push_rss_config(efx, true, indir, key); key 1367 drivers/net/ethernet/sfc/ethtool.c u8 *key, u8 *hfunc, u32 rss_context) key 1390 drivers/net/ethernet/sfc/ethtool.c if (key) key 1391 drivers/net/ethernet/sfc/ethtool.c memcpy(key, ctx->rx_hash_key, efx->type->rx_hash_key_size); key 1398 drivers/net/ethernet/sfc/ethtool.c const u32 *indir, const u8 *key, key 1447 drivers/net/ethernet/sfc/ethtool.c if (!key) key 1448 drivers/net/ethernet/sfc/ethtool.c key = ctx->rx_hash_key; key 1452 drivers/net/ethernet/sfc/ethtool.c rc = efx->type->rx_push_rss_context_config(efx, ctx, indir, key); key 1253 drivers/net/ethernet/sfc/falcon/ethtool.c static int ef4_ethtool_get_rxfh(struct net_device *net_dev, u32 *indir, u8 *key, key 1266 drivers/net/ethernet/sfc/falcon/ethtool.c const u8 *key, const u8 hfunc) key 1271 drivers/net/ethernet/sfc/falcon/ethtool.c if (key || key 1829 drivers/net/ethernet/sfc/falcon/farch.c static u16 ef4_farch_filter_hash(u32 key) key 1834 drivers/net/ethernet/sfc/falcon/farch.c tmp = 0x1fff ^ key >> 16; key 1838 drivers/net/ethernet/sfc/falcon/farch.c tmp = tmp ^ tmp << 13 ^ key; key 1845 drivers/net/ethernet/sfc/falcon/farch.c static u16 ef4_farch_filter_increment(u32 key) key 1847 drivers/net/ethernet/sfc/falcon/farch.c return key * 2 - 1; key 2372 drivers/net/ethernet/sfc/falcon/farch.c u32 key = ef4_farch_filter_build(&filter, &spec); key 2373 drivers/net/ethernet/sfc/falcon/farch.c unsigned int hash = ef4_farch_filter_hash(key); key 2374 drivers/net/ethernet/sfc/falcon/farch.c unsigned int incr = ef4_farch_filter_increment(key); key 1889 drivers/net/ethernet/sfc/farch.c static u16 efx_farch_filter_hash(u32 key) key 1894 drivers/net/ethernet/sfc/farch.c tmp = 0x1fff ^ key >> 16; key 1898 drivers/net/ethernet/sfc/farch.c tmp = tmp ^ tmp << 13 ^ key; key 1905 drivers/net/ethernet/sfc/farch.c static u16 efx_farch_filter_increment(u32 key) key 1907 drivers/net/ethernet/sfc/farch.c return key * 2 - 1; key 2433 drivers/net/ethernet/sfc/farch.c u32 key = efx_farch_filter_build(&filter, &spec); key 2434 drivers/net/ethernet/sfc/farch.c unsigned int hash = efx_farch_filter_hash(key); key 2435 drivers/net/ethernet/sfc/farch.c unsigned int incr = efx_farch_filter_increment(key); key 1328 drivers/net/ethernet/sfc/net_driver.h const u32 *rx_indir_table, const u8 *key); key 1333 drivers/net/ethernet/sfc/net_driver.h const u8 *key); key 361 drivers/net/ethernet/sfc/siena.c const u32 *rx_indir_table, const u8 *key) key 366 drivers/net/ethernet/sfc/siena.c if (key) key 367 drivers/net/ethernet/sfc/siena.c memcpy(efx->rss_context.rx_hash_key, key, sizeof(temp)); key 527 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c u32 value, *key; key 537 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c key = (u32 *)cfg->key; key 538 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c for (i = 0; i < (ARRAY_SIZE(cfg->key) / sizeof(u32)); i++) { key 539 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c ret = dwxgmac2_rss_write_reg(ioaddr, true, i, key[i]); key 127 drivers/net/ethernet/stmicro/stmmac/stmmac.h u8 key[STMMAC_RSS_HASH_KEY_SIZE]; key 794 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c return sizeof(priv->rss.key); key 804 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c static int stmmac_get_rxfh(struct net_device *dev, u32 *indir, u8 *key, key 815 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c if (key) key 816 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c memcpy(key, priv->rss.key, sizeof(priv->rss.key)); key 824 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c const u8 *key, const u8 hfunc) key 837 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c if (key) key 838 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c memcpy(priv->rss.key, key, sizeof(priv->rss.key)); key 4596 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c netdev_rss_key_fill(priv->rss.key, sizeof(priv->rss.key)); key 1295 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct flow_dissector_key_ipv4_addrs key, mask; key 1340 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c rule->match.key = (void *)&key; key 1343 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c key.src = htonl(src); key 1344 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c key.dst = htonl(dst); key 1415 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct flow_dissector_key_ports key; key 1448 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c dissector->offset[FLOW_DISSECTOR_KEY_PORTS] = offsetof(typeof(keys), key); key 1467 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c rule->match.key = (void *)&keys; key 1471 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c keys.key.src = htons(src); key 1472 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c keys.key.dst = htons(dst); key 407 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c entry->ip_proto = match.key->ip_proto; key 427 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c hw_match = ntohl(match.key->src) & ntohl(match.mask->src); key 435 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c hw_match = ntohl(match.key->dst) & ntohl(match.mask->dst); key 475 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c hw_match = ntohs(match.key->src) & ntohs(match.mask->src); key 483 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c hw_match = ntohs(match.key->dst) & ntohs(match.mask->dst); key 2799 drivers/net/ethernet/sun/niu.c u64 *key, u64 *mask) key 2806 drivers/net/ethernet/sun/niu.c key[0] = nr64(TCAM_KEY_0); key 2807 drivers/net/ethernet/sun/niu.c key[1] = nr64(TCAM_KEY_1); key 2808 drivers/net/ethernet/sun/niu.c key[2] = nr64(TCAM_KEY_2); key 2809 drivers/net/ethernet/sun/niu.c key[3] = nr64(TCAM_KEY_3); key 2820 drivers/net/ethernet/sun/niu.c u64 *key, u64 *mask) key 2822 drivers/net/ethernet/sun/niu.c nw64(TCAM_KEY_0, key[0]); key 2823 drivers/net/ethernet/sun/niu.c nw64(TCAM_KEY_1, key[1]); key 2824 drivers/net/ethernet/sun/niu.c nw64(TCAM_KEY_2, key[2]); key 2825 drivers/net/ethernet/sun/niu.c nw64(TCAM_KEY_3, key[3]); key 3219 drivers/net/ethernet/sun/niu.c static int niu_set_flow_key(struct niu *np, unsigned long class_code, u64 key) key 3225 drivers/net/ethernet/sun/niu.c nw64(FLOW_KEY(class_code - CLASS_CODE_USER_PROG1), key); key 3229 drivers/net/ethernet/sun/niu.c static int niu_set_tcam_key(struct niu *np, unsigned long class_code, u64 key) key 3235 drivers/net/ethernet/sun/niu.c nw64(TCAM_KEY(class_code - CLASS_CODE_USER_PROG1), key); key 5006 drivers/net/ethernet/sun/niu.c tp->key[1] = TCAM_V4KEY1_NOPORT; key 5010 drivers/net/ethernet/sun/niu.c err = tcam_write(np, index, tp->key, tp->key_mask); key 7035 drivers/net/ethernet/sun/niu.c u64 key = 0; key 7038 drivers/net/ethernet/sun/niu.c key |= FLOW_KEY_L2DA; key 7040 drivers/net/ethernet/sun/niu.c key |= FLOW_KEY_VLAN; key 7042 drivers/net/ethernet/sun/niu.c key |= FLOW_KEY_IPSA; key 7044 drivers/net/ethernet/sun/niu.c key |= FLOW_KEY_IPDA; key 7046 drivers/net/ethernet/sun/niu.c key |= FLOW_KEY_PROTO; key 7048 drivers/net/ethernet/sun/niu.c key |= (FLOW_KEY_L4_BYTE12 << FLOW_KEY_L4_0_SHIFT); key 7050 drivers/net/ethernet/sun/niu.c key |= (FLOW_KEY_L4_BYTE12 << FLOW_KEY_L4_1_SHIFT); key 7052 drivers/net/ethernet/sun/niu.c *flow_key = key; key 7082 drivers/net/ethernet/sun/niu.c tmp = (tp->key[3] & TCAM_V4KEY3_SADDR) >> TCAM_V4KEY3_SADDR_SHIFT; key 7085 drivers/net/ethernet/sun/niu.c tmp = (tp->key[3] & TCAM_V4KEY3_DADDR) >> TCAM_V4KEY3_DADDR_SHIFT; key 7094 drivers/net/ethernet/sun/niu.c fsp->h_u.tcp_ip4_spec.tos = (tp->key[2] & TCAM_V4KEY2_TOS) >> key 7103 drivers/net/ethernet/sun/niu.c prt = ((tp->key[2] & TCAM_V4KEY2_PORT_SPI) >> key 7107 drivers/net/ethernet/sun/niu.c prt = ((tp->key[2] & TCAM_V4KEY2_PORT_SPI) >> key 7121 drivers/net/ethernet/sun/niu.c tmp = (tp->key[2] & TCAM_V4KEY2_PORT_SPI) >> key 7130 drivers/net/ethernet/sun/niu.c tmp = (tp->key[2] & TCAM_V4KEY2_PORT_SPI) >> key 7139 drivers/net/ethernet/sun/niu.c (tp->key[2] & TCAM_V4KEY2_PROTO) >> key 7172 drivers/net/ethernet/sun/niu.c class = (tp->key[0] & TCAM_V4KEY0_CLASS_CODE) >> key 7182 drivers/net/ethernet/sun/niu.c u32 proto = (tp->key[2] & TCAM_V4KEY2_PROTO) >> key 7356 drivers/net/ethernet/sun/niu.c tp->key[0] = class << TCAM_V4KEY0_CLASS_CODE_SHIFT; key 7358 drivers/net/ethernet/sun/niu.c tp->key[1] = (u64)l2_rdc_tab << TCAM_V4KEY1_L2RDCNUM_SHIFT; key 7361 drivers/net/ethernet/sun/niu.c tp->key[3] = (u64)sip << TCAM_V4KEY3_SADDR_SHIFT; key 7362 drivers/net/ethernet/sun/niu.c tp->key[3] |= dip; key 7367 drivers/net/ethernet/sun/niu.c tp->key[2] |= ((u64)fsp->h_u.tcp_ip4_spec.tos << key 7380 drivers/net/ethernet/sun/niu.c tp->key[2] |= (((u64)sport << 16) | dport); key 7389 drivers/net/ethernet/sun/niu.c tp->key[2] |= spi; key 7397 drivers/net/ethernet/sun/niu.c tp->key[2] |= spi; key 7405 drivers/net/ethernet/sun/niu.c tp->key[2] |= ((u64)pid << TCAM_V4KEY2_PROTO_SHIFT); key 7550 drivers/net/ethernet/sun/niu.c err = tcam_write(np, idx, tp->key, tp->key_mask); key 7588 drivers/net/ethernet/sun/niu.c class = (tp->key[0] & TCAM_V4KEY0_CLASS_CODE) >> key 3050 drivers/net/ethernet/sun/niu.h u64 key[4]; key 2330 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c unsigned int *key = (unsigned int *)&pdata->rss_key; key 2335 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c key_regs, *key++); key 2359 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_set_rss_hash_key(struct xlgmac_pdata *pdata, const u8 *key) key 2361 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c memcpy(pdata->rss_key, key, sizeof(pdata->rss_key)); key 486 drivers/net/ethernet/synopsys/dwc-xlgmac.h const u8 *key); key 1066 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c memcpy(wl->key[key_index], extra, enc->length); key 1119 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c memcpy(extra, wl->key[key_index], wl->key_len[key_index]); key 1251 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c memset(wl->key[key_index], 0, IW_ENCODING_TOKEN_MAX); key 1252 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c memcpy(wl->key[key_index], ext->key, ext->key_len); key 1264 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c memcpy(wl->psk, ext->key, ext->key_len); key 1335 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c memcpy(ext->key, wl->key[key_index], key 1774 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c memcpy(wep->key[i], wl->key[i], wl->key_len[i]); key 78 drivers/net/ethernet/toshiba/ps3_gelic_wireless.h u8 key[4][16]; key 265 drivers/net/ethernet/toshiba/ps3_gelic_wireless.h u8 key[GELIC_WEP_KEYS][IW_ENCODING_TOKEN_MAX]; key 135 drivers/net/geneve.c if (eq_tun_id_and_vni((u8 *)&node->geneve->info.key.tun_id, vni) && key 136 drivers/net/geneve.c addr == node->geneve->info.key.u.ipv4.dst) key 154 drivers/net/geneve.c if (eq_tun_id_and_vni((u8 *)&node->geneve->info.key.tun_id, vni) && key 155 drivers/net/geneve.c ipv6_addr_equal(&addr6, &node->geneve->info.key.u.ipv6.dst)) key 657 drivers/net/geneve.c gs = geneve_find_sock(gn, ipv6 ? AF_INET6 : AF_INET, geneve->info.key.tp_dst); key 663 drivers/net/geneve.c gs = geneve_socket_create(net, geneve->info.key.tp_dst, ipv6, key 682 drivers/net/geneve.c tunnel_id_to_vni(geneve->info.key.tun_id, vni); key 729 drivers/net/geneve.c geneveh->oam = !!(info->key.tun_flags & TUNNEL_OAM); key 730 drivers/net/geneve.c geneveh->critical = !!(info->key.tun_flags & TUNNEL_CRIT_OPT); key 732 drivers/net/geneve.c tunnel_id_to_vni(info->key.tun_id, geneveh->vni); key 736 drivers/net/geneve.c if (info->key.tun_flags & TUNNEL_GENEVE_OPT) key 744 drivers/net/geneve.c bool udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); key 790 drivers/net/geneve.c fl4->daddr = info->key.u.ipv4.dst; key 791 drivers/net/geneve.c fl4->saddr = info->key.u.ipv4.src; key 793 drivers/net/geneve.c tos = info->key.tos; key 840 drivers/net/geneve.c fl6->daddr = info->key.u.ipv6.dst; key 841 drivers/net/geneve.c fl6->saddr = info->key.u.ipv6.src; key 842 drivers/net/geneve.c prio = info->key.tos; key 849 drivers/net/geneve.c info->key.label); key 880 drivers/net/geneve.c const struct ip_tunnel_key *key = &info->key; key 897 drivers/net/geneve.c tos = ip_tunnel_ecn_encap(key->tos, ip_hdr(skb), skb); key 898 drivers/net/geneve.c ttl = key->ttl; key 900 drivers/net/geneve.c df = key->tun_flags & TUNNEL_DONT_FRAGMENT ? htons(IP_DF) : 0; key 906 drivers/net/geneve.c ttl = key->ttl; key 930 drivers/net/geneve.c tos, ttl, df, sport, geneve->info.key.tp_dst, key 932 drivers/net/geneve.c !(info->key.tun_flags & TUNNEL_CSUM)); key 943 drivers/net/geneve.c const struct ip_tunnel_key *key = &info->key; key 958 drivers/net/geneve.c prio = ip_tunnel_ecn_encap(key->tos, ip_hdr(skb), skb); key 959 drivers/net/geneve.c ttl = key->ttl; key 966 drivers/net/geneve.c ttl = key->ttl; key 975 drivers/net/geneve.c info->key.label, sport, geneve->info.key.tp_dst, key 976 drivers/net/geneve.c !(info->key.tun_flags & TUNNEL_CSUM)); key 1047 drivers/net/geneve.c info->key.u.ipv4.src = fl4.saddr; key 1059 drivers/net/geneve.c info->key.u.ipv6.src = fl6.saddr; key 1065 drivers/net/geneve.c info->key.tp_src = udp_flow_src_port(geneve->net, skb, key 1067 drivers/net/geneve.c info->key.tp_dst = geneve->info.key.tp_dst; key 1229 drivers/net/geneve.c if (info->key.tp_dst == geneve->info.key.tp_dst) { key 1233 drivers/net/geneve.c if (info->key.tun_id == geneve->info.key.tun_id && key 1234 drivers/net/geneve.c info->key.tp_dst == geneve->info.key.tp_dst && key 1235 drivers/net/geneve.c !memcmp(&info->key.u, &geneve->info.key.u, sizeof(info->key.u))) key 1243 drivers/net/geneve.c return !(info->key.tun_id || info->key.tun_flags || info->key.tos || key 1244 drivers/net/geneve.c info->key.ttl || info->key.label || info->key.tp_src || key 1245 drivers/net/geneve.c memchr_inv(&info->key.u, 0, sizeof(info->key.u))); key 1252 drivers/net/geneve.c return a->key.u.ipv4.dst == b->key.u.ipv4.dst; key 1254 drivers/net/geneve.c return ipv6_addr_equal(&a->key.u.ipv6.dst, &b->key.u.ipv6.dst); key 1324 drivers/net/geneve.c info->key.tp_dst = htons(dst_port); key 1347 drivers/net/geneve.c info->key.u.ipv4.dst = key 1350 drivers/net/geneve.c if (ipv4_is_multicast(info->key.u.ipv4.dst)) { key 1365 drivers/net/geneve.c info->key.u.ipv6.dst = key 1368 drivers/net/geneve.c if (ipv6_addr_type(&info->key.u.ipv6.dst) & key 1374 drivers/net/geneve.c if (ipv6_addr_is_multicast(&info->key.u.ipv6.dst)) { key 1379 drivers/net/geneve.c info->key.tun_flags |= TUNNEL_CSUM; key 1399 drivers/net/geneve.c if (changelink && (tunid != info->key.tun_id)) { key 1403 drivers/net/geneve.c info->key.tun_id = tunid; key 1412 drivers/net/geneve.c info->key.ttl = nla_get_u8(data[IFLA_GENEVE_TTL]); key 1417 drivers/net/geneve.c info->key.tos = nla_get_u8(data[IFLA_GENEVE_TOS]); key 1423 drivers/net/geneve.c info->key.label = nla_get_be32(data[IFLA_GENEVE_LABEL]) & key 1425 drivers/net/geneve.c if (info->key.label && (!(info->mode & IP_TUNNEL_INFO_IPV6))) { key 1437 drivers/net/geneve.c info->key.tp_dst = nla_get_be16(data[IFLA_GENEVE_PORT]); key 1454 drivers/net/geneve.c info->key.tun_flags |= TUNNEL_CSUM; key 1464 drivers/net/geneve.c info->key.tun_flags &= ~TUNNEL_CSUM; key 1507 drivers/net/geneve.c struct flowi4 fl4 = { .daddr = info->key.u.ipv4.dst }; key 1523 drivers/net/geneve.c rt = rt6_lookup(geneve->net, &info->key.u.ipv6.dst, NULL, 0, key 1690 drivers/net/geneve.c tunnel_id_to_vni(info->key.tun_id, tmp_vni); key 1697 drivers/net/geneve.c info->key.u.ipv4.dst)) key 1700 drivers/net/geneve.c !!(info->key.tun_flags & TUNNEL_CSUM))) key 1706 drivers/net/geneve.c &info->key.u.ipv6.dst)) key 1709 drivers/net/geneve.c !(info->key.tun_flags & TUNNEL_CSUM))) key 1714 drivers/net/geneve.c if (nla_put_u8(skb, IFLA_GENEVE_TTL, info->key.ttl) || key 1715 drivers/net/geneve.c nla_put_u8(skb, IFLA_GENEVE_TOS, info->key.tos) || key 1716 drivers/net/geneve.c nla_put_be32(skb, IFLA_GENEVE_LABEL, info->key.label)) key 1722 drivers/net/geneve.c if (nla_put_be16(skb, IFLA_GENEVE_PORT, info->key.tp_dst)) key 212 drivers/net/hyperv/hyperv_net.h const u8 *key); key 1645 drivers/net/hyperv/netvsc_drv.c static int netvsc_get_rxfh(struct net_device *dev, u32 *indir, u8 *key, key 1665 drivers/net/hyperv/netvsc_drv.c if (key) key 1666 drivers/net/hyperv/netvsc_drv.c memcpy(key, rndis_dev->rss_key, NETVSC_HASH_KEYLEN); key 1672 drivers/net/hyperv/netvsc_drv.c const u8 *key, const u8 hfunc) key 1695 drivers/net/hyperv/netvsc_drv.c if (!key) { key 1699 drivers/net/hyperv/netvsc_drv.c key = rndis_dev->rss_key; key 1702 drivers/net/hyperv/netvsc_drv.c return rndis_filter_set_rss_param(rndis_dev, key); key 144 drivers/net/macsec.c struct macsec_key key; key 185 drivers/net/macsec.c struct macsec_key key; key 343 drivers/net/macsec.c crypto_free_aead(sa->key.tfm); key 371 drivers/net/macsec.c crypto_free_aead(sa->key.tfm); key 733 drivers/net/macsec.c req = macsec_alloc_req(tx_sa->key.tfm, &iv, &sg, ret); key 947 drivers/net/macsec.c req = macsec_alloc_req(rx_sa->key.tfm, &iv, &sg, ret); key 1307 drivers/net/macsec.c static struct crypto_aead *macsec_alloc_tfm(char *key, int key_len, int icv_len) key 1318 drivers/net/macsec.c ret = crypto_aead_setkey(tfm, key, key_len); key 1339 drivers/net/macsec.c rx_sa->key.tfm = macsec_alloc_tfm(sak, key_len, icv_len); key 1340 drivers/net/macsec.c if (IS_ERR(rx_sa->key.tfm)) { key 1342 drivers/net/macsec.c return PTR_ERR(rx_sa->key.tfm); key 1437 drivers/net/macsec.c tx_sa->key.tfm = macsec_alloc_tfm(sak, key_len, icv_len); key 1438 drivers/net/macsec.c if (IS_ERR(tx_sa->key.tfm)) { key 1440 drivers/net/macsec.c return PTR_ERR(tx_sa->key.tfm); key 1722 drivers/net/macsec.c nla_memcpy(rx_sa->key.id, tb_sa[MACSEC_SA_ATTR_KEYID], MACSEC_KEYID_LEN); key 1868 drivers/net/macsec.c nla_memcpy(tx_sa->key.id, tb_sa[MACSEC_SA_ATTR_KEYID], MACSEC_KEYID_LEN); key 2469 drivers/net/macsec.c nla_put(skb, MACSEC_SA_ATTR_KEYID, MACSEC_KEYID_LEN, tx_sa->key.id) || key 2573 drivers/net/macsec.c nla_put(skb, MACSEC_SA_ATTR_KEYID, MACSEC_KEYID_LEN, rx_sa->key.id) || key 45 drivers/net/netdevsim/bpf.c void *key; key 328 drivers/net/netdevsim/bpf.c nsim_map_key_match(struct bpf_map *map, struct nsim_map_entry *e, void *key) key 330 drivers/net/netdevsim/bpf.c return e->key && !memcmp(key, e->key, map->key_size); key 333 drivers/net/netdevsim/bpf.c static int nsim_map_key_find(struct bpf_offloaded_map *offmap, void *key) key 339 drivers/net/netdevsim/bpf.c if (nsim_map_key_match(&offmap->map, &nmap->entry[i], key)) key 350 drivers/net/netdevsim/bpf.c nmap->entry[idx].key = kmalloc(offmap->map.key_size, GFP_USER); key 351 drivers/net/netdevsim/bpf.c if (!nmap->entry[idx].key) key 355 drivers/net/netdevsim/bpf.c kfree(nmap->entry[idx].key); key 356 drivers/net/netdevsim/bpf.c nmap->entry[idx].key = NULL; key 365 drivers/net/netdevsim/bpf.c void *key, void *next_key) key 372 drivers/net/netdevsim/bpf.c if (key) key 373 drivers/net/netdevsim/bpf.c idx = nsim_map_key_find(offmap, key); key 380 drivers/net/netdevsim/bpf.c if (nmap->entry[idx].key) { key 381 drivers/net/netdevsim/bpf.c memcpy(next_key, nmap->entry[idx].key, key 395 drivers/net/netdevsim/bpf.c nsim_map_lookup_elem(struct bpf_offloaded_map *offmap, void *key, void *value) key 402 drivers/net/netdevsim/bpf.c idx = nsim_map_key_find(offmap, key); key 413 drivers/net/netdevsim/bpf.c void *key, void *value, u64 flags) key 420 drivers/net/netdevsim/bpf.c idx = nsim_map_key_find(offmap, key); key 432 drivers/net/netdevsim/bpf.c if (!nmap->entry[idx].key) key 444 drivers/net/netdevsim/bpf.c memcpy(nmap->entry[idx].key, key, offmap->map.key_size); key 452 drivers/net/netdevsim/bpf.c static int nsim_map_delete_elem(struct bpf_offloaded_map *offmap, void *key) key 462 drivers/net/netdevsim/bpf.c idx = nsim_map_key_find(offmap, key); key 464 drivers/net/netdevsim/bpf.c kfree(nmap->entry[idx].key); key 506 drivers/net/netdevsim/bpf.c u32 *key; key 511 drivers/net/netdevsim/bpf.c key = nmap->entry[i].key; key 512 drivers/net/netdevsim/bpf.c *key = i; key 523 drivers/net/netdevsim/bpf.c kfree(nmap->entry[i].key); key 536 drivers/net/netdevsim/bpf.c kfree(nmap->entry[i].key); key 52 drivers/net/netdevsim/ipsec.c i, sap->key[0], sap->key[1], key 53 drivers/net/netdevsim/ipsec.c sap->key[2], sap->key[3]); key 168 drivers/net/netdevsim/ipsec.c ret = nsim_ipsec_parse_proto_keys(xs, sa.key, &sa.salt); key 36 drivers/net/netdevsim/netdevsim.h u32 key[4]; key 695 drivers/net/vmxnet3/vmxnet3_ethtool.c vmxnet3_get_rss(struct net_device *netdev, u32 *p, u8 *key, u8 *hfunc) key 712 drivers/net/vmxnet3/vmxnet3_ethtool.c vmxnet3_set_rss(struct net_device *netdev, const u32 *p, const u8 *key, key 721 drivers/net/vmxnet3/vmxnet3_ethtool.c if (key || key 466 drivers/net/vxlan.c u32 key = get_unaligned((u32 *)(addr + 2)); key 468 drivers/net/vxlan.c return jhash_2words(key, vni, vxlan_salt) & (FDB_HASH_SIZE - 1); key 1547 drivers/net/vxlan.c tun_dst->u.tun_info.key.tun_flags |= TUNNEL_VXLAN_OPT; key 2481 drivers/net/vxlan.c remote_ip.sin.sin_addr.s_addr = info->key.u.ipv4.dst; key 2482 drivers/net/vxlan.c local_ip.sin.sin_addr.s_addr = info->key.u.ipv4.src; key 2484 drivers/net/vxlan.c remote_ip.sin6.sin6_addr = info->key.u.ipv6.dst; key 2485 drivers/net/vxlan.c local_ip.sin6.sin6_addr = info->key.u.ipv6.src; key 2488 drivers/net/vxlan.c dst_port = info->key.tp_dst ? : vxlan->cfg.dst_port; key 2489 drivers/net/vxlan.c vni = tunnel_id_to_key32(info->key.tun_id); key 2492 drivers/net/vxlan.c if (info->key.tun_flags & TUNNEL_VXLAN_OPT) { key 2497 drivers/net/vxlan.c ttl = info->key.ttl; key 2498 drivers/net/vxlan.c tos = info->key.tos; key 2499 drivers/net/vxlan.c label = info->key.label; key 2500 drivers/net/vxlan.c udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); key 2542 drivers/net/vxlan.c } else if (info->key.tun_flags & TUNNEL_DONT_FRAGMENT) { key 2646 drivers/net/vxlan.c vni = tunnel_id_to_key32(info->key.tun_id); key 2927 drivers/net/vxlan.c dport = info->key.tp_dst ? : vxlan->cfg.dst_port; key 2933 drivers/net/vxlan.c rt = vxlan_get_route(vxlan, dev, sock4, skb, 0, info->key.tos, key 2934 drivers/net/vxlan.c info->key.u.ipv4.dst, key 2935 drivers/net/vxlan.c &info->key.u.ipv4.src, dport, sport, key 2945 drivers/net/vxlan.c ndst = vxlan6_get_route(vxlan, dev, sock6, skb, 0, info->key.tos, key 2946 drivers/net/vxlan.c info->key.label, &info->key.u.ipv6.dst, key 2947 drivers/net/vxlan.c &info->key.u.ipv6.src, dport, sport, key 2956 drivers/net/vxlan.c info->key.tp_src = sport; key 2957 drivers/net/vxlan.c info->key.tp_dst = dport; key 200 drivers/net/wireless/ath/ath.h void ath_key_delete(struct ath_common *common, struct ieee80211_key_conf *key); key 204 drivers/net/wireless/ath/ath.h struct ieee80211_key_conf *key); key 224 drivers/net/wireless/ath/ath10k/mac.c struct ieee80211_key_conf *key, key 231 drivers/net/wireless/ath/ath10k/mac.c .key_idx = key->keyidx, key 232 drivers/net/wireless/ath/ath10k/mac.c .key_len = key->keylen, key 233 drivers/net/wireless/ath/ath10k/mac.c .key_data = key->key, key 240 drivers/net/wireless/ath/ath10k/mac.c switch (key->cipher) { key 243 drivers/net/wireless/ath/ath10k/mac.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV_MGMT; key 268 drivers/net/wireless/ath/ath10k/mac.c ath10k_warn(ar, "cipher %d is not supported\n", key->cipher); key 273 drivers/net/wireless/ath/ath10k/mac.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 284 drivers/net/wireless/ath/ath10k/mac.c struct ieee80211_key_conf *key, key 299 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_send_key(arvif, key, cmd, macaddr, flags); key 465 drivers/net/wireless/ath/ath10k/mac.c struct ieee80211_key_conf *key) key 485 drivers/net/wireless/ath/ath10k/mac.c if (peer->keys[i] == key) { key 500 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_install_key(arvif, key, DISABLE_KEY, addr, flags); key 513 drivers/net/wireless/ath/ath10k/mac.c struct ieee80211_key_conf *key) key 528 drivers/net/wireless/ath/ath10k/mac.c if (peer->keys[key->keyidx] == key) key 532 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, key->keyidx); key 6066 drivers/net/wireless/ath/ath10k/mac.c struct ieee80211_key_conf *key) key 6086 drivers/net/wireless/ath/ath10k/mac.c if (key->cipher == WLAN_CIPHER_SUITE_WEP40) key 6089 drivers/net/wireless/ath/ath10k/mac.c if (key->cipher == WLAN_CIPHER_SUITE_WEP104) key 6092 drivers/net/wireless/ath/ath10k/mac.c if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) key 6099 drivers/net/wireless/ath/ath10k/mac.c key->keyidx); key 6107 drivers/net/wireless/ath/ath10k/mac.c struct ieee80211_key_conf *key) key 6113 drivers/net/wireless/ath/ath10k/mac.c bool is_wep = key->cipher == WLAN_CIPHER_SUITE_WEP40 || key 6114 drivers/net/wireless/ath/ath10k/mac.c key->cipher == WLAN_CIPHER_SUITE_WEP104; key 6121 drivers/net/wireless/ath/ath10k/mac.c if (key->cipher == WLAN_CIPHER_SUITE_AES_CMAC || key 6122 drivers/net/wireless/ath/ath10k/mac.c key->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_128 || key 6123 drivers/net/wireless/ath/ath10k/mac.c key->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256 || key 6124 drivers/net/wireless/ath/ath10k/mac.c key->cipher == WLAN_CIPHER_SUITE_BIP_CMAC_256) key 6130 drivers/net/wireless/ath/ath10k/mac.c if (key->keyidx > WMI_MAX_KEY_INDEX) key 6142 drivers/net/wireless/ath/ath10k/mac.c key->hw_key_idx = key->keyidx; key 6146 drivers/net/wireless/ath/ath10k/mac.c arvif->wep_keys[key->keyidx] = key; key 6148 drivers/net/wireless/ath/ath10k/mac.c arvif->wep_keys[key->keyidx] = NULL; key 6170 drivers/net/wireless/ath/ath10k/mac.c if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) key 6177 drivers/net/wireless/ath/ath10k/mac.c ath10k_clear_vdev_key(arvif, key); key 6185 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_vif_update_wep_key(arvif, key); key 6197 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_install_key(arvif, key, cmd, peer_addr, flags); key 6213 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_install_key(arvif, key, cmd, peer_addr, flags2); key 6218 drivers/net/wireless/ath/ath10k/mac.c ret2 = ath10k_install_key(arvif, key, DISABLE_KEY, key 6229 drivers/net/wireless/ath/ath10k/mac.c ath10k_set_key_h_def_keyidx(ar, arvif, cmd, key); key 6234 drivers/net/wireless/ath/ath10k/mac.c peer->keys[key->keyidx] = key; key 6236 drivers/net/wireless/ath/ath10k/mac.c peer->keys[key->keyidx] = NULL; key 474 drivers/net/wireless/ath/ath5k/mac80211-ops.c struct ieee80211_key_conf *key) key 483 drivers/net/wireless/ath/ath5k/mac80211-ops.c if (key->flags & IEEE80211_KEY_FLAG_RX_MGMT) key 487 drivers/net/wireless/ath/ath5k/mac80211-ops.c (key->cipher == WLAN_CIPHER_SUITE_TKIP || key 488 drivers/net/wireless/ath/ath5k/mac80211-ops.c key->cipher == WLAN_CIPHER_SUITE_CCMP) && key 489 drivers/net/wireless/ath/ath5k/mac80211-ops.c !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) { key 494 drivers/net/wireless/ath/ath5k/mac80211-ops.c switch (key->cipher) { key 511 drivers/net/wireless/ath/ath5k/mac80211-ops.c ret = ath_key_config(common, vif, sta, key); key 513 drivers/net/wireless/ath/ath5k/mac80211-ops.c key->hw_key_idx = ret; key 515 drivers/net/wireless/ath/ath5k/mac80211-ops.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 516 drivers/net/wireless/ath/ath5k/mac80211-ops.c if (key->cipher == WLAN_CIPHER_SUITE_TKIP) key 517 drivers/net/wireless/ath/ath5k/mac80211-ops.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; key 518 drivers/net/wireless/ath/ath5k/mac80211-ops.c if (key->cipher == WLAN_CIPHER_SUITE_CCMP) key 519 drivers/net/wireless/ath/ath5k/mac80211-ops.c key->flags |= IEEE80211_KEY_FLAG_SW_MGMT_TX; key 524 drivers/net/wireless/ath/ath5k/mac80211-ops.c ath_key_delete(common, key); key 567 drivers/net/wireless/ath/ath6kl/cfg80211.c struct ath6kl_key *key = NULL; key 576 drivers/net/wireless/ath/ath6kl/cfg80211.c key = &vif->keys[sme->key_idx]; key 577 drivers/net/wireless/ath/ath6kl/cfg80211.c key->key_len = sme->key_len; key 578 drivers/net/wireless/ath/ath6kl/cfg80211.c memcpy(key->key, sme->key, key->key_len); key 579 drivers/net/wireless/ath/ath6kl/cfg80211.c key->cipher = vif->prwise_crypto; key 585 drivers/net/wireless/ath/ath6kl/cfg80211.c key->key_len, key 587 drivers/net/wireless/ath/ath6kl/cfg80211.c key->key, KEY_OP_INIT_VAL, NULL, key 1133 drivers/net/wireless/ath/ath6kl/cfg80211.c struct ath6kl_key *key = NULL; key 1145 drivers/net/wireless/ath/ath6kl/cfg80211.c params->key); key 1155 drivers/net/wireless/ath/ath6kl/cfg80211.c key = &vif->keys[key_index]; key 1156 drivers/net/wireless/ath/ath6kl/cfg80211.c memset(key, 0, sizeof(struct ath6kl_key)); key 1170 drivers/net/wireless/ath/ath6kl/cfg80211.c seq_len > sizeof(key->seq)) key 1173 drivers/net/wireless/ath/ath6kl/cfg80211.c key->key_len = params->key_len; key 1174 drivers/net/wireless/ath/ath6kl/cfg80211.c memcpy(key->key, params->key, key->key_len); key 1175 drivers/net/wireless/ath/ath6kl/cfg80211.c key->seq_len = seq_len; key 1176 drivers/net/wireless/ath/ath6kl/cfg80211.c memcpy(key->seq, params->seq, key->seq_len); key 1177 drivers/net/wireless/ath/ath6kl/cfg80211.c key->cipher = params->cipher; key 1179 drivers/net/wireless/ath/ath6kl/cfg80211.c switch (key->cipher) { key 1207 drivers/net/wireless/ath/ath6kl/cfg80211.c __func__, key_index, key->key_len, key_type, key 1208 drivers/net/wireless/ath/ath6kl/cfg80211.c key_usage, key->seq_len); key 1216 drivers/net/wireless/ath/ath6kl/cfg80211.c ar->ap_mode_bkey.key_len = key->key_len; key 1217 drivers/net/wireless/ath/ath6kl/cfg80211.c memcpy(ar->ap_mode_bkey.key, key->key, key->key_len); key 1238 drivers/net/wireless/ath/ath6kl/cfg80211.c vif->wep_key_list[key_index].key_len = key->key_len; key 1239 drivers/net/wireless/ath/ath6kl/cfg80211.c memcpy(vif->wep_key_list[key_index].key, key->key, key 1240 drivers/net/wireless/ath/ath6kl/cfg80211.c key->key_len); key 1245 drivers/net/wireless/ath/ath6kl/cfg80211.c key_type, key_usage, key->key_len, key 1246 drivers/net/wireless/ath/ath6kl/cfg80211.c key->seq, key->seq_len, key->key, key 1288 drivers/net/wireless/ath/ath6kl/cfg80211.c struct ath6kl_key *key = NULL; key 1303 drivers/net/wireless/ath/ath6kl/cfg80211.c key = &vif->keys[key_index]; key 1305 drivers/net/wireless/ath/ath6kl/cfg80211.c params.cipher = key->cipher; key 1306 drivers/net/wireless/ath/ath6kl/cfg80211.c params.key_len = key->key_len; key 1307 drivers/net/wireless/ath/ath6kl/cfg80211.c params.seq_len = key->seq_len; key 1308 drivers/net/wireless/ath/ath6kl/cfg80211.c params.seq = key->seq; key 1309 drivers/net/wireless/ath/ath6kl/cfg80211.c params.key = key->key; key 1313 drivers/net/wireless/ath/ath6kl/cfg80211.c return key->key_len ? 0 : -ENOENT; key 1323 drivers/net/wireless/ath/ath6kl/cfg80211.c struct ath6kl_key *key = NULL; key 1346 drivers/net/wireless/ath/ath6kl/cfg80211.c key = &vif->keys[vif->def_txkey_index]; key 1361 drivers/net/wireless/ath/ath6kl/cfg80211.c key->key_len, key->seq, key->seq_len, key 1362 drivers/net/wireless/ath/ath6kl/cfg80211.c key->key, key 376 drivers/net/wireless/ath/ath6kl/core.h u8 key[64]; key 382 drivers/net/wireless/ath/ath6kl/core.h u8 key[WLAN_MAX_KEY_LEN]; key 549 drivers/net/wireless/ath/ath6kl/core.h u8 key[WLAN_MAX_KEY_LEN]; key 367 drivers/net/wireless/ath/ath6kl/main.c vif->wep_key_list[index].key, key 405 drivers/net/wireless/ath/ath6kl/main.c ik->key, key 2340 drivers/net/wireless/ath/ath6kl/wmi.c memcpy(cmd->key, key_material, key_len); key 792 drivers/net/wireless/ath/ath6kl/wmi.h u8 key[WLAN_MAX_KEY_LEN]; key 1419 drivers/net/wireless/ath/ath9k/htc_drv_main.c struct ieee80211_key_conf *key) key 1430 drivers/net/wireless/ath/ath9k/htc_drv_main.c (key->cipher == WLAN_CIPHER_SUITE_TKIP || key 1431 drivers/net/wireless/ath/ath9k/htc_drv_main.c key->cipher == WLAN_CIPHER_SUITE_CCMP) && key 1432 drivers/net/wireless/ath/ath9k/htc_drv_main.c !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) { key 1449 drivers/net/wireless/ath/ath9k/htc_drv_main.c ret = ath_key_config(common, vif, sta, key); key 1451 drivers/net/wireless/ath/ath9k/htc_drv_main.c key->hw_key_idx = ret; key 1453 drivers/net/wireless/ath/ath9k/htc_drv_main.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 1454 drivers/net/wireless/ath/ath9k/htc_drv_main.c if (key->cipher == WLAN_CIPHER_SUITE_TKIP) key 1455 drivers/net/wireless/ath/ath9k/htc_drv_main.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; key 1457 drivers/net/wireless/ath/ath9k/htc_drv_main.c key->cipher == WLAN_CIPHER_SUITE_CCMP) key 1458 drivers/net/wireless/ath/ath9k/htc_drv_main.c key->flags |= IEEE80211_KEY_FLAG_SW_MGMT_TX; key 1463 drivers/net/wireless/ath/ath9k/htc_drv_main.c ath_key_delete(common, key); key 1516 drivers/net/wireless/ath/ath9k/main.c int key; key 1524 drivers/net/wireless/ath/ath9k/main.c key = ath_key_config(common, vif, sta, &ps_key); key 1525 drivers/net/wireless/ath/ath9k/main.c if (key > 0) { key 1526 drivers/net/wireless/ath/ath9k/main.c an->ps_key = key; key 1527 drivers/net/wireless/ath/ath9k/main.c an->key_idx[0] = key; key 1675 drivers/net/wireless/ath/ath9k/main.c struct ieee80211_key_conf *key) key 1687 drivers/net/wireless/ath/ath9k/main.c (key->cipher == WLAN_CIPHER_SUITE_TKIP || key 1688 drivers/net/wireless/ath/ath9k/main.c key->cipher == WLAN_CIPHER_SUITE_CCMP) && key 1689 drivers/net/wireless/ath/ath9k/main.c !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) { key 1711 drivers/net/wireless/ath/ath9k/main.c key->hw_key_idx = 0; key 1712 drivers/net/wireless/ath/ath9k/main.c ret = ath_key_config(common, vif, sta, key); key 1714 drivers/net/wireless/ath/ath9k/main.c key->hw_key_idx = ret; key 1716 drivers/net/wireless/ath/ath9k/main.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 1717 drivers/net/wireless/ath/ath9k/main.c if (key->cipher == WLAN_CIPHER_SUITE_TKIP) key 1718 drivers/net/wireless/ath/ath9k/main.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; key 1720 drivers/net/wireless/ath/ath9k/main.c key->cipher == WLAN_CIPHER_SUITE_CCMP) key 1721 drivers/net/wireless/ath/ath9k/main.c key->flags |= IEEE80211_KEY_FLAG_SW_MGMT_TX; key 1724 drivers/net/wireless/ath/ath9k/main.c if (an && key->hw_key_idx) { key 1728 drivers/net/wireless/ath/ath9k/main.c an->key_idx[i] = key->hw_key_idx; key 1735 drivers/net/wireless/ath/ath9k/main.c ath_key_delete(common, key); key 1738 drivers/net/wireless/ath/ath9k/main.c if (an->key_idx[i] != key->hw_key_idx) key 1744 drivers/net/wireless/ath/ath9k/main.c key->hw_key_idx = 0; key 102 drivers/net/wireless/ath/carl9170/fwcmd.h u32 key[4]; key 478 drivers/net/wireless/ath/carl9170/mac.c struct carl9170_set_key_cmd key = { }; key 484 drivers/net/wireless/ath/carl9170/mac.c key.user = cpu_to_le16(id); key 485 drivers/net/wireless/ath/carl9170/mac.c key.keyId = cpu_to_le16(keyidx); key 486 drivers/net/wireless/ath/carl9170/mac.c key.type = cpu_to_le16(ktype); key 487 drivers/net/wireless/ath/carl9170/mac.c memcpy(&key.macAddr, mac, ETH_ALEN); key 489 drivers/net/wireless/ath/carl9170/mac.c memcpy(&key.key, keydata, keylen); key 492 drivers/net/wireless/ath/carl9170/mac.c sizeof(key), (u8 *)&key, 0, NULL); key 497 drivers/net/wireless/ath/carl9170/mac.c struct carl9170_disable_key_cmd key = { }; key 499 drivers/net/wireless/ath/carl9170/mac.c key.user = cpu_to_le16(id); key 502 drivers/net/wireless/ath/carl9170/mac.c sizeof(key), (u8 *)&key, 0, NULL); key 1176 drivers/net/wireless/ath/carl9170/main.c struct ieee80211_key_conf *key) key 1204 drivers/net/wireless/ath/carl9170/main.c !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) key 1207 drivers/net/wireless/ath/carl9170/main.c switch (key->cipher) { key 1219 drivers/net/wireless/ath/carl9170/main.c key->flags |= IEEE80211_KEY_FLAG_SW_MGMT_TX; key 1232 drivers/net/wireless/ath/carl9170/main.c if (!(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) { key 1235 drivers/net/wireless/ath/carl9170/main.c i = 64 + key->keyidx; key 1244 drivers/net/wireless/ath/carl9170/main.c key->hw_key_idx = i; key 1247 drivers/net/wireless/ath/carl9170/main.c ktype, 0, key->key, key 1248 drivers/net/wireless/ath/carl9170/main.c min_t(u8, 16, key->keylen)); key 1252 drivers/net/wireless/ath/carl9170/main.c if (key->cipher == WLAN_CIPHER_SUITE_TKIP) { key 1255 drivers/net/wireless/ath/carl9170/main.c key->key + 16, 16); key 1263 drivers/net/wireless/ath/carl9170/main.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; key 1269 drivers/net/wireless/ath/carl9170/main.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 1277 drivers/net/wireless/ath/carl9170/main.c if (key->hw_key_idx < 64) { key 1278 drivers/net/wireless/ath/carl9170/main.c ar->usedkeys &= ~BIT(key->hw_key_idx); key 1280 drivers/net/wireless/ath/carl9170/main.c err = carl9170_upload_key(ar, key->hw_key_idx, NULL, key 1286 drivers/net/wireless/ath/carl9170/main.c if (key->cipher == WLAN_CIPHER_SUITE_TKIP) { key 1287 drivers/net/wireless/ath/carl9170/main.c err = carl9170_upload_key(ar, key->hw_key_idx, key 1297 drivers/net/wireless/ath/carl9170/main.c err = carl9170_disable_key(ar, key->hw_key_idx); key 339 drivers/net/wireless/ath/key.c static int ath_setkey_tkip(struct ath_common *common, u16 keyix, const u8 *key, key 346 drivers/net/wireless/ath/key.c key_txmic = key + NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY; key 347 drivers/net/wireless/ath/key.c key_rxmic = key + NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY; key 476 drivers/net/wireless/ath/key.c struct ieee80211_key_conf *key) key 486 drivers/net/wireless/ath/key.c switch (key->cipher) { key 504 drivers/net/wireless/ath/key.c hk.kv_len = key->keylen; key 505 drivers/net/wireless/ath/key.c if (key->keylen) key 506 drivers/net/wireless/ath/key.c memcpy(hk.kv_val, key->key, key->keylen); key 508 drivers/net/wireless/ath/key.c if (!(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) { key 514 drivers/net/wireless/ath/key.c idx = ath_reserve_key_cache_slot(common, key->cipher); key 518 drivers/net/wireless/ath/key.c idx = key->keyidx; key 524 drivers/net/wireless/ath/key.c idx = ath_reserve_key_cache_slot(common, key->cipher); key 527 drivers/net/wireless/ath/key.c idx = key->keyidx; key 530 drivers/net/wireless/ath/key.c } else if (key->keyidx) { key 538 drivers/net/wireless/ath/key.c idx = key->keyidx; key 546 drivers/net/wireless/ath/key.c idx = ath_reserve_key_cache_slot(common, key->cipher); key 552 drivers/net/wireless/ath/key.c if (key->cipher == WLAN_CIPHER_SUITE_TKIP) key 553 drivers/net/wireless/ath/key.c ret = ath_setkey_tkip(common, idx, key->key, &hk, mac, key 562 drivers/net/wireless/ath/key.c if (key->cipher == WLAN_CIPHER_SUITE_CCMP) key 565 drivers/net/wireless/ath/key.c if (key->cipher == WLAN_CIPHER_SUITE_TKIP) { key 584 drivers/net/wireless/ath/key.c void ath_key_delete(struct ath_common *common, struct ieee80211_key_conf *key) key 586 drivers/net/wireless/ath/key.c ath_hw_keyreset(common, key->hw_key_idx); key 587 drivers/net/wireless/ath/key.c if (key->hw_key_idx < IEEE80211_WEP_NKID) key 590 drivers/net/wireless/ath/key.c clear_bit(key->hw_key_idx, common->keymap); key 591 drivers/net/wireless/ath/key.c clear_bit(key->hw_key_idx, common->ccmp_keymap); key 592 drivers/net/wireless/ath/key.c if (key->cipher != WLAN_CIPHER_SUITE_TKIP) key 595 drivers/net/wireless/ath/key.c clear_bit(key->hw_key_idx + 64, common->keymap); key 597 drivers/net/wireless/ath/key.c clear_bit(key->hw_key_idx, common->tkip_keymap); key 598 drivers/net/wireless/ath/key.c clear_bit(key->hw_key_idx + 64, common->tkip_keymap); key 601 drivers/net/wireless/ath/key.c ath_hw_keyreset(common, key->hw_key_idx + 32); key 602 drivers/net/wireless/ath/key.c clear_bit(key->hw_key_idx + 32, common->keymap); key 603 drivers/net/wireless/ath/key.c clear_bit(key->hw_key_idx + 64 + 32, common->keymap); key 605 drivers/net/wireless/ath/key.c clear_bit(key->hw_key_idx + 32, common->tkip_keymap); key 606 drivers/net/wireless/ath/key.c clear_bit(key->hw_key_idx + 64 + 32, common->tkip_keymap); key 757 drivers/net/wireless/ath/wcn36xx/hal.h u8 key[WCN36XX_HAL_MAC_MAX_KEY_LENGTH]; key 778 drivers/net/wireless/ath/wcn36xx/hal.h struct wcn36xx_hal_keys key[WCN36XX_HAL_MAC_MAX_NUM_OF_DEFAULT_KEYS]; key 498 drivers/net/wireless/ath/wcn36xx/main.c u8 key[WLAN_MAX_KEY_LEN]; key 505 drivers/net/wireless/ath/wcn36xx/main.c key_conf->key, key 540 drivers/net/wireless/ath/wcn36xx/main.c memcpy(key, key_conf->key, 16); key 541 drivers/net/wireless/ath/wcn36xx/main.c memcpy(key + 16, key_conf->key + 24, 8); key 542 drivers/net/wireless/ath/wcn36xx/main.c memcpy(key + 24, key_conf->key + 16, 8); key 544 drivers/net/wireless/ath/wcn36xx/main.c memcpy(key, key_conf->key, key_conf->keylen); key 561 drivers/net/wireless/ath/wcn36xx/main.c key, key 569 drivers/net/wireless/ath/wcn36xx/main.c key); key 580 drivers/net/wireless/ath/wcn36xx/main.c key, key 1723 drivers/net/wireless/ath/wcn36xx/smd.c u8 *key, key 1741 drivers/net/wireless/ath/wcn36xx/smd.c msg_body.set_sta_key_params.key[0].id = keyidx; key 1742 drivers/net/wireless/ath/wcn36xx/smd.c msg_body.set_sta_key_params.key[0].unicast = 1; key 1743 drivers/net/wireless/ath/wcn36xx/smd.c msg_body.set_sta_key_params.key[0].direction = WCN36XX_HAL_TX_RX; key 1744 drivers/net/wireless/ath/wcn36xx/smd.c msg_body.set_sta_key_params.key[0].pae_role = 0; key 1745 drivers/net/wireless/ath/wcn36xx/smd.c msg_body.set_sta_key_params.key[0].length = keylen; key 1746 drivers/net/wireless/ath/wcn36xx/smd.c memcpy(msg_body.set_sta_key_params.key[0].key, key, keylen); key 1773 drivers/net/wireless/ath/wcn36xx/smd.c u8 *key) key 1788 drivers/net/wireless/ath/wcn36xx/smd.c memcpy(msg_body.keys[0].key, key, keylen); key 100 drivers/net/wireless/ath/wcn36xx/smd.h u8 *key, key 107 drivers/net/wireless/ath/wcn36xx/smd.h u8 *key); key 1668 drivers/net/wireless/ath/wil6210/cfg80211.c params->key, key_usage); key 1671 drivers/net/wireless/ath/wil6210/cfg80211.c if (key_usage == WMI_KEY_USE_TX_GROUP && params->key && key 1674 drivers/net/wireless/ath/wil6210/cfg80211.c memcpy(vif->gtk, params->key, params->key_len); key 2060 drivers/net/wireless/ath/wil6210/cfg80211.c key_params.key = vif->gtk; key 738 drivers/net/wireless/ath/wil6210/txrx.c struct wil_eapol_key *key; key 759 drivers/net/wireless/ath/wil6210/txrx.c key = (struct wil_eapol_key *)(buf + sizeof(struct wil_1x_hdr)); key 760 drivers/net/wireless/ath/wil6210/txrx.c if (key->type != WIL_EAPOL_KEY_TYPE_WPA && key 761 drivers/net/wireless/ath/wil6210/txrx.c key->type != WIL_EAPOL_KEY_TYPE_RSN) key 764 drivers/net/wireless/ath/wil6210/txrx.c key_info = be16_to_cpu(key->key_info); key 768 drivers/net/wireless/ath/wil6210/txrx.c return key; key 773 drivers/net/wireless/ath/wil6210/txrx.c struct wil_eapol_key *key; key 776 drivers/net/wireless/ath/wil6210/txrx.c key = wil_is_ptk_eapol_key(wil, skb); key 777 drivers/net/wireless/ath/wil6210/txrx.c if (!key) key 780 drivers/net/wireless/ath/wil6210/txrx.c key_info = be16_to_cpu(key->key_info); key 795 drivers/net/wireless/ath/wil6210/txrx.c struct wil_eapol_key *key; key 798 drivers/net/wireless/ath/wil6210/txrx.c key = wil_is_ptk_eapol_key(wil, skb); key 799 drivers/net/wireless/ath/wil6210/txrx.c if (!key) key 802 drivers/net/wireless/ath/wil6210/txrx.c nonce = (u32 *)key->key_nonce; key 1262 drivers/net/wireless/ath/wil6210/wil6210.h const void *mac_addr, int key_len, const void *key, key 2450 drivers/net/wireless/ath/wil6210/wmi.c const void *mac_addr, int key_len, const void *key, key 2460 drivers/net/wireless/ath/wil6210/wmi.c if (key_len > sizeof(cmd.key)) key 2464 drivers/net/wireless/ath/wil6210/wmi.c if ((key_len == 0 || !key) && key 2468 drivers/net/wireless/ath/wil6210/wmi.c if (key) key 2469 drivers/net/wireless/ath/wil6210/wmi.c memcpy(cmd.key, key, key_len); key 437 drivers/net/wireless/ath/wil6210/wmi.h u8 key[WMI_MAX_KEY_LEN]; key 2134 drivers/net/wireless/atmel/at76c50x-usb.c struct ieee80211_key_conf *key) key 2142 drivers/net/wireless/atmel/at76c50x-usb.c __func__, cmd, key->cipher, key->keyidx, key->keylen); key 2144 drivers/net/wireless/atmel/at76c50x-usb.c if ((key->cipher != WLAN_CIPHER_SUITE_WEP40) && key 2145 drivers/net/wireless/atmel/at76c50x-usb.c (key->cipher != WLAN_CIPHER_SUITE_WEP104)) key 2148 drivers/net/wireless/atmel/at76c50x-usb.c key->hw_key_idx = key->keyidx; key 2154 drivers/net/wireless/atmel/at76c50x-usb.c memcpy(priv->wep_keys[key->keyidx], key->key, key->keylen); key 2155 drivers/net/wireless/atmel/at76c50x-usb.c priv->wep_keys_len[key->keyidx] = key->keylen; key 2158 drivers/net/wireless/atmel/at76c50x-usb.c priv->wep_key_id = key->keyidx; key 2163 drivers/net/wireless/atmel/at76c50x-usb.c priv->wep_keys_len[key->keyidx] = 0; key 1878 drivers/net/wireless/atmel/atmel.c memcpy(priv->wep_keys[idx], ext->key, key_len); key 1924 drivers/net/wireless/atmel/atmel.c memcpy(ext->key, priv->wep_keys[idx], ext->key_len); key 879 drivers/net/wireless/broadcom/b43/b43.h struct b43_key key[B43_NR_GROUP_KEYS * 2 + B43_NR_PAIRWISE_KEYS]; key 825 drivers/net/wireless/broadcom/b43/main.c u8 index, u8 algorithm, const u8 *key) key 841 drivers/net/wireless/broadcom/b43/main.c value = key[i]; key 842 drivers/net/wireless/broadcom/b43/main.c value |= (u16) (key[i + 1]) << 8; key 963 drivers/net/wireless/broadcom/b43/main.c const u8 *key, size_t key_len, const u8 *mac_addr) key 971 drivers/net/wireless/broadcom/b43/main.c B43_WARN_ON(index >= ARRAY_SIZE(dev->key)); key 989 drivers/net/wireless/broadcom/b43/main.c if (key) key 990 drivers/net/wireless/broadcom/b43/main.c memcpy(buf, key, key_len); key 995 drivers/net/wireless/broadcom/b43/main.c dev->key[index].algorithm = algorithm; key 1000 drivers/net/wireless/broadcom/b43/main.c const u8 *key, size_t key_len, key 1018 drivers/net/wireless/broadcom/b43/main.c for (i = 0; i < ARRAY_SIZE(dev->key); i++) { key 1020 drivers/net/wireless/broadcom/b43/main.c B43_WARN_ON(dev->key[i].keyconf == keyconf); key 1031 drivers/net/wireless/broadcom/b43/main.c B43_WARN_ON(i >= ARRAY_SIZE(dev->key)); key 1032 drivers/net/wireless/broadcom/b43/main.c if (!dev->key[i].keyconf) { key 1045 drivers/net/wireless/broadcom/b43/main.c do_key_write(dev, index, algorithm, key, key_len, mac_addr); key 1049 drivers/net/wireless/broadcom/b43/main.c do_key_write(dev, index + 4, algorithm, key, key_len, NULL); key 1052 drivers/net/wireless/broadcom/b43/main.c dev->key[index].keyconf = keyconf; key 1059 drivers/net/wireless/broadcom/b43/main.c if (B43_WARN_ON((index < 0) || (index >= ARRAY_SIZE(dev->key)))) key 1067 drivers/net/wireless/broadcom/b43/main.c dev->key[index].keyconf = NULL; key 1092 drivers/net/wireless/broadcom/b43/main.c struct b43_key *key; key 1108 drivers/net/wireless/broadcom/b43/main.c key = &(dev->key[index]); key 1110 drivers/net/wireless/broadcom/b43/main.c index, (key->keyconf == NULL) ? " " : "*"); key 1119 drivers/net/wireless/broadcom/b43/main.c printk(" Algo: %04X/%02X", algo, key->algorithm); key 1122 drivers/net/wireless/broadcom/b43/main.c if (key->algorithm == B43_SEC_ALGO_TKIP) { key 4156 drivers/net/wireless/broadcom/b43/main.c struct ieee80211_key_conf *key) key 4170 drivers/net/wireless/broadcom/b43/main.c (key->cipher == WLAN_CIPHER_SUITE_TKIP || key 4171 drivers/net/wireless/broadcom/b43/main.c key->cipher == WLAN_CIPHER_SUITE_CCMP) && key 4172 drivers/net/wireless/broadcom/b43/main.c !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) { key 4197 drivers/net/wireless/broadcom/b43/main.c switch (key->cipher) { key 4214 drivers/net/wireless/broadcom/b43/main.c index = (u8) (key->keyidx); key 4221 drivers/net/wireless/broadcom/b43/main.c (!(key->flags & IEEE80211_KEY_FLAG_PAIRWISE) || key 4228 drivers/net/wireless/broadcom/b43/main.c if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) { key 4235 drivers/net/wireless/broadcom/b43/main.c key->key, key->keylen, key 4236 drivers/net/wireless/broadcom/b43/main.c sta->addr, key); key 4240 drivers/net/wireless/broadcom/b43/main.c key->key, key->keylen, NULL, key); key 4252 drivers/net/wireless/broadcom/b43/main.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 4254 drivers/net/wireless/broadcom/b43/main.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; key 4257 drivers/net/wireless/broadcom/b43/main.c err = b43_key_clear(dev, key->hw_key_idx); key 4270 drivers/net/wireless/broadcom/b43/main.c cmd == SET_KEY ? "Using" : "Disabling", key->keyidx, key 295 drivers/net/wireless/broadcom/b43/xmit.c struct b43_key *key; key 299 drivers/net/wireless/broadcom/b43/xmit.c B43_WARN_ON(key_idx >= ARRAY_SIZE(dev->key)); key 300 drivers/net/wireless/broadcom/b43/xmit.c key = &(dev->key[key_idx]); key 302 drivers/net/wireless/broadcom/b43/xmit.c if (unlikely(!key->keyconf)) { key 317 drivers/net/wireless/broadcom/b43/xmit.c mac_ctl |= (key->algorithm << B43_TXH_MAC_KEYALG_SHIFT) & key 320 drivers/net/wireless/broadcom/b43/xmit.c if (key->algorithm == B43_SEC_ALGO_TKIP) { key 718 drivers/net/wireless/broadcom/b43/xmit.c B43_WARN_ON(keyidx >= ARRAY_SIZE(dev->key)); key 720 drivers/net/wireless/broadcom/b43/xmit.c if (dev->key[keyidx].algorithm != B43_SEC_ALGO_NONE) { key 734 drivers/net/wireless/broadcom/b43legacy/b43legacy.h struct b43legacy_key key[58]; key 2384 drivers/net/wireless/broadcom/b43legacy/main.c B43legacy_WARN_ON(dev->max_nr_keys > ARRAY_SIZE(dev->key)); key 226 drivers/net/wireless/broadcom/b43legacy/xmit.c struct b43legacy_key *key; key 231 drivers/net/wireless/broadcom/b43legacy/xmit.c key = &(dev->key[key_idx]); key 233 drivers/net/wireless/broadcom/b43legacy/xmit.c if (key->enabled) { key 240 drivers/net/wireless/broadcom/b43legacy/xmit.c mac_ctl |= (key->algorithm << key 481 drivers/net/wireless/broadcom/b43legacy/xmit.c if (dev->key[keyidx].algorithm != B43legacy_SEC_ALGO_NONE) { key 338 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_parse_tlvs(const void *buf, int buflen, uint key) key 348 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if ((elt->id == key) && (totlen >= (len + TLV_HDR_LEN))) key 451 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static void convert_key_from_CPU(struct brcmf_wsec_key *key, key 454 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key_le->index = cpu_to_le32(key->index); key 455 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key_le->len = cpu_to_le32(key->len); key 456 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key_le->algo = cpu_to_le32(key->algo); key 457 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key_le->flags = cpu_to_le32(key->flags); key 458 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key_le->rxiv.hi = cpu_to_le32(key->rxiv.hi); key 459 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key_le->rxiv.lo = cpu_to_le16(key->rxiv.lo); key 460 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key_le->iv_initialized = cpu_to_le32(key->iv_initialized); key 461 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c memcpy(key_le->data, key->data, sizeof(key->data)); key 462 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c memcpy(key_le->ea, key->ea, sizeof(key->ea)); key 466 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c send_key_to_dongle(struct brcmf_if *ifp, struct brcmf_wsec_key *key) key 472 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c convert_key_from_CPU(key, &key_le); key 1273 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c snprintf(&pmk.key[2 * i], 3, "%02x", pmk_data[i]); key 1763 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_wsec_key key; key 1783 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c memset(&key, 0, sizeof(key)); key 1784 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key.len = (u32) sme->key_len; key 1785 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key.index = (u32) sme->key_idx; key 1786 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (key.len > sizeof(key.data)) { key 1787 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c bphy_err(drvr, "Too long key length (%u)\n", key.len); key 1790 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c memcpy(key.data, sme->key, key.len); key 1791 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key.flags = BRCMF_PRIMARY_KEY; key 1794 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key.algo = CRYPTO_ALGO_WEP1; key 1797 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key.algo = CRYPTO_ALGO_WEP128; key 1806 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key.len, key.index, key.algo); key 1807 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_dbg(CONN, "key \"%s\"\n", key.data); key 1808 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = send_key_to_dongle(ifp, &key); key 2246 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_wsec_key *key; key 2260 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key = &ifp->vif->profile.key[key_idx]; key 2262 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (key->algo == CRYPTO_ALGO_OFF) { key 2267 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c memset(key, 0, sizeof(*key)); key 2268 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key->index = (u32)key_idx; key 2269 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key->flags = BRCMF_PRIMARY_KEY; key 2272 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = send_key_to_dongle(ifp, key); key 2286 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_wsec_key *key; key 2308 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (params->key_len > sizeof(key->data)) { key 2320 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key = &ifp->vif->profile.key[key_idx]; key 2321 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c memset(key, 0, sizeof(*key)); key 2323 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c memcpy((char *)&key->ea, (void *)mac_addr, ETH_ALEN); key 2324 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key->len = params->key_len; key 2325 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key->index = key_idx; key 2326 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c memcpy(key->data, params->key, key->len); key 2328 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key->flags = BRCMF_PRIMARY_KEY; key 2332 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key->algo = CRYPTO_ALGO_WEP1; key 2337 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key->algo = CRYPTO_ALGO_WEP128; key 2344 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c memcpy(keybuf, &key->data[24], sizeof(keybuf)); key 2345 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c memcpy(&key->data[24], &key->data[16], sizeof(keybuf)); key 2346 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c memcpy(&key->data[16], keybuf, sizeof(keybuf)); key 2348 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key->algo = CRYPTO_ALGO_TKIP; key 2353 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key->algo = CRYPTO_ALGO_AES_CCM; key 2358 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key->algo = CRYPTO_ALGO_AES_CCM; key 2368 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = send_key_to_dongle(ifp, key); key 2467 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_wsec_key *key; key 2471 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c key = &ifp->vif->profile.key[key_idx]; key 2472 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if ((key->algo == CRYPTO_ALGO_WEP1) || key 2473 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c (key->algo == CRYPTO_ALGO_WEP128)) key 2479 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = send_key_to_dongle(ifp, key); key 123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h struct brcmf_wsec_key key[BRCMF_MAX_DEFAULT_KEYS]; key 518 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h u8 key[2 * BRCMF_WSEC_MAX_PSK_LEN + 1]; key 510 drivers/net/wireless/cisco/airo.c u8 key[16]; key 972 drivers/net/wireless/cisco/airo.c u8 key[16]; key 1097 drivers/net/wireless/cisco/airo.c u8 key[16]; /* 40-bit and 104-bit keys */ key 1303 drivers/net/wireless/cisco/airo.c static void age_mic_context(miccntx *cur, miccntx *old, u8 *key, int key_len, key 1309 drivers/net/wireless/cisco/airo.c if (cur->valid && (memcmp(cur->key, key, key_len) == 0)) key 1316 drivers/net/wireless/cisco/airo.c memcpy(cur->key, key, key_len); key 1323 drivers/net/wireless/cisco/airo.c emmh32_setseed(&cur->seed, key, key_len, tfm); key 5174 drivers/net/wireless/cisco/airo.c memcpy(buf, wkr.key, klen); key 5204 drivers/net/wireless/cisco/airo.c static int set_wep_key(struct airo_info *ai, u16 index, const char *key, key 5218 drivers/net/wireless/cisco/airo.c memcpy(wkr.key, key, keylen); key 5254 drivers/net/wireless/cisco/airo.c char key[16]; key 5258 drivers/net/wireless/cisco/airo.c memset(key, 0, sizeof(key)); key 5284 drivers/net/wireless/cisco/airo.c key[i/3] = hex_to_bin(data->wbuffer[i+j])<<4; key 5287 drivers/net/wireless/cisco/airo.c key[i/3] |= hex_to_bin(data->wbuffer[i+j]); key 5292 drivers/net/wireless/cisco/airo.c rc = set_wep_key(ai, index, key, i/3, 1, 1); key 6329 drivers/net/wireless/cisco/airo.c wep_key_t key; key 6348 drivers/net/wireless/cisco/airo.c key.len = MAX_KEY_SIZE; key 6350 drivers/net/wireless/cisco/airo.c key.len = MIN_KEY_SIZE; key 6354 drivers/net/wireless/cisco/airo.c memset(key.key, 0, MAX_KEY_SIZE); key 6356 drivers/net/wireless/cisco/airo.c memcpy(key.key, extra, dwrq->length); key 6358 drivers/net/wireless/cisco/airo.c rc = set_wep_key(local, index, key.key, key.len, perm, 1); key 6369 drivers/net/wireless/cisco/airo.c if((index == current_index) && (key.len > 0) && key 6473 drivers/net/wireless/cisco/airo.c wep_key_t key; key 6511 drivers/net/wireless/cisco/airo.c memset(key.key, 0, MAX_KEY_SIZE); key 6514 drivers/net/wireless/cisco/airo.c key.len = 0; key 6518 drivers/net/wireless/cisco/airo.c key.len = MAX_KEY_SIZE; key 6520 drivers/net/wireless/cisco/airo.c key.len = MIN_KEY_SIZE; key 6524 drivers/net/wireless/cisco/airo.c key_len = min (ext->key_len, key.len); key 6525 drivers/net/wireless/cisco/airo.c memcpy(key.key, ext->key, key_len); key 6530 drivers/net/wireless/cisco/airo.c if (key.len == 0) { key 6539 drivers/net/wireless/cisco/airo.c rc = set_wep_key(local, idx, key.key, key.len, perm, 1); key 5352 drivers/net/wireless/intel/ipw2x00/ipw2100.c u8 key[13]; key 5377 drivers/net/wireless/intel/ipw2x00/ipw2100.c int idx, char *key, int len, int batch_mode) key 5399 drivers/net/wireless/intel/ipw2x00/ipw2100.c memcpy(wep_key->key, key, len); key 5400 drivers/net/wireless/intel/ipw2x00/ipw2100.c memset(wep_key->key + len, 0, keylen - len); key 5410 drivers/net/wireless/intel/ipw2x00/ipw2100.c WEP_STR_64(wep_key->key)); key 5415 drivers/net/wireless/intel/ipw2x00/ipw2100.c WEP_STR_128(wep_key->key)); key 7454 drivers/net/wireless/intel/ipw2x00/ipw2100.c union iwreq_data *wrqu, char *key) key 7461 drivers/net/wireless/intel/ipw2x00/ipw2100.c return libipw_wx_set_encode(priv->ieee, info, wrqu, key); key 7466 drivers/net/wireless/intel/ipw2x00/ipw2100.c union iwreq_data *wrqu, char *key) key 7473 drivers/net/wireless/intel/ipw2x00/ipw2100.c return libipw_wx_get_encode(priv->ieee, info, wrqu, key); key 282 drivers/net/wireless/intel/ipw2x00/ipw2100.h u8 key[16]; key 5896 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct ipw_tgi_tx_key key; key 5901 drivers/net/wireless/intel/ipw2x00/ipw2200.c key.key_id = index; key 5902 drivers/net/wireless/intel/ipw2x00/ipw2200.c memcpy(key.key, priv->ieee->sec.keys[index], SCM_TEMPORAL_KEY_LENGTH); key 5903 drivers/net/wireless/intel/ipw2x00/ipw2200.c key.security_type = type; key 5904 drivers/net/wireless/intel/ipw2x00/ipw2200.c key.station_index = 0; /* always 0 for BSS */ key 5905 drivers/net/wireless/intel/ipw2x00/ipw2200.c key.flags = 0; key 5907 drivers/net/wireless/intel/ipw2x00/ipw2200.c key.tx_counter[0] = cpu_to_le32(0); key 5908 drivers/net/wireless/intel/ipw2x00/ipw2200.c key.tx_counter[1] = cpu_to_le32(0); key 5910 drivers/net/wireless/intel/ipw2x00/ipw2200.c ipw_send_cmd_pdu(priv, IPW_CMD_TGI_TX_KEY, sizeof(key), &key); key 5915 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct ipw_wep_key key; key 5918 drivers/net/wireless/intel/ipw2x00/ipw2200.c key.cmd_id = DINO_CMD_WEP_KEY; key 5919 drivers/net/wireless/intel/ipw2x00/ipw2200.c key.seq_num = 0; key 5924 drivers/net/wireless/intel/ipw2x00/ipw2200.c key.key_index = i | type; key 5926 drivers/net/wireless/intel/ipw2x00/ipw2200.c key.key_size = 0; key 5930 drivers/net/wireless/intel/ipw2x00/ipw2200.c key.key_size = priv->ieee->sec.key_sizes[i]; key 5931 drivers/net/wireless/intel/ipw2x00/ipw2200.c memcpy(key.key, priv->ieee->sec.keys[i], key.key_size); key 5933 drivers/net/wireless/intel/ipw2x00/ipw2200.c ipw_send_cmd_pdu(priv, IPW_CMD_WEP_KEY, sizeof(key), &key); key 9484 drivers/net/wireless/intel/ipw2x00/ipw2200.c union iwreq_data *wrqu, char *key) key 9491 drivers/net/wireless/intel/ipw2x00/ipw2200.c ret = libipw_wx_set_encode(priv->ieee, info, wrqu, key); key 9506 drivers/net/wireless/intel/ipw2x00/ipw2200.c union iwreq_data *wrqu, char *key) key 9509 drivers/net/wireless/intel/ipw2x00/ipw2200.c return libipw_wx_get_encode(priv->ieee, info, wrqu, key); key 808 drivers/net/wireless/intel/ipw2x00/ipw2200.h u8 key[16]; key 816 drivers/net/wireless/intel/ipw2x00/ipw2200.h u8 key[16]; key 933 drivers/net/wireless/intel/ipw2x00/ipw2200.h u8 key[16]; key 979 drivers/net/wireless/intel/ipw2x00/libipw.h union iwreq_data *wrqu, char *key); key 982 drivers/net/wireless/intel/ipw2x00/libipw.h char *key); key 985 drivers/net/wireless/intel/ipw2x00/libipw.h char *key); key 305 drivers/net/wireless/intel/ipw2x00/libipw_wx.c int i, key, key_provided, len; key 311 drivers/net/wireless/intel/ipw2x00/libipw_wx.c key = erq->flags & IW_ENCODE_INDEX; key 312 drivers/net/wireless/intel/ipw2x00/libipw_wx.c if (key) { key 313 drivers/net/wireless/intel/ipw2x00/libipw_wx.c if (key > WEP_KEYS) key 315 drivers/net/wireless/intel/ipw2x00/libipw_wx.c key--; key 319 drivers/net/wireless/intel/ipw2x00/libipw_wx.c key = ieee->crypt_info.tx_keyidx; key 322 drivers/net/wireless/intel/ipw2x00/libipw_wx.c LIBIPW_DEBUG_WX("Key: %d [%s]\n", key, key_provided ? key 325 drivers/net/wireless/intel/ipw2x00/libipw_wx.c crypt = &ieee->crypt_info.crypt[key]; key 330 drivers/net/wireless/intel/ipw2x00/libipw_wx.c key); key 382 drivers/net/wireless/intel/ipw2x00/libipw_wx.c new_crypt->priv = new_crypt->ops->init(key); key 398 drivers/net/wireless/intel/ipw2x00/libipw_wx.c memcpy(sec.keys[key], keybuf, erq->length); key 400 drivers/net/wireless/intel/ipw2x00/libipw_wx.c memset(sec.keys[key] + erq->length, 0, key 403 drivers/net/wireless/intel/ipw2x00/libipw_wx.c key, len, sec.keys[key], key 405 drivers/net/wireless/intel/ipw2x00/libipw_wx.c sec.key_sizes[key] = len; key 407 drivers/net/wireless/intel/ipw2x00/libipw_wx.c (*crypt)->ops->set_key(sec.keys[key], len, NULL, key 409 drivers/net/wireless/intel/ipw2x00/libipw_wx.c sec.flags |= (1 << key); key 412 drivers/net/wireless/intel/ipw2x00/libipw_wx.c if (key == sec.active_key) key 417 drivers/net/wireless/intel/ipw2x00/libipw_wx.c len = (*crypt)->ops->get_key(sec.keys[key], WEP_KEY_LEN, key 422 drivers/net/wireless/intel/ipw2x00/libipw_wx.c "zero.\n", key); key 423 drivers/net/wireless/intel/ipw2x00/libipw_wx.c memset(sec.keys[key], 0, 13); key 424 drivers/net/wireless/intel/ipw2x00/libipw_wx.c (*crypt)->ops->set_key(sec.keys[key], 13, NULL, key 426 drivers/net/wireless/intel/ipw2x00/libipw_wx.c sec.key_sizes[key] = 13; key 427 drivers/net/wireless/intel/ipw2x00/libipw_wx.c sec.flags |= (1 << key); key 433 drivers/net/wireless/intel/ipw2x00/libipw_wx.c "key.\n", key); key 434 drivers/net/wireless/intel/ipw2x00/libipw_wx.c ieee->crypt_info.tx_keyidx = key; key 435 drivers/net/wireless/intel/ipw2x00/libipw_wx.c sec.active_key = key; key 453 drivers/net/wireless/intel/ipw2x00/libipw_wx.c sec.encode_alg[key] = SEC_ALG_WEP; key 467 drivers/net/wireless/intel/ipw2x00/libipw_wx.c int len, key; key 472 drivers/net/wireless/intel/ipw2x00/libipw_wx.c key = erq->flags & IW_ENCODE_INDEX; key 473 drivers/net/wireless/intel/ipw2x00/libipw_wx.c if (key) { key 474 drivers/net/wireless/intel/ipw2x00/libipw_wx.c if (key > WEP_KEYS) key 476 drivers/net/wireless/intel/ipw2x00/libipw_wx.c key--; key 478 drivers/net/wireless/intel/ipw2x00/libipw_wx.c key = ieee->crypt_info.tx_keyidx; key 480 drivers/net/wireless/intel/ipw2x00/libipw_wx.c erq->flags = key + 1; key 488 drivers/net/wireless/intel/ipw2x00/libipw_wx.c len = sec->key_sizes[key]; key 489 drivers/net/wireless/intel/ipw2x00/libipw_wx.c memcpy(keybuf, sec->keys[key], len); key 621 drivers/net/wireless/intel/ipw2x00/libipw_wx.c (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, key 636 drivers/net/wireless/intel/ipw2x00/libipw_wx.c memcpy(sec.keys[idx], ext->key, ext->key_len); key 707 drivers/net/wireless/intel/ipw2x00/libipw_wx.c memcpy(ext->key, sec->keys[idx], ext->key_len); key 137 drivers/net/wireless/intel/iwlegacy/3945-mac.c memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen); key 139 drivers/net/wireless/intel/iwlegacy/3945-mac.c memcpy(il->stations[sta_id].sta.key.key, keyconf->key, keyconf->keylen); key 141 drivers/net/wireless/intel/iwlegacy/3945-mac.c if ((il->stations[sta_id].sta.key. key 143 drivers/net/wireless/intel/iwlegacy/3945-mac.c il->stations[sta_id].sta.key.key_offset = key 148 drivers/net/wireless/intel/iwlegacy/3945-mac.c WARN(il->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET, key 151 drivers/net/wireless/intel/iwlegacy/3945-mac.c il->stations[sta_id].sta.key.key_flags = key_flags; key 186 drivers/net/wireless/intel/iwlegacy/3945-mac.c memset(&il->stations[sta_id].sta.key, 0, sizeof(struct il4965_keyinfo)); key 187 drivers/net/wireless/intel/iwlegacy/3945-mac.c il->stations[sta_id].sta.key.key_flags = STA_KEY_FLG_NO_ENC; key 237 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_set_static_key(struct il_priv *il, struct ieee80211_key_conf *key) key 239 drivers/net/wireless/intel/iwlegacy/3945-mac.c if (key->cipher == WLAN_CIPHER_SUITE_WEP40 || key 240 drivers/net/wireless/intel/iwlegacy/3945-mac.c key->cipher == WLAN_CIPHER_SUITE_WEP104) key 243 drivers/net/wireless/intel/iwlegacy/3945-mac.c IL_ERR("Static key invalid: cipher %x\n", key->cipher); key 361 drivers/net/wireless/intel/iwlegacy/3945-mac.c memcpy(tx_cmd->key, keyinfo->key, keyinfo->keylen); key 377 drivers/net/wireless/intel/iwlegacy/3945-mac.c memcpy(&tx_cmd->key[3], keyinfo->key, keyinfo->keylen); key 2915 drivers/net/wireless/intel/iwlegacy/3945-mac.c struct ieee80211_key_conf *key) key 2934 drivers/net/wireless/intel/iwlegacy/3945-mac.c !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) { key 2955 drivers/net/wireless/intel/iwlegacy/3945-mac.c ret = il3945_set_static_key(il, key); key 2957 drivers/net/wireless/intel/iwlegacy/3945-mac.c ret = il3945_set_dynamic_key(il, key, sta_id); key 2243 drivers/net/wireless/intel/iwlegacy/3945.c memcpy(&addsta->key, &cmd->key, sizeof(struct il4965_keyinfo)); key 1605 drivers/net/wireless/intel/iwlegacy/4965-mac.c memcpy(tx_cmd->key, keyconf->key, keyconf->keylen); key 1613 drivers/net/wireless/intel/iwlegacy/4965-mac.c ieee80211_get_tkip_p2k(keyconf, skb_frag, tx_cmd->key); key 1625 drivers/net/wireless/intel/iwlegacy/4965-mac.c memcpy(&tx_cmd->key[3], keyconf->key, keyconf->keylen); key 3145 drivers/net/wireless/intel/iwlegacy/4965-mac.c wep_cmd->key[i].key_idx = i; key 3147 drivers/net/wireless/intel/iwlegacy/4965-mac.c wep_cmd->key[i].key_offset = i; key 3150 drivers/net/wireless/intel/iwlegacy/4965-mac.c wep_cmd->key[i].key_offset = WEP_INVALID_OFFSET; key 3152 drivers/net/wireless/intel/iwlegacy/4965-mac.c wep_cmd->key[i].key_size = key_size; key 3153 drivers/net/wireless/intel/iwlegacy/4965-mac.c memcpy(&wep_cmd->key[i].key[3], il->_4965.wep_keys[i].key, key_size); key 3219 drivers/net/wireless/intel/iwlegacy/4965-mac.c memcpy(&il->_4965.wep_keys[idx].key, &keyconf->key, len); key 3255 drivers/net/wireless/intel/iwlegacy/4965-mac.c memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen); key 3257 drivers/net/wireless/intel/iwlegacy/4965-mac.c memcpy(&il->stations[sta_id].sta.key.key[3], keyconf->key, key 3260 drivers/net/wireless/intel/iwlegacy/4965-mac.c if ((il->stations[sta_id].sta.key. key 3262 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.key.key_offset = key 3267 drivers/net/wireless/intel/iwlegacy/4965-mac.c WARN(il->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET, key 3270 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.key.key_flags = key_flags; key 3304 drivers/net/wireless/intel/iwlegacy/4965-mac.c memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen); key 3306 drivers/net/wireless/intel/iwlegacy/4965-mac.c memcpy(il->stations[sta_id].sta.key.key, keyconf->key, keyconf->keylen); key 3308 drivers/net/wireless/intel/iwlegacy/4965-mac.c if ((il->stations[sta_id].sta.key. key 3310 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.key.key_offset = key 3315 drivers/net/wireless/intel/iwlegacy/4965-mac.c WARN(il->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET, key 3318 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.key.key_flags = key_flags; key 3352 drivers/net/wireless/intel/iwlegacy/4965-mac.c if ((il->stations[sta_id].sta.key. key 3354 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.key.key_offset = key 3359 drivers/net/wireless/intel/iwlegacy/4965-mac.c WARN(il->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET, key 3362 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.key.key_flags = key_flags; key 3365 drivers/net/wireless/intel/iwlegacy/4965-mac.c memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, 16); key 3367 drivers/net/wireless/intel/iwlegacy/4965-mac.c memcpy(il->stations[sta_id].sta.key.key, keyconf->key, 16); key 3394 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.key.tkip_rx_tsc_byte2 = (u8) iv32; key 3397 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.key.tkip_rx_ttak[i] = key 3422 drivers/net/wireless/intel/iwlegacy/4965-mac.c key_flags = le16_to_cpu(il->stations[sta_id].sta.key.key_flags); key 3437 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (il->stations[sta_id].sta.key.key_flags & STA_KEY_FLG_INVALID) { key 3445 drivers/net/wireless/intel/iwlegacy/4965-mac.c (il->stations[sta_id].sta.key.key_offset, &il->ucode_key_table)) key 3447 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.key.key_offset); key 3449 drivers/net/wireless/intel/iwlegacy/4965-mac.c memset(&il->stations[sta_id].sta.key, 0, sizeof(struct il4965_keyinfo)); key 3450 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.key.key_flags = key 3452 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.key.key_offset = keyconf->hw_key_idx; key 5893 drivers/net/wireless/intel/iwlegacy/4965-mac.c struct ieee80211_key_conf *key) key 5912 drivers/net/wireless/intel/iwlegacy/4965-mac.c !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) { key 5930 drivers/net/wireless/intel/iwlegacy/4965-mac.c if ((key->cipher == WLAN_CIPHER_SUITE_WEP40 || key 5931 drivers/net/wireless/intel/iwlegacy/4965-mac.c key->cipher == WLAN_CIPHER_SUITE_WEP104) && !sta) { key 5936 drivers/net/wireless/intel/iwlegacy/4965-mac.c (key->hw_key_idx == HW_KEY_DEFAULT); key 5942 drivers/net/wireless/intel/iwlegacy/4965-mac.c ret = il4965_set_default_wep_key(il, key); key 5944 drivers/net/wireless/intel/iwlegacy/4965-mac.c ret = il4965_set_dynamic_key(il, key, sta_id); key 5950 drivers/net/wireless/intel/iwlegacy/4965-mac.c ret = il4965_remove_default_wep_key(il, key); key 5952 drivers/net/wireless/intel/iwlegacy/4965-mac.c ret = il4965_remove_dynamic_key(il, key, sta_id); key 1707 drivers/net/wireless/intel/iwlegacy/4965.c memcpy(&addsta->key, &cmd->key, sizeof(struct il4965_keyinfo)); key 116 drivers/net/wireless/intel/iwlegacy/4965.h struct ieee80211_key_conf *key); key 118 drivers/net/wireless/intel/iwlegacy/4965.h struct ieee80211_key_conf *key); key 121 drivers/net/wireless/intel/iwlegacy/4965.h struct ieee80211_key_conf *key, u8 sta_id); key 123 drivers/net/wireless/intel/iwlegacy/4965.h struct ieee80211_key_conf *key, u8 sta_id); key 160 drivers/net/wireless/intel/iwlegacy/4965.h struct ieee80211_key_conf *key); key 906 drivers/net/wireless/intel/iwlegacy/commands.h u8 key[16]; /* 16-byte unicast decryption key */ key 960 drivers/net/wireless/intel/iwlegacy/commands.h struct il4965_keyinfo key; key 988 drivers/net/wireless/intel/iwlegacy/commands.h struct il4965_keyinfo key; key 1026 drivers/net/wireless/intel/iwlegacy/commands.h struct il4965_keyinfo key; key 1107 drivers/net/wireless/intel/iwlegacy/commands.h u8 key[16]; key 1115 drivers/net/wireless/intel/iwlegacy/commands.h struct il_wep_key key[0]; key 1382 drivers/net/wireless/intel/iwlegacy/commands.h u8 key[16]; key 1482 drivers/net/wireless/intel/iwlegacy/commands.h u8 key[16]; key 654 drivers/net/wireless/intel/iwlegacy/common.h u8 key[32]; key 346 drivers/net/wireless/intel/iwlwifi/dvm/agn.h struct ieee80211_key_conf *key); key 349 drivers/net/wireless/intel/iwlwifi/dvm/agn.h struct ieee80211_key_conf *key); key 353 drivers/net/wireless/intel/iwlwifi/dvm/agn.h struct ieee80211_key_conf *key, key 356 drivers/net/wireless/intel/iwlwifi/dvm/agn.h struct ieee80211_key_conf *key, key 839 drivers/net/wireless/intel/iwlwifi/dvm/commands.h u8 key[16]; /* 16-byte unicast decryption key */ key 895 drivers/net/wireless/intel/iwlwifi/dvm/commands.h struct iwl_keyinfo key; key 1018 drivers/net/wireless/intel/iwlwifi/dvm/commands.h u8 key[16]; key 1026 drivers/net/wireless/intel/iwlwifi/dvm/commands.h struct iwl_wep_key key[0]; key 1276 drivers/net/wireless/intel/iwlwifi/dvm/commands.h u8 key[16]; key 879 drivers/net/wireless/intel/iwlwifi/dvm/lib.c struct ieee80211_key_conf *key, key 896 drivers/net/wireless/intel/iwlwifi/dvm/lib.c if ((key->cipher == WLAN_CIPHER_SUITE_WEP40 || key 897 drivers/net/wireless/intel/iwlwifi/dvm/lib.c key->cipher == WLAN_CIPHER_SUITE_WEP104) && key 899 drivers/net/wireless/intel/iwlwifi/dvm/lib.c ret = iwl_set_default_wep_key(priv, ctx, key); key 901 drivers/net/wireless/intel/iwlwifi/dvm/lib.c ret = iwl_set_dynamic_key(priv, ctx, key, sta); key 908 drivers/net/wireless/intel/iwlwifi/dvm/lib.c switch (key->cipher) { key 918 drivers/net/wireless/intel/iwlwifi/dvm/lib.c pn64 = atomic64_read(&key->tx_pn); key 922 drivers/net/wireless/intel/iwlwifi/dvm/lib.c ieee80211_get_tkip_p1k_iv(key, seq.tkip.iv32, p1k); key 926 drivers/net/wireless/intel/iwlwifi/dvm/lib.c &key->key[NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY], key 943 drivers/net/wireless/intel/iwlwifi/dvm/lib.c ieee80211_get_key_rx_seq(key, i, &seq); key 951 drivers/net/wireless/intel/iwlwifi/dvm/lib.c ieee80211_get_tkip_rx_p1k(key, data->bssid, cur_rx_iv32, p1k); key 953 drivers/net/wireless/intel/iwlwifi/dvm/lib.c ieee80211_get_tkip_rx_p1k(key, data->bssid, key 958 drivers/net/wireless/intel/iwlwifi/dvm/lib.c &key->key[NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY], key 971 drivers/net/wireless/intel/iwlwifi/dvm/lib.c pn64 = atomic64_read(&key->tx_pn); key 983 drivers/net/wireless/intel/iwlwifi/dvm/lib.c ieee80211_get_key_rx_seq(key, i, &seq); key 603 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c struct ieee80211_key_conf *key) key 618 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c switch (key->cipher) { key 620 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; key 623 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 637 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) { key 638 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c key->hw_key_idx = WEP_INVALID_OFFSET; key 643 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c if (cmd == DISABLE_KEY && key->hw_key_idx == WEP_INVALID_OFFSET) key 657 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c if ((key->cipher == WLAN_CIPHER_SUITE_WEP40 || key 658 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c key->cipher == WLAN_CIPHER_SUITE_WEP104) && !sta) { key 663 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c key->hw_key_idx == IWLAGN_HW_KEY_DEFAULT; key 670 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c ret = iwl_set_default_wep_key(priv, vif_priv->ctx, key); key 673 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c ret = iwl_set_dynamic_key(priv, vif_priv->ctx, key, sta); key 680 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c key->hw_key_idx = WEP_INVALID_OFFSET; key 687 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c ret = iwl_remove_default_wep_key(priv, ctx, key); key 689 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c ret = iwl_remove_dynamic_key(priv, ctx, key, sta); key 960 drivers/net/wireless/intel/iwlwifi/dvm/sta.c wep_cmd->key[i].key_index = i; key 962 drivers/net/wireless/intel/iwlwifi/dvm/sta.c wep_cmd->key[i].key_offset = i; key 965 drivers/net/wireless/intel/iwlwifi/dvm/sta.c wep_cmd->key[i].key_offset = WEP_INVALID_OFFSET; key 968 drivers/net/wireless/intel/iwlwifi/dvm/sta.c wep_cmd->key[i].key_size = ctx->wep_keys[i].key_size; key 969 drivers/net/wireless/intel/iwlwifi/dvm/sta.c memcpy(&wep_cmd->key[i].key[3], ctx->wep_keys[i].key, key 1037 drivers/net/wireless/intel/iwlwifi/dvm/sta.c memcpy(&ctx->wep_keys[keyconf->keyidx].key, &keyconf->key, key 1101 drivers/net/wireless/intel/iwlwifi/dvm/sta.c memcpy(sta_cmd.key.key, keyconf->key, keyconf->keylen); key 1105 drivers/net/wireless/intel/iwlwifi/dvm/sta.c sta_cmd.key.tkip_rx_tsc_byte2 = tkip_iv32; key 1107 drivers/net/wireless/intel/iwlwifi/dvm/sta.c sta_cmd.key.tkip_rx_ttak[i] = cpu_to_le16(tkip_p1k[i]); key 1108 drivers/net/wireless/intel/iwlwifi/dvm/sta.c memcpy(sta_cmd.key.key, keyconf->key, keyconf->keylen); key 1115 drivers/net/wireless/intel/iwlwifi/dvm/sta.c memcpy(&sta_cmd.key.key[3], keyconf->key, keyconf->keylen); key 1126 drivers/net/wireless/intel/iwlwifi/dvm/sta.c sta_cmd.key.key_offset = keyconf->hw_key_idx; key 1128 drivers/net/wireless/intel/iwlwifi/dvm/sta.c sta_cmd.key.key_flags = key_flags; key 1195 drivers/net/wireless/intel/iwlwifi/dvm/sta.c sta_cmd.key.key_flags = key_flags; key 1196 drivers/net/wireless/intel/iwlwifi/dvm/sta.c sta_cmd.key.key_offset = keyconf->hw_key_idx; key 201 drivers/net/wireless/intel/iwlwifi/dvm/tx.c memcpy(tx_cmd->key, keyconf->key, keyconf->keylen); key 208 drivers/net/wireless/intel/iwlwifi/dvm/tx.c ieee80211_get_tkip_p2k(keyconf, skb_frag, tx_cmd->key); key 218 drivers/net/wireless/intel/iwlwifi/dvm/tx.c memcpy(&tx_cmd->key[3], keyconf->key, keyconf->keylen); key 540 drivers/net/wireless/intel/iwlwifi/fw/api/d3.h u8 key[WOWLAN_KEY_MAX_SIZE]; key 561 drivers/net/wireless/intel/iwlwifi/fw/api/d3.h u8 key[WOWLAN_KEY_MAX_SIZE]; key 315 drivers/net/wireless/intel/iwlwifi/fw/api/nvm-reg.h __le32 key; key 268 drivers/net/wireless/intel/iwlwifi/fw/api/sta.h u8 key[16]; key 446 drivers/net/wireless/intel/iwlwifi/fw/api/sta.h u8 key[32]; key 548 drivers/net/wireless/intel/iwlwifi/fw/api/sta.h u8 key[16]; key 285 drivers/net/wireless/intel/iwlwifi/fw/api/tx.h u8 key[16]; key 156 drivers/net/wireless/intel/iwlwifi/iwl-trans.c static int iwl_hcmd_names_cmp(const void *key, const void *elt) key 159 drivers/net/wireless/intel/iwlwifi/iwl-trans.c u8 cmd1 = *(u8 *)key; key 139 drivers/net/wireless/intel/iwlwifi/mvm/d3.c static const u8 *iwl_mvm_find_max_pn(struct ieee80211_key_conf *key, key 148 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ieee80211_get_key_rx_seq(key, tid, seq); key 171 drivers/net/wireless/intel/iwlwifi/mvm/d3.c struct ieee80211_key_conf *key, key 186 drivers/net/wireless/intel/iwlwifi/mvm/d3.c switch (key->cipher) { key 199 drivers/net/wireless/intel/iwlwifi/mvm/d3.c .wep_key.key_index = key->keyidx, key 200 drivers/net/wireless/intel/iwlwifi/mvm/d3.c .wep_key.key_size = key->keylen, key 208 drivers/net/wireless/intel/iwlwifi/mvm/d3.c if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) key 211 drivers/net/wireless/intel/iwlwifi/mvm/d3.c memcpy(&wkc.wep_key.key[3], key->key, key->keylen); key 212 drivers/net/wireless/intel/iwlwifi/mvm/d3.c if (key->keyidx == mvmvif->tx_key_idx) { key 227 drivers/net/wireless/intel/iwlwifi/mvm/d3.c mvm->ptk_ivlen = key->iv_len; key 228 drivers/net/wireless/intel/iwlwifi/mvm/d3.c mvm->ptk_icvlen = key->icv_len; key 229 drivers/net/wireless/intel/iwlwifi/mvm/d3.c mvm->gtk_ivlen = key->iv_len; key 230 drivers/net/wireless/intel/iwlwifi/mvm/d3.c mvm->gtk_icvlen = key->icv_len; key 258 drivers/net/wireless/intel/iwlwifi/mvm/d3.c pn64 = atomic64_read(&key->tx_pn); key 262 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ieee80211_get_tkip_p1k_iv(key, TKIP_PN_TO_IV32(pn64), key 267 drivers/net/wireless/intel/iwlwifi/mvm/d3.c &key->key[NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY], key 284 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ieee80211_get_key_rx_seq(key, i, &seq); key 292 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ieee80211_get_tkip_rx_p1k(key, vif->bss_conf.bssid, key 295 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ieee80211_get_tkip_rx_p1k(key, vif->bss_conf.bssid, key 300 drivers/net/wireless/intel/iwlwifi/mvm/d3.c &key->key[NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY], key 313 drivers/net/wireless/intel/iwlwifi/mvm/d3.c pn64 = atomic64_read(&key->tx_pn); key 330 drivers/net/wireless/intel/iwlwifi/mvm/d3.c mvmsta->ptk_pn[key->keyidx], key 336 drivers/net/wireless/intel/iwlwifi/mvm/d3.c pn = iwl_mvm_find_max_pn(key, ptk_pn, &seq, i, key 349 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ieee80211_get_key_rx_seq(key, i, &seq); key 368 drivers/net/wireless/intel/iwlwifi/mvm/d3.c if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) { key 369 drivers/net/wireless/intel/iwlwifi/mvm/d3.c mvm->ptk_ivlen = key->iv_len; key 370 drivers/net/wireless/intel/iwlwifi/mvm/d3.c mvm->ptk_icvlen = key->icv_len; key 371 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ret = iwl_mvm_set_sta_key(mvm, vif, sta, key, 0); key 379 drivers/net/wireless/intel/iwlwifi/mvm/d3.c mvm->gtk_ivlen = key->iv_len; key 380 drivers/net/wireless/intel/iwlwifi/mvm/d3.c mvm->gtk_icvlen = key->icv_len; key 381 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ret = iwl_mvm_set_sta_key(mvm, vif, sta, key, 1); key 1277 drivers/net/wireless/intel/iwlwifi/mvm/d3.c struct ieee80211_key_conf *key) key 1289 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ptk_pn = rcu_dereference_protected(mvmsta->ptk_pn[key->keyidx], key 1299 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ieee80211_set_key_rx_seq(key, tid, &seq); key 1309 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ieee80211_set_key_rx_seq(key, tid, &seq); key 1315 drivers/net/wireless/intel/iwlwifi/mvm/d3.c struct ieee80211_key_conf *key) key 1325 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ieee80211_set_key_rx_seq(key, tid, &seq); key 1330 drivers/net/wireless/intel/iwlwifi/mvm/d3.c struct ieee80211_key_conf *key, key 1335 drivers/net/wireless/intel/iwlwifi/mvm/d3.c switch (key->cipher) { key 1337 drivers/net/wireless/intel/iwlwifi/mvm/d3.c iwl_mvm_set_aes_rx_seq(mvm, rsc->aes.multicast_rsc, NULL, key); key 1340 drivers/net/wireless/intel/iwlwifi/mvm/d3.c iwl_mvm_set_tkip_rx_seq(rsc->tkip.multicast_rsc, key); key 1359 drivers/net/wireless/intel/iwlwifi/mvm/d3.c struct ieee80211_key_conf *key, key 1367 drivers/net/wireless/intel/iwlwifi/mvm/d3.c switch (key->cipher) { key 1396 drivers/net/wireless/intel/iwlwifi/mvm/d3.c switch (key->cipher) { key 1399 drivers/net/wireless/intel/iwlwifi/mvm/d3.c sta, key); key 1400 drivers/net/wireless/intel/iwlwifi/mvm/d3.c atomic64_set(&key->tx_pn, le64_to_cpu(sc->aes.tsc.pn)); key 1404 drivers/net/wireless/intel/iwlwifi/mvm/d3.c iwl_mvm_set_tkip_rx_seq(sc->tkip.unicast_rsc, key); key 1405 drivers/net/wireless/intel/iwlwifi/mvm/d3.c atomic64_set(&key->tx_pn, key 1416 drivers/net/wireless/intel/iwlwifi/mvm/d3.c data->last_gtk = key; key 1417 drivers/net/wireless/intel/iwlwifi/mvm/d3.c data->cipher = key->cipher; key 1422 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ieee80211_remove_key(key); key 1423 drivers/net/wireless/intel/iwlwifi/mvm/d3.c else if (data->last_gtk == key) key 1424 drivers/net/wireless/intel/iwlwifi/mvm/d3.c iwl_mvm_set_key_rx_seq(data->mvm, key, data->status); key 1467 drivers/net/wireless/intel/iwlwifi/mvm/d3.c struct ieee80211_key_conf *key; key 1470 drivers/net/wireless/intel/iwlwifi/mvm/d3.c u8 key[32]; key 1481 drivers/net/wireless/intel/iwlwifi/mvm/d3.c memcpy(conf.conf.key, status->gtk[0].key, key 1486 drivers/net/wireless/intel/iwlwifi/mvm/d3.c memcpy(conf.conf.key, status->gtk[0].key, 16); key 1488 drivers/net/wireless/intel/iwlwifi/mvm/d3.c memcpy(conf.conf.key + key 1494 drivers/net/wireless/intel/iwlwifi/mvm/d3.c key = ieee80211_gtk_rekey_add(vif, &conf.conf); key 1495 drivers/net/wireless/intel/iwlwifi/mvm/d3.c if (IS_ERR(key)) key 1497 drivers/net/wireless/intel/iwlwifi/mvm/d3.c iwl_mvm_set_key_rx_seq(mvm, key, status); key 1558 drivers/net/wireless/intel/iwlwifi/mvm/d3.c sizeof(status->gtk[0].key)); key 1563 drivers/net/wireless/intel/iwlwifi/mvm/d3.c memcpy(status->gtk[0].key, v6->gtk.decrypt_key, key 212 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c struct ieee80211_key_conf *key); key 2505 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c struct ieee80211_key_conf *key = mvmvif->ap_early_keys[i]; key 2507 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c if (!key) key 2512 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c ret = __iwl_mvm_mac_set_key(hw, SET_KEY, vif, NULL, key); key 3321 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c struct ieee80211_key_conf *key) key 3327 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c int keyidx = key->keyidx; key 3336 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c switch (key->cipher) { key 3339 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; key 3340 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->flags |= IEEE80211_KEY_FLAG_PUT_IV_SPACE; key 3342 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->flags |= IEEE80211_KEY_FLAG_PUT_MIC_SPACE; key 3352 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->flags |= IEEE80211_KEY_FLAG_PUT_IV_SPACE; key 3370 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c hw->cipher_schemes->cipher == key->cipher) key 3371 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->flags |= IEEE80211_KEY_FLAG_PUT_IV_SPACE; key 3386 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c if (key->cipher == WLAN_CIPHER_SUITE_AES_CMAC || key 3387 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_128 || key 3388 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256) key 3393 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c if (key->cipher != WLAN_CIPHER_SUITE_GCMP && key 3394 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->cipher != WLAN_CIPHER_SUITE_GCMP_256 && key 3396 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->hw_key_idx = STA_KEY_IDX_INVALID; key 3405 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c mvmvif->ap_early_keys[i] = key; key 3421 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->hw_key_idx == STA_KEY_IDX_INVALID) { key 3430 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->flags & IEEE80211_KEY_FLAG_PAIRWISE && key 3431 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c (key->cipher == WLAN_CIPHER_SUITE_CCMP || key 3432 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->cipher == WLAN_CIPHER_SUITE_GCMP || key 3433 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->cipher == WLAN_CIPHER_SUITE_GCMP_256)) { key 3448 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c ieee80211_get_key_rx_seq(key, tid, &seq); key 3460 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key_offset = key->hw_key_idx; key 3465 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c ret = iwl_mvm_set_sta_key(mvm, vif, sta, key, key_offset); key 3468 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->hw_key_idx = STA_KEY_IDX_INVALID; key 3485 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c if (mvmvif->ap_early_keys[i] == key) { key 3495 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c if (key->hw_key_idx == STA_KEY_IDX_INVALID) { key 3501 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->flags & IEEE80211_KEY_FLAG_PAIRWISE && key 3502 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c (key->cipher == WLAN_CIPHER_SUITE_CCMP || key 3503 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->cipher == WLAN_CIPHER_SUITE_GCMP || key 3504 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->cipher == WLAN_CIPHER_SUITE_GCMP_256)) { key 3515 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c ret = iwl_mvm_remove_sta_key(mvm, vif, sta, key); key 3528 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c struct ieee80211_key_conf *key) key 3534 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c ret = __iwl_mvm_mac_set_key(hw, cmd, vif, sta, key); key 1543 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h memcpy(tx_cmd->key, keyconf->key, keyconf->keylen); key 3197 drivers/net/wireless/intel/iwlwifi/mvm/sta.c struct ieee80211_key_conf *key, bool mcast, key 3217 drivers/net/wireless/intel/iwlwifi/mvm/sta.c keyidx = (key->keyidx << STA_KEY_FLG_KEYID_POS) & key 3222 drivers/net/wireless/intel/iwlwifi/mvm/sta.c switch (key->cipher) { key 3227 drivers/net/wireless/intel/iwlwifi/mvm/sta.c &key->key[NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY], key 3231 drivers/net/wireless/intel/iwlwifi/mvm/sta.c &key->key[NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY], key 3233 drivers/net/wireless/intel/iwlwifi/mvm/sta.c pn = atomic64_read(&key->tx_pn); key 3241 drivers/net/wireless/intel/iwlwifi/mvm/sta.c memcpy(u.cmd.common.key, key->key, key->keylen); key 3245 drivers/net/wireless/intel/iwlwifi/mvm/sta.c memcpy(u.cmd.common.key, key->key, key->keylen); key 3247 drivers/net/wireless/intel/iwlwifi/mvm/sta.c pn = atomic64_read(&key->tx_pn); key 3254 drivers/net/wireless/intel/iwlwifi/mvm/sta.c memcpy(u.cmd.common.key + 3, key->key, key->keylen); key 3261 drivers/net/wireless/intel/iwlwifi/mvm/sta.c memcpy(u.cmd.common.key, key->key, key->keylen); key 3263 drivers/net/wireless/intel/iwlwifi/mvm/sta.c pn = atomic64_read(&key->tx_pn); key 3267 drivers/net/wireless/intel/iwlwifi/mvm/sta.c memcpy(u.cmd.common.key, key->key, key->keylen); key 3350 drivers/net/wireless/intel/iwlwifi/mvm/sta.c memcpy(igtk_cmd.igtk, keyconf->key, keyconf->keylen); key 454 drivers/net/wireless/intel/iwlwifi/mvm/tx.c ieee80211_get_tkip_p2k(keyconf, skb_frag, tx_cmd->key); key 465 drivers/net/wireless/intel/iwlwifi/mvm/tx.c memcpy(&tx_cmd->key[3], keyconf->key, keyconf->keylen); key 479 drivers/net/wireless/intel/iwlwifi/mvm/tx.c tx_cmd->key[0] = keyconf->hw_key_idx; key 1218 drivers/net/wireless/intersil/hostap/hostap_ap.c u8 key[WEP_KEY_LEN]; key 1219 drivers/net/wireless/intersil/hostap/hostap_ap.c get_random_bytes(key, WEP_KEY_LEN); key 1220 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt->set_key(key, WEP_KEY_LEN, NULL, key 381 drivers/net/wireless/intersil/hostap/hostap_common.h u8 key[0]; key 229 drivers/net/wireless/intersil/hostap/hostap_ioctl.c struct iw_point *erq, char *key) key 267 drivers/net/wireless/intersil/hostap/hostap_ioctl.c len = crypt->ops->get_key(key, WEP_KEY_LEN, NULL, crypt->priv); key 3322 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, key 3422 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (*crypt)->ops->get_key(ext->key, key 3453 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (int) ((char *) param->u.crypt.key - (char *) param) + key 3531 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (*crypt)->ops->set_key(param->u.crypt.key, key 3586 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (int) ((char *) param->u.crypt.key - (char *) param); key 3618 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (*crypt)->ops->get_key(param->u.crypt.key, key 690 drivers/net/wireless/intersil/orinoco/hw.c int orinoco_hw_get_tkip_iv(struct orinoco_private *priv, int key, u8 *tsc) key 696 drivers/net/wireless/intersil/orinoco/hw.c if ((key < 0) || (key >= 4)) key 702 drivers/net/wireless/intersil/orinoco/hw.c memcpy(tsc, &tsc_arr[key][0], sizeof(tsc_arr[0])); key 834 drivers/net/wireless/intersil/orinoco/hw.c memcpy(&keys[i].data, priv->keys[i].key, len); key 877 drivers/net/wireless/intersil/orinoco/hw.c u8 key[LARGE_KEY_SIZE] = { 0 }; key 879 drivers/net/wireless/intersil/orinoco/hw.c memcpy(key, priv->keys[i].key, key 885 drivers/net/wireless/intersil/orinoco/hw.c key); key 991 drivers/net/wireless/intersil/orinoco/hw.c int set_tx, const u8 *key, const u8 *rsc, key 997 drivers/net/wireless/intersil/orinoco/hw.c u8 key[TKIP_KEYLEN]; key 1014 drivers/net/wireless/intersil/orinoco/hw.c memcpy(buf.key, key, key 1015 drivers/net/wireless/intersil/orinoco/hw.c sizeof(buf.key) + sizeof(buf.tx_mic) + sizeof(buf.rx_mic)); key 34 drivers/net/wireless/intersil/orinoco/hw.h int orinoco_hw_get_tkip_iv(struct orinoco_private *priv, int key, u8 *tsc); key 41 drivers/net/wireless/intersil/orinoco/hw.h int set_tx, const u8 *key, const u8 *rsc, key 362 drivers/net/wireless/intersil/orinoco/main.c struct orinoco_tkip_key *key; key 366 drivers/net/wireless/intersil/orinoco/main.c key = (struct orinoco_tkip_key *) priv->keys[priv->tx_key].key; key 369 drivers/net/wireless/intersil/orinoco/main.c (key != NULL)); key 415 drivers/net/wireless/intersil/orinoco/main.c orinoco_mic(priv->tx_tfm_mic, key->tx_mic, key 961 drivers/net/wireless/intersil/orinoco/main.c struct orinoco_tkip_key *key; key 975 drivers/net/wireless/intersil/orinoco/main.c key = (struct orinoco_tkip_key *) priv->keys[key_id].key; key 977 drivers/net/wireless/intersil/orinoco/main.c if (!key) { key 984 drivers/net/wireless/intersil/orinoco/main.c orinoco_mic(priv->rx_tfm_mic, key->rx_mic, desc->addr1, src, key 46 drivers/net/wireless/intersil/orinoco/mic.c int orinoco_mic(struct crypto_shash *tfm_michael, u8 *key, key 69 drivers/net/wireless/intersil/orinoco/mic.c err = crypto_shash_setkey(tfm_michael, key, MIC_KEYLEN); key 19 drivers/net/wireless/intersil/orinoco/mic.h int orinoco_mic(struct crypto_shash *tfm_michael, u8 *key, key 31 drivers/net/wireless/intersil/orinoco/wext.c enum orinoco_alg alg, const u8 *key, int key_len, key 34 drivers/net/wireless/intersil/orinoco/wext.c kzfree(priv->keys[index].key); key 38 drivers/net/wireless/intersil/orinoco/wext.c priv->keys[index].key = kzalloc(key_len, GFP_ATOMIC); key 39 drivers/net/wireless/intersil/orinoco/wext.c if (!priv->keys[index].key) key 42 drivers/net/wireless/intersil/orinoco/wext.c priv->keys[index].key = NULL; key 55 drivers/net/wireless/intersil/orinoco/wext.c memcpy((void *)priv->keys[index].key, key, key_len); key 78 drivers/net/wireless/intersil/orinoco/wext.c kfree(priv->keys[index].key); key 79 drivers/net/wireless/intersil/orinoco/wext.c priv->keys[index].key = NULL; key 356 drivers/net/wireless/intersil/orinoco/wext.c memcpy(keybuf, priv->keys[index].key, erq->length); key 772 drivers/net/wireless/intersil/orinoco/wext.c ext->key, ext->key_len, NULL, 0); key 789 drivers/net/wireless/intersil/orinoco/wext.c ext->key, ext->key_len, tkip_iv, key 794 drivers/net/wireless/intersil/orinoco/wext.c priv->keys[idx].key, key 853 drivers/net/wireless/intersil/orinoco/wext.c memcpy(ext->key, priv->keys[idx].key, ext->key_len); key 859 drivers/net/wireless/intersil/orinoco/wext.c memcpy(ext->key, priv->keys[idx].key, ext->key_len); key 653 drivers/net/wireless/intersil/p54/fwio.c u8 *addr, u8* key) key 676 drivers/net/wireless/intersil/p54/fwio.c memcpy(rxkey->key, key, rxkey->key_len); key 681 drivers/net/wireless/intersil/p54/fwio.c memcpy(rxkey->key, key, 16); key 682 drivers/net/wireless/intersil/p54/fwio.c memcpy(&(rxkey->key[16]), &(key key 688 drivers/net/wireless/intersil/p54/fwio.c memset(rxkey->key, 0, sizeof(rxkey->key)); key 253 drivers/net/wireless/intersil/p54/lmac.h u8 key[16]; key 443 drivers/net/wireless/intersil/p54/lmac.h u8 key[24]; key 549 drivers/net/wireless/intersil/p54/lmac.h u8 idx, u8 len, u8 *addr, u8* key); key 499 drivers/net/wireless/intersil/p54/main.c struct ieee80211_key_conf *key) key 509 drivers/net/wireless/intersil/p54/main.c if (key->flags & IEEE80211_KEY_FLAG_RX_MGMT) { key 522 drivers/net/wireless/intersil/p54/main.c switch (key->cipher) { key 529 drivers/net/wireless/intersil/p54/main.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 538 drivers/net/wireless/intersil/p54/main.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 546 drivers/net/wireless/intersil/p54/main.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 567 drivers/net/wireless/intersil/p54/main.c key->hw_key_idx = 0xff; key 571 drivers/net/wireless/intersil/p54/main.c key->flags |= IEEE80211_KEY_FLAG_RESERVE_TAILROOM; key 573 drivers/net/wireless/intersil/p54/main.c slot = key->hw_key_idx; key 588 drivers/net/wireless/intersil/p54/main.c ret = p54_upload_key(priv, algo, slot, key->keyidx, key 589 drivers/net/wireless/intersil/p54/main.c key->keylen, addr, key->key); key 596 drivers/net/wireless/intersil/p54/main.c key->hw_key_idx = slot; key 910 drivers/net/wireless/intersil/p54/txrx.c memcpy(txhdr->key, info->control.hw_key->key, txhdr->key_len); key 915 drivers/net/wireless/intersil/p54/txrx.c &(info->control.hw_key->key[NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY]), key 1072 drivers/net/wireless/intersil/prism54/isl_ioctl.c struct obj_key key = { DOT11_PRIV_WEP, 0, "" }; key 1085 drivers/net/wireless/intersil/prism54/isl_ioctl.c key.type = DOT11_PRIV_TKIP; key 1086 drivers/net/wireless/intersil/prism54/isl_ioctl.c key.length = KEY_SIZE_TKIP; key 1089 drivers/net/wireless/intersil/prism54/isl_ioctl.c key.length = KEY_SIZE_WEP104; key 1092 drivers/net/wireless/intersil/prism54/isl_ioctl.c key.length = KEY_SIZE_WEP40; key 1094 drivers/net/wireless/intersil/prism54/isl_ioctl.c memset(key.key, 0, sizeof (key.key)); key 1095 drivers/net/wireless/intersil/prism54/isl_ioctl.c memcpy(key.key, extra, dwrq->length); key 1104 drivers/net/wireless/intersil/prism54/isl_ioctl.c &key); key 1111 drivers/net/wireless/intersil/prism54/isl_ioctl.c if ((index == current_index) && (key.length > 0)) key 1161 drivers/net/wireless/intersil/prism54/isl_ioctl.c struct obj_key *key; key 1194 drivers/net/wireless/intersil/prism54/isl_ioctl.c key = r.ptr; key 1195 drivers/net/wireless/intersil/prism54/isl_ioctl.c dwrq->length = key->length; key 1196 drivers/net/wireless/intersil/prism54/isl_ioctl.c memcpy(extra, key->key, dwrq->length); key 1197 drivers/net/wireless/intersil/prism54/isl_ioctl.c kfree(key); key 1577 drivers/net/wireless/intersil/prism54/isl_ioctl.c struct obj_key key = { DOT11_PRIV_WEP, 0, "" }; key 1587 drivers/net/wireless/intersil/prism54/isl_ioctl.c key.length = KEY_SIZE_WEP104; key 1589 drivers/net/wireless/intersil/prism54/isl_ioctl.c key.length = KEY_SIZE_WEP40; key 1596 drivers/net/wireless/intersil/prism54/isl_ioctl.c key.type = DOT11_PRIV_TKIP; key 1597 drivers/net/wireless/intersil/prism54/isl_ioctl.c key.length = KEY_SIZE_TKIP; key 1603 drivers/net/wireless/intersil/prism54/isl_ioctl.c if (key.length) { key 1604 drivers/net/wireless/intersil/prism54/isl_ioctl.c memset(key.key, 0, sizeof(key.key)); key 1605 drivers/net/wireless/intersil/prism54/isl_ioctl.c memcpy(key.key, ext->key, ext->key_len); key 1607 drivers/net/wireless/intersil/prism54/isl_ioctl.c &key); key 1711 drivers/net/wireless/intersil/prism54/isl_ioctl.c struct obj_key *key; key 1716 drivers/net/wireless/intersil/prism54/isl_ioctl.c key = r.ptr; key 1717 drivers/net/wireless/intersil/prism54/isl_ioctl.c if (max_key_len < key->length) { key 1721 drivers/net/wireless/intersil/prism54/isl_ioctl.c memcpy(ext->key, key->key, key->length); key 1722 drivers/net/wireless/intersil/prism54/isl_ioctl.c ext->key_len = key->length; key 1724 drivers/net/wireless/intersil/prism54/isl_ioctl.c switch (key->type) { key 24 drivers/net/wireless/intersil/prism54/isl_oid.h char key[32]; key 861 drivers/net/wireless/intersil/prism54/oid_mgt.c struct obj_key *key = r->ptr; key 865 drivers/net/wireless/intersil/prism54/oid_mgt.c key->type, key->length); key 866 drivers/net/wireless/intersil/prism54/oid_mgt.c for (i = 0; i < key->length; i++) key 868 drivers/net/wireless/intersil/prism54/oid_mgt.c "%02X:", key->key[i]); key 976 drivers/net/wireless/marvell/libertas/cfg.c const u8 *key, u16 key_len) key 1004 drivers/net/wireless/marvell/libertas/cfg.c if (key && key_len) key 1005 drivers/net/wireless/marvell/libertas/cfg.c memcpy(cmd.param.key, key, key_len); key 1342 drivers/net/wireless/marvell/libertas/cfg.c memcpy(priv->wep_key[sme->key_idx], sme->key, sme->key_len); key 1477 drivers/net/wireless/marvell/libertas/cfg.c params->key, params->key_len); key 1490 drivers/net/wireless/marvell/libertas/cfg.c params->key, params->key_len) != 0) { key 1493 drivers/net/wireless/marvell/libertas/cfg.c params->key, params->key_len); key 1508 drivers/net/wireless/marvell/libertas/cfg.c params->key, params->key_len); key 377 drivers/net/wireless/marvell/libertas/host.h u8 key[32]; key 823 drivers/net/wireless/marvell/libertas/host.h u8 key[32]; key 486 drivers/net/wireless/marvell/mwifiex/cfg80211.c if (params->key && params->key_len) { key 489 drivers/net/wireless/marvell/mwifiex/cfg80211.c memcpy(wep_key->key_material, params->key, key 498 drivers/net/wireless/marvell/mwifiex/cfg80211.c if (mwifiex_set_encode(priv, params, params->key, params->key_len, key 2261 drivers/net/wireless/marvell/mwifiex/cfg80211.c if (sme->key) { key 2267 drivers/net/wireless/marvell/mwifiex/cfg80211.c ret = mwifiex_set_encode(priv, NULL, sme->key, key 932 drivers/net/wireless/marvell/mwifiex/fw.h u8 key[50]; key 939 drivers/net/wireless/marvell/mwifiex/fw.h u8 key[WLAN_KEY_LEN_AES_CMAC]; key 944 drivers/net/wireless/marvell/mwifiex/fw.h u8 key[WLAN_KEY_LEN_WEP104]; key 950 drivers/net/wireless/marvell/mwifiex/fw.h u8 key[WLAN_KEY_LEN_TKIP]; key 956 drivers/net/wireless/marvell/mwifiex/fw.h u8 key[WLAN_KEY_LEN_CCMP]; key 962 drivers/net/wireless/marvell/mwifiex/fw.h u8 key[WLAN_KEY_LEN_SMS4]; key 968 drivers/net/wireless/marvell/mwifiex/fw.h u8 key[WLAN_KEY_LEN_AES_CMAC]; key 1966 drivers/net/wireless/marvell/mwifiex/fw.h u8 key[1]; key 79 drivers/net/wireless/marvell/mwifiex/ioctl.h u8 key[WLAN_KEY_LEN_WEP104]; key 1508 drivers/net/wireless/marvell/mwifiex/main.h const u8 *key, int key_len, u8 key_index, key 101 drivers/net/wireless/marvell/mwifiex/scan.c has_ieee_hdr(struct ieee_types_generic *ie, u8 key) key 103 drivers/net/wireless/marvell/mwifiex/scan.c return (ie && ie->ieee_hdr.element_id == key); key 107 drivers/net/wireless/marvell/mwifiex/scan.c has_vendor_hdr(struct ieee_types_vendor_specific *ie, u8 key) key 109 drivers/net/wireless/marvell/mwifiex/scan.c return (ie && ie->vend_hdr.element_id == key); key 556 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_param_set->key[0] = i; key 561 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_param_set->key[1] = 1; key 563 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_param_set->key[1] = 0; key 564 drivers/net/wireless/marvell/mwifiex/sta_cmd.c memmove(&key_param_set->key[2], key 611 drivers/net/wireless/marvell/mwifiex/sta_cmd.c memcpy(km->key_param_set.key_params.cmac_aes.key, key 628 drivers/net/wireless/marvell/mwifiex/sta_cmd.c memcpy(km->key_param_set.key_params.aes.key, key 737 drivers/net/wireless/marvell/mwifiex/sta_cmd.c memcpy(km->key_param_set.key_params.wep.key, key 757 drivers/net/wireless/marvell/mwifiex/sta_cmd.c memcpy(km->key_param_set.key_params.wapi.key, key 799 drivers/net/wireless/marvell/mwifiex/sta_cmd.c memcpy(km->key_param_set.key_params.tkip.key, key 866 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_material->key_param_set.key[0] = enc_key->key_index; key 868 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_material->key_param_set.key[1] = 1; key 871 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_material->key_param_set.key[1] = 0; key 887 drivers/net/wireless/marvell/mwifiex/sta_cmd.c memcpy(&key_material->key_param_set.key[2], key 889 drivers/net/wireless/marvell/mwifiex/sta_cmd.c memcpy(&key_material->key_param_set.key[2 + enc_key->key_len], key 954 drivers/net/wireless/marvell/mwifiex/sta_cmd.c memcpy(key_material->key_param_set.key, enc_key->key_material, key 966 drivers/net/wireless/marvell/mwifiex/sta_cmd.c (void *)key_material->key_param_set.key; key 969 drivers/net/wireless/marvell/mwifiex/sta_cmd.c memcpy(param->key, enc_key->key_material, key 581 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c struct host_cmd_ds_802_11_key_material *key = key 584 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c if (le16_to_cpu(key->action) == HostCmd_ACT_GEN_SET) { key 585 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c if ((le16_to_cpu(key->key_param_set.key_info) & KEY_MCAST)) { key 594 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c memset(priv->aes_key.key_param_set.key, 0, key 595 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c sizeof(key->key_param_set.key)); key 596 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c priv->aes_key.key_param_set.key_len = key->key_param_set.key_len; key 597 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c memcpy(priv->aes_key.key_param_set.key, key->key_param_set.key, key 628 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c memset(priv->aes_key_v2.key_param_set.key_params.aes.key, 0, key 633 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c memcpy(priv->aes_key_v2.key_param_set.key_params.aes.key, key 634 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c key_v2->key_param_set.key_params.aes.key, le16_to_cpu(len)); key 1031 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c memcpy(ibss_key->key_param_set.key, encrypt_key->key_material, key 1109 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c const u8 *key, int key_len, u8 key_index, key 1123 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c memcpy(encrypt_key.key_material, key, key_len); key 135 drivers/net/wireless/marvell/mwifiex/uap_cmd.c memcpy(&bss_config->wep_cfg[i].key, key 439 drivers/net/wireless/marvell/mwifiex/uap_cmd.c memcpy(wep_key->key, bss_cfg->wep_cfg[i].key, key 322 drivers/net/wireless/marvell/mwl8k.c u8 key[sizeof(struct ieee80211_key_conf) + MAX_WEP_KEY_LEN]; key 4284 drivers/net/wireless/marvell/mwl8k.c struct ieee80211_key_conf *key) key 4290 drivers/net/wireless/marvell/mwl8k.c cmd->key_id = cpu_to_le32(key->keyidx); key 4291 drivers/net/wireless/marvell/mwl8k.c cmd->key_len = cpu_to_le16(key->keylen); key 4294 drivers/net/wireless/marvell/mwl8k.c switch (key->cipher) { key 4298 drivers/net/wireless/marvell/mwl8k.c if (key->keyidx == 0) key 4304 drivers/net/wireless/marvell/mwl8k.c cmd->key_info = (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) key 4312 drivers/net/wireless/marvell/mwl8k.c cmd->key_info = (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) key 4326 drivers/net/wireless/marvell/mwl8k.c struct ieee80211_key_conf *key) key 4339 drivers/net/wireless/marvell/mwl8k.c rc = mwl8k_encryption_set_cmd_info(cmd, addr, key); key 4343 drivers/net/wireless/marvell/mwl8k.c idx = key->keyidx; key 4345 drivers/net/wireless/marvell/mwl8k.c if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) key 4350 drivers/net/wireless/marvell/mwl8k.c switch (key->cipher) { key 4354 drivers/net/wireless/marvell/mwl8k.c memcpy(mwl8k_vif->wep_key_conf[idx].key, key, key 4355 drivers/net/wireless/marvell/mwl8k.c sizeof(*key) + key->keylen); key 4359 drivers/net/wireless/marvell/mwl8k.c keymlen = key->keylen; key 4366 drivers/net/wireless/marvell/mwl8k.c keymlen = key->keylen; key 4373 drivers/net/wireless/marvell/mwl8k.c memcpy(cmd->key_material, key->key, keymlen); key 4386 drivers/net/wireless/marvell/mwl8k.c struct ieee80211_key_conf *key) key 4396 drivers/net/wireless/marvell/mwl8k.c rc = mwl8k_encryption_set_cmd_info(cmd, addr, key); key 4400 drivers/net/wireless/marvell/mwl8k.c if (key->cipher == WLAN_CIPHER_SUITE_WEP40 || key 4401 drivers/net/wireless/marvell/mwl8k.c key->cipher == WLAN_CIPHER_SUITE_WEP104) key 4402 drivers/net/wireless/marvell/mwl8k.c mwl8k_vif->wep_key_conf[key->keyidx].enabled = 0; key 4417 drivers/net/wireless/marvell/mwl8k.c struct ieee80211_key_conf *key) key 4434 drivers/net/wireless/marvell/mwl8k.c rc = mwl8k_cmd_encryption_set_key(hw, vif, addr, key); key 4438 drivers/net/wireless/marvell/mwl8k.c if ((key->cipher == WLAN_CIPHER_SUITE_WEP40) key 4439 drivers/net/wireless/marvell/mwl8k.c || (key->cipher == WLAN_CIPHER_SUITE_WEP104)) key 4452 drivers/net/wireless/marvell/mwl8k.c rc = mwl8k_cmd_encryption_remove_key(hw, vif, addr, key); key 5337 drivers/net/wireless/marvell/mwl8k.c struct ieee80211_key_conf *key; key 5353 drivers/net/wireless/marvell/mwl8k.c key = IEEE80211_KEY_CONF(mwl8k_vif->wep_key_conf[i].key); key 5355 drivers/net/wireless/marvell/mwl8k.c mwl8k_set_key(hw, SET_KEY, vif, sta, key); key 466 drivers/net/wireless/mediatek/mt76/mac80211.c struct ieee80211_key_conf *key) key 473 drivers/net/wireless/mediatek/mt76/mac80211.c if (!key) key 476 drivers/net/wireless/mediatek/mt76/mac80211.c if (key->cipher != WLAN_CIPHER_SUITE_CCMP) key 481 drivers/net/wireless/mediatek/mt76/mac80211.c ieee80211_get_key_rx_seq(key, i, &seq); key 730 drivers/net/wireless/mediatek/mt76/mt76.h struct ieee80211_key_conf *key); key 721 drivers/net/wireless/mediatek/mt76/mt7603/mac.c mt7603_mac_get_key_info(struct ieee80211_key_conf *key, u8 *key_data) key 724 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (!key) key 727 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (key->keylen > 32) key 730 drivers/net/wireless/mediatek/mt76/mt7603/mac.c memcpy(key_data, key->key, key->keylen); key 732 drivers/net/wireless/mediatek/mt76/mt7603/mac.c switch (key->cipher) { key 739 drivers/net/wireless/mediatek/mt76/mt7603/mac.c memcpy(key_data + 16, key->key + 24, 8); key 740 drivers/net/wireless/mediatek/mt76/mt7603/mac.c memcpy(key_data + 24, key->key + 16, 8); key 750 drivers/net/wireless/mediatek/mt76/mt7603/mac.c struct ieee80211_key_conf *key) key 757 drivers/net/wireless/mediatek/mt76/mt7603/mac.c cipher = mt7603_mac_get_key_info(key, key_data); key 758 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (cipher == MT_CIPHER_NONE && key) key 761 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (key && (cipher == MT_CIPHER_WEP40 || cipher == MT_CIPHER_WEP104)) { key 762 drivers/net/wireless/mediatek/mt76/mt7603/mac.c addr += key->keyidx * 16; key 770 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (key) key 771 drivers/net/wireless/mediatek/mt76/mt7603/mac.c mt76_rmw_field(dev, addr, MT_WTBL1_W0_KEY_IDX, key->keyidx); key 772 drivers/net/wireless/mediatek/mt76/mt7603/mac.c mt76_rmw_field(dev, addr, MT_WTBL1_W0_RX_KEY_VALID, !!key); key 781 drivers/net/wireless/mediatek/mt76/mt7603/mac.c int pid, struct ieee80211_key_conf *key) key 832 drivers/net/wireless/mediatek/mt76/mt7603/mac.c FIELD_PREP(MT_TXD1_PROTECTED, !!key); key 894 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (key) { key 895 drivers/net/wireless/mediatek/mt76/mt7603/mac.c u64 pn = atomic64_inc_return(&key->tx_pn); key 915 drivers/net/wireless/mediatek/mt76/mt7603/mac.c struct ieee80211_key_conf *key = info->control.hw_key; key 941 drivers/net/wireless/mediatek/mt76/mt7603/mac.c sta, pid, key); key 451 drivers/net/wireless/mediatek/mt76/mt7603/main.c struct ieee80211_key_conf *key) key 458 drivers/net/wireless/mediatek/mt76/mt7603/main.c int idx = key->keyidx; key 461 drivers/net/wireless/mediatek/mt76/mt7603/main.c switch (key->cipher) { key 475 drivers/net/wireless/mediatek/mt76/mt7603/main.c (key->cipher == WLAN_CIPHER_SUITE_TKIP || key 476 drivers/net/wireless/mediatek/mt76/mt7603/main.c key->cipher == WLAN_CIPHER_SUITE_CCMP) && key 477 drivers/net/wireless/mediatek/mt76/mt7603/main.c !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) key 481 drivers/net/wireless/mediatek/mt76/mt7603/main.c key->hw_key_idx = wcid->idx; key 487 drivers/net/wireless/mediatek/mt76/mt7603/main.c key = NULL; key 489 drivers/net/wireless/mediatek/mt76/mt7603/main.c mt76_wcid_key_setup(&dev->mt76, wcid, key); key 491 drivers/net/wireless/mediatek/mt76/mt7603/main.c return mt7603_wtbl_set_key(dev, wcid->idx, key); key 220 drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h struct ieee80211_key_conf *key); key 308 drivers/net/wireless/mediatek/mt76/mt7615/mac.c struct ieee80211_key_conf *key) key 368 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (key) { key 370 drivers/net/wireless/mediatek/mt76/mt7615/mac.c key->cipher == WLAN_CIPHER_SUITE_AES_CMAC) { key 629 drivers/net/wireless/mediatek/mt76/mt7615/mac.c struct ieee80211_key_conf *key, key 636 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (key->keylen > sizeof(data)) key 643 drivers/net/wireless/mediatek/mt76/mt7615/mac.c memcpy(data + 16, key->key + 24, 8); key 644 drivers/net/wireless/mediatek/mt76/mt7615/mac.c memcpy(data + 24, key->key + 16, 8); key 649 drivers/net/wireless/mediatek/mt76/mt7615/mac.c memcpy(data, key->key, key->keylen); key 651 drivers/net/wireless/mediatek/mt76/mt7615/mac.c memcpy(data + 16, key->key, 16); key 729 drivers/net/wireless/mediatek/mt76/mt7615/mac.c struct ieee80211_key_conf *key, key 735 drivers/net/wireless/mediatek/mt76/mt7615/mac.c cipher = mt7615_mac_get_cipher(key->cipher); key 742 drivers/net/wireless/mediatek/mt76/mt7615/mac.c err = mt7615_mac_wtbl_update_key(dev, wcid, key, cipher, cmd); key 746 drivers/net/wireless/mediatek/mt76/mt7615/mac.c err = mt7615_mac_wtbl_update_pk(dev, wcid, cipher, key->keyidx, key 771 drivers/net/wireless/mediatek/mt76/mt7615/mac.c struct ieee80211_key_conf *key = info->control.hw_key; key 792 drivers/net/wireless/mediatek/mt76/mt7615/mac.c pid, key); key 807 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (!key) key 169 drivers/net/wireless/mediatek/mt76/mt7615/main.c struct ieee80211_key_conf *key) key 176 drivers/net/wireless/mediatek/mt76/mt7615/main.c int idx = key->keyidx; key 183 drivers/net/wireless/mediatek/mt76/mt7615/main.c (key->cipher == WLAN_CIPHER_SUITE_TKIP || key 184 drivers/net/wireless/mediatek/mt76/mt7615/main.c key->cipher == WLAN_CIPHER_SUITE_CCMP) && key 185 drivers/net/wireless/mediatek/mt76/mt7615/main.c !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) key 189 drivers/net/wireless/mediatek/mt76/mt7615/main.c switch (key->cipher) { key 191 drivers/net/wireless/mediatek/mt76/mt7615/main.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIE; key 207 drivers/net/wireless/mediatek/mt76/mt7615/main.c key->hw_key_idx = wcid->idx; key 213 drivers/net/wireless/mediatek/mt76/mt7615/main.c cmd == SET_KEY ? key : NULL); key 215 drivers/net/wireless/mediatek/mt76/mt7615/main.c return mt7615_mac_wtbl_set_key(dev, wcid, key, cmd); key 237 drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h struct ieee80211_key_conf *key); key 242 drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h struct ieee80211_key_conf *key, key 57 drivers/net/wireless/mediatek/mt76/mt76x0/pci.c struct ieee80211_key_conf *key) key 64 drivers/net/wireless/mediatek/mt76/mt76x0/pci.c return mt76x02_set_key(hw, cmd, vif, sta, key); key 152 drivers/net/wireless/mediatek/mt76/mt76x02.h struct ieee80211_key_conf *key); key 11 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c mt76x02_mac_get_key_info(struct ieee80211_key_conf *key, u8 *key_data) key 14 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (!key) key 17 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (key->keylen > 32) key 20 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c memcpy(key_data, key->key, key->keylen); key 22 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c switch (key->cipher) { key 37 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c u8 key_idx, struct ieee80211_key_conf *key) key 43 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c cipher = mt76x02_mac_get_key_info(key, key_data); key 44 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (cipher == MT_CIPHER_NONE && key) key 60 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c struct ieee80211_key_conf *key) key 67 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c cipher = mt76x02_mac_get_key_info(key, key_data); key 81 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c atomic64_set(&key->tx_pn, pn); key 85 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c struct ieee80211_key_conf *key) key 92 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c cipher = mt76x02_mac_get_key_info(key, key_data); key 93 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (cipher == MT_CIPHER_NONE && key) key 100 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (key) { key 102 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c !!(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)); key 104 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c pn = atomic64_read(&key->tx_pn); key 106 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c iv_data[3] = key->keyidx << 6; key 320 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c struct ieee80211_key_conf *key = info->control.hw_key; key 342 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (wcid && wcid->sw_iv && key) { key 343 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c u64 pn = atomic64_inc_return(&key->tx_pn); key 348 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c ccmp_pn[3] = 0x20 | (key->keyidx << 6); key 166 drivers/net/wireless/mediatek/mt76/mt76x02_mac.h u8 key_idx, struct ieee80211_key_conf *key); key 168 drivers/net/wireless/mediatek/mt76/mt76x02_mac.h struct ieee80211_key_conf *key); key 170 drivers/net/wireless/mediatek/mt76/mt76x02_mac.h struct ieee80211_key_conf *key); key 382 drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c struct ieee80211_key_conf *key, void *data) key 392 drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c if (wcid->hw_key_idx != key->keyidx || wcid->sw_iv) key 395 drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c mt76x02_mac_wcid_sync_pn(dev, wcid->idx, key); key 695 drivers/net/wireless/mediatek/mt76/mt76x02_regs.h u8 key[16]; key 410 drivers/net/wireless/mediatek/mt76/mt76x02_util.c struct ieee80211_key_conf *key) key 416 drivers/net/wireless/mediatek/mt76/mt76x02_util.c int idx = key->keyidx; key 420 drivers/net/wireless/mediatek/mt76/mt76x02_util.c switch (key->cipher) { key 436 drivers/net/wireless/mediatek/mt76/mt76x02_util.c (key->cipher == WLAN_CIPHER_SUITE_TKIP || key 437 drivers/net/wireless/mediatek/mt76/mt76x02_util.c key->cipher == WLAN_CIPHER_SUITE_CCMP) && key 438 drivers/net/wireless/mediatek/mt76/mt76x02_util.c !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) key 448 drivers/net/wireless/mediatek/mt76/mt76x02_util.c !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) key 455 drivers/net/wireless/mediatek/mt76/mt76x02_util.c key->hw_key_idx = wcid->idx; key 457 drivers/net/wireless/mediatek/mt76/mt76x02_util.c if (key->flags & IEEE80211_KEY_FLAG_RX_MGMT) { key 458 drivers/net/wireless/mediatek/mt76/mt76x02_util.c key->flags |= IEEE80211_KEY_FLAG_SW_MGMT_TX; key 467 drivers/net/wireless/mediatek/mt76/mt76x02_util.c key = NULL; key 469 drivers/net/wireless/mediatek/mt76/mt76x02_util.c mt76_wcid_key_setup(&dev->mt76, wcid, key); key 472 drivers/net/wireless/mediatek/mt76/mt76x02_util.c if (key || wcid->hw_key_idx == idx) { key 473 drivers/net/wireless/mediatek/mt76/mt76x02_util.c ret = mt76x02_mac_wcid_set_key(dev, wcid->idx, key); key 478 drivers/net/wireless/mediatek/mt76/mt76x02_util.c return mt76x02_mac_shared_key_setup(dev, mvif->idx, idx, key); key 481 drivers/net/wireless/mediatek/mt76/mt76x02_util.c return mt76x02_mac_wcid_set_key(dev, msta->wcid.idx, key); key 505 drivers/net/wireless/mediatek/mt7601u/mac.c mt76_mac_get_key_info(struct ieee80211_key_conf *key, u8 *key_data) key 508 drivers/net/wireless/mediatek/mt7601u/mac.c if (!key) key 511 drivers/net/wireless/mediatek/mt7601u/mac.c if (key->keylen > 32) key 514 drivers/net/wireless/mediatek/mt7601u/mac.c memcpy(key_data, key->key, key->keylen); key 516 drivers/net/wireless/mediatek/mt7601u/mac.c switch (key->cipher) { key 531 drivers/net/wireless/mediatek/mt7601u/mac.c struct ieee80211_key_conf *key) key 538 drivers/net/wireless/mediatek/mt7601u/mac.c cipher = mt76_mac_get_key_info(key, key_data); key 539 drivers/net/wireless/mediatek/mt7601u/mac.c if (cipher == MT_CIPHER_NONE && key) key 547 drivers/net/wireless/mediatek/mt7601u/mac.c if (key) { key 548 drivers/net/wireless/mediatek/mt7601u/mac.c iv_data[3] = key->keyidx << 6; key 565 drivers/net/wireless/mediatek/mt7601u/mac.c !!(key && key->flags & IEEE80211_KEY_FLAG_PAIRWISE); key 572 drivers/net/wireless/mediatek/mt7601u/mac.c struct ieee80211_key_conf *key) key 578 drivers/net/wireless/mediatek/mt7601u/mac.c cipher = mt76_mac_get_key_info(key, key_data); key 579 drivers/net/wireless/mediatek/mt7601u/mac.c if (cipher == MT_CIPHER_NONE && key) key 158 drivers/net/wireless/mediatek/mt7601u/mac.h struct ieee80211_key_conf *key); key 163 drivers/net/wireless/mediatek/mt7601u/mac.h struct ieee80211_key_conf *key); key 294 drivers/net/wireless/mediatek/mt7601u/main.c struct ieee80211_key_conf *key) key 300 drivers/net/wireless/mediatek/mt7601u/main.c int idx = key->keyidx; key 304 drivers/net/wireless/mediatek/mt7601u/main.c switch (key->cipher) { key 315 drivers/net/wireless/mediatek/mt7601u/main.c key->hw_key_idx = wcid->idx; key 321 drivers/net/wireless/mediatek/mt7601u/main.c key = NULL; key 325 drivers/net/wireless/mediatek/mt7601u/main.c if (key || wcid->hw_key_idx == idx) { key 326 drivers/net/wireless/mediatek/mt7601u/main.c ret = mt76_mac_wcid_set_key(dev, wcid->idx, key); key 331 drivers/net/wireless/mediatek/mt7601u/main.c return mt76_mac_shared_key_setup(dev, mvif->idx, idx, key); key 334 drivers/net/wireless/mediatek/mt7601u/main.c return mt76_mac_wcid_set_key(dev, msta->wcid.idx, key); key 369 drivers/net/wireless/mediatek/mt7601u/trace.h TP_PROTO(struct mt7601u_dev *dev, u8 vid, u8 key), key 370 drivers/net/wireless/mediatek/mt7601u/trace.h TP_ARGS(dev, vid, key), key 374 drivers/net/wireless/mediatek/mt7601u/trace.h __field(u8, key) key 379 drivers/net/wireless/mediatek/mt7601u/trace.h __entry->key = key; key 382 drivers/net/wireless/mediatek/mt7601u/trace.h DEV_PR_ARG, __entry->vid, __entry->key) key 1835 drivers/net/wireless/quantenna/qtnfmac/commands.c if (params->key && params->key_len > 0) key 1837 drivers/net/wireless/quantenna/qtnfmac/commands.c params->key, key 321 drivers/net/wireless/ralink/rt2x00/rt2500usb.c struct ieee80211_key_conf *key) key 333 drivers/net/wireless/ralink/rt2x00/rt2500usb.c if ((key->cipher == WLAN_CIPHER_SUITE_WEP40 || key 334 drivers/net/wireless/ralink/rt2x00/rt2500usb.c key->cipher == WLAN_CIPHER_SUITE_WEP104) && key 335 drivers/net/wireless/ralink/rt2x00/rt2500usb.c key->keyidx != 0) key 354 drivers/net/wireless/ralink/rt2x00/rt2500usb.c key->hw_key_idx += reg ? ffz(reg) : 0; key 361 drivers/net/wireless/ralink/rt2x00/rt2500usb.c if (key->hw_key_idx > 0 && crypto->cipher != curr_cipher) key 364 drivers/net/wireless/ralink/rt2x00/rt2500usb.c rt2500usb_register_multiwrite(rt2x00dev, KEY_ENTRY(key->hw_key_idx), key 365 drivers/net/wireless/ralink/rt2x00/rt2500usb.c crypto->key, sizeof(crypto->key)); key 376 drivers/net/wireless/ralink/rt2x00/rt2500usb.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 377 drivers/net/wireless/ralink/rt2x00/rt2500usb.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; key 390 drivers/net/wireless/ralink/rt2x00/rt2500usb.c mask |= 1 << key->hw_key_idx; key 392 drivers/net/wireless/ralink/rt2x00/rt2500usb.c mask &= ~(1 << key->hw_key_idx); key 2051 drivers/net/wireless/ralink/rt2x00/rt2800.h u8 key[16]; key 1622 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct ieee80211_key_conf *key) key 1628 drivers/net/wireless/ralink/rt2x00/rt2800lib.c offset = MAC_WCID_ATTR_ENTRY(key->hw_key_idx); key 1633 drivers/net/wireless/ralink/rt2x00/rt2800lib.c !!(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)); key 1655 drivers/net/wireless/ralink/rt2x00/rt2800lib.c offset = MAC_IVEIV_ENTRY(key->hw_key_idx); key 1664 drivers/net/wireless/ralink/rt2x00/rt2800lib.c iveiv_entry.iv[3] |= key->keyidx << 6; key 1675 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct ieee80211_key_conf *key) key 1683 drivers/net/wireless/ralink/rt2x00/rt2800lib.c key->hw_key_idx = (4 * crypto->bssidx) + key->keyidx; key 1685 drivers/net/wireless/ralink/rt2x00/rt2800lib.c memcpy(key_entry.key, crypto->key, key 1686 drivers/net/wireless/ralink/rt2x00/rt2800lib.c sizeof(key_entry.key)); key 1692 drivers/net/wireless/ralink/rt2x00/rt2800lib.c offset = SHARED_KEY_ENTRY(key->hw_key_idx); key 1704 drivers/net/wireless/ralink/rt2x00/rt2800lib.c field.bit_offset = 4 * (key->hw_key_idx % 8); key 1707 drivers/net/wireless/ralink/rt2x00/rt2800lib.c offset = SHARED_KEY_MODE_ENTRY(key->hw_key_idx / 8); key 1717 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_config_wcid(rt2x00dev, crypto->address, key->hw_key_idx); key 1718 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_config_wcid_attr_bssidx(rt2x00dev, key->hw_key_idx, key 1720 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_config_wcid_attr_cipher(rt2x00dev, crypto, key); key 1728 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct ieee80211_key_conf *key) key 1740 drivers/net/wireless/ralink/rt2x00/rt2800lib.c key->hw_key_idx = crypto->wcid; key 1742 drivers/net/wireless/ralink/rt2x00/rt2800lib.c memcpy(key_entry.key, crypto->key, key 1743 drivers/net/wireless/ralink/rt2x00/rt2800lib.c sizeof(key_entry.key)); key 1749 drivers/net/wireless/ralink/rt2x00/rt2800lib.c offset = PAIRWISE_KEY_ENTRY(key->hw_key_idx); key 1757 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_config_wcid_attr_cipher(rt2x00dev, crypto, key); key 10318 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct ieee80211_key_conf *key, key 10325 drivers/net/wireless/ralink/rt2x00/rt2800lib.c if (key->cipher != WLAN_CIPHER_SUITE_TKIP) key 10328 drivers/net/wireless/ralink/rt2x00/rt2800lib.c offset = MAC_IVEIV_ENTRY(key->hw_key_idx); key 210 drivers/net/wireless/ralink/rt2x00/rt2800lib.h struct ieee80211_key_conf *key); key 213 drivers/net/wireless/ralink/rt2x00/rt2800lib.h struct ieee80211_key_conf *key); key 244 drivers/net/wireless/ralink/rt2x00/rt2800lib.h struct ieee80211_key_conf *key, key 458 drivers/net/wireless/ralink/rt2x00/rt2x00.h u8 key[16]; key 597 drivers/net/wireless/ralink/rt2x00/rt2x00.h struct ieee80211_key_conf *key); key 600 drivers/net/wireless/ralink/rt2x00/rt2x00.h struct ieee80211_key_conf *key); key 1456 drivers/net/wireless/ralink/rt2x00/rt2x00.h struct ieee80211_key_conf *key); key 19 drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c enum cipher rt2x00crypto_key_to_cipher(struct ieee80211_key_conf *key) key 21 drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c switch (key->cipher) { key 67 drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c struct ieee80211_key_conf *key = tx_info->control.hw_key; key 70 drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c if (!rt2x00_has_cap_hw_crypto(rt2x00dev) || !key) key 78 drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c overhead += key->icv_len; key 80 drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c if (!(key->flags & IEEE80211_KEY_FLAG_GENERATE_IV)) key 81 drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c overhead += key->iv_len; key 83 drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c if (!(key->flags & IEEE80211_KEY_FLAG_GENERATE_MMIC)) { key 84 drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c if (key->cipher == WLAN_CIPHER_SUITE_TKIP) key 315 drivers/net/wireless/ralink/rt2x00/rt2x00lib.h enum cipher rt2x00crypto_key_to_cipher(struct ieee80211_key_conf *key); key 330 drivers/net/wireless/ralink/rt2x00/rt2x00lib.h static inline enum cipher rt2x00crypto_key_to_cipher(struct ieee80211_key_conf *key) key 417 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c static void memcpy_tkip(struct rt2x00lib_crypto *crypto, u8 *key, u8 key_len) key 420 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c memcpy(crypto->key, key 421 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c &key[NL80211_TKIP_DATA_OFFSET_ENCR_KEY], key 422 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c sizeof(crypto->key)); key 426 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c &key[NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY], key 431 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c &key[NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY], key 437 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c struct ieee80211_key_conf *key) key 442 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c struct ieee80211_key_conf *key); key 459 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) key 462 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c if (key->keylen > 32) key 468 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c crypto.cipher = rt2x00crypto_key_to_cipher(key); key 484 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c memcpy_tkip(&crypto, &key->key[0], key->keylen); key 486 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c memcpy(crypto.key, &key->key[0], key->keylen); key 504 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c key->hw_key_idx = 0; key 506 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) key 514 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c return set_key(rt2x00dev, &crypto, key); key 311 drivers/net/wireless/ralink/rt2x00/rt61pci.c struct ieee80211_key_conf *key) key 323 drivers/net/wireless/ralink/rt2x00/rt61pci.c struct ieee80211_key_conf *key) key 342 drivers/net/wireless/ralink/rt2x00/rt61pci.c key->hw_key_idx = 32; key 348 drivers/net/wireless/ralink/rt2x00/rt61pci.c key->hw_key_idx += reg ? ffz(reg) : 0; key 353 drivers/net/wireless/ralink/rt2x00/rt61pci.c memcpy(key_entry.key, crypto->key, key 354 drivers/net/wireless/ralink/rt2x00/rt61pci.c sizeof(key_entry.key)); key 364 drivers/net/wireless/ralink/rt2x00/rt61pci.c reg = PAIRWISE_KEY_ENTRY(key->hw_key_idx); key 368 drivers/net/wireless/ralink/rt2x00/rt61pci.c reg = PAIRWISE_TA_ENTRY(key->hw_key_idx); key 390 drivers/net/wireless/ralink/rt2x00/rt61pci.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 399 drivers/net/wireless/ralink/rt2x00/rt61pci.c if (key->hw_key_idx < 32) { key 400 drivers/net/wireless/ralink/rt2x00/rt61pci.c mask = 1 << key->hw_key_idx; key 409 drivers/net/wireless/ralink/rt2x00/rt61pci.c mask = 1 << (key->hw_key_idx - 32); key 140 drivers/net/wireless/ralink/rt2x00/rt61pci.h u8 key[16]; key 258 drivers/net/wireless/ralink/rt2x00/rt73usb.c struct ieee80211_key_conf *key) key 284 drivers/net/wireless/ralink/rt2x00/rt73usb.c key->hw_key_idx += reg ? ffz(reg) : 0; key 289 drivers/net/wireless/ralink/rt2x00/rt73usb.c memcpy(key_entry.key, crypto->key, key 290 drivers/net/wireless/ralink/rt2x00/rt73usb.c sizeof(key_entry.key)); key 296 drivers/net/wireless/ralink/rt2x00/rt73usb.c reg = SHARED_KEY_ENTRY(key->hw_key_idx); key 307 drivers/net/wireless/ralink/rt2x00/rt73usb.c if (key->hw_key_idx < 8) { key 308 drivers/net/wireless/ralink/rt2x00/rt73usb.c field.bit_offset = (3 * key->hw_key_idx); key 315 drivers/net/wireless/ralink/rt2x00/rt73usb.c field.bit_offset = (3 * (key->hw_key_idx - 8)); key 332 drivers/net/wireless/ralink/rt2x00/rt73usb.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 341 drivers/net/wireless/ralink/rt2x00/rt73usb.c mask = 1 << key->hw_key_idx; key 355 drivers/net/wireless/ralink/rt2x00/rt73usb.c struct ieee80211_key_conf *key) key 374 drivers/net/wireless/ralink/rt2x00/rt73usb.c key->hw_key_idx = 32; key 380 drivers/net/wireless/ralink/rt2x00/rt73usb.c key->hw_key_idx += reg ? ffz(reg) : 0; key 385 drivers/net/wireless/ralink/rt2x00/rt73usb.c memcpy(key_entry.key, crypto->key, key 386 drivers/net/wireless/ralink/rt2x00/rt73usb.c sizeof(key_entry.key)); key 392 drivers/net/wireless/ralink/rt2x00/rt73usb.c reg = PAIRWISE_KEY_ENTRY(key->hw_key_idx); key 403 drivers/net/wireless/ralink/rt2x00/rt73usb.c reg = PAIRWISE_TA_ENTRY(key->hw_key_idx); key 425 drivers/net/wireless/ralink/rt2x00/rt73usb.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 434 drivers/net/wireless/ralink/rt2x00/rt73usb.c if (key->hw_key_idx < 32) { key 435 drivers/net/wireless/ralink/rt2x00/rt73usb.c mask = 1 << key->hw_key_idx; key 444 drivers/net/wireless/ralink/rt2x00/rt73usb.c mask = 1 << (key->hw_key_idx - 32); key 95 drivers/net/wireless/ralink/rt2x00/rt73usb.h u8 key[16]; key 4247 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c struct ieee80211_key_conf *key, const u8 *mac) key 4260 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c addr = key->keyidx << CAM_CMD_KEY_SHIFT; key 4261 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c ctrl = (key->cipher & 0x0f) << 2 | key->keyidx | CAM_WRITE_VALID; key 4274 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val32 = key->key[i] | (key->key[i + 1] << 8) | key 4275 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c key->key[i + 2] << 16 | key->key[i + 3] << 24; key 5663 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c struct ieee80211_key_conf *key) key 5674 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c __func__, cmd, key->cipher, key->keyidx); key 5679 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (key->keyidx > 3) key 5682 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c switch (key->cipher) { key 5688 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c key->flags |= IEEE80211_KEY_FLAG_SW_MGMT_TX; key 5691 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; key 5697 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) { key 5716 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c key->hw_key_idx = key->keyidx; key 5717 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 5718 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_cam_write(priv, key, mac_addr); key 5724 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c key->keyidx << CAM_CMD_KEY_SHIFT; key 1506 drivers/net/wireless/realtek/rtlwifi/core.c struct ieee80211_key_conf *key) key 1527 drivers/net/wireless/realtek/rtlwifi/core.c !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) key 1531 drivers/net/wireless/realtek/rtlwifi/core.c cmd == SET_KEY ? "Using" : "Disabling", key->keyidx, key 1538 drivers/net/wireless/realtek/rtlwifi/core.c switch (key->cipher) { key 1566 drivers/net/wireless/realtek/rtlwifi/core.c pr_err("alg_err:%x!!!!:\n", key->cipher); key 1575 drivers/net/wireless/realtek/rtlwifi/core.c key_idx = (u8) (key->keyidx); key 1579 drivers/net/wireless/realtek/rtlwifi/core.c group_key = !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE); key 1625 drivers/net/wireless/realtek/rtlwifi/core.c key->key, key->keylen); key 1626 drivers/net/wireless/realtek/rtlwifi/core.c rtlpriv->sec.key_len[key_idx] = key->keylen; key 1635 drivers/net/wireless/realtek/rtlwifi/core.c key->key, key->keylen); key 1636 drivers/net/wireless/realtek/rtlwifi/core.c rtlpriv->sec.key_len[key_idx] = key->keylen; key 1652 drivers/net/wireless/realtek/rtlwifi/core.c key->key, key->keylen); key 1653 drivers/net/wireless/realtek/rtlwifi/core.c rtlpriv->sec.key_len[PAIRWISE_KEYIDX] = key->keylen; key 1663 drivers/net/wireless/realtek/rtlwifi/core.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 1664 drivers/net/wireless/realtek/rtlwifi/core.c key->hw_key_idx = key_idx; key 1666 drivers/net/wireless/realtek/rtlwifi/core.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; key 1669 drivers/net/wireless/realtek/rtlwifi/core.c key->flags |= IEEE80211_KEY_FLAG_SW_MGMT_TX; key 1680 drivers/net/wireless/realtek/rtlwifi/core.c memset(rtlpriv->sec.key_buf[key_idx], 0, key->keylen); key 775 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c struct ieee80211_key_conf *key = info->control.hw_key; key 777 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c switch (key->cipher) { key 365 drivers/net/wireless/realtek/rtw88/mac80211.c struct ieee80211_key_conf *key) key 373 drivers/net/wireless/realtek/rtw88/mac80211.c switch (key->cipher) { key 382 drivers/net/wireless/realtek/rtw88/mac80211.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; key 386 drivers/net/wireless/realtek/rtw88/mac80211.c key->flags |= IEEE80211_KEY_FLAG_SW_MGMT_TX; key 400 drivers/net/wireless/realtek/rtw88/mac80211.c if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) { key 404 drivers/net/wireless/realtek/rtw88/mac80211.c hw_key_idx = key->keyidx; key 415 drivers/net/wireless/realtek/rtw88/mac80211.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 416 drivers/net/wireless/realtek/rtw88/mac80211.c key->hw_key_idx = hw_key_idx; key 417 drivers/net/wireless/realtek/rtw88/mac80211.c rtw_sec_write_cam(rtwdev, sec, sta, key, key 421 drivers/net/wireless/realtek/rtw88/mac80211.c rtw_sec_clear_cam(rtwdev, sec, key->hw_key_idx); key 559 drivers/net/wireless/realtek/rtw88/main.h struct ieee80211_key_conf *key; key 25 drivers/net/wireless/realtek/rtw88/sec.c struct ieee80211_key_conf *key, key 37 drivers/net/wireless/realtek/rtw88/sec.c cam->group = !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE); key 39 drivers/net/wireless/realtek/rtw88/sec.c cam->key = key; key 50 drivers/net/wireless/realtek/rtw88/sec.c content = ((key->keyidx & 0x3)) | key 65 drivers/net/wireless/realtek/rtw88/sec.c content = (key->key[j]) | key 66 drivers/net/wireless/realtek/rtw88/sec.c (key->key[j + 1] << 8) | key 67 drivers/net/wireless/realtek/rtw88/sec.c (key->key[j + 2] << 16) | key 68 drivers/net/wireless/realtek/rtw88/sec.c (key->key[j + 3] << 24); key 89 drivers/net/wireless/realtek/rtw88/sec.c cam->key = NULL; key 32 drivers/net/wireless/realtek/rtw88/sec.h struct ieee80211_key_conf *key, key 316 drivers/net/wireless/realtek/rtw88/tx.c struct ieee80211_key_conf *key = info->control.hw_key; key 318 drivers/net/wireless/realtek/rtw88/tx.c switch (key->cipher) { key 1333 drivers/net/wireless/rndis_wlan.c static int add_wep_key(struct usbnet *usbdev, const u8 *key, int key_len, key 1359 drivers/net/wireless/rndis_wlan.c memcpy(&ndis_key.material, key, key_len); key 1381 drivers/net/wireless/rndis_wlan.c memcpy(&priv->encr_keys[index].material, key, key_len); key 1387 drivers/net/wireless/rndis_wlan.c static int add_wpa_key(struct usbnet *usbdev, const u8 *key, int key_len, key 1442 drivers/net/wireless/rndis_wlan.c memcpy(ndis_key.material, key, 16); key 1443 drivers/net/wireless/rndis_wlan.c memcpy(ndis_key.material + 16, key + 24, 8); key 1444 drivers/net/wireless/rndis_wlan.c memcpy(ndis_key.material + 24, key + 16, 8); key 1446 drivers/net/wireless/rndis_wlan.c memcpy(ndis_key.material, key, key_len); key 1473 drivers/net/wireless/rndis_wlan.c memcpy(&priv->encr_keys[index].material, key, key_len); key 1488 drivers/net/wireless/rndis_wlan.c struct rndis_wlan_encr_key key; key 1493 drivers/net/wireless/rndis_wlan.c key = priv->encr_keys[key_idx]; key 1495 drivers/net/wireless/rndis_wlan.c netdev_dbg(usbdev->net, "%s(): %i:%i\n", __func__, key_idx, key.len); key 1497 drivers/net/wireless/rndis_wlan.c if (key.len == 0) key 1500 drivers/net/wireless/rndis_wlan.c return add_wep_key(usbdev, key.material, key.len, key_idx); key 2216 drivers/net/wireless/rndis_wlan.c if (sme->key && ((groupwise | pairwise) & RNDIS_WLAN_ALG_WEP)) { key 2218 drivers/net/wireless/rndis_wlan.c ret = add_wep_key(usbdev, sme->key, sme->key_len, sme->key_idx); key 2402 drivers/net/wireless/rndis_wlan.c return add_wep_key(usbdev, params->key, params->key_len, key 2414 drivers/net/wireless/rndis_wlan.c return add_wpa_key(usbdev, params->key, params->key_len, key 2440 drivers/net/wireless/rndis_wlan.c struct rndis_wlan_encr_key key; key 2452 drivers/net/wireless/rndis_wlan.c key = priv->encr_keys[key_index]; key 2454 drivers/net/wireless/rndis_wlan.c return add_wep_key(usbdev, key.material, key.len, key_index); key 944 drivers/net/wireless/rsi/rsi_91x_mac80211.c struct ieee80211_key_conf *key, key 953 drivers/net/wireless/rsi/rsi_91x_mac80211.c if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) key 959 drivers/net/wireless/rsi/rsi_91x_mac80211.c __func__, key->cipher, key_type, key->keylen); key 968 drivers/net/wireless/rsi/rsi_91x_mac80211.c adapter->priv->key = key; key 970 drivers/net/wireless/rsi/rsi_91x_mac80211.c if ((key->cipher == WLAN_CIPHER_SUITE_WEP104) || key 971 drivers/net/wireless/rsi/rsi_91x_mac80211.c (key->cipher == WLAN_CIPHER_SUITE_WEP40)) { key 973 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->key, key 974 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->keylen, key 976 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->keyidx, key 977 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->cipher, key 986 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->key, key 987 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->keylen, key 989 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->keyidx, key 990 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->cipher, key 997 drivers/net/wireless/rsi/rsi_91x_mac80211.c (key->cipher == WLAN_CIPHER_SUITE_WEP104 || key 998 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->cipher == WLAN_CIPHER_SUITE_WEP40)) { key 1020 drivers/net/wireless/rsi/rsi_91x_mac80211.c struct ieee80211_key_conf *key) key 1031 drivers/net/wireless/rsi/rsi_91x_mac80211.c status = rsi_hal_key_config(hw, vif, key, sta); key 1037 drivers/net/wireless/rsi/rsi_91x_mac80211.c if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) key 1038 drivers/net/wireless/rsi/rsi_91x_mac80211.c secinfo->ptk_cipher = key->cipher; key 1040 drivers/net/wireless/rsi/rsi_91x_mac80211.c secinfo->gtk_cipher = key->cipher; key 1042 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->hw_key_idx = key->keyidx; key 1043 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 1052 drivers/net/wireless/rsi/rsi_91x_mac80211.c memset(key, 0, sizeof(struct ieee80211_key_conf)); key 1053 drivers/net/wireless/rsi/rsi_91x_mac80211.c status = rsi_hal_key_config(hw, vif, key, sta); key 1483 drivers/net/wireless/rsi/rsi_91x_mac80211.c if (common->key) { key 1484 drivers/net/wireless/rsi/rsi_91x_mac80211.c struct ieee80211_key_conf *key = common->key; key 1486 drivers/net/wireless/rsi/rsi_91x_mac80211.c if ((key->cipher == WLAN_CIPHER_SUITE_WEP104) || key 1487 drivers/net/wireless/rsi/rsi_91x_mac80211.c (key->cipher == WLAN_CIPHER_SUITE_WEP40)) key 1489 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->key, key 1490 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->keylen, key 1492 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->keyidx, key 1493 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->cipher, key 840 drivers/net/wireless/rsi/rsi_91x_mgmt.c memcpy(&set_key->key[key_id][1], data, key_len * 2); key 842 drivers/net/wireless/rsi/rsi_91x_mgmt.c memcpy(&set_key->key[0][0], data, key_len); key 316 drivers/net/wireless/rsi/rsi_main.h struct ieee80211_key_conf *key; key 476 drivers/net/wireless/rsi/rsi_mgmt.h u8 key[4][32]; key 682 drivers/net/wireless/st/cw1200/sta.c struct ieee80211_key_conf *key) key 692 drivers/net/wireless/st/cw1200/sta.c int pairwise = (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) ? key 705 drivers/net/wireless/st/cw1200/sta.c key->flags |= IEEE80211_KEY_FLAG_PUT_IV_SPACE | key 708 drivers/net/wireless/st/cw1200/sta.c switch (key->cipher) { key 711 drivers/net/wireless/st/cw1200/sta.c if (key->keylen > 16) { key 722 drivers/net/wireless/st/cw1200/sta.c &key->key[0], key->keylen); key 723 drivers/net/wireless/st/cw1200/sta.c wsm_key->wep_pairwise.keylen = key->keylen; key 727 drivers/net/wireless/st/cw1200/sta.c &key->key[0], key->keylen); key 728 drivers/net/wireless/st/cw1200/sta.c wsm_key->wep_group.keylen = key->keylen; key 729 drivers/net/wireless/st/cw1200/sta.c wsm_key->wep_group.keyid = key->keyidx; key 733 drivers/net/wireless/st/cw1200/sta.c ieee80211_get_key_rx_seq(key, 0, &seq); key 739 drivers/net/wireless/st/cw1200/sta.c &key->key[0], 16); key 741 drivers/net/wireless/st/cw1200/sta.c &key->key[16], 8); key 743 drivers/net/wireless/st/cw1200/sta.c &key->key[24], 8); key 750 drivers/net/wireless/st/cw1200/sta.c &key->key[0], 16); key 752 drivers/net/wireless/st/cw1200/sta.c &key->key[mic_offset], 8); key 763 drivers/net/wireless/st/cw1200/sta.c wsm_key->tkip_group.keyid = key->keyidx; key 767 drivers/net/wireless/st/cw1200/sta.c ieee80211_get_key_rx_seq(key, 0, &seq); key 773 drivers/net/wireless/st/cw1200/sta.c &key->key[0], 16); key 777 drivers/net/wireless/st/cw1200/sta.c &key->key[0], 16); key 787 drivers/net/wireless/st/cw1200/sta.c wsm_key->aes_group.keyid = key->keyidx; key 796 drivers/net/wireless/st/cw1200/sta.c &key->key[0], 16); key 798 drivers/net/wireless/st/cw1200/sta.c &key->key[16], 16); key 799 drivers/net/wireless/st/cw1200/sta.c wsm_key->wapi_pairwise.keyid = key->keyidx; key 803 drivers/net/wireless/st/cw1200/sta.c &key->key[0], 16); key 805 drivers/net/wireless/st/cw1200/sta.c &key->key[16], 16); key 806 drivers/net/wireless/st/cw1200/sta.c wsm_key->wapi_group.keyid = key->keyidx; key 810 drivers/net/wireless/st/cw1200/sta.c pr_warn("Unhandled key type %d\n", key->cipher); key 817 drivers/net/wireless/st/cw1200/sta.c key->hw_key_idx = idx; key 822 drivers/net/wireless/st/cw1200/sta.c .index = key->hw_key_idx, key 36 drivers/net/wireless/st/cw1200/sta.h struct ieee80211_key_conf *key); key 401 drivers/net/wireless/ti/wl1251/cmd.h u8 key[MAX_KEY_SIZE]; key 828 drivers/net/wireless/ti/wl1251/main.c struct wl1251_cmd_set_keys *key, key 837 drivers/net/wireless/ti/wl1251/main.c key->key_type = KEY_WEP_DEFAULT; key 839 drivers/net/wireless/ti/wl1251/main.c key->key_type = KEY_WEP_ADDR; key 845 drivers/net/wireless/ti/wl1251/main.c key->key_type = KEY_TKIP_MIC_GROUP; key 847 drivers/net/wireless/ti/wl1251/main.c key->key_type = KEY_TKIP_MIC_PAIRWISE; key 853 drivers/net/wireless/ti/wl1251/main.c key->key_type = KEY_AES_GROUP; key 855 drivers/net/wireless/ti/wl1251/main.c key->key_type = KEY_AES_PAIRWISE; key 869 drivers/net/wireless/ti/wl1251/main.c struct ieee80211_key_conf *key) key 892 drivers/net/wireless/ti/wl1251/main.c key->cipher, key->keyidx, key->keylen, key->flags); key 893 drivers/net/wireless/ti/wl1251/main.c wl1251_dump(DEBUG_CRYPT, "KEY: ", key->key, key->keylen); key 923 drivers/net/wireless/ti/wl1251/main.c ret = wl1251_set_key_type(wl, wl_cmd, cmd, key, addr); key 940 drivers/net/wireless/ti/wl1251/main.c memcpy(wl_cmd->key, key->key, 16); key 941 drivers/net/wireless/ti/wl1251/main.c memcpy(wl_cmd->key + 16, key->key + 24, 8); key 942 drivers/net/wireless/ti/wl1251/main.c memcpy(wl_cmd->key + 24, key->key + 16, 8); key 945 drivers/net/wireless/ti/wl1251/main.c memcpy(wl_cmd->key, key->key, key->keylen); key 947 drivers/net/wireless/ti/wl1251/main.c wl_cmd->key_size = key->keylen; key 949 drivers/net/wireless/ti/wl1251/main.c wl_cmd->id = key->keyidx; key 127 drivers/net/wireless/ti/wl18xx/cmd.c u8 key_len, u8 *key) key 135 drivers/net/wireless/ti/wl18xx/cmd.c if (key_len != sizeof(cmd->key)) { key 147 drivers/net/wireless/ti/wl18xx/cmd.c memcpy(cmd->key, key, key_len); key 45 drivers/net/wireless/ti/wl18xx/cmd.h u8 key[16]; key 78 drivers/net/wireless/ti/wl18xx/cmd.h u8 key_len, u8 *key); key 1362 drivers/net/wireless/ti/wlcore/cmd.c u8 key_size, const u8 *key, const u8 *addr, key 1403 drivers/net/wireless/ti/wlcore/cmd.c memcpy(cmd->key, key, 16); key 1404 drivers/net/wireless/ti/wlcore/cmd.c memcpy(cmd->key + 16, key + 24, 8); key 1405 drivers/net/wireless/ti/wlcore/cmd.c memcpy(cmd->key + 24, key + 16, 8); key 1408 drivers/net/wireless/ti/wlcore/cmd.c memcpy(cmd->key, key, key_size); key 1431 drivers/net/wireless/ti/wlcore/cmd.c u8 key_size, const u8 *key, u8 hlid, u32 tx_seq_32, key 1471 drivers/net/wireless/ti/wlcore/cmd.c memcpy(cmd->key, key, 16); key 1472 drivers/net/wireless/ti/wlcore/cmd.c memcpy(cmd->key + 16, key + 24, 8); key 1473 drivers/net/wireless/ti/wlcore/cmd.c memcpy(cmd->key + 24, key + 16, 8); key 1475 drivers/net/wireless/ti/wlcore/cmd.c memcpy(cmd->key, key, key_size); key 63 drivers/net/wireless/ti/wlcore/cmd.h u8 key_size, const u8 *key, const u8 *addr, key 67 drivers/net/wireless/ti/wlcore/cmd.h u8 key_size, const u8 *key, u8 hlid, u32 tx_seq_32, key 503 drivers/net/wireless/ti/wlcore/cmd.h u8 key[MAX_KEY_SIZE]; key 293 drivers/net/wireless/ti/wlcore/hw_ops.h u8 key_len, u8 *key) key 298 drivers/net/wireless/ti/wlcore/hw_ops.h return wl->ops->smart_config_set_group_key(wl, group_id, key_len, key); key 3276 drivers/net/wireless/ti/wlcore/main.c const u8 *key, u8 hlid, u32 tx_seq_32, key 3311 drivers/net/wireless/ti/wlcore/main.c memcpy(ap_key->key, key, key_size); key 3333 drivers/net/wireless/ti/wlcore/main.c struct wl1271_ap_key *key; key 3341 drivers/net/wireless/ti/wlcore/main.c key = wlvif->ap.recorded_keys[i]; key 3342 drivers/net/wireless/ti/wlcore/main.c hlid = key->hlid; key 3347 drivers/net/wireless/ti/wlcore/main.c key->id, key->key_type, key 3348 drivers/net/wireless/ti/wlcore/main.c key->key_size, key->key, key 3349 drivers/net/wireless/ti/wlcore/main.c hlid, key->tx_seq_32, key 3350 drivers/net/wireless/ti/wlcore/main.c key->tx_seq_16); key 3354 drivers/net/wireless/ti/wlcore/main.c if (key->key_type == KEY_WEP) key 3372 drivers/net/wireless/ti/wlcore/main.c u8 key_size, const u8 *key, u32 tx_seq_32, key 3399 drivers/net/wireless/ti/wlcore/main.c key, hlid, tx_seq_32, key 3404 drivers/net/wireless/ti/wlcore/main.c key, hlid, tx_seq_32, key 3437 drivers/net/wireless/ti/wlcore/main.c key, addr, tx_seq_32, key 3512 drivers/net/wireless/ti/wlcore/main.c wl1271_dump(DEBUG_CRYPT, "KEY: ", key_conf->key, key_conf->keylen); key 3558 drivers/net/wireless/ti/wlcore/main.c key_conf->keylen, key_conf->key, key 3584 drivers/net/wireless/ti/wlcore/main.c key_conf->keylen, key_conf->key, key 114 drivers/net/wireless/ti/wlcore/wlcore.h u8 key_len, u8 *key); key 211 drivers/net/wireless/ti/wlcore/wlcore_i.h u8 key[MAX_KEY_SIZE]; key 1390 drivers/net/wireless/zydas/zd1201.c struct iw_request_info *info, struct iw_point *erq, char *key) key 1414 drivers/net/wireless/zydas/zd1201.c err = zd1201_setconfig(zd, rid, key, erq->length, 1); key 1418 drivers/net/wireless/zydas/zd1201.c memcpy(zd->encode_keys[i], key, erq->length); key 1447 drivers/net/wireless/zydas/zd1201.c struct iw_request_info *info, struct iw_point *erq, char *key) key 1474 drivers/net/wireless/zydas/zd1201.c memcpy(key, zd->encode_keys[i], erq->length); key 245 drivers/net/xen-netback/common.h u8 key[XEN_NETBK_MAX_HASH_KEY_SIZE]; key 85 drivers/net/xen-netback/hash.c val = xen_netif_toeplitz_hash(vif->hash.key, key 86 drivers/net/xen-netback/hash.c sizeof(vif->hash.key), key 291 drivers/net/xen-netback/hash.c u8 *key = vif->hash.key; key 295 drivers/net/xen-netback/hash.c .dest.u.gmfn = virt_to_gfn(key), key 297 drivers/net/xen-netback/hash.c .dest.offset = xen_offset_in_page(key), key 314 drivers/net/xen-netback/hash.c memset(key + len, 0, XEN_NETBK_MAX_HASH_KEY_SIZE - len); key 424 drivers/net/xen-netback/hash.c seq_printf(m, "%02x ", vif->hash.key[i]); key 27 drivers/nvdimm/security.c static void *key_data(struct key *key) key 29 drivers/nvdimm/security.c struct encrypted_key_payload *epayload = dereference_key_locked(key); key 31 drivers/nvdimm/security.c lockdep_assert_held_read(&key->sem); key 36 drivers/nvdimm/security.c static void nvdimm_put_key(struct key *key) key 38 drivers/nvdimm/security.c if (!key) key 41 drivers/nvdimm/security.c up_read(&key->sem); key 42 drivers/nvdimm/security.c key_put(key); key 50 drivers/nvdimm/security.c static struct key *nvdimm_request_key(struct nvdimm *nvdimm) key 52 drivers/nvdimm/security.c struct key *key = NULL; key 58 drivers/nvdimm/security.c key = request_key(&key_type_encrypted, desc, ""); key 59 drivers/nvdimm/security.c if (IS_ERR(key)) { key 60 drivers/nvdimm/security.c if (PTR_ERR(key) == -ENOKEY) key 64 drivers/nvdimm/security.c key = NULL; key 68 drivers/nvdimm/security.c down_read(&key->sem); key 69 drivers/nvdimm/security.c epayload = dereference_key_locked(key); key 71 drivers/nvdimm/security.c up_read(&key->sem); key 72 drivers/nvdimm/security.c key_put(key); key 73 drivers/nvdimm/security.c key = NULL; key 77 drivers/nvdimm/security.c return key; key 81 drivers/nvdimm/security.c struct key **key) key 83 drivers/nvdimm/security.c *key = nvdimm_request_key(nvdimm); key 84 drivers/nvdimm/security.c if (!*key) key 87 drivers/nvdimm/security.c return key_data(*key); key 90 drivers/nvdimm/security.c static struct key *nvdimm_lookup_user_key(struct nvdimm *nvdimm, key 94 drivers/nvdimm/security.c struct key *key; key 102 drivers/nvdimm/security.c key = key_ref_to_ptr(keyref); key 103 drivers/nvdimm/security.c if (key->type != &key_type_encrypted) { key 104 drivers/nvdimm/security.c key_put(key); key 108 drivers/nvdimm/security.c dev_dbg(dev, "%s: key found: %#x\n", __func__, key_serial(key)); key 110 drivers/nvdimm/security.c down_read_nested(&key->sem, subclass); key 111 drivers/nvdimm/security.c epayload = dereference_key_locked(key); key 113 drivers/nvdimm/security.c up_read(&key->sem); key 114 drivers/nvdimm/security.c key_put(key); key 115 drivers/nvdimm/security.c key = NULL; key 117 drivers/nvdimm/security.c return key; key 121 drivers/nvdimm/security.c key_serial_t id, int subclass, struct key **key) key 123 drivers/nvdimm/security.c *key = NULL; key 131 drivers/nvdimm/security.c *key = nvdimm_lookup_user_key(nvdimm, id, subclass); key 132 drivers/nvdimm/security.c if (!*key) key 135 drivers/nvdimm/security.c return key_data(*key); key 141 drivers/nvdimm/security.c struct key *key; key 148 drivers/nvdimm/security.c data = nvdimm_get_key_payload(nvdimm, &key); key 156 drivers/nvdimm/security.c nvdimm_put_key(key); key 160 drivers/nvdimm/security.c nvdimm_put_key(key); key 169 drivers/nvdimm/security.c struct key *key; key 202 drivers/nvdimm/security.c data = nvdimm_get_key_payload(nvdimm, &key); key 205 drivers/nvdimm/security.c dev_dbg(dev, "key: %d unlock: %s\n", key_serial(key), key 208 drivers/nvdimm/security.c nvdimm_put_key(key); key 246 drivers/nvdimm/security.c struct key *key; key 262 drivers/nvdimm/security.c NVDIMM_BASE_KEY, &key); key 267 drivers/nvdimm/security.c dev_dbg(dev, "key: %d disable: %s\n", key_serial(key), key 270 drivers/nvdimm/security.c nvdimm_put_key(key); key 281 drivers/nvdimm/security.c struct key *key, *newkey; key 297 drivers/nvdimm/security.c NVDIMM_BASE_KEY, &key); key 304 drivers/nvdimm/security.c nvdimm_put_key(key); key 310 drivers/nvdimm/security.c key_serial(key), key_serial(newkey), key 315 drivers/nvdimm/security.c nvdimm_put_key(key); key 330 drivers/nvdimm/security.c struct key *key = NULL; key 353 drivers/nvdimm/security.c NVDIMM_BASE_KEY, &key); key 358 drivers/nvdimm/security.c dev_dbg(dev, "key: %d erase%s: %s\n", key_serial(key), key 362 drivers/nvdimm/security.c nvdimm_put_key(key); key 371 drivers/nvdimm/security.c struct key *key = NULL; key 392 drivers/nvdimm/security.c NVDIMM_BASE_KEY, &key); key 397 drivers/nvdimm/security.c dev_dbg(dev, "key: %d overwrite submission: %s\n", key_serial(key), key 400 drivers/nvdimm/security.c nvdimm_put_key(key); key 501 drivers/nvdimm/security.c unsigned int key, newkey; key 516 drivers/nvdimm/security.c rc = kstrtouint(keystr, 0, &key); key 526 drivers/nvdimm/security.c dev_dbg(dev, "disable %u\n", key); key 527 drivers/nvdimm/security.c rc = security_disable(nvdimm, key); key 529 drivers/nvdimm/security.c dev_dbg(dev, "%s %u %u\n", ops[i].name, key, newkey); key 530 drivers/nvdimm/security.c rc = security_update(nvdimm, key, newkey, i == OP_UPDATE key 533 drivers/nvdimm/security.c dev_dbg(dev, "%s %u\n", ops[i].name, key); key 538 drivers/nvdimm/security.c rc = security_erase(nvdimm, key, i == OP_ERASE key 541 drivers/nvdimm/security.c dev_dbg(dev, "overwrite %u\n", key); key 546 drivers/nvdimm/security.c rc = security_overwrite(nvdimm, key); key 1933 drivers/nvme/host/core.c u64 key, u64 sa_key, u8 op) key 1945 drivers/nvme/host/core.c put_unaligned_le64(key, &data[0]); key 1972 drivers/nvme/host/core.c static int nvme_pr_reserve(struct block_device *bdev, u64 key, key 1982 drivers/nvme/host/core.c return nvme_pr_command(bdev, cdw10, key, 0, nvme_cmd_resv_acquire); key 1992 drivers/nvme/host/core.c static int nvme_pr_clear(struct block_device *bdev, u64 key) key 1994 drivers/nvme/host/core.c u32 cdw10 = 1 | (key ? 1 << 3 : 0); key 1995 drivers/nvme/host/core.c return nvme_pr_command(bdev, cdw10, key, 0, nvme_cmd_resv_register); key 1998 drivers/nvme/host/core.c static int nvme_pr_release(struct block_device *bdev, u64 key, enum pr_type type) key 2000 drivers/nvme/host/core.c u32 cdw10 = nvme_pr_type(type) << 8 | (key ? 1 << 3 : 0); key 2001 drivers/nvme/host/core.c return nvme_pr_command(bdev, cdw10, key, 0, nvme_cmd_resv_release); key 1176 drivers/nvme/host/rdma.c put_unaligned_le32(0, sg->key); key 1213 drivers/nvme/host/rdma.c put_unaligned_le32(queue->device->pd->unsafe_global_rkey, sg->key); key 1250 drivers/nvme/host/rdma.c req->reg_wr.key = req->mr->rkey; key 1257 drivers/nvme/host/rdma.c put_unaligned_le32(req->mr->rkey, sg->key); key 665 drivers/nvme/target/rdma.c u32 key = get_unaligned_le32(sgl->key); key 679 drivers/nvme/target/rdma.c rsp->req.sg, rsp->req.sg_cnt, 0, addr, key, key 686 drivers/nvme/target/rdma.c rsp->invalidate_rkey = key; key 247 drivers/nvmem/nvmem-sysfs.c nvmem->eeprom.attr.key = &eeprom_lock_key; key 957 drivers/parport/parport_pc.c static void show_parconfig_smsc37c669(int io, int key) key 968 drivers/parport/parport_pc.c outb(key, io); key 969 drivers/parport/parport_pc.c outb(key, io); key 1042 drivers/parport/parport_pc.c static void show_parconfig_winbond(int io, int key) key 1062 drivers/parport/parport_pc.c outb(key, io); key 1063 drivers/parport/parport_pc.c outb(key, io); key 1110 drivers/parport/parport_pc.c static void decode_winbond(int efer, int key, int devid, int devrev, int oldid) key 1156 drivers/parport/parport_pc.c efer, key, devid, devrev, oldid, type); key 1159 drivers/parport/parport_pc.c show_parconfig_winbond(efer, key); key 1162 drivers/parport/parport_pc.c static void decode_smsc(int efer, int key, int devid, int devrev) key 1165 drivers/parport/parport_pc.c void (*func)(int io, int key); key 1189 drivers/parport/parport_pc.c efer, key, devid, devrev, type); key 1192 drivers/parport/parport_pc.c func(efer, key); key 1196 drivers/parport/parport_pc.c static void winbond_check(int io, int key) key 1213 drivers/parport/parport_pc.c outb(key, io); key 1214 drivers/parport/parport_pc.c outb(key, io); /* Write Magic Sequence to EFER, extended key 1229 drivers/parport/parport_pc.c decode_winbond(io, key, devid, devrev, oldid); key 1234 drivers/parport/parport_pc.c static void winbond_check2(int io, int key) key 1253 drivers/parport/parport_pc.c outb(key, io); /* Write Magic Byte to EFER, extended key 1270 drivers/parport/parport_pc.c decode_winbond(io, key, devid, devrev, oldid); key 1275 drivers/parport/parport_pc.c static void smsc_check(int io, int key) key 1294 drivers/parport/parport_pc.c outb(key, io); key 1295 drivers/parport/parport_pc.c outb(key, io); /* Write Magic Sequence to EFER, extended key 1313 drivers/parport/parport_pc.c decode_smsc(io, key, oldid, oldrev); key 670 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c CYGNUS_PIN_FUNCTION(key), key 1713 drivers/platform/x86/acer-wmi.c const struct key_entry *key; key 1745 drivers/platform/x86/acer-wmi.c key = sparse_keymap_entry_from_scancode(acer_wmi_input_dev, key 1747 drivers/platform/x86/acer-wmi.c if (!key) { key 1752 drivers/platform/x86/acer-wmi.c switch (key->keycode) { key 326 drivers/platform/x86/dell-wmi.c const struct key_entry *key; key 328 drivers/platform/x86/dell-wmi.c key = sparse_keymap_entry_from_scancode(priv->input_dev, key 330 drivers/platform/x86/dell-wmi.c if (!key) { key 339 drivers/platform/x86/dell-wmi.c if ((key->keycode == KEY_BRIGHTNESSUP || key 340 drivers/platform/x86/dell-wmi.c key->keycode == KEY_BRIGHTNESSDOWN) && key 347 drivers/platform/x86/dell-wmi.c if (key->keycode == KEY_KBDILLUMTOGGLE) key 351 drivers/platform/x86/dell-wmi.c sparse_keymap_report_entry(priv->input_dev, key, 1, true); key 107 drivers/platform/x86/huawei-wmi.c const struct key_entry *key; key 130 drivers/platform/x86/huawei-wmi.c key = sparse_keymap_entry_from_scancode(priv->idev, code); key 131 drivers/platform/x86/huawei-wmi.c if (!key) { key 136 drivers/platform/x86/huawei-wmi.c sparse_keymap_report_entry(priv->idev, key, 1, true); key 217 drivers/platform/x86/lg-laptop.c struct key_entry *key; key 219 drivers/platform/x86/lg-laptop.c key = key 221 drivers/platform/x86/lg-laptop.c if (key && key->type == KE_KEY) key 222 drivers/platform/x86/lg-laptop.c sparse_keymap_report_entry(wmi_input_dev, key, 1, true); key 264 drivers/platform/x86/lg-laptop.c struct key_entry *key; key 268 drivers/platform/x86/lg-laptop.c key = sparse_keymap_entry_from_scancode(wmi_input_dev, 0x80); key 269 drivers/platform/x86/lg-laptop.c if (key && key->type == KE_KEY) key 270 drivers/platform/x86/lg-laptop.c sparse_keymap_report_entry(wmi_input_dev, key, 1, true); key 174 drivers/platform/x86/msi-wmi.c struct key_entry *key; key 189 drivers/platform/x86/msi-wmi.c key = sparse_keymap_entry_from_scancode(msi_wmi_input_dev, key 191 drivers/platform/x86/msi-wmi.c if (!key) { key 204 drivers/platform/x86/msi-wmi.c key->code, ktime_to_us(diff)); key 210 drivers/platform/x86/msi-wmi.c if (key->type == KE_KEY && key 213 drivers/platform/x86/msi-wmi.c (key->code != MSI_KEY_BRIGHTNESSUP && key 214 drivers/platform/x86/msi-wmi.c key->code != MSI_KEY_BRIGHTNESSDOWN))) { key 216 drivers/platform/x86/msi-wmi.c key->code, key->keycode); key 217 drivers/platform/x86/msi-wmi.c sparse_keymap_report_entry(msi_wmi_input_dev, key, 1, key 205 drivers/platform/x86/sony-laptop.c int key; key 361 drivers/platform/x86/sony-laptop.c input_report_key(kp.dev, kp.key, 0); key 404 drivers/platform/x86/sony-laptop.c kp.key = BTN_MIDDLE; key 414 drivers/platform/x86/sony-laptop.c kp.key = sony_laptop_input_keycode_map[scancode]; key 415 drivers/platform/x86/sony-laptop.c if (kp.key != KEY_UNKNOWN) key 426 drivers/platform/x86/sony-laptop.c input_report_key(kp.dev, kp.key, 1); key 549 drivers/platform/x86/sony-laptop.c input_report_key(kp.dev, kp.key, 0); key 17 drivers/platform/x86/xiaomi-wmi.c #define XIAOMI_DEVICE(guid, key) \ key 19 drivers/platform/x86/xiaomi-wmi.c .context = &(const unsigned int){key} key 776 drivers/power/supply/bq27xxx_battery.c #define BQ27XXX_DATA(ref, key, opt) { \ key 778 drivers/power/supply/bq27xxx_battery.c .unseal_key = key, \ key 248 drivers/power/supply/test_power.c char const *key; key 291 drivers/power/supply/test_power.c static int map_get_value(struct battery_property_map *map, const char *key, key 297 drivers/power/supply/test_power.c strncpy(buf, key, MAX_KEYLENGTH); key 306 drivers/power/supply/test_power.c while (map->key) { key 307 drivers/power/supply/test_power.c if (strncasecmp(map->key, buf, MAX_KEYLENGTH) == 0) key 319 drivers/power/supply/test_power.c while (map->key) { key 321 drivers/power/supply/test_power.c return map->key; key 334 drivers/power/supply/test_power.c static int param_set_ac_online(const char *key, const struct kernel_param *kp) key 336 drivers/power/supply/test_power.c ac_online = map_get_value(map_ac_online, key, ac_online); key 347 drivers/power/supply/test_power.c static int param_set_usb_online(const char *key, const struct kernel_param *kp) key 349 drivers/power/supply/test_power.c usb_online = map_get_value(map_ac_online, key, usb_online); key 360 drivers/power/supply/test_power.c static int param_set_battery_status(const char *key, key 363 drivers/power/supply/test_power.c battery_status = map_get_value(map_status, key, battery_status); key 374 drivers/power/supply/test_power.c static int param_set_battery_health(const char *key, key 377 drivers/power/supply/test_power.c battery_health = map_get_value(map_health, key, battery_health); key 388 drivers/power/supply/test_power.c static int param_set_battery_present(const char *key, key 391 drivers/power/supply/test_power.c battery_present = map_get_value(map_present, key, battery_present); key 403 drivers/power/supply/test_power.c static int param_set_battery_technology(const char *key, key 406 drivers/power/supply/test_power.c battery_technology = map_get_value(map_technology, key, key 420 drivers/power/supply/test_power.c static int param_set_battery_capacity(const char *key, key 425 drivers/power/supply/test_power.c if (1 != sscanf(key, "%d", &tmp)) key 435 drivers/power/supply/test_power.c static int param_set_battery_voltage(const char *key, key 440 drivers/power/supply/test_power.c if (1 != sscanf(key, "%d", &tmp)) key 663 drivers/regulator/qcom_rpm-regulator.c const char *key; key 668 drivers/regulator/qcom_rpm-regulator.c key = "qcom,switch-mode-frequency"; key 669 drivers/regulator/qcom_rpm-regulator.c ret = of_property_read_u32(node, key, &freq); key 671 drivers/regulator/qcom_rpm-regulator.c dev_err(dev, "regulator requires %s property\n", key); key 692 drivers/regulator/qcom_rpm-regulator.c const char *key; key 698 drivers/regulator/qcom_rpm-regulator.c key = "bias-pull-down"; key 699 drivers/regulator/qcom_rpm-regulator.c if (of_property_read_bool(node, key)) { key 702 drivers/regulator/qcom_rpm-regulator.c dev_err(dev, "%s is invalid", key); key 714 drivers/regulator/qcom_rpm-regulator.c key = "qcom,power-mode-hysteretic"; key 715 drivers/regulator/qcom_rpm-regulator.c pwm = !of_property_read_bool(node, key); key 727 drivers/regulator/qcom_rpm-regulator.c key = "qcom,force-mode"; key 728 drivers/regulator/qcom_rpm-regulator.c ret = of_property_read_u32(node, key, &val); key 732 drivers/regulator/qcom_rpm-regulator.c dev_err(dev, "failed to read %s\n", key); key 34 drivers/regulator/qcom_smd-regulator.c __le32 key; key 50 drivers/regulator/qcom_smd-regulator.c req[reqlen].key = cpu_to_le32(RPM_KEY_SWEN); key 57 drivers/regulator/qcom_smd-regulator.c req[reqlen].key = cpu_to_le32(RPM_KEY_UV); key 64 drivers/regulator/qcom_smd-regulator.c req[reqlen].key = cpu_to_le32(RPM_KEY_MA); key 1343 drivers/rpmsg/qcom_glink_native.c const char *key; key 1347 drivers/rpmsg/qcom_glink_native.c key = "qcom,glink-channels"; key 1348 drivers/rpmsg/qcom_glink_native.c ret = of_property_read_string(child, key, &name); key 1000 drivers/rpmsg/qcom_smd.c const char *key; key 1004 drivers/rpmsg/qcom_smd.c key = "qcom,smd-channels"; key 1005 drivers/rpmsg/qcom_smd.c ret = of_property_read_string(child, key, &name); key 1325 drivers/rpmsg/qcom_smd.c const char *key; key 1337 drivers/rpmsg/qcom_smd.c key = "qcom,smd-edge"; key 1338 drivers/rpmsg/qcom_smd.c ret = of_property_read_u32(node, key, &edge->edge_id); key 1340 drivers/rpmsg/qcom_smd.c dev_err(dev, "edge missing %s property\n", key); key 1345 drivers/rpmsg/qcom_smd.c key = "qcom,remote-pid"; key 1346 drivers/rpmsg/qcom_smd.c of_property_read_u32(node, key, &edge->remote_pid); key 1367 drivers/rpmsg/qcom_smd.c key = "qcom,ipc"; key 1368 drivers/rpmsg/qcom_smd.c ret = of_property_read_u32_index(node, key, 1, &edge->ipc_offset); key 1370 drivers/rpmsg/qcom_smd.c dev_err(dev, "no offset in %s\n", key); key 1374 drivers/rpmsg/qcom_smd.c ret = of_property_read_u32_index(node, key, 2, &edge->ipc_bit); key 1376 drivers/rpmsg/qcom_smd.c dev_err(dev, "no bit in %s\n", key); key 182 drivers/s390/block/dasd_diag.c private->iob.key = 0; key 409 drivers/s390/block/dasd_diag.c private->iob.key = 0; key 72 drivers/s390/block/dasd_diag.h u8 key; key 25 drivers/s390/char/ctrlchar.c handle_sysrq(sysrq->key); key 61 drivers/s390/char/ctrlchar.c ctrlchar_sysrq.key = buf[2]; key 27 drivers/s390/char/ctrlchar.h int key; key 236 drivers/s390/char/sclp.h u8 key; key 394 drivers/s390/char/sclp.h sclp_find_gds_subvector(void *start, void *end, u8 key) key 399 drivers/s390/char/sclp.h if (sv->key == key) key 429 drivers/s390/char/sclp_tty.c if (sv->key == 0x30) key 441 drivers/s390/char/sclp_tty.c if (sv->key == GDS_KEY_SELFDEFTEXTMSG) key 506 drivers/s390/char/sclp_vt220.c sysrq.key = buffer[i]; key 815 drivers/s390/cio/chsc.c u32 key : 4; key 837 drivers/s390/cio/chsc.c secm_area->key = PAGE_DEFAULT_KEY >> 4; key 246 drivers/s390/cio/chsc_sch.c chsc_area->header.key = PAGE_DEFAULT_KEY >> 4; key 126 drivers/s390/cio/cio.c __u8 key) /* storage key */ key 149 drivers/s390/cio/cio.c orb->cmd.key = key >> 4; key 714 drivers/s390/cio/cio.c int cio_tm_start_key(struct subchannel *sch, struct tcw *tcw, u8 lpm, u8 key) key 721 drivers/s390/cio/cio.c orb->tm.key = key >> 4; key 137 drivers/s390/cio/cio.h int cio_tm_start_key(struct subchannel *sch, struct tcw *tcw, u8 lpm, u8 key); key 192 drivers/s390/cio/device_ops.c unsigned long intparm, __u8 lpm, __u8 key, key 229 drivers/s390/cio/device_ops.c ret = cio_start_key (sch, cpa, lpm, key); key 272 drivers/s390/cio/device_ops.c unsigned long intparm, __u8 lpm, __u8 key, key 275 drivers/s390/cio/device_ops.c return ccw_device_start_timeout_key(cdev, cpa, intparm, lpm, key, key 540 drivers/s390/cio/device_ops.c unsigned long intparm, u8 lpm, u8 key, key 567 drivers/s390/cio/device_ops.c rc = cio_tm_start_key(sch, tcw, lpm, key); key 589 drivers/s390/cio/device_ops.c unsigned long intparm, u8 lpm, u8 key) key 591 drivers/s390/cio/device_ops.c return ccw_device_tm_start_timeout_key(cdev, tcw, intparm, lpm, key, 0); key 235 drivers/s390/cio/device_status.c cdev_irb->scsw.cmd.key = irb->scsw.cmd.key; key 67 drivers/s390/cio/eadm_sch.c orb->eadm.key = PAGE_DEFAULT_KEY >> 4; key 20 drivers/s390/cio/orb.h u32 key:4; /* flags, like key, suspend control, etc. */ key 45 drivers/s390/cio/orb.h u32 key:4; key 68 drivers/s390/cio/orb.h u32 key:4; key 781 drivers/s390/cio/vfio_ccw_cp.c orb->cmd.key = PAGE_DEFAULT_KEY >> 4; key 132 drivers/s390/crypto/pkey_api.c static int pkey_skey2pkey(const u8 *key, struct pkey_protkey *pkey) key 136 drivers/s390/crypto/pkey_api.c struct keytoken_header *hdr = (struct keytoken_header *)key; key 146 drivers/s390/crypto/pkey_api.c rc = cca_findcard(key, &cardnr, &domain, verify); key 154 drivers/s390/crypto/pkey_api.c key, pkey->protkey, key 159 drivers/s390/crypto/pkey_api.c key, pkey->protkey, key 265 drivers/s390/crypto/pkey_api.c u8 key[MAXPROTKEYSIZE]; key 290 drivers/s390/crypto/pkey_api.c memcpy(param.key, protkey->protkey, sizeof(param.key)); key 305 drivers/s390/crypto/pkey_api.c static int pkey_nonccatok2pkey(const u8 *key, u32 keylen, key 308 drivers/s390/crypto/pkey_api.c struct keytoken_header *hdr = (struct keytoken_header *)key; key 316 drivers/s390/crypto/pkey_api.c t = (struct protaeskeytoken *)key; key 333 drivers/s390/crypto/pkey_api.c static int pkey_ccainttok2pkey(const u8 *key, u32 keylen, key 336 drivers/s390/crypto/pkey_api.c struct keytoken_header *hdr = (struct keytoken_header *)key; key 353 drivers/s390/crypto/pkey_api.c return pkey_skey2pkey(key, protkey); key 359 drivers/s390/crypto/pkey_api.c int pkey_keyblob2pkey(const u8 *key, u32 keylen, key 363 drivers/s390/crypto/pkey_api.c struct keytoken_header *hdr = (struct keytoken_header *)key; key 372 drivers/s390/crypto/pkey_api.c rc = pkey_nonccatok2pkey(key, keylen, protkey); key 375 drivers/s390/crypto/pkey_api.c rc = pkey_ccainttok2pkey(key, keylen, protkey); key 483 drivers/s390/crypto/pkey_api.c static int pkey_verifykey2(const u8 *key, size_t keylen, key 490 drivers/s390/crypto/pkey_api.c struct keytoken_header *hdr = (struct keytoken_header *)key; key 497 drivers/s390/crypto/pkey_api.c struct secaeskeytoken *t = (struct secaeskeytoken *)key; key 499 drivers/s390/crypto/pkey_api.c rc = cca_check_secaeskeytoken(debug_info, 3, key, 0); key 525 drivers/s390/crypto/pkey_api.c struct cipherkeytoken *t = (struct cipherkeytoken *)key; key 527 drivers/s390/crypto/pkey_api.c rc = cca_check_secaescipherkey(debug_info, 3, key, 0, 1); key 568 drivers/s390/crypto/pkey_api.c const u8 *key, size_t keylen, key 572 drivers/s390/crypto/pkey_api.c struct keytoken_header *hdr = (struct keytoken_header *)key; key 583 drivers/s390/crypto/pkey_api.c return pkey_nonccatok2pkey(key, keylen, pkey); key 589 drivers/s390/crypto/pkey_api.c if (cca_check_secaeskeytoken(debug_info, 3, key, 0)) key 595 drivers/s390/crypto/pkey_api.c if (cca_check_secaescipherkey(debug_info, 3, key, 0, 1)) key 615 drivers/s390/crypto/pkey_api.c rc = cca_sec2protkey(card, dom, key, pkey->protkey, key 618 drivers/s390/crypto/pkey_api.c rc = cca_cipher2protkey(card, dom, key, pkey->protkey, key 627 drivers/s390/crypto/pkey_api.c static int pkey_apqns4key(const u8 *key, size_t keylen, u32 flags, key 632 drivers/s390/crypto/pkey_api.c struct keytoken_header *hdr = (struct keytoken_header *)key; key 644 drivers/s390/crypto/pkey_api.c struct secaeskeytoken *t = (struct secaeskeytoken *)key; key 651 drivers/s390/crypto/pkey_api.c struct cipherkeytoken *t = (struct cipherkeytoken *)key; key 896 drivers/s390/crypto/pkey_api.c kkey = _copy_key_from_user(ktp.key, ktp.keylen); key 934 drivers/s390/crypto/pkey_api.c if (kgs.key) { key 939 drivers/s390/crypto/pkey_api.c if (copy_to_user(kgs.key, kkey, klen)) { key 976 drivers/s390/crypto/pkey_api.c if (kcs.key) { key 981 drivers/s390/crypto/pkey_api.c if (copy_to_user(kcs.key, kkey, klen)) { key 1000 drivers/s390/crypto/pkey_api.c kkey = _copy_key_from_user(kvk.key, kvk.keylen); key 1025 drivers/s390/crypto/pkey_api.c kkey = _copy_key_from_user(ktp.key, ktp.keylen); key 1058 drivers/s390/crypto/pkey_api.c kkey = _copy_key_from_user(kak.key, kak.keylen); key 115 drivers/s390/crypto/zcrypt_cca_key.h } __packed *key = p; key 128 drivers/s390/crypto/zcrypt_cca_key.h memset(key, 0, sizeof(*key)); key 130 drivers/s390/crypto/zcrypt_cca_key.h key->pubHdr = static_pub_hdr; key 131 drivers/s390/crypto/zcrypt_cca_key.h key->pubSec = static_pub_sec; key 134 drivers/s390/crypto/zcrypt_cca_key.h temp = key->exponent; key 149 drivers/s390/crypto/zcrypt_cca_key.h key->pubSec.modulus_bit_len = 8 * mex->inputdatalength; key 150 drivers/s390/crypto/zcrypt_cca_key.h key->pubSec.modulus_byte_len = mex->inputdatalength; key 151 drivers/s390/crypto/zcrypt_cca_key.h key->pubSec.exponent_len = mex->inputdatalength - i; key 152 drivers/s390/crypto/zcrypt_cca_key.h key->pubSec.section_length = sizeof(key->pubSec) + key 154 drivers/s390/crypto/zcrypt_cca_key.h key->pubHdr.token_length = key 155 drivers/s390/crypto/zcrypt_cca_key.h key->pubSec.section_length + sizeof(key->pubHdr); key 156 drivers/s390/crypto/zcrypt_cca_key.h key->t6_hdr.ulen = key->pubHdr.token_length + 4; key 157 drivers/s390/crypto/zcrypt_cca_key.h key->t6_hdr.blen = key->pubHdr.token_length + 6; key 158 drivers/s390/crypto/zcrypt_cca_key.h return sizeof(*key) + 2*mex->inputdatalength - i; key 184 drivers/s390/crypto/zcrypt_cca_key.h } __packed *key = p; key 197 drivers/s390/crypto/zcrypt_cca_key.h memset(key, 0, sizeof(*key)); key 203 drivers/s390/crypto/zcrypt_cca_key.h size = sizeof(*key) + key_len + sizeof(*pub) + 3; key 206 drivers/s390/crypto/zcrypt_cca_key.h key->t6_hdr.blen = size; key 207 drivers/s390/crypto/zcrypt_cca_key.h key->t6_hdr.ulen = size - 2; key 210 drivers/s390/crypto/zcrypt_cca_key.h key->token.token_identifier = CCA_TKN_HDR_ID_EXT; key 211 drivers/s390/crypto/zcrypt_cca_key.h key->token.token_length = size - 6; key 214 drivers/s390/crypto/zcrypt_cca_key.h key->pvt.section_identifier = CCA_PVT_EXT_CRT_SEC_ID_PVT; key 215 drivers/s390/crypto/zcrypt_cca_key.h key->pvt.section_length = sizeof(key->pvt) + key_len; key 216 drivers/s390/crypto/zcrypt_cca_key.h key->pvt.key_format = CCA_PVT_EXT_CRT_SEC_FMT_CL; key 217 drivers/s390/crypto/zcrypt_cca_key.h key->pvt.key_use_flags[0] = CCA_PVT_USAGE_ALL; key 218 drivers/s390/crypto/zcrypt_cca_key.h key->pvt.p_len = key->pvt.dp_len = key->pvt.u_len = long_len; key 219 drivers/s390/crypto/zcrypt_cca_key.h key->pvt.q_len = key->pvt.dq_len = short_len; key 220 drivers/s390/crypto/zcrypt_cca_key.h key->pvt.mod_len = crt->inputdatalength; key 221 drivers/s390/crypto/zcrypt_cca_key.h key->pvt.pad_len = pad_len; key 224 drivers/s390/crypto/zcrypt_cca_key.h if (copy_from_user(key->key_parts, crt->np_prime, long_len) || key 225 drivers/s390/crypto/zcrypt_cca_key.h copy_from_user(key->key_parts + long_len, key 227 drivers/s390/crypto/zcrypt_cca_key.h copy_from_user(key->key_parts + long_len + short_len, key 229 drivers/s390/crypto/zcrypt_cca_key.h copy_from_user(key->key_parts + 2*long_len + short_len, key 231 drivers/s390/crypto/zcrypt_cca_key.h copy_from_user(key->key_parts + 2*long_len + 2*short_len, key 234 drivers/s390/crypto/zcrypt_cca_key.h memset(key->key_parts + 3*long_len + 2*short_len + pad_len, key 236 drivers/s390/crypto/zcrypt_cca_key.h pub = (struct cca_public_sec *)(key->key_parts + key_len); key 589 drivers/s390/crypto/zcrypt_ccamisc.c u8 key[64]; /* the key (len bytes) */ key 683 drivers/s390/crypto/zcrypt_ccamisc.c memcpy(protkey, prepparm->lv3.keyblock.key, prepparm->lv3.keyblock.len); key 1187 drivers/s390/crypto/zcrypt_ccamisc.c u8 key[64]; /* the key (keylen bytes) */ key 1301 drivers/s390/crypto/zcrypt_ccamisc.c memcpy(protkey, prepparm->vud.ckb.key, prepparm->vud.ckb.keylen); key 1651 drivers/s390/crypto/zcrypt_ccamisc.c int cca_findcard(const u8 *key, u16 *pcardnr, u16 *pdomain, int verify) key 1655 drivers/s390/crypto/zcrypt_ccamisc.c const struct keytoken_header *hdr = (struct keytoken_header *) key; key 1662 drivers/s390/crypto/zcrypt_ccamisc.c mkvp = ((struct secaeskeytoken *)key)->mkvp; key 1665 drivers/s390/crypto/zcrypt_ccamisc.c mkvp = ((struct cipherkeytoken *)key)->mkvp0; key 48 drivers/s390/crypto/zcrypt_ccamisc.h u8 key[32]; /* key value (encrypted) */ key 175 drivers/s390/crypto/zcrypt_ccamisc.h int cca_findcard(const u8 *key, u16 *pcardnr, u16 *pdomain, int verify); key 79 drivers/s390/net/qeth_l3_main.c u64 key = qeth_l3_ipaddr_hash(query); key 83 drivers/s390/net/qeth_l3_main.c hash_for_each_possible(card->ip_mc_htable, addr, hnode, key) key 87 drivers/s390/net/qeth_l3_main.c hash_for_each_possible(card->ip_htable, addr, hnode, key) key 84 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c DBT key; key 86 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c key.data = symbol->name; key 87 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c key.size = strlen(symbol->name); key 88 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c symtable->del(symtable, &key, /*flags*/0); key 145 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c DBT key; key 148 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c while (symtable->seq(symtable, &key, &data, R_FIRST) == 0) { key 166 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c DBT key; key 170 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c key.data = (void *)name; key 171 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c key.size = strlen(name); key 173 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c if ((retval = symtable->get(symtable, &key, &data, /*flags*/0)) != 0) { key 185 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c if (symtable->put(symtable, &key, &data, key 200 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c if (symtable->put(symtable, &key, &data, /*flags*/0) !=0) { key 475 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c DBT key; key 491 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c while (symtable->seq(symtable, &key, &data, flag) == 0) { key 365 drivers/scsi/constants.c scsi_sense_key_string(unsigned char key) key 367 drivers/scsi/constants.c if (key < ARRAY_SIZE(snstext)) key 368 drivers/scsi/constants.c return snstext[key]; key 1917 drivers/scsi/gdth.c sd.key = NO_SENSE; key 944 drivers/scsi/gdth.h u8 key; key 1306 drivers/scsi/ibmvscsi/ibmvfc.c md[i].key = 0; key 1373 drivers/scsi/ibmvscsi/ibmvfc.c data->key = 0; key 2239 drivers/scsi/ibmvscsi/ibmvfc.c static int ibmvfc_match_key(struct ibmvfc_event *evt, void *key) key 2241 drivers/scsi/ibmvscsi/ibmvfc.c unsigned long cancel_key = (unsigned long)key; key 663 drivers/scsi/ibmvscsi/ibmvscsi.c descr->key = 0; key 707 drivers/scsi/ibmvscsi/ibmvscsi.c indirect->table_desc.key = 0; key 499 drivers/scsi/ips.c char *key; key 511 drivers/scsi/ips.c while ((key = strsep(&ips_str, ",."))) { key 512 drivers/scsi/ips.c if (!*key) key 514 drivers/scsi/ips.c value = strchr(key, ':'); key 523 drivers/scsi/ips.c (key, options[i].option_name, key 1600 drivers/scsi/mvsas/mv_sas.c int key, int asc, int ascq) key 1608 drivers/scsi/mvsas/mv_sas.c "fit sense %x:%x:%x", len, key, asc, ascq); key 1613 drivers/scsi/mvsas/mv_sas.c buffer[1] = key; /* Sense Key */ key 1621 drivers/scsi/mvsas/mv_sas.c "fit sense %x:%x:%x", len, key, asc, ascq); key 1626 drivers/scsi/mvsas/mv_sas.c buffer[2] = key; /* Sense Key */ key 1639 drivers/scsi/mvsas/mv_sas.c u8 key, u8 asc, u8 asc_q) key 1646 drivers/scsi/mvsas/mv_sas.c key, asc, asc_q); key 3563 drivers/scsi/qla2xxx/qla_sup.c qla2xxx_get_vpd_field(scsi_qla_host_t *vha, char *key, char *str, size_t size) key 3576 drivers/scsi/qla2xxx/qla_sup.c if (!strncmp(pos, key, strlen(key))) key 194 drivers/scsi/qla2xxx/qla_target.c uint32_t key; key 201 drivers/scsi/qla2xxx/qla_target.c key = be_to_port_id(d_id).b24; key 203 drivers/scsi/qla2xxx/qla_target.c host = btree_lookup32(&vha->hw->tgt.host_map, key); key 206 drivers/scsi/qla2xxx/qla_target.c "Unable to find host %06x\n", key); key 1575 drivers/scsi/qla2xxx/qla_target.c u64 key = 0; key 1602 drivers/scsi/qla2xxx/qla_target.c btree_for_each_safe64(&tgt->lun_qpair_map, key, node) key 1603 drivers/scsi/qla2xxx/qla_target.c btree_remove64(&tgt->lun_qpair_map, key); key 1957 drivers/scsi/qla2xxx/qla_target.c uint32_t key; key 1960 drivers/scsi/qla2xxx/qla_target.c key = sid_to_key(s_id); key 1969 drivers/scsi/qla2xxx/qla_target.c if (op_key == key && op_lun == lun) key 1980 drivers/scsi/qla2xxx/qla_target.c if (op_key == key && op_lun == lun) key 1991 drivers/scsi/qla2xxx/qla_target.c if (cmd_key == key && cmd_lun == lun) key 4168 drivers/scsi/qla2xxx/qla_target.c u64 key = 0; key 4176 drivers/scsi/qla2xxx/qla_target.c btree_for_each_safe64(&tgt->lun_qpair_map, key, node) key 4177 drivers/scsi/qla2xxx/qla_target.c btree_remove64(&tgt->lun_qpair_map, key); key 4180 drivers/scsi/qla2xxx/qla_target.c for (key = 0; key < ha->max_qpairs; key++) key 4181 drivers/scsi/qla2xxx/qla_target.c if (ha->queue_pair_map[key]) key 4182 drivers/scsi/qla2xxx/qla_target.c ha->queue_pair_map[key]->lun_cnt = 0; key 4632 drivers/scsi/qla2xxx/qla_target.c uint32_t key; key 4636 drivers/scsi/qla2xxx/qla_target.c key = (((u32)s_id->b.domain << 16) | key 4644 drivers/scsi/qla2xxx/qla_target.c if (op_key == key) { key 4653 drivers/scsi/qla2xxx/qla_target.c if (op_key == key) { key 4662 drivers/scsi/qla2xxx/qla_target.c if (cmd_key == key) { key 6447 drivers/scsi/qla2xxx/qla_target.c u32 key = 0; key 6449 drivers/scsi/qla2xxx/qla_target.c btree_for_each_safe32(&ha->tgt.host_map, key, node) key 6450 drivers/scsi/qla2xxx/qla_target.c btree_remove32(&ha->tgt.host_map, key); key 7220 drivers/scsi/qla2xxx/qla_target.c u32 key; key 7226 drivers/scsi/qla2xxx/qla_target.c key = vha->d_id.b24; key 7233 drivers/scsi/qla2xxx/qla_target.c slot = btree_lookup32(&vha->hw->tgt.host_map, key); key 7236 drivers/scsi/qla2xxx/qla_target.c "Save vha in host_map %p %06x\n", vha, key); key 7238 drivers/scsi/qla2xxx/qla_target.c key, vha, GFP_ATOMIC); key 7242 drivers/scsi/qla2xxx/qla_target.c key); key 7246 drivers/scsi/qla2xxx/qla_target.c "replace existing vha in host_map %p %06x\n", vha, key); key 7247 drivers/scsi/qla2xxx/qla_target.c btree_update32(&vha->hw->tgt.host_map, key, vha); key 7254 drivers/scsi/qla2xxx/qla_target.c "clear vha in host_map %p %06x\n", vha, key); key 7255 drivers/scsi/qla2xxx/qla_target.c slot = btree_lookup32(&vha->hw->tgt.host_map, key); key 7257 drivers/scsi/qla2xxx/qla_target.c btree_remove32(&vha->hw->tgt.host_map, key); key 1152 drivers/scsi/qla2xxx/tcm_qla2xxx.c u32 key; key 1161 drivers/scsi/qla2xxx/tcm_qla2xxx.c key = sid_to_key(s_id); key 1162 drivers/scsi/qla2xxx/tcm_qla2xxx.c pr_debug("find_sess_by_s_id: 0x%06x\n", key); key 1164 drivers/scsi/qla2xxx/tcm_qla2xxx.c se_nacl = btree_lookup32(&lport->lport_fcport_map, key); key 1166 drivers/scsi/qla2xxx/tcm_qla2xxx.c pr_debug("Unable to locate s_id: 0x%06x\n", key); key 1192 drivers/scsi/qla2xxx/tcm_qla2xxx.c u32 key; key 1196 drivers/scsi/qla2xxx/tcm_qla2xxx.c key = sid_to_key(s_id); key 1197 drivers/scsi/qla2xxx/tcm_qla2xxx.c pr_debug("set_sess_by_s_id: %06x\n", key); key 1199 drivers/scsi/qla2xxx/tcm_qla2xxx.c slot = btree_lookup32(&lport->lport_fcport_map, key); key 1203 drivers/scsi/qla2xxx/tcm_qla2xxx.c nacl->nport_id = key; key 1204 drivers/scsi/qla2xxx/tcm_qla2xxx.c rc = btree_insert32(&lport->lport_fcport_map, key, key 1208 drivers/scsi/qla2xxx/tcm_qla2xxx.c (int)key); key 1221 drivers/scsi/qla2xxx/tcm_qla2xxx.c btree_remove32(&lport->lport_fcport_map, key); key 1226 drivers/scsi/qla2xxx/tcm_qla2xxx.c btree_update32(&lport->lport_fcport_map, key, new_se_nacl); key 1234 drivers/scsi/qla2xxx/tcm_qla2xxx.c btree_remove32(&lport->lport_fcport_map, key); key 1239 drivers/scsi/qla2xxx/tcm_qla2xxx.c btree_update32(&lport->lport_fcport_map, key, new_se_nacl); key 1481 drivers/scsi/qla2xxx/tcm_qla2xxx.c u32 key; key 1509 drivers/scsi/qla2xxx/tcm_qla2xxx.c key = (((u32) sess->d_id.b.domain << 16) | key 1513 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (btree_lookup32(&lport->lport_fcport_map, key)) key 1514 drivers/scsi/qla2xxx/tcm_qla2xxx.c WARN(btree_remove32(&lport->lport_fcport_map, key) != key 1523 drivers/scsi/qla2xxx/tcm_qla2xxx.c key = (((u32) s_id.b.domain << 16) | key 1527 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (btree_lookup32(&lport->lport_fcport_map, key)) { key 1530 drivers/scsi/qla2xxx/tcm_qla2xxx.c btree_update32(&lport->lport_fcport_map, key, se_nacl); key 1532 drivers/scsi/qla2xxx/tcm_qla2xxx.c btree_insert32(&lport->lport_fcport_map, key, se_nacl, key 1537 drivers/scsi/qla2xxx/tcm_qla2xxx.c nacl->nport_id = key; key 1653 drivers/scsi/qla2xxx/tcm_qla2xxx.c u32 key = 0; key 1666 drivers/scsi/qla2xxx/tcm_qla2xxx.c btree_for_each_safe32(&lport->lport_fcport_map, key, node) key 1667 drivers/scsi/qla2xxx/tcm_qla2xxx.c btree_remove32(&lport->lport_fcport_map, key); key 232 drivers/scsi/scsi_common.c void scsi_build_sense_buffer(int desc, u8 *buf, u8 key, u8 asc, u8 ascq) key 236 drivers/scsi/scsi_common.c buf[1] = key; key 242 drivers/scsi/scsi_common.c buf[2] = key; key 806 drivers/scsi/scsi_debug.c static void mk_sense_buffer(struct scsi_cmnd *scp, int key, int asc, int asq) key 818 drivers/scsi/scsi_debug.c scsi_build_sense_buffer(sdebug_dsense, sbuff, key, asc, asq); key 823 drivers/scsi/scsi_debug.c my_name, key, asc, asq); key 33 drivers/scsi/scsi_devinfo.c int key; /* unique numeric identifier */ key 265 drivers/scsi/scsi_devinfo.c static struct scsi_dev_info_list_table *scsi_devinfo_lookup_by_key(int key) key 271 drivers/scsi/scsi_devinfo.c if (devinfo_table->key == key) { key 348 drivers/scsi/scsi_devinfo.c enum scsi_devinfo_key key) key 352 drivers/scsi/scsi_devinfo.c scsi_devinfo_lookup_by_key(key); key 411 drivers/scsi/scsi_devinfo.c const char *model, enum scsi_devinfo_key key) key 415 drivers/scsi/scsi_devinfo.c scsi_devinfo_lookup_by_key(key); key 495 drivers/scsi/scsi_devinfo.c enum scsi_devinfo_key key) key 499 drivers/scsi/scsi_devinfo.c found = scsi_dev_info_list_find(vendor, model, key); key 597 drivers/scsi/scsi_devinfo.c enum scsi_devinfo_key key) key 601 drivers/scsi/scsi_devinfo.c devinfo = scsi_dev_info_list_find(vendor, model, key); key 606 drivers/scsi/scsi_devinfo.c if (key != SCSI_DEVINFO_GLOBAL) key 779 drivers/scsi/scsi_devinfo.c int scsi_dev_info_add_list(enum scsi_devinfo_key key, const char *name) key 782 drivers/scsi/scsi_devinfo.c scsi_devinfo_lookup_by_key(key); key 796 drivers/scsi/scsi_devinfo.c devinfo_table->key = key; key 811 drivers/scsi/scsi_devinfo.c int scsi_dev_info_remove_list(enum scsi_devinfo_key key) key 815 drivers/scsi/scsi_devinfo.c scsi_devinfo_lookup_by_key(key); key 59 drivers/scsi/scsi_priv.h enum scsi_devinfo_key key); key 63 drivers/scsi/scsi_priv.h enum scsi_devinfo_key key); key 65 drivers/scsi/scsi_priv.h enum scsi_devinfo_key key); key 66 drivers/scsi/scsi_priv.h extern int scsi_dev_info_add_list(enum scsi_devinfo_key key, const char *name); key 67 drivers/scsi/scsi_priv.h extern int scsi_dev_info_remove_list(enum scsi_devinfo_key key); key 1745 drivers/scsi/sd.c u64 key, u64 sa_key, u8 type, u8 flags) key 1758 drivers/scsi/sd.c put_unaligned_be64(key, &data[0]); key 1784 drivers/scsi/sd.c static int sd_pr_reserve(struct block_device *bdev, u64 key, enum pr_type type, key 1789 drivers/scsi/sd.c return sd_pr_command(bdev, 0x01, key, 0, sd_pr_type(type), 0); key 1792 drivers/scsi/sd.c static int sd_pr_release(struct block_device *bdev, u64 key, enum pr_type type) key 1794 drivers/scsi/sd.c return sd_pr_command(bdev, 0x02, key, 0, sd_pr_type(type), 0); key 1804 drivers/scsi/sd.c static int sd_pr_clear(struct block_device *bdev, u64 key) key 1806 drivers/scsi/sd.c return sd_pr_command(bdev, 0x03, key, 0, 0, 0); key 586 drivers/scsi/ufs/ufs-qcom.c const char *key = "qcom,bus-vector-names"; key 594 drivers/scsi/ufs/ufs-qcom.c err = of_property_match_string(np, key, "MAX"); key 596 drivers/scsi/ufs/ufs-qcom.c err = of_property_match_string(np, key, speed_mode); key 1806 drivers/scsi/wd33c93.c check_setup_args(char *key, int *flags, int *val, char *buf) key 1814 drivers/scsi/wd33c93.c if (!strncmp(setup_args[x], key, strlen(key))) key 1822 drivers/scsi/wd33c93.c cp = setup_args[x] + strlen(key); key 99 drivers/sfi/sfi_acpi.c struct sfi_table_key key = SFI_ANY_KEY; key 106 drivers/sfi/sfi_acpi.c ret = sfi_check_table(xsdt_va->table_offset_entry[i], &key); key 127 drivers/sfi/sfi_acpi.c static struct acpi_table_header *sfi_acpi_get_table(struct sfi_table_key *key) key 134 drivers/sfi/sfi_acpi.c ret = sfi_check_table(xsdt_va->table_offset_entry[i], key); key 156 drivers/sfi/sfi_acpi.c struct sfi_table_key key; key 162 drivers/sfi/sfi_acpi.c key.sig = signature; key 163 drivers/sfi/sfi_acpi.c key.oem_id = oem_id; key 164 drivers/sfi/sfi_acpi.c key.oem_table_id = oem_table_id; key 166 drivers/sfi/sfi_acpi.c table = sfi_acpi_get_table(&key); key 182 drivers/sfi/sfi_acpi.c struct sfi_table_key key; key 185 drivers/sfi/sfi_acpi.c key.sig = tbl_attr->name; key 186 drivers/sfi/sfi_acpi.c key.oem_id = NULL; key 187 drivers/sfi/sfi_acpi.c key.oem_table_id = NULL; key 189 drivers/sfi/sfi_acpi.c th = sfi_acpi_get_table(&key); key 201 drivers/sfi/sfi_core.c struct sfi_table_key *key) key 204 drivers/sfi/sfi_core.c if (strncmp(th->sig, key->sig, SFI_SIGNATURE_SIZE) key 205 drivers/sfi/sfi_core.c || (key->oem_id && strncmp(th->oem_id, key 206 drivers/sfi/sfi_core.c key->oem_id, SFI_OEM_ID_SIZE)) key 207 drivers/sfi/sfi_core.c || (key->oem_table_id && strncmp(th->oem_table_id, key 208 drivers/sfi/sfi_core.c key->oem_table_id, SFI_OEM_TABLE_ID_SIZE))) key 232 drivers/sfi/sfi_core.c __ref sfi_check_table(u64 pa, struct sfi_table_key *key) key 241 drivers/sfi/sfi_core.c if (!key->sig) { key 246 drivers/sfi/sfi_core.c if (!sfi_table_check_key(th, key)) key 260 drivers/sfi/sfi_core.c struct sfi_table_header *sfi_get_table(struct sfi_table_key *key) key 267 drivers/sfi/sfi_core.c th = sfi_check_table(syst_va->pentry[i], key); key 285 drivers/sfi/sfi_core.c struct sfi_table_key key; key 291 drivers/sfi/sfi_core.c key.sig = signature; key 292 drivers/sfi/sfi_core.c key.oem_id = oem_id; key 293 drivers/sfi/sfi_core.c key.oem_table_id = oem_table_id; key 295 drivers/sfi/sfi_core.c table = sfi_get_table(&key); key 314 drivers/sfi/sfi_core.c struct sfi_table_key key = SFI_ANY_KEY; key 324 drivers/sfi/sfi_core.c ret = sfi_check_table(syst_va->pentry[i], &key); key 397 drivers/sfi/sfi_core.c struct sfi_table_key key; key 400 drivers/sfi/sfi_core.c key.sig = tbl_attr->name; key 401 drivers/sfi/sfi_core.c key.oem_id = NULL; key 402 drivers/sfi/sfi_core.c key.oem_table_id = NULL; key 405 drivers/sfi/sfi_core.c th = sfi_get_table(&key); key 77 drivers/sfi/sfi_core.h struct sfi_table_key *key); key 78 drivers/sfi/sfi_core.h struct sfi_table_header *sfi_get_table(struct sfi_table_key *key); key 121 drivers/sh/intc/chip.c struct intc_handle_int key; key 123 drivers/sh/intc/chip.c key.irq = irq; key 124 drivers/sh/intc/chip.c key.handle = 0; key 126 drivers/sh/intc/chip.c return bsearch(&key, hp, nr_hp, sizeof(*hp), intc_handle_int_cmp); key 73 drivers/soc/bcm/brcmstb/pm/pm-mips.c u8 key; key 47 drivers/soc/qcom/rpmpd.c .key = KEY_##r_key, \ key 55 drivers/soc/qcom/rpmpd.c .key = KEY_##r_key, \ key 63 drivers/soc/qcom/rpmpd.c .key = KEY_CORNER, \ key 71 drivers/soc/qcom/rpmpd.c .key = KEY_LEVEL, \ key 79 drivers/soc/qcom/rpmpd.c .key = KEY_FLOOR_CORNER, \ key 87 drivers/soc/qcom/rpmpd.c .key = KEY_FLOOR_LEVEL, \ key 91 drivers/soc/qcom/rpmpd.c __le32 key; key 107 drivers/soc/qcom/rpmpd.c __le32 key; key 210 drivers/soc/qcom/rpmpd.c .key = KEY_ENABLE, key 222 drivers/soc/qcom/rpmpd.c .key = pd->key, key 319 drivers/soc/qcom/rpmpd.c if (!pd->enabled && pd->key != KEY_FLOOR_CORNER && key 320 drivers/soc/qcom/rpmpd.c pd->key != KEY_FLOOR_LEVEL) key 412 drivers/soc/qcom/smp2p.c const char *key; key 425 drivers/soc/qcom/smp2p.c key = "qcom,ipc"; key 426 drivers/soc/qcom/smp2p.c ret = of_property_read_u32_index(dev->of_node, key, 1, &smp2p->ipc_offset); key 428 drivers/soc/qcom/smp2p.c dev_err(dev, "no offset in %s\n", key); key 432 drivers/soc/qcom/smp2p.c ret = of_property_read_u32_index(dev->of_node, key, 2, &smp2p->ipc_bit); key 434 drivers/soc/qcom/smp2p.c dev_err(dev, "no bit in %s\n", key); key 446 drivers/soc/qcom/smp2p.c const char *key; key 460 drivers/soc/qcom/smp2p.c key = "qcom,smem"; key 461 drivers/soc/qcom/smp2p.c ret = of_property_read_u32_array(pdev->dev.of_node, key, key 466 drivers/soc/qcom/smp2p.c key = "qcom,local-pid"; key 467 drivers/soc/qcom/smp2p.c ret = of_property_read_u32(pdev->dev.of_node, key, &smp2p->local_pid); key 471 drivers/soc/qcom/smp2p.c key = "qcom,remote-pid"; key 472 drivers/soc/qcom/smp2p.c ret = of_property_read_u32(pdev->dev.of_node, key, &smp2p->remote_pid); key 559 drivers/soc/qcom/smp2p.c dev_err(&pdev->dev, "failed to read %s\n", key); key 348 drivers/soc/qcom/smsm.c char key[16]; key 351 drivers/soc/qcom/smsm.c snprintf(key, sizeof(key), "qcom,ipc-%d", host_id); key 352 drivers/soc/qcom/smsm.c syscon = of_parse_phandle(node, key, 0); key 360 drivers/soc/qcom/smsm.c ret = of_property_read_u32_index(node, key, 1, &host->ipc_offset); key 362 drivers/soc/qcom/smsm.c dev_err(smsm->dev, "no offset in %s\n", key); key 366 drivers/soc/qcom/smsm.c ret = of_property_read_u32_index(node, key, 2, &host->ipc_bit); key 368 drivers/soc/qcom/smsm.c dev_err(smsm->dev, "no bit in %s\n", key); key 311 drivers/staging/comedi/drivers/ni_routes.c const int *key = vkey; key 314 drivers/staging/comedi/drivers/ni_routes.c if (*key < elt->dest) key 316 drivers/staging/comedi/drivers/ni_routes.c else if (*key > elt->dest) key 323 drivers/staging/comedi/drivers/ni_routes.c const int *key = vkey; key 326 drivers/staging/comedi/drivers/ni_routes.c if (*key < *elt) key 328 drivers/staging/comedi/drivers/ni_routes.c else if (*key > *elt) key 2000 drivers/staging/fwserial/fwserial.c int key, val; key 2024 drivers/staging/fwserial/fwserial.c while (fw_csr_iterator_next(&ci, &key, &val)) { key 2025 drivers/staging/fwserial/fwserial.c if (key == (CSR_OFFSET | CSR_DEPENDENT_INFO)) { key 2451 drivers/staging/fwserial/fwserial.c .key = (CSR_DIRECTORY | CSR_UNIT) << 24, key 198 drivers/staging/ks7010/ks_hostif.c michael_mic(u8 *key, u8 *data, unsigned int len, u8 priority, u8 *result) key 211 drivers/staging/ks7010/ks_hostif.c ret = crypto_shash_setkey(tfm, key, MICHAEL_MIC_KEY_LEN); key 347 drivers/staging/ks7010/ks_hostif.c struct wpa_key *key = &priv->wpa.key[key_index]; key 363 drivers/staging/ks7010/ks_hostif.c key->key_len) { key 374 drivers/staging/ks7010/ks_hostif.c ret = michael_mic(key->rx_mic_key, priv->rxp, priv->rx_size, key 1169 drivers/staging/ks7010/ks_hostif.c if (priv->wpa.rsn_enabled && priv->wpa.key[0].key_len) { key 1172 drivers/staging/ks7010/ks_hostif.c priv->wpa.key[1].key_len == 0 && key 1173 drivers/staging/ks7010/ks_hostif.c priv->wpa.key[2].key_len == 0 && key 1174 drivers/staging/ks7010/ks_hostif.c priv->wpa.key[3].key_len == 0) { key 1180 drivers/staging/ks7010/ks_hostif.c ret = michael_mic(priv->wpa.key[0].tx_mic_key, key 1987 drivers/staging/ks7010/ks_hostif.c &priv->wpa.key[0].key_val[0], key 1988 drivers/staging/ks7010/ks_hostif.c priv->wpa.key[0].key_len); key 1993 drivers/staging/ks7010/ks_hostif.c &priv->wpa.key[1].key_val[0], key 1994 drivers/staging/ks7010/ks_hostif.c priv->wpa.key[1].key_len); key 1999 drivers/staging/ks7010/ks_hostif.c &priv->wpa.key[2].key_val[0], key 2000 drivers/staging/ks7010/ks_hostif.c priv->wpa.key[2].key_len); key 2005 drivers/staging/ks7010/ks_hostif.c &priv->wpa.key[3].key_val[0], key 2006 drivers/staging/ks7010/ks_hostif.c priv->wpa.key[3].key_len); key 2010 drivers/staging/ks7010/ks_hostif.c &priv->wpa.key[0].rx_seq[0], key 2015 drivers/staging/ks7010/ks_hostif.c &priv->wpa.key[1].rx_seq[0], key 2020 drivers/staging/ks7010/ks_hostif.c &priv->wpa.key[2].rx_seq[0], key 347 drivers/staging/ks7010/ks_wlan.h struct wpa_key key[WPA_KEY_INDEX_MAX]; key 41 drivers/staging/ks7010/ks_wlan_net.c u8 key[16]; /* 40-bit and 104-bit keys */ key 774 drivers/staging/ks7010/ks_wlan_net.c struct wep_key key; key 792 drivers/staging/ks7010/ks_wlan_net.c key.len = (enc->length > MIN_KEY_SIZE) ? key 803 drivers/staging/ks7010/ks_wlan_net.c memset(key.key, 0, MAX_KEY_SIZE); key 805 drivers/staging/ks7010/ks_wlan_net.c if (copy_from_user(key.key, enc->pointer, enc->length)) { key 806 drivers/staging/ks7010/ks_wlan_net.c key.len = 0; key 810 drivers/staging/ks7010/ks_wlan_net.c priv->reg.wep_key[index].size = key.len; key 811 drivers/staging/ks7010/ks_wlan_net.c memcpy(&priv->reg.wep_key[index].val[0], &key.key[0], key 1541 drivers/staging/ks7010/ks_wlan_net.c struct wpa_key *key; key 1554 drivers/staging/ks7010/ks_wlan_net.c key = &priv->wpa.key[index]; key 1557 drivers/staging/ks7010/ks_wlan_net.c key->key_len = 0; key 1559 drivers/staging/ks7010/ks_wlan_net.c key->ext_flags = enc->ext_flags; key 1564 drivers/staging/ks7010/ks_wlan_net.c memcpy(&key->rx_seq[0], &enc->rx_seq[0], IW_ENCODE_SEQ_MAX_SIZE); key 1567 drivers/staging/ks7010/ks_wlan_net.c ether_addr_copy(&key->addr.sa_data[0], &enc->addr.sa_data[0]); key 1575 drivers/staging/ks7010/ks_wlan_net.c key->key_len = 0; key 1585 drivers/staging/ks7010/ks_wlan_net.c memcpy(&key->key_val[0], &enc->key[0], enc->key_len); key 1586 drivers/staging/ks7010/ks_wlan_net.c key->key_len = enc->key_len; key 1596 drivers/staging/ks7010/ks_wlan_net.c memcpy(&key->key_val[0], &enc->key[0], enc->key_len - 16); key 1597 drivers/staging/ks7010/ks_wlan_net.c key->key_len = enc->key_len - 16; key 1599 drivers/staging/ks7010/ks_wlan_net.c memcpy(&key->tx_mic_key[0], &enc->key[16], 8); key 1600 drivers/staging/ks7010/ks_wlan_net.c memcpy(&key->rx_mic_key[0], &enc->key[16], 8); key 1602 drivers/staging/ks7010/ks_wlan_net.c memcpy(&key->tx_mic_key[0], &enc->key[16], 8); key 1603 drivers/staging/ks7010/ks_wlan_net.c memcpy(&key->rx_mic_key[0], &enc->key[24], 8); key 1611 drivers/staging/ks7010/ks_wlan_net.c key->alg = enc->alg; key 1031 drivers/staging/octeon/octeon-stubs.h uint64_t key:1; key 1066 drivers/staging/octeon/octeon-stubs.h uint64_t key:1; key 1101 drivers/staging/octeon/octeon-stubs.h uint64_t key:1; key 1132 drivers/staging/octeon/octeon-stubs.h uint64_t key:1; key 574 drivers/staging/rtl8188eu/core/rtw_cmd.c memcpy(&psetstakey_para->key, &sta->dot118021x_UncstKey, 16); key 576 drivers/staging/rtl8188eu/core/rtw_cmd.c memcpy(&psetstakey_para->key, &psecuritypriv->dot118021XGrpKey[psecuritypriv->dot118021XGrpKeyid].skey, 16); key 1593 drivers/staging/rtl8188eu/core/rtw_mlme.c memcpy(&psetkeyparm->key[0], key 1598 drivers/staging/rtl8188eu/core/rtw_mlme.c memcpy(&psetkeyparm->key[0], key 1603 drivers/staging/rtl8188eu/core/rtw_mlme.c memcpy(&psetkeyparm->key, &psecuritypriv->dot118021XGrpKey[keyid], keylen); key 1608 drivers/staging/rtl8188eu/core/rtw_mlme.c memcpy(&psetkeyparm->key, &psecuritypriv->dot118021XGrpKey[keyid], keylen); key 5221 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c write_cam(padapter, pparm->keyid, ctrl, null_sta, pparm->key); key 5276 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c write_cam(padapter, cam_id, ctrl, pparm->addr, pparm->key); key 5292 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c write_cam(padapter, cam_id, ctrl, pparm->addr, pparm->key); key 25 drivers/staging/rtl8188eu/core/rtw_security.c static void arcfour_init(struct arc4context *parc4ctx, u8 *key, u32 key_len) key 42 drivers/staging/rtl8188eu/core/rtw_security.c stateindex = (stateindex + key[keyindex] + t) & 0xff; key 287 drivers/staging/rtl8188eu/core/rtw_security.c void rtw_secmicsetkey(struct mic_data *pmicdata, u8 *key) key 290 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->K0 = secmicgetuint32(key); key 291 drivers/staging/rtl8188eu/core/rtw_security.c pmicdata->K1 = secmicgetuint32(key + 4); key 345 drivers/staging/rtl8188eu/core/rtw_security.c void rtw_seccalctkipmic(u8 *key, u8 *header, u8 *data, u32 data_len, u8 *mic_code, u8 pri) key 350 drivers/staging/rtl8188eu/core/rtw_security.c rtw_secmicsetkey(&micdata, key); key 784 drivers/staging/rtl8188eu/core/rtw_security.c static void next_key(u8 *key, int round); key 788 drivers/staging/rtl8188eu/core/rtw_security.c static void aes128k128d(u8 *key, u8 *data, u8 *ciphertext); key 816 drivers/staging/rtl8188eu/core/rtw_security.c static void next_key(u8 *key, int round) key 825 drivers/staging/rtl8188eu/core/rtw_security.c sbox_key[0] = sbox(key[13]); key 826 drivers/staging/rtl8188eu/core/rtw_security.c sbox_key[1] = sbox(key[14]); key 827 drivers/staging/rtl8188eu/core/rtw_security.c sbox_key[2] = sbox(key[15]); key 828 drivers/staging/rtl8188eu/core/rtw_security.c sbox_key[3] = sbox(key[12]); key 832 drivers/staging/rtl8188eu/core/rtw_security.c xor_32(&key[0], sbox_key, &key[0]); key 833 drivers/staging/rtl8188eu/core/rtw_security.c key[0] = key[0] ^ rcon; key 835 drivers/staging/rtl8188eu/core/rtw_security.c xor_32(&key[4], &key[0], &key[4]); key 836 drivers/staging/rtl8188eu/core/rtw_security.c xor_32(&key[8], &key[4], &key[8]); key 837 drivers/staging/rtl8188eu/core/rtw_security.c xor_32(&key[12], &key[8], &key[12]); key 924 drivers/staging/rtl8188eu/core/rtw_security.c static void aes128k128d(u8 *key, u8 *data, u8 *ciphertext) key 933 drivers/staging/rtl8188eu/core/rtw_security.c round_key[i] = key[i]; key 1084 drivers/staging/rtl8188eu/core/rtw_security.c static int aes_cipher(u8 *key, uint hdrlen, u8 *pframe, uint plen) key 1149 drivers/staging/rtl8188eu/core/rtw_security.c aes128k128d(key, mic_iv, aes_out); key 1151 drivers/staging/rtl8188eu/core/rtw_security.c aes128k128d(key, chain_buffer, aes_out); key 1153 drivers/staging/rtl8188eu/core/rtw_security.c aes128k128d(key, chain_buffer, aes_out); key 1159 drivers/staging/rtl8188eu/core/rtw_security.c aes128k128d(key, chain_buffer, aes_out); key 1169 drivers/staging/rtl8188eu/core/rtw_security.c aes128k128d(key, chain_buffer, aes_out); key 1182 drivers/staging/rtl8188eu/core/rtw_security.c aes128k128d(key, ctr_preload, aes_out); key 1196 drivers/staging/rtl8188eu/core/rtw_security.c aes128k128d(key, ctr_preload, aes_out); key 1209 drivers/staging/rtl8188eu/core/rtw_security.c aes128k128d(key, ctr_preload, aes_out); key 1292 drivers/staging/rtl8188eu/core/rtw_security.c u8 *key, *pframe = skb->data; key 1305 drivers/staging/rtl8188eu/core/rtw_security.c key = psecuritypriv->dot118021XGrpKey[key_idx].skey; key 1308 drivers/staging/rtl8188eu/core/rtw_security.c key = stainfo->dot118021x_UncstKey.skey; key 1324 drivers/staging/rtl8188eu/core/rtw_security.c if (crypto_ops->set_key(key, key_length, NULL, crypto_private) < 0) { key 411 drivers/staging/rtl8188eu/core/rtw_wlan_util.c void write_cam(struct adapter *padapter, u8 entry, u16 ctrl, u8 *mac, u8 *key) key 429 drivers/staging/rtl8188eu/core/rtw_wlan_util.c val = key[i] | (key[i + 1] << 8) | (key[i + 2] << 16) | key 430 drivers/staging/rtl8188eu/core/rtw_wlan_util.c (key[i + 3] << 24); key 220 drivers/staging/rtl8188eu/include/ieee80211.h u8 key[0]; key 160 drivers/staging/rtl8188eu/include/rtw_cmd.h u8 key[16]; /* this could be 40 or 104 */ key 178 drivers/staging/rtl8188eu/include/rtw_cmd.h u8 key[16]; key 477 drivers/staging/rtl8188eu/include/rtw_mlme_ext.h void write_cam(struct adapter *padapter, u8 entry, u16 ctrl, u8 *mac, u8 *key); key 292 drivers/staging/rtl8188eu/include/rtw_security.h void rtw_secmicsetkey(struct mic_data *pmicdata, u8 *key); key 296 drivers/staging/rtl8188eu/include/rtw_security.h void rtw_seccalctkipmic(u8 *key, u8 *header, u8 *data, u32 data_len, key 361 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (param_len < (u32)((u8 *)param->u.crypt.key - (u8 *)param) + param->u.crypt.key_len) { key 416 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); key 451 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); key 454 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); key 455 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); key 463 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(padapter->securitypriv.dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16 )); key 464 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(padapter->securitypriv.dot118021XGrptxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[16]), 8); key 465 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(padapter->securitypriv.dot118021XGrprxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[24]), 8); key 1578 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c u32 key, ret = 0; key 1591 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c key = erq->flags & IW_ENCODE_INDEX; key 1605 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (key) { key 1606 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (key > WEP_KEYS) key 1608 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c key--; key 1612 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c key = padapter->securitypriv.dot11PrivacyKeyIndex; key 1613 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c DBG_88E("rtw_wx_set_enc, key =%d\n", key); key 1644 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c wep.KeyIndex = key; key 1654 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c padapter->securitypriv.dot11PrivacyKeyIndex = key; key 1656 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c DBG_88E("(keyindex_provided == 1), keyid =%d, key_len =%d\n", key, padapter->securitypriv.dot11DefKeylen[key]); key 1658 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c switch (padapter->securitypriv.dot11DefKeylen[key]) { key 1692 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c uint key; key 1705 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c key = erq->flags & IW_ENCODE_INDEX; key 1707 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (key) { key 1708 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (key > WEP_KEYS) key 1710 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c key--; key 1712 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c key = padapter->securitypriv.dot11PrivacyKeyIndex; key 1715 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c erq->flags = key + 1; key 1724 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c erq->length = padapter->securitypriv.dot11DefKeylen[key]; key 1726 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(keybuf, padapter->securitypriv.dot11DefKey[key].skey, padapter->securitypriv.dot11DefKeylen[key]); key 1916 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(param->u.crypt.key, pext + 1, pext->key_len); key 2106 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psetstakey_para->key, &psta->dot118021x_UncstKey, 16); key 2115 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c static int set_group_key(struct adapter *padapter, u8 *key, u8 alg, int keyid) key 2157 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(&(psetkeyparm->key[0]), key, keylen); key 2174 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c static int set_wep_key(struct adapter *padapter, u8 *key, u8 keylen, int keyid) key 2189 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c return set_group_key(padapter, key, alg, keyid); key 2256 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); key 2299 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); key 2308 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); key 2310 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrptxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[16]), 8); key 2311 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrprxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[24]), 8); key 2318 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); key 2326 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c set_group_key(padapter, param->u.crypt.key, psecuritypriv->dot118021XGrpPrivacy, param->u.crypt.idx); key 2339 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); key 2353 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); key 2354 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); key 2373 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); key 2381 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); key 2384 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrptxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[16]), 8); key 2385 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrprxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[24]), 8); key 2392 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); key 2403 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c set_group_key(padapter, param->u.crypt.key, psecuritypriv->dot118021XGrpPrivacy, param->u.crypt.idx); key 647 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c union iwreq_data *wrqu, char *key) key 651 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c return rtllib_wx_get_encode(priv->rtllib, info, wrqu, key); key 656 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c union iwreq_data *wrqu, char *key) key 684 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c ret = rtllib_wx_set_encode(priv->rtllib, info, wrqu, key); key 696 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c hwkey[i] |= key[4 * i + 0] & mask; key 701 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c hwkey[i] |= (key[4 * i + 1] & mask) << 8; key 702 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c hwkey[i] |= (key[4 * i + 2] & mask) << 16; key 703 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c hwkey[i] |= (key[4 * i + 3] & mask) << 24; key 886 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c u32 key[4] = {0}; key 914 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c memcpy((u8 *)key, ext->key, 16); key 919 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c rtl92e_set_key(dev, idx, idx, alg, zero, 0, key); key 920 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c rtl92e_set_swcam(dev, idx, idx, alg, zero, 0, key, 0); key 924 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c key); key 926 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c key, 0); key 932 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c (u8 *)ieee->ap_mac_addr, 0, key); key 934 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c (u8 *)ieee->ap_mac_addr, 0, key, 0); key 1954 drivers/staging/rtl8192e/rtllib.h union iwreq_data *wrqu, char *key); key 1957 drivers/staging/rtl8192e/rtllib.h union iwreq_data *wrqu, char *key); key 1960 drivers/staging/rtl8192e/rtllib.h union iwreq_data *wrqu, char *key); key 31 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c u8 key[CCMP_TK_LEN]; key 155 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c struct rtllib_ccmp_data *key = priv; key 172 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c key->tx_pn[i]++; key 173 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c if (key->tx_pn[i] != 0) key 178 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c *pos++ = key->tx_pn[5]; key 179 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c *pos++ = key->tx_pn[4]; key 181 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c *pos++ = (key->key_idx << 6) | (1 << 5) /* Ext IV included */; key 182 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c *pos++ = key->tx_pn[3]; key 183 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c *pos++ = key->tx_pn[2]; key 184 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c *pos++ = key->tx_pn[1]; key 185 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c *pos++ = key->tx_pn[0]; key 191 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c u8 *aad = key->tx_aad; key 196 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c req = aead_request_alloc(key->tfm, GFP_ATOMIC); key 200 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c aad_len = ccmp_init_iv_and_aad(hdr, key->tx_pn, iv, aad); key 224 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c struct rtllib_ccmp_data *key = priv; key 232 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c key->dot11RSNAStatsCCMPFormatErrors++; key 244 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c key->dot11RSNAStatsCCMPFormatErrors++; key 248 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c if (key->key_idx != keyidx) { key 250 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c key->key_idx, keyidx, priv); key 253 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c if (!key->key_set) { key 268 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c if (memcmp(pn, key->rx_pn, CCMP_PN_LEN) <= 0) { key 269 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c key->dot11RSNAStatsCCMPReplays++; key 276 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c u8 *aad = key->rx_aad; key 280 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c req = aead_request_alloc(key->tfm, GFP_ATOMIC); key 302 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c key->dot11RSNAStatsCCMPDecryptErrors++; key 306 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c memcpy(key->rx_pn, pn, CCMP_PN_LEN); key 317 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c static int rtllib_ccmp_set_key(void *key, int len, u8 *seq, void *priv) key 328 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c memcpy(data->key, key, CCMP_TK_LEN); key 339 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c crypto_aead_setkey(data->tfm, data->key, CCMP_TK_LEN)) key 351 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c static int rtllib_ccmp_get_key(void *key, int len, u8 *seq, void *priv) key 360 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c memcpy(key, data->key, CCMP_TK_LEN); key 27 drivers/staging/rtl8192e/rtllib_crypt_tkip.c u8 key[TKIP_KEY_LEN]; key 302 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, key 306 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, key 434 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkip_mixing_phase1(tkey->rx_ttak, tkey->key, key 438 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); key 499 drivers/staging/rtl8192e/rtllib_crypt_tkip.c static int michael_mic(struct crypto_shash *tfm_michael, u8 *key, u8 *hdr, key 507 drivers/staging/rtl8192e/rtllib_crypt_tkip.c if (crypto_shash_setkey(tfm_michael, key, 8)) key 577 drivers/staging/rtl8192e/rtllib_crypt_tkip.c if (michael_mic(tkey->tx_tfm_michael, &tkey->key[16], tkey->tx_hdr, key 622 drivers/staging/rtl8192e/rtllib_crypt_tkip.c if (michael_mic(tkey->rx_tfm_michael, &tkey->key[24], tkey->rx_hdr, key 655 drivers/staging/rtl8192e/rtllib_crypt_tkip.c static int rtllib_tkip_set_key(void *key, int len, u8 *seq, void *priv) key 673 drivers/staging/rtl8192e/rtllib_crypt_tkip.c memcpy(tkey->key, key, TKIP_KEY_LEN); key 690 drivers/staging/rtl8192e/rtllib_crypt_tkip.c static int rtllib_tkip_get_key(void *key, int len, u8 *seq, void *priv) key 699 drivers/staging/rtl8192e/rtllib_crypt_tkip.c memcpy(key, tkey->key, TKIP_KEY_LEN); key 23 drivers/staging/rtl8192e/rtllib_crypt_wep.c u8 key[WEP_KEY_LEN + 1]; key 89 drivers/staging/rtl8192e/rtllib_crypt_wep.c u8 key[WEP_KEY_LEN + 3]; key 125 drivers/staging/rtl8192e/rtllib_crypt_wep.c *pos++ = key[0] = (wep->iv >> 16) & 0xff; key 126 drivers/staging/rtl8192e/rtllib_crypt_wep.c *pos++ = key[1] = (wep->iv >> 8) & 0xff; key 127 drivers/staging/rtl8192e/rtllib_crypt_wep.c *pos++ = key[2] = wep->iv & 0xff; key 131 drivers/staging/rtl8192e/rtllib_crypt_wep.c memcpy(key + 3, wep->key, wep->key_len); key 145 drivers/staging/rtl8192e/rtllib_crypt_wep.c crypto_sync_skcipher_setkey(wep->tx_tfm, key, klen); key 169 drivers/staging/rtl8192e/rtllib_crypt_wep.c u8 key[WEP_KEY_LEN + 3]; key 182 drivers/staging/rtl8192e/rtllib_crypt_wep.c key[0] = *pos++; key 183 drivers/staging/rtl8192e/rtllib_crypt_wep.c key[1] = *pos++; key 184 drivers/staging/rtl8192e/rtllib_crypt_wep.c key[2] = *pos++; key 192 drivers/staging/rtl8192e/rtllib_crypt_wep.c memcpy(key + 3, wep->key, wep->key_len); key 201 drivers/staging/rtl8192e/rtllib_crypt_wep.c crypto_sync_skcipher_setkey(wep->rx_tfm, key, klen); key 228 drivers/staging/rtl8192e/rtllib_crypt_wep.c static int prism2_wep_set_key(void *key, int len, u8 *seq, void *priv) key 235 drivers/staging/rtl8192e/rtllib_crypt_wep.c memcpy(wep->key, key, len); key 242 drivers/staging/rtl8192e/rtllib_crypt_wep.c static int prism2_wep_get_key(void *key, int len, u8 *seq, void *priv) key 249 drivers/staging/rtl8192e/rtllib_crypt_wep.c memcpy(key, wep->key, wep->key_len); key 296 drivers/staging/rtl8192e/rtllib_wx.c int i, key, key_provided, len; key 301 drivers/staging/rtl8192e/rtllib_wx.c key = erq->flags & IW_ENCODE_INDEX; key 302 drivers/staging/rtl8192e/rtllib_wx.c if (key) { key 303 drivers/staging/rtl8192e/rtllib_wx.c if (key > NUM_WEP_KEYS) key 305 drivers/staging/rtl8192e/rtllib_wx.c key--; key 309 drivers/staging/rtl8192e/rtllib_wx.c key = ieee->crypt_info.tx_keyidx; key 312 drivers/staging/rtl8192e/rtllib_wx.c netdev_dbg(ieee->dev, "Key: %d [%s]\n", key, key_provided ? key 314 drivers/staging/rtl8192e/rtllib_wx.c crypt = &ieee->crypt_info.crypt[key]; key 318 drivers/staging/rtl8192e/rtllib_wx.c "Disabling encryption on key %d.\n", key); key 371 drivers/staging/rtl8192e/rtllib_wx.c new_crypt->priv = new_crypt->ops->init(key); key 388 drivers/staging/rtl8192e/rtllib_wx.c memcpy(sec.keys[key], keybuf, erq->length); key 390 drivers/staging/rtl8192e/rtllib_wx.c memset(sec.keys[key] + erq->length, 0, key 393 drivers/staging/rtl8192e/rtllib_wx.c key, escape_essid(sec.keys[key], len), erq->length, key 395 drivers/staging/rtl8192e/rtllib_wx.c sec.key_sizes[key] = len; key 396 drivers/staging/rtl8192e/rtllib_wx.c (*crypt)->ops->set_key(sec.keys[key], len, NULL, key 398 drivers/staging/rtl8192e/rtllib_wx.c sec.flags |= (1 << key); key 402 drivers/staging/rtl8192e/rtllib_wx.c if (key == sec.active_key) key 404 drivers/staging/rtl8192e/rtllib_wx.c ieee->crypt_info.tx_keyidx = key; key 407 drivers/staging/rtl8192e/rtllib_wx.c len = (*crypt)->ops->get_key(sec.keys[key], WEP_KEY_LEN, key 412 drivers/staging/rtl8192e/rtllib_wx.c key); key 414 drivers/staging/rtl8192e/rtllib_wx.c memset(sec.keys[key], 0, 13); key 415 drivers/staging/rtl8192e/rtllib_wx.c (*crypt)->ops->set_key(sec.keys[key], 13, NULL, key 417 drivers/staging/rtl8192e/rtllib_wx.c sec.key_sizes[key] = 13; key 418 drivers/staging/rtl8192e/rtllib_wx.c sec.flags |= (1 << key); key 424 drivers/staging/rtl8192e/rtllib_wx.c "Setting key %d as default Tx key.\n", key); key 425 drivers/staging/rtl8192e/rtllib_wx.c ieee->crypt_info.tx_keyidx = key; key 426 drivers/staging/rtl8192e/rtllib_wx.c sec.active_key = key; key 469 drivers/staging/rtl8192e/rtllib_wx.c int len, key; key 477 drivers/staging/rtl8192e/rtllib_wx.c key = erq->flags & IW_ENCODE_INDEX; key 478 drivers/staging/rtl8192e/rtllib_wx.c if (key) { key 479 drivers/staging/rtl8192e/rtllib_wx.c if (key > NUM_WEP_KEYS) key 481 drivers/staging/rtl8192e/rtllib_wx.c key--; key 483 drivers/staging/rtl8192e/rtllib_wx.c key = ieee->crypt_info.tx_keyidx; key 485 drivers/staging/rtl8192e/rtllib_wx.c crypt = ieee->crypt_info.crypt[key]; key 487 drivers/staging/rtl8192e/rtllib_wx.c erq->flags = key + 1; key 625 drivers/staging/rtl8192e/rtllib_wx.c (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, key 319 drivers/staging/rtl8192u/ieee80211/ieee80211.h u8 key[0]; key 2195 drivers/staging/rtl8192u/ieee80211/ieee80211.h union iwreq_data *wrqu, char *key); key 2198 drivers/staging/rtl8192u/ieee80211/ieee80211.h union iwreq_data *wrqu, char *key); key 2201 drivers/staging/rtl8192u/ieee80211/ieee80211.h union iwreq_data *wrqu, char *key); key 52 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.h int (*set_key)(void *key, int len, u8 *seq, void *priv); key 53 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.h int (*get_key)(void *key, int len, u8 *seq, void *priv); key 36 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c u8 key[CCMP_TK_LEN]; key 161 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c struct ieee80211_ccmp_data *key = priv; key 179 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c key->tx_pn[i]++; key 180 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c if (key->tx_pn[i] != 0) key 185 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c *pos++ = key->tx_pn[5]; key 186 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c *pos++ = key->tx_pn[4]; key 188 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c *pos++ = (key->key_idx << 6) | BIT(5) /* Ext IV included */; key 189 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c *pos++ = key->tx_pn[3]; key 190 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c *pos++ = key->tx_pn[2]; key 191 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c *pos++ = key->tx_pn[1]; key 192 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c *pos++ = key->tx_pn[0]; key 198 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c u8 *aad = key->tx_aad; key 203 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c req = aead_request_alloc(key->tfm, GFP_ATOMIC); key 207 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c aad_len = ccmp_init_iv_and_aad(hdr, key->tx_pn, iv, aad); key 230 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c struct ieee80211_ccmp_data *key = priv; key 237 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c key->dot11RSNAStatsCCMPFormatErrors++; key 249 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c key->dot11RSNAStatsCCMPFormatErrors++; key 253 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c if (key->key_idx != keyidx) { key 255 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c key->key_idx, keyidx, priv); key 258 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c if (!key->key_set) { key 274 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c if (memcmp(pn, key->rx_pn, CCMP_PN_LEN) <= 0) { key 277 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c hdr->addr2, key->rx_pn, pn); key 279 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c key->dot11RSNAStatsCCMPReplays++; key 285 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c u8 *aad = key->rx_aad; key 290 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c req = aead_request_alloc(key->tfm, GFP_ATOMIC); key 312 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c key->dot11RSNAStatsCCMPDecryptErrors++; key 316 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c memcpy(key->rx_pn, pn, CCMP_PN_LEN); key 326 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c static int ieee80211_ccmp_set_key(void *key, int len, u8 *seq, void *priv) key 336 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c memcpy(data->key, key, CCMP_TK_LEN); key 347 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c crypto_aead_setkey(tfm, data->key, CCMP_TK_LEN)) key 358 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c static int ieee80211_ccmp_get_key(void *key, int len, u8 *seq, void *priv) key 367 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c memcpy(key, data->key, CCMP_TK_LEN); key 31 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c u8 key[TKIP_KEY_LEN]; key 306 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, key 310 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); key 430 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkip_mixing_phase1(tkey->rx_ttak, tkey->key, hdr->addr2, iv32); key 433 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); key 495 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c static int michael_mic(struct crypto_shash *tfm_michael, u8 *key, u8 *hdr, key 503 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c if (crypto_shash_setkey(tfm_michael, key, 8)) key 577 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c if (michael_mic(tkey->tx_tfm_michael, &tkey->key[16], tkey->tx_hdr, key 624 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c if (michael_mic(tkey->rx_tfm_michael, &tkey->key[24], tkey->rx_hdr, key 654 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c static int ieee80211_tkip_set_key(void *key, int len, u8 *seq, void *priv) key 672 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c memcpy(tkey->key, key, TKIP_KEY_LEN); key 689 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c static int ieee80211_tkip_get_key(void *key, int len, u8 *seq, void *priv) key 698 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c memcpy(key, tkey->key, TKIP_KEY_LEN); key 28 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c u8 key[WEP_KEY_LEN + 1]; key 85 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c u8 key[WEP_KEY_LEN + 3]; key 118 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c *pos++ = key[0] = (wep->iv >> 16) & 0xff; key 119 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c *pos++ = key[1] = (wep->iv >> 8) & 0xff; key 120 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c *pos++ = key[2] = wep->iv & 0xff; key 124 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c memcpy(key + 3, wep->key, wep->key_len); key 137 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c crypto_sync_skcipher_setkey(wep->tx_tfm, key, klen); key 164 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c u8 key[WEP_KEY_LEN + 3]; key 176 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c key[0] = *pos++; key 177 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c key[1] = *pos++; key 178 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c key[2] = *pos++; key 186 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c memcpy(key + 3, wep->key, wep->key_len); key 194 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c crypto_sync_skcipher_setkey(wep->rx_tfm, key, klen); key 225 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c static int prism2_wep_set_key(void *key, int len, u8 *seq, void *priv) key 232 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c memcpy(wep->key, key, len); key 239 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c static int prism2_wep_get_key(void *key, int len, u8 *seq, void *priv) key 246 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c memcpy(key, wep->key, wep->key_len); key 2805 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c (int)((char *)param->u.crypt.key - (char *)param) + key 2883 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c (*crypt)->ops->set_key(param->u.crypt.key, key 2901 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c param->u.crypt.key, key 282 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c int i, key, key_provided, len; key 287 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c key = erq->flags & IW_ENCODE_INDEX; key 288 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (key) { key 289 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (key > WEP_KEYS) key 291 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c key--; key 295 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c key = ieee->tx_keyidx; key 298 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c IEEE80211_DEBUG_WX("Key: %d [%s]\n", key, key_provided ? key 300 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c crypt = &ieee->crypt[key]; key 305 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c key); key 353 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c new_crypt->priv = new_crypt->ops->init(key); key 370 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c memcpy(sec.keys[key], keybuf, erq->length); key 372 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c memset(sec.keys[key] + erq->length, 0, key 375 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c key, escape_essid(sec.keys[key], len), key 377 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c sec.key_sizes[key] = len; key 378 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c (*crypt)->ops->set_key(sec.keys[key], len, NULL, key 380 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c sec.flags |= BIT(key); key 384 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (key == sec.active_key) key 386 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c ieee->tx_keyidx = key; key 389 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c len = (*crypt)->ops->get_key(sec.keys[key], WEP_KEY_LEN, key 394 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c key); key 397 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c key); key 398 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c memset(sec.keys[key], 0, 13); key 399 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c (*crypt)->ops->set_key(sec.keys[key], 13, NULL, key 401 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c sec.key_sizes[key] = 13; key 402 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c sec.flags |= BIT(key); key 408 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c "Setting key %d to default Tx key.\n", key); key 409 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c ieee->tx_keyidx = key; key 410 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c sec.active_key = key; key 451 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c int len, key; key 459 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c key = erq->flags & IW_ENCODE_INDEX; key 460 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (key) { key 461 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (key > WEP_KEYS) key 463 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c key--; key 465 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c key = ieee->tx_keyidx; key 467 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c crypt = ieee->crypt[key]; key 468 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c erq->flags = key + 1; key 606 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, key 698 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c ext->key_len = crypt->ops->get_key(ext->key, SCM_KEY_LEN, NULL, crypt->priv); key 3528 drivers/staging/rtl8192u/r8192U_core.c u32 key[4]; key 3566 drivers/staging/rtl8192u/r8192U_core.c memcpy((u8 *)key, ipw->u.crypt.key, 16); key 3577 drivers/staging/rtl8192u/r8192U_core.c 0, key); key 3583 drivers/staging/rtl8192u/r8192U_core.c 0, key); key 3586 drivers/staging/rtl8192u/r8192U_core.c memcpy((u8 *)key, ipw->u.crypt.key, 16); key 3611 drivers/staging/rtl8192u/r8192U_core.c key); key 492 drivers/staging/rtl8192u/r8192U_wx.c union iwreq_data *wrqu, char *key) key 496 drivers/staging/rtl8192u/r8192U_wx.c return ieee80211_wx_get_encode(priv->ieee80211, info, wrqu, key); key 501 drivers/staging/rtl8192u/r8192U_wx.c union iwreq_data *wrqu, char *key) key 521 drivers/staging/rtl8192u/r8192U_wx.c ret = ieee80211_wx_set_encode(priv->ieee80211, info, wrqu, key); key 531 drivers/staging/rtl8192u/r8192U_wx.c hwkey[i] |= key[4*i+0]&mask; key 536 drivers/staging/rtl8192u/r8192U_wx.c hwkey[i] |= (key[4*i+1]&mask)<<8; key 537 drivers/staging/rtl8192u/r8192U_wx.c hwkey[i] |= (key[4*i+2]&mask)<<16; key 538 drivers/staging/rtl8192u/r8192U_wx.c hwkey[i] |= (key[4*i+3]&mask)<<24; key 736 drivers/staging/rtl8192u/r8192U_wx.c u32 key[4] = {0}; key 758 drivers/staging/rtl8192u/r8192U_wx.c memcpy((u8 *)key, ext->key, 16); /* we only get 16 bytes key.why? WB 2008.7.1 */ key 768 drivers/staging/rtl8192u/r8192U_wx.c key); /* KeyContent */ key 777 drivers/staging/rtl8192u/r8192U_wx.c key); /* KeyContent */ key 785 drivers/staging/rtl8192u/r8192U_wx.c key); /* KeyContent */ key 100 drivers/staging/rtl8712/ieee80211.h u8 key[0]; key 552 drivers/staging/rtl8712/rtl871x_cmd.c memcpy(&psetstakey_para->key, &sta->x_UncstKey, 16); key 554 drivers/staging/rtl8712/rtl871x_cmd.c memcpy(&psetstakey_para->key, key 182 drivers/staging/rtl8712/rtl871x_cmd.h u8 key[16]; /* this could be 40 or 104 */ key 194 drivers/staging/rtl8712/rtl871x_cmd.h u8 key[16]; key 83 drivers/staging/rtl8712/rtl871x_ioctl_linux.c memcpy(psta->x_UncstKey.skey, param->u.crypt.key, key 87 drivers/staging/rtl8712/rtl871x_ioctl_linux.c &(param->u.crypt.key[16]), 8); key 89 drivers/staging/rtl8712/rtl871x_ioctl_linux.c &(param->u.crypt.key[24]), 8); key 108 drivers/staging/rtl8712/rtl871x_ioctl_linux.c param->u.crypt.key, key 112 drivers/staging/rtl8712/rtl871x_ioctl_linux.c ¶m->u.crypt.key[16], 8); key 114 drivers/staging/rtl8712/rtl871x_ioctl_linux.c ¶m->u.crypt.key[24], 8); key 384 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (param_len != (u32)((u8 *) param->u.crypt.key - (u8 *)param) + key 420 drivers/staging/rtl8712/rtl871x_ioctl_linux.c memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); key 1499 drivers/staging/rtl8712/rtl871x_ioctl_linux.c u32 key; key 1506 drivers/staging/rtl8712/rtl871x_ioctl_linux.c key = erq->flags & IW_ENCODE_INDEX; key 1519 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (key) { key 1520 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (key > WEP_KEYS) key 1522 drivers/staging/rtl8712/rtl871x_ioctl_linux.c key--; key 1526 drivers/staging/rtl8712/rtl871x_ioctl_linux.c key = padapter->securitypriv.PrivacyKeyIndex; key 1557 drivers/staging/rtl8712/rtl871x_ioctl_linux.c wep.KeyIndex = key; key 1567 drivers/staging/rtl8712/rtl871x_ioctl_linux.c padapter->securitypriv.PrivacyKeyIndex = key; key 1568 drivers/staging/rtl8712/rtl871x_ioctl_linux.c switch (padapter->securitypriv.DefKeylen[key]) { key 1596 drivers/staging/rtl8712/rtl871x_ioctl_linux.c uint key; key 1609 drivers/staging/rtl8712/rtl871x_ioctl_linux.c key = erq->flags & IW_ENCODE_INDEX; key 1610 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (key) { key 1611 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (key > WEP_KEYS) key 1613 drivers/staging/rtl8712/rtl871x_ioctl_linux.c key--; key 1615 drivers/staging/rtl8712/rtl871x_ioctl_linux.c key = padapter->securitypriv.PrivacyKeyIndex; key 1617 drivers/staging/rtl8712/rtl871x_ioctl_linux.c erq->flags = key + 1; key 1625 drivers/staging/rtl8712/rtl871x_ioctl_linux.c erq->length = padapter->securitypriv.DefKeylen[key]; key 1627 drivers/staging/rtl8712/rtl871x_ioctl_linux.c memcpy(keybuf, dk[key].skey, key 1628 drivers/staging/rtl8712/rtl871x_ioctl_linux.c padapter->securitypriv.DefKeylen[key]); key 1204 drivers/staging/rtl8712/rtl871x_mlme.c memcpy(psetkeyparm->key, key 1209 drivers/staging/rtl8712/rtl871x_mlme.c memcpy(psetkeyparm->key, key 1218 drivers/staging/rtl8712/rtl871x_mlme.c memcpy(psetkeyparm->key, key 1228 drivers/staging/rtl8712/rtl871x_mlme.c memcpy(psetkeyparm->key, key 47 drivers/staging/rtl8712/rtl871x_security.c static void arcfour_init(struct arc4context *parc4ctx, u8 *key, u32 key_len) key 64 drivers/staging/rtl8712/rtl871x_security.c stateindex = (stateindex + key[keyindex] + t) & 0xff; key 276 drivers/staging/rtl8712/rtl871x_security.c void r8712_secmicsetkey(struct mic_data *pmicdata, u8 *key) key 279 drivers/staging/rtl8712/rtl871x_security.c pmicdata->K0 = secmicgetuint32(key); key 280 drivers/staging/rtl8712/rtl871x_security.c pmicdata->K1 = secmicgetuint32(key + 4); key 335 drivers/staging/rtl8712/rtl871x_security.c void seccalctkipmic(u8 *key, u8 *header, u8 *data, u32 data_len, u8 *mic_code, key 342 drivers/staging/rtl8712/rtl871x_security.c r8712_secmicsetkey(&micdata, key); key 761 drivers/staging/rtl8712/rtl871x_security.c static void next_key(u8 *key, sint round) key 770 drivers/staging/rtl8712/rtl871x_security.c sbox_key[0] = sbox(key[13]); key 771 drivers/staging/rtl8712/rtl871x_security.c sbox_key[1] = sbox(key[14]); key 772 drivers/staging/rtl8712/rtl871x_security.c sbox_key[2] = sbox(key[15]); key 773 drivers/staging/rtl8712/rtl871x_security.c sbox_key[3] = sbox(key[12]); key 775 drivers/staging/rtl8712/rtl871x_security.c xor_32(&key[0], sbox_key, &key[0]); key 776 drivers/staging/rtl8712/rtl871x_security.c key[0] = key[0] ^ rcon; key 777 drivers/staging/rtl8712/rtl871x_security.c xor_32(&key[4], &key[0], &key[4]); key 778 drivers/staging/rtl8712/rtl871x_security.c xor_32(&key[8], &key[4], &key[8]); key 779 drivers/staging/rtl8712/rtl871x_security.c xor_32(&key[12], &key[8], &key[12]); key 859 drivers/staging/rtl8712/rtl871x_security.c static void aes128k128d(u8 *key, u8 *data, u8 *ciphertext) key 868 drivers/staging/rtl8712/rtl871x_security.c round_key[i] = key[i]; key 1014 drivers/staging/rtl8712/rtl871x_security.c static void aes_cipher(u8 *key, uint hdrlen, key 1078 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, mic_iv, aes_out); key 1080 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, chain_buffer, aes_out); key 1082 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, chain_buffer, aes_out); key 1086 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, chain_buffer, aes_out); key 1095 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, chain_buffer, aes_out); key 1106 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, ctr_preload, aes_out); key 1119 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, ctr_preload, aes_out); key 1131 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, ctr_preload, aes_out); key 1187 drivers/staging/rtl8712/rtl871x_security.c static void aes_decipher(u8 *key, uint hdrlen, key 1249 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, ctr_preload, aes_out); key 1262 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, ctr_preload, aes_out); key 1284 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, mic_iv, aes_out); key 1286 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, chain_buffer, aes_out); key 1288 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, chain_buffer, aes_out); key 1292 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, chain_buffer, aes_out); key 1301 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, chain_buffer, aes_out); key 1312 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, ctr_preload, aes_out); key 1325 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, ctr_preload, aes_out); key 1337 drivers/staging/rtl8712/rtl871x_security.c aes128k128d(key, ctr_preload, aes_out); key 199 drivers/staging/rtl8712/rtl871x_security.h u8 *key, key 206 drivers/staging/rtl8712/rtl871x_security.h void r8712_secmicsetkey(struct mic_data *pmicdata, u8 *key); key 1467 drivers/staging/rtl8723bs/core/rtw_ap.c memcpy(psetstakey_para->key, &psta->dot118021x_UncstKey, 16); key 1478 drivers/staging/rtl8723bs/core/rtw_ap.c u8 *key, key 1526 drivers/staging/rtl8723bs/core/rtw_ap.c memcpy(&(psetkeyparm->key[0]), key, keylen); key 1543 drivers/staging/rtl8723bs/core/rtw_ap.c int rtw_ap_set_group_key(struct adapter *padapter, u8 *key, u8 alg, int keyid) key 1547 drivers/staging/rtl8723bs/core/rtw_ap.c return rtw_ap_set_key(padapter, key, alg, keyid, 1); key 1552 drivers/staging/rtl8723bs/core/rtw_ap.c u8 *key, key 1573 drivers/staging/rtl8723bs/core/rtw_ap.c return rtw_ap_set_key(padapter, key, alg, keyid, set_tx); key 997 drivers/staging/rtl8723bs/core/rtw_cmd.c memcpy(&psetstakey_para->key, &sta->dot118021x_UncstKey, 16); key 999 drivers/staging/rtl8723bs/core/rtw_cmd.c memcpy(&psetstakey_para->key, &psecuritypriv->dot118021XGrpKey[psecuritypriv->dot118021XGrpKeyid].skey, 16); key 2275 drivers/staging/rtl8723bs/core/rtw_mlme.c memcpy(&(psetkeyparm->key[0]), &(psecuritypriv->dot11DefKey[keyid].skey[0]), keylen); key 2279 drivers/staging/rtl8723bs/core/rtw_mlme.c memcpy(&(psetkeyparm->key[0]), &(psecuritypriv->dot11DefKey[keyid].skey[0]), keylen); key 2283 drivers/staging/rtl8723bs/core/rtw_mlme.c memcpy(&psetkeyparm->key, &psecuritypriv->dot118021XGrpKey[keyid], keylen); key 2288 drivers/staging/rtl8723bs/core/rtw_mlme.c memcpy(&psetkeyparm->key, &psecuritypriv->dot118021XGrpKey[keyid], keylen); key 6453 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c write_cam(padapter, cam_id, ctrl, addr, pparm->key); key 6504 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c write_cam(padapter, cam_id, ctrl, pparm->addr, pparm->key); key 98 drivers/staging/rtl8723bs/core/rtw_security.c static void arcfour_init(struct arc4context *parc4ctx, u8 *key, u32 key_len) key 115 drivers/staging/rtl8723bs/core/rtw_security.c stateindex = (stateindex + key[keyindex] + t) & 0xff; key 350 drivers/staging/rtl8723bs/core/rtw_security.c void rtw_secmicsetkey(struct mic_data *pmicdata, u8 *key) key 353 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->K0 = secmicgetuint32(key); key 354 drivers/staging/rtl8723bs/core/rtw_security.c pmicdata->K1 = secmicgetuint32(key + 4); key 410 drivers/staging/rtl8723bs/core/rtw_security.c void rtw_seccalctkipmic(u8 *key, u8 *header, u8 *data, u32 data_len, u8 *mic_code, u8 pri) key 416 drivers/staging/rtl8723bs/core/rtw_security.c rtw_secmicsetkey(&micdata, key); key 950 drivers/staging/rtl8723bs/core/rtw_security.c static void next_key(u8 *key, sint round); key 954 drivers/staging/rtl8723bs/core/rtw_security.c static void aes128k128d(u8 *key, u8 *data, u8 *ciphertext); key 988 drivers/staging/rtl8723bs/core/rtw_security.c static void next_key(u8 *key, sint round) key 997 drivers/staging/rtl8723bs/core/rtw_security.c sbox_key[0] = sbox(key[13]); key 998 drivers/staging/rtl8723bs/core/rtw_security.c sbox_key[1] = sbox(key[14]); key 999 drivers/staging/rtl8723bs/core/rtw_security.c sbox_key[2] = sbox(key[15]); key 1000 drivers/staging/rtl8723bs/core/rtw_security.c sbox_key[3] = sbox(key[12]); key 1004 drivers/staging/rtl8723bs/core/rtw_security.c xor_32(&key[0], sbox_key, &key[0]); key 1005 drivers/staging/rtl8723bs/core/rtw_security.c key[0] = key[0] ^ rcon; key 1007 drivers/staging/rtl8723bs/core/rtw_security.c xor_32(&key[4], &key[0], &key[4]); key 1008 drivers/staging/rtl8723bs/core/rtw_security.c xor_32(&key[8], &key[4], &key[8]); key 1009 drivers/staging/rtl8723bs/core/rtw_security.c xor_32(&key[12], &key[8], &key[12]); key 1101 drivers/staging/rtl8723bs/core/rtw_security.c static void aes128k128d(u8 *key, u8 *data, u8 *ciphertext) key 1110 drivers/staging/rtl8723bs/core/rtw_security.c round_key[i] = key[i]; key 1329 drivers/staging/rtl8723bs/core/rtw_security.c static sint aes_cipher(u8 *key, uint hdrlen, key 1422 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, mic_iv, aes_out); key 1424 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, chain_buffer, aes_out); key 1426 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, chain_buffer, aes_out); key 1432 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, chain_buffer, aes_out); key 1443 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, chain_buffer, aes_out); key 1465 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, ctr_preload, aes_out); key 1489 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, ctr_preload, aes_out); key 1511 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, ctr_preload, aes_out); key 1576 drivers/staging/rtl8723bs/core/rtw_security.c static sint aes_decipher(u8 *key, uint hdrlen, key 1664 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, ctr_preload, aes_out); key 1689 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, ctr_preload, aes_out); key 1740 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, mic_iv, aes_out); key 1742 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, chain_buffer, aes_out); key 1744 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, chain_buffer, aes_out); key 1750 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, chain_buffer, aes_out); key 1761 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, chain_buffer, aes_out); key 1783 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, ctr_preload, aes_out); key 1807 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, ctr_preload, aes_out); key 1830 drivers/staging/rtl8723bs/core/rtw_security.c aes128k128d(key, ctr_preload, aes_out); key 2260 drivers/staging/rtl8723bs/core/rtw_security.c static void *aes_encrypt_init(u8 *key, size_t len) key 2268 drivers/staging/rtl8723bs/core/rtw_security.c rijndaelKeySetupEnc(rk, key); key 2310 drivers/staging/rtl8723bs/core/rtw_security.c static int omac1_aes_128_vector(u8 *key, size_t num_elem, key 2318 drivers/staging/rtl8723bs/core/rtw_security.c ctx = aes_encrypt_init(key, 16); key 2383 drivers/staging/rtl8723bs/core/rtw_security.c int omac1_aes_128(u8 *key, u8 *data, size_t data_len, u8 *mac) key 2385 drivers/staging/rtl8723bs/core/rtw_security.c return omac1_aes_128_vector(key, 1, &data, &data_len, mac); key 560 drivers/staging/rtl8723bs/core/rtw_wlan_util.c void _write_cam(struct adapter *padapter, u8 entry, u16 ctrl, u8 *mac, u8 *key) key 578 drivers/staging/rtl8723bs/core/rtw_wlan_util.c val = (key[i] | (key[i+1] << 8) | (key[i+2] << 16) | (key[i+3] << 24)); key 597 drivers/staging/rtl8723bs/core/rtw_wlan_util.c inline void write_cam(struct adapter *adapter, u8 id, u16 ctrl, u8 *mac, u8 *key) key 599 drivers/staging/rtl8723bs/core/rtw_wlan_util.c _write_cam(adapter, id, ctrl, mac, key); key 600 drivers/staging/rtl8723bs/core/rtw_wlan_util.c write_cam_cache(adapter, id, ctrl, mac, key); key 619 drivers/staging/rtl8723bs/core/rtw_wlan_util.c _write_cam(adapter, id, cache.ctrl, cache.mac, cache.key); key 622 drivers/staging/rtl8723bs/core/rtw_wlan_util.c void write_cam_cache(struct adapter *adapter, u8 id, u16 ctrl, u8 *mac, u8 *key) key 631 drivers/staging/rtl8723bs/core/rtw_wlan_util.c memcpy(dvobj->cam_cache[id].key, key, 16); key 416 drivers/staging/rtl8723bs/include/drv_types.h u8 key[16]; key 229 drivers/staging/rtl8723bs/include/ieee80211.h u8 key[0]; key 25 drivers/staging/rtl8723bs/include/rtw_ap.h int rtw_ap_set_group_key(struct adapter *padapter, u8 *key, u8 alg, int keyid); key 26 drivers/staging/rtl8723bs/include/rtw_ap.h int rtw_ap_set_wep_key(struct adapter *padapter, u8 *key, u8 keylen, int keyid, u8 set_tx); key 308 drivers/staging/rtl8723bs/include/rtw_cmd.h u8 key[16]; /* this could be 40 or 104 */ key 324 drivers/staging/rtl8723bs/include/rtw_cmd.h u8 key[16]; key 577 drivers/staging/rtl8723bs/include/rtw_mlme_ext.h void _write_cam(struct adapter *padapter, u8 entry, u16 ctrl, u8 *mac, u8 *key); key 582 drivers/staging/rtl8723bs/include/rtw_mlme_ext.h void write_cam(struct adapter *padapter, u8 id, u16 ctrl, u8 *mac, u8 *key); key 586 drivers/staging/rtl8723bs/include/rtw_mlme_ext.h void write_cam_cache(struct adapter *adapter, u8 id, u16 ctrl, u8 *mac, u8 *key); key 406 drivers/staging/rtl8723bs/include/rtw_security.h int omac1_aes_128(u8 *key, u8 *data, size_t data_len, u8 *mac); key 407 drivers/staging/rtl8723bs/include/rtw_security.h void rtw_secmicsetkey(struct mic_data *pmicdata, u8 * key); key 413 drivers/staging/rtl8723bs/include/rtw_security.h u8 * key, key 675 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), param->u.crypt.key, wep_key_len); key 679 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c rtw_ap_set_wep_key(padapter, param->u.crypt.key, wep_key_len, wep_key_idx, 1); key 694 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 709 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 713 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrptxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[16]), 8); key 714 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrprxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[24]), 8); key 725 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 740 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c rtw_ap_set_group_key(padapter, param->u.crypt.key, psecuritypriv->dot118021XGrpPrivacy, param->u.crypt.idx); key 761 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 781 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); key 782 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); key 812 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 824 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 828 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrptxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[16]), 8); key 829 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrprxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[24]), 8); key 838 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 851 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c rtw_ap_set_group_key(padapter, param->u.crypt.key, psecuritypriv->dot118021XGrpPrivacy, param->u.crypt.idx); key 885 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (param_len < (u32) ((u8 *) param->u.crypt.key - (u8 *) param) + param->u.crypt.key_len) key 942 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), param->u.crypt.key, wep_key_len); key 983 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 988 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); key 989 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); key 1004 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(padapter->securitypriv.dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 1005 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(padapter->securitypriv.dot118021XGrptxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[16]), 8); key 1006 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(padapter->securitypriv.dot118021XGrprxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[24]), 8); key 1018 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(padapter->securitypriv.dot11wBIPKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 1129 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (params->key_len && params->key) key 1132 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(param->u.crypt.key, (u8 *)params->key, params->key_len); key 2063 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c sme->privacy, sme->key, sme->key_len, sme->key_idx); key 2145 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c || psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_Auto) && sme->key key 2190 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(pwep->KeyMaterial, (void *)sme->key, pwep->KeyLength); key 434 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (param_len < (u32)((u8 *)param->u.crypt.key - (u8 *)param) + param->u.crypt.key_len) { key 497 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); key 542 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 546 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); key 547 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); key 559 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(padapter->securitypriv.dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 562 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(padapter->securitypriv.dot118021XGrptxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[16]), 8); key 563 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(padapter->securitypriv.dot118021XGrprxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[24]), 8); key 575 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(padapter->securitypriv.dot11wBIPKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 1837 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c u32 key, ret = 0; key 1849 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c key = erq->flags & IW_ENCODE_INDEX; key 1863 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (key) { key 1864 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (key > WEP_KEYS) key 1866 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c key--; key 1870 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c key = padapter->securitypriv.dot11PrivacyKeyIndex; key 1871 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c DBG_871X("rtw_wx_set_enc, key =%d\n", key); key 1906 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c wep.KeyIndex = key; key 1915 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c padapter->securitypriv.dot11PrivacyKeyIndex = key; key 1917 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c DBG_871X("(keyindex_provided == 1), keyid =%d, key_len =%d\n", key, padapter->securitypriv.dot11DefKeylen[key]); key 1919 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c switch (padapter->securitypriv.dot11DefKeylen[key]) { key 1955 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c uint key, ret = 0; key 1969 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c key = erq->flags & IW_ENCODE_INDEX; key 1971 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (key) { key 1972 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (key > WEP_KEYS) key 1974 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c key--; key 1976 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c key = padapter->securitypriv.dot11PrivacyKeyIndex; key 1979 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c erq->flags = key + 1; key 1993 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c erq->length = padapter->securitypriv.dot11DefKeylen[key]; key 1996 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(keybuf, padapter->securitypriv.dot11DefKey[key].skey, padapter->securitypriv.dot11DefKeylen[key]); key 2192 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(param->u.crypt.key, pext + 1, pext->key_len); key 3521 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); key 3567 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 3578 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 3582 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrptxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[16]), 8); key 3583 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrprxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[24]), 8); key 3593 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 3606 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c rtw_ap_set_group_key(padapter, param->u.crypt.key, psecuritypriv->dot118021XGrpPrivacy, param->u.crypt.idx); key 3622 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 3637 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); key 3638 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); key 3659 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 3667 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 3671 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrptxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[16]), 8); key 3672 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrprxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[24]), 8); key 3679 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); key 3690 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c rtw_ap_set_group_key(padapter, param->u.crypt.key, psecuritypriv->dot118021XGrpPrivacy, param->u.crypt.idx); key 52 drivers/staging/speakup/keyhelp.c u_short *p_key = key_data, key; key 89 drivers/staging/speakup/keyhelp.c key = (state_tbl[i] << 8) + ch; key 95 drivers/staging/speakup/keyhelp.c *p_key = key; key 100 drivers/staging/speakup/keyhelp.c static void say_key(int key) key 102 drivers/staging/speakup/keyhelp.c int i, state = key >> 8; key 104 drivers/staging/speakup/keyhelp.c key &= 0xff; key 109 drivers/staging/speakup/keyhelp.c if ((key > 0) && (key <= num_key_names)) key 111 drivers/staging/speakup/keyhelp.c spk_msg_get(MSG_KEYNAMES_START + (key - 1))); key 132 drivers/staging/speakup/keyhelp.c int spk_handle_help(struct vc_data *vc, u_char type, u_char ch, u_short key) key 172 drivers/staging/speakup/keyhelp.c if ((type != KT_SPKUP) && (key > 0) && (key <= num_key_names)) { key 174 drivers/staging/speakup/keyhelp.c spk_msg_get(MSG_KEYNAMES_START + key - 1)); key 183 drivers/staging/speakup/keyhelp.c kp = spk_our_keys[key] + 1; key 188 drivers/staging/speakup/keyhelp.c key += (state_tbl[i] << 8); key 189 drivers/staging/speakup/keyhelp.c say_key(key); key 1320 drivers/staging/speakup/main.c static int edit_bits(struct vc_data *vc, u_char type, u_char ch, u_short key) key 1939 drivers/staging/speakup/main.c static int handle_goto(struct vc_data *vc, u_char type, u_char ch, u_short key) key 65 drivers/staging/speakup/speakup.h int spk_handle_help(struct vc_data *vc, u_char type, u_char ch, u_short key); key 51 drivers/staging/speakup/spk_types.h u_short key); key 1565 drivers/staging/vt6655/device_main.c struct ieee80211_key_conf *key) key 1571 drivers/staging/vt6655/device_main.c if (vnt_set_keys(hw, sta, vif, key)) key 1575 drivers/staging/vt6655/device_main.c if (test_bit(key->hw_key_idx, &priv->key_entry_inuse)) key 1576 drivers/staging/vt6655/device_main.c clear_bit(key->hw_key_idx, &priv->key_entry_inuse); key 21 drivers/staging/vt6655/key.c struct ieee80211_key_conf *key, u32 key_type, key 29 drivers/staging/vt6655/key.c u8 key_inx = key->keyidx; key 42 drivers/staging/vt6655/key.c key->hw_key_idx = i; key 43 drivers/staging/vt6655/key.c entry = key->hw_key_idx; key 53 drivers/staging/vt6655/key.c key->hw_key_idx = entry; key 79 drivers/staging/vt6655/key.c if (key->keylen == WLAN_KEY_LEN_WEP40) key 80 drivers/staging/vt6655/key.c key->key[15] &= 0x7f; key 81 drivers/staging/vt6655/key.c if (key->keylen == WLAN_KEY_LEN_WEP104) key 82 drivers/staging/vt6655/key.c key->key[15] |= 0x80; key 86 drivers/staging/vt6655/key.c bssid, (u32 *)key->key, priv->byLocalID); key 92 drivers/staging/vt6655/key.c struct ieee80211_vif *vif, struct ieee80211_key_conf *key) key 104 drivers/staging/vt6655/key.c switch (key->cipher) { key 116 drivers/staging/vt6655/key.c key, VNT_KEY_DEFAULTKEY, KEY_CTL_WEP, true); key 118 drivers/staging/vt6655/key.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 122 drivers/staging/vt6655/key.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; key 123 drivers/staging/vt6655/key.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 131 drivers/staging/vt6655/key.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 134 drivers/staging/vt6655/key.c if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) { key 136 drivers/staging/vt6655/key.c key, VNT_KEY_PAIRWISE, key_dec_mode, true); key 139 drivers/staging/vt6655/key.c key, VNT_KEY_DEFAULTKEY, key_dec_mode, true); key 142 drivers/staging/vt6655/key.c key, VNT_KEY_GROUP_ADDRESS, key_dec_mode, true); key 51 drivers/staging/vt6655/key.h struct ieee80211_vif *vif, struct ieee80211_key_conf *key); key 1214 drivers/staging/vt6655/rxtx.c memcpy(key_buffer + 3, tx_key->key, tx_key->keylen); key 1219 drivers/staging/vt6655/rxtx.c tx_key->key, WLAN_KEY_LEN_WEP40); key 1261 drivers/staging/vt6655/rxtx.c memcpy(key_buffer, tx_key->key, WLAN_KEY_LEN_CCMP); key 37 drivers/staging/vt6656/key.c struct ieee80211_key_conf *key, u32 key_type, key 45 drivers/staging/vt6656/key.c u8 key_inx = key->keyidx; key 58 drivers/staging/vt6656/key.c key->hw_key_idx = i; key 59 drivers/staging/vt6656/key.c entry = key->hw_key_idx; key 69 drivers/staging/vt6656/key.c key->hw_key_idx = entry; key 95 drivers/staging/vt6656/key.c if (key->keylen == WLAN_KEY_LEN_WEP40) key 96 drivers/staging/vt6656/key.c key->key[15] &= 0x7f; key 97 drivers/staging/vt6656/key.c if (key->keylen == WLAN_KEY_LEN_WEP104) key 98 drivers/staging/vt6656/key.c key->key[15] |= 0x80; key 101 drivers/staging/vt6656/key.c vnt_mac_set_keyentry(priv, key_mode, entry, key_inx, bssid, key->key); key 107 drivers/staging/vt6656/key.c struct ieee80211_vif *vif, struct ieee80211_key_conf *key) key 117 drivers/staging/vt6656/key.c switch (key->cipher) { key 128 drivers/staging/vt6656/key.c vnt_set_keymode(hw, mac_addr, key, VNT_KEY_DEFAULTKEY, key 131 drivers/staging/vt6656/key.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 135 drivers/staging/vt6656/key.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; key 136 drivers/staging/vt6656/key.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 147 drivers/staging/vt6656/key.c key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; key 150 drivers/staging/vt6656/key.c if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) key 151 drivers/staging/vt6656/key.c vnt_set_keymode(hw, mac_addr, key, VNT_KEY_PAIRWISE, key 154 drivers/staging/vt6656/key.c vnt_set_keymode(hw, mac_addr, key, VNT_KEY_GROUP_ADDRESS, key 39 drivers/staging/vt6656/key.h struct ieee80211_vif *vif, struct ieee80211_key_conf *key); key 108 drivers/staging/vt6656/mac.c u32 key_idx, u8 *addr, u8 *key) key 122 drivers/staging/vt6656/mac.c memcpy(set_key.key, key, WLAN_KEY_LEN_CCMP); key 354 drivers/staging/vt6656/mac.h u8 key[WLAN_KEY_LEN_CCMP]; key 362 drivers/staging/vt6656/mac.h u32 key_idx, u8 *addr, u8 *key); key 859 drivers/staging/vt6656/main_usb.c struct ieee80211_key_conf *key) key 865 drivers/staging/vt6656/main_usb.c if (vnt_set_keys(hw, sta, vif, key)) key 869 drivers/staging/vt6656/main_usb.c if (test_bit(key->hw_key_idx, &priv->key_entry_inuse)) { key 870 drivers/staging/vt6656/main_usb.c clear_bit(key->hw_key_idx, &priv->key_entry_inuse); key 872 drivers/staging/vt6656/main_usb.c vnt_mac_disable_keyentry(priv, key->hw_key_idx); key 727 drivers/staging/vt6656/rxtx.c memcpy(key_buffer + 3, tx_key->key, tx_key->keylen); key 732 drivers/staging/vt6656/rxtx.c tx_key->key, WLAN_KEY_LEN_WEP40); key 774 drivers/staging/vt6656/rxtx.c memcpy(key_buffer, tx_key->key, WLAN_KEY_LEN_CCMP); key 48 drivers/staging/wilc1000/wilc_hif.c u8 key[0]; key 54 drivers/staging/wilc1000/wilc_hif.c u8 key[0]; key 61 drivers/staging/wilc1000/wilc_hif.c u8 key[0]; key 69 drivers/staging/wilc1000/wilc_hif.c u8 key[0]; key 1132 drivers/staging/wilc1000/wilc_hif.c int wilc_add_wep_key_bss_sta(struct wilc_vif *vif, const u8 *key, u8 len, key 1150 drivers/staging/wilc1000/wilc_hif.c memcpy(wep_key->key, key, len); key 1161 drivers/staging/wilc1000/wilc_hif.c int wilc_add_wep_key_bss_ap(struct wilc_vif *vif, const u8 *key, u8 len, key 1189 drivers/staging/wilc1000/wilc_hif.c memcpy(wep_key->key, key, len); key 1223 drivers/staging/wilc1000/wilc_hif.c memcpy(&key_buf->key[0], ptk, ptk_key_len); key 1226 drivers/staging/wilc1000/wilc_hif.c memcpy(&key_buf->key[ptk_key_len], rx_mic, key 1230 drivers/staging/wilc1000/wilc_hif.c memcpy(&key_buf->key[ptk_key_len + WILC_RX_MIC_KEY_LEN], key 1250 drivers/staging/wilc1000/wilc_hif.c memcpy(&key_buf->key[0], ptk, ptk_key_len); key 1253 drivers/staging/wilc1000/wilc_hif.c memcpy(&key_buf->key[ptk_key_len], rx_mic, key 1257 drivers/staging/wilc1000/wilc_hif.c memcpy(&key_buf->key[ptk_key_len + WILC_RX_MIC_KEY_LEN], key 1293 drivers/staging/wilc1000/wilc_hif.c memcpy(>k_key->key[0], rx_gtk, gtk_key_len); key 1296 drivers/staging/wilc1000/wilc_hif.c memcpy(>k_key->key[gtk_key_len], rx_mic, WILC_RX_MIC_KEY_LEN); key 1299 drivers/staging/wilc1000/wilc_hif.c memcpy(>k_key->key[gtk_key_len + WILC_RX_MIC_KEY_LEN], key 175 drivers/staging/wilc1000/wilc_hif.h int wilc_add_wep_key_bss_sta(struct wilc_vif *vif, const u8 *key, u8 len, key 177 drivers/staging/wilc1000/wilc_hif.h int wilc_add_wep_key_bss_ap(struct wilc_vif *vif, const u8 *key, u8 len, key 291 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c memcpy(priv->wep_key[sme->key_idx], sme->key, key 295 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c wilc_add_wep_key_bss_sta(vif, sme->key, sme->key_len, key 301 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c memcpy(priv->wep_key[sme->key_idx], sme->key, key 305 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c wilc_add_wep_key_bss_sta(vif, sme->key, sme->key_len, key 461 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c memcpy(priv->wep_key[key_index], params->key, params->key_len); key 486 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c kfree(key_info->key); key 488 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c key_info->key = kmemdup(params->key, params->key_len, GFP_KERNEL); key 489 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c if (!key_info->key) key 531 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c ret = wilc_add_wep_key_bss_ap(vif, params->key, key 537 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c if (memcmp(params->key, priv->wep_key[key_index], key 541 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c ret = wilc_add_wep_key_bss_sta(vif, params->key, key 552 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c struct wilc_wfi_key *key; key 560 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c tx_mic = params->key + 24; key 561 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c rx_mic = params->key + 16; key 573 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c key = priv->wilc_gtk[key_index]; key 580 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c key = priv->wilc_ptk[key_index]; key 582 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c ret = wilc_wfi_cfg_copy_wpa_info(key, params); key 590 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c rx_mic = params->key + 24; key 591 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c tx_mic = params->key + 16; key 599 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c ret = wilc_add_rx_gtk(vif, params->key, keylen, key 604 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c ret = wilc_add_ptk(vif, params->key, keylen, mac_addr, key 629 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c kfree(priv->wilc_gtk[key_index]->key); key 630 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c priv->wilc_gtk[key_index]->key = NULL; key 639 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c kfree(priv->wilc_ptk[key_index]->key); key 640 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c priv->wilc_ptk[key_index]->key = NULL; key 667 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c key_params.key = priv->wilc_gtk[key_index]->key; key 673 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c key_params.key = priv->wilc_ptk[key_index]->key; key 46 drivers/staging/wilc1000/wilc_wfi_netdevice.h u8 *key; key 54 drivers/staging/wilc1000/wilc_wfi_netdevice.h u8 *key; key 169 drivers/staging/wlan-ng/cfg80211.c if (prism2_domibset_pstr32(wlandev, did, params->key_len, params->key)) key 196 drivers/staging/wlan-ng/cfg80211.c params.key = wlandev->wep_keys[key_index]; key 471 drivers/staging/wlan-ng/cfg80211.c if (sme->key) { key 486 drivers/staging/wlan-ng/cfg80211.c (u8 *)sme->key); key 226 drivers/staging/wlan-ng/p80211netdev.h int wep_change_key(struct wlandevice *wlandev, int keynum, u8 *key, int keylen); key 205 drivers/staging/wlan-ng/p80211req.c u8 *key = mibitem->data + sizeof(struct p80211pstrd); key 215 drivers/staging/wlan-ng/p80211req.c key, pstr->len); key 121 drivers/staging/wlan-ng/p80211wep.c int wep_change_key(struct wlandevice *wlandev, int keynum, u8 *key, int keylen) key 127 drivers/staging/wlan-ng/p80211wep.c if (!key) key 135 drivers/staging/wlan-ng/p80211wep.c memcpy(wlandev->wep_keys[keynum], key, keylen); key 148 drivers/staging/wlan-ng/p80211wep.c u8 s[256], key[64], c_crc[4]; key 156 drivers/staging/wlan-ng/p80211wep.c key[0] = iv[0]; key 157 drivers/staging/wlan-ng/p80211wep.c key[1] = iv[1]; key 158 drivers/staging/wlan-ng/p80211wep.c key[2] = iv[2]; key 173 drivers/staging/wlan-ng/p80211wep.c memcpy(key + 3, wlandev->wep_keys[keyidx], keylen); key 182 drivers/staging/wlan-ng/p80211wep.c j = (j + s[i] + key[i % keylen]) & 0xff; key 221 drivers/staging/wlan-ng/p80211wep.c u8 s[256], key[64]; key 241 drivers/staging/wlan-ng/p80211wep.c key[0] = iv[0]; key 242 drivers/staging/wlan-ng/p80211wep.c key[1] = iv[1]; key 243 drivers/staging/wlan-ng/p80211wep.c key[2] = iv[2]; key 246 drivers/staging/wlan-ng/p80211wep.c memcpy(key + 3, wlandev->wep_keys[keynum], keylen); key 255 drivers/staging/wlan-ng/p80211wep.c j = (j + s[i] + key[i % keylen]) & 0xff; key 243 drivers/staging/wusbcore/crypto.c const u8 key[16], const struct aes_ccm_nonce *_n, key 261 drivers/staging/wusbcore/crypto.c result = crypto_shash_setkey(tfm_cbcmac, key, AES_BLOCK_SIZE); key 452 drivers/staging/wusbcore/host/hwa-hc.c const void *key, size_t key_size, key 472 drivers/staging/wusbcore/host/hwa-hc.c memcpy(keyd->bKeyData, key, key_size); key 493 drivers/staging/wusbcore/host/hwa-hc.c const void *key, size_t key_size) key 502 drivers/staging/wusbcore/host/hwa-hc.c if (key) { key 507 drivers/staging/wusbcore/host/hwa-hc.c key, key_size, key_idx); key 535 drivers/staging/wusbcore/host/hwa-hc.c const void *key, size_t key_size) key 540 drivers/staging/wusbcore/host/hwa-hc.c return __hwahc_dev_set_key(wusbhc, 0, tkid, key, key_size, key_idx); key 131 drivers/staging/wusbcore/host/whci/wusb.c const void *key, size_t key_size, bool is_gtk) key 138 drivers/staging/wusbcore/host/whci/wusb.c memcpy(seckey, key, key_size); key 298 drivers/staging/wusbcore/include/wusb.h const u8 key[16], const struct aes_ccm_nonce *_n, key 302 drivers/staging/wusbcore/include/wusb.h static inline int wusb_prf_64(void *out, size_t out_size, const u8 key[16], key 307 drivers/staging/wusbcore/include/wusb.h return wusb_prf(out, out_size, key, n, a, b, blen, 64); key 310 drivers/staging/wusbcore/include/wusb.h static inline int wusb_prf_128(void *out, size_t out_size, const u8 key[16], key 315 drivers/staging/wusbcore/include/wusb.h return wusb_prf(out, out_size, key, n, a, b, blen, 128); key 318 drivers/staging/wusbcore/include/wusb.h static inline int wusb_prf_256(void *out, size_t out_size, const u8 key[16], key 323 drivers/staging/wusbcore/include/wusb.h return wusb_prf(out, out_size, key, n, a, b, blen, 256); key 328 drivers/staging/wusbcore/include/wusb.h const u8 key[16], key 333 drivers/staging/wusbcore/include/wusb.h return wusb_prf_256(keydvt_out, sizeof(*keydvt_out), key, n, &a, key 353 drivers/staging/wusbcore/include/wusb.h static inline int wusb_oob_mic(u8 mic_out[8], const u8 key[16], key 358 drivers/staging/wusbcore/include/wusb.h return wusb_prf_64(mic_out, 8, key, n, &a, key 273 drivers/staging/wusbcore/wusbhc.h u32 tkid, const void *key, size_t key_size); key 275 drivers/staging/wusbcore/wusbhc.h u32 tkid, const void *key, size_t key_size); key 1044 drivers/target/iscsi/iscsi_target_nego.c char *tmpbuf, *start = NULL, *end = NULL, *key, *value; key 1077 drivers/target/iscsi/iscsi_target_nego.c if (iscsi_extract_key_value(start, &key, &value) < 0) { key 1082 drivers/target/iscsi/iscsi_target_nego.c if (!strncmp(key, "InitiatorName", 13)) key 1084 drivers/target/iscsi/iscsi_target_nego.c else if (!strncmp(key, "SessionType", 11)) key 1086 drivers/target/iscsi/iscsi_target_nego.c else if (!strncmp(key, "TargetName", 10)) key 1089 drivers/target/iscsi/iscsi_target_nego.c start += strlen(key) + strlen(value) + 2; key 657 drivers/target/iscsi/iscsi_target_parameters.c char *key, key 662 drivers/target/iscsi/iscsi_target_parameters.c if (!key || !param_list) { key 668 drivers/target/iscsi/iscsi_target_parameters.c if (!strcmp(key, param->name)) key 672 drivers/target/iscsi/iscsi_target_parameters.c pr_err("Unable to locate key \"%s\".\n", key); key 677 drivers/target/iscsi/iscsi_target_parameters.c int iscsi_extract_key_value(char *textbuf, char **key, char **value) key 686 drivers/target/iscsi/iscsi_target_parameters.c *key = textbuf; key 709 drivers/target/iscsi/iscsi_target_parameters.c char *key, key 717 drivers/target/iscsi/iscsi_target_parameters.c " protocol error.\n", key, VALUE_MAXLEN); key 729 drivers/target/iscsi/iscsi_target_parameters.c strlcpy(extra_response->key, key, sizeof(extra_response->key)); key 738 drivers/target/iscsi/iscsi_target_parameters.c static int iscsi_check_for_auth_key(char *key) key 743 drivers/target/iscsi/iscsi_target_parameters.c if (!strcmp(key, "CHAP_A") || !strcmp(key, "CHAP_I") || key 744 drivers/target/iscsi/iscsi_target_parameters.c !strcmp(key, "CHAP_C") || !strcmp(key, "CHAP_N") || key 745 drivers/target/iscsi/iscsi_target_parameters.c !strcmp(key, "CHAP_R")) key 751 drivers/target/iscsi/iscsi_target_parameters.c if (!strcmp(key, "SRP_U") || !strcmp(key, "SRP_N") || key 752 drivers/target/iscsi/iscsi_target_parameters.c !strcmp(key, "SRP_g") || !strcmp(key, "SRP_s") || key 753 drivers/target/iscsi/iscsi_target_parameters.c !strcmp(key, "SRP_A") || !strcmp(key, "SRP_B") || key 754 drivers/target/iscsi/iscsi_target_parameters.c !strcmp(key, "SRP_M") || !strcmp(key, "SRP_HM")) key 1189 drivers/target/iscsi/iscsi_target_parameters.c char *key, key 1195 drivers/target/iscsi/iscsi_target_parameters.c if (strlen(key) > KEY_MAXLEN) { key 1197 drivers/target/iscsi/iscsi_target_parameters.c key, KEY_MAXLEN); key 1201 drivers/target/iscsi/iscsi_target_parameters.c param = iscsi_find_param_from_key(key, param_list); key 1223 drivers/target/iscsi/iscsi_target_parameters.c char *key, key 1232 drivers/target/iscsi/iscsi_target_parameters.c if (strlen(key) > KEY_MAXLEN) { key 1234 drivers/target/iscsi/iscsi_target_parameters.c key, KEY_MAXLEN); key 1238 drivers/target/iscsi/iscsi_target_parameters.c param = iscsi_find_param_from_key(key, param_list); key 1257 drivers/target/iscsi/iscsi_target_parameters.c key); key 1372 drivers/target/iscsi/iscsi_target_parameters.c char *key, *value; key 1375 drivers/target/iscsi/iscsi_target_parameters.c if (iscsi_extract_key_value(start, &key, &value) < 0) key 1378 drivers/target/iscsi/iscsi_target_parameters.c pr_debug("Got key: %s=%s\n", key, value); key 1381 drivers/target/iscsi/iscsi_target_parameters.c if (iscsi_check_for_auth_key(key) > 0) { key 1387 drivers/target/iscsi/iscsi_target_parameters.c param = iscsi_check_key(key, phase, sender, param_list); key 1389 drivers/target/iscsi/iscsi_target_parameters.c if (iscsi_add_notunderstood_response(key, value, key 1393 drivers/target/iscsi/iscsi_target_parameters.c start += strlen(key) + strlen(value) + 2; key 1399 drivers/target/iscsi/iscsi_target_parameters.c start += strlen(key) + strlen(value) + 2; key 1472 drivers/target/iscsi/iscsi_target_parameters.c *length += sprintf(output_buf, "%s=%s", er->key, er->value); key 1475 drivers/target/iscsi/iscsi_target_parameters.c pr_debug("Sending key: %s=%s\n", er->key, er->value); key 1507 drivers/target/iscsi/iscsi_target_parameters.c char *key = NULL, *value = NULL; key 1511 drivers/target/iscsi/iscsi_target_parameters.c if (iscsi_extract_key_value(keyvalue, &key, &value) < 0) key 9 drivers/target/iscsi/iscsi_target_parameters.h char key[KEY_MAXLEN]; key 1900 drivers/target/sbp/sbp_target.c tport->unit_directory.key = (CSR_DIRECTORY | CSR_UNIT) << 24; key 3048 drivers/target/target_core_transport.c u8 key; key 3056 drivers/target/target_core_transport.c .key = NOT_READY key 3059 drivers/target/target_core_transport.c .key = ILLEGAL_REQUEST, key 3063 drivers/target/target_core_transport.c .key = ILLEGAL_REQUEST, key 3067 drivers/target/target_core_transport.c .key = ILLEGAL_REQUEST, key 3071 drivers/target/target_core_transport.c .key = ILLEGAL_REQUEST, key 3075 drivers/target/target_core_transport.c .key = ABORTED_COMMAND, key 3080 drivers/target/target_core_transport.c .key = ABORTED_COMMAND, key 3085 drivers/target/target_core_transport.c .key = ILLEGAL_REQUEST, key 3089 drivers/target/target_core_transport.c .key = ILLEGAL_REQUEST, key 3093 drivers/target/target_core_transport.c .key = ILLEGAL_REQUEST, key 3098 drivers/target/target_core_transport.c .key = ILLEGAL_REQUEST, key 3103 drivers/target/target_core_transport.c .key = ILLEGAL_REQUEST, key 3108 drivers/target/target_core_transport.c .key = ILLEGAL_REQUEST, key 3113 drivers/target/target_core_transport.c .key = ILLEGAL_REQUEST, key 3117 drivers/target/target_core_transport.c .key = ILLEGAL_REQUEST, key 3122 drivers/target/target_core_transport.c .key = ABORTED_COMMAND, key 3127 drivers/target/target_core_transport.c .key = ABORTED_COMMAND, key 3132 drivers/target/target_core_transport.c .key = DATA_PROTECT, key 3136 drivers/target/target_core_transport.c .key = ILLEGAL_REQUEST, key 3140 drivers/target/target_core_transport.c .key = UNIT_ATTENTION, key 3143 drivers/target/target_core_transport.c .key = NOT_READY, key 3146 drivers/target/target_core_transport.c .key = MISCOMPARE, key 3151 drivers/target/target_core_transport.c .key = ABORTED_COMMAND, key 3157 drivers/target/target_core_transport.c .key = ABORTED_COMMAND, key 3163 drivers/target/target_core_transport.c .key = ABORTED_COMMAND, key 3169 drivers/target/target_core_transport.c .key = COPY_ABORTED, key 3181 drivers/target/target_core_transport.c .key = NOT_READY, key 3195 drivers/target/target_core_transport.c .key = ILLEGAL_REQUEST, key 3217 drivers/target/target_core_transport.c u8 key, asc, ascq; key 3220 drivers/target/target_core_transport.c if (r < ARRAY_SIZE(sense_info_table) && sense_info_table[r].key) key 3226 drivers/target/target_core_transport.c key = si->key; key 3228 drivers/target/target_core_transport.c if (!core_scsi3_ua_for_check_condition(cmd, &key, &asc, key 3245 drivers/target/target_core_transport.c scsi_build_sense_buffer(desc_format, buffer, key, asc, ascq); key 193 drivers/target/target_core_ua.c bool core_scsi3_ua_for_check_condition(struct se_cmd *cmd, u8 *key, u8 *asc, key 214 drivers/target/target_core_ua.c *key = ILLEGAL_REQUEST; key 219 drivers/target/target_core_ua.c *key = UNIT_ATTENTION; key 18 drivers/tee/optee/rpc.c u32 key; key 52 drivers/tee/optee/rpc.c static struct wq_entry *wq_entry_get(struct optee_wait_queue *wq, u32 key) key 59 drivers/tee/optee/rpc.c if (w->key == key) key 65 drivers/tee/optee/rpc.c w->key = key; key 73 drivers/tee/optee/rpc.c static void wq_sleep(struct optee_wait_queue *wq, u32 key) key 75 drivers/tee/optee/rpc.c struct wq_entry *w = wq_entry_get(wq, key); key 86 drivers/tee/optee/rpc.c static void wq_wakeup(struct optee_wait_queue *wq, u32 key) key 88 drivers/tee/optee/rpc.c struct wq_entry *w = wq_entry_get(wq, key); key 27 drivers/thunderbolt/domain.c if (strcmp(id->protocol_key, svc->key)) key 669 drivers/thunderbolt/domain.c ret = crypto_shash_setkey(tfm, sw->key, TB_SWITCH_KEY_SIZE); key 474 drivers/thunderbolt/icm.c memcpy(request.key, sw->key, TB_SWITCH_KEY_SIZE); key 1026 drivers/thunderbolt/icm.c memcpy(request.key, sw->key, TB_SWITCH_KEY_SIZE); key 74 drivers/thunderbolt/property.c static bool tb_property_key_valid(const char *key) key 76 drivers/thunderbolt/property.c return key && strlen(key) <= TB_PROPERTY_KEY_SIZE; key 80 drivers/thunderbolt/property.c tb_property_alloc(const char *key, enum tb_property_type type) key 88 drivers/thunderbolt/property.c strcpy(property->key, key); key 98 drivers/thunderbolt/property.c char key[TB_PROPERTY_KEY_SIZE + 1]; key 105 drivers/thunderbolt/property.c parse_dwdata(key, entry, 2); key 106 drivers/thunderbolt/property.c key[TB_PROPERTY_KEY_SIZE] = '\0'; key 108 drivers/thunderbolt/property.c property = tb_property_alloc(key, entry->type); key 430 drivers/thunderbolt/property.c format_dwdata(entry, property->key, 2); key 510 drivers/thunderbolt/property.c int tb_property_add_immediate(struct tb_property_dir *parent, const char *key, key 515 drivers/thunderbolt/property.c if (!tb_property_key_valid(key)) key 518 drivers/thunderbolt/property.c property = tb_property_alloc(key, TB_PROPERTY_TYPE_VALUE); key 539 drivers/thunderbolt/property.c int tb_property_add_data(struct tb_property_dir *parent, const char *key, key 546 drivers/thunderbolt/property.c if (!tb_property_key_valid(key)) key 549 drivers/thunderbolt/property.c property = tb_property_alloc(key, TB_PROPERTY_TYPE_DATA); key 575 drivers/thunderbolt/property.c int tb_property_add_text(struct tb_property_dir *parent, const char *key, key 582 drivers/thunderbolt/property.c if (!tb_property_key_valid(key)) key 585 drivers/thunderbolt/property.c property = tb_property_alloc(key, TB_PROPERTY_TYPE_TEXT); key 609 drivers/thunderbolt/property.c int tb_property_add_dir(struct tb_property_dir *parent, const char *key, key 614 drivers/thunderbolt/property.c if (!tb_property_key_valid(key)) key 617 drivers/thunderbolt/property.c property = tb_property_alloc(key, TB_PROPERTY_TYPE_DIRECTORY); key 652 drivers/thunderbolt/property.c const char *key, enum tb_property_type type) key 657 drivers/thunderbolt/property.c if (property->type == type && !strcmp(property->key, key)) key 1066 drivers/thunderbolt/switch.c if (sw->key) key 1074 drivers/thunderbolt/switch.c if (sw->key) key 1152 drivers/thunderbolt/switch.c if (sw->key) key 1153 drivers/thunderbolt/switch.c ret = sprintf(buf, "%*phN\n", TB_SWITCH_KEY_SIZE, sw->key); key 1165 drivers/thunderbolt/switch.c u8 key[TB_SWITCH_KEY_SIZE]; key 1171 drivers/thunderbolt/switch.c else if (hex2bin(key, buf, sizeof(key))) key 1180 drivers/thunderbolt/switch.c kfree(sw->key); key 1182 drivers/thunderbolt/switch.c sw->key = NULL; key 1184 drivers/thunderbolt/switch.c sw->key = kmemdup(key, sizeof(key), GFP_KERNEL); key 1185 drivers/thunderbolt/switch.c if (!sw->key) key 1193 drivers/thunderbolt/switch.c static DEVICE_ATTR(key, 0600, key_show, key_store); key 1425 drivers/thunderbolt/switch.c kfree(sw->key); key 112 drivers/thunderbolt/tb.h u8 *key; key 226 drivers/thunderbolt/tb_msgs.h u32 key[8]; key 394 drivers/thunderbolt/tb_msgs.h u32 key[8]; key 639 drivers/thunderbolt/xdomain.c return sprintf(buf, "%*pE\n", (int)strlen(svc->key), svc->key); key 641 drivers/thunderbolt/xdomain.c static DEVICE_ATTR_RO(key); key 645 drivers/thunderbolt/xdomain.c return snprintf(buf, size, "tbsvc:k%sp%08Xv%08Xr%08X", svc->key, key 730 drivers/thunderbolt/xdomain.c kfree(svc->key); key 751 drivers/thunderbolt/xdomain.c if (!tb_property_find(xd->properties, svc->key, key 767 drivers/thunderbolt/xdomain.c return !strcmp(svc->key, p->key); key 790 drivers/thunderbolt/xdomain.c svc->key = kstrdup(property->key, GFP_KERNEL); key 791 drivers/thunderbolt/xdomain.c if (!svc->key) key 1614 drivers/thunderbolt/xdomain.c static bool remove_directory(const char *key, const struct tb_property_dir *dir) key 1618 drivers/thunderbolt/xdomain.c p = tb_property_find(xdomain_property_dir, key, key 1639 drivers/thunderbolt/xdomain.c int tb_register_property_dir(const char *key, struct tb_property_dir *dir) key 1646 drivers/thunderbolt/xdomain.c if (!key || strlen(key) > 8) key 1650 drivers/thunderbolt/xdomain.c if (tb_property_find(xdomain_property_dir, key, key 1656 drivers/thunderbolt/xdomain.c ret = tb_property_add_dir(xdomain_property_dir, key, dir); key 1662 drivers/thunderbolt/xdomain.c remove_directory(key, dir); key 1684 drivers/thunderbolt/xdomain.c void tb_unregister_property_dir(const char *key, struct tb_property_dir *dir) key 1689 drivers/thunderbolt/xdomain.c if (remove_directory(key, dir)) key 527 drivers/tty/moxa.c unsigned long key, loadbuf, loadlen, checksum, checksum_ok; key 538 drivers/tty/moxa.c key = C218_key; key 545 drivers/tty/moxa.c key = C320_key; key 569 drivers/tty/moxa.c writew(0, baseAddr + key); key 571 drivers/tty/moxa.c if (readw(baseAddr + key) == keycode) key 575 drivers/tty/moxa.c if (readw(baseAddr + key) != keycode) key 580 drivers/tty/moxa.c writew(0, baseAddr + key); key 582 drivers/tty/moxa.c if (readw(baseAddr + key) == keycode) key 591 drivers/tty/moxa.c writew(0, baseAddr + key); key 98 drivers/tty/serial/8250/8250_fintek.c u8 key; key 122 drivers/tty/serial/8250/8250_fintek.c static int fintek_8250_enter_key(u16 base_port, u8 key) key 130 drivers/tty/serial/8250/8250_fintek.c outb(key, base_port + ADDR_PORT); key 131 drivers/tty/serial/8250/8250_fintek.c outb(key, base_port + ADDR_PORT); key 234 drivers/tty/serial/8250/8250_fintek.c if (fintek_8250_enter_key(pdata->base_port, pdata->key)) key 348 drivers/tty/serial/8250/8250_fintek.c if (fintek_8250_enter_key(pdata->base_port, pdata->key)) key 397 drivers/tty/serial/8250/8250_fintek.c pdata->key = keys[j]; key 87 drivers/tty/sysrq.c static void sysrq_handle_loglevel(int key) key 91 drivers/tty/sysrq.c i = key - '0'; key 104 drivers/tty/sysrq.c static void sysrq_handle_SAK(int key) key 120 drivers/tty/sysrq.c static void sysrq_handle_unraw(int key) key 135 drivers/tty/sysrq.c static void sysrq_handle_crash(int key) key 149 drivers/tty/sysrq.c static void sysrq_handle_reboot(int key) key 162 drivers/tty/sysrq.c static void sysrq_handle_sync(int key) key 173 drivers/tty/sysrq.c static void sysrq_handle_show_timers(int key) key 184 drivers/tty/sysrq.c static void sysrq_handle_mountro(int key) key 196 drivers/tty/sysrq.c static void sysrq_handle_showlocks(int key) key 234 drivers/tty/sysrq.c static void sysrq_handle_showallcpus(int key) key 262 drivers/tty/sysrq.c static void sysrq_handle_showregs(int key) key 279 drivers/tty/sysrq.c static void sysrq_handle_showstate(int key) key 291 drivers/tty/sysrq.c static void sysrq_handle_showstate_blocked(int key) key 305 drivers/tty/sysrq.c static void sysrq_ftrace_dump(int key) key 319 drivers/tty/sysrq.c static void sysrq_handle_showmem(int key) key 349 drivers/tty/sysrq.c static void sysrq_handle_term(int key) key 380 drivers/tty/sysrq.c static void sysrq_handle_moom(int key) key 392 drivers/tty/sysrq.c static void sysrq_handle_thaw(int key) key 404 drivers/tty/sysrq.c static void sysrq_handle_kill(int key) key 416 drivers/tty/sysrq.c static void sysrq_handle_unrt(int key) key 490 drivers/tty/sysrq.c static int sysrq_key_table_key2index(int key) key 494 drivers/tty/sysrq.c if ((key >= '0') && (key <= '9')) key 495 drivers/tty/sysrq.c retval = key - '0'; key 496 drivers/tty/sysrq.c else if ((key >= 'a') && (key <= 'z')) key 497 drivers/tty/sysrq.c retval = key + 10 - 'a'; key 506 drivers/tty/sysrq.c struct sysrq_key_op *__sysrq_get_key_op(int key) key 511 drivers/tty/sysrq.c i = sysrq_key_table_key2index(key); key 518 drivers/tty/sysrq.c static void __sysrq_put_key_op(int key, struct sysrq_key_op *op_p) key 520 drivers/tty/sysrq.c int i = sysrq_key_table_key2index(key); key 526 drivers/tty/sysrq.c void __handle_sysrq(int key, bool check_mask) key 547 drivers/tty/sysrq.c op_p = __sysrq_get_key_op(key); key 556 drivers/tty/sysrq.c op_p->handler(key); key 585 drivers/tty/sysrq.c void handle_sysrq(int key) key 588 drivers/tty/sysrq.c __handle_sysrq(key, true); key 633 drivers/tty/sysrq.c unsigned short key; key 638 drivers/tty/sysrq.c key = sysrq_reset_seq[i]; key 640 drivers/tty/sysrq.c if (key == KEY_RESERVED || key > KEY_MAX) key 643 drivers/tty/sysrq.c __set_bit(key, state->reset_keybit); key 646 drivers/tty/sysrq.c if (test_bit(key, state->key_down)) key 713 drivers/tty/sysrq.c u32 key; key 727 drivers/tty/sysrq.c of_property_for_each_u32(np, "keyset", prop, p, key) { key 728 drivers/tty/sysrq.c if (key == KEY_RESERVED || key > KEY_MAX || key 732 drivers/tty/sysrq.c sysrq_reset_seq[sysrq_reset_seq_len++] = (unsigned short)key; key 815 drivers/tty/sysrq.c clear_bit(KEY_SYSRQ, sysrq->handle.dev->key); key 1057 drivers/tty/sysrq.c static int __sysrq_swap_key_ops(int key, struct sysrq_key_op *insert_op_p, key 1063 drivers/tty/sysrq.c if (__sysrq_get_key_op(key) == remove_op_p) { key 1064 drivers/tty/sysrq.c __sysrq_put_key_op(key, insert_op_p); key 1081 drivers/tty/sysrq.c int register_sysrq_key(int key, struct sysrq_key_op *op_p) key 1083 drivers/tty/sysrq.c return __sysrq_swap_key_ops(key, op_p, NULL); key 1087 drivers/tty/sysrq.c int unregister_sysrq_key(int key, struct sysrq_key_op *op_p) key 1089 drivers/tty/sysrq.c return __sysrq_swap_key_ops(key, NULL, op_p); key 58 drivers/tty/tty_ldsem.c struct lock_class_key *key) key 65 drivers/tty/tty_ldsem.c lockdep_init_map(&sem->dep_map, name, key, 0); key 325 drivers/tty/vt/keyboard.c static void applkey(struct vc_data *vc, int key, char mode) key 330 drivers/tty/vt/keyboard.c buf[2] = key; key 2542 drivers/tty/vt/vt.c static int ucs_cmp(const void *key, const void *elt) key 2544 drivers/tty/vt/vt.c uint32_t ucs = *(uint32_t *)key; key 1563 drivers/usb/gadget/function/f_fs.c return invalf(fc, "%s: unmapped value: %u", param->key, result.uint_32); key 189 drivers/usb/host/xhci-mem.c unsigned long key; key 192 drivers/usb/host/xhci-mem.c key = (unsigned long)(seg->dma >> TRB_SEGMENT_SHIFT); key 194 drivers/usb/host/xhci-mem.c if (radix_tree_lookup(trb_address_map, key)) key 201 drivers/usb/host/xhci-mem.c key, ring); key 209 drivers/usb/host/xhci-mem.c unsigned long key; key 211 drivers/usb/host/xhci-mem.c key = (unsigned long)(seg->dma >> TRB_SEGMENT_SHIFT); key 212 drivers/usb/host/xhci-mem.c if (radix_tree_lookup(trb_address_map, key)) key 213 drivers/usb/host/xhci-mem.c radix_tree_delete(trb_address_map, key); key 145 drivers/usb/storage/debug.c unsigned char key, key 151 drivers/usb/storage/debug.c keystr = scsi_sense_key_string(key); key 34 drivers/usb/storage/debug.h void usb_stor_show_sense(const struct us_data *us, unsigned char key, key 43 drivers/vfio/virqfd.c static int virqfd_wakeup(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) key 46 drivers/vfio/virqfd.c __poll_t flags = key_to_poll(key); key 169 drivers/vhost/vhost.c void *key) key 173 drivers/vhost/vhost.c if (!(key_to_poll(key) & poll->mask)) key 2269 drivers/video/fbdev/sis/init.c unsigned short colordepth, unsigned short key) key 2276 drivers/video/fbdev/sis/init.c if(key == 0) { key 2387 drivers/video/fbdev/sis/init.c SiS_CalcDelay2(struct SiS_Private *SiS_Pr, unsigned char key) key 2392 drivers/video/fbdev/sis/init.c index = ((key & 0x0f) * 3) + ((key & 0xc0) >> 6); key 2394 drivers/video/fbdev/sis/init.c index = (key & 0xe0) >> 5; key 2395 drivers/video/fbdev/sis/init.c if(key & 0x10) index += 6; key 2396 drivers/video/fbdev/sis/init.c if(!(key & 0x01)) index += 24; key 1606 drivers/video/fbdev/udlfb.c u16 key; key 1608 drivers/video/fbdev/udlfb.c key = *desc++; key 1609 drivers/video/fbdev/udlfb.c key |= (u16)*desc++ << 8; key 1612 drivers/video/fbdev/udlfb.c switch (key) { key 38 fs/affs/affs.h u32 key; /* block number */ key 78 fs/affs/amigaffs.h __be32 key; key 108 fs/affs/amigaffs.h __be32 key; key 117 fs/affs/amigaffs.h __be32 key; key 53 fs/affs/file.c int i, j, key; key 96 fs/affs/file.c key = AFFS_I(inode)->i_lc[i - 1]; key 100 fs/affs/file.c bh = affs_bread(sb, key); key 103 fs/affs/file.c key = be32_to_cpu(AFFS_TAIL(sb, bh)->extension); key 107 fs/affs/file.c AFFS_I(inode)->i_lc[i] = key; key 135 fs/affs/file.c AFFS_HEAD(new_bh)->key = cpu_to_be32(blocknr); key 237 fs/affs/file.c ext_key = AFFS_I(inode)->i_ac[ac_idx].key; key 247 fs/affs/file.c ext_key = AFFS_I(inode)->i_ac[idx].key; key 270 fs/affs/file.c AFFS_I(inode)->i_ac[ac_idx].key = ext_key; key 580 fs/affs/file.c AFFS_DATA_HEAD(bh)->key = cpu_to_be32(inode->i_ino); key 730 fs/affs/file.c AFFS_DATA_HEAD(bh)->key = cpu_to_be32(inode->i_ino); key 764 fs/affs/file.c AFFS_DATA_HEAD(bh)->key = cpu_to_be32(inode->i_ino); key 385 fs/affs/inode.c AFFS_HEAD(bh)->key = cpu_to_be32(bh->b_blocknr); key 175 fs/affs/namei.c u32 key; key 183 fs/affs/namei.c key = be32_to_cpu(AFFS_HEAD(bh)->table[affs_hash_name(sb, dentry->d_name.name, dentry->d_name.len)]); key 187 fs/affs/namei.c if (key == 0) key 189 fs/affs/namei.c bh = affs_bread(sb, key); key 194 fs/affs/namei.c key = be32_to_cpu(AFFS_TAIL(sb, bh)->hash_chain); key 556 fs/afs/cell.c struct key *key; key 567 fs/afs/cell.c key = rxrpc_get_null_key(keyname); key 568 fs/afs/cell.c if (IS_ERR(key)) key 569 fs/afs/cell.c return PTR_ERR(key); key 571 fs/afs/cell.c cell->anonymous_key = key; key 214 fs/afs/dir.c static struct afs_read *afs_read_dir(struct afs_vnode *dvnode, struct key *key) key 311 fs/afs/dir.c ret = afs_fetch_data(dvnode, key, req); key 443 fs/afs/dir.c struct key *key, afs_dataversion_t *_dir_version) key 460 fs/afs/dir.c req = afs_read_dir(dvnode, key); key 562 fs/afs/dir.c struct afs_fid *fid, struct key *key, key 576 fs/afs/dir.c ret = afs_dir_iterate(dir, &cookie.ctx, key, _dir_version); key 639 fs/afs/dir.c struct key *key) key 678 fs/afs/dir.c ret = afs_dir_iterate(dir, &cookie->ctx, key, &data_version); key 736 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { key 771 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { key 820 fs/afs/dir.c ti = afs_iget(dir->i_sb, key, &iget_data, scb, cbi, dvnode); key 822 fs/afs/dir.c afs_cache_permit(AFS_FS_I(ti), key, key 852 fs/afs/dir.c struct key *key) key 900 fs/afs/dir.c key_put(key); key 914 fs/afs/dir.c struct key *key; key 932 fs/afs/dir.c key = afs_request_key(dvnode->volume->cell); key 933 fs/afs/dir.c if (IS_ERR(key)) { key 934 fs/afs/dir.c _leave(" = %ld [key]", PTR_ERR(key)); key 935 fs/afs/dir.c return ERR_CAST(key); key 938 fs/afs/dir.c ret = afs_validate(dvnode, key); key 940 fs/afs/dir.c key_put(key); key 950 fs/afs/dir.c return afs_lookup_atsys(dir, dentry, key); key 953 fs/afs/dir.c inode = afs_do_lookup(dir, dentry, key); key 954 fs/afs/dir.c key_put(key); key 1034 fs/afs/dir.c struct key *key; key 1051 fs/afs/dir.c key = afs_request_key(AFS_FS_S(dentry->d_sb)->volume->cell); key 1052 fs/afs/dir.c if (IS_ERR(key)) key 1053 fs/afs/dir.c key = NULL; key 1059 fs/afs/dir.c afs_validate(vnode, key); key 1070 fs/afs/dir.c afs_validate(dir, key); key 1095 fs/afs/dir.c ret = afs_do_lookup_one(&dir->vfs_inode, dentry, &fid, key, &dir_version); key 1151 fs/afs/dir.c key_put(key); key 1165 fs/afs/dir.c key_put(key); key 1229 fs/afs/dir.c inode = afs_iget(fc->vnode->vfs_inode.i_sb, fc->key, key 1242 fs/afs/dir.c afs_cache_permit(vnode, fc->key, vnode->cb_break, new_scb); key 1277 fs/afs/dir.c struct key *key; key 1291 fs/afs/dir.c key = afs_request_key(dvnode->volume->cell); key 1292 fs/afs/dir.c if (IS_ERR(key)) { key 1293 fs/afs/dir.c ret = PTR_ERR(key); key 1298 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { key 1329 fs/afs/dir.c key_put(key); key 1335 fs/afs/dir.c key_put(key); key 1367 fs/afs/dir.c struct key *key; key 1378 fs/afs/dir.c key = afs_request_key(dvnode->volume->cell); key 1379 fs/afs/dir.c if (IS_ERR(key)) { key 1380 fs/afs/dir.c ret = PTR_ERR(key); key 1387 fs/afs/dir.c ret = afs_validate(vnode, key); key 1399 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { key 1425 fs/afs/dir.c key_put(key); key 1442 fs/afs/dir.c struct key *key) key 1466 fs/afs/dir.c ret = afs_validate(vnode, key); key 1485 fs/afs/dir.c struct key *key; key 1500 fs/afs/dir.c key = afs_request_key(dvnode->volume->cell); key 1501 fs/afs/dir.c if (IS_ERR(key)) { key 1502 fs/afs/dir.c ret = PTR_ERR(key); key 1507 fs/afs/dir.c ret = afs_validate(vnode, key); key 1516 fs/afs/dir.c ret = afs_sillyrename(dvnode, vnode, dentry, key); key 1527 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { key 1555 fs/afs/dir.c ret = afs_dir_remove_link(dvnode, dentry, key); key 1571 fs/afs/dir.c key_put(key); key 1589 fs/afs/dir.c struct key *key; key 1602 fs/afs/dir.c key = afs_request_key(dvnode->volume->cell); key 1603 fs/afs/dir.c if (IS_ERR(key)) { key 1604 fs/afs/dir.c ret = PTR_ERR(key); key 1614 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { key 1644 fs/afs/dir.c key_put(key); key 1651 fs/afs/dir.c key_put(key); key 1668 fs/afs/dir.c struct key *key; key 1686 fs/afs/dir.c key = afs_request_key(dvnode->volume->cell); key 1687 fs/afs/dir.c if (IS_ERR(key)) { key 1688 fs/afs/dir.c ret = PTR_ERR(key); key 1693 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { key 1731 fs/afs/dir.c key_put(key); key 1737 fs/afs/dir.c key_put(key); key 1756 fs/afs/dir.c struct key *key; key 1777 fs/afs/dir.c key = afs_request_key(dvnode->volume->cell); key 1778 fs/afs/dir.c if (IS_ERR(key)) { key 1779 fs/afs/dir.c ret = PTR_ERR(key); key 1784 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { key 1813 fs/afs/dir.c key_put(key); key 1819 fs/afs/dir.c key_put(key); key 1840 fs/afs/dir.c struct key *key; key 1868 fs/afs/dir.c key = afs_request_key(orig_dvnode->volume->cell); key 1869 fs/afs/dir.c if (IS_ERR(key)) { key 1870 fs/afs/dir.c ret = PTR_ERR(key); key 1898 fs/afs/dir.c new_dentry, key); key 1920 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, orig_dvnode, key, true)) { key 2005 fs/afs/dir.c key_put(key); key 20 fs/afs/dir_silly.c struct key *key) key 34 fs/afs/dir_silly.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { key 53 fs/afs/dir_silly.c if (dvnode->silly_key != key) { key 55 fs/afs/dir_silly.c dvnode->silly_key = key_get(key); key 86 fs/afs/dir_silly.c struct dentry *dentry, struct key *key) key 121 fs/afs/dir_silly.c ret = afs_do_silly_rename(dvnode, vnode, dentry, sdentry, key); key 146 fs/afs/dir_silly.c struct dentry *dentry, struct key *key) key 159 fs/afs/dir_silly.c if (afs_begin_vnode_operation(&fc, dvnode, key, false)) { key 73 fs/afs/file.c key_put(wbk->key); key 89 fs/afs/file.c wbk->key = af->key; key 93 fs/afs/file.c if (p->key == wbk->key) key 97 fs/afs/file.c key_get(wbk->key); key 118 fs/afs/file.c struct key *key; key 123 fs/afs/file.c key = afs_request_key(vnode->volume->cell); key 124 fs/afs/file.c if (IS_ERR(key)) { key 125 fs/afs/file.c ret = PTR_ERR(key); key 134 fs/afs/file.c af->key = key; key 136 fs/afs/file.c ret = afs_validate(vnode, key); key 156 fs/afs/file.c key_put(key); key 179 fs/afs/file.c key_put(af->key); key 226 fs/afs/file.c int afs_fetch_data(struct afs_vnode *vnode, struct key *key, struct afs_read *desc) key 237 fs/afs/file.c key_serial(key)); key 244 fs/afs/file.c if (afs_begin_vnode_operation(&fc, vnode, key, true)) { key 277 fs/afs/file.c struct key *key = data; key 280 fs/afs/file.c _enter("{%x},{%lu},{%lu}", key_serial(key), inode->i_ino, page->index); key 333 fs/afs/file.c ret = afs_fetch_data(vnode, key, req); key 391 fs/afs/file.c struct key *key; key 395 fs/afs/file.c key = afs_file_key(file); key 396 fs/afs/file.c ASSERT(key != NULL); key 397 fs/afs/file.c ret = afs_page_filler(key, page); key 400 fs/afs/file.c key = afs_request_key(AFS_FS_S(inode->i_sb)->cell); key 401 fs/afs/file.c if (IS_ERR(key)) { key 402 fs/afs/file.c ret = PTR_ERR(key); key 404 fs/afs/file.c ret = afs_page_filler(key, page); key 405 fs/afs/file.c key_put(key); key 447 fs/afs/file.c struct key *key = afs_file_key(file); key 507 fs/afs/file.c ret = afs_fetch_data(vnode, key, req); key 544 fs/afs/file.c struct key *key = afs_file_key(file); key 549 fs/afs/file.c key_serial(key), mapping->host->i_ino, nr_pages); key 551 fs/afs/file.c ASSERT(key != NULL); key 113 fs/afs/flock.c struct key *key = vnode->lock_key; key 124 fs/afs/flock.c afs_file_key(p->fl_file) == key) { key 138 fs/afs/flock.c key_put(key); key 178 fs/afs/flock.c static int afs_set_lock(struct afs_vnode *vnode, struct key *key, key 190 fs/afs/flock.c key_serial(key), type); key 197 fs/afs/flock.c if (afs_begin_vnode_operation(&fc, vnode, key, true)) { key 216 fs/afs/flock.c static int afs_extend_lock(struct afs_vnode *vnode, struct key *key) key 227 fs/afs/flock.c key_serial(key)); key 234 fs/afs/flock.c if (afs_begin_vnode_operation(&fc, vnode, key, false)) { key 253 fs/afs/flock.c static int afs_release_lock(struct afs_vnode *vnode, struct key *key) key 264 fs/afs/flock.c key_serial(key)); key 271 fs/afs/flock.c if (afs_begin_vnode_operation(&fc, vnode, key, false)) { key 296 fs/afs/flock.c struct key *key; key 338 fs/afs/flock.c key = key_get(vnode->lock_key); key 343 fs/afs/flock.c ret = afs_extend_lock(vnode, key); /* RPC */ key 344 fs/afs/flock.c key_put(key); key 423 fs/afs/flock.c static int afs_do_setlk_check(struct afs_vnode *vnode, struct key *key, key 432 fs/afs/flock.c ret = afs_validate(vnode, key); key 439 fs/afs/flock.c ret = afs_check_permit(vnode, key, &access); key 469 fs/afs/flock.c struct key *key = afs_file_key(file); key 489 fs/afs/flock.c ret = afs_do_setlk_check(vnode, key, mode, type); key 562 fs/afs/flock.c vnode->lock_key = key_get(key); key 567 fs/afs/flock.c ret = afs_set_lock(vnode, key, type); /* RPC */ key 630 fs/afs/flock.c afs_validate(vnode, key); key 736 fs/afs/flock.c struct key *key = afs_file_key(file); key 750 fs/afs/flock.c ret = afs_fetch_status(vnode, key, false, NULL); key 125 fs/afs/fs_probe.c struct key *key, key 148 fs/afs/fs_probe.c call = afs_fs_get_capabilities(net, server, &ac, key, server_index); key 166 fs/afs/fs_probe.c int afs_probe_fileservers(struct afs_net *net, struct key *key, key 182 fs/afs/fs_probe.c afs_do_probe_fileserver(net, server, key, i, &e)) key 292 fs/afs/fsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); key 301 fs/afs/fsclient.c call->key = fc->key; key 495 fs/afs/fsclient.c call->key = fc->key; key 545 fs/afs/fsclient.c call->key = fc->key; key 649 fs/afs/fsclient.c call->key = fc->key; key 749 fs/afs/fsclient.c call->key = fc->key; key 838 fs/afs/fsclient.c call->key = fc->key; key 940 fs/afs/fsclient.c call->key = fc->key; key 1056 fs/afs/fsclient.c call->key = fc->key; key 1150 fs/afs/fsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); key 1158 fs/afs/fsclient.c call->key = fc->key; key 1212 fs/afs/fsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); key 1238 fs/afs/fsclient.c call->key = fc->key; key 1334 fs/afs/fsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); key 1344 fs/afs/fsclient.c call->key = fc->key; key 1383 fs/afs/fsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); key 1395 fs/afs/fsclient.c call->key = fc->key; key 1437 fs/afs/fsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); key 1445 fs/afs/fsclient.c call->key = fc->key; key 1624 fs/afs/fsclient.c call->key = fc->key; key 1713 fs/afs/fsclient.c call->key = fc->key; key 1751 fs/afs/fsclient.c call->key = fc->key; key 1788 fs/afs/fsclient.c call->key = fc->key; key 1830 fs/afs/fsclient.c struct key *key) key 1841 fs/afs/fsclient.c call->key = key; key 1916 fs/afs/fsclient.c struct key *key, key 1928 fs/afs/fsclient.c call->key = key; key 1995 fs/afs/fsclient.c key_serial(fc->key), fid->vid, fid->vnode); key 2003 fs/afs/fsclient.c call->key = fc->key; key 2163 fs/afs/fsclient.c key_serial(fc->key), fids[0].vid, fids[1].vnode, nr_fids); key 2173 fs/afs/fsclient.c call->key = fc->key; key 2291 fs/afs/fsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); key 2299 fs/afs/fsclient.c call->key = fc->key; key 2363 fs/afs/fsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); key 2373 fs/afs/fsclient.c call->key = fc->key; key 71 fs/afs/inode.c static int afs_inode_init_from_status(struct afs_vnode *vnode, struct key *key, key 298 fs/afs/inode.c afs_cache_permit(vnode, fc->key, cb_break, scb); key 304 fs/afs/inode.c int afs_fetch_status(struct afs_vnode *vnode, struct key *key, bool is_new, key 321 fs/afs/inode.c if (afs_begin_vnode_operation(&fc, vnode, key, true)) { key 332 fs/afs/inode.c ret = afs_inode_init_from_status(vnode, key, fc.cbi, key 336 fs/afs/inode.c afs_cache_permit(vnode, key, fc.cb_break, scb); key 480 fs/afs/inode.c } __packed key; key 488 fs/afs/inode.c key.vnode_id = vnode->fid.vnode; key 489 fs/afs/inode.c key.unique = vnode->fid.unique; key 490 fs/afs/inode.c key.vnode_id_ext[0] = vnode->fid.vnode >> 32; key 491 fs/afs/inode.c key.vnode_id_ext[1] = vnode->fid.vnode_hi; key 496 fs/afs/inode.c &key, sizeof(key), key 505 fs/afs/inode.c struct inode *afs_iget(struct super_block *sb, struct key *key, key 542 fs/afs/inode.c ret = afs_fetch_status(vnode, key, true, NULL); key 546 fs/afs/inode.c ret = afs_inode_init_from_status(vnode, key, cbi, parent_vnode, key 661 fs/afs/inode.c int afs_validate(struct afs_vnode *vnode, struct key *key) key 668 fs/afs/inode.c key_serial(key)); key 688 fs/afs/inode.c ret = afs_fetch_status(vnode, key, false, NULL); key 820 fs/afs/inode.c struct key *key; key 842 fs/afs/inode.c key = afs_file_key(attr->ia_file); key 844 fs/afs/inode.c key = afs_request_key(vnode->volume->cell); key 845 fs/afs/inode.c if (IS_ERR(key)) { key 846 fs/afs/inode.c ret = PTR_ERR(key); key 852 fs/afs/inode.c if (afs_begin_vnode_operation(&fc, vnode, key, false)) { key 870 fs/afs/inode.c key_put(key); key 59 fs/afs/internal.h struct key *key; /* key to use for secure mounting */ key 110 fs/afs/internal.h struct key *key; /* security for this call */ key 202 fs/afs/internal.h struct key *key; key 210 fs/afs/internal.h struct key *key; /* The key this file was opened with */ key 214 fs/afs/internal.h static inline struct key *afs_file_key(struct file *file) key 218 fs/afs/internal.h return af->key; key 372 fs/afs/internal.h struct key *anonymous_key; /* anonymous user key for this cell */ key 658 fs/afs/internal.h struct key *silly_key; /* Silly rename key */ key 676 fs/afs/internal.h struct key *lock_key; /* Key to be used in lock ops */ key 704 fs/afs/internal.h struct key *key; /* RxRPC ticket holding a security context */ key 751 fs/afs/internal.h struct key *key; /* Key for the server */ key 771 fs/afs/internal.h struct key *key; /* Key for the server */ key 907 fs/afs/internal.h struct dentry *, struct key *); key 933 fs/afs/internal.h extern int afs_fetch_data(struct afs_vnode *, struct key *, struct afs_read *); key 974 fs/afs/internal.h struct afs_addr_cursor *, struct key *); key 976 fs/afs/internal.h struct afs_addr_cursor *, struct key *, key 998 fs/afs/internal.h extern int afs_probe_fileservers(struct afs_net *, struct key *, struct afs_server_list *); key 1009 fs/afs/internal.h extern int afs_fetch_status(struct afs_vnode *, struct key *, bool, afs_access_t *); key 1012 fs/afs/internal.h extern struct inode *afs_iget(struct super_block *, struct key *, key 1018 fs/afs/internal.h extern int afs_validate(struct afs_vnode *, struct key *); key 1104 fs/afs/internal.h struct key *, bool); key 1223 fs/afs/internal.h extern void afs_cache_permit(struct afs_vnode *, struct key *, unsigned int, key 1226 fs/afs/internal.h extern struct key *afs_request_key(struct afs_cell *); key 1227 fs/afs/internal.h extern struct key *afs_request_key_rcu(struct afs_cell *); key 1228 fs/afs/internal.h extern int afs_check_permit(struct afs_vnode *, struct key *, afs_access_t *); key 1240 fs/afs/internal.h extern struct afs_server *afs_lookup_server(struct afs_cell *, struct key *, const uuid_t *); key 1258 fs/afs/internal.h extern struct afs_server_list *afs_alloc_server_list(struct afs_cell *, struct key *, key 1276 fs/afs/internal.h struct key *, struct afs_vlserver *, unsigned int); key 1283 fs/afs/internal.h extern int afs_send_vl_probes(struct afs_net *, struct key *, struct afs_vlserver_list *); key 1290 fs/afs/internal.h struct afs_cell *, struct key *); key 24 fs/afs/rotate.c struct key *key, bool intr) key 28 fs/afs/rotate.c fc->key = key; key 352 fs/afs/rotate.c error = afs_probe_fileservers(afs_v2net(vnode), fc->key, fc->server_list); key 376 fs/afs/rxrpc.c call, call->type->name, key_serial(call->key), key 410 fs/afs/rxrpc.c rxcall = rxrpc_kernel_begin_call(call->net->socket, srx, call->key, key 23 fs/afs/security.c struct key *afs_request_key(struct afs_cell *cell) key 25 fs/afs/security.c struct key *key; key 30 fs/afs/security.c key = request_key_net(&key_type_rxrpc, cell->anonymous_key->description, key 32 fs/afs/security.c if (IS_ERR(key)) { key 33 fs/afs/security.c if (PTR_ERR(key) != -ENOKEY) { key 34 fs/afs/security.c _leave(" = %ld", PTR_ERR(key)); key 35 fs/afs/security.c return key; key 43 fs/afs/security.c _leave(" = {%x} [auth]", key_serial(key)); key 44 fs/afs/security.c return key; key 51 fs/afs/security.c struct key *afs_request_key_rcu(struct afs_cell *cell) key 53 fs/afs/security.c struct key *key; key 58 fs/afs/security.c key = request_key_net_rcu(&key_type_rxrpc, key 61 fs/afs/security.c if (IS_ERR(key)) { key 62 fs/afs/security.c if (PTR_ERR(key) != -ENOKEY) { key 63 fs/afs/security.c _leave(" = %ld", PTR_ERR(key)); key 64 fs/afs/security.c return key; key 72 fs/afs/security.c _leave(" = {%x} [auth]", key_serial(key)); key 73 fs/afs/security.c return key; key 87 fs/afs/security.c key_put(permits->permits[i].key); key 130 fs/afs/security.c h += (unsigned long)permits->permits[i].key / sizeof(void *); key 143 fs/afs/security.c void afs_cache_permit(struct afs_vnode *vnode, struct key *key, key 153 fs/afs/security.c vnode->fid.vid, vnode->fid.vnode, key_serial(key), caller_access); key 164 fs/afs/security.c if (permits->permits[i].key < key) key 166 fs/afs/security.c if (permits->permits[i].key > key) key 233 fs/afs/security.c if (j == i && permits->permits[i].key > key) { key 234 fs/afs/security.c new->permits[j].key = key; key 238 fs/afs/security.c new->permits[j].key = permits->permits[i].key; key 245 fs/afs/security.c new->permits[j].key = key; key 271 fs/afs/security.c key_get(new->permits[i].key); key 306 fs/afs/security.c static bool afs_check_permit_rcu(struct afs_vnode *vnode, struct key *key, key 313 fs/afs/security.c vnode->fid.vid, vnode->fid.vnode, key_serial(key)); key 316 fs/afs/security.c if (key == vnode->volume->cell->anonymous_key) { key 325 fs/afs/security.c if (permits->permits[i].key < key) key 327 fs/afs/security.c if (permits->permits[i].key > key) key 345 fs/afs/security.c int afs_check_permit(struct afs_vnode *vnode, struct key *key, key 353 fs/afs/security.c vnode->fid.vid, vnode->fid.vnode, key_serial(key)); key 356 fs/afs/security.c if (key == vnode->volume->cell->anonymous_key) { key 365 fs/afs/security.c if (permits->permits[i].key < key) key 367 fs/afs/security.c if (permits->permits[i].key > key) key 384 fs/afs/security.c ret = afs_fetch_status(vnode, key, false, _access); key 405 fs/afs/security.c struct key *key; key 412 fs/afs/security.c key = afs_request_key_rcu(vnode->volume->cell); key 413 fs/afs/security.c if (IS_ERR(key)) key 418 fs/afs/security.c !afs_check_permit_rcu(vnode, key, &access)) key 421 fs/afs/security.c key = afs_request_key(vnode->volume->cell); key 422 fs/afs/security.c if (IS_ERR(key)) { key 423 fs/afs/security.c _leave(" = %ld [key]", PTR_ERR(key)); key 424 fs/afs/security.c return PTR_ERR(key); key 427 fs/afs/security.c ret = afs_validate(vnode, key); key 432 fs/afs/security.c ret = afs_check_permit(vnode, key, &access); key 470 fs/afs/security.c key_put(key); key 477 fs/afs/security.c key_put(key); key 243 fs/afs/server.c struct key *key, const uuid_t *uuid) key 250 fs/afs/server.c if (afs_begin_vlserver_operation(&vc, cell, key)) { key 267 fs/afs/server.c struct afs_server *afs_lookup_server(struct afs_cell *cell, struct key *key, key 279 fs/afs/server.c alist = afs_vl_lookup_addrs(cell, key, uuid); key 537 fs/afs/server.c alist = afs_vl_lookup_addrs(fc->vnode->volume->cell, fc->key, key 30 fs/afs/server_list.c struct key *key, key 54 fs/afs/server_list.c server = afs_lookup_server(cell, key, &vldb->fs_server[i]); key 361 fs/afs/super.c struct key *key; key 375 fs/afs/super.c key = afs_request_key(ctx->cell); key 376 fs/afs/super.c if (IS_ERR(key)) key 377 fs/afs/super.c return PTR_ERR(key); key 379 fs/afs/super.c ctx->key = key; key 461 fs/afs/super.c inode = afs_iget(sb, ctx->key, &iget_data, NULL, NULL, NULL); key 603 fs/afs/super.c key_put(ctx->key); key 727 fs/afs/super.c struct key *key; key 741 fs/afs/super.c key = afs_request_key(vnode->volume->cell); key 742 fs/afs/super.c if (IS_ERR(key)) key 743 fs/afs/super.c return PTR_ERR(key); key 746 fs/afs/super.c if (afs_begin_vnode_operation(&fc, vnode, key, true)) { key 757 fs/afs/super.c key_put(key); key 125 fs/afs/vl_probe.c struct key *key, key 147 fs/afs/vl_probe.c call = afs_vl_get_capabilities(net, &ac, key, server, key 165 fs/afs/vl_probe.c int afs_send_vl_probes(struct afs_net *net, struct key *key, key 181 fs/afs/vl_probe.c afs_do_probe_vlserver(net, server, key, i, &e)) key 18 fs/afs/vl_rotate.c struct key *key) key 22 fs/afs/vl_rotate.c vc->key = key; key 170 fs/afs/vl_rotate.c error = afs_send_vl_probes(vc->cell->net, vc->key, vc->server_list); key 154 fs/afs/vlclient.c call->key = vc->key; key 285 fs/afs/vlclient.c call->key = vc->key; key 381 fs/afs/vlclient.c struct key *key, key 394 fs/afs/vlclient.c call->key = key; key 639 fs/afs/vlclient.c call->key = vc->key; key 47 fs/afs/volume.c slist = afs_alloc_server_list(params->cell, params->key, vldb, type_mask); key 68 fs/afs/volume.c struct key *key, key 76 fs/afs/volume.c if (!afs_begin_vlserver_operation(&vc, cell, key)) key 117 fs/afs/volume.c vldb = afs_vl_lookup_vldb(params->cell, params->key, key 220 fs/afs/volume.c static int afs_update_volume_status(struct afs_volume *volume, struct key *key) key 234 fs/afs/volume.c vldb = afs_vl_lookup_vldb(volume->cell, key, idbuf, idsz); key 249 fs/afs/volume.c new = afs_alloc_server_list(volume->cell, key, key 302 fs/afs/volume.c ret = afs_update_volume_status(volume, fc->key); key 28 fs/afs/write.c static int afs_fill_page(struct afs_vnode *vnode, struct key *key, key 59 fs/afs/write.c ret = afs_fetch_data(vnode, key, req); key 83 fs/afs/write.c struct key *key = afs_file_key(file); key 103 fs/afs/write.c ret = afs_fill_page(vnode, key, pos & PAGE_MASK, PAGE_SIZE, page); key 186 fs/afs/write.c struct key *key = afs_file_key(file); key 210 fs/afs/write.c ret = afs_fill_page(vnode, key, pos + copied, key 383 fs/afs/write.c _debug("wbk %u", key_serial(wbk->key)); key 384 fs/afs/write.c ret2 = key_validate(wbk->key); key 402 fs/afs/write.c _debug("USE WB KEY %u", key_serial(wbk->key)); key 405 fs/afs/write.c if (afs_begin_vnode_operation(&fc, vnode, wbk->key, false)) { key 49 fs/afs/xattr.c struct key *key; key 56 fs/afs/xattr.c key = afs_request_key(vnode->volume->cell); key 57 fs/afs/xattr.c if (IS_ERR(key)) { key 58 fs/afs/xattr.c ret = PTR_ERR(key); key 63 fs/afs/xattr.c if (afs_begin_vnode_operation(&fc, vnode, key, true)) { key 88 fs/afs/xattr.c key_put(key); key 107 fs/afs/xattr.c struct key *key; key 121 fs/afs/xattr.c key = afs_request_key(vnode->volume->cell); key 122 fs/afs/xattr.c if (IS_ERR(key)) { key 123 fs/afs/xattr.c ret = PTR_ERR(key); key 131 fs/afs/xattr.c if (afs_begin_vnode_operation(&fc, vnode, key, true)) { key 145 fs/afs/xattr.c key_put(key); key 172 fs/afs/xattr.c struct key *key; key 200 fs/afs/xattr.c key = afs_request_key(vnode->volume->cell); key 201 fs/afs/xattr.c if (IS_ERR(key)) { key 202 fs/afs/xattr.c ret = PTR_ERR(key); key 207 fs/afs/xattr.c if (afs_begin_vnode_operation(&fc, vnode, key, true)) { key 256 fs/afs/xattr.c key_put(key); key 277 fs/afs/xattr.c struct key *key; key 295 fs/afs/xattr.c key = afs_request_key(vnode->volume->cell); key 296 fs/afs/xattr.c if (IS_ERR(key)) { key 297 fs/afs/xattr.c ret = PTR_ERR(key); key 302 fs/afs/xattr.c if (afs_begin_vnode_operation(&fc, vnode, key, true)) { key 318 fs/afs/xattr.c key_put(key); key 406 fs/afs/yfsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); key 419 fs/afs/yfsclient.c call->key = fc->key; key 596 fs/afs/yfsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode, key 609 fs/afs/yfsclient.c call->key = fc->key; key 706 fs/afs/yfsclient.c call->key = fc->key; key 769 fs/afs/yfsclient.c call->key = fc->key; key 859 fs/afs/yfsclient.c call->key = fc->key; key 945 fs/afs/yfsclient.c call->key = fc->key; key 1028 fs/afs/yfsclient.c call->key = fc->key; key 1121 fs/afs/yfsclient.c call->key = fc->key; key 1213 fs/afs/yfsclient.c call->key = fc->key; key 1259 fs/afs/yfsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); key 1286 fs/afs/yfsclient.c call->key = fc->key; key 1343 fs/afs/yfsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); key 1355 fs/afs/yfsclient.c call->key = fc->key; key 1392 fs/afs/yfsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); key 1403 fs/afs/yfsclient.c call->key = fc->key; key 1584 fs/afs/yfsclient.c call->key = fc->key; key 1655 fs/afs/yfsclient.c call->key = fc->key; key 1694 fs/afs/yfsclient.c call->key = fc->key; key 1732 fs/afs/yfsclient.c call->key = fc->key; key 1773 fs/afs/yfsclient.c key_serial(fc->key), fid->vid, fid->vnode); key 1786 fs/afs/yfsclient.c call->key = fc->key; key 1942 fs/afs/yfsclient.c key_serial(fc->key), fids[0].vid, fids[1].vnode, nr_fids); key 1955 fs/afs/yfsclient.c call->key = fc->key; key 2119 fs/afs/yfsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); key 2132 fs/afs/yfsclient.c call->key = fc->key; key 2173 fs/afs/yfsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); key 2187 fs/afs/yfsclient.c call->key = fc->key; key 1679 fs/aio.c void *key) key 1683 fs/aio.c __poll_t mask = key_to_poll(key); key 2015 fs/aio.c u32 key; key 2018 fs/aio.c if (unlikely(get_user(key, &iocb->aio_key))) key 2020 fs/aio.c if (unlikely(key != KIOCB_KEY)) key 246 fs/befs/btree.c const char *key, befs_off_t * value) key 253 fs/befs/btree.c befs_debug(sb, "---> %s Key: %s", __func__, key); key 280 fs/befs/btree.c res = befs_find_key(sb, this_node, key, &node_off); key 292 fs/befs/btree.c res = befs_find_key(sb, this_node, key, value); key 298 fs/befs/btree.c befs_error(sb, "<--- %s Key %s not found", __func__, key); key 304 fs/befs/btree.c key, *value); key 8 fs/befs/btree.h const char *key, befs_off_t *value); key 26 fs/btrfs/backref.c static int check_extent_in_eb(const struct btrfs_key *key, key 57 fs/btrfs/backref.c e->inum = key->objectid; key 58 fs/btrfs/backref.c e->offset = key->offset + offset; key 80 fs/btrfs/backref.c struct btrfs_key key; key 94 fs/btrfs/backref.c btrfs_item_key_to_cpu(eb, &key, slot); key 95 fs/btrfs/backref.c if (key.type != BTRFS_EXTENT_DATA_KEY) key 106 fs/btrfs/backref.c ret = check_extent_in_eb(&key, eb, fi, extent_item_pos, eie, ignore_offset); key 336 fs/btrfs/backref.c const struct btrfs_key *key, int level, u64 parent, key 350 fs/btrfs/backref.c if (key) { key 351 fs/btrfs/backref.c ref->key_for_search = *key; key 400 fs/btrfs/backref.c const struct btrfs_key *key, int level, key 406 fs/btrfs/backref.c if (!key) key 408 fs/btrfs/backref.c return add_prelim_ref(fs_info, tree, root_id, key, level, 0, key 420 fs/btrfs/backref.c struct btrfs_key key; key 452 fs/btrfs/backref.c btrfs_item_key_to_cpu(eb, &key, slot); key 454 fs/btrfs/backref.c if (key.objectid != key_for_search->objectid || key 455 fs/btrfs/backref.c key.type != BTRFS_EXTENT_DATA_KEY) key 466 fs/btrfs/backref.c ret = check_extent_in_eb(&key, eb, fi, key 766 fs/btrfs/backref.c struct btrfs_key key; key 773 fs/btrfs/backref.c btrfs_disk_key_to_cpu(&tmp_op_key, &extent_op->key); key 825 fs/btrfs/backref.c key.objectid = ref->objectid; key 826 fs/btrfs/backref.c key.type = BTRFS_EXTENT_DATA_KEY; key 827 fs/btrfs/backref.c key.offset = ref->offset; key 839 fs/btrfs/backref.c &key, 0, node->bytenr, count, sc, key 884 fs/btrfs/backref.c struct btrfs_key key; key 965 fs/btrfs/backref.c key.objectid = btrfs_extent_data_ref_objectid(leaf, key 967 fs/btrfs/backref.c key.type = BTRFS_EXTENT_DATA_KEY; key 968 fs/btrfs/backref.c key.offset = btrfs_extent_data_ref_offset(leaf, dref); key 970 fs/btrfs/backref.c if (sc && sc->inum && key.objectid != sc->inum) { key 978 fs/btrfs/backref.c &key, 0, bytenr, count, key 1007 fs/btrfs/backref.c struct btrfs_key key; key 1020 fs/btrfs/backref.c btrfs_item_key_to_cpu(leaf, &key, slot); key 1022 fs/btrfs/backref.c if (key.objectid != bytenr) key 1024 fs/btrfs/backref.c if (key.type < BTRFS_TREE_BLOCK_REF_KEY) key 1026 fs/btrfs/backref.c if (key.type > BTRFS_SHARED_DATA_REF_KEY) key 1029 fs/btrfs/backref.c switch (key.type) { key 1033 fs/btrfs/backref.c info_level + 1, key.offset, key 1045 fs/btrfs/backref.c key.offset, bytenr, count, key 1051 fs/btrfs/backref.c ret = add_indirect_ref(fs_info, preftrees, key.offset, key 1064 fs/btrfs/backref.c key.objectid = btrfs_extent_data_ref_objectid(leaf, key 1066 fs/btrfs/backref.c key.type = BTRFS_EXTENT_DATA_KEY; key 1067 fs/btrfs/backref.c key.offset = btrfs_extent_data_ref_offset(leaf, dref); key 1069 fs/btrfs/backref.c if (sc && sc->inum && key.objectid != sc->inum) { key 1076 fs/btrfs/backref.c &key, 0, bytenr, count, key 1119 fs/btrfs/backref.c struct btrfs_key key; key 1136 fs/btrfs/backref.c key.objectid = bytenr; key 1137 fs/btrfs/backref.c key.offset = (u64)-1; key 1139 fs/btrfs/backref.c key.type = BTRFS_METADATA_ITEM_KEY; key 1141 fs/btrfs/backref.c key.type = BTRFS_EXTENT_ITEM_KEY; key 1162 fs/btrfs/backref.c ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 0); key 1214 fs/btrfs/backref.c btrfs_item_key_to_cpu(leaf, &key, slot); key 1215 fs/btrfs/backref.c if (key.objectid == bytenr && key 1216 fs/btrfs/backref.c (key.type == BTRFS_EXTENT_ITEM_KEY || key 1217 fs/btrfs/backref.c key.type == BTRFS_METADATA_ITEM_KEY)) { key 1536 fs/btrfs/backref.c struct btrfs_key key; key 1542 fs/btrfs/backref.c key.objectid = inode_objectid; key 1543 fs/btrfs/backref.c key.type = BTRFS_INODE_EXTREF_KEY; key 1544 fs/btrfs/backref.c key.offset = start_off; key 1546 fs/btrfs/backref.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 1698 fs/btrfs/backref.c struct btrfs_key key; key 1701 fs/btrfs/backref.c key.type = BTRFS_METADATA_ITEM_KEY; key 1703 fs/btrfs/backref.c key.type = BTRFS_EXTENT_ITEM_KEY; key 1704 fs/btrfs/backref.c key.objectid = logical; key 1705 fs/btrfs/backref.c key.offset = (u64)-1; key 1707 fs/btrfs/backref.c ret = btrfs_search_slot(NULL, fs_info->extent_root, &key, path, 0, 0); key 1766 fs/btrfs/backref.c const struct btrfs_key *key, key 1780 fs/btrfs/backref.c if (key->type == BTRFS_METADATA_ITEM_KEY) { key 1785 fs/btrfs/backref.c WARN_ON(key->type != BTRFS_EXTENT_ITEM_KEY); key 1821 fs/btrfs/backref.c struct btrfs_key *key, struct btrfs_extent_item *ei, key 1832 fs/btrfs/backref.c ret = get_extent_inline_ref(ptr, eb, key, ei, item_size, key 1848 fs/btrfs/backref.c if (key->type == BTRFS_EXTENT_ITEM_KEY) { key 1854 fs/btrfs/backref.c ASSERT(key->type == BTRFS_METADATA_ITEM_KEY); key 1855 fs/btrfs/backref.c *out_level = (u8)key->offset; key 27 fs/btrfs/backref.h struct btrfs_key *key, struct btrfs_extent_item *ei, key 165 fs/btrfs/block-group.c if (block_group->key.objectid < cache->key.objectid) { key 167 fs/btrfs/block-group.c } else if (block_group->key.objectid > cache->key.objectid) { key 179 fs/btrfs/block-group.c if (info->first_logical_byte > block_group->key.objectid) key 180 fs/btrfs/block-group.c info->first_logical_byte = block_group->key.objectid; key 204 fs/btrfs/block-group.c end = cache->key.objectid + cache->key.offset - 1; key 205 fs/btrfs/block-group.c start = cache->key.objectid; key 208 fs/btrfs/block-group.c if (!contains && (!ret || start < ret->key.objectid)) key 224 fs/btrfs/block-group.c if (bytenr == 0 && info->first_logical_byte > ret->key.objectid) key 225 fs/btrfs/block-group.c info->first_logical_byte = ret->key.objectid; key 260 fs/btrfs/block-group.c const u64 next_bytenr = cache->key.objectid + cache->key.offset; key 430 fs/btrfs/block-group.c u64 start = block_group->key.objectid; key 431 fs/btrfs/block-group.c u64 len = block_group->key.offset; key 499 fs/btrfs/block-group.c struct btrfs_key key; key 510 fs/btrfs/block-group.c last = max_t(u64, block_group->key.objectid, BTRFS_SUPER_INFO_OFFSET); key 531 fs/btrfs/block-group.c key.objectid = last; key 532 fs/btrfs/block-group.c key.offset = 0; key 533 fs/btrfs/block-group.c key.type = BTRFS_EXTENT_ITEM_KEY; key 536 fs/btrfs/block-group.c ret = btrfs_search_slot(NULL, extent_root, &key, path, 0, 0); key 550 fs/btrfs/block-group.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 552 fs/btrfs/block-group.c ret = btrfs_find_next_key(extent_root, path, &key, 0, 0); key 579 fs/btrfs/block-group.c if (key.objectid < last) { key 580 fs/btrfs/block-group.c key.objectid = last; key 581 fs/btrfs/block-group.c key.offset = 0; key 582 fs/btrfs/block-group.c key.type = BTRFS_EXTENT_ITEM_KEY; key 590 fs/btrfs/block-group.c if (key.objectid < block_group->key.objectid) { key 595 fs/btrfs/block-group.c if (key.objectid >= block_group->key.objectid + key 596 fs/btrfs/block-group.c block_group->key.offset) key 599 fs/btrfs/block-group.c if (key.type == BTRFS_EXTENT_ITEM_KEY || key 600 fs/btrfs/block-group.c key.type == BTRFS_METADATA_ITEM_KEY) { key 602 fs/btrfs/block-group.c key.objectid); key 603 fs/btrfs/block-group.c if (key.type == BTRFS_METADATA_ITEM_KEY) key 604 fs/btrfs/block-group.c last = key.objectid + key 607 fs/btrfs/block-group.c last = key.objectid + key.offset; key 620 fs/btrfs/block-group.c block_group->key.objectid + key 621 fs/btrfs/block-group.c block_group->key.offset); key 659 fs/btrfs/block-group.c bytes_used = block_group->key.offset - key 696 fs/btrfs/block-group.c caching_ctl->progress = cache->key.objectid; key 765 fs/btrfs/block-group.c bytes_used = cache->key.offset - key 868 fs/btrfs/block-group.c struct btrfs_key key; key 888 fs/btrfs/block-group.c btrfs_free_ref_tree_range(fs_info, block_group->key.objectid, key 889 fs/btrfs/block-group.c block_group->key.offset); key 891 fs/btrfs/block-group.c memcpy(&key, &block_group->key, sizeof(key)); key 968 fs/btrfs/block-group.c key.objectid = BTRFS_FREE_SPACE_OBJECTID; key 969 fs/btrfs/block-group.c key.offset = block_group->key.objectid; key 970 fs/btrfs/block-group.c key.type = 0; key 972 fs/btrfs/block-group.c ret = btrfs_search_slot(trans, tree_root, &key, path, -1, 1); key 989 fs/btrfs/block-group.c if (fs_info->first_logical_byte == block_group->key.objectid) key 1050 fs/btrfs/block-group.c < block_group->key.offset); key 1052 fs/btrfs/block-group.c < block_group->key.offset); key 1054 fs/btrfs/block-group.c < block_group->key.offset * factor); key 1056 fs/btrfs/block-group.c block_group->space_info->total_bytes -= block_group->key.offset; key 1057 fs/btrfs/block-group.c block_group->space_info->bytes_readonly -= block_group->key.offset; key 1058 fs/btrfs/block-group.c block_group->space_info->disk_total -= block_group->key.offset * factor; key 1062 fs/btrfs/block-group.c memcpy(&key, &block_group->key, sizeof(key)); key 1102 fs/btrfs/block-group.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); key 1215 fs/btrfs/block-group.c num_bytes = cache->key.offset - cache->reserved - cache->pinned - key 1238 fs/btrfs/block-group.c cache->key.objectid); key 1314 fs/btrfs/block-group.c block_group->key.objectid); key 1325 fs/btrfs/block-group.c start = block_group->key.objectid; key 1326 fs/btrfs/block-group.c end = start + block_group->key.offset - 1; key 1381 fs/btrfs/block-group.c ret = btrfs_remove_chunk(trans, block_group->key.objectid); key 1431 fs/btrfs/block-group.c struct btrfs_key *key) key 1441 fs/btrfs/block-group.c ret = btrfs_search_slot(NULL, root, key, path, 0, 0); key 1458 fs/btrfs/block-group.c if (found_key.objectid >= key->objectid && key 1532 fs/btrfs/block-group.c if (cache->key.objectid < BTRFS_SUPER_INFO_OFFSET) { key 1533 fs/btrfs/block-group.c stripe_len = BTRFS_SUPER_INFO_OFFSET - cache->key.objectid; key 1535 fs/btrfs/block-group.c ret = btrfs_add_excluded_extent(fs_info, cache->key.objectid, key 1543 fs/btrfs/block-group.c ret = btrfs_rmap_block(fs_info, cache->key.objectid, key 1551 fs/btrfs/block-group.c if (logical[nr] > cache->key.objectid + key 1552 fs/btrfs/block-group.c cache->key.offset) key 1555 fs/btrfs/block-group.c if (logical[nr] + stripe_len <= cache->key.objectid) key 1559 fs/btrfs/block-group.c if (start < cache->key.objectid) { key 1560 fs/btrfs/block-group.c start = cache->key.objectid; key 1564 fs/btrfs/block-group.c cache->key.objectid + key 1565 fs/btrfs/block-group.c cache->key.offset - start); key 1613 fs/btrfs/block-group.c cache->key.objectid = start; key 1614 fs/btrfs/block-group.c cache->key.offset = size; key 1615 fs/btrfs/block-group.c cache->key.type = BTRFS_BLOCK_GROUP_ITEM_KEY; key 1671 fs/btrfs/block-group.c if (bg->key.objectid != em->start || key 1672 fs/btrfs/block-group.c bg->key.offset != em->len || key 1679 fs/btrfs/block-group.c bg->key.objectid, bg->key.offset, key 1699 fs/btrfs/block-group.c struct btrfs_key key; key 1710 fs/btrfs/block-group.c key.objectid = 0; key 1711 fs/btrfs/block-group.c key.offset = 0; key 1712 fs/btrfs/block-group.c key.type = BTRFS_BLOCK_GROUP_ITEM_KEY; key 1726 fs/btrfs/block-group.c ret = find_first_block_group(info, path, &key); key 1766 fs/btrfs/block-group.c cache->key.objectid); key 1772 fs/btrfs/block-group.c key.objectid = found_key.objectid + found_key.offset; key 1828 fs/btrfs/block-group.c if (btrfs_chunk_readonly(info, cache->key.objectid)) { key 1872 fs/btrfs/block-group.c struct btrfs_key key; key 1887 fs/btrfs/block-group.c memcpy(&key, &block_group->key, sizeof(key)); key 1890 fs/btrfs/block-group.c ret = btrfs_insert_item(trans, extent_root, &key, &item, key 1894 fs/btrfs/block-group.c ret = btrfs_finish_chunk_alloc(trans, key.objectid, key.offset); key 2110 fs/btrfs/block-group.c num_bytes = cache->key.offset - cache->reserved - key 2130 fs/btrfs/block-group.c ret = btrfs_search_slot(trans, extent_root, &cache->key, path, 0, 1); key 2165 fs/btrfs/block-group.c if (block_group->key.offset < (100 * SZ_1M)) { key 2266 fs/btrfs/block-group.c num_pages = div_u64(block_group->key.offset, SZ_256M); key 2673 fs/btrfs/block-group.c byte_in_group = bytenr - cache->key.objectid; key 2674 fs/btrfs/block-group.c WARN_ON(byte_in_group > cache->key.offset); key 2684 fs/btrfs/block-group.c num_bytes = min(total, cache->key.offset - byte_in_group); key 3083 fs/btrfs/block-group.c last = block_group->key.objectid + block_group->key.offset; key 46 fs/btrfs/block-group.h struct btrfs_key key; key 1013 fs/btrfs/check-integrity.c disk_key = &disk_item.key; key 1143 fs/btrfs/check-integrity.c &key_ptr.key, key 300 fs/btrfs/ctree.c struct btrfs_disk_key key; key 480 fs/btrfs/ctree.c btrfs_node_key(eb, &tm->key, slot); key 1244 fs/btrfs/ctree.c btrfs_set_node_key(eb, &tm->key, tm->slot); key 1252 fs/btrfs/ctree.c btrfs_set_node_key(eb, &tm->key, tm->slot); key 1708 fs/btrfs/ctree.c const struct btrfs_key *key, key 1758 fs/btrfs/ctree.c ret = comp_keys(tmp, key); key 1777 fs/btrfs/ctree.c int btrfs_bin_search(struct extent_buffer *eb, const struct btrfs_key *key, key 1784 fs/btrfs/ctree.c key, btrfs_header_nritems(eb), key 1790 fs/btrfs/ctree.c key, btrfs_header_nritems(eb), key 2414 fs/btrfs/ctree.c const struct btrfs_key *key) key 2478 fs/btrfs/ctree.c reada_for_search(fs_info, p, level, slot, key->objectid); key 2572 fs/btrfs/ctree.c static int key_search(struct extent_buffer *b, const struct btrfs_key *key, key 2576 fs/btrfs/ctree.c *prev_cmp = btrfs_bin_search(b, key, level, slot); key 2590 fs/btrfs/ctree.c struct btrfs_key key; key 2596 fs/btrfs/ctree.c key.type = key_type; key 2597 fs/btrfs/ctree.c key.objectid = iobjectid; key 2598 fs/btrfs/ctree.c key.offset = ioff; key 2600 fs/btrfs/ctree.c ret = btrfs_search_slot(NULL, fs_root, &key, path, 0, 0); key 2613 fs/btrfs/ctree.c if (found_key->type != key.type || key 2614 fs/btrfs/ctree.c found_key->objectid != key.objectid) key 2731 fs/btrfs/ctree.c const struct btrfs_key *key, struct btrfs_path *p, key 2856 fs/btrfs/ctree.c ret = key_search(b, key, level, &prev_cmp, &slot); key 2901 fs/btrfs/ctree.c slot, key); key 2937 fs/btrfs/ctree.c err = split_leaf(trans, root, key, key 2976 fs/btrfs/ctree.c int btrfs_search_old_slot(struct btrfs_root *root, const struct btrfs_key *key, key 2994 fs/btrfs/ctree.c return btrfs_search_slot(NULL, root, key, p, 0, 0); key 3023 fs/btrfs/ctree.c ret = key_search(b, key, level, &prev_cmp, &slot); key 3043 fs/btrfs/ctree.c slot, key); key 3092 fs/btrfs/ctree.c const struct btrfs_key *key, key 3100 fs/btrfs/ctree.c ret = btrfs_search_slot(NULL, root, key, p, 0, 0); key 3165 fs/btrfs/ctree.c struct btrfs_disk_key *key, int level) key 3180 fs/btrfs/ctree.c btrfs_set_node_key(t, key, tslot); key 3448 fs/btrfs/ctree.c struct btrfs_disk_key *key, u64 bytenr, key 3477 fs/btrfs/ctree.c btrfs_set_node_key(lower, key, slot); key 4375 fs/btrfs/ctree.c struct btrfs_key key; key 4383 fs/btrfs/ctree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 4385 fs/btrfs/ctree.c BUG_ON(key.type != BTRFS_EXTENT_DATA_KEY && key 4386 fs/btrfs/ctree.c key.type != BTRFS_EXTENT_CSUM_KEY); key 4392 fs/btrfs/ctree.c if (key.type == BTRFS_EXTENT_DATA_KEY) { key 4401 fs/btrfs/ctree.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); key 4418 fs/btrfs/ctree.c if (key.type == BTRFS_EXTENT_DATA_KEY) { key 4426 fs/btrfs/ctree.c ret = split_leaf(trans, root, &key, path, ins_len, 1); key 5094 fs/btrfs/ctree.c struct btrfs_key key; key 5098 fs/btrfs/ctree.c btrfs_item_key_to_cpu(path->nodes[0], &key, 0); key 5100 fs/btrfs/ctree.c if (key.offset > 0) { key 5101 fs/btrfs/ctree.c key.offset--; key 5102 fs/btrfs/ctree.c } else if (key.type > 0) { key 5103 fs/btrfs/ctree.c key.type--; key 5104 fs/btrfs/ctree.c key.offset = (u64)-1; key 5105 fs/btrfs/ctree.c } else if (key.objectid > 0) { key 5106 fs/btrfs/ctree.c key.objectid--; key 5107 fs/btrfs/ctree.c key.type = (u8)-1; key 5108 fs/btrfs/ctree.c key.offset = (u64)-1; key 5114 fs/btrfs/ctree.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 5118 fs/btrfs/ctree.c ret = comp_keys(&found_key, &key); key 5271 fs/btrfs/ctree.c struct btrfs_key *key, int level, u64 min_trans) key 5320 fs/btrfs/ctree.c btrfs_item_key_to_cpu(c, key, slot); key 5328 fs/btrfs/ctree.c btrfs_node_key_to_cpu(c, key, slot); key 5352 fs/btrfs/ctree.c struct btrfs_key key; key 5362 fs/btrfs/ctree.c btrfs_item_key_to_cpu(path->nodes[0], &key, nritems - 1); key 5373 fs/btrfs/ctree.c ret = btrfs_search_old_slot(root, &key, path, time_seq); key 5375 fs/btrfs/ctree.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 5438 fs/btrfs/ctree.c slot, &key); key 5486 fs/btrfs/ctree.c 0, &key); key 305 fs/btrfs/ctree.h struct btrfs_disk_key key; key 327 fs/btrfs/ctree.h struct btrfs_disk_key key; key 1612 fs/btrfs/ctree.h struct btrfs_disk_key *key) key 1614 fs/btrfs/ctree.h read_eb_member(eb, item, struct btrfs_tree_block_info, key, key); key 1619 fs/btrfs/ctree.h struct btrfs_disk_key *key) key 1621 fs/btrfs/ctree.h write_eb_member(eb, item, struct btrfs_tree_block_info, key, key); key 1718 fs/btrfs/ctree.h struct btrfs_key_ptr, key, disk_key); key 1763 fs/btrfs/ctree.h read_eb_member(eb, item, struct btrfs_item, key, disk_key); key 1770 fs/btrfs/ctree.h write_eb_member(eb, item, struct btrfs_item, key, disk_key); key 1797 fs/btrfs/ctree.h struct btrfs_disk_key *key) key 1799 fs/btrfs/ctree.h read_eb_member(eb, item, struct btrfs_dir_item, location, key); key 1804 fs/btrfs/ctree.h const struct btrfs_disk_key *key) key 1806 fs/btrfs/ctree.h write_eb_member(eb, item, struct btrfs_dir_item, location, key); key 1818 fs/btrfs/ctree.h struct btrfs_disk_key *key) key 1820 fs/btrfs/ctree.h read_eb_member(eb, h, struct btrfs_free_space_header, location, key); key 1825 fs/btrfs/ctree.h const struct btrfs_disk_key *key) key 1827 fs/btrfs/ctree.h write_eb_member(eb, h, struct btrfs_free_space_header, location, key); key 1853 fs/btrfs/ctree.h struct btrfs_key *key, int nr) key 1857 fs/btrfs/ctree.h btrfs_disk_key_to_cpu(key, &disk_key); key 1861 fs/btrfs/ctree.h struct btrfs_key *key, int nr) key 1865 fs/btrfs/ctree.h btrfs_disk_key_to_cpu(key, &disk_key); key 1870 fs/btrfs/ctree.h struct btrfs_key *key) key 1874 fs/btrfs/ctree.h btrfs_disk_key_to_cpu(key, &disk_key); key 2418 fs/btrfs/ctree.h const struct btrfs_disk_key *key, key 2506 fs/btrfs/ctree.h int btrfs_bin_search(struct extent_buffer *eb, const struct btrfs_key *key, key 2521 fs/btrfs/ctree.h struct btrfs_key *key, int lowest_level, key 2553 fs/btrfs/ctree.h const struct btrfs_key *key, struct btrfs_path *p, key 2555 fs/btrfs/ctree.h int btrfs_search_old_slot(struct btrfs_root *root, const struct btrfs_key *key, key 2558 fs/btrfs/ctree.h const struct btrfs_key *key, key 2584 fs/btrfs/ctree.h const struct btrfs_key *key, void *data, u32 data_size); key 2594 fs/btrfs/ctree.h const struct btrfs_key *key, key 2597 fs/btrfs/ctree.h return btrfs_insert_empty_items(trans, root, path, key, &data_size, 1); key 2679 fs/btrfs/ctree.h const struct btrfs_key *key); key 2681 fs/btrfs/ctree.h const struct btrfs_key *key, key 2685 fs/btrfs/ctree.h struct btrfs_key *key, key 58 fs/btrfs/delayed-inode.c if (item1->key.type == BTRFS_DIR_INDEX_KEY && key 59 fs/btrfs/delayed-inode.c item1->key.objectid == item2->key.objectid && key 60 fs/btrfs/delayed-inode.c item1->key.type == item2->key.type && key 61 fs/btrfs/delayed-inode.c item1->key.offset + 1 == item2->key.offset) key 342 fs/btrfs/delayed-inode.c struct btrfs_key *key, key 356 fs/btrfs/delayed-inode.c ret = btrfs_comp_cpu_keys(&delayed_item->key, key); key 393 fs/btrfs/delayed-inode.c struct btrfs_key *key) key 395 fs/btrfs/delayed-inode.c return __btrfs_lookup_delayed_item(&delayed_node->ins_root.rb_root, key, key 424 fs/btrfs/delayed-inode.c cmp = btrfs_comp_cpu_keys(&item->key, &ins->key); key 440 fs/btrfs/delayed-inode.c if (ins->key.type == BTRFS_DIR_INDEX_KEY && key 442 fs/btrfs/delayed-inode.c ins->key.offset >= delayed_node->index_cnt) key 443 fs/btrfs/delayed-inode.c delayed_node->index_cnt = ins->key.offset + 1; key 573 fs/btrfs/delayed-inode.c item->key.objectid, key 596 fs/btrfs/delayed-inode.c item->key.objectid, item->bytes_reserved, key 767 fs/btrfs/delayed-inode.c keys[i] = next->key; key 813 fs/btrfs/delayed-inode.c ret = btrfs_insert_empty_item(trans, root, path, &delayed_item->key, key 881 fs/btrfs/delayed-inode.c struct btrfs_key key; key 897 fs/btrfs/delayed-inode.c btrfs_item_key_to_cpu(leaf, &key, i); key 902 fs/btrfs/delayed-inode.c while (btrfs_comp_cpu_keys(&next->key, &key) == 0) { key 917 fs/btrfs/delayed-inode.c btrfs_item_key_to_cpu(leaf, &key, i); key 953 fs/btrfs/delayed-inode.c ret = btrfs_search_slot(trans, root, &curr->key, path, -1, 1); key 1018 fs/btrfs/delayed-inode.c struct btrfs_key key; key 1025 fs/btrfs/delayed-inode.c key.objectid = node->inode_id; key 1026 fs/btrfs/delayed-inode.c key.type = BTRFS_INODE_ITEM_KEY; key 1027 fs/btrfs/delayed-inode.c key.offset = 0; key 1035 fs/btrfs/delayed-inode.c ret = btrfs_lookup_inode(trans, root, path, &key, mod); key 1058 fs/btrfs/delayed-inode.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 1059 fs/btrfs/delayed-inode.c if (key.objectid != node->inode_id) key 1062 fs/btrfs/delayed-inode.c if (key.type != BTRFS_INODE_REF_KEY && key 1063 fs/btrfs/delayed-inode.c key.type != BTRFS_INODE_EXTREF_KEY) key 1085 fs/btrfs/delayed-inode.c key.type = BTRFS_INODE_EXTREF_KEY; key 1086 fs/btrfs/delayed-inode.c key.offset = -1; key 1089 fs/btrfs/delayed-inode.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); key 1457 fs/btrfs/delayed-inode.c delayed_item->key.objectid = btrfs_ino(dir); key 1458 fs/btrfs/delayed-inode.c delayed_item->key.type = BTRFS_DIR_INDEX_KEY; key 1459 fs/btrfs/delayed-inode.c delayed_item->key.offset = index; key 1494 fs/btrfs/delayed-inode.c struct btrfs_key *key) key 1499 fs/btrfs/delayed-inode.c item = __btrfs_lookup_delayed_insertion_item(node, key); key 1538 fs/btrfs/delayed-inode.c item->key = item_key; key 1669 fs/btrfs/delayed-inode.c if (curr->key.offset > index) key 1671 fs/btrfs/delayed-inode.c if (curr->key.offset == index) { key 1705 fs/btrfs/delayed-inode.c if (curr->key.offset < ctx->pos) { key 1711 fs/btrfs/delayed-inode.c ctx->pos = curr->key.offset; key 65 fs/btrfs/delayed-inode.h struct btrfs_key key; key 686 fs/btrfs/delayed-ref.c memcpy(&existing->extent_op->key, key 687 fs/btrfs/delayed-ref.c &update->extent_op->key, key 688 fs/btrfs/delayed-ref.c sizeof(update->extent_op->key)); key 57 fs/btrfs/delayed-ref.h struct btrfs_disk_key key; key 35 fs/btrfs/dev-replace.c struct btrfs_key key; key 52 fs/btrfs/dev-replace.c key.objectid = 0; key 53 fs/btrfs/dev-replace.c key.type = BTRFS_DEV_REPLACE_KEY; key 54 fs/btrfs/dev-replace.c key.offset = 0; key 55 fs/btrfs/dev-replace.c ret = btrfs_search_slot(NULL, dev_root, &key, path, 0, 0); key 284 fs/btrfs/dev-replace.c struct btrfs_key key; key 297 fs/btrfs/dev-replace.c key.objectid = 0; key 298 fs/btrfs/dev-replace.c key.type = BTRFS_DEV_REPLACE_KEY; key 299 fs/btrfs/dev-replace.c key.offset = 0; key 306 fs/btrfs/dev-replace.c ret = btrfs_search_slot(trans, dev_root, &key, path, -1, 1); key 341 fs/btrfs/dev-replace.c &key, sizeof(*ptr)); key 64 fs/btrfs/dir-item.c struct btrfs_key key, location; key 72 fs/btrfs/dir-item.c key.objectid = objectid; key 73 fs/btrfs/dir-item.c key.type = BTRFS_XATTR_ITEM_KEY; key 74 fs/btrfs/dir-item.c key.offset = btrfs_name_hash(name, name_len); key 77 fs/btrfs/dir-item.c dir_item = insert_with_overflow(trans, root, path, &key, data_size, key 119 fs/btrfs/dir-item.c struct btrfs_key key; key 123 fs/btrfs/dir-item.c key.objectid = btrfs_ino(dir); key 124 fs/btrfs/dir-item.c key.type = BTRFS_DIR_ITEM_KEY; key 125 fs/btrfs/dir-item.c key.offset = btrfs_name_hash(name, name_len); key 135 fs/btrfs/dir-item.c dir_item = insert_with_overflow(trans, root, path, &key, data_size, key 186 fs/btrfs/dir-item.c struct btrfs_key key; key 190 fs/btrfs/dir-item.c key.objectid = dir; key 191 fs/btrfs/dir-item.c key.type = BTRFS_DIR_ITEM_KEY; key 193 fs/btrfs/dir-item.c key.offset = btrfs_name_hash(name, name_len); key 195 fs/btrfs/dir-item.c ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); key 208 fs/btrfs/dir-item.c struct btrfs_key key; key 220 fs/btrfs/dir-item.c key.objectid = dir; key 221 fs/btrfs/dir-item.c key.type = BTRFS_DIR_ITEM_KEY; key 222 fs/btrfs/dir-item.c key.offset = btrfs_name_hash(name, name_len); key 224 fs/btrfs/dir-item.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 279 fs/btrfs/dir-item.c struct btrfs_key key; key 283 fs/btrfs/dir-item.c key.objectid = dir; key 284 fs/btrfs/dir-item.c key.type = BTRFS_DIR_INDEX_KEY; key 285 fs/btrfs/dir-item.c key.offset = objectid; key 287 fs/btrfs/dir-item.c ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); key 302 fs/btrfs/dir-item.c struct btrfs_key key; key 306 fs/btrfs/dir-item.c key.objectid = dirid; key 307 fs/btrfs/dir-item.c key.type = BTRFS_DIR_INDEX_KEY; key 308 fs/btrfs/dir-item.c key.offset = 0; key 310 fs/btrfs/dir-item.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 329 fs/btrfs/dir-item.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 330 fs/btrfs/dir-item.c if (key.objectid != dirid || key.type != BTRFS_DIR_INDEX_KEY) key 350 fs/btrfs/dir-item.c struct btrfs_key key; key 354 fs/btrfs/dir-item.c key.objectid = dir; key 355 fs/btrfs/dir-item.c key.type = BTRFS_XATTR_ITEM_KEY; key 356 fs/btrfs/dir-item.c key.offset = btrfs_name_hash(name, name_len); key 357 fs/btrfs/dir-item.c ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); key 1229 fs/btrfs/disk-io.c struct btrfs_key key; key 1276 fs/btrfs/disk-io.c key.objectid = objectid; key 1277 fs/btrfs/disk-io.c key.type = BTRFS_ROOT_ITEM_KEY; key 1278 fs/btrfs/disk-io.c key.offset = 0; key 1279 fs/btrfs/disk-io.c ret = btrfs_insert_root(trans, tree_root, &key, &root->root_item); key 1383 fs/btrfs/disk-io.c struct btrfs_key *key) key 1402 fs/btrfs/disk-io.c __setup_root(root, fs_info, key->objectid); key 1404 fs/btrfs/disk-io.c ret = btrfs_find_root(tree_root, key, path, key 1539 fs/btrfs/disk-io.c struct btrfs_key key; key 1587 fs/btrfs/disk-io.c key.objectid = BTRFS_ORPHAN_OBJECTID; key 1588 fs/btrfs/disk-io.c key.type = BTRFS_ORPHAN_ITEM_KEY; key 1589 fs/btrfs/disk-io.c key.offset = location->objectid; key 1591 fs/btrfs/disk-io.c ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); key 71 fs/btrfs/disk-io.h struct btrfs_key *key, key 67 fs/btrfs/export.c struct btrfs_key key; key 74 fs/btrfs/export.c key.objectid = root_objectid; key 75 fs/btrfs/export.c key.type = BTRFS_ROOT_ITEM_KEY; key 76 fs/btrfs/export.c key.offset = (u64)-1; key 80 fs/btrfs/export.c root = btrfs_read_fs_root_no_name(fs_info, &key); key 86 fs/btrfs/export.c key.objectid = objectid; key 87 fs/btrfs/export.c key.type = BTRFS_INODE_ITEM_KEY; key 88 fs/btrfs/export.c key.offset = 0; key 90 fs/btrfs/export.c inode = btrfs_iget(sb, &key, root, NULL); key 163 fs/btrfs/export.c struct btrfs_key key; key 172 fs/btrfs/export.c key.objectid = root->root_key.objectid; key 173 fs/btrfs/export.c key.type = BTRFS_ROOT_BACKREF_KEY; key 174 fs/btrfs/export.c key.offset = (u64)-1; key 177 fs/btrfs/export.c key.objectid = btrfs_ino(BTRFS_I(dir)); key 178 fs/btrfs/export.c key.type = BTRFS_INODE_REF_KEY; key 179 fs/btrfs/export.c key.offset = (u64)-1; key 182 fs/btrfs/export.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 196 fs/btrfs/export.c if (found_key.objectid != key.objectid || found_key.type != key.type) { key 204 fs/btrfs/export.c key.objectid = btrfs_root_ref_dirid(leaf, ref); key 206 fs/btrfs/export.c key.objectid = found_key.offset; key 211 fs/btrfs/export.c return btrfs_get_dentry(fs_info->sb, key.objectid, key 215 fs/btrfs/export.c key.type = BTRFS_INODE_ITEM_KEY; key 216 fs/btrfs/export.c key.offset = 0; key 217 fs/btrfs/export.c return d_obtain_alias(btrfs_iget(fs_info->sb, &key, root, NULL)); key 235 fs/btrfs/export.c struct btrfs_key key; key 251 fs/btrfs/export.c key.objectid = BTRFS_I(inode)->root->root_key.objectid; key 252 fs/btrfs/export.c key.type = BTRFS_ROOT_BACKREF_KEY; key 253 fs/btrfs/export.c key.offset = (u64)-1; key 256 fs/btrfs/export.c key.objectid = ino; key 257 fs/btrfs/export.c key.offset = btrfs_ino(BTRFS_I(dir)); key 258 fs/btrfs/export.c key.type = BTRFS_INODE_REF_KEY; key 261 fs/btrfs/export.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 55 fs/btrfs/extent-tree.c struct btrfs_key *key); key 78 fs/btrfs/extent-tree.c start = cache->key.objectid; key 79 fs/btrfs/extent-tree.c end = start + cache->key.offset - 1; key 126 fs/btrfs/extent-tree.c struct btrfs_key key; key 133 fs/btrfs/extent-tree.c key.objectid = start; key 134 fs/btrfs/extent-tree.c key.offset = len; key 135 fs/btrfs/extent-tree.c key.type = BTRFS_EXTENT_ITEM_KEY; key 136 fs/btrfs/extent-tree.c ret = btrfs_search_slot(NULL, fs_info->extent_root, &key, path, 0, 0); key 159 fs/btrfs/extent-tree.c struct btrfs_key key; key 184 fs/btrfs/extent-tree.c key.objectid = bytenr; key 185 fs/btrfs/extent-tree.c key.offset = offset; key 187 fs/btrfs/extent-tree.c key.type = BTRFS_METADATA_ITEM_KEY; key 189 fs/btrfs/extent-tree.c key.type = BTRFS_EXTENT_ITEM_KEY; key 191 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 0); key 195 fs/btrfs/extent-tree.c if (ret > 0 && metadata && key.type == BTRFS_METADATA_ITEM_KEY) { key 198 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, key 200 fs/btrfs/extent-tree.c if (key.objectid == bytenr && key 201 fs/btrfs/extent-tree.c key.type == BTRFS_EXTENT_ITEM_KEY && key 202 fs/btrfs/extent-tree.c key.offset == fs_info->nodesize) key 483 fs/btrfs/extent-tree.c struct btrfs_key key; key 491 fs/btrfs/extent-tree.c key.objectid = bytenr; key 493 fs/btrfs/extent-tree.c key.type = BTRFS_SHARED_DATA_REF_KEY; key 494 fs/btrfs/extent-tree.c key.offset = parent; key 496 fs/btrfs/extent-tree.c key.type = BTRFS_EXTENT_DATA_REF_KEY; key 497 fs/btrfs/extent-tree.c key.offset = hash_extent_data_ref(root_objectid, key 502 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); key 529 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 530 fs/btrfs/extent-tree.c if (key.objectid != bytenr || key 531 fs/btrfs/extent-tree.c key.type != BTRFS_EXTENT_DATA_REF_KEY) key 559 fs/btrfs/extent-tree.c struct btrfs_key key; key 565 fs/btrfs/extent-tree.c key.objectid = bytenr; key 567 fs/btrfs/extent-tree.c key.type = BTRFS_SHARED_DATA_REF_KEY; key 568 fs/btrfs/extent-tree.c key.offset = parent; key 571 fs/btrfs/extent-tree.c key.type = BTRFS_EXTENT_DATA_REF_KEY; key 572 fs/btrfs/extent-tree.c key.offset = hash_extent_data_ref(root_objectid, key 577 fs/btrfs/extent-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, size); key 602 fs/btrfs/extent-tree.c key.offset++; key 603 fs/btrfs/extent-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, key 635 fs/btrfs/extent-tree.c struct btrfs_key key; key 643 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 645 fs/btrfs/extent-tree.c if (key.type == BTRFS_EXTENT_DATA_REF_KEY) { key 649 fs/btrfs/extent-tree.c } else if (key.type == BTRFS_SHARED_DATA_REF_KEY) { key 653 fs/btrfs/extent-tree.c } else if (unlikely(key.type == BTRFS_EXTENT_REF_V0_KEY)) { key 668 fs/btrfs/extent-tree.c if (key.type == BTRFS_EXTENT_DATA_REF_KEY) key 670 fs/btrfs/extent-tree.c else if (key.type == BTRFS_SHARED_DATA_REF_KEY) key 680 fs/btrfs/extent-tree.c struct btrfs_key key; key 688 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 690 fs/btrfs/extent-tree.c BUG_ON(key.type == BTRFS_EXTENT_REF_V0_KEY); key 705 fs/btrfs/extent-tree.c } else if (key.type == BTRFS_EXTENT_DATA_REF_KEY) { key 709 fs/btrfs/extent-tree.c } else if (key.type == BTRFS_SHARED_DATA_REF_KEY) { key 725 fs/btrfs/extent-tree.c struct btrfs_key key; key 728 fs/btrfs/extent-tree.c key.objectid = bytenr; key 730 fs/btrfs/extent-tree.c key.type = BTRFS_SHARED_BLOCK_REF_KEY; key 731 fs/btrfs/extent-tree.c key.offset = parent; key 733 fs/btrfs/extent-tree.c key.type = BTRFS_TREE_BLOCK_REF_KEY; key 734 fs/btrfs/extent-tree.c key.offset = root_objectid; key 737 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); key 748 fs/btrfs/extent-tree.c struct btrfs_key key; key 751 fs/btrfs/extent-tree.c key.objectid = bytenr; key 753 fs/btrfs/extent-tree.c key.type = BTRFS_SHARED_BLOCK_REF_KEY; key 754 fs/btrfs/extent-tree.c key.offset = parent; key 756 fs/btrfs/extent-tree.c key.type = BTRFS_TREE_BLOCK_REF_KEY; key 757 fs/btrfs/extent-tree.c key.offset = root_objectid; key 761 fs/btrfs/extent-tree.c path, &key, 0); key 784 fs/btrfs/extent-tree.c struct btrfs_key *key) key 794 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(path->nodes[level], key, key 797 fs/btrfs/extent-tree.c btrfs_node_key_to_cpu(path->nodes[level], key, key 827 fs/btrfs/extent-tree.c struct btrfs_key key; key 843 fs/btrfs/extent-tree.c key.objectid = bytenr; key 844 fs/btrfs/extent-tree.c key.type = BTRFS_EXTENT_ITEM_KEY; key 845 fs/btrfs/extent-tree.c key.offset = num_bytes; key 859 fs/btrfs/extent-tree.c key.type = BTRFS_METADATA_ITEM_KEY; key 860 fs/btrfs/extent-tree.c key.offset = owner; key 864 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, root, &key, path, extra_size, 1); key 878 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, key 880 fs/btrfs/extent-tree.c if (key.objectid == bytenr && key 881 fs/btrfs/extent-tree.c key.type == BTRFS_EXTENT_ITEM_KEY && key 882 fs/btrfs/extent-tree.c key.offset == num_bytes) key 886 fs/btrfs/extent-tree.c key.objectid = bytenr; key 887 fs/btrfs/extent-tree.c key.type = BTRFS_EXTENT_ITEM_KEY; key 888 fs/btrfs/extent-tree.c key.offset = num_bytes; key 991 fs/btrfs/extent-tree.c if (find_next_key(path, 0, &key) == 0 && key 992 fs/btrfs/extent-tree.c key.objectid == bytenr && key 993 fs/btrfs/extent-tree.c key.type < BTRFS_BLOCK_GROUP_ITEM_KEY) { key 1440 fs/btrfs/extent-tree.c struct btrfs_key key; key 1465 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 1546 fs/btrfs/extent-tree.c btrfs_set_tree_block_key(leaf, bi, &extent_op->key); key 1555 fs/btrfs/extent-tree.c struct btrfs_key key; key 1574 fs/btrfs/extent-tree.c key.objectid = head->bytenr; key 1577 fs/btrfs/extent-tree.c key.type = BTRFS_METADATA_ITEM_KEY; key 1578 fs/btrfs/extent-tree.c key.offset = extent_op->level; key 1580 fs/btrfs/extent-tree.c key.type = BTRFS_EXTENT_ITEM_KEY; key 1581 fs/btrfs/extent-tree.c key.offset = head->num_bytes; key 1587 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 1); key 1596 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, key 1598 fs/btrfs/extent-tree.c if (key.objectid == head->bytenr && key 1599 fs/btrfs/extent-tree.c key.type == BTRFS_EXTENT_ITEM_KEY && key 1600 fs/btrfs/extent-tree.c key.offset == head->num_bytes) key 1607 fs/btrfs/extent-tree.c key.objectid = head->bytenr; key 1608 fs/btrfs/extent-tree.c key.offset = head->num_bytes; key 1609 fs/btrfs/extent-tree.c key.type = BTRFS_EXTENT_ITEM_KEY; key 2331 fs/btrfs/extent-tree.c struct btrfs_key key; key 2336 fs/btrfs/extent-tree.c key.objectid = bytenr; key 2337 fs/btrfs/extent-tree.c key.offset = (u64)-1; key 2338 fs/btrfs/extent-tree.c key.type = BTRFS_EXTENT_ITEM_KEY; key 2340 fs/btrfs/extent-tree.c ret = btrfs_search_slot(NULL, extent_root, &key, path, 0, 0); key 2351 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 2353 fs/btrfs/extent-tree.c if (key.objectid != bytenr || key.type != BTRFS_EXTENT_ITEM_KEY) key 2428 fs/btrfs/extent-tree.c struct btrfs_key key; key 2458 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(buf, &key, i); key 2459 fs/btrfs/extent-tree.c if (key.type != BTRFS_EXTENT_DATA_KEY) key 2471 fs/btrfs/extent-tree.c key.offset -= btrfs_file_extent_offset(buf, fi); key 2475 fs/btrfs/extent-tree.c btrfs_init_data_ref(&generic_ref, ref_root, key.objectid, key 2476 fs/btrfs/extent-tree.c key.offset); key 2563 fs/btrfs/extent-tree.c bytenr = cache->key.objectid; key 2691 fs/btrfs/extent-tree.c struct btrfs_key key; key 2700 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(eb, &key, i); key 2701 fs/btrfs/extent-tree.c if (key.type != BTRFS_EXTENT_DATA_KEY) key 2709 fs/btrfs/extent-tree.c key.objectid = btrfs_file_extent_disk_bytenr(eb, item); key 2710 fs/btrfs/extent-tree.c key.offset = btrfs_file_extent_disk_num_bytes(eb, item); key 2711 fs/btrfs/extent-tree.c ret = __exclude_logged_extent(fs_info, key.objectid, key.offset); key 2800 fs/btrfs/extent-tree.c start >= cache->key.objectid + cache->key.offset) { key 2813 fs/btrfs/extent-tree.c len = cache->key.objectid + cache->key.offset - start; key 2929 fs/btrfs/extent-tree.c block_group->key.objectid, key 2930 fs/btrfs/extent-tree.c block_group->key.offset, key 2955 fs/btrfs/extent-tree.c struct btrfs_key key; key 2992 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, key 2994 fs/btrfs/extent-tree.c if (key.objectid != bytenr) key 2996 fs/btrfs/extent-tree.c if (key.type == BTRFS_EXTENT_ITEM_KEY && key 2997 fs/btrfs/extent-tree.c key.offset == num_bytes) { key 3001 fs/btrfs/extent-tree.c if (key.type == BTRFS_METADATA_ITEM_KEY && key 3002 fs/btrfs/extent-tree.c key.offset == owner_objectid) { key 3023 fs/btrfs/extent-tree.c key.objectid = bytenr; key 3024 fs/btrfs/extent-tree.c key.type = BTRFS_EXTENT_ITEM_KEY; key 3025 fs/btrfs/extent-tree.c key.offset = num_bytes; key 3028 fs/btrfs/extent-tree.c key.type = BTRFS_METADATA_ITEM_KEY; key 3029 fs/btrfs/extent-tree.c key.offset = owner_objectid; key 3033 fs/btrfs/extent-tree.c &key, path, -1, 1); key 3040 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, key 3042 fs/btrfs/extent-tree.c if (key.objectid == bytenr && key 3043 fs/btrfs/extent-tree.c key.type == BTRFS_EXTENT_ITEM_KEY && key 3044 fs/btrfs/extent-tree.c key.offset == num_bytes) key 3050 fs/btrfs/extent-tree.c key.objectid = bytenr; key 3051 fs/btrfs/extent-tree.c key.type = BTRFS_EXTENT_ITEM_KEY; key 3052 fs/btrfs/extent-tree.c key.offset = num_bytes; key 3055 fs/btrfs/extent-tree.c &key, path, -1, 1); key 3095 fs/btrfs/extent-tree.c key.type == BTRFS_EXTENT_ITEM_KEY) { key 3497 fs/btrfs/extent-tree.c ffe_ctl->num_bytes, cluster_bg->key.objectid, key 3909 fs/btrfs/extent-tree.c ffe_ctl.search_start = block_group->key.objectid; key 4002 fs/btrfs/extent-tree.c block_group->key.objectid + block_group->key.offset) { key 4319 fs/btrfs/extent-tree.c btrfs_set_tree_block_key(leaf, block_info, &extent_op->key); key 4489 fs/btrfs/extent-tree.c const struct btrfs_disk_key *key, key 4543 fs/btrfs/extent-tree.c if (key) key 4544 fs/btrfs/extent-tree.c memcpy(&extent_op->key, key, sizeof(extent_op->key)); key 4546 fs/btrfs/extent-tree.c memset(&extent_op->key, 0, sizeof(extent_op->key)); key 4606 fs/btrfs/extent-tree.c struct btrfs_key key; key 4658 fs/btrfs/extent-tree.c btrfs_node_key_to_cpu(eb, &key, slot); key 4659 fs/btrfs/extent-tree.c ret = btrfs_comp_cpu_keys(&key, key 4801 fs/btrfs/extent-tree.c struct btrfs_key key; key 4864 fs/btrfs/extent-tree.c btrfs_node_key_to_cpu(path->nodes[level], &key, key 4866 fs/btrfs/extent-tree.c ret = btrfs_comp_cpu_keys(&key, &wc->update_progress); key 5203 fs/btrfs/extent-tree.c struct btrfs_key key; key 5255 fs/btrfs/extent-tree.c btrfs_disk_key_to_cpu(&key, &root_item->drop_progress); key 5256 fs/btrfs/extent-tree.c memcpy(&wc->update_progress, &key, key 5262 fs/btrfs/extent-tree.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 5520 fs/btrfs/extent-tree.c free_bytes += (block_group->key.offset - key 5669 fs/btrfs/extent-tree.c if (cache->key.objectid >= range_end) { key 5674 fs/btrfs/extent-tree.c start = max(range->start, cache->key.objectid); key 5675 fs/btrfs/extent-tree.c end = min(range_end, cache->key.objectid + cache->key.offset); key 307 fs/btrfs/file-item.c struct btrfs_key key; key 332 fs/btrfs/file-item.c key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; key 333 fs/btrfs/file-item.c key.offset = start; key 334 fs/btrfs/file-item.c key.type = BTRFS_EXTENT_CSUM_KEY; key 336 fs/btrfs/file-item.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 341 fs/btrfs/file-item.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); key 342 fs/btrfs/file-item.c if (key.objectid == BTRFS_EXTENT_CSUM_OBJECTID && key 343 fs/btrfs/file-item.c key.type == BTRFS_EXTENT_CSUM_KEY) { key 344 fs/btrfs/file-item.c offset = (start - key.offset) >> key 363 fs/btrfs/file-item.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 364 fs/btrfs/file-item.c if (key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || key 365 fs/btrfs/file-item.c key.type != BTRFS_EXTENT_CSUM_KEY || key 366 fs/btrfs/file-item.c key.offset > end) key 369 fs/btrfs/file-item.c if (key.offset > start) key 370 fs/btrfs/file-item.c start = key.offset; key 373 fs/btrfs/file-item.c csum_end = key.offset + (size / csum_size) * fs_info->sectorsize; key 395 fs/btrfs/file-item.c offset = (start - key.offset) >> key 545 fs/btrfs/file-item.c struct btrfs_key *key, key 557 fs/btrfs/file-item.c csum_end += key->offset; key 559 fs/btrfs/file-item.c if (key->offset < bytenr && csum_end <= end_byte) { key 566 fs/btrfs/file-item.c u32 new_size = (bytenr - key->offset) >> blocksize_bits; key 569 fs/btrfs/file-item.c } else if (key->offset >= bytenr && csum_end > end_byte && key 570 fs/btrfs/file-item.c end_byte > key->offset) { key 582 fs/btrfs/file-item.c key->offset = end_byte; key 583 fs/btrfs/file-item.c btrfs_set_item_key_safe(fs_info, path, key); key 598 fs/btrfs/file-item.c struct btrfs_key key; key 614 fs/btrfs/file-item.c key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; key 615 fs/btrfs/file-item.c key.offset = end_byte - 1; key 616 fs/btrfs/file-item.c key.type = BTRFS_EXTENT_CSUM_KEY; key 619 fs/btrfs/file-item.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); key 629 fs/btrfs/file-item.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 631 fs/btrfs/file-item.c if (key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || key 632 fs/btrfs/file-item.c key.type != BTRFS_EXTENT_CSUM_KEY) { key 636 fs/btrfs/file-item.c if (key.offset >= end_byte) key 641 fs/btrfs/file-item.c csum_end += key.offset; key 648 fs/btrfs/file-item.c if (key.offset >= bytenr && csum_end <= end_byte) { key 656 fs/btrfs/file-item.c if (key.offset > bytenr && path->slots[0] > 0) { key 670 fs/btrfs/file-item.c key.offset = pk.offset; key 678 fs/btrfs/file-item.c if (key.offset == bytenr) key 680 fs/btrfs/file-item.c } else if (key.offset < bytenr && csum_end > end_byte) { key 702 fs/btrfs/file-item.c offset = (bytenr - key.offset) >> blocksize_bits; key 712 fs/btrfs/file-item.c key.offset = bytenr; key 718 fs/btrfs/file-item.c ret = btrfs_split_item(trans, root, path, &key, offset); key 724 fs/btrfs/file-item.c key.offset = end_byte - 1; key 726 fs/btrfs/file-item.c truncate_one_csum(fs_info, path, &key, bytenr, len); key 727 fs/btrfs/file-item.c if (key.offset < bytenr) key 946 fs/btrfs/file-item.c struct btrfs_key key; key 953 fs/btrfs/file-item.c btrfs_item_key_to_cpu(leaf, &key, slot); key 954 fs/btrfs/file-item.c extent_start = key.offset; key 277 fs/btrfs/file.c struct btrfs_key key; key 284 fs/btrfs/file.c key.objectid = defrag->root; key 285 fs/btrfs/file.c key.type = BTRFS_ROOT_ITEM_KEY; key 286 fs/btrfs/file.c key.offset = (u64)-1; key 290 fs/btrfs/file.c inode_root = btrfs_read_fs_root_no_name(fs_info, &key); key 296 fs/btrfs/file.c key.objectid = defrag->ino; key 297 fs/btrfs/file.c key.type = BTRFS_INODE_ITEM_KEY; key 298 fs/btrfs/file.c key.offset = 0; key 299 fs/btrfs/file.c inode = btrfs_iget(fs_info->sb, &key, inode_root, NULL); key 759 fs/btrfs/file.c struct btrfs_key key; key 794 fs/btrfs/file.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); key 795 fs/btrfs/file.c if (key.objectid == ino && key 796 fs/btrfs/file.c key.type == BTRFS_EXTENT_DATA_KEY) key 817 fs/btrfs/file.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 819 fs/btrfs/file.c if (key.objectid > ino) key 821 fs/btrfs/file.c if (WARN_ON_ONCE(key.objectid < ino) || key 822 fs/btrfs/file.c key.type < BTRFS_EXTENT_DATA_KEY) { key 827 fs/btrfs/file.c if (key.type > BTRFS_EXTENT_DATA_KEY || key.offset >= end) key 839 fs/btrfs/file.c extent_end = key.offset + key 842 fs/btrfs/file.c extent_end = key.offset + key 858 fs/btrfs/file.c if (extent_end == key.offset && extent_end >= search_start) { key 869 fs/btrfs/file.c search_start = max(key.offset, start); key 880 fs/btrfs/file.c if (start > key.offset && end < extent_end) { key 887 fs/btrfs/file.c memcpy(&new_key, &key, sizeof(new_key)); key 902 fs/btrfs/file.c start - key.offset); key 907 fs/btrfs/file.c extent_offset += start - key.offset; key 924 fs/btrfs/file.c key.offset = start; key 936 fs/btrfs/file.c if (start <= key.offset && end < extent_end) { key 942 fs/btrfs/file.c memcpy(&new_key, &key, sizeof(new_key)); key 946 fs/btrfs/file.c extent_offset += end - key.offset; key 952 fs/btrfs/file.c inode_sub_bytes(inode, end - key.offset); key 961 fs/btrfs/file.c if (start > key.offset && end >= extent_end) { key 969 fs/btrfs/file.c start - key.offset); key 984 fs/btrfs/file.c if (start <= key.offset && end >= extent_end) { key 997 fs/btrfs/file.c extent_end - key.offset); key 1006 fs/btrfs/file.c key.objectid, key 1007 fs/btrfs/file.c key.offset - extent_offset); key 1011 fs/btrfs/file.c extent_end - key.offset); key 1064 fs/btrfs/file.c key.objectid = ino; key 1065 fs/btrfs/file.c key.type = BTRFS_EXTENT_DATA_KEY; key 1066 fs/btrfs/file.c key.offset = start; key 1071 fs/btrfs/file.c if (btrfs_comp_cpu_keys(&key, &slot_key) > 0) key 1074 fs/btrfs/file.c setup_items_for_insert(root, path, &key, key 1110 fs/btrfs/file.c struct btrfs_key key; key 1116 fs/btrfs/file.c btrfs_item_key_to_cpu(leaf, &key, slot); key 1117 fs/btrfs/file.c if (key.objectid != objectid || key.type != BTRFS_EXTENT_DATA_KEY) key 1123 fs/btrfs/file.c btrfs_file_extent_offset(leaf, fi) != key.offset - orig_offset || key 1129 fs/btrfs/file.c extent_end = key.offset + btrfs_file_extent_num_bytes(leaf, fi); key 1130 fs/btrfs/file.c if ((*start && *start != key.offset) || (*end && *end != extent_end)) key 1133 fs/btrfs/file.c *start = key.offset; key 1154 fs/btrfs/file.c struct btrfs_key key; key 1175 fs/btrfs/file.c key.objectid = ino; key 1176 fs/btrfs/file.c key.type = BTRFS_EXTENT_DATA_KEY; key 1177 fs/btrfs/file.c key.offset = split; key 1179 fs/btrfs/file.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); key 1186 fs/btrfs/file.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 1187 fs/btrfs/file.c if (key.objectid != ino || key 1188 fs/btrfs/file.c key.type != BTRFS_EXTENT_DATA_KEY) { key 1200 fs/btrfs/file.c extent_end = key.offset + btrfs_file_extent_num_bytes(leaf, fi); key 1201 fs/btrfs/file.c if (key.offset > start || extent_end < end) { key 1209 fs/btrfs/file.c orig_offset = key.offset - btrfs_file_extent_offset(leaf, fi); key 1210 fs/btrfs/file.c memcpy(&new_key, &key, sizeof(new_key)); key 1212 fs/btrfs/file.c if (start == key.offset && end < extent_end) { key 1239 fs/btrfs/file.c if (start > key.offset && end == extent_end) { key 1248 fs/btrfs/file.c start - key.offset); key 1268 fs/btrfs/file.c while (start > key.offset || end < extent_end) { key 1269 fs/btrfs/file.c if (key.offset == start) key 1288 fs/btrfs/file.c split - key.offset); key 1310 fs/btrfs/file.c key.offset = start; key 1312 fs/btrfs/file.c if (start != key.offset) { key 1353 fs/btrfs/file.c key.offset = other_start; key 1376 fs/btrfs/file.c extent_end - key.offset); key 2264 fs/btrfs/file.c struct btrfs_key key; key 2269 fs/btrfs/file.c btrfs_item_key_to_cpu(leaf, &key, slot); key 2270 fs/btrfs/file.c if (key.objectid != btrfs_ino(inode) || key 2271 fs/btrfs/file.c key.type != BTRFS_EXTENT_DATA_KEY) key 2282 fs/btrfs/file.c if (key.offset == end) key 2284 fs/btrfs/file.c if (key.offset + btrfs_file_extent_num_bytes(leaf, fi) == start) key 2299 fs/btrfs/file.c struct btrfs_key key; key 2305 fs/btrfs/file.c key.objectid = btrfs_ino(inode); key 2306 fs/btrfs/file.c key.type = BTRFS_EXTENT_DATA_KEY; key 2307 fs/btrfs/file.c key.offset = offset; key 2309 fs/btrfs/file.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); key 2339 fs/btrfs/file.c key.offset = offset; key 2340 fs/btrfs/file.c btrfs_set_item_key_safe(fs_info, path, &key); key 2473 fs/btrfs/file.c struct btrfs_key key; key 2486 fs/btrfs/file.c key.objectid = btrfs_ino(BTRFS_I(inode)); key 2487 fs/btrfs/file.c key.type = BTRFS_EXTENT_DATA_KEY; key 2488 fs/btrfs/file.c key.offset = clone_info->file_offset; key 2489 fs/btrfs/file.c ret = btrfs_insert_empty_item(trans, root, path, &key, key 48 fs/btrfs/free-space-cache.c struct btrfs_key key; key 57 fs/btrfs/free-space-cache.c key.objectid = BTRFS_FREE_SPACE_OBJECTID; key 58 fs/btrfs/free-space-cache.c key.offset = offset; key 59 fs/btrfs/free-space-cache.c key.type = 0; key 61 fs/btrfs/free-space-cache.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 110 fs/btrfs/free-space-cache.c block_group->key.objectid); key 136 fs/btrfs/free-space-cache.c struct btrfs_key key; key 171 fs/btrfs/free-space-cache.c key.objectid = BTRFS_FREE_SPACE_OBJECTID; key 172 fs/btrfs/free-space-cache.c key.offset = offset; key 173 fs/btrfs/free-space-cache.c key.type = 0; key 174 fs/btrfs/free-space-cache.c ret = btrfs_insert_empty_item(trans, root, path, &key, key 204 fs/btrfs/free-space-cache.c ino, block_group->key.objectid); key 674 fs/btrfs/free-space-cache.c struct btrfs_key key; key 687 fs/btrfs/free-space-cache.c key.objectid = BTRFS_FREE_SPACE_OBJECTID; key 688 fs/btrfs/free-space-cache.c key.offset = offset; key 689 fs/btrfs/free-space-cache.c key.type = 0; key 691 fs/btrfs/free-space-cache.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 885 fs/btrfs/free-space-cache.c path, block_group->key.objectid); key 891 fs/btrfs/free-space-cache.c matched = (ctl->free_space == (block_group->key.offset - used - key 899 fs/btrfs/free-space-cache.c block_group->key.objectid); key 912 fs/btrfs/free-space-cache.c block_group->key.objectid); key 1003 fs/btrfs/free-space-cache.c struct btrfs_key key; key 1008 fs/btrfs/free-space-cache.c key.objectid = BTRFS_FREE_SPACE_OBJECTID; key 1009 fs/btrfs/free-space-cache.c key.offset = offset; key 1010 fs/btrfs/free-space-cache.c key.type = 0; key 1012 fs/btrfs/free-space-cache.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); key 1070 fs/btrfs/free-space-cache.c start = block_group->key.objectid; key 1072 fs/btrfs/free-space-cache.c while (start < block_group->key.objectid + block_group->key.offset) { key 1080 fs/btrfs/free-space-cache.c if (extent_start >= block_group->key.objectid + key 1081 fs/btrfs/free-space-cache.c block_group->key.offset) key 1085 fs/btrfs/free-space-cache.c extent_end = min(block_group->key.objectid + key 1086 fs/btrfs/free-space-cache.c block_group->key.offset, extent_end + 1); key 1177 fs/btrfs/free-space-cache.c block_group->key.objectid); key 1224 fs/btrfs/free-space-cache.c path, block_group->key.objectid); key 1403 fs/btrfs/free-space-cache.c block_group->key.objectid); key 1660 fs/btrfs/free-space-cache.c u64 size = block_group->key.offset; key 2037 fs/btrfs/free-space-cache.c if (((BITS_PER_BITMAP * ctl->unit) >> 1) > block_group->key.offset) key 2519 fs/btrfs/free-space-cache.c ctl->start = block_group->key.objectid; key 3382 fs/btrfs/free-space-cache.c em = lookup_extent_mapping(em_tree, block_group->key.objectid, key 30 fs/btrfs/free-space-tree.c num_bitmaps = div_u64(cache->key.offset + bitmap_range - 1, key 53 fs/btrfs/free-space-tree.c struct btrfs_key key; key 57 fs/btrfs/free-space-tree.c key.objectid = block_group->key.objectid; key 58 fs/btrfs/free-space-tree.c key.type = BTRFS_FREE_SPACE_INFO_KEY; key 59 fs/btrfs/free-space-tree.c key.offset = block_group->key.offset; key 61 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*info)); key 86 fs/btrfs/free-space-tree.c struct btrfs_key key; key 89 fs/btrfs/free-space-tree.c key.objectid = block_group->key.objectid; key 90 fs/btrfs/free-space-tree.c key.type = BTRFS_FREE_SPACE_INFO_KEY; key 91 fs/btrfs/free-space-tree.c key.offset = block_group->key.offset; key 93 fs/btrfs/free-space-tree.c ret = btrfs_search_slot(trans, root, &key, path, 0, cow); key 98 fs/btrfs/free-space-tree.c block_group->key.objectid); key 113 fs/btrfs/free-space-tree.c struct btrfs_key *key, struct btrfs_path *p, key 118 fs/btrfs/free-space-tree.c ret = btrfs_search_slot(trans, root, key, p, ins_len, cow); key 189 fs/btrfs/free-space-tree.c struct btrfs_key key, found_key; key 200 fs/btrfs/free-space-tree.c bitmap_size = free_space_bitmap_size(block_group->key.offset, key 208 fs/btrfs/free-space-tree.c start = block_group->key.objectid; key 209 fs/btrfs/free-space-tree.c end = block_group->key.objectid + block_group->key.offset; key 211 fs/btrfs/free-space-tree.c key.objectid = end - 1; key 212 fs/btrfs/free-space-tree.c key.type = (u8)-1; key 213 fs/btrfs/free-space-tree.c key.offset = (u64)-1; key 216 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); key 227 fs/btrfs/free-space-tree.c ASSERT(found_key.objectid == block_group->key.objectid); key 228 fs/btrfs/free-space-tree.c ASSERT(found_key.offset == block_group->key.offset); key 274 fs/btrfs/free-space-tree.c block_group->key.objectid, extent_count, key 293 fs/btrfs/free-space-tree.c key.objectid = i; key 294 fs/btrfs/free-space-tree.c key.type = BTRFS_FREE_SPACE_BITMAP_KEY; key 295 fs/btrfs/free-space-tree.c key.offset = extent_size; key 297 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, key 329 fs/btrfs/free-space-tree.c struct btrfs_key key, found_key; key 339 fs/btrfs/free-space-tree.c bitmap_size = free_space_bitmap_size(block_group->key.offset, key 347 fs/btrfs/free-space-tree.c start = block_group->key.objectid; key 348 fs/btrfs/free-space-tree.c end = block_group->key.objectid + block_group->key.offset; key 350 fs/btrfs/free-space-tree.c key.objectid = end - 1; key 351 fs/btrfs/free-space-tree.c key.type = (u8)-1; key 352 fs/btrfs/free-space-tree.c key.offset = (u64)-1; key 355 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); key 366 fs/btrfs/free-space-tree.c ASSERT(found_key.objectid == block_group->key.objectid); key 367 fs/btrfs/free-space-tree.c ASSERT(found_key.offset == block_group->key.offset); key 416 fs/btrfs/free-space-tree.c nrbits = div_u64(block_group->key.offset, block_group->fs_info->sectorsize); key 423 fs/btrfs/free-space-tree.c key.objectid = start + start_bit * block_group->fs_info->sectorsize; key 424 fs/btrfs/free-space-tree.c key.type = BTRFS_FREE_SPACE_EXTENT_KEY; key 425 fs/btrfs/free-space-tree.c key.offset = (end_bit - start_bit) * block_group->fs_info->sectorsize; key 427 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); key 440 fs/btrfs/free-space-tree.c block_group->key.objectid, extent_count, key 498 fs/btrfs/free-space-tree.c struct btrfs_key key; key 503 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 504 fs/btrfs/free-space-tree.c ASSERT(key.type == BTRFS_FREE_SPACE_BITMAP_KEY); key 506 fs/btrfs/free-space-tree.c found_start = key.objectid; key 507 fs/btrfs/free-space-tree.c found_end = key.objectid + key.offset; key 522 fs/btrfs/free-space-tree.c struct btrfs_key key; key 528 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 529 fs/btrfs/free-space-tree.c ASSERT(key.type == BTRFS_FREE_SPACE_BITMAP_KEY); key 531 fs/btrfs/free-space-tree.c found_start = key.objectid; key 532 fs/btrfs/free-space-tree.c found_end = key.objectid + key.offset; key 561 fs/btrfs/free-space-tree.c struct btrfs_key key; key 568 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(p->nodes[0], &key, p->slots[0]); key 571 fs/btrfs/free-space-tree.c key.objectid += key.offset; key 572 fs/btrfs/free-space-tree.c key.type = (u8)-1; key 573 fs/btrfs/free-space-tree.c key.offset = (u64)-1; key 575 fs/btrfs/free-space-tree.c return btrfs_search_prev_slot(trans, root, &key, p, 0, 1); key 589 fs/btrfs/free-space-tree.c struct btrfs_key key; key 600 fs/btrfs/free-space-tree.c if (start > block_group->key.objectid) { key 603 fs/btrfs/free-space-tree.c key.objectid = prev_block; key 604 fs/btrfs/free-space-tree.c key.type = (u8)-1; key 605 fs/btrfs/free-space-tree.c key.offset = (u64)-1; key 607 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, 0, 1); key 614 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 615 fs/btrfs/free-space-tree.c if (start >= key.objectid + key.offset) { key 621 fs/btrfs/free-space-tree.c key.objectid = start; key 622 fs/btrfs/free-space-tree.c key.type = (u8)-1; key 623 fs/btrfs/free-space-tree.c key.offset = (u64)-1; key 625 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, 0, 1); key 652 fs/btrfs/free-space-tree.c if (end < block_group->key.objectid + block_group->key.offset) { key 654 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 655 fs/btrfs/free-space-tree.c if (end >= key.objectid + key.offset) { key 702 fs/btrfs/free-space-tree.c struct btrfs_key key; key 708 fs/btrfs/free-space-tree.c key.objectid = start; key 709 fs/btrfs/free-space-tree.c key.type = (u8)-1; key 710 fs/btrfs/free-space-tree.c key.offset = (u64)-1; key 712 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); key 716 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 718 fs/btrfs/free-space-tree.c ASSERT(key.type == BTRFS_FREE_SPACE_EXTENT_KEY); key 720 fs/btrfs/free-space-tree.c found_start = key.objectid; key 721 fs/btrfs/free-space-tree.c found_end = key.objectid + key.offset; key 750 fs/btrfs/free-space-tree.c key.objectid = found_start; key 751 fs/btrfs/free-space-tree.c key.type = BTRFS_FREE_SPACE_EXTENT_KEY; key 752 fs/btrfs/free-space-tree.c key.offset = start - found_start; key 755 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); key 763 fs/btrfs/free-space-tree.c key.objectid = end; key 764 fs/btrfs/free-space-tree.c key.type = BTRFS_FREE_SPACE_EXTENT_KEY; key 765 fs/btrfs/free-space-tree.c key.offset = found_end - end; key 768 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); key 854 fs/btrfs/free-space-tree.c struct btrfs_key key, new_key; key 883 fs/btrfs/free-space-tree.c if (start == block_group->key.objectid) key 885 fs/btrfs/free-space-tree.c key.objectid = start - 1; key 886 fs/btrfs/free-space-tree.c key.type = (u8)-1; key 887 fs/btrfs/free-space-tree.c key.offset = (u64)-1; key 889 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); key 893 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 895 fs/btrfs/free-space-tree.c if (key.type != BTRFS_FREE_SPACE_EXTENT_KEY) { key 896 fs/btrfs/free-space-tree.c ASSERT(key.type == BTRFS_FREE_SPACE_INFO_KEY); key 901 fs/btrfs/free-space-tree.c found_start = key.objectid; key 902 fs/btrfs/free-space-tree.c found_end = key.objectid + key.offset; key 903 fs/btrfs/free-space-tree.c ASSERT(found_start >= block_group->key.objectid && key 904 fs/btrfs/free-space-tree.c found_end > block_group->key.objectid); key 916 fs/btrfs/free-space-tree.c new_key.offset += key.offset; key 923 fs/btrfs/free-space-tree.c if (end == block_group->key.objectid + block_group->key.offset) key 925 fs/btrfs/free-space-tree.c key.objectid = end; key 926 fs/btrfs/free-space-tree.c key.type = (u8)-1; key 927 fs/btrfs/free-space-tree.c key.offset = (u64)-1; key 929 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); key 933 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 935 fs/btrfs/free-space-tree.c if (key.type != BTRFS_FREE_SPACE_EXTENT_KEY) { key 936 fs/btrfs/free-space-tree.c ASSERT(key.type == BTRFS_FREE_SPACE_INFO_KEY); key 941 fs/btrfs/free-space-tree.c found_start = key.objectid; key 942 fs/btrfs/free-space-tree.c found_end = key.objectid + key.offset; key 943 fs/btrfs/free-space-tree.c ASSERT(found_start >= block_group->key.objectid && key 944 fs/btrfs/free-space-tree.c found_end > block_group->key.objectid); key 956 fs/btrfs/free-space-tree.c new_key.offset += key.offset; key 1050 fs/btrfs/free-space-tree.c struct btrfs_key key; key 1078 fs/btrfs/free-space-tree.c key.objectid = block_group->key.objectid; key 1079 fs/btrfs/free-space-tree.c key.type = BTRFS_EXTENT_ITEM_KEY; key 1080 fs/btrfs/free-space-tree.c key.offset = 0; key 1082 fs/btrfs/free-space-tree.c ret = btrfs_search_slot_for_read(extent_root, &key, path, 1, 0); key 1087 fs/btrfs/free-space-tree.c start = block_group->key.objectid; key 1088 fs/btrfs/free-space-tree.c end = block_group->key.objectid + block_group->key.offset; key 1090 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 1092 fs/btrfs/free-space-tree.c if (key.type == BTRFS_EXTENT_ITEM_KEY || key 1093 fs/btrfs/free-space-tree.c key.type == BTRFS_METADATA_ITEM_KEY) { key 1094 fs/btrfs/free-space-tree.c if (key.objectid >= end) key 1097 fs/btrfs/free-space-tree.c if (start < key.objectid) { key 1101 fs/btrfs/free-space-tree.c key.objectid - key 1106 fs/btrfs/free-space-tree.c start = key.objectid; key 1107 fs/btrfs/free-space-tree.c if (key.type == BTRFS_METADATA_ITEM_KEY) key 1110 fs/btrfs/free-space-tree.c start += key.offset; key 1111 fs/btrfs/free-space-tree.c } else if (key.type == BTRFS_BLOCK_GROUP_ITEM_KEY) { key 1112 fs/btrfs/free-space-tree.c if (key.objectid != block_group->key.objectid) key 1187 fs/btrfs/free-space-tree.c struct btrfs_key key; key 1197 fs/btrfs/free-space-tree.c key.objectid = 0; key 1198 fs/btrfs/free-space-tree.c key.type = 0; key 1199 fs/btrfs/free-space-tree.c key.offset = 0; key 1202 fs/btrfs/free-space-tree.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); key 1280 fs/btrfs/free-space-tree.c block_group->key.objectid, key 1281 fs/btrfs/free-space-tree.c block_group->key.offset); key 1319 fs/btrfs/free-space-tree.c struct btrfs_key key, found_key; key 1339 fs/btrfs/free-space-tree.c start = block_group->key.objectid; key 1340 fs/btrfs/free-space-tree.c end = block_group->key.objectid + block_group->key.offset; key 1342 fs/btrfs/free-space-tree.c key.objectid = end - 1; key 1343 fs/btrfs/free-space-tree.c key.type = (u8)-1; key 1344 fs/btrfs/free-space-tree.c key.offset = (u64)-1; key 1347 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); key 1358 fs/btrfs/free-space-tree.c ASSERT(found_key.objectid == block_group->key.objectid); key 1359 fs/btrfs/free-space-tree.c ASSERT(found_key.offset == block_group->key.offset); key 1397 fs/btrfs/free-space-tree.c struct btrfs_key key; key 1410 fs/btrfs/free-space-tree.c end = block_group->key.objectid + block_group->key.offset; key 1419 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 1421 fs/btrfs/free-space-tree.c if (key.type == BTRFS_FREE_SPACE_INFO_KEY) key 1424 fs/btrfs/free-space-tree.c ASSERT(key.type == BTRFS_FREE_SPACE_BITMAP_KEY); key 1425 fs/btrfs/free-space-tree.c ASSERT(key.objectid < end && key.objectid + key.offset <= end); key 1427 fs/btrfs/free-space-tree.c caching_ctl->progress = key.objectid; key 1429 fs/btrfs/free-space-tree.c offset = key.objectid; key 1430 fs/btrfs/free-space-tree.c while (offset < key.objectid + key.offset) { key 1457 fs/btrfs/free-space-tree.c block_group->key.objectid, extent_count, key 1478 fs/btrfs/free-space-tree.c struct btrfs_key key; key 1488 fs/btrfs/free-space-tree.c end = block_group->key.objectid + block_group->key.offset; key 1497 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 1499 fs/btrfs/free-space-tree.c if (key.type == BTRFS_FREE_SPACE_INFO_KEY) key 1502 fs/btrfs/free-space-tree.c ASSERT(key.type == BTRFS_FREE_SPACE_EXTENT_KEY); key 1503 fs/btrfs/free-space-tree.c ASSERT(key.objectid < end && key.objectid + key.offset <= end); key 1505 fs/btrfs/free-space-tree.c caching_ctl->progress = key.objectid; key 1507 fs/btrfs/free-space-tree.c total_found += add_new_free_space(block_group, key.objectid, key 1508 fs/btrfs/free-space-tree.c key.objectid + key.offset); key 1519 fs/btrfs/free-space-tree.c block_group->key.objectid, extent_count, key 82 fs/btrfs/inode-item.c struct btrfs_key key; key 84 fs/btrfs/inode-item.c key.objectid = inode_objectid; key 85 fs/btrfs/inode-item.c key.type = BTRFS_INODE_EXTREF_KEY; key 86 fs/btrfs/inode-item.c key.offset = btrfs_extref_hash(ref_objectid, name, name_len); key 88 fs/btrfs/inode-item.c ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); key 105 fs/btrfs/inode-item.c struct btrfs_key key; key 114 fs/btrfs/inode-item.c key.objectid = inode_objectid; key 115 fs/btrfs/inode-item.c key.type = BTRFS_INODE_EXTREF_KEY; key 116 fs/btrfs/inode-item.c key.offset = btrfs_extref_hash(ref_objectid, name, name_len); key 124 fs/btrfs/inode-item.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); key 177 fs/btrfs/inode-item.c struct btrfs_key key; key 188 fs/btrfs/inode-item.c key.objectid = inode_objectid; key 189 fs/btrfs/inode-item.c key.offset = ref_objectid; key 190 fs/btrfs/inode-item.c key.type = BTRFS_INODE_REF_KEY; key 198 fs/btrfs/inode-item.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); key 261 fs/btrfs/inode-item.c struct btrfs_key key; key 265 fs/btrfs/inode-item.c key.objectid = inode_objectid; key 266 fs/btrfs/inode-item.c key.type = BTRFS_INODE_EXTREF_KEY; key 267 fs/btrfs/inode-item.c key.offset = btrfs_extref_hash(ref_objectid, name, name_len); key 274 fs/btrfs/inode-item.c ret = btrfs_insert_empty_item(trans, root, path, &key, key 316 fs/btrfs/inode-item.c struct btrfs_key key; key 322 fs/btrfs/inode-item.c key.objectid = inode_objectid; key 323 fs/btrfs/inode-item.c key.offset = ref_objectid; key 324 fs/btrfs/inode-item.c key.type = BTRFS_INODE_REF_KEY; key 332 fs/btrfs/inode-item.c ret = btrfs_insert_empty_item(trans, root, path, &key, key 392 fs/btrfs/inode-item.c struct btrfs_key key; key 394 fs/btrfs/inode-item.c key.objectid = objectid; key 395 fs/btrfs/inode-item.c key.type = BTRFS_INODE_ITEM_KEY; key 396 fs/btrfs/inode-item.c key.offset = 0; key 398 fs/btrfs/inode-item.c ret = btrfs_insert_empty_item(trans, root, path, &key, key 34 fs/btrfs/inode-map.c struct btrfs_key key; key 55 fs/btrfs/inode-map.c key.objectid = BTRFS_FIRST_FREE_OBJECTID; key 56 fs/btrfs/inode-map.c key.offset = 0; key 57 fs/btrfs/inode-map.c key.type = BTRFS_INODE_ITEM_KEY; key 62 fs/btrfs/inode-map.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 90 fs/btrfs/inode-map.c btrfs_item_key_to_cpu(leaf, &key, 0); key 100 fs/btrfs/inode-map.c btrfs_item_key_to_cpu(leaf, &key, slot); key 102 fs/btrfs/inode-map.c if (key.type != BTRFS_INODE_ITEM_KEY) key 105 fs/btrfs/inode-map.c if (key.objectid >= root->highest_objectid) key 108 fs/btrfs/inode-map.c if (last != (u64)-1 && last + 1 != key.objectid) { key 110 fs/btrfs/inode-map.c key.objectid - last - 1); key 114 fs/btrfs/inode-map.c last = key.objectid; key 191 fs/btrfs/inode.c struct btrfs_key key; key 194 fs/btrfs/inode.c key.objectid = btrfs_ino(BTRFS_I(inode)); key 195 fs/btrfs/inode.c key.offset = start; key 196 fs/btrfs/inode.c key.type = BTRFS_EXTENT_DATA_KEY; key 200 fs/btrfs/inode.c ret = btrfs_insert_empty_item(trans, root, path, &key, key 2546 fs/btrfs/inode.c struct btrfs_key key; key 2561 fs/btrfs/inode.c key.objectid = root_id; key 2562 fs/btrfs/inode.c key.type = BTRFS_ROOT_ITEM_KEY; key 2563 fs/btrfs/inode.c key.offset = (u64)-1; key 2565 fs/btrfs/inode.c root = btrfs_read_fs_root_no_name(fs_info, &key); key 2575 fs/btrfs/inode.c key.objectid = inum; key 2576 fs/btrfs/inode.c key.type = BTRFS_EXTENT_DATA_KEY; key 2578 fs/btrfs/inode.c key.offset = 0; key 2580 fs/btrfs/inode.c key.offset = offset; key 2582 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 2606 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &key, slot); key 2608 fs/btrfs/inode.c if (key.objectid > inum) key 2611 fs/btrfs/inode.c if (key.objectid < inum || key.type != BTRFS_EXTENT_DATA_KEY) key 2625 fs/btrfs/inode.c if (key.offset != offset) key 2722 fs/btrfs/inode.c struct btrfs_key key; key 2743 fs/btrfs/inode.c key.objectid = backref->root_id; key 2744 fs/btrfs/inode.c key.type = BTRFS_ROOT_ITEM_KEY; key 2745 fs/btrfs/inode.c key.offset = (u64)-1; key 2749 fs/btrfs/inode.c root = btrfs_read_fs_root_no_name(fs_info, &key); key 2763 fs/btrfs/inode.c key.objectid = backref->inum; key 2764 fs/btrfs/inode.c key.type = BTRFS_INODE_ITEM_KEY; key 2765 fs/btrfs/inode.c key.offset = 0; key 2767 fs/btrfs/inode.c inode = btrfs_iget(fs_info->sb, &key, root, NULL); key 2793 fs/btrfs/inode.c key.objectid = backref->inum; key 2794 fs/btrfs/inode.c key.type = BTRFS_EXTENT_DATA_KEY; key 2795 fs/btrfs/inode.c key.offset = backref->file_pos; key 2797 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 2828 fs/btrfs/inode.c key.objectid = btrfs_ino(BTRFS_I(inode)); key 2829 fs/btrfs/inode.c key.type = BTRFS_EXTENT_DATA_KEY; key 2830 fs/btrfs/inode.c key.offset = start; key 2838 fs/btrfs/inode.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); key 2866 fs/btrfs/inode.c ret = btrfs_insert_empty_item(trans, root, path, &key, key 2981 fs/btrfs/inode.c struct btrfs_key key; key 3003 fs/btrfs/inode.c key.objectid = btrfs_ino(BTRFS_I(inode)); key 3004 fs/btrfs/inode.c key.type = BTRFS_EXTENT_DATA_KEY; key 3005 fs/btrfs/inode.c key.offset = new->file_pos; key 3007 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 3036 fs/btrfs/inode.c btrfs_item_key_to_cpu(l, &key, slot); key 3038 fs/btrfs/inode.c if (key.objectid != btrfs_ino(BTRFS_I(inode))) key 3040 fs/btrfs/inode.c if (key.type != BTRFS_EXTENT_DATA_KEY) key 3042 fs/btrfs/inode.c if (key.offset >= new->file_pos + new->len) key 3048 fs/btrfs/inode.c if (key.offset + num_bytes < new->file_pos) key 3061 fs/btrfs/inode.c offset = max(new->file_pos, key.offset); key 3062 fs/btrfs/inode.c end = min(new->file_pos + new->len, key.offset + num_bytes); key 3066 fs/btrfs/inode.c old->offset = offset - key.offset; key 3550 fs/btrfs/inode.c struct btrfs_key key, found_key; key 3566 fs/btrfs/inode.c key.objectid = BTRFS_ORPHAN_OBJECTID; key 3567 fs/btrfs/inode.c key.type = BTRFS_ORPHAN_ITEM_KEY; key 3568 fs/btrfs/inode.c key.offset = (u64)-1; key 3571 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 3651 fs/btrfs/inode.c key.offset = found_key.objectid - 1; key 4296 fs/btrfs/inode.c struct btrfs_key key; key 4325 fs/btrfs/inode.c btrfs_dir_item_key_to_cpu(leaf, di, &key); key 4326 fs/btrfs/inode.c WARN_ON(key.type != BTRFS_ROOT_ITEM_KEY || key.objectid != objectid); key 4356 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 4357 fs/btrfs/inode.c index = key.offset; key 4395 fs/btrfs/inode.c struct btrfs_key key; key 4408 fs/btrfs/inode.c btrfs_dir_item_key_to_cpu(path->nodes[0], di, &key); key 4409 fs/btrfs/inode.c if (key.objectid == root->root_key.objectid) { key 4413 fs/btrfs/inode.c key.objectid); key 4419 fs/btrfs/inode.c key.objectid = root->root_key.objectid; key 4420 fs/btrfs/inode.c key.type = BTRFS_ROOT_REF_KEY; key 4421 fs/btrfs/inode.c key.offset = (u64)-1; key 4423 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); key 4431 fs/btrfs/inode.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 4432 fs/btrfs/inode.c if (key.objectid == root->root_key.objectid && key 4433 fs/btrfs/inode.c key.type == BTRFS_ROOT_REF_KEY) key 4719 fs/btrfs/inode.c struct btrfs_key key; key 4779 fs/btrfs/inode.c key.objectid = ino; key 4780 fs/btrfs/inode.c key.offset = (u64)-1; key 4781 fs/btrfs/inode.c key.type = (u8)-1; key 4795 fs/btrfs/inode.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); key 5715 fs/btrfs/inode.c struct btrfs_key key; key 5726 fs/btrfs/inode.c key.objectid = BTRFS_I(dir)->root->root_key.objectid; key 5727 fs/btrfs/inode.c key.type = BTRFS_ROOT_REF_KEY; key 5728 fs/btrfs/inode.c key.offset = location->objectid; key 5730 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); key 5905 fs/btrfs/inode.c struct btrfs_key *key, key 5914 fs/btrfs/inode.c memcpy(&BTRFS_I(inode)->location, key, sizeof(*key)); key 6095 fs/btrfs/inode.c struct btrfs_key key; key 6126 fs/btrfs/inode.c key.type = BTRFS_DIR_INDEX_KEY; key 6127 fs/btrfs/inode.c key.offset = ctx->pos; key 6128 fs/btrfs/inode.c key.objectid = btrfs_ino(BTRFS_I(inode)); key 6130 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 6150 fs/btrfs/inode.c if (found_key.objectid != key.objectid) key 6297 fs/btrfs/inode.c struct btrfs_key key, found_key; key 6302 fs/btrfs/inode.c key.objectid = btrfs_ino(inode); key 6303 fs/btrfs/inode.c key.type = BTRFS_DIR_INDEX_KEY; key 6304 fs/btrfs/inode.c key.offset = (u64)-1; key 6310 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 6424 fs/btrfs/inode.c struct btrfs_key key[2]; key 6487 fs/btrfs/inode.c key[0].objectid = objectid; key 6488 fs/btrfs/inode.c key[0].type = BTRFS_INODE_ITEM_KEY; key 6489 fs/btrfs/inode.c key[0].offset = 0; key 6500 fs/btrfs/inode.c key[1].objectid = objectid; key 6501 fs/btrfs/inode.c key[1].type = BTRFS_INODE_REF_KEY; key 6502 fs/btrfs/inode.c key[1].offset = ref_objectid; key 6519 fs/btrfs/inode.c ret = btrfs_insert_empty_items(trans, root, path, key, sizes, nitems); key 6594 fs/btrfs/inode.c struct btrfs_key key; key 6600 fs/btrfs/inode.c memcpy(&key, &inode->root->root_key, sizeof(key)); key 6602 fs/btrfs/inode.c key.objectid = ino; key 6603 fs/btrfs/inode.c key.type = BTRFS_INODE_ITEM_KEY; key 6604 fs/btrfs/inode.c key.offset = 0; key 6608 fs/btrfs/inode.c ret = btrfs_add_root_ref(trans, key.objectid, key 6620 fs/btrfs/inode.c ret = btrfs_insert_dir_item(trans, name, name_len, parent_inode, &key, key 6653 fs/btrfs/inode.c err = btrfs_del_root_ref(trans, key.objectid, key 7455 fs/btrfs/inode.c struct btrfs_key key; key 7484 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &key, slot); key 7485 fs/btrfs/inode.c if (key.objectid != btrfs_ino(BTRFS_I(inode)) || key 7486 fs/btrfs/inode.c key.type != BTRFS_EXTENT_DATA_KEY) { key 7491 fs/btrfs/inode.c if (key.offset > offset) { key 7507 fs/btrfs/inode.c extent_end = key.offset + btrfs_file_extent_num_bytes(leaf, fi); key 7531 fs/btrfs/inode.c *orig_start = key.offset - backref_offset; key 7561 fs/btrfs/inode.c key.offset - backref_offset, disk_bytenr); key 7574 fs/btrfs/inode.c disk_bytenr += offset - key.offset; key 10355 fs/btrfs/inode.c struct btrfs_key key; key 10414 fs/btrfs/inode.c key.objectid = btrfs_ino(BTRFS_I(inode)); key 10415 fs/btrfs/inode.c key.offset = 0; key 10416 fs/btrfs/inode.c key.type = BTRFS_EXTENT_DATA_KEY; key 10418 fs/btrfs/inode.c err = btrfs_insert_empty_item(trans, root, path, &key, key 563 fs/btrfs/ioctl.c struct btrfs_key key; key 661 fs/btrfs/ioctl.c key.objectid = objectid; key 662 fs/btrfs/ioctl.c key.offset = 0; key 663 fs/btrfs/ioctl.c key.type = BTRFS_ROOT_ITEM_KEY; key 664 fs/btrfs/ioctl.c ret = btrfs_insert_root(trans, fs_info->tree_root, &key, key 669 fs/btrfs/ioctl.c key.offset = (u64)-1; key 670 fs/btrfs/ioctl.c new_root = btrfs_read_fs_root_no_name(fs_info, &key); key 699 fs/btrfs/ioctl.c ret = btrfs_insert_dir_item(trans, name, namelen, BTRFS_I(dir), &key, key 2006 fs/btrfs/ioctl.c static noinline int key_in_sk(struct btrfs_key *key, key 2016 fs/btrfs/ioctl.c ret = btrfs_comp_cpu_keys(key, &test); key 2024 fs/btrfs/ioctl.c ret = btrfs_comp_cpu_keys(key, &test); key 2031 fs/btrfs/ioctl.c struct btrfs_key *key, key 2063 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(leaf, key, i); key 2064 fs/btrfs/ioctl.c if (!key_in_sk(key, sk)) key 2088 fs/btrfs/ioctl.c sh.objectid = key->objectid; key 2089 fs/btrfs/ioctl.c sh.offset = key->offset; key 2090 fs/btrfs/ioctl.c sh.type = key->type; key 2128 fs/btrfs/ioctl.c if (btrfs_comp_cpu_keys(key, &test) >= 0) key 2130 fs/btrfs/ioctl.c else if (key->offset < (u64)-1) key 2131 fs/btrfs/ioctl.c key->offset++; key 2132 fs/btrfs/ioctl.c else if (key->type < (u8)-1) { key 2133 fs/btrfs/ioctl.c key->offset = 0; key 2134 fs/btrfs/ioctl.c key->type++; key 2135 fs/btrfs/ioctl.c } else if (key->objectid < (u64)-1) { key 2136 fs/btrfs/ioctl.c key->offset = 0; key 2137 fs/btrfs/ioctl.c key->type = 0; key 2138 fs/btrfs/ioctl.c key->objectid++; key 2161 fs/btrfs/ioctl.c struct btrfs_key key; key 2180 fs/btrfs/ioctl.c key.objectid = sk->tree_id; key 2181 fs/btrfs/ioctl.c key.type = BTRFS_ROOT_ITEM_KEY; key 2182 fs/btrfs/ioctl.c key.offset = (u64)-1; key 2183 fs/btrfs/ioctl.c root = btrfs_read_fs_root_no_name(info, &key); key 2190 fs/btrfs/ioctl.c key.objectid = sk->min_objectid; key 2191 fs/btrfs/ioctl.c key.type = sk->min_type; key 2192 fs/btrfs/ioctl.c key.offset = sk->min_offset; key 2195 fs/btrfs/ioctl.c ret = btrfs_search_forward(root, &key, path, sk->min_transid); key 2201 fs/btrfs/ioctl.c ret = copy_to_sk(path, &key, sk, buf_size, ubuf, key 2230 fs/btrfs/ioctl.c if (copy_from_user(&sk, &uargs->key, sizeof(sk))) key 2245 fs/btrfs/ioctl.c if (ret == 0 && copy_to_user(&uargs->key, &sk, sizeof(sk))) key 2275 fs/btrfs/ioctl.c ret = search_ioctl(inode, &args.key, &buf_size, key 2277 fs/btrfs/ioctl.c if (ret == 0 && copy_to_user(&uarg->key, &args.key, sizeof(args.key))) key 2294 fs/btrfs/ioctl.c struct btrfs_key key; key 2315 fs/btrfs/ioctl.c key.objectid = tree_id; key 2316 fs/btrfs/ioctl.c key.type = BTRFS_ROOT_ITEM_KEY; key 2317 fs/btrfs/ioctl.c key.offset = (u64)-1; key 2318 fs/btrfs/ioctl.c root = btrfs_read_fs_root_no_name(info, &key); key 2324 fs/btrfs/ioctl.c key.objectid = dirid; key 2325 fs/btrfs/ioctl.c key.type = BTRFS_INODE_REF_KEY; key 2326 fs/btrfs/ioctl.c key.offset = (u64)-1; key 2329 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 2345 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(l, &key, slot); key 2359 fs/btrfs/ioctl.c if (key.offset == BTRFS_FIRST_FREE_OBJECTID) key 2363 fs/btrfs/ioctl.c key.objectid = key.offset; key 2364 fs/btrfs/ioctl.c key.offset = (u64)-1; key 2365 fs/btrfs/ioctl.c dirid = key.objectid; key 2389 fs/btrfs/ioctl.c struct btrfs_key key, key2; key 2409 fs/btrfs/ioctl.c key.objectid = treeid; key 2410 fs/btrfs/ioctl.c key.type = BTRFS_ROOT_ITEM_KEY; key 2411 fs/btrfs/ioctl.c key.offset = (u64)-1; key 2412 fs/btrfs/ioctl.c root = btrfs_read_fs_root_no_name(fs_info, &key); key 2418 fs/btrfs/ioctl.c key.objectid = dirid; key 2419 fs/btrfs/ioctl.c key.type = BTRFS_INODE_REF_KEY; key 2420 fs/btrfs/ioctl.c key.offset = (u64)-1; key 2422 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 2438 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(leaf, &key, slot); key 2483 fs/btrfs/ioctl.c if (key.offset == upper_limit.objectid) key 2485 fs/btrfs/ioctl.c if (key.objectid == BTRFS_FIRST_FREE_OBJECTID) { key 2491 fs/btrfs/ioctl.c key.objectid = key.offset; key 2492 fs/btrfs/ioctl.c key.offset = (u64)-1; key 2493 fs/btrfs/ioctl.c dirid = key.objectid; key 2503 fs/btrfs/ioctl.c key.objectid = treeid; key 2504 fs/btrfs/ioctl.c key.type = BTRFS_ROOT_REF_KEY; key 2505 fs/btrfs/ioctl.c key.offset = args->treeid; key 2506 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 2516 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(leaf, &key, slot); key 2630 fs/btrfs/ioctl.c struct btrfs_key key; key 2654 fs/btrfs/ioctl.c key.objectid = BTRFS_I(inode)->root->root_key.objectid; key 2655 fs/btrfs/ioctl.c key.type = BTRFS_ROOT_ITEM_KEY; key 2656 fs/btrfs/ioctl.c key.offset = (u64)-1; key 2657 fs/btrfs/ioctl.c root = btrfs_read_fs_root_no_name(fs_info, &key); key 2664 fs/btrfs/ioctl.c subvol_info->treeid = key.objectid; key 2691 fs/btrfs/ioctl.c if (key.objectid != BTRFS_FS_TREE_OBJECTID) { key 2695 fs/btrfs/ioctl.c key.type = BTRFS_ROOT_BACKREF_KEY; key 2696 fs/btrfs/ioctl.c key.offset = 0; key 2697 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 2713 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(leaf, &key, slot); key 2714 fs/btrfs/ioctl.c if (key.objectid == subvol_info->treeid && key 2715 fs/btrfs/ioctl.c key.type == BTRFS_ROOT_BACKREF_KEY) { key 2716 fs/btrfs/ioctl.c subvol_info->parent_id = key.offset; key 2752 fs/btrfs/ioctl.c struct btrfs_key key; key 2774 fs/btrfs/ioctl.c key.objectid = objectid; key 2775 fs/btrfs/ioctl.c key.type = BTRFS_ROOT_REF_KEY; key 2776 fs/btrfs/ioctl.c key.offset = rootrefs->min_treeid; key 2779 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 2796 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(leaf, &key, slot); key 2797 fs/btrfs/ioctl.c if (key.objectid != objectid || key.type != BTRFS_ROOT_REF_KEY) { key 2808 fs/btrfs/ioctl.c rootrefs->rootref[found].treeid = key.offset; key 3379 fs/btrfs/ioctl.c struct btrfs_key key; key 3384 fs/btrfs/ioctl.c key.objectid = btrfs_ino(BTRFS_I(dst)); key 3385 fs/btrfs/ioctl.c key.type = BTRFS_EXTENT_DATA_KEY; key 3386 fs/btrfs/ioctl.c key.offset = 0; key 3387 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 3398 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 3399 fs/btrfs/ioctl.c if (key.objectid == btrfs_ino(BTRFS_I(dst)) && key 3400 fs/btrfs/ioctl.c key.type == BTRFS_EXTENT_DATA_KEY) { key 3401 fs/btrfs/ioctl.c ASSERT(key.offset > 0); key 3431 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(path->nodes[0], &key, key 3433 fs/btrfs/ioctl.c if (key.objectid == btrfs_ino(BTRFS_I(dst)) && key 3434 fs/btrfs/ioctl.c key.type == BTRFS_EXTENT_DATA_KEY) key 3505 fs/btrfs/ioctl.c struct btrfs_key key; key 3525 fs/btrfs/ioctl.c key.objectid = btrfs_ino(BTRFS_I(src)); key 3526 fs/btrfs/ioctl.c key.type = BTRFS_EXTENT_DATA_KEY; key 3527 fs/btrfs/ioctl.c key.offset = off; key 3530 fs/btrfs/ioctl.c u64 next_key_min_offset = key.offset + 1; key 3545 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, BTRFS_I(src)->root, &key, path, key 3554 fs/btrfs/ioctl.c if (key.offset == off && ret > 0 && path->slots[0] > 0) { key 3555 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(path->nodes[0], &key, key 3557 fs/btrfs/ioctl.c if (key.type == BTRFS_EXTENT_DATA_KEY) key 3574 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(leaf, &key, slot); key 3575 fs/btrfs/ioctl.c if (key.type > BTRFS_EXTENT_DATA_KEY || key 3576 fs/btrfs/ioctl.c key.objectid != btrfs_ino(BTRFS_I(src))) key 3579 fs/btrfs/ioctl.c ASSERT(key.type == BTRFS_EXTENT_DATA_KEY); key 3601 fs/btrfs/ioctl.c if (key.offset + datal <= off) { key 3604 fs/btrfs/ioctl.c } else if (key.offset >= off + len) { key 3607 fs/btrfs/ioctl.c next_key_min_offset = key.offset + datal; key 3615 fs/btrfs/ioctl.c memcpy(&new_key, &key, sizeof(new_key)); key 3617 fs/btrfs/ioctl.c if (off <= key.offset) key 3618 fs/btrfs/ioctl.c new_key.offset = key.offset + destoff - off; key 3643 fs/btrfs/ioctl.c if (key.offset + datal > off + len) key 3644 fs/btrfs/ioctl.c datal = off + len - key.offset; key 3647 fs/btrfs/ioctl.c if (off > key.offset) { key 3648 fs/btrfs/ioctl.c datao += off - key.offset; key 3649 fs/btrfs/ioctl.c datal -= off - key.offset; key 3669 fs/btrfs/ioctl.c if (off > key.offset) { key 3670 fs/btrfs/ioctl.c skip = off - key.offset; key 3674 fs/btrfs/ioctl.c if (key.offset + datal > off + len) key 3675 fs/btrfs/ioctl.c trim = key.offset + datal - (off + len); key 3721 fs/btrfs/ioctl.c key.offset = next_key_min_offset; key 4043 fs/btrfs/ioctl.c space->total_bytes += block_group->key.offset; key 13 fs/btrfs/orphan.c struct btrfs_key key; key 16 fs/btrfs/orphan.c key.objectid = BTRFS_ORPHAN_OBJECTID; key 17 fs/btrfs/orphan.c key.type = BTRFS_ORPHAN_ITEM_KEY; key 18 fs/btrfs/orphan.c key.offset = offset; key 24 fs/btrfs/orphan.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); key 34 fs/btrfs/orphan.c struct btrfs_key key; key 37 fs/btrfs/orphan.c key.objectid = BTRFS_ORPHAN_OBJECTID; key 38 fs/btrfs/orphan.c key.type = BTRFS_ORPHAN_ITEM_KEY; key 39 fs/btrfs/orphan.c key.offset = offset; key 45 fs/btrfs/orphan.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); key 47 fs/btrfs/print-tree.c struct btrfs_disk_key key; key 71 fs/btrfs/print-tree.c btrfs_tree_block_key(eb, info, &key); key 73 fs/btrfs/print-tree.c btrfs_disk_key_objectid(&key), key.type, key 74 fs/btrfs/print-tree.c btrfs_disk_key_offset(&key), key 180 fs/btrfs/print-tree.c struct btrfs_key key; key 196 fs/btrfs/print-tree.c btrfs_item_key_to_cpu(l, &key, i); key 197 fs/btrfs/print-tree.c type = key.type; key 199 fs/btrfs/print-tree.c i, key.objectid, type, key.offset, key 292 fs/btrfs/print-tree.c key.objectid, key.offset); key 293 fs/btrfs/print-tree.c switch (key.objectid) { key 303 fs/btrfs/print-tree.c key.objectid, key.offset); key 304 fs/btrfs/print-tree.c switch (key.objectid) { key 328 fs/btrfs/print-tree.c struct btrfs_key key; key 347 fs/btrfs/print-tree.c btrfs_node_key_to_cpu(c, &key, i); key 349 fs/btrfs/print-tree.c i, key.objectid, key.type, key.offset, key 130 fs/btrfs/props.c struct btrfs_key key; key 149 fs/btrfs/props.c btrfs_item_key_to_cpu(leaf, &key, slot); key 150 fs/btrfs/props.c if (key.objectid != objectid) key 152 fs/btrfs/props.c if (key.type != BTRFS_XATTR_ITEM_KEY) key 155 fs/btrfs/props.c handlers = find_prop_handlers_by_hash(key.offset); key 411 fs/btrfs/props.c struct btrfs_key key; key 415 fs/btrfs/props.c key.objectid = BTRFS_FIRST_FREE_OBJECTID; key 416 fs/btrfs/props.c key.type = BTRFS_INODE_ITEM_KEY; key 417 fs/btrfs/props.c key.offset = 0; key 419 fs/btrfs/props.c parent_inode = btrfs_iget(sb, &key, parent_root, NULL); key 423 fs/btrfs/props.c child_inode = btrfs_iget(sb, &key, root, NULL); key 329 fs/btrfs/qgroup.c struct btrfs_key key; key 360 fs/btrfs/qgroup.c key.objectid = 0; key 361 fs/btrfs/qgroup.c key.type = 0; key 362 fs/btrfs/qgroup.c key.offset = 0; key 363 fs/btrfs/qgroup.c ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 1); key 453 fs/btrfs/qgroup.c key.objectid = 0; key 454 fs/btrfs/qgroup.c key.type = BTRFS_QGROUP_RELATION_KEY; key 455 fs/btrfs/qgroup.c key.offset = 0; key 456 fs/btrfs/qgroup.c ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 0); key 539 fs/btrfs/qgroup.c struct btrfs_key key; key 545 fs/btrfs/qgroup.c key.objectid = src; key 546 fs/btrfs/qgroup.c key.type = BTRFS_QGROUP_RELATION_KEY; key 547 fs/btrfs/qgroup.c key.offset = dst; key 549 fs/btrfs/qgroup.c ret = btrfs_insert_empty_item(trans, quota_root, path, &key, 0); key 563 fs/btrfs/qgroup.c struct btrfs_key key; key 569 fs/btrfs/qgroup.c key.objectid = src; key 570 fs/btrfs/qgroup.c key.type = BTRFS_QGROUP_RELATION_KEY; key 571 fs/btrfs/qgroup.c key.offset = dst; key 573 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, -1, 1); key 596 fs/btrfs/qgroup.c struct btrfs_key key; key 605 fs/btrfs/qgroup.c key.objectid = 0; key 606 fs/btrfs/qgroup.c key.type = BTRFS_QGROUP_INFO_KEY; key 607 fs/btrfs/qgroup.c key.offset = qgroupid; key 615 fs/btrfs/qgroup.c ret = btrfs_insert_empty_item(trans, quota_root, path, &key, key 633 fs/btrfs/qgroup.c key.type = BTRFS_QGROUP_LIMIT_KEY; key 634 fs/btrfs/qgroup.c ret = btrfs_insert_empty_item(trans, quota_root, path, &key, key 661 fs/btrfs/qgroup.c struct btrfs_key key; key 667 fs/btrfs/qgroup.c key.objectid = 0; key 668 fs/btrfs/qgroup.c key.type = BTRFS_QGROUP_INFO_KEY; key 669 fs/btrfs/qgroup.c key.offset = qgroupid; key 670 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, -1, 1); key 685 fs/btrfs/qgroup.c key.type = BTRFS_QGROUP_LIMIT_KEY; key 686 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, -1, 1); key 707 fs/btrfs/qgroup.c struct btrfs_key key; key 713 fs/btrfs/qgroup.c key.objectid = 0; key 714 fs/btrfs/qgroup.c key.type = BTRFS_QGROUP_LIMIT_KEY; key 715 fs/btrfs/qgroup.c key.offset = qgroup->qgroupid; key 721 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, 0, 1); key 750 fs/btrfs/qgroup.c struct btrfs_key key; key 759 fs/btrfs/qgroup.c key.objectid = 0; key 760 fs/btrfs/qgroup.c key.type = BTRFS_QGROUP_INFO_KEY; key 761 fs/btrfs/qgroup.c key.offset = qgroup->qgroupid; key 767 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, 0, 1); key 795 fs/btrfs/qgroup.c struct btrfs_key key; key 801 fs/btrfs/qgroup.c key.objectid = 0; key 802 fs/btrfs/qgroup.c key.type = BTRFS_QGROUP_STATUS_KEY; key 803 fs/btrfs/qgroup.c key.offset = 0; key 809 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, 0, 1); key 838 fs/btrfs/qgroup.c struct btrfs_key key; key 849 fs/btrfs/qgroup.c key.objectid = 0; key 850 fs/btrfs/qgroup.c key.offset = 0; key 851 fs/btrfs/qgroup.c key.type = 0; key 854 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); key 886 fs/btrfs/qgroup.c struct btrfs_key key; key 935 fs/btrfs/qgroup.c key.objectid = 0; key 936 fs/btrfs/qgroup.c key.type = BTRFS_QGROUP_STATUS_KEY; key 937 fs/btrfs/qgroup.c key.offset = 0; key 939 fs/btrfs/qgroup.c ret = btrfs_insert_empty_item(trans, quota_root, path, &key, key 958 fs/btrfs/qgroup.c key.objectid = 0; key 959 fs/btrfs/qgroup.c key.type = BTRFS_ROOT_REF_KEY; key 960 fs/btrfs/qgroup.c key.offset = 0; key 963 fs/btrfs/qgroup.c ret = btrfs_search_slot_for_read(tree_root, &key, path, 1, 0); key 1642 fs/btrfs/qgroup.c struct btrfs_key key; key 1651 fs/btrfs/qgroup.c btrfs_item_key_to_cpu(eb, &key, i); key 1653 fs/btrfs/qgroup.c if (key.type != BTRFS_EXTENT_DATA_KEY) key 1791 fs/btrfs/qgroup.c struct btrfs_key key; key 1810 fs/btrfs/qgroup.c btrfs_node_key_to_cpu(dst_path->nodes[dst_level], &key, 0); key 1812 fs/btrfs/qgroup.c btrfs_item_key_to_cpu(dst_path->nodes[dst_level], &key, 0); key 136 fs/btrfs/reada.c struct btrfs_key key; key 139 fs/btrfs/reada.c btrfs_node_key_to_cpu(eb, &key, i); key 161 fs/btrfs/reada.c key.objectid, key.type, key.offset, key 166 fs/btrfs/reada.c btrfs_comp_cpu_keys(&key, &rc->key_end) < 0 && key 251 fs/btrfs/reada.c start = cache->key.objectid; key 252 fs/btrfs/reada.c end = start + cache->key.offset - 1; key 428 fs/btrfs/ref-verify.c struct btrfs_path *path, struct btrfs_key *key, key 444 fs/btrfs/ref-verify.c if ((key->type == BTRFS_EXTENT_ITEM_KEY) && key 452 fs/btrfs/ref-verify.c if (key->type == BTRFS_METADATA_ITEM_KEY) key 453 fs/btrfs/ref-verify.c *tree_block_level = key->offset; key 465 fs/btrfs/ref-verify.c ret = add_tree_block(fs_info, offset, 0, key->objectid, key 469 fs/btrfs/ref-verify.c ret = add_tree_block(fs_info, 0, offset, key->objectid, key 475 fs/btrfs/ref-verify.c key->objectid, key->offset); key 481 fs/btrfs/ref-verify.c key->objectid, key->offset); key 504 fs/btrfs/ref-verify.c struct btrfs_key key; key 508 fs/btrfs/ref-verify.c btrfs_item_key_to_cpu(leaf, &key, i); key 509 fs/btrfs/ref-verify.c switch (key.type) { key 511 fs/btrfs/ref-verify.c *num_bytes = key.offset; key 514 fs/btrfs/ref-verify.c *bytenr = key.objectid; key 515 fs/btrfs/ref-verify.c ret = process_extent_item(fs_info, path, &key, i, key 519 fs/btrfs/ref-verify.c ret = add_tree_block(fs_info, key.offset, 0, key 520 fs/btrfs/ref-verify.c key.objectid, tree_block_level); key 523 fs/btrfs/ref-verify.c ret = add_tree_block(fs_info, 0, key.offset, key 524 fs/btrfs/ref-verify.c key.objectid, tree_block_level); key 536 fs/btrfs/ref-verify.c ret = add_shared_data_ref(fs_info, key.offset, count, key 134 fs/btrfs/relocation.c struct btrfs_key key; key 613 fs/btrfs/relocation.c struct btrfs_key key; key 615 fs/btrfs/relocation.c key.objectid = root_objectid; key 616 fs/btrfs/relocation.c key.type = BTRFS_ROOT_ITEM_KEY; key 618 fs/btrfs/relocation.c key.offset = 0; key 620 fs/btrfs/relocation.c key.offset = (u64)-1; key 622 fs/btrfs/relocation.c return btrfs_get_fs_root(fs_info, &key, false); key 629 fs/btrfs/relocation.c struct btrfs_key key; key 634 fs/btrfs/relocation.c btrfs_item_key_to_cpu(leaf, &key, slot); key 646 fs/btrfs/relocation.c if (key.type == BTRFS_EXTENT_ITEM_KEY && key 651 fs/btrfs/relocation.c if (key.type == BTRFS_METADATA_ITEM_KEY && key 657 fs/btrfs/relocation.c if (key.type == BTRFS_EXTENT_ITEM_KEY) { key 698 fs/btrfs/relocation.c struct btrfs_key key; key 730 fs/btrfs/relocation.c key.objectid = cur->bytenr; key 731 fs/btrfs/relocation.c key.type = BTRFS_METADATA_ITEM_KEY; key 732 fs/btrfs/relocation.c key.offset = (u64)-1; key 736 fs/btrfs/relocation.c ret = btrfs_search_slot(NULL, rc->extent_root, &key, path1, key 784 fs/btrfs/relocation.c btrfs_item_key_to_cpu(eb, &key, path1->slots[0]); key 785 fs/btrfs/relocation.c if (key.objectid != cur->bytenr) { key 790 fs/btrfs/relocation.c if (key.type == BTRFS_EXTENT_ITEM_KEY || key 791 fs/btrfs/relocation.c key.type == BTRFS_METADATA_ITEM_KEY) { key 810 fs/btrfs/relocation.c key.type = type; key 811 fs/btrfs/relocation.c key.offset = btrfs_extent_inline_ref_offset(eb, iref); key 813 fs/btrfs/relocation.c WARN_ON(key.type != BTRFS_TREE_BLOCK_REF_KEY && key 814 fs/btrfs/relocation.c key.type != BTRFS_SHARED_BLOCK_REF_KEY); key 822 fs/btrfs/relocation.c ((key.type == BTRFS_TREE_BLOCK_REF_KEY && key 823 fs/btrfs/relocation.c exist->owner == key.offset) || key 824 fs/btrfs/relocation.c (key.type == BTRFS_SHARED_BLOCK_REF_KEY && key 825 fs/btrfs/relocation.c exist->bytenr == key.offset))) { key 831 fs/btrfs/relocation.c if (key.type == BTRFS_SHARED_BLOCK_REF_KEY) { key 832 fs/btrfs/relocation.c if (key.objectid == key.offset) { key 848 fs/btrfs/relocation.c rb_node = tree_search(&cache->rb_root, key.offset); key 856 fs/btrfs/relocation.c upper->bytenr = key.offset; key 874 fs/btrfs/relocation.c } else if (unlikely(key.type == BTRFS_EXTENT_REF_V0_KEY)) { key 880 fs/btrfs/relocation.c } else if (key.type != BTRFS_TREE_BLOCK_REF_KEY) { key 889 fs/btrfs/relocation.c root = read_fs_root(rc->extent_root->fs_info, key.offset); key 1017 fs/btrfs/relocation.c ptr += btrfs_extent_inline_ref_size(key.type); key 1604 fs/btrfs/relocation.c if (bytenr >= block_group->key.objectid && key 1605 fs/btrfs/relocation.c bytenr < block_group->key.objectid + block_group->key.offset) key 1668 fs/btrfs/relocation.c struct btrfs_key key; key 1696 fs/btrfs/relocation.c btrfs_item_key_to_cpu(leaf, &key, i); key 1697 fs/btrfs/relocation.c if (key.type != BTRFS_EXTENT_DATA_KEY) key 1716 fs/btrfs/relocation.c inode = find_next_inode(root, key.objectid); key 1718 fs/btrfs/relocation.c } else if (inode && btrfs_ino(BTRFS_I(inode)) < key.objectid) { key 1720 fs/btrfs/relocation.c inode = find_next_inode(root, key.objectid); key 1722 fs/btrfs/relocation.c if (inode && btrfs_ino(BTRFS_I(inode)) == key.objectid) { key 1723 fs/btrfs/relocation.c end = key.offset + key 1725 fs/btrfs/relocation.c WARN_ON(!IS_ALIGNED(key.offset, key 1730 fs/btrfs/relocation.c key.offset, end); key 1735 fs/btrfs/relocation.c key.offset, end, 1); key 1737 fs/btrfs/relocation.c key.offset, end); key 1754 fs/btrfs/relocation.c key.offset -= btrfs_file_extent_offset(leaf, fi); key 1759 fs/btrfs/relocation.c key.objectid, key.offset); key 1770 fs/btrfs/relocation.c key.objectid, key.offset); key 1814 fs/btrfs/relocation.c struct btrfs_key key; key 1832 fs/btrfs/relocation.c btrfs_node_key_to_cpu(path->nodes[lowest_level], &key, slot); key 1863 fs/btrfs/relocation.c ret = btrfs_bin_search(parent, &key, level, &slot); key 1932 fs/btrfs/relocation.c btrfs_node_key_to_cpu(path->nodes[level], &key, key 1937 fs/btrfs/relocation.c ret = btrfs_search_slot(trans, src, &key, path, 0, 1); key 2178 fs/btrfs/relocation.c struct btrfs_key *key) key 2186 fs/btrfs/relocation.c btrfs_node_key_to_cpu(path->nodes[level], key, key 2268 fs/btrfs/relocation.c struct btrfs_key key; key 2296 fs/btrfs/relocation.c btrfs_disk_key_to_cpu(&key, &root_item->drop_progress); key 2301 fs/btrfs/relocation.c ret = btrfs_search_slot(NULL, reloc_root, &key, path, 0, 0); key 2310 fs/btrfs/relocation.c WARN_ON(memcmp(&key, &next_key, sizeof(key))); key 2344 fs/btrfs/relocation.c if (!find_next_key(path, level, &key) && key 2345 fs/btrfs/relocation.c btrfs_comp_cpu_keys(&next_key, &key) >= 0) { key 2358 fs/btrfs/relocation.c btrfs_node_key_to_cpu(path->nodes[level], &key, key 2382 fs/btrfs/relocation.c invalidate_extent_cache(root, &key, &next_key); key 2407 fs/btrfs/relocation.c invalidate_extent_cache(root, &key, &next_key); key 2795 fs/btrfs/relocation.c struct btrfs_key *key, key 2827 fs/btrfs/relocation.c ret = btrfs_bin_search(upper->eb, key, key 2842 fs/btrfs/relocation.c ret = btrfs_search_slot(trans, root, key, path, 0, 1); key 2866 fs/btrfs/relocation.c ret = btrfs_bin_search(upper->eb, key, upper->level, key 2960 fs/btrfs/relocation.c struct btrfs_key key; key 2962 fs/btrfs/relocation.c btrfs_node_key_to_cpu(node->eb, &key, 0); key 2963 fs/btrfs/relocation.c return do_relocation(trans, rc, node, &key, path, 0); key 3061 fs/btrfs/relocation.c eb = read_tree_block(fs_info, block->bytenr, block->key.offset, key 3070 fs/btrfs/relocation.c btrfs_item_key_to_cpu(eb, &block->key, 0); key 3072 fs/btrfs/relocation.c btrfs_node_key_to_cpu(eb, &block->key, 0); key 3084 fs/btrfs/relocation.c struct btrfs_key *key, key 3117 fs/btrfs/relocation.c ret = btrfs_search_slot(trans, root, key, path, 0, 1); key 3125 fs/btrfs/relocation.c ret = do_relocation(trans, rc, node, key, path, 1); key 3171 fs/btrfs/relocation.c node = build_backref_tree(rc, &block->key, key 3178 fs/btrfs/relocation.c ret = relocate_tree_block(trans, rc, node, &block->key, key 3492 fs/btrfs/relocation.c block->key.objectid = rc->extent_root->fs_info->nodesize; key 3493 fs/btrfs/relocation.c block->key.offset = generation; key 3513 fs/btrfs/relocation.c struct btrfs_key key; key 3527 fs/btrfs/relocation.c key.objectid = bytenr; key 3529 fs/btrfs/relocation.c key.type = BTRFS_METADATA_ITEM_KEY; key 3530 fs/btrfs/relocation.c key.offset = (u64)-1; key 3532 fs/btrfs/relocation.c key.type = BTRFS_EXTENT_ITEM_KEY; key 3533 fs/btrfs/relocation.c key.offset = blocksize; key 3538 fs/btrfs/relocation.c ret = btrfs_search_slot(NULL, rc->extent_root, &key, path, 0, 0); key 3545 fs/btrfs/relocation.c btrfs_item_key_to_cpu(path->nodes[0], &key, key 3547 fs/btrfs/relocation.c if (key.objectid == bytenr && key 3548 fs/btrfs/relocation.c (key.type == BTRFS_METADATA_ITEM_KEY || key 3549 fs/btrfs/relocation.c (key.type == BTRFS_EXTENT_ITEM_KEY && key 3550 fs/btrfs/relocation.c key.offset == blocksize))) key 3571 fs/btrfs/relocation.c ret = add_tree_block(rc, &key, path, blocks); key 3607 fs/btrfs/relocation.c struct btrfs_key key; key 3615 fs/btrfs/relocation.c key.objectid = ino; key 3616 fs/btrfs/relocation.c key.type = BTRFS_INODE_ITEM_KEY; key 3617 fs/btrfs/relocation.c key.offset = 0; key 3619 fs/btrfs/relocation.c inode = btrfs_iget(fs_info->sb, &key, root, NULL); key 3660 fs/btrfs/relocation.c struct btrfs_key key; key 3699 fs/btrfs/relocation.c key.objectid = ref_objectid; key 3700 fs/btrfs/relocation.c key.type = BTRFS_EXTENT_DATA_KEY; key 3702 fs/btrfs/relocation.c key.offset = 0; key 3704 fs/btrfs/relocation.c key.offset = ref_offset; key 3708 fs/btrfs/relocation.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 3759 fs/btrfs/relocation.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 3760 fs/btrfs/relocation.c if (WARN_ON(key.objectid != ref_objectid || key 3761 fs/btrfs/relocation.c key.type != BTRFS_EXTENT_DATA_KEY)) key 3775 fs/btrfs/relocation.c key.offset -= btrfs_file_extent_offset(leaf, fi); key 3776 fs/btrfs/relocation.c if (key.offset != ref_offset) key 3791 fs/btrfs/relocation.c btrfs_item_key_to_cpu(leaf, &block->key, 0); key 3822 fs/btrfs/relocation.c struct btrfs_key key; key 3839 fs/btrfs/relocation.c key.type = btrfs_get_extent_inline_ref_type(eb, iref, key 3841 fs/btrfs/relocation.c if (key.type == BTRFS_SHARED_DATA_REF_KEY) { key 3842 fs/btrfs/relocation.c key.offset = btrfs_extent_inline_ref_offset(eb, iref); key 3843 fs/btrfs/relocation.c ret = __add_tree_block(rc, key.offset, blocksize, key 3845 fs/btrfs/relocation.c } else if (key.type == BTRFS_EXTENT_DATA_REF_KEY) { key 3859 fs/btrfs/relocation.c ptr += btrfs_extent_inline_ref_size(key.type); key 3877 fs/btrfs/relocation.c btrfs_item_key_to_cpu(eb, &key, path->slots[0]); key 3878 fs/btrfs/relocation.c if (key.objectid != extent_key->objectid) key 3881 fs/btrfs/relocation.c if (key.type == BTRFS_SHARED_DATA_REF_KEY) { key 3882 fs/btrfs/relocation.c ret = __add_tree_block(rc, key.offset, blocksize, key 3884 fs/btrfs/relocation.c } else if (key.type == BTRFS_EXTENT_DATA_REF_KEY) { key 3889 fs/btrfs/relocation.c } else if (unlikely(key.type == BTRFS_EXTENT_REF_V0_KEY)) { key 3917 fs/btrfs/relocation.c struct btrfs_key key; key 3922 fs/btrfs/relocation.c last = rc->block_group->key.objectid + rc->block_group->key.offset; key 3930 fs/btrfs/relocation.c key.objectid = rc->search_start; key 3931 fs/btrfs/relocation.c key.type = BTRFS_EXTENT_ITEM_KEY; key 3932 fs/btrfs/relocation.c key.offset = 0; key 3936 fs/btrfs/relocation.c ret = btrfs_search_slot(NULL, rc->extent_root, &key, path, key 3949 fs/btrfs/relocation.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 3950 fs/btrfs/relocation.c if (key.objectid >= last) { key 3955 fs/btrfs/relocation.c if (key.type != BTRFS_EXTENT_ITEM_KEY && key 3956 fs/btrfs/relocation.c key.type != BTRFS_METADATA_ITEM_KEY) { key 3961 fs/btrfs/relocation.c if (key.type == BTRFS_EXTENT_ITEM_KEY && key 3962 fs/btrfs/relocation.c key.objectid + key.offset <= rc->search_start) { key 3967 fs/btrfs/relocation.c if (key.type == BTRFS_METADATA_ITEM_KEY && key 3968 fs/btrfs/relocation.c key.objectid + fs_info->nodesize <= key 3975 fs/btrfs/relocation.c key.objectid, &start, &end, key 3978 fs/btrfs/relocation.c if (ret == 0 && start <= key.objectid) { key 3982 fs/btrfs/relocation.c if (key.type == BTRFS_EXTENT_ITEM_KEY) key 3983 fs/btrfs/relocation.c rc->search_start = key.objectid + key.offset; key 3985 fs/btrfs/relocation.c rc->search_start = key.objectid + key 3987 fs/btrfs/relocation.c memcpy(extent_key, &key, sizeof(key)); key 4039 fs/btrfs/relocation.c rc->search_start = rc->block_group->key.objectid; key 4073 fs/btrfs/relocation.c struct btrfs_key key; key 4117 fs/btrfs/relocation.c ret = find_next_extent(rc, path, &key); key 4142 fs/btrfs/relocation.c ret = add_tree_block(rc, &key, path, &blocks); key 4145 fs/btrfs/relocation.c ret = add_data_references(rc, &key, path, &blocks); key 4163 fs/btrfs/relocation.c rc->search_start = key.objectid; key 4175 fs/btrfs/relocation.c &key, &rc->cluster); key 4277 fs/btrfs/relocation.c struct btrfs_key key; key 4296 fs/btrfs/relocation.c key.objectid = objectid; key 4297 fs/btrfs/relocation.c key.type = BTRFS_INODE_ITEM_KEY; key 4298 fs/btrfs/relocation.c key.offset = 0; key 4299 fs/btrfs/relocation.c inode = btrfs_iget(fs_info->sb, &key, root, NULL); key 4301 fs/btrfs/relocation.c BTRFS_I(inode)->index_cnt = group->key.objectid; key 4344 fs/btrfs/relocation.c block_group->key.objectid, buf); key 4417 fs/btrfs/relocation.c rc->block_group->key.objectid, key 4418 fs/btrfs/relocation.c rc->block_group->key.offset); key 4501 fs/btrfs/relocation.c struct btrfs_key key; key 4516 fs/btrfs/relocation.c key.objectid = BTRFS_TREE_RELOC_OBJECTID; key 4517 fs/btrfs/relocation.c key.type = BTRFS_ROOT_ITEM_KEY; key 4518 fs/btrfs/relocation.c key.offset = (u64)-1; key 4521 fs/btrfs/relocation.c ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, key 4533 fs/btrfs/relocation.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 4536 fs/btrfs/relocation.c if (key.objectid != BTRFS_TREE_RELOC_OBJECTID || key 4537 fs/btrfs/relocation.c key.type != BTRFS_ROOT_ITEM_KEY) key 4540 fs/btrfs/relocation.c reloc_root = btrfs_read_fs_root(root, &key); key 4565 fs/btrfs/relocation.c if (key.offset == 0) key 4568 fs/btrfs/relocation.c key.offset--; key 121 fs/btrfs/root-tree.c *root, struct btrfs_key *key, struct btrfs_root_item key 136 fs/btrfs/root-tree.c ret = btrfs_search_slot(trans, root, key, path, 0, 1); key 143 fs/btrfs/root-tree.c key->objectid, key->type, key->offset, key 162 fs/btrfs/root-tree.c ret = btrfs_search_slot(trans, root, key, path, key 176 fs/btrfs/root-tree.c key, sizeof(*item)); key 200 fs/btrfs/root-tree.c const struct btrfs_key *key, struct btrfs_root_item *item) key 206 fs/btrfs/root-tree.c return btrfs_insert_item(trans, root, key, item, sizeof(*item)); key 214 fs/btrfs/root-tree.c struct btrfs_key key; key 224 fs/btrfs/root-tree.c key.objectid = BTRFS_ORPHAN_OBJECTID; key 225 fs/btrfs/root-tree.c key.type = BTRFS_ORPHAN_ITEM_KEY; key 226 fs/btrfs/root-tree.c key.offset = 0; key 232 fs/btrfs/root-tree.c ret = btrfs_search_slot(NULL, tree_root, &key, path, 0, 0); key 248 fs/btrfs/root-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 251 fs/btrfs/root-tree.c if (key.objectid != BTRFS_ORPHAN_OBJECTID || key 252 fs/btrfs/root-tree.c key.type != BTRFS_ORPHAN_ITEM_KEY) key 255 fs/btrfs/root-tree.c root_key.objectid = key.offset; key 256 fs/btrfs/root-tree.c key.offset++; key 330 fs/btrfs/root-tree.c const struct btrfs_key *key) key 339 fs/btrfs/root-tree.c ret = btrfs_search_slot(trans, root, key, path, -1, 1); key 360 fs/btrfs/root-tree.c struct btrfs_key key; key 369 fs/btrfs/root-tree.c key.objectid = root_id; key 370 fs/btrfs/root-tree.c key.type = BTRFS_ROOT_BACKREF_KEY; key 371 fs/btrfs/root-tree.c key.offset = ref_id; key 373 fs/btrfs/root-tree.c ret = btrfs_search_slot(trans, tree_root, &key, path, -1, 1); key 396 fs/btrfs/root-tree.c if (key.type == BTRFS_ROOT_BACKREF_KEY) { key 398 fs/btrfs/root-tree.c key.objectid = ref_id; key 399 fs/btrfs/root-tree.c key.type = BTRFS_ROOT_REF_KEY; key 400 fs/btrfs/root-tree.c key.offset = root_id; key 429 fs/btrfs/root-tree.c struct btrfs_key key; key 440 fs/btrfs/root-tree.c key.objectid = root_id; key 441 fs/btrfs/root-tree.c key.type = BTRFS_ROOT_BACKREF_KEY; key 442 fs/btrfs/root-tree.c key.offset = ref_id; key 444 fs/btrfs/root-tree.c ret = btrfs_insert_empty_item(trans, tree_root, path, &key, key 461 fs/btrfs/root-tree.c if (key.type == BTRFS_ROOT_BACKREF_KEY) { key 463 fs/btrfs/root-tree.c key.objectid = ref_id; key 464 fs/btrfs/root-tree.c key.type = BTRFS_ROOT_REF_KEY; key 465 fs/btrfs/root-tree.c key.offset = root_id; key 407 fs/btrfs/scrub.c ret = div64_u64(bytenr - cache->key.objectid, cache->full_stripe_len) * key 408 fs/btrfs/scrub.c cache->full_stripe_len + cache->key.objectid; key 651 fs/btrfs/scrub.c struct btrfs_key key; key 665 fs/btrfs/scrub.c key.objectid = inum; key 666 fs/btrfs/scrub.c key.type = BTRFS_INODE_ITEM_KEY; key 667 fs/btrfs/scrub.c key.offset = 0; key 669 fs/btrfs/scrub.c ret = btrfs_search_slot(NULL, local_root, &key, swarn->path, 0, 0); key 2834 fs/btrfs/scrub.c struct btrfs_key key; key 2872 fs/btrfs/scrub.c key.type = BTRFS_METADATA_ITEM_KEY; key 2874 fs/btrfs/scrub.c key.type = BTRFS_EXTENT_ITEM_KEY; key 2875 fs/btrfs/scrub.c key.objectid = logic_start; key 2876 fs/btrfs/scrub.c key.offset = (u64)-1; key 2878 fs/btrfs/scrub.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 2888 fs/btrfs/scrub.c ret = btrfs_search_slot(NULL, root, &key, key 2911 fs/btrfs/scrub.c btrfs_item_key_to_cpu(l, &key, slot); key 2913 fs/btrfs/scrub.c if (key.type != BTRFS_EXTENT_ITEM_KEY && key 2914 fs/btrfs/scrub.c key.type != BTRFS_METADATA_ITEM_KEY) key 2917 fs/btrfs/scrub.c if (key.type == BTRFS_METADATA_ITEM_KEY) key 2920 fs/btrfs/scrub.c bytes = key.offset; key 2922 fs/btrfs/scrub.c if (key.objectid + bytes <= logic_start) key 2925 fs/btrfs/scrub.c if (key.objectid >= logic_end) { key 2930 fs/btrfs/scrub.c while (key.objectid >= logic_start + map->stripe_len) key 2939 fs/btrfs/scrub.c (key.objectid < logic_start || key 2940 fs/btrfs/scrub.c key.objectid + bytes > key 2944 fs/btrfs/scrub.c key.objectid, logic_start); key 2951 fs/btrfs/scrub.c extent_logical = key.objectid; key 3005 fs/btrfs/scrub.c key.objectid + bytes) { key 3013 fs/btrfs/scrub.c if (logic_start < key.objectid + bytes) { key 3067 fs/btrfs/scrub.c struct btrfs_key key; key 3146 fs/btrfs/scrub.c key.objectid = logical; key 3147 fs/btrfs/scrub.c key.type = BTRFS_EXTENT_ITEM_KEY; key 3148 fs/btrfs/scrub.c key.offset = (u64)0; key 3152 fs/btrfs/scrub.c reada1 = btrfs_reada_add(root, &key, &key_end); key 3154 fs/btrfs/scrub.c key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; key 3155 fs/btrfs/scrub.c key.type = BTRFS_EXTENT_CSUM_KEY; key 3156 fs/btrfs/scrub.c key.offset = logical; key 3160 fs/btrfs/scrub.c reada2 = btrfs_reada_add(csum_root, &key, &key_end); key 3222 fs/btrfs/scrub.c key.type = BTRFS_METADATA_ITEM_KEY; key 3224 fs/btrfs/scrub.c key.type = BTRFS_EXTENT_ITEM_KEY; key 3225 fs/btrfs/scrub.c key.objectid = logical; key 3226 fs/btrfs/scrub.c key.offset = (u64)-1; key 3228 fs/btrfs/scrub.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 3240 fs/btrfs/scrub.c ret = btrfs_search_slot(NULL, root, &key, key 3263 fs/btrfs/scrub.c btrfs_item_key_to_cpu(l, &key, slot); key 3265 fs/btrfs/scrub.c if (key.type != BTRFS_EXTENT_ITEM_KEY && key 3266 fs/btrfs/scrub.c key.type != BTRFS_METADATA_ITEM_KEY) key 3269 fs/btrfs/scrub.c if (key.type == BTRFS_METADATA_ITEM_KEY) key 3272 fs/btrfs/scrub.c bytes = key.offset; key 3274 fs/btrfs/scrub.c if (key.objectid + bytes <= logical) key 3277 fs/btrfs/scrub.c if (key.objectid >= logical + map->stripe_len) { key 3279 fs/btrfs/scrub.c if (key.objectid >= logic_end) key 3290 fs/btrfs/scrub.c (key.objectid < logical || key 3291 fs/btrfs/scrub.c key.objectid + bytes > key 3295 fs/btrfs/scrub.c key.objectid, logical); key 3303 fs/btrfs/scrub.c extent_logical = key.objectid; key 3347 fs/btrfs/scrub.c key.objectid + bytes) { key 3376 fs/btrfs/scrub.c if (logical < key.objectid + bytes) { key 3482 fs/btrfs/scrub.c struct btrfs_key key; key 3495 fs/btrfs/scrub.c key.objectid = scrub_dev->devid; key 3496 fs/btrfs/scrub.c key.offset = 0ull; key 3497 fs/btrfs/scrub.c key.type = BTRFS_DEV_EXTENT_KEY; key 3500 fs/btrfs/scrub.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 3532 fs/btrfs/scrub.c if (found_key.offset < key.offset) key 3586 fs/btrfs/scrub.c cache->key.objectid, key 3587 fs/btrfs/scrub.c cache->key.offset); key 3701 fs/btrfs/scrub.c key.offset = found_key.offset + length; key 282 fs/btrfs/send.c struct btrfs_key *key, key 830 fs/btrfs/send.c struct btrfs_key key; key 832 fs/btrfs/send.c key.objectid = ino; key 833 fs/btrfs/send.c key.type = BTRFS_INODE_ITEM_KEY; key 834 fs/btrfs/send.c key.offset = 0; key 835 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 1144 fs/btrfs/send.c struct btrfs_key key, found_key; key 1153 fs/btrfs/send.c key.objectid = ino; key 1154 fs/btrfs/send.c key.type = BTRFS_INODE_REF_KEY; key 1155 fs/btrfs/send.c key.offset = 0; key 1157 fs/btrfs/send.c ret = btrfs_search_slot_for_read(root, &key, p, 1, 0); key 1206 fs/btrfs/send.c static int __clone_root_cmp_bsearch(const void *key, const void *elt) key 1208 fs/btrfs/send.c u64 root = (u64)(uintptr_t)key; key 1483 fs/btrfs/send.c struct btrfs_key key; key 1494 fs/btrfs/send.c key.objectid = ino; key 1495 fs/btrfs/send.c key.type = BTRFS_EXTENT_DATA_KEY; key 1496 fs/btrfs/send.c key.offset = 0; key 1497 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 1707 fs/btrfs/send.c struct btrfs_key key; key 1720 fs/btrfs/send.c btrfs_dir_item_key_to_cpu(path->nodes[0], di, &key); key 1721 fs/btrfs/send.c if (key.type == BTRFS_ROOT_ITEM_KEY) { key 1725 fs/btrfs/send.c *found_inode = key.objectid; key 1741 fs/btrfs/send.c struct btrfs_key key; key 1751 fs/btrfs/send.c key.objectid = ino; key 1752 fs/btrfs/send.c key.type = BTRFS_INODE_REF_KEY; key 1753 fs/btrfs/send.c key.offset = 0; key 1755 fs/btrfs/send.c ret = btrfs_search_slot_for_read(root, &key, path, 1, 0); key 2349 fs/btrfs/send.c struct btrfs_key key; key 2365 fs/btrfs/send.c key.objectid = send_root->root_key.objectid; key 2366 fs/btrfs/send.c key.type = BTRFS_ROOT_BACKREF_KEY; key 2367 fs/btrfs/send.c key.offset = 0; key 2370 fs/btrfs/send.c &key, path, 1, 0); key 2379 fs/btrfs/send.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 2380 fs/btrfs/send.c if (key.type != BTRFS_ROOT_BACKREF_KEY || key 2381 fs/btrfs/send.c key.objectid != send_root->root_key.objectid) { key 2531 fs/btrfs/send.c struct btrfs_key key; key 2546 fs/btrfs/send.c key.objectid = ino; key 2547 fs/btrfs/send.c key.type = BTRFS_INODE_ITEM_KEY; key 2548 fs/btrfs/send.c key.offset = 0; key 2549 fs/btrfs/send.c ret = btrfs_search_slot(NULL, sctx->send_root, &key, path, 0, 0); key 2675 fs/btrfs/send.c struct btrfs_key key; key 2688 fs/btrfs/send.c key.objectid = dir; key 2689 fs/btrfs/send.c key.type = BTRFS_DIR_INDEX_KEY; key 2690 fs/btrfs/send.c key.offset = 0; key 2691 fs/btrfs/send.c ret = btrfs_search_slot(NULL, sctx->send_root, &key, path, 0, 0); key 2710 fs/btrfs/send.c if (found_key.objectid != key.objectid || key 2711 fs/btrfs/send.c found_key.type != key.type) { key 2934 fs/btrfs/send.c struct btrfs_key key; key 2950 fs/btrfs/send.c key.objectid = dir; key 2951 fs/btrfs/send.c key.type = BTRFS_DIR_INDEX_KEY; key 2952 fs/btrfs/send.c key.offset = 0; key 2956 fs/btrfs/send.c key.offset = odi->last_dir_index_offset; key 2958 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 2975 fs/btrfs/send.c if (found_key.objectid != key.objectid || key 2976 fs/btrfs/send.c found_key.type != key.type) key 3458 fs/btrfs/send.c struct btrfs_key key; key 3473 fs/btrfs/send.c key.objectid = parent_ref->dir; key 3474 fs/btrfs/send.c key.type = BTRFS_DIR_ITEM_KEY; key 3475 fs/btrfs/send.c key.offset = btrfs_name_hash(parent_ref->name, parent_ref->name_len); key 3477 fs/btrfs/send.c ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0); key 3586 fs/btrfs/send.c struct btrfs_key key; key 3601 fs/btrfs/send.c key.objectid = ino2; key 3602 fs/btrfs/send.c key.type = BTRFS_INODE_REF_KEY; key 3603 fs/btrfs/send.c key.offset = 0; key 3605 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 3624 fs/btrfs/send.c btrfs_item_key_to_cpu(leaf, &key, slot); key 3625 fs/btrfs/send.c if (key.objectid != ino2) key 3627 fs/btrfs/send.c if (key.type != BTRFS_INODE_REF_KEY && key 3628 fs/btrfs/send.c key.type != BTRFS_INODE_EXTREF_KEY) key 3636 fs/btrfs/send.c if (key.type == BTRFS_INODE_EXTREF_KEY) { key 3649 fs/btrfs/send.c parent = key.offset; key 4322 fs/btrfs/send.c struct btrfs_key *key, key 4334 fs/btrfs/send.c ret = iterate_inode_ref(root, path, key, 0, __find_iref, &ctx); key 4418 fs/btrfs/send.c struct btrfs_key key; key 4442 fs/btrfs/send.c key.objectid = sctx->cmp_key->objectid; key 4443 fs/btrfs/send.c key.type = BTRFS_INODE_REF_KEY; key 4444 fs/btrfs/send.c key.offset = 0; key 4445 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 4463 fs/btrfs/send.c if (found_key.objectid != key.objectid || key 4639 fs/btrfs/send.c struct btrfs_key *key, key 4737 fs/btrfs/send.c struct btrfs_key key; key 4748 fs/btrfs/send.c key.objectid = sctx->cmp_key->objectid; key 4749 fs/btrfs/send.c key.type = BTRFS_XATTR_ITEM_KEY; key 4750 fs/btrfs/send.c key.offset = 0; key 4751 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 4770 fs/btrfs/send.c if (found_key.objectid != key.objectid || key 4771 fs/btrfs/send.c found_key.type != key.type) { key 4795 fs/btrfs/send.c struct btrfs_key key; key 4801 fs/btrfs/send.c key.objectid = sctx->cur_ino; key 4802 fs/btrfs/send.c key.type = BTRFS_INODE_ITEM_KEY; key 4803 fs/btrfs/send.c key.offset = 0; key 4805 fs/btrfs/send.c inode = btrfs_iget(fs_info->sb, &key, root, NULL); key 5109 fs/btrfs/send.c struct btrfs_key key; key 5168 fs/btrfs/send.c key.objectid = clone_root->ino; key 5169 fs/btrfs/send.c key.type = BTRFS_EXTENT_DATA_KEY; key 5170 fs/btrfs/send.c key.offset = clone_root->offset; key 5171 fs/btrfs/send.c ret = btrfs_search_slot(NULL, clone_root->root, &key, path, 0, 0); key 5175 fs/btrfs/send.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0] - 1); key 5176 fs/btrfs/send.c if (key.objectid == clone_root->ino && key 5177 fs/btrfs/send.c key.type == BTRFS_EXTENT_DATA_KEY) key 5199 fs/btrfs/send.c btrfs_item_key_to_cpu(leaf, &key, slot); key 5205 fs/btrfs/send.c if (key.objectid != clone_root->ino || key 5206 fs/btrfs/send.c key.type != BTRFS_EXTENT_DATA_KEY) key 5218 fs/btrfs/send.c if (key.offset + ext_len <= clone_root->offset) key 5221 fs/btrfs/send.c if (key.offset > clone_root->offset) { key 5223 fs/btrfs/send.c u64 hole_len = key.offset - clone_root->offset; key 5239 fs/btrfs/send.c if (key.offset >= clone_root->offset + len) key 5242 fs/btrfs/send.c if (key.offset >= clone_src_i_size) key 5245 fs/btrfs/send.c if (key.offset + ext_len > clone_src_i_size) key 5246 fs/btrfs/send.c ext_len = clone_src_i_size - key.offset; key 5250 fs/btrfs/send.c clone_root->offset = key.offset; key 5334 fs/btrfs/send.c struct btrfs_key *key, key 5339 fs/btrfs/send.c u64 offset = key->offset; key 5391 fs/btrfs/send.c struct btrfs_key key; key 5448 fs/btrfs/send.c key.objectid = ekey->objectid; key 5449 fs/btrfs/send.c key.type = BTRFS_EXTENT_DATA_KEY; key 5450 fs/btrfs/send.c key.offset = ekey->offset; key 5451 fs/btrfs/send.c ret = btrfs_search_slot_for_read(sctx->parent_root, &key, path, 0, 0); key 5465 fs/btrfs/send.c if (found_key.objectid != key.objectid || key 5466 fs/btrfs/send.c found_key.type != key.type) { key 5475 fs/btrfs/send.c key = found_key; key 5476 fs/btrfs/send.c while (key.offset < ekey->offset + left_len) { key 5520 fs/btrfs/send.c if (key.offset < ekey->offset) { key 5522 fs/btrfs/send.c right_offset += ekey->offset - key.offset; key 5525 fs/btrfs/send.c left_offset_fixed += key.offset - ekey->offset; key 5549 fs/btrfs/send.c if (ret || found_key.objectid != key.objectid || key 5550 fs/btrfs/send.c found_key.type != key.type) { key 5551 fs/btrfs/send.c key.offset += right_len; key 5554 fs/btrfs/send.c if (found_key.offset != key.offset + right_len) { key 5558 fs/btrfs/send.c key = found_key; key 5565 fs/btrfs/send.c if (key.offset >= ekey->offset + left_len) key 5581 fs/btrfs/send.c struct btrfs_key key; key 5592 fs/btrfs/send.c key.objectid = sctx->cur_ino; key 5593 fs/btrfs/send.c key.type = BTRFS_EXTENT_DATA_KEY; key 5594 fs/btrfs/send.c key.offset = offset; key 5595 fs/btrfs/send.c ret = btrfs_search_slot_for_read(root, &key, path, 0, 1); key 5599 fs/btrfs/send.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 5600 fs/btrfs/send.c if (key.objectid != sctx->cur_ino || key.type != BTRFS_EXTENT_DATA_KEY) key 5608 fs/btrfs/send.c extent_end = ALIGN(key.offset + size, key 5611 fs/btrfs/send.c extent_end = key.offset + key 5625 fs/btrfs/send.c struct btrfs_key key; key 5634 fs/btrfs/send.c key.objectid = sctx->cur_ino; key 5635 fs/btrfs/send.c key.type = BTRFS_EXTENT_DATA_KEY; key 5636 fs/btrfs/send.c key.offset = search_start; key 5637 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 5658 fs/btrfs/send.c btrfs_item_key_to_cpu(leaf, &key, slot); key 5659 fs/btrfs/send.c if (key.objectid < sctx->cur_ino || key 5660 fs/btrfs/send.c key.type < BTRFS_EXTENT_DATA_KEY) key 5662 fs/btrfs/send.c if (key.objectid > sctx->cur_ino || key 5663 fs/btrfs/send.c key.type > BTRFS_EXTENT_DATA_KEY || key 5664 fs/btrfs/send.c key.offset >= end) key 5672 fs/btrfs/send.c extent_end = ALIGN(key.offset + size, key 5675 fs/btrfs/send.c extent_end = key.offset + key 5696 fs/btrfs/send.c struct btrfs_key *key) key 5703 fs/btrfs/send.c if (sctx->cur_ino != key->objectid || !need_send_hole(sctx)) key 5707 fs/btrfs/send.c ret = get_last_extent(sctx, key->offset - 1); key 5717 fs/btrfs/send.c extent_end = ALIGN(key->offset + size, key 5720 fs/btrfs/send.c extent_end = key->offset + key 5725 fs/btrfs/send.c sctx->cur_inode_last_extent < key->offset) { key 5733 fs/btrfs/send.c ret = get_last_extent(sctx, key->offset - 1); key 5738 fs/btrfs/send.c if (sctx->cur_inode_last_extent < key->offset) { key 5741 fs/btrfs/send.c key->offset); key 5745 fs/btrfs/send.c ret = send_hole(sctx, key->offset); key 5755 fs/btrfs/send.c struct btrfs_key *key) key 5764 fs/btrfs/send.c ret = is_extent_unchanged(sctx, path, key); key 5799 fs/btrfs/send.c ret = find_extent_clone(sctx, path, key->objectid, key->offset, key 5804 fs/btrfs/send.c ret = send_write_or_clone(sctx, path, key, found_clone); key 5808 fs/btrfs/send.c ret = maybe_send_hole(sctx, path, key); key 5818 fs/btrfs/send.c struct btrfs_key key; key 5828 fs/btrfs/send.c key.objectid = sctx->cmp_key->objectid; key 5829 fs/btrfs/send.c key.type = BTRFS_EXTENT_DATA_KEY; key 5830 fs/btrfs/send.c key.offset = 0; key 5831 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 5852 fs/btrfs/send.c if (found_key.objectid != key.objectid || key 5853 fs/btrfs/send.c found_key.type != key.type) { key 6051 fs/btrfs/send.c struct btrfs_key key; key 6059 fs/btrfs/send.c key.objectid = sctx->cur_ino; key 6060 fs/btrfs/send.c key.type = BTRFS_INODE_REF_KEY; key 6061 fs/btrfs/send.c key.offset = 0; key 6062 fs/btrfs/send.c ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0); key 6082 fs/btrfs/send.c btrfs_item_key_to_cpu(eb, &key, slot); key 6083 fs/btrfs/send.c if (key.objectid != sctx->cur_ino) key 6085 fs/btrfs/send.c if (key.type != BTRFS_INODE_REF_KEY && key 6086 fs/btrfs/send.c key.type != BTRFS_INODE_EXTREF_KEY) key 6089 fs/btrfs/send.c ret = iterate_inode_ref(sctx->parent_root, path, &key, 1, key 6120 fs/btrfs/send.c struct btrfs_key *key = sctx->cmp_key; key 6126 fs/btrfs/send.c sctx->cur_ino = key->objectid; key 6407 fs/btrfs/send.c struct btrfs_key *key) key 6419 fs/btrfs/send.c if (key->type == BTRFS_INODE_REF_KEY) { key 6420 fs/btrfs/send.c dirid = key->offset; key 6452 fs/btrfs/send.c struct btrfs_key *key, key 6460 fs/btrfs/send.c if (key->type == BTRFS_INODE_REF_KEY || key 6461 fs/btrfs/send.c key->type == BTRFS_INODE_EXTREF_KEY) { key 6462 fs/btrfs/send.c ret = compare_refs(sctx, left_path, key); key 6467 fs/btrfs/send.c } else if (key->type == BTRFS_EXTENT_DATA_KEY) { key 6468 fs/btrfs/send.c return maybe_send_hole(sctx, left_path, key); key 6478 fs/btrfs/send.c sctx->cmp_key = key; key 6485 fs/btrfs/send.c if (key->objectid == BTRFS_FREE_INO_OBJECTID || key 6486 fs/btrfs/send.c key->objectid == BTRFS_FREE_SPACE_OBJECTID) key 6489 fs/btrfs/send.c if (key->type == BTRFS_INODE_ITEM_KEY) { key 6492 fs/btrfs/send.c if (key->type == BTRFS_INODE_REF_KEY || key 6493 fs/btrfs/send.c key->type == BTRFS_INODE_EXTREF_KEY) key 6495 fs/btrfs/send.c else if (key->type == BTRFS_XATTR_ITEM_KEY) key 6497 fs/btrfs/send.c else if (key->type == BTRFS_EXTENT_DATA_KEY) key 6509 fs/btrfs/send.c struct btrfs_key key; key 6518 fs/btrfs/send.c key.objectid = BTRFS_FIRST_FREE_OBJECTID; key 6519 fs/btrfs/send.c key.type = BTRFS_INODE_ITEM_KEY; key 6520 fs/btrfs/send.c key.offset = 0; key 6522 fs/btrfs/send.c ret = btrfs_search_slot_for_read(send_root, &key, path, 1, 0); key 6531 fs/btrfs/send.c btrfs_item_key_to_cpu(eb, &key, slot); key 6533 fs/btrfs/send.c ret = changed_cb(path, NULL, &key, key 6603 fs/btrfs/send.c struct btrfs_key *key) key 6614 fs/btrfs/send.c btrfs_item_key_to_cpu(path->nodes[*level], key, key 6617 fs/btrfs/send.c btrfs_node_key_to_cpu(path->nodes[*level], key, key 7053 fs/btrfs/send.c struct btrfs_key key; key 7183 fs/btrfs/send.c key.objectid = clone_sources_tmp[i]; key 7184 fs/btrfs/send.c key.type = BTRFS_ROOT_ITEM_KEY; key 7185 fs/btrfs/send.c key.offset = (u64)-1; key 7189 fs/btrfs/send.c clone_root = btrfs_read_fs_root_no_name(fs_info, &key); key 7222 fs/btrfs/send.c key.objectid = arg->parent_root; key 7223 fs/btrfs/send.c key.type = BTRFS_ROOT_ITEM_KEY; key 7224 fs/btrfs/send.c key.offset = (u64)-1; key 7228 fs/btrfs/send.c sctx->parent_root = btrfs_read_fs_root_no_name(fs_info, &key); key 304 fs/btrfs/space-info.c cache->key.objectid, cache->key.offset, key 177 fs/btrfs/struct-funcs.c struct btrfs_key_ptr, key, disk_key); key 1015 fs/btrfs/super.c struct btrfs_key key; key 1042 fs/btrfs/super.c key.objectid = subvol_objectid; key 1043 fs/btrfs/super.c key.type = BTRFS_ROOT_BACKREF_KEY; key 1044 fs/btrfs/super.c key.offset = (u64)-1; key 1046 fs/btrfs/super.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 1060 fs/btrfs/super.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 1061 fs/btrfs/super.c subvol_objectid = key.offset; key 1077 fs/btrfs/super.c key.objectid = subvol_objectid; key 1078 fs/btrfs/super.c key.type = BTRFS_ROOT_ITEM_KEY; key 1079 fs/btrfs/super.c key.offset = (u64)-1; key 1080 fs/btrfs/super.c fs_root = btrfs_read_fs_root_no_name(fs_info, &key); key 1091 fs/btrfs/super.c key.objectid = dirid; key 1092 fs/btrfs/super.c key.type = BTRFS_INODE_REF_KEY; key 1093 fs/btrfs/super.c key.offset = (u64)-1; key 1095 fs/btrfs/super.c ret = btrfs_search_slot(NULL, fs_root, &key, path, 0, 0); key 1109 fs/btrfs/super.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 1110 fs/btrfs/super.c dirid = key.offset; key 1191 fs/btrfs/super.c struct btrfs_key key; key 1219 fs/btrfs/super.c key.objectid = BTRFS_FIRST_FREE_OBJECTID; key 1220 fs/btrfs/super.c key.type = BTRFS_INODE_ITEM_KEY; key 1221 fs/btrfs/super.c key.offset = 0; key 1222 fs/btrfs/super.c inode = btrfs_iget(sb, &key, fs_info->fs_root, NULL); key 382 fs/btrfs/sysfs.c val += block_group->key.offset; key 220 fs/btrfs/tests/btrfs-tests.c cache->key.objectid = 0; key 221 fs/btrfs/tests/btrfs-tests.c cache->key.offset = length; key 222 fs/btrfs/tests/btrfs-tests.c cache->key.type = BTRFS_BLOCK_GROUP_ITEM_KEY; key 25 fs/btrfs/tests/extent-buffer-tests.c struct btrfs_key key; key 59 fs/btrfs/tests/extent-buffer-tests.c key.objectid = 0; key 60 fs/btrfs/tests/extent-buffer-tests.c key.type = BTRFS_EXTENT_CSUM_KEY; key 61 fs/btrfs/tests/extent-buffer-tests.c key.offset = 0; key 63 fs/btrfs/tests/extent-buffer-tests.c setup_items_for_insert(root, path, &key, &value_len, value_len, key 69 fs/btrfs/tests/extent-buffer-tests.c key.offset = 3; key 76 fs/btrfs/tests/extent-buffer-tests.c ret = btrfs_split_item(NULL, root, path, &key, 17); key 86 fs/btrfs/tests/extent-buffer-tests.c btrfs_item_key_to_cpu(eb, &key, 0); key 87 fs/btrfs/tests/extent-buffer-tests.c if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || key 88 fs/btrfs/tests/extent-buffer-tests.c key.offset != 0) { key 111 fs/btrfs/tests/extent-buffer-tests.c btrfs_item_key_to_cpu(eb, &key, 1); key 112 fs/btrfs/tests/extent-buffer-tests.c if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || key 113 fs/btrfs/tests/extent-buffer-tests.c key.offset != 3) { key 135 fs/btrfs/tests/extent-buffer-tests.c key.offset = 1; key 137 fs/btrfs/tests/extent-buffer-tests.c ret = btrfs_split_item(NULL, root, path, &key, 4); key 143 fs/btrfs/tests/extent-buffer-tests.c btrfs_item_key_to_cpu(eb, &key, 0); key 144 fs/btrfs/tests/extent-buffer-tests.c if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || key 145 fs/btrfs/tests/extent-buffer-tests.c key.offset != 0) { key 167 fs/btrfs/tests/extent-buffer-tests.c btrfs_item_key_to_cpu(eb, &key, 1); key 168 fs/btrfs/tests/extent-buffer-tests.c if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || key 169 fs/btrfs/tests/extent-buffer-tests.c key.offset != 1) { key 191 fs/btrfs/tests/extent-buffer-tests.c btrfs_item_key_to_cpu(eb, &key, 2); key 192 fs/btrfs/tests/extent-buffer-tests.c if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || key 193 fs/btrfs/tests/extent-buffer-tests.c key.offset != 3) { key 27 fs/btrfs/tests/free-space-tree-tests.c struct btrfs_key key; key 51 fs/btrfs/tests/free-space-tree-tests.c end = cache->key.objectid + cache->key.offset; key 54 fs/btrfs/tests/free-space-tree-tests.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 55 fs/btrfs/tests/free-space-tree-tests.c if (key.type != BTRFS_FREE_SPACE_BITMAP_KEY) key 57 fs/btrfs/tests/free-space-tree-tests.c offset = key.objectid; key 58 fs/btrfs/tests/free-space-tree-tests.c while (offset < key.objectid + key.offset) { key 90 fs/btrfs/tests/free-space-tree-tests.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 91 fs/btrfs/tests/free-space-tree-tests.c if (key.type != BTRFS_FREE_SPACE_EXTENT_KEY || key 92 fs/btrfs/tests/free-space-tree-tests.c key.objectid != extents[i].start || key 93 fs/btrfs/tests/free-space-tree-tests.c key.offset != extents[i].length) key 158 fs/btrfs/tests/free-space-tree-tests.c {cache->key.objectid, cache->key.offset}, key 175 fs/btrfs/tests/free-space-tree-tests.c cache->key.objectid, key 176 fs/btrfs/tests/free-space-tree-tests.c cache->key.offset); key 193 fs/btrfs/tests/free-space-tree-tests.c {cache->key.objectid + alignment, key 194 fs/btrfs/tests/free-space-tree-tests.c cache->key.offset - alignment}, key 199 fs/btrfs/tests/free-space-tree-tests.c cache->key.objectid, alignment); key 217 fs/btrfs/tests/free-space-tree-tests.c {cache->key.objectid, cache->key.offset - alignment}, key 222 fs/btrfs/tests/free-space-tree-tests.c cache->key.objectid + key 223 fs/btrfs/tests/free-space-tree-tests.c cache->key.offset - alignment, key 241 fs/btrfs/tests/free-space-tree-tests.c {cache->key.objectid, alignment}, key 242 fs/btrfs/tests/free-space-tree-tests.c {cache->key.objectid + 2 * alignment, key 243 fs/btrfs/tests/free-space-tree-tests.c cache->key.offset - 2 * alignment}, key 248 fs/btrfs/tests/free-space-tree-tests.c cache->key.objectid + alignment, key 266 fs/btrfs/tests/free-space-tree-tests.c {cache->key.objectid, 2 * alignment}, key 271 fs/btrfs/tests/free-space-tree-tests.c cache->key.objectid, key 272 fs/btrfs/tests/free-space-tree-tests.c cache->key.offset); key 278 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid, key 286 fs/btrfs/tests/free-space-tree-tests.c cache->key.objectid + alignment, key 304 fs/btrfs/tests/free-space-tree-tests.c {cache->key.objectid + alignment, 2 * alignment}, key 309 fs/btrfs/tests/free-space-tree-tests.c cache->key.objectid, key 310 fs/btrfs/tests/free-space-tree-tests.c cache->key.offset); key 317 fs/btrfs/tests/free-space-tree-tests.c cache->key.objectid + 2 * alignment, key 325 fs/btrfs/tests/free-space-tree-tests.c cache->key.objectid + alignment, key 343 fs/btrfs/tests/free-space-tree-tests.c {cache->key.objectid, 3 * alignment}, key 348 fs/btrfs/tests/free-space-tree-tests.c cache->key.objectid, key 349 fs/btrfs/tests/free-space-tree-tests.c cache->key.offset); key 355 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid, key 363 fs/btrfs/tests/free-space-tree-tests.c cache->key.objectid + 2 * alignment, key 371 fs/btrfs/tests/free-space-tree-tests.c cache->key.objectid + alignment, key 389 fs/btrfs/tests/free-space-tree-tests.c {cache->key.objectid, alignment}, key 390 fs/btrfs/tests/free-space-tree-tests.c {cache->key.objectid + 2 * alignment, alignment}, key 391 fs/btrfs/tests/free-space-tree-tests.c {cache->key.objectid + 4 * alignment, alignment}, key 396 fs/btrfs/tests/free-space-tree-tests.c cache->key.objectid, key 397 fs/btrfs/tests/free-space-tree-tests.c cache->key.offset); key 403 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid, key 411 fs/btrfs/tests/free-space-tree-tests.c cache->key.objectid + 4 * alignment, key 419 fs/btrfs/tests/free-space-tree-tests.c cache->key.objectid + 2 * alignment, key 22 fs/btrfs/tests/inode-tests.c struct btrfs_key key; key 32 fs/btrfs/tests/inode-tests.c key.objectid = BTRFS_FIRST_FREE_OBJECTID; key 33 fs/btrfs/tests/inode-tests.c key.type = BTRFS_EXTENT_DATA_KEY; key 34 fs/btrfs/tests/inode-tests.c key.offset = start; key 36 fs/btrfs/tests/inode-tests.c setup_items_for_insert(root, &path, &key, &value_len, value_len, key 55 fs/btrfs/tests/inode-tests.c struct btrfs_key key; key 63 fs/btrfs/tests/inode-tests.c key.objectid = BTRFS_INODE_ITEM_KEY; key 64 fs/btrfs/tests/inode-tests.c key.type = BTRFS_INODE_ITEM_KEY; key 65 fs/btrfs/tests/inode-tests.c key.offset = 0; key 67 fs/btrfs/tests/inode-tests.c setup_items_for_insert(root, &path, &key, &value_len, value_len, key 73 fs/btrfs/tests/qgroup-tests.c struct btrfs_key key; key 79 fs/btrfs/tests/qgroup-tests.c key.objectid = bytenr; key 80 fs/btrfs/tests/qgroup-tests.c key.type = BTRFS_EXTENT_ITEM_KEY; key 81 fs/btrfs/tests/qgroup-tests.c key.offset = num_bytes; key 90 fs/btrfs/tests/qgroup-tests.c ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); key 103 fs/btrfs/tests/qgroup-tests.c key.objectid = bytenr; key 105 fs/btrfs/tests/qgroup-tests.c key.type = BTRFS_SHARED_BLOCK_REF_KEY; key 106 fs/btrfs/tests/qgroup-tests.c key.offset = parent; key 108 fs/btrfs/tests/qgroup-tests.c key.type = BTRFS_TREE_BLOCK_REF_KEY; key 109 fs/btrfs/tests/qgroup-tests.c key.offset = root_objectid; key 112 fs/btrfs/tests/qgroup-tests.c ret = btrfs_insert_empty_item(&trans, root, path, &key, 0); key 123 fs/btrfs/tests/qgroup-tests.c struct btrfs_key key; key 129 fs/btrfs/tests/qgroup-tests.c key.objectid = bytenr; key 130 fs/btrfs/tests/qgroup-tests.c key.type = BTRFS_EXTENT_ITEM_KEY; key 131 fs/btrfs/tests/qgroup-tests.c key.offset = num_bytes; key 140 fs/btrfs/tests/qgroup-tests.c ret = btrfs_search_slot(&trans, root, &key, path, -1, 1); key 157 fs/btrfs/tests/qgroup-tests.c struct btrfs_key key; key 163 fs/btrfs/tests/qgroup-tests.c key.objectid = bytenr; key 164 fs/btrfs/tests/qgroup-tests.c key.type = BTRFS_EXTENT_ITEM_KEY; key 165 fs/btrfs/tests/qgroup-tests.c key.offset = num_bytes; key 174 fs/btrfs/tests/qgroup-tests.c ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); key 187 fs/btrfs/tests/qgroup-tests.c key.objectid = bytenr; key 189 fs/btrfs/tests/qgroup-tests.c key.type = BTRFS_SHARED_BLOCK_REF_KEY; key 190 fs/btrfs/tests/qgroup-tests.c key.offset = parent; key 192 fs/btrfs/tests/qgroup-tests.c key.type = BTRFS_TREE_BLOCK_REF_KEY; key 193 fs/btrfs/tests/qgroup-tests.c key.offset = root_objectid; key 196 fs/btrfs/tests/qgroup-tests.c ret = btrfs_search_slot(&trans, root, &key, path, -1, 1); key 1409 fs/btrfs/transaction.c struct btrfs_key key; key 1456 fs/btrfs/transaction.c key.objectid = objectid; key 1457 fs/btrfs/transaction.c key.offset = (u64)-1; key 1458 fs/btrfs/transaction.c key.type = BTRFS_ROOT_ITEM_KEY; key 1561 fs/btrfs/transaction.c key.offset = trans->transid; key 1562 fs/btrfs/transaction.c ret = btrfs_insert_root(trans, tree_root, &key, new_root_item); key 1582 fs/btrfs/transaction.c key.offset = (u64)-1; key 1583 fs/btrfs/transaction.c pending->snap = btrfs_read_fs_root_no_name(fs_info, &key); key 1615 fs/btrfs/transaction.c &key, BTRFS_FT_DIR, index); key 78 fs/btrfs/tree-checker.c struct btrfs_key key; key 82 fs/btrfs/tree-checker.c btrfs_item_key_to_cpu(eb, &key, slot); key 92 fs/btrfs/tree-checker.c key.objectid, key.offset, &vaf); key 111 fs/btrfs/tree-checker.c struct btrfs_key *key, key 119 fs/btrfs/tree-checker.c end = ALIGN(key->offset + len, leaf->fs_info->sectorsize); key 122 fs/btrfs/tree-checker.c end = key->offset + len; key 128 fs/btrfs/tree-checker.c struct btrfs_key *key, int slot, key 137 fs/btrfs/tree-checker.c if (!IS_ALIGNED(key->offset, sectorsize)) { key 140 fs/btrfs/tree-checker.c key->offset, sectorsize); key 173 fs/btrfs/tree-checker.c if (key->offset) { key 176 fs/btrfs/tree-checker.c key->offset); key 213 fs/btrfs/tree-checker.c key->offset, &extent_end)) { key 216 fs/btrfs/tree-checker.c key->offset, key 226 fs/btrfs/tree-checker.c prev_key->objectid == key->objectid && key 234 fs/btrfs/tree-checker.c if (prev_end > key->offset) { key 237 fs/btrfs/tree-checker.c prev_end, key->offset); key 245 fs/btrfs/tree-checker.c static int check_csum_item(struct extent_buffer *leaf, struct btrfs_key *key, key 252 fs/btrfs/tree-checker.c if (key->objectid != BTRFS_EXTENT_CSUM_OBJECTID) { key 255 fs/btrfs/tree-checker.c key->objectid, BTRFS_EXTENT_CSUM_OBJECTID); key 258 fs/btrfs/tree-checker.c if (!IS_ALIGNED(key->offset, sectorsize)) { key 261 fs/btrfs/tree-checker.c key->offset, sectorsize); key 277 fs/btrfs/tree-checker.c if (prev_csum_end > key->offset) { key 280 fs/btrfs/tree-checker.c prev_csum_end, key->offset); key 297 fs/btrfs/tree-checker.c struct btrfs_key key; key 301 fs/btrfs/tree-checker.c btrfs_item_key_to_cpu(eb, &key, slot); key 311 fs/btrfs/tree-checker.c key.objectid, &vaf); key 316 fs/btrfs/tree-checker.c struct btrfs_key *key, int slot) key 349 fs/btrfs/tree-checker.c if (key->type == BTRFS_XATTR_ITEM_KEY && key 357 fs/btrfs/tree-checker.c key->type != BTRFS_XATTR_ITEM_KEY) { key 405 fs/btrfs/tree-checker.c if (key->type == BTRFS_DIR_ITEM_KEY || key 406 fs/btrfs/tree-checker.c key->type == BTRFS_XATTR_ITEM_KEY) { key 412 fs/btrfs/tree-checker.c if (key->offset != name_hash) { key 415 fs/btrfs/tree-checker.c name_hash, key->offset); key 431 fs/btrfs/tree-checker.c struct btrfs_key key; key 435 fs/btrfs/tree-checker.c btrfs_item_key_to_cpu(eb, &key, slot); key 445 fs/btrfs/tree-checker.c key.objectid, key.offset, &vaf); key 450 fs/btrfs/tree-checker.c struct btrfs_key *key, int slot) key 461 fs/btrfs/tree-checker.c if (key->offset == 0) { key 485 fs/btrfs/tree-checker.c if (btrfs_block_group_used(&bgi) > key->offset) { key 488 fs/btrfs/tree-checker.c btrfs_block_group_used(&bgi), key->offset); key 682 fs/btrfs/tree-checker.c struct btrfs_key key; key 686 fs/btrfs/tree-checker.c btrfs_item_key_to_cpu(eb, &key, slot); key 696 fs/btrfs/tree-checker.c key.objectid, &vaf); key 701 fs/btrfs/tree-checker.c struct btrfs_key *key, int slot) key 705 fs/btrfs/tree-checker.c if (key->objectid != BTRFS_DEV_ITEMS_OBJECTID) { key 708 fs/btrfs/tree-checker.c key->objectid, BTRFS_DEV_ITEMS_OBJECTID); key 712 fs/btrfs/tree-checker.c if (btrfs_device_id(leaf, ditem) != key->offset) { key 715 fs/btrfs/tree-checker.c key->offset, btrfs_device_id(leaf, ditem)); key 744 fs/btrfs/tree-checker.c struct btrfs_key *key, int slot) key 752 fs/btrfs/tree-checker.c if ((key->objectid < BTRFS_FIRST_FREE_OBJECTID || key 753 fs/btrfs/tree-checker.c key->objectid > BTRFS_LAST_FREE_OBJECTID) && key 754 fs/btrfs/tree-checker.c key->objectid != BTRFS_ROOT_TREE_DIR_OBJECTID && key 755 fs/btrfs/tree-checker.c key->objectid != BTRFS_FREE_INO_OBJECTID) { key 758 fs/btrfs/tree-checker.c key->objectid, BTRFS_ROOT_TREE_DIR_OBJECTID, key 764 fs/btrfs/tree-checker.c if (key->offset != 0) { key 767 fs/btrfs/tree-checker.c key->offset); key 830 fs/btrfs/tree-checker.c static int check_root_item(struct extent_buffer *leaf, struct btrfs_key *key, key 839 fs/btrfs/tree-checker.c if (key->objectid == 0) { key 849 fs/btrfs/tree-checker.c if (key->objectid == BTRFS_TREE_RELOC_OBJECTID && key->offset == 0) { key 924 fs/btrfs/tree-checker.c struct btrfs_key key; key 930 fs/btrfs/tree-checker.c btrfs_item_key_to_cpu(eb, &key, slot); key 931 fs/btrfs/tree-checker.c bytenr = key.objectid; key 932 fs/btrfs/tree-checker.c if (key.type == BTRFS_METADATA_ITEM_KEY || key 933 fs/btrfs/tree-checker.c key.type == BTRFS_TREE_BLOCK_REF_KEY || key 934 fs/btrfs/tree-checker.c key.type == BTRFS_SHARED_BLOCK_REF_KEY) key 937 fs/btrfs/tree-checker.c len = key.offset; key 951 fs/btrfs/tree-checker.c struct btrfs_key *key, int slot) key 964 fs/btrfs/tree-checker.c if (key->type == BTRFS_METADATA_ITEM_KEY && key 971 fs/btrfs/tree-checker.c if (!IS_ALIGNED(key->objectid, fs_info->sectorsize)) { key 974 fs/btrfs/tree-checker.c key->objectid, fs_info->sectorsize); key 979 fs/btrfs/tree-checker.c if (key->type == BTRFS_METADATA_ITEM_KEY && key 980 fs/btrfs/tree-checker.c key->offset >= BTRFS_MAX_LEVEL) { key 983 fs/btrfs/tree-checker.c key->offset, BTRFS_MAX_LEVEL - 1); key 1037 fs/btrfs/tree-checker.c if (key->type == BTRFS_EXTENT_ITEM_KEY && key 1038 fs/btrfs/tree-checker.c key->offset != fs_info->nodesize) { key 1041 fs/btrfs/tree-checker.c key->offset, fs_info->nodesize); key 1045 fs/btrfs/tree-checker.c if (key->type != BTRFS_EXTENT_ITEM_KEY) { key 1048 fs/btrfs/tree-checker.c key->type, BTRFS_EXTENT_ITEM_KEY); key 1051 fs/btrfs/tree-checker.c if (!IS_ALIGNED(key->offset, fs_info->sectorsize)) { key 1054 fs/btrfs/tree-checker.c key->offset, fs_info->sectorsize); key 1061 fs/btrfs/tree-checker.c if (is_tree_block && key->type != BTRFS_METADATA_ITEM_KEY) { key 1166 fs/btrfs/tree-checker.c struct btrfs_key *key, int slot) key 1170 fs/btrfs/tree-checker.c if (key->type == BTRFS_SHARED_DATA_REF_KEY) key 1177 fs/btrfs/tree-checker.c expect_item_size, key->type); key 1180 fs/btrfs/tree-checker.c if (!IS_ALIGNED(key->objectid, leaf->fs_info->sectorsize)) { key 1183 fs/btrfs/tree-checker.c key->objectid, leaf->fs_info->sectorsize); key 1186 fs/btrfs/tree-checker.c if (key->type != BTRFS_TREE_BLOCK_REF_KEY && key 1187 fs/btrfs/tree-checker.c !IS_ALIGNED(key->offset, leaf->fs_info->sectorsize)) { key 1190 fs/btrfs/tree-checker.c key->offset, leaf->fs_info->sectorsize); key 1197 fs/btrfs/tree-checker.c struct btrfs_key *key, int slot) key 1207 fs/btrfs/tree-checker.c sizeof(*dref), key->type); key 1209 fs/btrfs/tree-checker.c if (!IS_ALIGNED(key->objectid, leaf->fs_info->sectorsize)) { key 1212 fs/btrfs/tree-checker.c key->objectid, leaf->fs_info->sectorsize); key 1226 fs/btrfs/tree-checker.c if (hash != key->offset) { key 1229 fs/btrfs/tree-checker.c hash, key->offset); key 1245 fs/btrfs/tree-checker.c struct btrfs_key *key, int slot, key 1251 fs/btrfs/tree-checker.c switch (key->type) { key 1253 fs/btrfs/tree-checker.c ret = check_extent_data_item(leaf, key, slot, prev_key); key 1256 fs/btrfs/tree-checker.c ret = check_csum_item(leaf, key, slot, prev_key); key 1261 fs/btrfs/tree-checker.c ret = check_dir_item(leaf, key, slot); key 1264 fs/btrfs/tree-checker.c ret = check_block_group_item(leaf, key, slot); key 1268 fs/btrfs/tree-checker.c ret = btrfs_check_chunk_valid(leaf, chunk, key->offset); key 1271 fs/btrfs/tree-checker.c ret = check_dev_item(leaf, key, slot); key 1274 fs/btrfs/tree-checker.c ret = check_inode_item(leaf, key, slot); key 1277 fs/btrfs/tree-checker.c ret = check_root_item(leaf, key, slot); key 1281 fs/btrfs/tree-checker.c ret = check_extent_item(leaf, key, slot); key 1286 fs/btrfs/tree-checker.c ret = check_simple_keyed_refs(leaf, key, slot); key 1289 fs/btrfs/tree-checker.c ret = check_extent_data_ref(leaf, key, slot); key 1300 fs/btrfs/tree-checker.c struct btrfs_key key; key 1361 fs/btrfs/tree-checker.c btrfs_item_key_to_cpu(leaf, &key, slot); key 1364 fs/btrfs/tree-checker.c if (btrfs_comp_cpu_keys(&prev_key, &key) >= 0) { key 1368 fs/btrfs/tree-checker.c prev_key.offset, key.objectid, key.type, key 1369 fs/btrfs/tree-checker.c key.offset); key 1421 fs/btrfs/tree-checker.c ret = check_leaf_item(leaf, &key, slot, &prev_key); key 1426 fs/btrfs/tree-checker.c prev_key.objectid = key.objectid; key 1427 fs/btrfs/tree-checker.c prev_key.type = key.type; key 1428 fs/btrfs/tree-checker.c prev_key.offset = key.offset; key 1449 fs/btrfs/tree-checker.c struct btrfs_key key, next_key; key 1472 fs/btrfs/tree-checker.c btrfs_node_key_to_cpu(node, &key, slot); key 1489 fs/btrfs/tree-checker.c if (btrfs_comp_cpu_keys(&key, &next_key) >= 0) { key 1492 fs/btrfs/tree-checker.c key.objectid, key.type, key.offset, key 23 fs/btrfs/tree-defrag.c struct btrfs_key key; key 63 fs/btrfs/tree-defrag.c memset(&key, 0, sizeof(key)); key 65 fs/btrfs/tree-defrag.c memcpy(&key, &root->defrag_progress, sizeof(key)); key 70 fs/btrfs/tree-defrag.c ret = btrfs_search_forward(root, &key, path, BTRFS_OLDEST_GENERATION); key 84 fs/btrfs/tree-defrag.c wret = btrfs_search_slot(trans, root, &key, path, 0, 1); key 118 fs/btrfs/tree-defrag.c next_key_ret = btrfs_find_next_key(root, path, &key, 1, key 121 fs/btrfs/tree-defrag.c memcpy(&root->defrag_progress, &key, sizeof(key)); key 346 fs/btrfs/tree-log.c struct btrfs_key *key) key 355 fs/btrfs/tree-log.c bool inode_item = key->type == BTRFS_INODE_ITEM_KEY; key 364 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, key, path, 0, 0); key 459 fs/btrfs/tree-log.c key, item_size); key 486 fs/btrfs/tree-log.c if (key->type == BTRFS_INODE_ITEM_KEY && ret == -EEXIST) { key 535 fs/btrfs/tree-log.c if (key->type == BTRFS_INODE_ITEM_KEY) { key 556 fs/btrfs/tree-log.c struct btrfs_key key; key 559 fs/btrfs/tree-log.c key.objectid = objectid; key 560 fs/btrfs/tree-log.c key.type = BTRFS_INODE_ITEM_KEY; key 561 fs/btrfs/tree-log.c key.offset = 0; key 562 fs/btrfs/tree-log.c inode = btrfs_iget(root->fs_info->sb, &key, root, NULL); key 584 fs/btrfs/tree-log.c struct btrfs_key *key) key 589 fs/btrfs/tree-log.c u64 start = key->offset; key 620 fs/btrfs/tree-log.c inode = read_one_inode(root, key->objectid); key 677 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, root, path, key, key 689 fs/btrfs/tree-log.c offset = key->offset - btrfs_file_extent_offset(eb, item); key 724 fs/btrfs/tree-log.c key->objectid, offset); key 735 fs/btrfs/tree-log.c key->objectid, offset, &ins); key 828 fs/btrfs/tree-log.c ret = overwrite_item(trans, root, path, eb, slot, key); key 944 fs/btrfs/tree-log.c struct btrfs_key *key, key 962 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, log, key, path, 0, 0); key 968 fs/btrfs/tree-log.c if (key->type == BTRFS_INODE_EXTREF_KEY) { key 1234 fs/btrfs/tree-log.c struct btrfs_key *key) key 1243 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, key, path, 0, 0); key 1259 fs/btrfs/tree-log.c if (key->type == BTRFS_INODE_EXTREF_KEY) { key 1263 fs/btrfs/tree-log.c parent_id = key->offset; key 1270 fs/btrfs/tree-log.c if (key->type == BTRFS_INODE_EXTREF_KEY) key 1299 fs/btrfs/tree-log.c if (key->type == BTRFS_INODE_EXTREF_KEY) key 1314 fs/btrfs/tree-log.c struct btrfs_key key; key 1323 fs/btrfs/tree-log.c key.objectid = btrfs_ino(BTRFS_I(inode)); key 1324 fs/btrfs/tree-log.c key.type = ref_type; key 1325 fs/btrfs/tree-log.c if (key.type == BTRFS_INODE_REF_KEY) key 1326 fs/btrfs/tree-log.c key.offset = parent_id; key 1328 fs/btrfs/tree-log.c key.offset = btrfs_extref_hash(parent_id, name, namelen); key 1330 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, BTRFS_I(inode)->root, &key, path, 0, 0); key 1337 fs/btrfs/tree-log.c if (key.type == BTRFS_INODE_EXTREF_KEY) key 1354 fs/btrfs/tree-log.c struct btrfs_key key; key 1379 fs/btrfs/tree-log.c btrfs_dir_item_key_to_cpu(path->nodes[0], dir_item, &key); key 1381 fs/btrfs/tree-log.c other_inode = read_one_inode(root, key.objectid); key 1421 fs/btrfs/tree-log.c struct btrfs_key *key) key 1440 fs/btrfs/tree-log.c if (key->type == BTRFS_INODE_EXTREF_KEY) { key 1449 fs/btrfs/tree-log.c parent_objectid = key->offset; key 1451 fs/btrfs/tree-log.c inode_objectid = key->objectid; key 1527 fs/btrfs/tree-log.c ret = btrfs_inode_ref_exists(inode, dir, key->type, key 1572 fs/btrfs/tree-log.c key); key 1577 fs/btrfs/tree-log.c ret = overwrite_item(trans, root, path, eb, slot, key); key 1646 fs/btrfs/tree-log.c struct btrfs_key key; key 1653 fs/btrfs/tree-log.c key.objectid = ino; key 1654 fs/btrfs/tree-log.c key.type = BTRFS_INODE_REF_KEY; key 1655 fs/btrfs/tree-log.c key.offset = (u64)-1; key 1658 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 1667 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &key, key 1669 fs/btrfs/tree-log.c if (key.objectid != ino || key 1670 fs/btrfs/tree-log.c key.type != BTRFS_INODE_REF_KEY) key 1685 fs/btrfs/tree-log.c if (key.offset == 0) key 1691 fs/btrfs/tree-log.c key.offset--; key 1762 fs/btrfs/tree-log.c struct btrfs_key key; key 1765 fs/btrfs/tree-log.c key.objectid = BTRFS_TREE_LOG_FIXUP_OBJECTID; key 1766 fs/btrfs/tree-log.c key.type = BTRFS_ORPHAN_ITEM_KEY; key 1767 fs/btrfs/tree-log.c key.offset = (u64)-1; key 1769 fs/btrfs/tree-log.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); key 1779 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 1780 fs/btrfs/tree-log.c if (key.objectid != BTRFS_TREE_LOG_FIXUP_OBJECTID || key 1781 fs/btrfs/tree-log.c key.type != BTRFS_ORPHAN_ITEM_KEY) key 1789 fs/btrfs/tree-log.c inode = read_one_inode(root, key.offset); key 1803 fs/btrfs/tree-log.c key.offset = (u64)-1; key 1822 fs/btrfs/tree-log.c struct btrfs_key key; key 1830 fs/btrfs/tree-log.c key.objectid = BTRFS_TREE_LOG_FIXUP_OBJECTID; key 1831 fs/btrfs/tree-log.c key.type = BTRFS_ORPHAN_ITEM_KEY; key 1832 fs/btrfs/tree-log.c key.offset = objectid; key 1834 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); key 1933 fs/btrfs/tree-log.c struct btrfs_key *key) key 1944 fs/btrfs/tree-log.c bool update_size = (key->type == BTRFS_DIR_INDEX_KEY); key 1947 fs/btrfs/tree-log.c dir = read_one_inode(root, key->objectid); key 1970 fs/btrfs/tree-log.c if (key->type == BTRFS_DIR_ITEM_KEY) { key 1971 fs/btrfs/tree-log.c dst_di = btrfs_lookup_dir_item(trans, root, path, key->objectid, key 1973 fs/btrfs/tree-log.c } else if (key->type == BTRFS_DIR_INDEX_KEY) { key 1975 fs/btrfs/tree-log.c key->objectid, key 1976 fs/btrfs/tree-log.c key->offset, name, key 1987 fs/btrfs/tree-log.c if (key->type != BTRFS_DIR_INDEX_KEY) key 2013 fs/btrfs/tree-log.c if (key->type == BTRFS_DIR_INDEX_KEY) key 2029 fs/btrfs/tree-log.c key->objectid, log_key.objectid)) { key 2036 fs/btrfs/tree-log.c ret = insert_one_name(trans, root, key->objectid, key->offset, key 2057 fs/btrfs/tree-log.c struct btrfs_key *key) key 2072 fs/btrfs/tree-log.c ret = replay_one_name(trans, root, path, eb, di, key); key 2144 fs/btrfs/tree-log.c struct btrfs_key key; key 2153 fs/btrfs/tree-log.c key.objectid = dirid; key 2154 fs/btrfs/tree-log.c key.type = key_type; key 2155 fs/btrfs/tree-log.c key.offset = *start_ret; key 2157 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 2166 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 2168 fs/btrfs/tree-log.c if (key.type != key_type || key.objectid != dirid) { key 2176 fs/btrfs/tree-log.c if (*start_ret >= key.offset && *start_ret <= found_end) { key 2178 fs/btrfs/tree-log.c *start_ret = key.offset; key 2193 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); key 2195 fs/btrfs/tree-log.c if (key.type != key_type || key.objectid != dirid) { key 2202 fs/btrfs/tree-log.c *start_ret = key.offset; key 2344 fs/btrfs/tree-log.c struct btrfs_key key; key 2350 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &key, i); key 2351 fs/btrfs/tree-log.c if (key.objectid != ino || key.type != BTRFS_XATTR_ITEM_KEY) { key 2392 fs/btrfs/tree-log.c search_key = key; key 2541 fs/btrfs/tree-log.c struct btrfs_key key; key 2560 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(eb, &key, i); key 2563 fs/btrfs/tree-log.c if (key.type == BTRFS_INODE_ITEM_KEY && key 2585 fs/btrfs/tree-log.c path, key.objectid); key 2591 fs/btrfs/tree-log.c root, log, path, key.objectid, 0); key 2596 fs/btrfs/tree-log.c eb, i, &key); key 2612 fs/btrfs/tree-log.c inode = read_one_inode(root, key.objectid); key 2632 fs/btrfs/tree-log.c path, key.objectid); key 2640 fs/btrfs/tree-log.c if (key.type == BTRFS_DIR_INDEX_KEY && key 2643 fs/btrfs/tree-log.c eb, i, &key); key 2652 fs/btrfs/tree-log.c if (key.type == BTRFS_XATTR_ITEM_KEY) { key 2654 fs/btrfs/tree-log.c eb, i, &key); key 2657 fs/btrfs/tree-log.c } else if (key.type == BTRFS_INODE_REF_KEY || key 2658 fs/btrfs/tree-log.c key.type == BTRFS_INODE_EXTREF_KEY) { key 2660 fs/btrfs/tree-log.c eb, i, &key); key 2664 fs/btrfs/tree-log.c } else if (key.type == BTRFS_EXTENT_DATA_KEY) { key 2666 fs/btrfs/tree-log.c eb, i, &key); key 2669 fs/btrfs/tree-log.c } else if (key.type == BTRFS_DIR_ITEM_KEY) { key 2671 fs/btrfs/tree-log.c eb, i, &key); key 3452 fs/btrfs/tree-log.c struct btrfs_key key; key 3454 fs/btrfs/tree-log.c key.objectid = dir_ino; key 3455 fs/btrfs/tree-log.c key.offset = 0; key 3456 fs/btrfs/tree-log.c key.type = BTRFS_INODE_ITEM_KEY; key 3459 fs/btrfs/tree-log.c ret = btrfs_search_slot(trans, log, &key, path, 0, 1); key 3540 fs/btrfs/tree-log.c struct btrfs_key key; key 3543 fs/btrfs/tree-log.c key.objectid = dirid; key 3544 fs/btrfs/tree-log.c key.offset = first_offset; key 3546 fs/btrfs/tree-log.c key.type = BTRFS_DIR_LOG_ITEM_KEY; key 3548 fs/btrfs/tree-log.c key.type = BTRFS_DIR_LOG_INDEX_KEY; key 3549 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, log, path, &key, sizeof(*item)); key 3809 fs/btrfs/tree-log.c struct btrfs_key key; key 3813 fs/btrfs/tree-log.c key.objectid = objectid; key 3814 fs/btrfs/tree-log.c key.type = max_key_type; key 3815 fs/btrfs/tree-log.c key.offset = (u64)-1; key 3818 fs/btrfs/tree-log.c ret = btrfs_search_slot(trans, log, &key, path, -1, 1); key 4152 fs/btrfs/tree-log.c struct btrfs_key key; key 4169 fs/btrfs/tree-log.c key.objectid = btrfs_ino(inode); key 4170 fs/btrfs/tree-log.c key.type = BTRFS_EXTENT_DATA_KEY; key 4171 fs/btrfs/tree-log.c key.offset = em->start; key 4173 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, log, path, &key, key 4240 fs/btrfs/tree-log.c struct btrfs_key key; key 4255 fs/btrfs/tree-log.c key.objectid = ino; key 4256 fs/btrfs/tree-log.c key.type = BTRFS_EXTENT_DATA_KEY; key 4257 fs/btrfs/tree-log.c key.offset = i_size; key 4258 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 4285 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(leaf, &key, slot); key 4286 fs/btrfs/tree-log.c extent_end = key.offset + key 4318 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(leaf, &key, slot); key 4319 fs/btrfs/tree-log.c if (key.objectid > ino) key 4321 fs/btrfs/tree-log.c if (WARN_ON_ONCE(key.objectid < ino) || key 4322 fs/btrfs/tree-log.c key.type < BTRFS_EXTENT_DATA_KEY || key 4323 fs/btrfs/tree-log.c key.offset < i_size) { key 4470 fs/btrfs/tree-log.c struct btrfs_key key; key 4473 fs/btrfs/tree-log.c key.objectid = btrfs_ino(inode); key 4474 fs/btrfs/tree-log.c key.type = BTRFS_INODE_ITEM_KEY; key 4475 fs/btrfs/tree-log.c key.offset = 0; key 4477 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, log, &key, path, 0, 0); key 4523 fs/btrfs/tree-log.c struct btrfs_key key; key 4528 fs/btrfs/tree-log.c key.objectid = ino; key 4529 fs/btrfs/tree-log.c key.type = BTRFS_XATTR_ITEM_KEY; key 4530 fs/btrfs/tree-log.c key.offset = 0; key 4532 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 4557 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(leaf, &key, slot); key 4558 fs/btrfs/tree-log.c if (key.objectid != ino || key.type != BTRFS_XATTR_ITEM_KEY) key 4592 fs/btrfs/tree-log.c struct btrfs_key key; key 4601 fs/btrfs/tree-log.c key.objectid = ino; key 4602 fs/btrfs/tree-log.c key.type = BTRFS_EXTENT_DATA_KEY; key 4603 fs/btrfs/tree-log.c key.offset = 0; key 4605 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 4625 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 4626 fs/btrfs/tree-log.c if (key.objectid != ino || key.type != BTRFS_EXTENT_DATA_KEY) key 4630 fs/btrfs/tree-log.c if (prev_extent_end < key.offset) { key 4631 fs/btrfs/tree-log.c const u64 hole_len = key.offset - prev_extent_end; key 4653 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 4666 fs/btrfs/tree-log.c prev_extent_end = ALIGN(key.offset + len, key 4670 fs/btrfs/tree-log.c prev_extent_end = key.offset + len; key 4737 fs/btrfs/tree-log.c const struct btrfs_key *key, key 4762 fs/btrfs/tree-log.c if (key->type == BTRFS_INODE_REF_KEY) { key 4766 fs/btrfs/tree-log.c parent = key->offset; key 4802 fs/btrfs/tree-log.c if (di_key.objectid != key->objectid) { key 4853 fs/btrfs/tree-log.c struct btrfs_key key; key 4867 fs/btrfs/tree-log.c key.objectid = ino; key 4868 fs/btrfs/tree-log.c key.type = BTRFS_INODE_ITEM_KEY; key 4869 fs/btrfs/tree-log.c key.offset = 0; key 4870 fs/btrfs/tree-log.c inode = btrfs_iget(fs_info->sb, &key, root, NULL); key 4879 fs/btrfs/tree-log.c key.objectid = parent; key 4880 fs/btrfs/tree-log.c inode = btrfs_iget(fs_info->sb, &key, root, key 4952 fs/btrfs/tree-log.c key.objectid = ino; key 4953 fs/btrfs/tree-log.c key.type = BTRFS_INODE_REF_KEY; key 4954 fs/btrfs/tree-log.c key.offset = 0; key 4955 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 4978 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(leaf, &key, slot); key 4979 fs/btrfs/tree-log.c if (key.objectid != ino || key 4980 fs/btrfs/tree-log.c (key.type != BTRFS_INODE_REF_KEY && key 4981 fs/btrfs/tree-log.c key.type != BTRFS_INODE_EXTREF_KEY)) { key 4986 fs/btrfs/tree-log.c ret = btrfs_check_ref_name_override(leaf, slot, &key, key 5682 fs/btrfs/tree-log.c struct btrfs_key key; key 5692 fs/btrfs/tree-log.c key.objectid = ino; key 5693 fs/btrfs/tree-log.c key.type = BTRFS_INODE_REF_KEY; key 5694 fs/btrfs/tree-log.c key.offset = 0; key 5695 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 5715 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(leaf, &key, slot); key 5717 fs/btrfs/tree-log.c if (key.objectid != ino || key.type > BTRFS_INODE_EXTREF_KEY) key 5729 fs/btrfs/tree-log.c if (key.type == BTRFS_INODE_EXTREF_KEY) { key 5740 fs/btrfs/tree-log.c inode_key.objectid = key.offset; key 6162 fs/btrfs/tree-log.c struct btrfs_key key; key 6195 fs/btrfs/tree-log.c key.objectid = BTRFS_TREE_LOG_OBJECTID; key 6196 fs/btrfs/tree-log.c key.offset = (u64)-1; key 6197 fs/btrfs/tree-log.c key.type = BTRFS_ROOT_ITEM_KEY; key 6200 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, log_root_tree, &key, path, 0, 0); key 6296 fs/btrfs/tree-log.c key.offset = found_key.offset - 1; key 14 fs/btrfs/uuid-tree.c static void btrfs_uuid_to_key(u8 *uuid, u8 type, struct btrfs_key *key) key 16 fs/btrfs/uuid-tree.c key->type = type; key 17 fs/btrfs/uuid-tree.c key->objectid = get_unaligned_le64(uuid); key 18 fs/btrfs/uuid-tree.c key->offset = get_unaligned_le64(uuid + sizeof(u64)); key 31 fs/btrfs/uuid-tree.c struct btrfs_key key; key 44 fs/btrfs/uuid-tree.c btrfs_uuid_to_key(uuid, type, &key); key 45 fs/btrfs/uuid-tree.c ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0); key 89 fs/btrfs/uuid-tree.c struct btrfs_key key; key 104 fs/btrfs/uuid-tree.c btrfs_uuid_to_key(uuid, type, &key); key 112 fs/btrfs/uuid-tree.c ret = btrfs_insert_empty_item(trans, uuid_root, path, &key, key 132 fs/btrfs/uuid-tree.c ret, (unsigned long long)key.objectid, key 133 fs/btrfs/uuid-tree.c (unsigned long long)key.offset, type); key 154 fs/btrfs/uuid-tree.c struct btrfs_key key; key 168 fs/btrfs/uuid-tree.c btrfs_uuid_to_key(uuid, type, &key); key 176 fs/btrfs/uuid-tree.c ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1); key 254 fs/btrfs/uuid-tree.c struct btrfs_key key; key 268 fs/btrfs/uuid-tree.c key.objectid = 0; key 269 fs/btrfs/uuid-tree.c key.type = 0; key 270 fs/btrfs/uuid-tree.c key.offset = 0; key 273 fs/btrfs/uuid-tree.c ret = btrfs_search_forward(root, &key, path, BTRFS_OLDEST_GENERATION); key 284 fs/btrfs/uuid-tree.c btrfs_item_key_to_cpu(leaf, &key, slot); key 286 fs/btrfs/uuid-tree.c if (key.type != BTRFS_UUID_KEY_SUBVOL && key 287 fs/btrfs/uuid-tree.c key.type != BTRFS_UUID_KEY_RECEIVED_SUBVOL) key 303 fs/btrfs/uuid-tree.c put_unaligned_le64(key.objectid, uuid); key 304 fs/btrfs/uuid-tree.c put_unaligned_le64(key.offset, uuid + sizeof(u64)); key 308 fs/btrfs/uuid-tree.c ret = check_func(fs_info, uuid, key.type, subid_cpu); key 313 fs/btrfs/uuid-tree.c ret = btrfs_uuid_iter_rem(root, uuid, key.type, key 327 fs/btrfs/uuid-tree.c key.offset++; key 1603 fs/btrfs/volumes.c struct btrfs_key key; key 1640 fs/btrfs/volumes.c key.objectid = device->devid; key 1641 fs/btrfs/volumes.c key.offset = search_start; key 1642 fs/btrfs/volumes.c key.type = BTRFS_DEV_EXTENT_KEY; key 1644 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 1648 fs/btrfs/volumes.c ret = btrfs_previous_item(root, path, key.objectid, key.type); key 1665 fs/btrfs/volumes.c btrfs_item_key_to_cpu(l, &key, slot); key 1667 fs/btrfs/volumes.c if (key.objectid < device->devid) key 1670 fs/btrfs/volumes.c if (key.objectid > device->devid) key 1673 fs/btrfs/volumes.c if (key.type != BTRFS_DEV_EXTENT_KEY) key 1676 fs/btrfs/volumes.c if (key.offset > search_start) { key 1677 fs/btrfs/volumes.c hole_size = key.offset - search_start; key 1685 fs/btrfs/volumes.c if (key.offset >= search_start) key 1686 fs/btrfs/volumes.c hole_size = key.offset - search_start; key 1712 fs/btrfs/volumes.c extent_end = key.offset + btrfs_dev_extent_length(l, key 1769 fs/btrfs/volumes.c struct btrfs_key key; key 1778 fs/btrfs/volumes.c key.objectid = device->devid; key 1779 fs/btrfs/volumes.c key.offset = start; key 1780 fs/btrfs/volumes.c key.type = BTRFS_DEV_EXTENT_KEY; key 1782 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); key 1784 fs/btrfs/volumes.c ret = btrfs_previous_item(root, path, key.objectid, key 1794 fs/btrfs/volumes.c key = found_key; key 1830 fs/btrfs/volumes.c struct btrfs_key key; key 1838 fs/btrfs/volumes.c key.objectid = device->devid; key 1839 fs/btrfs/volumes.c key.offset = start; key 1840 fs/btrfs/volumes.c key.type = BTRFS_DEV_EXTENT_KEY; key 1841 fs/btrfs/volumes.c ret = btrfs_insert_empty_item(trans, root, path, &key, key 1885 fs/btrfs/volumes.c struct btrfs_key key; key 1893 fs/btrfs/volumes.c key.objectid = BTRFS_DEV_ITEMS_OBJECTID; key 1894 fs/btrfs/volumes.c key.type = BTRFS_DEV_ITEM_KEY; key 1895 fs/btrfs/volumes.c key.offset = (u64)-1; key 1897 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, fs_info->chunk_root, &key, path, 0, 0); key 1935 fs/btrfs/volumes.c struct btrfs_key key; key 1942 fs/btrfs/volumes.c key.objectid = BTRFS_DEV_ITEMS_OBJECTID; key 1943 fs/btrfs/volumes.c key.type = BTRFS_DEV_ITEM_KEY; key 1944 fs/btrfs/volumes.c key.offset = device->devid; key 1947 fs/btrfs/volumes.c &key, sizeof(*dev_item)); key 2002 fs/btrfs/volumes.c struct btrfs_key key; key 2014 fs/btrfs/volumes.c key.objectid = BTRFS_DEV_ITEMS_OBJECTID; key 2015 fs/btrfs/volumes.c key.type = BTRFS_DEV_ITEM_KEY; key 2016 fs/btrfs/volumes.c key.offset = device->devid; key 2018 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); key 2528 fs/btrfs/volumes.c struct btrfs_key key; key 2538 fs/btrfs/volumes.c key.objectid = BTRFS_DEV_ITEMS_OBJECTID; key 2539 fs/btrfs/volumes.c key.offset = 0; key 2540 fs/btrfs/volumes.c key.type = BTRFS_DEV_ITEM_KEY; key 2543 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); key 2556 fs/btrfs/volumes.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 2561 fs/btrfs/volumes.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); key 2562 fs/btrfs/volumes.c if (key.objectid != BTRFS_DEV_ITEMS_OBJECTID || key 2563 fs/btrfs/volumes.c key.type != BTRFS_DEV_ITEM_KEY) key 2818 fs/btrfs/volumes.c struct btrfs_key key; key 2824 fs/btrfs/volumes.c key.objectid = BTRFS_DEV_ITEMS_OBJECTID; key 2825 fs/btrfs/volumes.c key.type = BTRFS_DEV_ITEM_KEY; key 2826 fs/btrfs/volumes.c key.offset = device->devid; key 2828 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); key 2900 fs/btrfs/volumes.c struct btrfs_key key; key 2906 fs/btrfs/volumes.c key.objectid = BTRFS_FIRST_CHUNK_TREE_OBJECTID; key 2907 fs/btrfs/volumes.c key.offset = chunk_offset; key 2908 fs/btrfs/volumes.c key.type = BTRFS_CHUNK_ITEM_KEY; key 2910 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); key 2940 fs/btrfs/volumes.c struct btrfs_key key; key 2950 fs/btrfs/volumes.c btrfs_disk_key_to_cpu(&key, disk_key); key 2954 fs/btrfs/volumes.c if (key.type == BTRFS_CHUNK_ITEM_KEY) { key 2962 fs/btrfs/volumes.c if (key.objectid == BTRFS_FIRST_CHUNK_TREE_OBJECTID && key 2963 fs/btrfs/volumes.c key.offset == chunk_offset) { key 3149 fs/btrfs/volumes.c struct btrfs_key key; key 3161 fs/btrfs/volumes.c key.objectid = BTRFS_FIRST_CHUNK_TREE_OBJECTID; key 3162 fs/btrfs/volumes.c key.offset = (u64)-1; key 3163 fs/btrfs/volumes.c key.type = BTRFS_CHUNK_ITEM_KEY; key 3167 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, chunk_root, &key, path, 0, 0); key 3174 fs/btrfs/volumes.c ret = btrfs_previous_item(chunk_root, path, key.objectid, key 3175 fs/btrfs/volumes.c key.type); key 3202 fs/btrfs/volumes.c key.offset = found_key.offset - 1; key 3267 fs/btrfs/volumes.c struct btrfs_key key; key 3280 fs/btrfs/volumes.c key.objectid = BTRFS_BALANCE_OBJECTID; key 3281 fs/btrfs/volumes.c key.type = BTRFS_TEMPORARY_ITEM_KEY; key 3282 fs/btrfs/volumes.c key.offset = 0; key 3284 fs/btrfs/volumes.c ret = btrfs_insert_empty_item(trans, root, path, &key, key 3317 fs/btrfs/volumes.c struct btrfs_key key; key 3330 fs/btrfs/volumes.c key.objectid = BTRFS_BALANCE_OBJECTID; key 3331 fs/btrfs/volumes.c key.type = BTRFS_TEMPORARY_ITEM_KEY; key 3332 fs/btrfs/volumes.c key.offset = 0; key 3334 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); key 3445 fs/btrfs/volumes.c user_thresh_min = div_factor_fine(cache->key.offset, key 3451 fs/btrfs/volumes.c user_thresh_max = cache->key.offset; key 3453 fs/btrfs/volumes.c user_thresh_max = div_factor_fine(cache->key.offset, key 3476 fs/btrfs/volumes.c user_thresh = cache->key.offset; key 3478 fs/btrfs/volumes.c user_thresh = div_factor_fine(cache->key.offset, key 3691 fs/btrfs/volumes.c struct btrfs_key key; key 3727 fs/btrfs/volumes.c key.objectid = BTRFS_FIRST_CHUNK_TREE_OBJECTID; key 3728 fs/btrfs/volumes.c key.offset = (u64)-1; key 3729 fs/btrfs/volumes.c key.type = BTRFS_CHUNK_ITEM_KEY; key 3739 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, chunk_root, &key, path, 0, 0); key 3764 fs/btrfs/volumes.c if (found_key.objectid != key.objectid) { key 3852 fs/btrfs/volumes.c key.offset = found_key.offset - 1; key 4317 fs/btrfs/volumes.c struct btrfs_key key; key 4324 fs/btrfs/volumes.c key.objectid = BTRFS_BALANCE_OBJECTID; key 4325 fs/btrfs/volumes.c key.type = BTRFS_TEMPORARY_ITEM_KEY; key 4326 fs/btrfs/volumes.c key.offset = 0; key 4328 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); key 4463 fs/btrfs/volumes.c struct btrfs_key key; key 4478 fs/btrfs/volumes.c key.objectid = 0; key 4479 fs/btrfs/volumes.c key.type = BTRFS_ROOT_ITEM_KEY; key 4480 fs/btrfs/volumes.c key.offset = 0; key 4483 fs/btrfs/volumes.c ret = btrfs_search_forward(root, &key, path, key 4491 fs/btrfs/volumes.c if (key.type != BTRFS_ROOT_ITEM_KEY || key 4492 fs/btrfs/volumes.c (key.objectid < BTRFS_FIRST_FREE_OBJECTID && key 4493 fs/btrfs/volumes.c key.objectid != BTRFS_FS_TREE_OBJECTID) || key 4494 fs/btrfs/volumes.c key.objectid > BTRFS_LAST_FREE_OBJECTID) key 4532 fs/btrfs/volumes.c key.objectid); key 4544 fs/btrfs/volumes.c key.objectid); key 4561 fs/btrfs/volumes.c if (key.offset < (u64)-1) { key 4562 fs/btrfs/volumes.c key.offset++; key 4563 fs/btrfs/volumes.c } else if (key.type < BTRFS_ROOT_ITEM_KEY) { key 4564 fs/btrfs/volumes.c key.offset = 0; key 4565 fs/btrfs/volumes.c key.type = BTRFS_ROOT_ITEM_KEY; key 4566 fs/btrfs/volumes.c } else if (key.objectid < (u64)-1) { key 4567 fs/btrfs/volumes.c key.offset = 0; key 4568 fs/btrfs/volumes.c key.type = BTRFS_ROOT_ITEM_KEY; key 4569 fs/btrfs/volumes.c key.objectid++; key 4598 fs/btrfs/volumes.c struct btrfs_key key; key 4606 fs/btrfs/volumes.c key.objectid = subid; key 4607 fs/btrfs/volumes.c key.type = BTRFS_ROOT_ITEM_KEY; key 4608 fs/btrfs/volumes.c key.offset = (u64)-1; key 4609 fs/btrfs/volumes.c subvol_root = btrfs_read_fs_root_no_name(fs_info, &key); key 4729 fs/btrfs/volumes.c struct btrfs_key key; key 4779 fs/btrfs/volumes.c key.objectid = device->devid; key 4780 fs/btrfs/volumes.c key.offset = (u64)-1; key 4781 fs/btrfs/volumes.c key.type = BTRFS_DEV_EXTENT_KEY; key 4785 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 4791 fs/btrfs/volumes.c ret = btrfs_previous_item(root, path, 0, key.type); key 4804 fs/btrfs/volumes.c btrfs_item_key_to_cpu(l, &key, path->slots[0]); key 4806 fs/btrfs/volumes.c if (key.objectid != device->devid) { key 4815 fs/btrfs/volumes.c if (key.offset + length <= new_size) { key 4848 fs/btrfs/volumes.c } while (key.offset-- > 0); key 4899 fs/btrfs/volumes.c struct btrfs_key *key, key 4916 fs/btrfs/volumes.c btrfs_cpu_key_to_disk(&disk_key, key); key 5241 fs/btrfs/volumes.c struct btrfs_key key; key 5314 fs/btrfs/volumes.c key.objectid = BTRFS_FIRST_CHUNK_TREE_OBJECTID; key 5315 fs/btrfs/volumes.c key.type = BTRFS_CHUNK_ITEM_KEY; key 5316 fs/btrfs/volumes.c key.offset = chunk_offset; key 5318 fs/btrfs/volumes.c ret = btrfs_insert_item(trans, chunk_root, &key, chunk, item_size); key 5324 fs/btrfs/volumes.c ret = btrfs_add_system_chunk(fs_info, &key, chunk, item_size); key 6764 fs/btrfs/volumes.c static int read_one_chunk(struct btrfs_key *key, struct extent_buffer *leaf, key 6779 fs/btrfs/volumes.c logical = key->offset; key 7068 fs/btrfs/volumes.c struct btrfs_key key; key 7109 fs/btrfs/volumes.c btrfs_disk_key_to_cpu(&key, disk_key); key 7115 fs/btrfs/volumes.c if (key.type == BTRFS_CHUNK_ITEM_KEY) { key 7147 fs/btrfs/volumes.c ret = read_one_chunk(&key, sb, chunk); key 7153 fs/btrfs/volumes.c (u32)key.type, cur_offset); key 7243 fs/btrfs/volumes.c struct btrfs_key key; key 7266 fs/btrfs/volumes.c key.objectid = BTRFS_DEV_ITEMS_OBJECTID; key 7267 fs/btrfs/volumes.c key.offset = 0; key 7268 fs/btrfs/volumes.c key.type = 0; key 7269 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 7372 fs/btrfs/volumes.c struct btrfs_key key; key 7391 fs/btrfs/volumes.c key.objectid = BTRFS_DEV_STATS_OBJECTID; key 7392 fs/btrfs/volumes.c key.type = BTRFS_PERSISTENT_ITEM_KEY; key 7393 fs/btrfs/volumes.c key.offset = device->devid; key 7394 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, dev_root, &key, path, 0, 0); key 7433 fs/btrfs/volumes.c struct btrfs_key key; key 7439 fs/btrfs/volumes.c key.objectid = BTRFS_DEV_STATS_OBJECTID; key 7440 fs/btrfs/volumes.c key.type = BTRFS_PERSISTENT_ITEM_KEY; key 7441 fs/btrfs/volumes.c key.offset = device->devid; key 7446 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, dev_root, &key, path, -1, 1); key 7471 fs/btrfs/volumes.c &key, sizeof(*ptr)); key 7828 fs/btrfs/volumes.c struct btrfs_key key; key 7833 fs/btrfs/volumes.c key.objectid = 1; key 7834 fs/btrfs/volumes.c key.type = BTRFS_DEV_EXTENT_KEY; key 7835 fs/btrfs/volumes.c key.offset = 0; key 7842 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 7865 fs/btrfs/volumes.c btrfs_item_key_to_cpu(leaf, &key, slot); key 7866 fs/btrfs/volumes.c if (key.type != BTRFS_DEV_EXTENT_KEY) key 7868 fs/btrfs/volumes.c devid = key.objectid; key 7869 fs/btrfs/volumes.c physical_offset = key.offset; key 251 fs/btrfs/xattr.c struct btrfs_key key; key 263 fs/btrfs/xattr.c key.objectid = btrfs_ino(BTRFS_I(inode)); key 264 fs/btrfs/xattr.c key.type = BTRFS_XATTR_ITEM_KEY; key 265 fs/btrfs/xattr.c key.offset = 0; key 273 fs/btrfs/xattr.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); key 305 fs/btrfs/xattr.c if (found_key.objectid != key.objectid) key 14 fs/cachefiles/interface.c char *key; /* key path */ key 32 fs/cachefiles/interface.c char *key; key 68 fs/cachefiles/interface.c p = cookie->key; key 77 fs/cachefiles/interface.c key = cachefiles_cook_key(buffer, keylen + 2, object->type); key 78 fs/cachefiles/interface.c if (!key) key 96 fs/cachefiles/interface.c lookup_data->key = key; key 140 fs/cachefiles/interface.c lookup_data->key, key 171 fs/cachefiles/interface.c kfree(object->lookup_data->key); key 358 fs/cachefiles/interface.c kfree(object->lookup_data->key); key 168 fs/cachefiles/internal.h const char *key, key 37 fs/cachefiles/key.c char *key; key 77 fs/cachefiles/key.c key = kmalloc(max, cachefiles_gfp); key 78 fs/cachefiles/key.c if (!key) key 84 fs/cachefiles/key.c sprintf(key, "@%02x%c+", (unsigned) csum, 0); key 92 fs/cachefiles/key.c key[len + 1] = cachefiles_charmap[acc & 63]; key 94 fs/cachefiles/key.c key[len] = cachefiles_charmap[acc & 63]; key 100 fs/cachefiles/key.c key[len++] = '\0'; key 102 fs/cachefiles/key.c key[len++] = '+'; key 106 fs/cachefiles/key.c key[len++] = *raw++; key 119 fs/cachefiles/key.c key[len++] = '\0'; key 121 fs/cachefiles/key.c key[len++] = '+'; key 131 fs/cachefiles/key.c key[len++] = cachefiles_charmap[acc & 63]; key 133 fs/cachefiles/key.c key[len++] = cachefiles_charmap[acc & 63]; key 135 fs/cachefiles/key.c key[len++] = cachefiles_charmap[acc & 63]; key 137 fs/cachefiles/key.c key[len++] = cachefiles_charmap[acc & 63]; key 149 fs/cachefiles/key.c key[mark] = type; key 150 fs/cachefiles/key.c key[len++] = 0; key 151 fs/cachefiles/key.c key[len] = 0; key 153 fs/cachefiles/key.c _leave(" = %p %d", key, len); key 154 fs/cachefiles/key.c return key; key 56 fs/cachefiles/namei.c cookie->inline_key : cookie->key; key 484 fs/cachefiles/namei.c const char *key, key 497 fs/cachefiles/namei.c object->fscache.debug_id, key); key 516 fs/cachefiles/namei.c name = key; key 517 fs/cachefiles/namei.c nlen = strlen(key); key 520 fs/cachefiles/namei.c key = key + nlen + 1; key 521 fs/cachefiles/namei.c if (!*key) key 522 fs/cachefiles/namei.c key = NULL; key 542 fs/cachefiles/namei.c if (!key) key 552 fs/cachefiles/namei.c if (key || object->type == FSCACHE_COOKIE_TYPE_INDEX) { key 566 fs/cachefiles/namei.c if (!key) key 622 fs/cachefiles/namei.c if (key) { key 27 fs/cachefiles/rdwr.c struct wait_bit_key *key = _key; key 30 fs/cachefiles/rdwr.c ASSERT(key); key 34 fs/cachefiles/rdwr.c key->flags, key->bit_nr); key 36 fs/cachefiles/rdwr.c if (key->flags != &page->flags || key 37 fs/cachefiles/rdwr.c key->bit_nr != PG_locked) key 37 fs/cifs/cifs_spnego.c cifs_spnego_key_instantiate(struct key *key, struct key_preparsed_payload *prep) key 48 fs/cifs/cifs_spnego.c key->payload.data[0] = payload; key 56 fs/cifs/cifs_spnego.c cifs_spnego_key_destroy(struct key *key) key 58 fs/cifs/cifs_spnego.c kfree(key->payload.data[0]); key 98 fs/cifs/cifs_spnego.c struct key * key 106 fs/cifs/cifs_spnego.c struct key *spnego_key; key 193 fs/cifs/cifs_spnego.c struct key *keyring; key 44 fs/cifs/cifs_spnego.h extern struct key *cifs_get_spnego_key(struct cifs_ses *sesInfo); key 77 fs/cifs/cifsacl.c cifs_idmap_key_instantiate(struct key *key, struct key_preparsed_payload *prep) key 89 fs/cifs/cifsacl.c if (prep->datalen <= sizeof(key->payload)) { key 90 fs/cifs/cifsacl.c key->payload.data[0] = NULL; key 91 fs/cifs/cifsacl.c memcpy(&key->payload, prep->data, prep->datalen); key 96 fs/cifs/cifsacl.c key->payload.data[0] = payload; key 99 fs/cifs/cifsacl.c key->datalen = prep->datalen; key 104 fs/cifs/cifsacl.c cifs_idmap_key_destroy(struct key *key) key 106 fs/cifs/cifsacl.c if (key->datalen > sizeof(key->payload)) key 107 fs/cifs/cifsacl.c kfree(key->payload.data[0]); key 288 fs/cifs/cifsacl.c struct key *sidkey; key 348 fs/cifs/cifsacl.c struct key *sidkey; key 466 fs/cifs/cifsacl.c struct key *keyring; key 610 fs/cifs/cifsencrypt.c offsetof(struct ntlmv2_resp, challenge.key[0])); key 632 fs/cifs/cifsencrypt.c memcpy(ntlmv2->challenge.key, key 635 fs/cifs/cifsencrypt.c memcpy(ntlmv2->challenge.key, key 638 fs/cifs/cifsencrypt.c ntlmv2->challenge.key, hash_len); key 704 fs/cifs/cifspdu.h __u8 key[CIFS_SERVER_CHALLENGE_SIZE]; key 3087 fs/cifs/connect.c struct key *key; key 3115 fs/cifs/connect.c key = request_key(&key_type_logon, desc, ""); key 3116 fs/cifs/connect.c if (IS_ERR(key)) { key 3119 fs/cifs/connect.c rc = PTR_ERR(key); key 3126 fs/cifs/connect.c key = request_key(&key_type_logon, desc, ""); key 3127 fs/cifs/connect.c if (IS_ERR(key)) { key 3128 fs/cifs/connect.c rc = PTR_ERR(key); key 3134 fs/cifs/connect.c down_read(&key->sem); key 3135 fs/cifs/connect.c upayload = user_key_payload_locked(key); key 3169 fs/cifs/connect.c len = key->datalen - (len + 1); key 3210 fs/cifs/connect.c up_read(&key->sem); key 3211 fs/cifs/connect.c key_put(key); key 48 fs/cifs/fscache.c struct cifs_server_key key; key 49 fs/cifs/fscache.c uint16_t key_len = sizeof(key.hdr); key 51 fs/cifs/fscache.c memset(&key, 0, sizeof(key)); key 57 fs/cifs/fscache.c key.hdr.family = sa->sa_family; key 60 fs/cifs/fscache.c key.hdr.port = addr->sin_port; key 61 fs/cifs/fscache.c key.ipv4_addr = addr->sin_addr; key 62 fs/cifs/fscache.c key_len += sizeof(key.ipv4_addr); key 66 fs/cifs/fscache.c key.hdr.port = addr6->sin6_port; key 67 fs/cifs/fscache.c key.ipv6_addr = addr6->sin6_addr; key 68 fs/cifs/fscache.c key_len += sizeof(key.ipv6_addr); key 80 fs/cifs/fscache.c &key, key_len, key 1951 fs/cifs/inode.c cifs_wait_bit_killable(struct wait_bit_key *key, int mode) key 1027 fs/cifs/sess.c struct key *spnego_key = NULL; key 3633 fs/cifs/smb2ops.c smb2_get_enc_key(struct TCP_Server_Info *server, __u64 ses_id, int enc, u8 *key) key 3644 fs/cifs/smb2ops.c memcpy(key, ses_enc_key, SMB3_SIGN_KEY_SIZE); key 3669 fs/cifs/smb2ops.c u8 key[SMB3_SIGN_KEY_SIZE]; key 3677 fs/cifs/smb2ops.c rc = smb2_get_enc_key(server, tr_hdr->SessionId, enc, key); key 3692 fs/cifs/smb2ops.c rc = crypto_aead_setkey(tfm, key, SMB3_SIGN_KEY_SIZE); key 1316 fs/cifs/smb2pdu.c struct key *spnego_key = NULL; key 234 fs/cifs/smb2transport.c struct kvec context, __u8 *key, unsigned int key_size) key 245 fs/cifs/smb2transport.c memset(key, 0x0, key_size); key 308 fs/cifs/smb2transport.c memcpy(key, hashptr, key_size); key 2517 fs/cifs/smbdirect.c reg_wr->key = smbdirect_mr->mr->rkey; key 2532 fs/cifs/smbdirect.c rc, reg_wr->key); key 42 fs/cifs/smbencrypt.c str_to_key(unsigned char *str, unsigned char *key) key 46 fs/cifs/smbencrypt.c key[0] = str[0] >> 1; key 47 fs/cifs/smbencrypt.c key[1] = ((str[0] & 0x01) << 6) | (str[1] >> 2); key 48 fs/cifs/smbencrypt.c key[2] = ((str[1] & 0x03) << 5) | (str[2] >> 3); key 49 fs/cifs/smbencrypt.c key[3] = ((str[2] & 0x07) << 4) | (str[3] >> 4); key 50 fs/cifs/smbencrypt.c key[4] = ((str[3] & 0x0F) << 3) | (str[4] >> 5); key 51 fs/cifs/smbencrypt.c key[5] = ((str[4] & 0x1F) << 2) | (str[5] >> 6); key 52 fs/cifs/smbencrypt.c key[6] = ((str[5] & 0x3F) << 1) | (str[6] >> 7); key 53 fs/cifs/smbencrypt.c key[7] = str[6] & 0x7F; key 55 fs/cifs/smbencrypt.c key[i] = (key[i] << 1); key 59 fs/cifs/smbencrypt.c smbhash(unsigned char *out, const unsigned char *in, unsigned char *key) key 64 fs/cifs/smbencrypt.c str_to_key(key, key2); key 186 fs/crypto/fscrypt_private.h struct key *ci_master_key; key 371 fs/crypto/fscrypt_private.h struct key *mk_users; key 430 fs/crypto/fscrypt_private.h extern struct key * key 60 fs/crypto/keyring.c static int fscrypt_key_instantiate(struct key *key, key 63 fs/crypto/keyring.c key->payload.data[0] = (struct fscrypt_master_key *)prep->data; key 67 fs/crypto/keyring.c static void fscrypt_key_destroy(struct key *key) key 69 fs/crypto/keyring.c free_master_key(key->payload.data[0]); key 72 fs/crypto/keyring.c static void fscrypt_key_describe(const struct key *key, struct seq_file *m) key 74 fs/crypto/keyring.c seq_puts(m, key->description); key 76 fs/crypto/keyring.c if (key_is_positive(key)) { key 77 fs/crypto/keyring.c const struct fscrypt_master_key *mk = key->payload.data[0]; key 98 fs/crypto/keyring.c static int fscrypt_user_key_instantiate(struct key *key, key 106 fs/crypto/keyring.c return key_payload_reserve(key, FSCRYPT_MAX_KEY_SIZE); key 109 fs/crypto/keyring.c static void fscrypt_user_key_describe(const struct key *key, struct seq_file *m) key 111 fs/crypto/keyring.c seq_puts(m, key->description); key 131 fs/crypto/keyring.c static struct key *search_fscrypt_keyring(struct key *keyring, key 199 fs/crypto/keyring.c struct key *keyring; key 227 fs/crypto/keyring.c struct key *fscrypt_find_master_key(struct super_block *sb, key 230 fs/crypto/keyring.c struct key *keyring; key 245 fs/crypto/keyring.c struct key *keyring; key 264 fs/crypto/keyring.c static struct key *find_master_key_user(struct fscrypt_master_key *mk) key 282 fs/crypto/keyring.c struct key *mk_user; key 305 fs/crypto/keyring.c struct key *mk_user; key 323 fs/crypto/keyring.c struct key *keyring) key 327 fs/crypto/keyring.c struct key *key; key 358 fs/crypto/keyring.c key = key_alloc(&key_type_fscrypt, description, key 362 fs/crypto/keyring.c if (IS_ERR(key)) { key 363 fs/crypto/keyring.c err = PTR_ERR(key); key 366 fs/crypto/keyring.c err = key_instantiate_and_link(key, mk, sizeof(*mk), keyring, NULL); key 367 fs/crypto/keyring.c key_put(key); key 383 fs/crypto/keyring.c struct key *mk_user; key 430 fs/crypto/keyring.c struct key *key; key 435 fs/crypto/keyring.c key = fscrypt_find_master_key(sb, mk_spec); key 436 fs/crypto/keyring.c if (IS_ERR(key)) { key 437 fs/crypto/keyring.c err = PTR_ERR(key); key 450 fs/crypto/keyring.c down_write(&key->sem); key 451 fs/crypto/keyring.c err = add_existing_master_key(key->payload.data[0], secret); key 452 fs/crypto/keyring.c up_write(&key->sem); key 455 fs/crypto/keyring.c key_invalidate(key); key 456 fs/crypto/keyring.c key_put(key); key 459 fs/crypto/keyring.c key_put(key); key 585 fs/crypto/keyring.c struct key *key, *mk_user; key 592 fs/crypto/keyring.c key = fscrypt_find_master_key(sb, &mk_spec); key 593 fs/crypto/keyring.c if (IS_ERR(key)) { key 594 fs/crypto/keyring.c err = PTR_ERR(key); key 597 fs/crypto/keyring.c mk = key->payload.data[0]; key 605 fs/crypto/keyring.c key_put(key); key 762 fs/crypto/keyring.c struct key *key; key 786 fs/crypto/keyring.c key = fscrypt_find_master_key(sb, &arg.key_spec); key 787 fs/crypto/keyring.c if (IS_ERR(key)) key 788 fs/crypto/keyring.c return PTR_ERR(key); key 789 fs/crypto/keyring.c mk = key->payload.data[0]; key 791 fs/crypto/keyring.c down_write(&key->sem); key 800 fs/crypto/keyring.c up_write(&key->sem); key 812 fs/crypto/keyring.c up_write(&key->sem); key 825 fs/crypto/keyring.c up_write(&key->sem); key 831 fs/crypto/keyring.c key_invalidate(key); key 849 fs/crypto/keyring.c key_put(key); key 896 fs/crypto/keyring.c struct key *key; key 913 fs/crypto/keyring.c key = fscrypt_find_master_key(sb, &arg.key_spec); key 914 fs/crypto/keyring.c if (IS_ERR(key)) { key 915 fs/crypto/keyring.c if (key != ERR_PTR(-ENOKEY)) key 916 fs/crypto/keyring.c return PTR_ERR(key); key 921 fs/crypto/keyring.c mk = key->payload.data[0]; key 922 fs/crypto/keyring.c down_read(&key->sem); key 932 fs/crypto/keyring.c struct key *mk_user; key 947 fs/crypto/keyring.c up_read(&key->sem); key 948 fs/crypto/keyring.c key_put(key); key 114 fs/crypto/keysetup.c static int derive_essiv_salt(const u8 *key, int keysize, u8 *salt) key 145 fs/crypto/keysetup.c return crypto_shash_digest(desc, key, keysize, salt); key 295 fs/crypto/keysetup.c struct key **master_key_ret) key 297 fs/crypto/keysetup.c struct key *key; key 320 fs/crypto/keysetup.c key = fscrypt_find_master_key(ci->ci_inode->i_sb, &mk_spec); key 321 fs/crypto/keysetup.c if (IS_ERR(key)) { key 322 fs/crypto/keysetup.c if (key != ERR_PTR(-ENOKEY) || key 324 fs/crypto/keysetup.c return PTR_ERR(key); key 335 fs/crypto/keysetup.c mk = key->payload.data[0]; key 375 fs/crypto/keysetup.c *master_key_ret = key; key 380 fs/crypto/keysetup.c key_put(key); key 386 fs/crypto/keysetup.c struct key *key; key 399 fs/crypto/keysetup.c key = ci->ci_master_key; key 400 fs/crypto/keysetup.c if (key) { key 401 fs/crypto/keysetup.c struct fscrypt_master_key *mk = key->payload.data[0]; key 415 fs/crypto/keysetup.c key_invalidate(key); key 416 fs/crypto/keysetup.c key_put(key); key 426 fs/crypto/keysetup.c struct key *master_key = NULL; key 91 fs/crypto/keysetup_v1.c static struct key * key 98 fs/crypto/keysetup_v1.c struct key *key; key 107 fs/crypto/keysetup_v1.c key = request_key(&key_type_logon, description, NULL); key 109 fs/crypto/keysetup_v1.c if (IS_ERR(key)) key 110 fs/crypto/keysetup_v1.c return key; key 112 fs/crypto/keysetup_v1.c down_read(&key->sem); key 113 fs/crypto/keysetup_v1.c ukp = user_key_payload_locked(key); key 124 fs/crypto/keysetup_v1.c key->description); key 131 fs/crypto/keysetup_v1.c key->description, payload->size, min_keysize); key 136 fs/crypto/keysetup_v1.c return key; key 139 fs/crypto/keysetup_v1.c up_read(&key->sem); key 140 fs/crypto/keysetup_v1.c key_put(key); key 321 fs/crypto/keysetup_v1.c struct key *key; key 325 fs/crypto/keysetup_v1.c key = find_and_lock_process_key(FSCRYPT_KEY_DESC_PREFIX, key 328 fs/crypto/keysetup_v1.c if (key == ERR_PTR(-ENOKEY) && ci->ci_inode->i_sb->s_cop->key_prefix) { key 329 fs/crypto/keysetup_v1.c key = find_and_lock_process_key(ci->ci_inode->i_sb->s_cop->key_prefix, key 333 fs/crypto/keysetup_v1.c if (IS_ERR(key)) key 334 fs/crypto/keysetup_v1.c return PTR_ERR(key); key 337 fs/crypto/keysetup_v1.c up_read(&key->sem); key 338 fs/crypto/keysetup_v1.c key_put(key); key 144 fs/dax.c struct exceptional_entry_key key; key 148 fs/dax.c void *entry, struct exceptional_entry_key *key) key 160 fs/dax.c key->xa = xas->xa; key 161 fs/dax.c key->entry_start = index; key 170 fs/dax.c struct exceptional_entry_key *key = keyp; key 174 fs/dax.c if (key->xa != ewait->key.xa || key 175 fs/dax.c key->entry_start != ewait->key.entry_start) key 187 fs/dax.c struct exceptional_entry_key key; key 190 fs/dax.c wq = dax_entry_waitqueue(xas, entry, &key); key 199 fs/dax.c __wake_up(wq, TASK_NORMAL, wake_all ? 0 : 1, &key); key 230 fs/dax.c wq = dax_entry_waitqueue(xas, entry, &ewait.key); key 254 fs/dax.c wq = dax_entry_waitqueue(xas, entry, &ewait.key); key 321 fs/ecryptfs/crypto.c ecryptfs_dump_hex(crypt_stat->key, key 340 fs/ecryptfs/crypto.c rc = crypto_skcipher_setkey(crypt_stat->tfm, crypt_stat->key, key 664 fs/ecryptfs/crypto.c rc = ecryptfs_calculate_md5(dst, crypt_stat, crypt_stat->key, key 682 fs/ecryptfs/crypto.c get_random_bytes(crypt_stat->key, crypt_stat->key_size); key 687 fs/ecryptfs/crypto.c ecryptfs_dump_hex(crypt_stat->key, key 78 fs/ecryptfs/ecryptfs_kernel.h ecryptfs_get_encrypted_key_payload_data(struct key *key) key 82 fs/ecryptfs/ecryptfs_kernel.h if (key->type != &key_type_encrypted) key 85 fs/ecryptfs/ecryptfs_kernel.h payload = key->payload.data[0]; key 92 fs/ecryptfs/ecryptfs_kernel.h static inline struct key *ecryptfs_get_encrypted_key(char *sig) key 99 fs/ecryptfs/ecryptfs_kernel.h ecryptfs_get_encrypted_key_payload_data(struct key *key) key 104 fs/ecryptfs/ecryptfs_kernel.h static inline struct key *ecryptfs_get_encrypted_key(char *sig) key 112 fs/ecryptfs/ecryptfs_kernel.h ecryptfs_get_key_payload_data(struct key *key) key 117 fs/ecryptfs/ecryptfs_kernel.h auth_tok = ecryptfs_get_encrypted_key_payload_data(key); key 121 fs/ecryptfs/ecryptfs_kernel.h ukp = user_key_payload_locked(key); key 243 fs/ecryptfs/ecryptfs_kernel.h unsigned char key[ECRYPTFS_MAX_KEY_BYTES]; key 295 fs/ecryptfs/ecryptfs_kernel.h struct key *global_auth_tok_key; key 665 fs/ecryptfs/ecryptfs_kernel.h int ecryptfs_keyring_auth_tok_for_sig(struct key **auth_tok_key, key 334 fs/ecryptfs/keystore.c memcpy(&message[i], crypt_stat->key, crypt_stat->key_size); key 337 fs/ecryptfs/keystore.c checksum += crypt_stat->key[j]; key 452 fs/ecryptfs/keystore.c ecryptfs_verify_auth_tok_from_key(struct key *auth_tok_key, key 485 fs/ecryptfs/keystore.c struct key **auth_tok_key, key 554 fs/ecryptfs/keystore.c struct key **auth_tok_key, key 624 fs/ecryptfs/keystore.c struct key *auth_tok_key = NULL; key 897 fs/ecryptfs/keystore.c struct key *auth_tok_key = NULL; key 1169 fs/ecryptfs/keystore.c memcpy(crypt_stat->key, auth_tok->session_key.decrypted_key, key 1181 fs/ecryptfs/keystore.c ecryptfs_dump_hex(crypt_stat->key, key 1608 fs/ecryptfs/keystore.c int ecryptfs_keyring_auth_tok_for_sig(struct key **auth_tok_key, key 1725 fs/ecryptfs/keystore.c memcpy(crypt_stat->key, auth_tok->session_key.decrypted_key, key 1731 fs/ecryptfs/keystore.c ecryptfs_dump_hex(crypt_stat->key, key 1769 fs/ecryptfs/keystore.c struct key *auth_tok_key = NULL; key 1960 fs/ecryptfs/keystore.c pki_encrypt_session_key(struct key *auth_tok_key, key 2019 fs/ecryptfs/keystore.c struct key *auth_tok_key, struct ecryptfs_auth_tok *auth_tok, key 2219 fs/ecryptfs/keystore.c memset((crypt_stat->key + 24), 0, 8); key 2257 fs/ecryptfs/keystore.c rc = virt_to_scatterlist(crypt_stat->key, key_rec->enc_key_size, key 2404 fs/ecryptfs/keystore.c struct key *auth_tok_key = NULL; key 1211 fs/eventpoll.c static int ep_poll_callback(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) key 1216 fs/eventpoll.c __poll_t pollflags = key_to_poll(key); key 116 fs/ext2/inode.c __le32 key; key 122 fs/ext2/inode.c p->key = *(p->p = v); key 128 fs/ext2/inode.c while (from <= to && from->key == *from->p) key 247 fs/ext2/inode.c if (!p->key) key 250 fs/ext2/inode.c bh = sb_bread(sb, le32_to_cpu(p->key)); key 258 fs/ext2/inode.c if (!p->key) key 495 fs/ext2/inode.c branch[0].key = cpu_to_le32(new_blocks[0]); key 514 fs/ext2/inode.c branch[n].key = cpu_to_le32(new_blocks[n]); key 515 fs/ext2/inode.c *branch[n].p = branch[n].key; key 572 fs/ext2/inode.c *where->p = where->key; key 579 fs/ext2/inode.c current_block = le32_to_cpu(where->key) + 1; key 592 fs/ext2/inode.c le32_to_cpu(where[num].key) + blks - 1; key 650 fs/ext2/inode.c first_block = le32_to_cpu(chain[depth - 1].key); key 747 fs/ext2/inode.c le32_to_cpu(chain[depth-1].key), key 755 fs/ext2/inode.c le32_to_cpu(chain[depth-1].key), count, key 778 fs/ext2/inode.c *bno = le32_to_cpu(chain[depth-1].key); key 1068 fs/ext2/inode.c if (!partial->key && *partial->p) { key 33 fs/ext4/indirect.c __le32 key; key 39 fs/ext4/indirect.c p->key = *(p->p = v); key 156 fs/ext4/indirect.c if (!p->key) key 159 fs/ext4/indirect.c bh = sb_getblk(sb, le32_to_cpu(p->key)); key 179 fs/ext4/indirect.c if (!p->key) key 343 fs/ext4/indirect.c branch[i].key = cpu_to_le32(new_blocks[i]); key 428 fs/ext4/indirect.c *where->p = where->key; key 435 fs/ext4/indirect.c current_block = le32_to_cpu(where->key) + 1; key 475 fs/ext4/indirect.c ext4_free_blocks(handle, ar->inode, NULL, le32_to_cpu(where[num].key), key 537 fs/ext4/indirect.c first_block = le32_to_cpu(chain[depth - 1].key); key 634 fs/ext4/indirect.c map->m_pblk = le32_to_cpu(chain[depth-1].key); key 782 fs/ext4/indirect.c if (!partial->key && *partial->p) key 84 fs/fs_context.c static int vfs_parse_sb_flag(struct fs_context *fc, const char *key) key 90 fs/fs_context.c if (strcmp(key, forbidden_sb_flag[i]) == 0) key 93 fs/fs_context.c token = lookup_constant(common_set_sb_flag, key, 0); key 100 fs/fs_context.c token = lookup_constant(common_clear_sb_flag, key, 0); key 130 fs/fs_context.c if (!param->key) key 133 fs/fs_context.c ret = vfs_parse_sb_flag(fc, param->key); key 153 fs/fs_context.c if (strcmp(param->key, "source") == 0) { key 164 fs/fs_context.c fc->fs_type->name, param->key); key 171 fs/fs_context.c int vfs_parse_fs_string(struct fs_context *fc, const char *key, key 177 fs/fs_context.c .key = key, key 207 fs/fs_context.c char *options = data, *key; key 217 fs/fs_context.c while ((key = strsep(&options, ",")) != NULL) { key 218 fs/fs_context.c if (*key) { key 220 fs/fs_context.c char *value = strchr(key, '='); key 223 fs/fs_context.c if (value == key) key 228 fs/fs_context.c ret = vfs_parse_fs_string(fc, key, value, v_len); key 563 fs/fs_context.c if (strcmp(param->key, "source") == 0) { key 581 fs/fs_context.c len += strlen(param->key); key 585 fs/fs_context.c param->key); key 590 fs/fs_context.c if (strchr(param->key, ',') || key 594 fs/fs_context.c param->key); key 602 fs/fs_context.c len = strlen(param->key); key 603 fs/fs_context.c memcpy(ctx->legacy_data + size, param->key, len); key 92 fs/fs_parser.c p = fs_lookup_key(desc, param->key); key 100 fs/fs_parser.c if (param->key[0] != 'n' || param->key[1] != 'o' || !param->key[2]) key 103 fs/fs_parser.c p = fs_lookup_key(desc, param->key + 2); key 114 fs/fs_parser.c desc->name, param->key); key 150 fs/fs_parser.c desc->name, param->key); key 240 fs/fs_parser.c return invalf(fc, "%s: Bad value for '%s'", desc->name, param->key); key 278 fs/fs_parser.c return invalf(fc, "%s: not usable as path", param->key); key 284 fs/fs_parser.c errorf(fc, "%s: Lookup failure for '%s'", param->key, f->name); key 294 fs/fs_parser.c param->key, f->name); key 50 fs/fscache/cookie.c cookie->inline_key : cookie->key; key 63 fs/fscache/cookie.c kfree(cookie->key); key 88 fs/fscache/cookie.c cookie->key = buf; key 126 fs/fscache/cookie.c ka = a->key; key 127 fs/fscache/cookie.c kb = b->key; key 280 fs/fscache/object-list.c cookie->inline_key : cookie->key; key 316 fs/fscache/object-list.c struct key *key; key 320 fs/fscache/object-list.c key = request_key(&key_type_user, "fscache:objlist", NULL); key 321 fs/fscache/object-list.c if (IS_ERR(key)) key 327 fs/fscache/object-list.c confkey = user_key_payload_rcu(key); key 331 fs/fscache/object-list.c key_put(key); key 355 fs/fscache/object-list.c key_put(key); key 383 fs/fsopen.c param.key = strndup_user(_key, 256); key 384 fs/fsopen.c if (IS_ERR(param.key)) { key 385 fs/fsopen.c ret = PTR_ERR(param.key); key 471 fs/fsopen.c kfree(param.key); key 220 fs/fuse/cuse.c char *key, *val; key 232 fs/fuse/cuse.c key = val = p; key 238 fs/fuse/cuse.c val = key + strlen(key); key 239 fs/fuse/cuse.c key = strstrip(key); key 242 fs/fuse/cuse.c key = strstrip(key); key 244 fs/fuse/cuse.c if (!strlen(key)) { key 250 fs/fuse/cuse.c *keyp = key; key 273 fs/fuse/cuse.c char *uninitialized_var(key), *uninitialized_var(val); key 277 fs/fuse/cuse.c rc = cuse_parse_one(&p, end, &key, &val); key 282 fs/fuse/cuse.c if (strcmp(key, "DEVNAME") == 0) key 285 fs/fuse/cuse.c pr_warn("unknown device info \"%s\"\n", key); key 91 fs/gfs2/glock.c int sync, void *key) key 96 fs/gfs2/glock.c struct lm_lockname *wake_name = key; key 102 fs/gfs2/glock.c return autoremove_wake_function(wait, mode, sync, key); key 1441 fs/gfs2/ops_fstype.c return invalf(fc, "gfs2: invalid mount option: %s", param->key); key 25 fs/hfs/bfind.c fd->key = ptr + tree->max_key_len + 2; key 62 fs/hfs/bfind.c hfs_bnode_read(bnode, fd->key, off, keylen); key 63 fs/hfs/bfind.c cmpval = bnode->tree->keycmp(fd->key, fd->search_key); key 81 fs/hfs/bfind.c hfs_bnode_read(bnode, fd->key, off, keylen); key 221 fs/hfs/bfind.c hfs_bnode_read(bnode, fd->key, off, keylen); key 46 fs/hfs/bnode.c void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) key 58 fs/hfs/bnode.c hfs_bnode_read(node, key, off, key_len); key 71 fs/hfs/btree.h btree_key *key; key 23 fs/hfs/catalog.c void hfs_cat_build_key(struct super_block *sb, btree_key *key, u32 parent, const struct qstr *name) key 25 fs/hfs/catalog.c key->cat.reserved = 0; key 26 fs/hfs/catalog.c key->cat.ParID = cpu_to_be32(parent); key 28 fs/hfs/catalog.c hfs_asc2mac(sb, &key->cat.CName, name); key 29 fs/hfs/catalog.c key->key_len = 6 + key->cat.CName.len; key 31 fs/hfs/catalog.c memset(&key->cat.CName, 0, sizeof(struct hfs_name)); key 32 fs/hfs/catalog.c key->key_len = 6; key 254 fs/hfs/catalog.c if (fd.tree->keycmp(fd.search_key, (void *)&rd->key) < 0) key 105 fs/hfs/dir.c if (be32_to_cpu(fd.key->cat.ParID) != inode->i_ino) { key 118 fs/hfs/dir.c len = hfs_mac2asc(sb, strbuf, &fd.key->cat.CName); key 166 fs/hfs/dir.c memcpy(&rd->key, &fd.key->cat, sizeof(struct hfs_cat_key)); key 21 fs/hfs/extent.c static void hfs_ext_build_key(hfs_btree_key *key, u32 cnid, u16 block, u8 type) key 23 fs/hfs/extent.c key->key_len = 7; key 24 fs/hfs/extent.c key->ext.FkType = type; key 25 fs/hfs/extent.c key->ext.FNum = cpu_to_be32(cnid); key 26 fs/hfs/extent.c key->ext.FABN = cpu_to_be16(block); key 156 fs/hfs/extent.c fd->key->ext.FNum = 0; key 160 fs/hfs/extent.c if (fd->key->ext.FNum != fd->search_key->ext.FNum || key 161 fs/hfs/extent.c fd->key->ext.FkType != fd->search_key->ext.FkType) key 182 fs/hfs/extent.c HFS_I(inode)->cached_start = be16_to_cpu(fd->key->ext.FABN); key 323 fs/hfs/extent.c start = be16_to_cpu(fd.key->ext.FABN); key 286 fs/hfs/hfs.h struct hfs_cat_key key; key 289 fs/hfs/inode.c struct hfs_cat_key *key; key 330 fs/hfs/inode.c if (idata->key) key 331 fs/hfs/inode.c HFS_I(inode)->cat_key = *idata->key; key 384 fs/hfs/inode.c struct inode *hfs_iget(struct super_block *sb, struct hfs_cat_key *key, hfs_cat_rec *rec) key 386 fs/hfs/inode.c struct hfs_iget_data data = { key, rec }; key 50 fs/hfsplus/attributes.c int hfsplus_attr_build_key(struct super_block *sb, hfsplus_btree_key *key, key 55 fs/hfsplus/attributes.c memset(key, 0, sizeof(struct hfsplus_attr_key)); key 56 fs/hfsplus/attributes.c key->attr.cnid = cpu_to_be32(cnid); key 59 fs/hfsplus/attributes.c (struct hfsplus_unistr *)&key->attr.key_name, key 63 fs/hfsplus/attributes.c len = be16_to_cpu(key->attr.key_name.length); key 65 fs/hfsplus/attributes.c key->attr.key_name.length = 0; key 76 fs/hfsplus/attributes.c key->key_len = key 25 fs/hfsplus/bfind.c fd->key = ptr + tree->max_key_len + 2; key 64 fs/hfsplus/bfind.c cur_cnid = fd->key->ext.cnid; key 67 fs/hfsplus/bfind.c cur_cnid = fd->key->cat.parent; key 70 fs/hfsplus/bfind.c cur_cnid = fd->key->attr.cnid; key 100 fs/hfsplus/bfind.c cmpval = bnode->tree->keycmp(fd->key, fd->search_key); key 134 fs/hfsplus/bfind.c hfs_bnode_read(bnode, fd->key, off, keylen); key 148 fs/hfsplus/bfind.c hfs_bnode_read(bnode, fd->key, off, keylen); key 290 fs/hfsplus/bfind.c hfs_bnode_read(bnode, fd->key, off, keylen); key 59 fs/hfsplus/bnode.c void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) key 72 fs/hfsplus/bnode.c hfs_bnode_read(node, key, off, key_len); key 44 fs/hfsplus/catalog.c hfsplus_btree_key *key, u32 parent, const struct qstr *str) key 48 fs/hfsplus/catalog.c key->cat.parent = cpu_to_be32(parent); key 49 fs/hfsplus/catalog.c err = hfsplus_asc2uni(sb, &key->cat.name, HFSPLUS_MAX_STRLEN, key 54 fs/hfsplus/catalog.c len = be16_to_cpu(key->cat.name.length); key 55 fs/hfsplus/catalog.c key->key_len = cpu_to_be16(6 + 2 * len); key 61 fs/hfsplus/catalog.c hfsplus_btree_key *key, u32 parent) key 63 fs/hfsplus/catalog.c key->cat.parent = cpu_to_be32(parent); key 64 fs/hfsplus/catalog.c key->cat.name.length = 0; key 65 fs/hfsplus/catalog.c key->key_len = cpu_to_be16(6); key 68 fs/hfsplus/catalog.c static void hfsplus_cat_build_key_uni(hfsplus_btree_key *key, u32 parent, key 74 fs/hfsplus/catalog.c key->cat.parent = cpu_to_be32(parent); key 75 fs/hfsplus/catalog.c key->cat.name.length = cpu_to_be16(ustrlen); key 77 fs/hfsplus/catalog.c memcpy(key->cat.name.unicode, name->unicode, ustrlen); key 78 fs/hfsplus/catalog.c key->key_len = cpu_to_be16(6 + ustrlen); key 399 fs/hfsplus/catalog.c if (fd.tree->keycmp(fd.search_key, (void *)&rd->key) < 0) key 192 fs/hfsplus/dir.c if (be32_to_cpu(fd.key->cat.parent) != inode->i_ino) { key 207 fs/hfsplus/dir.c err = hfsplus_uni2asc(sb, &fd.key->cat.name, strbuf, &len); key 281 fs/hfsplus/dir.c memcpy(&rd->key, fd.key, sizeof(struct hfsplus_cat_key)); key 41 fs/hfsplus/extents.c static void hfsplus_ext_build_key(hfsplus_btree_key *key, u32 cnid, key 44 fs/hfsplus/extents.c key->key_len = cpu_to_be16(HFSPLUS_EXT_KEYLEN - 2); key 45 fs/hfsplus/extents.c key->ext.cnid = cpu_to_be32(cnid); key 46 fs/hfsplus/extents.c key->ext.start_block = cpu_to_be32(block); key 47 fs/hfsplus/extents.c key->ext.fork_type = type; key 48 fs/hfsplus/extents.c key->ext.pad = 0; key 163 fs/hfsplus/extents.c fd->key->ext.cnid = 0; key 167 fs/hfsplus/extents.c if (fd->key->ext.cnid != fd->search_key->ext.cnid || key 168 fs/hfsplus/extents.c fd->key->ext.fork_type != fd->search_key->ext.fork_type) key 196 fs/hfsplus/extents.c hip->cached_start = be32_to_cpu(fd->key->ext.start_block); key 426 fs/hfsplus/extents.c start = be32_to_cpu(fd.key->ext.start_block); key 286 fs/hfsplus/hfsplus_fs.h hfsplus_btree_key *key; key 299 fs/hfsplus/hfsplus_fs.h struct hfsplus_cat_key key; key 376 fs/hfsplus/hfsplus_fs.h int hfsplus_attr_build_key(struct super_block *sb, hfsplus_btree_key *key, key 407 fs/hfsplus/hfsplus_fs.h void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off); key 449 fs/hfsplus/hfsplus_fs.h int hfsplus_cat_build_key(struct super_block *sb, hfsplus_btree_key *key, key 452 fs/hfsplus/hfsplus_fs.h hfsplus_btree_key *key, u32 parent); key 738 fs/hfsplus/xattr.c (const struct hfsplus_unistr *)&fd.key->attr.key_name, key 74 fs/hpfs/ea.c int hpfs_read_ea(struct super_block *s, struct fnode *fnode, char *key, key 84 fs/hpfs/ea.c if (!strcmp(ea->name, key)) { key 107 fs/hpfs/ea.c if (!strcmp(ea->name, key)) { key 130 fs/hpfs/ea.c char *hpfs_get_ea(struct super_block *s, struct fnode *fnode, char *key, int *size) key 139 fs/hpfs/ea.c if (!strcmp(ea->name, key)) { key 165 fs/hpfs/ea.c if (!strcmp(ea->name, key)) { key 190 fs/hpfs/ea.c void hpfs_set_ea(struct inode *inode, struct fnode *fnode, const char *key, key 202 fs/hpfs/ea.c if (!strcmp(ea->name, key)) { key 226 fs/hpfs/ea.c if (!strcmp(ea->name, key)) { key 254 fs/hpfs/ea.c le16_to_cpu(fnode->ea_offs) + le16_to_cpu(fnode->acl_size_s) + le16_to_cpu(fnode->ea_size_s) + strlen(key) + size + 5 <= 0x200) { key 257 fs/hpfs/ea.c ea->namelen = strlen(key); key 260 fs/hpfs/ea.c strcpy(ea->name, key); key 262 fs/hpfs/ea.c fnode->ea_size_s = cpu_to_le16(le16_to_cpu(fnode->ea_size_s) + strlen(key) + size + 5); key 284 fs/hpfs/ea.c pos = le32_to_cpu(fnode->ea_size_l) + 5 + strlen(key) + size; key 352 fs/hpfs/ea.c h[1] = strlen(key); key 356 fs/hpfs/ea.c if (hpfs_ea_write(s, le32_to_cpu(fnode->ea_secno), fnode_in_anode(fnode), le32_to_cpu(fnode->ea_size_l) + 4, h[1] + 1, key)) goto bail; key 360 fs/hpfs/ea.c hpfs_i(inode)->i_ea_size += 5 + strlen(key) + size; key 101 fs/hpfs/super.c int hpfs_stop_cycles(struct super_block *s, int key, int *c1, int *c2, key 104 fs/hpfs/super.c if (*c2 && *c1 == key) { key 105 fs/hpfs/super.c hpfs_error(s, "cycle detected on key %08x in %s", key, msg); key 109 fs/hpfs/super.c if (!((*c2 - 1) & *c2)) *c1 = key; key 1217 fs/hugetlbfs/inode.c param->string, param->key); key 1827 fs/io_uring.c void *key) key 1833 fs/io_uring.c __poll_t mask = key_to_poll(key); key 2955 fs/io_uring.c int wake_flags, void *key) key 2963 fs/io_uring.c return autoremove_wake_function(curr, mode, wake_flags, key); key 106 fs/jfs/jfs_dtree.c struct component_name *key; key 161 fs/jfs/jfs_dtree.c static int dtCompare(struct component_name * key, dtpage_t * p, int si); key 163 fs/jfs/jfs_dtree.c static int ciCompare(struct component_name * key, dtpage_t * p, int si, key 166 fs/jfs/jfs_dtree.c static void dtGetKey(dtpage_t * p, int i, struct component_name * key, key 170 fs/jfs/jfs_dtree.c int ri, struct component_name * key, int flag); key 172 fs/jfs/jfs_dtree.c static void dtInsertEntry(dtpage_t * p, int index, struct component_name * key, key 567 fs/jfs/jfs_dtree.c int dtSearch(struct inode *ip, struct component_name * key, ino_t * data, key 593 fs/jfs/jfs_dtree.c UniStrcpy(ciKey.name, key->name); key 594 fs/jfs/jfs_dtree.c ciKey.namlen = key->namlen; key 861 fs/jfs/jfs_dtree.c split.key = name; key 936 fs/jfs/jfs_dtree.c struct component_name key = { 0, NULL }; key 948 fs/jfs/jfs_dtree.c key.name = kmalloc_array(JFS_NAME_MAX + 2, sizeof(wchar_t), GFP_NOFS); key 949 fs/jfs/jfs_dtree.c if (!key.name) { key 1176 fs/jfs/jfs_dtree.c rp, 0, &key, key 1189 fs/jfs/jfs_dtree.c dtGetKey(rp, 0, &key, sbi->mntflag); key 1190 fs/jfs/jfs_dtree.c key.name[key.namlen] = 0; key 1193 fs/jfs/jfs_dtree.c ciToUpper(&key); key 1196 fs/jfs/jfs_dtree.c n = NDTINTERNAL(key.namlen); key 1200 fs/jfs/jfs_dtree.c dtGetKey(rp, 0, &key, sbi->mntflag); key 1201 fs/jfs/jfs_dtree.c n = NDTINTERNAL(key.namlen); key 1225 fs/jfs/jfs_dtree.c split->key = &key; key 1274 fs/jfs/jfs_dtree.c dtInsertEntry(sp, skip, &key, data, &dtlck); key 1295 fs/jfs/jfs_dtree.c kfree(key.name); key 1450 fs/jfs/jfs_dtree.c dtInsertEntry(rp, 0, split->key, split->data, &rdtlck); key 1588 fs/jfs/jfs_dtree.c dtInsertEntry(sp, skip, split->key, split->data, &sdtlck); key 1608 fs/jfs/jfs_dtree.c dtInsertEntry(rp, skip, split->key, split->data, &rdtlck); key 1809 fs/jfs/jfs_dtree.c dtInsertEntry(sp, split->index, split->key, split->data, &dtlck); key 2001 fs/jfs/jfs_dtree.c dtInsertEntry(rp, split->index, split->key, split->data, &dtlck); key 2071 fs/jfs/jfs_dtree.c struct inode *ip, struct component_name * key, ino_t * ino, int flag) key 2094 fs/jfs/jfs_dtree.c if ((rc = dtSearch(ip, key, ino, &btstack, flag))) key 3578 fs/jfs/jfs_dtree.c static int dtCompare(struct component_name * key, /* search key */ key 3604 fs/jfs/jfs_dtree.c kname = key->name; key 3605 fs/jfs/jfs_dtree.c klen = key->namlen; key 3654 fs/jfs/jfs_dtree.c static int ciCompare(struct component_name * key, /* search key */ key 3683 fs/jfs/jfs_dtree.c kname = key->name; key 3684 fs/jfs/jfs_dtree.c klen = key->namlen; key 3763 fs/jfs/jfs_dtree.c int ri, struct component_name * key, int flag) key 3798 fs/jfs/jfs_dtree.c kname = key->name; key 3804 fs/jfs/jfs_dtree.c key->namlen = klen + 1; key 3812 fs/jfs/jfs_dtree.c key->namlen = klen + 1; key 3814 fs/jfs/jfs_dtree.c key->namlen = klen; key 3830 fs/jfs/jfs_dtree.c struct component_name * key, int flag) key 3861 fs/jfs/jfs_dtree.c key->namlen = namlen; key 3862 fs/jfs/jfs_dtree.c kname = key->name; key 3893 fs/jfs/jfs_dtree.c static void dtInsertEntry(dtpage_t * p, int index, struct component_name * key, key 3910 fs/jfs/jfs_dtree.c klen = key->namlen; key 3911 fs/jfs/jfs_dtree.c kname = key->name; key 4508 fs/jfs/jfs_dtree.c struct component_name * key, ino_t * orig_ino, ino_t new_ino, int flag) key 4528 fs/jfs/jfs_dtree.c if ((rc = dtSearch(ip, key, orig_ino, &btstack, flag))) key 243 fs/jfs/jfs_dtree.h extern int dtSearch(struct inode *ip, struct component_name * key, key 246 fs/jfs/jfs_dtree.h extern int dtInsert(tid_t tid, struct inode *ip, struct component_name * key, key 249 fs/jfs/jfs_dtree.h extern int dtDelete(tid_t tid, struct inode *ip, struct component_name * key, key 252 fs/jfs/jfs_dtree.h extern int dtModify(tid_t tid, struct inode *ip, struct component_name * key, key 1446 fs/jfs/namei.c struct component_name key; key 1451 fs/jfs/namei.c if ((rc = get_UCSname(&key, dentry))) key 1453 fs/jfs/namei.c rc = dtSearch(dip, &key, &inum, &btstack, JFS_LOOKUP); key 1454 fs/jfs/namei.c free_UCSname(&key); key 993 fs/kernfs/file.c struct lock_class_key *key) key 1012 fs/kernfs/file.c if (key) { key 1013 fs/kernfs/file.c lockdep_init_map(&kn->dep_map, "kn->count", key, 0); key 51 fs/mbcache.c u32 key) key 53 fs/mbcache.c return &cache->c_hash[hash_32(key, cache->c_bucket_bits)]; key 74 fs/mbcache.c int mb_cache_entry_create(struct mb_cache *cache, gfp_t mask, u32 key, key 95 fs/mbcache.c entry->e_key = key; key 99 fs/mbcache.c head = mb_cache_entry_head(cache, key); key 102 fs/mbcache.c if (dup->e_key == key && dup->e_value == value) { key 130 fs/mbcache.c u32 key) key 136 fs/mbcache.c head = mb_cache_entry_head(cache, key); key 145 fs/mbcache.c if (entry->e_key == key && entry->e_reusable) { key 169 fs/mbcache.c u32 key) key 171 fs/mbcache.c return __entry_find(cache, NULL, key); key 198 fs/mbcache.c struct mb_cache_entry *mb_cache_entry_get(struct mb_cache *cache, u32 key, key 205 fs/mbcache.c head = mb_cache_entry_head(cache, key); key 208 fs/mbcache.c if (entry->e_key == key && entry->e_value == value) { key 227 fs/mbcache.c void mb_cache_entry_delete(struct mb_cache *cache, u32 key, u64 value) key 233 fs/mbcache.c head = mb_cache_entry_head(cache, key); key 236 fs/mbcache.c if (entry->e_key == key && entry->e_value == value) { key 6 fs/minix/itree_common.c block_t key; key 14 fs/minix/itree_common.c p->key = *(p->p = v); key 20 fs/minix/itree_common.c while (from <= to && from->key == *from->p) key 43 fs/minix/itree_common.c if (!p->key) key 46 fs/minix/itree_common.c bh = sb_bread(sb, block_to_cpu(p->key)); key 54 fs/minix/itree_common.c if (!p->key) key 79 fs/minix/itree_common.c branch[0].key = cpu_to_block(parent); key 86 fs/minix/itree_common.c branch[n].key = cpu_to_block(nr); key 92 fs/minix/itree_common.c *branch[n].p = branch[n].key; key 105 fs/minix/itree_common.c minix_free_block(inode, block_to_cpu(branch[i].key)); key 122 fs/minix/itree_common.c *where->p = where->key; key 142 fs/minix/itree_common.c minix_free_block(inode, block_to_cpu(where[i].key)); key 165 fs/minix/itree_common.c map_bh(bh, inode->i_sb, block_to_cpu(chain[depth-1].key)); key 234 fs/minix/itree_common.c if (!partial->key && *partial->p) { key 77 fs/nfs/dns_resolve.c struct nfs_dns_ent *key; key 80 fs/nfs/dns_resolve.c key = container_of(ckey, struct nfs_dns_ent, h); key 82 fs/nfs/dns_resolve.c memcpy(&new->addr, &key->addr, key->addrlen); key 83 fs/nfs/dns_resolve.c new->addrlen = key->addrlen; key 90 fs/nfs/dns_resolve.c struct nfs_dns_ent *key; key 93 fs/nfs/dns_resolve.c key = container_of(ckey, struct nfs_dns_ent, h); key 96 fs/nfs/dns_resolve.c new->hostname = kstrndup(key->hostname, key->namelen, GFP_KERNEL); key 98 fs/nfs/dns_resolve.c new->namelen = key->namelen; key 136 fs/nfs/dns_resolve.c static unsigned int nfs_dns_hash(const struct nfs_dns_ent *key) key 138 fs/nfs/dns_resolve.c return hash_str(key->hostname, NFS_DNS_HASHBITS); key 145 fs/nfs/dns_resolve.c struct nfs_dns_ent *key = container_of(ch, struct nfs_dns_ent, h); key 147 fs/nfs/dns_resolve.c qword_add(bpp, blen, key->hostname); key 154 fs/nfs/dns_resolve.c struct nfs_dns_ent *key = container_of(ch, struct nfs_dns_ent, h); key 157 fs/nfs/dns_resolve.c ret = nfs_cache_upcall(cd, key->hostname); key 204 fs/nfs/dns_resolve.c struct nfs_dns_ent *key) key 209 fs/nfs/dns_resolve.c &key->h, key 210 fs/nfs/dns_resolve.c nfs_dns_hash(key)); key 218 fs/nfs/dns_resolve.c struct nfs_dns_ent *key) key 223 fs/nfs/dns_resolve.c &new->h, &key->h, key 224 fs/nfs/dns_resolve.c nfs_dns_hash(key)); key 233 fs/nfs/dns_resolve.c struct nfs_dns_ent key, *item; key 245 fs/nfs/dns_resolve.c key.addrlen = rpc_pton(cd->net, buf1, len, key 246 fs/nfs/dns_resolve.c (struct sockaddr *)&key.addr, key 247 fs/nfs/dns_resolve.c sizeof(key.addr)); key 253 fs/nfs/dns_resolve.c key.hostname = buf1; key 254 fs/nfs/dns_resolve.c key.namelen = len; key 255 fs/nfs/dns_resolve.c memset(&key.h, 0, sizeof(key.h)); key 261 fs/nfs/dns_resolve.c key.h.expiry_time = ttl + seconds_since_boot(); key 264 fs/nfs/dns_resolve.c item = nfs_dns_lookup(cd, &key); key 268 fs/nfs/dns_resolve.c if (key.addrlen == 0) key 269 fs/nfs/dns_resolve.c set_bit(CACHE_NEGATIVE, &key.h.flags); key 271 fs/nfs/dns_resolve.c item = nfs_dns_update(cd, &key, item); key 282 fs/nfs/dns_resolve.c struct nfs_dns_ent *key, key 288 fs/nfs/dns_resolve.c *item = nfs_dns_lookup(cd, key); key 298 fs/nfs/dns_resolve.c struct nfs_dns_ent *key, key 303 fs/nfs/dns_resolve.c *item = nfs_dns_lookup(cd, key); key 323 fs/nfs/dns_resolve.c struct nfs_dns_ent *key, key 332 fs/nfs/dns_resolve.c ret = do_cache_lookup(cd, key, item, dreq); key 336 fs/nfs/dns_resolve.c ret = do_cache_lookup_nowait(cd, key, item); key 346 fs/nfs/dns_resolve.c struct nfs_dns_ent key = { key 354 fs/nfs/dns_resolve.c ret = do_cache_lookup_wait(nn->nfs_dns_resolve, &key, &item); key 54 fs/nfs/fscache.c struct nfs_server_key key; key 55 fs/nfs/fscache.c uint16_t len = sizeof(key.hdr); key 57 fs/nfs/fscache.c memset(&key, 0, sizeof(key)); key 58 fs/nfs/fscache.c key.hdr.nfsversion = clp->rpc_ops->version; key 59 fs/nfs/fscache.c key.hdr.minorversion = clp->cl_minorversion; key 60 fs/nfs/fscache.c key.hdr.family = clp->cl_addr.ss_family; key 64 fs/nfs/fscache.c key.hdr.port = sin->sin_port; key 65 fs/nfs/fscache.c key.ipv4_addr = sin->sin_addr; key 66 fs/nfs/fscache.c len += sizeof(key.ipv4_addr); key 70 fs/nfs/fscache.c key.hdr.port = sin6->sin6_port; key 71 fs/nfs/fscache.c key.ipv6_addr = sin6->sin6_addr; key 72 fs/nfs/fscache.c len += sizeof(key.ipv6_addr); key 85 fs/nfs/fscache.c &key, len, key 114 fs/nfs/fscache.c struct nfs_fscache_key *key, *xkey; key 128 fs/nfs/fscache.c key = kzalloc(sizeof(*key) + ulen, GFP_KERNEL); key 129 fs/nfs/fscache.c if (!key) key 132 fs/nfs/fscache.c key->nfs_client = nfss->nfs_client; key 133 fs/nfs/fscache.c key->key.super.s_flags = sb->s_flags & NFS_MS_MASK; key 134 fs/nfs/fscache.c key->key.nfs_server.flags = nfss->flags; key 135 fs/nfs/fscache.c key->key.nfs_server.rsize = nfss->rsize; key 136 fs/nfs/fscache.c key->key.nfs_server.wsize = nfss->wsize; key 137 fs/nfs/fscache.c key->key.nfs_server.acregmin = nfss->acregmin; key 138 fs/nfs/fscache.c key->key.nfs_server.acregmax = nfss->acregmax; key 139 fs/nfs/fscache.c key->key.nfs_server.acdirmin = nfss->acdirmin; key 140 fs/nfs/fscache.c key->key.nfs_server.acdirmax = nfss->acdirmax; key 141 fs/nfs/fscache.c key->key.nfs_server.fsid = nfss->fsid; key 142 fs/nfs/fscache.c key->key.rpc_auth.au_flavor = nfss->client->cl_auth->au_flavor; key 144 fs/nfs/fscache.c key->key.uniq_len = ulen; key 145 fs/nfs/fscache.c memcpy(key->key.uniquifier, uniq, ulen); key 154 fs/nfs/fscache.c if (key->nfs_client < xkey->nfs_client) key 156 fs/nfs/fscache.c if (key->nfs_client > xkey->nfs_client) key 159 fs/nfs/fscache.c diff = memcmp(&key->key, &xkey->key, sizeof(key->key)); key 165 fs/nfs/fscache.c if (key->key.uniq_len == 0) key 167 fs/nfs/fscache.c diff = memcmp(key->key.uniquifier, key 168 fs/nfs/fscache.c xkey->key.uniquifier, key 169 fs/nfs/fscache.c key->key.uniq_len); key 183 fs/nfs/fscache.c rb_link_node(&key->node, parent, p); key 184 fs/nfs/fscache.c rb_insert_color(&key->node, &nfs_fscache_keys); key 186 fs/nfs/fscache.c nfss->fscache_key = key; key 191 fs/nfs/fscache.c &key->key, key 192 fs/nfs/fscache.c sizeof(key->key) + ulen, key 201 fs/nfs/fscache.c kfree(key); key 52 fs/nfs/fscache.h } key; key 84 fs/nfs/inode.c int nfs_wait_bit_killable(struct wait_bit_key *key, int mode) key 385 fs/nfs/internal.h extern int nfs_wait_bit_killable(struct wait_bit_key *key, int mode); key 63 fs/nfs/nfs4idmap.c struct key *authkey; key 199 fs/nfs/nfs4idmap.c struct key *keyring; key 278 fs/nfs/nfs4idmap.c static struct key *nfs_idmap_request_key(const char *name, size_t namelen, key 282 fs/nfs/nfs4idmap.c struct key *rkey = ERR_PTR(-EAGAIN); key 309 fs/nfs/nfs4idmap.c struct key *rkey; key 397 fs/nfs/nfs4idmap.c static int nfs_idmap_legacy_upcall(struct key *, void *); key 566 fs/nfs/nfs4idmap.c struct key *authkey = idmap->idmap_upcall_data->authkey; key 581 fs/nfs/nfs4idmap.c static int nfs_idmap_legacy_upcall(struct key *authkey, void *aux) key 588 fs/nfs/nfs4idmap.c struct key *key = rka->target_key; key 605 fs/nfs/nfs4idmap.c ret = nfs_idmap_prepare_message(key->description, idmap, im, msg); key 625 fs/nfs/nfs4idmap.c static int nfs_idmap_instantiate(struct key *key, struct key *authkey, char *data, size_t datalen) key 627 fs/nfs/nfs4idmap.c return key_instantiate_and_link(key, data, datalen, key 634 fs/nfs/nfs4idmap.c struct key *key, struct key *authkey) key 650 fs/nfs/nfs4idmap.c ret = nfs_idmap_instantiate(key, authkey, id_str, len); key 656 fs/nfs/nfs4idmap.c ret = nfs_idmap_instantiate(key, authkey, im->im_name, len); key 671 fs/nfs/nfs4idmap.c struct key *authkey; key 7081 fs/nfs/nfs4proc.c nfs4_wake_lock_waiter(wait_queue_entry_t *wait, unsigned int mode, int flags, void *key) key 7087 fs/nfs/nfs4proc.c if (key) { key 7088 fs/nfs/nfs4proc.c struct cb_notify_lock_args *cbnl = key; key 7103 fs/nfs/nfs4proc.c ret = woken_wake_function(wait, mode, flags, key); key 7309 fs/nfs/nfs4proc.c const char *key, const void *buf, key 7317 fs/nfs/nfs4proc.c const char *key, void *buf, size_t buflen) key 7331 fs/nfs/nfs4proc.c const char *key, const void *buf, key 7334 fs/nfs/nfs4proc.c if (security_ismaclabel(key)) key 7342 fs/nfs/nfs4proc.c const char *key, void *buf, size_t buflen) key 7344 fs/nfs/nfs4proc.c if (security_ismaclabel(key)) key 2586 fs/nfs/super.c uniq = mnt_s->fscache_key->key.uniquifier; key 2587 fs/nfs/super.c ulen = mnt_s->fscache_key->key.uniq_len; key 44 fs/nfsd/export.c struct svc_expkey *key = container_of(ref, struct svc_expkey, h.ref); key 46 fs/nfsd/export.c if (test_bit(CACHE_VALID, &key->h.flags) && key 47 fs/nfsd/export.c !test_bit(CACHE_NEGATIVE, &key->h.flags)) key 48 fs/nfsd/export.c path_put(&key->ek_path); key 49 fs/nfsd/export.c auth_domain_put(key->ek_client); key 50 fs/nfsd/export.c kfree_rcu(key, ek_rcu); key 81 fs/nfsd/export.c struct svc_expkey key; key 119 fs/nfsd/export.c key.h.flags = 0; key 120 fs/nfsd/export.c key.h.expiry_time = get_expiry(&mesg); key 121 fs/nfsd/export.c if (key.h.expiry_time == 0) key 124 fs/nfsd/export.c key.ek_client = dom; key 125 fs/nfsd/export.c key.ek_fsidtype = fsidtype; key 126 fs/nfsd/export.c memcpy(key.ek_fsid, buf, len); key 128 fs/nfsd/export.c ek = svc_expkey_lookup(cd, &key); key 141 fs/nfsd/export.c set_bit(CACHE_NEGATIVE, &key.h.flags); key 142 fs/nfsd/export.c ek = svc_expkey_update(cd, &key, ek); key 146 fs/nfsd/export.c err = kern_path(buf, 0, &key.ek_path); key 152 fs/nfsd/export.c ek = svc_expkey_update(cd, &key, ek); key 155 fs/nfsd/export.c path_put(&key.ek_path); key 821 fs/nfsd/export.c struct svc_expkey key, *ek; key 827 fs/nfsd/export.c key.ek_client = clp; key 828 fs/nfsd/export.c key.ek_fsidtype = fsid_type; key 829 fs/nfsd/export.c memcpy(key.ek_fsid, fsidv, key_len(fsid_type)); key 831 fs/nfsd/export.c ek = svc_expkey_lookup(cd, &key); key 844 fs/nfsd/export.c struct svc_export *exp, key; key 850 fs/nfsd/export.c key.ex_client = clp; key 851 fs/nfsd/export.c key.ex_path = *path; key 852 fs/nfsd/export.c key.cd = cd; key 854 fs/nfsd/export.c exp = svc_export_lookup(&key); key 494 fs/nfsd/nfs4idmap.c struct ent *key, struct cache_detail *detail, struct ent **item) key 498 fs/nfsd/nfs4idmap.c *item = lookup_fn(detail, key); key 506 fs/nfsd/nfs4idmap.c *item = lookup_fn(detail, key); key 527 fs/nfsd/nfs4idmap.c struct ent *item, key = { key 533 fs/nfsd/nfs4idmap.c if (namelen + 1 > sizeof(key.name)) key 535 fs/nfsd/nfs4idmap.c memcpy(key.name, name, namelen); key 536 fs/nfsd/nfs4idmap.c key.name[namelen] = '\0'; key 537 fs/nfsd/nfs4idmap.c strlcpy(key.authname, rqst_authname(rqstp), sizeof(key.authname)); key 538 fs/nfsd/nfs4idmap.c ret = idmap_lookup(rqstp, nametoid_lookup, &key, nn->nametoid_cache, &item); key 565 fs/nfsd/nfs4idmap.c struct ent *item, key = { key 573 fs/nfsd/nfs4idmap.c strlcpy(key.authname, rqst_authname(rqstp), sizeof(key.authname)); key 574 fs/nfsd/nfs4idmap.c ret = idmap_lookup(rqstp, idtoname_lookup, &key, nn->idtoname_cache, &item); key 322 fs/nfsd/nfscache.c nfsd_cache_key_cmp(const struct svc_cacherep *key, key 325 fs/nfsd/nfscache.c if (key->c_key.k_xid == rp->c_key.k_xid && key 326 fs/nfsd/nfscache.c key->c_key.k_csum != rp->c_key.k_csum) key 329 fs/nfsd/nfscache.c return memcmp(&key->c_key, &rp->c_key, sizeof(key->c_key)); key 338 fs/nfsd/nfscache.c nfsd_cache_insert(struct nfsd_drc_bucket *b, struct svc_cacherep *key, key 341 fs/nfsd/nfscache.c struct svc_cacherep *rp, *ret = key; key 352 fs/nfsd/nfscache.c cmp = nfsd_cache_key_cmp(key, rp, nn); key 362 fs/nfsd/nfscache.c rb_link_node(&key->c_node, parent, p); key 363 fs/nfsd/nfscache.c rb_insert_color(&key->c_node, &b->rb_head); key 62 fs/nilfs2/bmap.c int nilfs_bmap_lookup_at_level(struct nilfs_bmap *bmap, __u64 key, int level, key 69 fs/nilfs2/bmap.c ret = bmap->b_ops->bop_lookup(bmap, key, level, ptrp); key 86 fs/nilfs2/bmap.c int nilfs_bmap_lookup_contig(struct nilfs_bmap *bmap, __u64 key, __u64 *ptrp, key 92 fs/nilfs2/bmap.c ret = bmap->b_ops->bop_lookup_contig(bmap, key, ptrp, maxblocks); key 98 fs/nilfs2/bmap.c static int nilfs_bmap_do_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) key 105 fs/nilfs2/bmap.c ret = bmap->b_ops->bop_check_insert(bmap, key); key 112 fs/nilfs2/bmap.c bmap, key, ptr, keys, ptrs, n); key 121 fs/nilfs2/bmap.c return bmap->b_ops->bop_insert(bmap, key, ptr); key 142 fs/nilfs2/bmap.c int nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec) key 147 fs/nilfs2/bmap.c ret = nilfs_bmap_do_insert(bmap, key, rec); key 153 fs/nilfs2/bmap.c static int nilfs_bmap_do_delete(struct nilfs_bmap *bmap, __u64 key) key 160 fs/nilfs2/bmap.c ret = bmap->b_ops->bop_check_delete(bmap, key); key 167 fs/nilfs2/bmap.c bmap, key, keys, ptrs, n); key 176 fs/nilfs2/bmap.c return bmap->b_ops->bop_delete(bmap, key); key 240 fs/nilfs2/bmap.c int nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key) key 245 fs/nilfs2/bmap.c ret = nilfs_bmap_do_delete(bmap, key); key 251 fs/nilfs2/bmap.c static int nilfs_bmap_do_truncate(struct nilfs_bmap *bmap, __u64 key) key 263 fs/nilfs2/bmap.c while (key <= lastkey) { key 292 fs/nilfs2/bmap.c int nilfs_bmap_truncate(struct nilfs_bmap *bmap, __u64 key) key 297 fs/nilfs2/bmap.c ret = nilfs_bmap_do_truncate(bmap, key); key 404 fs/nilfs2/bmap.c int nilfs_bmap_mark(struct nilfs_bmap *bmap, __u64 key, int level) key 412 fs/nilfs2/bmap.c ret = bmap->b_ops->bop_mark(bmap, key, level); key 446 fs/nilfs2/bmap.c __u64 key; key 448 fs/nilfs2/bmap.c key = page_index(bh->b_page) << (PAGE_SHIFT - key 451 fs/nilfs2/bmap.c key++; key 453 fs/nilfs2/bmap.c return key; key 456 fs/nilfs2/bmap.c __u64 nilfs_bmap_find_target_seq(const struct nilfs_bmap *bmap, __u64 key) key 460 fs/nilfs2/bmap.c diff = key - bmap->b_last_allocated_key; key 149 fs/nilfs2/bmap.h int nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec); key 150 fs/nilfs2/bmap.h int nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key); key 153 fs/nilfs2/bmap.h int nilfs_bmap_truncate(struct nilfs_bmap *bmap, __u64 key); key 167 fs/nilfs2/bmap.h static inline int nilfs_bmap_lookup(struct nilfs_bmap *bmap, __u64 key, key 170 fs/nilfs2/bmap.h return nilfs_bmap_lookup_at_level(bmap, key, 1, ptr); key 231 fs/nilfs2/bmap.h static inline void nilfs_bmap_set_target_v(struct nilfs_bmap *bmap, __u64 key, key 234 fs/nilfs2/bmap.h bmap->b_last_allocated_key = key; key 142 fs/nilfs2/btree.c nilfs_btree_node_set_key(struct nilfs_btree_node *node, int index, __u64 key) key 144 fs/nilfs2/btree.c *(nilfs_btree_node_dkeys(node) + index) = cpu_to_le64(key); key 239 fs/nilfs2/btree.c __u64 key, __u64 ptr, int ncmax) key 254 fs/nilfs2/btree.c dkeys[index] = cpu_to_le64(key); key 264 fs/nilfs2/btree.c __u64 key; key 272 fs/nilfs2/btree.c key = le64_to_cpu(dkeys[index]); key 276 fs/nilfs2/btree.c *keyp = key; key 291 fs/nilfs2/btree.c __u64 key, int *indexp) key 304 fs/nilfs2/btree.c if (nkey == key) { key 307 fs/nilfs2/btree.c } else if (nkey < key) { key 537 fs/nilfs2/btree.c __u64 key, __u64 *ptrp, int minlevel, key 550 fs/nilfs2/btree.c found = nilfs_btree_node_lookup(node, key, &index); key 576 fs/nilfs2/btree.c found = nilfs_btree_node_lookup(node, key, &index); key 675 fs/nilfs2/btree.c __u64 key, int level, __u64 *ptrp) key 684 fs/nilfs2/btree.c ret = nilfs_btree_do_lookup(btree, path, key, ptrp, level, 0); key 692 fs/nilfs2/btree.c __u64 key, __u64 *ptrp, key 708 fs/nilfs2/btree.c ret = nilfs_btree_do_lookup(btree, path, key, &ptr, level, 1); key 729 fs/nilfs2/btree.c key + cnt) key 751 fs/nilfs2/btree.c nilfs_btree_node_get_key(p.node, p.index) != key + cnt) key 778 fs/nilfs2/btree.c int level, __u64 key) key 784 fs/nilfs2/btree.c path[level].bp_index, key); key 794 fs/nilfs2/btree.c path[level].bp_index, key); key 1028 fs/nilfs2/btree.c __u64 key) key 1032 fs/nilfs2/btree.c ptr = nilfs_bmap_find_target_seq(btree, key); key 1048 fs/nilfs2/btree.c int *levelp, __u64 key, __u64 ptr, key 1063 fs/nilfs2/btree.c nilfs_btree_find_target_v(btree, path, key); key 1197 fs/nilfs2/btree.c int maxlevel, __u64 key, __u64 ptr) key 1205 fs/nilfs2/btree.c nilfs_bmap_set_target_v(btree, key, ptr); key 1212 fs/nilfs2/btree.c path[level].bp_op(btree, path, level, &key, &ptr); key 1219 fs/nilfs2/btree.c static int nilfs_btree_insert(struct nilfs_bmap *btree, __u64 key, __u64 ptr) key 1229 fs/nilfs2/btree.c ret = nilfs_btree_do_lookup(btree, path, key, NULL, key 1237 fs/nilfs2/btree.c ret = nilfs_btree_prepare_insert(btree, path, &level, key, ptr, &stats); key 1240 fs/nilfs2/btree.c nilfs_btree_commit_insert(btree, path, level, key, ptr); key 1569 fs/nilfs2/btree.c static int nilfs_btree_delete(struct nilfs_bmap *btree, __u64 key) key 1581 fs/nilfs2/btree.c ret = nilfs_btree_do_lookup(btree, path, key, NULL, key 1637 fs/nilfs2/btree.c static int nilfs_btree_check_delete(struct nilfs_bmap *btree, __u64 key) key 1673 fs/nilfs2/btree.c return (maxkey == key) && (nextmaxkey < NILFS_BMAP_LARGE_LOW); key 1726 fs/nilfs2/btree.c nilfs_btree_prepare_convert_and_insert(struct nilfs_bmap *btree, __u64 key, key 1741 fs/nilfs2/btree.c dreq->bpr_ptr = nilfs_btree_find_target_v(btree, NULL, key); key 1780 fs/nilfs2/btree.c __u64 key, __u64 ptr, key 1810 fs/nilfs2/btree.c nilfs_btree_node_insert(node, n, key, dreq->bpr_ptr, ncblk); key 1832 fs/nilfs2/btree.c nilfs_btree_node_insert(node, n, key, dreq->bpr_ptr, key 1839 fs/nilfs2/btree.c nilfs_bmap_set_target_v(btree, key, dreq->bpr_ptr); key 1852 fs/nilfs2/btree.c __u64 key, __u64 ptr, key 1873 fs/nilfs2/btree.c ret = nilfs_btree_prepare_convert_and_insert(btree, key, di, ni, &bh, key 1877 fs/nilfs2/btree.c nilfs_btree_commit_convert_and_insert(btree, key, ptr, keys, ptrs, n, key 2056 fs/nilfs2/btree.c __u64 key; key 2067 fs/nilfs2/btree.c key = nilfs_btree_node_get_key(node, 0); key 2070 fs/nilfs2/btree.c key = nilfs_bmap_data_get_key(btree, bh); key 2074 fs/nilfs2/btree.c ret = nilfs_btree_do_lookup(btree, path, key, NULL, level + 1, 0); key 2080 fs/nilfs2/btree.c (unsigned long long)key, level); key 2107 fs/nilfs2/btree.c __u64 key, ckey; key 2112 fs/nilfs2/btree.c key = nilfs_btree_node_get_key(node, 0); key 2119 fs/nilfs2/btree.c level, (unsigned long long)key, key 2129 fs/nilfs2/btree.c if (key < ckey) key 2180 fs/nilfs2/btree.c __u64 key; key 2205 fs/nilfs2/btree.c key = nilfs_btree_node_get_key(parent, path[level + 1].bp_index); key 2207 fs/nilfs2/btree.c binfo->bi_dat.bi_blkoff = cpu_to_le64(key); key 2222 fs/nilfs2/btree.c __u64 key; key 2236 fs/nilfs2/btree.c key = nilfs_btree_node_get_key(parent, path[level + 1].bp_index); key 2239 fs/nilfs2/btree.c binfo->bi_v.bi_blkoff = cpu_to_le64(key); key 2251 fs/nilfs2/btree.c __u64 key; key 2260 fs/nilfs2/btree.c key = nilfs_btree_node_get_key(node, 0); key 2263 fs/nilfs2/btree.c key = nilfs_bmap_data_get_key(btree, *bh); key 2267 fs/nilfs2/btree.c ret = nilfs_btree_do_lookup(btree, path, key, NULL, level + 1, 0); key 2289 fs/nilfs2/btree.c __u64 key; key 2299 fs/nilfs2/btree.c key = nilfs_btree_node_get_key(node, 0); key 2301 fs/nilfs2/btree.c key = nilfs_bmap_data_get_key(btree, *bh); key 2305 fs/nilfs2/btree.c binfo->bi_v.bi_blkoff = cpu_to_le64(key); key 2310 fs/nilfs2/btree.c static int nilfs_btree_mark(struct nilfs_bmap *btree, __u64 key, int level) key 2321 fs/nilfs2/btree.c ret = nilfs_btree_do_lookup(btree, path, key, &ptr, level + 1, 0); key 24 fs/nilfs2/direct.c nilfs_direct_get_ptr(const struct nilfs_bmap *direct, __u64 key) key 26 fs/nilfs2/direct.c return le64_to_cpu(*(nilfs_direct_dptrs(direct) + key)); key 30 fs/nilfs2/direct.c __u64 key, __u64 ptr) key 32 fs/nilfs2/direct.c *(nilfs_direct_dptrs(direct) + key) = cpu_to_le64(ptr); key 36 fs/nilfs2/direct.c __u64 key, int level, __u64 *ptrp) key 40 fs/nilfs2/direct.c if (key > NILFS_DIRECT_KEY_MAX || level != 1) key 42 fs/nilfs2/direct.c ptr = nilfs_direct_get_ptr(direct, key); key 51 fs/nilfs2/direct.c __u64 key, __u64 *ptrp, key 59 fs/nilfs2/direct.c if (key > NILFS_DIRECT_KEY_MAX) key 61 fs/nilfs2/direct.c ptr = nilfs_direct_get_ptr(direct, key); key 74 fs/nilfs2/direct.c NILFS_DIRECT_KEY_MAX - key + 1); key 76 fs/nilfs2/direct.c (ptr2 = nilfs_direct_get_ptr(direct, key + cnt)) != key 93 fs/nilfs2/direct.c nilfs_direct_find_target_v(const struct nilfs_bmap *direct, __u64 key) key 97 fs/nilfs2/direct.c ptr = nilfs_bmap_find_target_seq(direct, key); key 106 fs/nilfs2/direct.c static int nilfs_direct_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) key 113 fs/nilfs2/direct.c if (key > NILFS_DIRECT_KEY_MAX) key 115 fs/nilfs2/direct.c if (nilfs_direct_get_ptr(bmap, key) != NILFS_BMAP_INVALID_PTR) key 119 fs/nilfs2/direct.c req.bpr_ptr = nilfs_direct_find_target_v(bmap, key); key 129 fs/nilfs2/direct.c nilfs_direct_set_ptr(bmap, key, req.bpr_ptr); key 135 fs/nilfs2/direct.c nilfs_bmap_set_target_v(bmap, key, req.bpr_ptr); key 142 fs/nilfs2/direct.c static int nilfs_direct_delete(struct nilfs_bmap *bmap, __u64 key) key 148 fs/nilfs2/direct.c if (key > NILFS_DIRECT_KEY_MAX || key 149 fs/nilfs2/direct.c nilfs_direct_get_ptr(bmap, key) == NILFS_BMAP_INVALID_PTR) key 153 fs/nilfs2/direct.c req.bpr_ptr = nilfs_direct_get_ptr(bmap, key); key 158 fs/nilfs2/direct.c nilfs_direct_set_ptr(bmap, key, NILFS_BMAP_INVALID_PTR); key 167 fs/nilfs2/direct.c __u64 key; key 169 fs/nilfs2/direct.c for (key = start; key <= NILFS_DIRECT_KEY_MAX; key++) { key 170 fs/nilfs2/direct.c if (nilfs_direct_get_ptr(direct, key) != key 172 fs/nilfs2/direct.c *keyp = key; key 181 fs/nilfs2/direct.c __u64 key, lastkey; key 184 fs/nilfs2/direct.c for (key = NILFS_DIRECT_KEY_MIN; key <= NILFS_DIRECT_KEY_MAX; key++) key 185 fs/nilfs2/direct.c if (nilfs_direct_get_ptr(direct, key) != key 187 fs/nilfs2/direct.c lastkey = key; key 197 fs/nilfs2/direct.c static int nilfs_direct_check_insert(const struct nilfs_bmap *bmap, __u64 key) key 199 fs/nilfs2/direct.c return key > NILFS_DIRECT_KEY_MAX; key 205 fs/nilfs2/direct.c __u64 key; key 212 fs/nilfs2/direct.c for (key = 0; key < nitems; key++) { key 213 fs/nilfs2/direct.c ptr = nilfs_direct_get_ptr(direct, key); key 215 fs/nilfs2/direct.c keys[n] = key; key 224 fs/nilfs2/direct.c __u64 key, __u64 *keys, __u64 *ptrs, int n) key 232 fs/nilfs2/direct.c ret = bmap->b_ops->bop_delete(bmap, key); key 244 fs/nilfs2/direct.c dptrs[i] = (i != key) ? key 261 fs/nilfs2/direct.c __u64 key; key 269 fs/nilfs2/direct.c key = nilfs_bmap_data_get_key(bmap, bh); key 270 fs/nilfs2/direct.c ptr = nilfs_direct_get_ptr(bmap, key); key 280 fs/nilfs2/direct.c nilfs_direct_set_ptr(bmap, key, newreq.pr_entry_nr); key 288 fs/nilfs2/direct.c __u64 key, __u64 ptr, key 302 fs/nilfs2/direct.c binfo->bi_v.bi_blkoff = cpu_to_le64(key); key 308 fs/nilfs2/direct.c __u64 key, __u64 ptr, key 313 fs/nilfs2/direct.c nilfs_direct_set_ptr(direct, key, blocknr); key 315 fs/nilfs2/direct.c binfo->bi_dat.bi_blkoff = cpu_to_le64(key); key 326 fs/nilfs2/direct.c __u64 key; key 329 fs/nilfs2/direct.c key = nilfs_bmap_data_get_key(bmap, *bh); key 330 fs/nilfs2/direct.c if (unlikely(key > NILFS_DIRECT_KEY_MAX)) { key 333 fs/nilfs2/direct.c bmap->b_inode->i_ino, (unsigned long long)key); key 336 fs/nilfs2/direct.c ptr = nilfs_direct_get_ptr(bmap, key); key 345 fs/nilfs2/direct.c nilfs_direct_assign_v(bmap, key, ptr, bh, blocknr, binfo) : key 346 fs/nilfs2/direct.c nilfs_direct_assign_p(bmap, key, ptr, bh, blocknr, binfo); key 143 fs/ntfs/dir.c (ntfschar*)&ie->key.file_name.file_name, key 144 fs/ntfs/dir.c ie->key.file_name.file_name_length, key 157 fs/ntfs/dir.c if (ie->key.file_name.file_name_type == FILE_NAME_DOS) { key 191 fs/ntfs/dir.c ie->key.file_name.file_name_type && key 193 fs/ntfs/dir.c (ntfschar*)&ie->key.file_name.file_name, key 194 fs/ntfs/dir.c ie->key.file_name.file_name_length, key 197 fs/ntfs/dir.c u8 type = ie->key.file_name.file_name_type; key 198 fs/ntfs/dir.c u8 len = ie->key.file_name.file_name_length; key 223 fs/ntfs/dir.c memcpy(name->name, ie->key.file_name.file_name, key 234 fs/ntfs/dir.c (ntfschar*)&ie->key.file_name.file_name, key 235 fs/ntfs/dir.c ie->key.file_name.file_name_length, 1, key 253 fs/ntfs/dir.c (ntfschar*)&ie->key.file_name.file_name, key 254 fs/ntfs/dir.c ie->key.file_name.file_name_length, 1, key 403 fs/ntfs/dir.c (ntfschar*)&ie->key.file_name.file_name, key 404 fs/ntfs/dir.c ie->key.file_name.file_name_length, key 417 fs/ntfs/dir.c if (ie->key.file_name.file_name_type == FILE_NAME_DOS) { key 451 fs/ntfs/dir.c ie->key.file_name.file_name_type && key 453 fs/ntfs/dir.c (ntfschar*)&ie->key.file_name.file_name, key 454 fs/ntfs/dir.c ie->key.file_name.file_name_length, key 457 fs/ntfs/dir.c u8 type = ie->key.file_name.file_name_type; key 458 fs/ntfs/dir.c u8 len = ie->key.file_name.file_name_length; key 485 fs/ntfs/dir.c memcpy(name->name, ie->key.file_name.file_name, key 496 fs/ntfs/dir.c (ntfschar*)&ie->key.file_name.file_name, key 497 fs/ntfs/dir.c ie->key.file_name.file_name_length, 1, key 515 fs/ntfs/dir.c (ntfschar*)&ie->key.file_name.file_name, key 516 fs/ntfs/dir.c ie->key.file_name.file_name_length, 1, key 696 fs/ntfs/dir.c ic = ie->key.file_name.file_name_type ? IGNORE_CASE : key 705 fs/ntfs/dir.c (ntfschar*)&ie->key.file_name.file_name, key 706 fs/ntfs/dir.c ie->key.file_name.file_name_length, ic, key 719 fs/ntfs/dir.c (ntfschar*)&ie->key.file_name.file_name, key 720 fs/ntfs/dir.c ie->key.file_name.file_name_length, 1, key 738 fs/ntfs/dir.c (ntfschar*)&ie->key.file_name.file_name, key 739 fs/ntfs/dir.c ie->key.file_name.file_name_length, 1, key 883 fs/ntfs/dir.c ic = ie->key.file_name.file_name_type ? IGNORE_CASE : key 892 fs/ntfs/dir.c (ntfschar*)&ie->key.file_name.file_name, key 893 fs/ntfs/dir.c ie->key.file_name.file_name_length, ic, key 906 fs/ntfs/dir.c (ntfschar*)&ie->key.file_name.file_name, key 907 fs/ntfs/dir.c ie->key.file_name.file_name_length, 1, key 925 fs/ntfs/dir.c (ntfschar*)&ie->key.file_name.file_name, key 926 fs/ntfs/dir.c ie->key.file_name.file_name_length, 1, key 1020 fs/ntfs/dir.c name_type = ie->key.file_name.file_name_type; key 1034 fs/ntfs/dir.c name_len = ntfs_ucstonls(vol, (ntfschar*)&ie->key.file_name.file_name, key 1035 fs/ntfs/dir.c ie->key.file_name.file_name_length, &name, key 1042 fs/ntfs/dir.c if (ie->key.file_name.file_attributes & key 105 fs/ntfs/index.c int ntfs_index_lookup(const void *key, const int key_len, key 128 fs/ntfs/index.c BUG_ON(!key); key 192 fs/ntfs/index.c if ((key_len == le16_to_cpu(ie->key_length)) && !memcmp(key, key 193 fs/ntfs/index.c &ie->key, key_len)) { key 213 fs/ntfs/index.c rc = ntfs_collate(vol, idx_ni->itype.index.collation_rule, key, key 214 fs/ntfs/index.c key_len, &ie->key, le16_to_cpu(ie->key_length)); key 362 fs/ntfs/index.c if ((key_len == le16_to_cpu(ie->key_length)) && !memcmp(key, key 363 fs/ntfs/index.c &ie->key, key_len)) { key 376 fs/ntfs/index.c rc = ntfs_collate(vol, idx_ni->itype.index.collation_rule, key, key 377 fs/ntfs/index.c key_len, &ie->key, le16_to_cpu(ie->key_length)); key 77 fs/ntfs/index.h extern int ntfs_index_lookup(const void *key, const int key_len, key 2261 fs/ntfs/layout.h } __attribute__ ((__packed__)) key; key 353 fs/ocfs2/cluster/heartbeat.c static int o2hb_send_nego_msg(int key, int type, u8 target) key 360 fs/ocfs2/cluster/heartbeat.c ret = o2net_send_message(type, key, &msg, sizeof(msg), key 79 fs/ocfs2/cluster/tcp.c be32_to_cpu(__hdr->sys_status), be32_to_cpu(__hdr->key), \ key 741 fs/ocfs2/cluster/tcp.c u32 key) key 743 fs/ocfs2/cluster/tcp.c int ret = memcmp(&nmh->nh_key, &key, sizeof(key)); key 752 fs/ocfs2/cluster/tcp.c o2net_handler_tree_lookup(u32 msg_type, u32 key, struct rb_node ***ret_p, key 763 fs/ocfs2/cluster/tcp.c cmp = o2net_handler_cmp(nmh, msg_type, key); key 798 fs/ocfs2/cluster/tcp.c int o2net_register_handler(u32 msg_type, u32 key, u32 max_len, key 838 fs/ocfs2/cluster/tcp.c nmh->nh_key = key; key 845 fs/ocfs2/cluster/tcp.c if (o2net_handler_tree_lookup(msg_type, key, &p, &parent)) key 853 fs/ocfs2/cluster/tcp.c func, msg_type, key); key 855 fs/ocfs2/cluster/tcp.c mlog_bug_on_msg(o2net_handler_tree_lookup(msg_type, key, &p, key 858 fs/ocfs2/cluster/tcp.c "for type %u key %08x\n", msg_type, key); key 886 fs/ocfs2/cluster/tcp.c static struct o2net_msg_handler *o2net_handler_get(u32 msg_type, u32 key) key 891 fs/ocfs2/cluster/tcp.c nmh = o2net_handler_tree_lookup(msg_type, key, NULL, NULL); key 960 fs/ocfs2/cluster/tcp.c static void o2net_init_msg(struct o2net_msg *msg, u16 data_len, u16 msg_type, u32 key) key 968 fs/ocfs2/cluster/tcp.c msg->key = cpu_to_be32(key); key 1014 fs/ocfs2/cluster/tcp.c int o2net_send_message_vec(u32 msg_type, u32 key, struct kvec *caller_vec, key 1028 fs/ocfs2/cluster/tcp.c o2net_init_nst(&nst, msg_type, key, current, target_node); key 1079 fs/ocfs2/cluster/tcp.c o2net_init_msg(msg, caller_bytes, msg_type, key); key 1132 fs/ocfs2/cluster/tcp.c int o2net_send_message(u32 msg_type, u32 key, void *data, u32 len, key 1139 fs/ocfs2/cluster/tcp.c return o2net_send_message_vec(msg_type, key, &vec, 1, key 1207 fs/ocfs2/cluster/tcp.c be32_to_cpu(hdr->key)); key 1210 fs/ocfs2/cluster/tcp.c be16_to_cpu(hdr->msg_type), be32_to_cpu(hdr->key)); key 1224 fs/ocfs2/cluster/tcp.c sc->sc_msg_key = be32_to_cpu(hdr->key); key 33 fs/ocfs2/cluster/tcp.h __be32 key; key 84 fs/ocfs2/cluster/tcp.h int o2net_send_message(u32 msg_type, u32 key, void *data, u32 len, key 86 fs/ocfs2/cluster/tcp.h int o2net_send_message_vec(u32 msg_type, u32 key, struct kvec *vec, key 89 fs/ocfs2/cluster/tcp.h int o2net_register_handler(u32 msg_type, u32 key, u32 max_len, key 185 fs/ocfs2/dlm/dlmapi.h struct dlm_ctxt * dlm_register_domain(const char *domain, u32 key, key 464 fs/ocfs2/dlm/dlmast.c ret = o2net_send_message_vec(DLM_PROXY_AST_MSG, dlm->key, vec, veclen, key 126 fs/ocfs2/dlm/dlmcommon.h u32 key; key 386 fs/ocfs2/dlm/dlmconvert.c tmpret = o2net_send_message_vec(DLM_CONVERT_LOCK_MSG, dlm->key, key 404 fs/ocfs2/dlm/dlmconvert.c "node %u\n", tmpret, DLM_CONVERT_LOCK_MSG, dlm->key, key 688 fs/ocfs2/dlm/dlmdebug.c dlm->name, dlm->key, dlm->dlm_locking_proto.pv_major, key 588 fs/ocfs2/dlm/dlmdomain.c status = o2net_send_message(msg_type, dlm->key, &leave_msg, key 1730 fs/ocfs2/dlm/dlmdomain.c status = o2net_register_handler(DLM_MASTER_REQUEST_MSG, dlm->key, key 1737 fs/ocfs2/dlm/dlmdomain.c status = o2net_register_handler(DLM_ASSERT_MASTER_MSG, dlm->key, key 1745 fs/ocfs2/dlm/dlmdomain.c status = o2net_register_handler(DLM_CREATE_LOCK_MSG, dlm->key, key 1752 fs/ocfs2/dlm/dlmdomain.c status = o2net_register_handler(DLM_CONVERT_LOCK_MSG, dlm->key, key 1759 fs/ocfs2/dlm/dlmdomain.c status = o2net_register_handler(DLM_UNLOCK_LOCK_MSG, dlm->key, key 1766 fs/ocfs2/dlm/dlmdomain.c status = o2net_register_handler(DLM_PROXY_AST_MSG, dlm->key, key 1773 fs/ocfs2/dlm/dlmdomain.c status = o2net_register_handler(DLM_EXIT_DOMAIN_MSG, dlm->key, key 1780 fs/ocfs2/dlm/dlmdomain.c status = o2net_register_handler(DLM_DEREF_LOCKRES_MSG, dlm->key, key 1787 fs/ocfs2/dlm/dlmdomain.c status = o2net_register_handler(DLM_MIGRATE_REQUEST_MSG, dlm->key, key 1794 fs/ocfs2/dlm/dlmdomain.c status = o2net_register_handler(DLM_MIG_LOCKRES_MSG, dlm->key, key 1801 fs/ocfs2/dlm/dlmdomain.c status = o2net_register_handler(DLM_MASTER_REQUERY_MSG, dlm->key, key 1808 fs/ocfs2/dlm/dlmdomain.c status = o2net_register_handler(DLM_LOCK_REQUEST_MSG, dlm->key, key 1815 fs/ocfs2/dlm/dlmdomain.c status = o2net_register_handler(DLM_RECO_DATA_DONE_MSG, dlm->key, key 1822 fs/ocfs2/dlm/dlmdomain.c status = o2net_register_handler(DLM_BEGIN_RECO_MSG, dlm->key, key 1829 fs/ocfs2/dlm/dlmdomain.c status = o2net_register_handler(DLM_FINALIZE_RECO_MSG, dlm->key, key 1836 fs/ocfs2/dlm/dlmdomain.c status = o2net_register_handler(DLM_BEGIN_EXIT_DOMAIN_MSG, dlm->key, key 1843 fs/ocfs2/dlm/dlmdomain.c status = o2net_register_handler(DLM_DEREF_LOCKRES_DONE, dlm->key, key 1949 fs/ocfs2/dlm/dlmdomain.c u32 key) key 1990 fs/ocfs2/dlm/dlmdomain.c dlm->key = key; key 2104 fs/ocfs2/dlm/dlmdomain.c u32 key, key 2164 fs/ocfs2/dlm/dlmdomain.c new_ctxt = dlm_alloc_ctxt(domain, key); key 301 fs/ocfs2/dlm/dlmlock.c tmpret = o2net_send_message(DLM_CREATE_LOCK_MSG, dlm->key, &create, key 1324 fs/ocfs2/dlm/dlmmaster.c ret = o2net_send_message(DLM_MASTER_REQUEST_MSG, dlm->key, &request, key 1687 fs/ocfs2/dlm/dlmmaster.c tmpret = o2net_send_message(DLM_ASSERT_MASTER_MSG, dlm->key, key 1692 fs/ocfs2/dlm/dlmmaster.c DLM_ASSERT_MASTER_MSG, dlm->key, to); key 2233 fs/ocfs2/dlm/dlmmaster.c ret = o2net_send_message(DLM_DEREF_LOCKRES_MSG, dlm->key, key 2427 fs/ocfs2/dlm/dlmmaster.c ret = o2net_send_message(DLM_DEREF_LOCKRES_DONE, dlm->key, key 3059 fs/ocfs2/dlm/dlmmaster.c ret = o2net_send_message(DLM_MIGRATE_REQUEST_MSG, dlm->key, key 806 fs/ocfs2/dlm/dlmrecovery.c ret = o2net_send_message(DLM_LOCK_REQUEST_MSG, dlm->key, key 963 fs/ocfs2/dlm/dlmrecovery.c ret = o2net_send_message(DLM_RECO_DATA_DONE_MSG, dlm->key, &done_msg, key 1132 fs/ocfs2/dlm/dlmrecovery.c ret = o2net_send_message(DLM_MIG_LOCKRES_MSG, dlm->key, mres, key 1681 fs/ocfs2/dlm/dlmrecovery.c ret = o2net_send_message(DLM_MASTER_REQUERY_MSG, dlm->key, key 1686 fs/ocfs2/dlm/dlmrecovery.c dlm->key, nodenum); key 2713 fs/ocfs2/dlm/dlmrecovery.c ret = o2net_send_message(DLM_BEGIN_RECO_MSG, dlm->key, key 2867 fs/ocfs2/dlm/dlmrecovery.c ret = o2net_send_message(DLM_FINALIZE_RECO_MSG, dlm->key, key 2874 fs/ocfs2/dlm/dlmrecovery.c dlm->key, nodenum); key 352 fs/ocfs2/dlm/dlmunlock.c tmpret = o2net_send_message_vec(DLM_UNLOCK_LOCK_MSG, dlm->key, key 361 fs/ocfs2/dlm/dlmunlock.c "node %u\n", tmpret, DLM_UNLOCK_LOCK_MSG, dlm->key, owner); key 537 fs/ocfs2/dlmglue.c res->l_lockdep_map.key = NULL; key 1652 fs/ocfs2/dlmglue.c if (!ret && lockres->l_lockdep_map.key != NULL) { key 1689 fs/ocfs2/dlmglue.c if (lockres->l_lockdep_map.key != NULL) key 157 fs/ocfs2/sysfile.c OCFS2_I(inode)->ip_inode_lockres.l_lockdep_map.key = NULL; key 17 fs/orangefs/acl.c char *key = NULL, *value = NULL; key 21 fs/orangefs/acl.c key = XATTR_NAME_POSIX_ACL_ACCESS; key 24 fs/orangefs/acl.c key = XATTR_NAME_POSIX_ACL_DEFAULT; key 44 fs/orangefs/acl.c key, key 46 fs/orangefs/acl.c ret = orangefs_inode_getxattr(inode, key, value, key 70 fs/orangefs/downcall.h char key[ORANGEFS_MAX_XATTR_LISTLEN * ORANGEFS_MAX_XATTR_NAMELEN]; key 229 fs/orangefs/orangefs-kernel.h char key[ORANGEFS_MAX_XATTR_NAMELEN]; key 218 fs/orangefs/protocol.h char key[ORANGEFS_MAX_XATTR_NAMELEN]; key 120 fs/orangefs/upcall.h char key[ORANGEFS_MAX_XATTR_NAMELEN]; key 141 fs/orangefs/upcall.h char key[ORANGEFS_MAX_XATTR_NAMELEN]; key 31 fs/orangefs/xattr.c static int is_reserved_key(const char *key, size_t size) key 37 fs/orangefs/xattr.c return strncmp(key, SYSTEM_ORANGEFS_KEY, SYSTEM_ORANGEFS_KEY_LEN) ? 1 : 0; key 54 fs/orangefs/xattr.c static unsigned int xattr_key(const char *key) key 57 fs/orangefs/xattr.c while (key) key 58 fs/orangefs/xattr.c i += *key++; key 63 fs/orangefs/xattr.c const char *key) key 69 fs/orangefs/xattr.c h = &orangefs_inode->xattr_cache[xattr_key(key)]; key 78 fs/orangefs/xattr.c if (!strcmp(cx->key, key)) key 153 fs/orangefs/xattr.c strcpy(new_op->upcall.req.getxattr.key, name); key 171 fs/orangefs/xattr.c (char *)new_op->upcall.req.getxattr.key); key 174 fs/orangefs/xattr.c strcpy(cx->key, name); key 179 fs/orangefs/xattr.c xattr_key(cx->key)); key 213 fs/orangefs/xattr.c upcall.req.getxattr.key, key 221 fs/orangefs/xattr.c strcpy(cx->key, name); key 228 fs/orangefs/xattr.c strcpy(cx->key, name); key 233 fs/orangefs/xattr.c xattr_key(cx->key)); key 268 fs/orangefs/xattr.c strcpy(new_op->upcall.req.removexattr.key, name); key 273 fs/orangefs/xattr.c (char *)new_op->upcall.req.removexattr.key, key 296 fs/orangefs/xattr.c if (!strcmp(cx->key, name)) { key 362 fs/orangefs/xattr.c strcpy(new_op->upcall.req.setxattr.keyval.key, name); key 370 fs/orangefs/xattr.c (char *)new_op->upcall.req.setxattr.keyval.key, key 387 fs/orangefs/xattr.c if (!strcmp(cx->key, name)) { key 485 fs/orangefs/xattr.c if (is_reserved_key(new_op->downcall.resp.listxattr.key + key 490 fs/orangefs/xattr.c i, new_op->downcall.resp.listxattr.key + key 493 fs/orangefs/xattr.c new_op->downcall.resp.listxattr.key + key_size, key 499 fs/orangefs/xattr.c i, new_op->downcall.resp.listxattr.key + key 769 fs/overlayfs/inode.c struct inode *inode, *key = d_inode(real); key 771 fs/overlayfs/inode.c inode = ilookup5(sb, (unsigned long) key, ovl_inode_test, key); key 786 fs/overlayfs/inode.c struct inode *key = d_inode(dir); key 790 fs/overlayfs/inode.c trap = ilookup5(sb, (unsigned long) key, ovl_inode_test, key); key 808 fs/overlayfs/inode.c struct inode *key = d_inode(dir); key 814 fs/overlayfs/inode.c trap = iget5_locked(sb, (unsigned long) key, ovl_inode_test, key 815 fs/overlayfs/inode.c ovl_inode_set, key); key 866 fs/overlayfs/inode.c struct inode *key) key 868 fs/overlayfs/inode.c return newinode ? inode_insert5(newinode, (unsigned long) key, key 869 fs/overlayfs/inode.c ovl_inode_test, ovl_inode_set, key) : key 870 fs/overlayfs/inode.c iget5_locked(sb, (unsigned long) key, key 871 fs/overlayfs/inode.c ovl_inode_test, ovl_inode_set, key); key 898 fs/overlayfs/inode.c struct inode *key = d_inode(bylower ? lowerdentry : key 902 fs/overlayfs/inode.c inode = ovl_iget5(sb, oip->newinode, key); key 926 fs/overlayfs/inode.c ino = key->i_ino; key 778 fs/reiserfs/bitmap.c hash_in = (char *)&hint->key.k_dir_id; key 782 fs/reiserfs/bitmap.c hash_in = (char *)&hint->key.k_dir_id; key 809 fs/reiserfs/bitmap.c dirid = hint->key.k_dir_id; key 938 fs/reiserfs/bitmap.c hash_in = (char *)&hint->key.k_dir_id; key 959 fs/reiserfs/bitmap.c struct in_core_key *key = &hint->key; key 963 fs/reiserfs/bitmap.c hint->beg + keyed_hash((char *)(&key->k_objectid), key 1007 fs/reiserfs/bitmap.c struct in_core_key *key = &hint->key; key 1011 fs/reiserfs/bitmap.c (keyed_hash((char *)(&key->k_dir_id), 4) % 100) * (hint->end / 100); key 151 fs/reiserfs/fix_node.c struct reiserfs_key *key; key 153 fs/reiserfs/fix_node.c key = internal_key(tb->CFR[0], tb->rkey[0]); key 154 fs/reiserfs/fix_node.c if (op_is_left_mergeable(key, Sh->b_size) key 161 fs/reiserfs/fix_node.c if (op_is_left_mergeable(key, Sh->b_size) && key 181 fs/reiserfs/fix_node.c key, vn->vn_affected_item_num, key 1006 fs/reiserfs/fix_node.c static void decrement_key(struct cpu_key *key) key 1009 fs/reiserfs/fix_node.c item_ops[cpu_key_k_type(key)]->decrement_key(key); key 212 fs/reiserfs/ibalance.c struct reiserfs_key *key; key 246 fs/reiserfs/ibalance.c key = internal_key(cur, first_i); key 247 fs/reiserfs/ibalance.c memmove(key, key + del_num, key 311 fs/reiserfs/ibalance.c struct reiserfs_key *key; key 351 fs/reiserfs/ibalance.c key = internal_key(dest, dest_order); key 352 fs/reiserfs/ibalance.c memmove(key + cpy_num - 1, key, key 357 fs/reiserfs/ibalance.c memcpy(key, internal_key(src, src_order), KEY_SIZE * (cpy_num - 1)); key 437 fs/reiserfs/ibalance.c struct reiserfs_key *key; key 456 fs/reiserfs/ibalance.c key = internal_key(dest, dest_position_before); key 457 fs/reiserfs/ibalance.c memmove(key + 1, key, key 461 fs/reiserfs/ibalance.c memcpy(key, internal_key(src, src_position), KEY_SIZE); key 760 fs/reiserfs/ibalance.c static void replace_lkey(struct tree_balance *tb, int h, struct item_head *key) key 769 fs/reiserfs/ibalance.c memcpy(internal_key(tb->CFL[h], tb->lkey[h]), key, KEY_SIZE); key 775 fs/reiserfs/ibalance.c static void replace_rkey(struct tree_balance *tb, int h, struct item_head *key) key 784 fs/reiserfs/ibalance.c memcpy(internal_key(tb->CFR[h], tb->rkey[h]), key, KEY_SIZE); key 111 fs/reiserfs/inode.c static void _make_cpu_key(struct cpu_key *key, int version, __u32 dirid, key 114 fs/reiserfs/inode.c key->version = version; key 116 fs/reiserfs/inode.c key->on_disk_key.k_dir_id = dirid; key 117 fs/reiserfs/inode.c key->on_disk_key.k_objectid = objectid; key 118 fs/reiserfs/inode.c set_cpu_key_k_offset(key, offset); key 119 fs/reiserfs/inode.c set_cpu_key_k_type(key, type); key 120 fs/reiserfs/inode.c key->key_length = length; key 127 fs/reiserfs/inode.c void make_cpu_key(struct cpu_key *key, struct inode *inode, loff_t offset, key 130 fs/reiserfs/inode.c _make_cpu_key(key, get_inode_item_key_version(inode), key 137 fs/reiserfs/inode.c inline void make_le_item_head(struct item_head *ih, const struct cpu_key *key, key 142 fs/reiserfs/inode.c if (key) { key 143 fs/reiserfs/inode.c ih->ih_key.k_dir_id = cpu_to_le32(key->on_disk_key.k_dir_id); key 145 fs/reiserfs/inode.c cpu_to_le32(key->on_disk_key.k_objectid); key 289 fs/reiserfs/inode.c struct cpu_key key; key 301 fs/reiserfs/inode.c make_cpu_key(&key, inode, key 305 fs/reiserfs/inode.c result = search_for_position_by_key(inode->i_sb, &key, &path); key 390 fs/reiserfs/inode.c offset = (cpu_key_k_offset(&key) - 1) & (PAGE_SIZE - 1); key 441 fs/reiserfs/inode.c set_cpu_key_k_offset(&key, cpu_key_k_offset(&key) + chars); key 442 fs/reiserfs/inode.c result = search_for_position_by_key(inode->i_sb, &key, &path); key 665 fs/reiserfs/inode.c struct cpu_key key; key 729 fs/reiserfs/inode.c make_cpu_key(&key, inode, new_offset, TYPE_ANY, 3 /*key length */ ); key 741 fs/reiserfs/inode.c retval = search_for_position_by_key(inode->i_sb, &key, &path); key 856 fs/reiserfs/inode.c make_le_item_head(&tmp_ih, &key, version, 1, key 864 fs/reiserfs/inode.c if (cpu_key_k_offset(&key) == 1) { key 871 fs/reiserfs/inode.c tmp_key = key; /* ;) */ key 900 fs/reiserfs/inode.c if (tail_offset == cpu_key_k_offset(&key)) { key 1036 fs/reiserfs/inode.c RFALSE(cpu_key_k_offset(&tmp_key) > cpu_key_k_offset(&key), key 1040 fs/reiserfs/inode.c ((cpu_key_k_offset(&key) - key 1125 fs/reiserfs/inode.c retval = search_for_position_by_key(inode->i_sb, &key, &path); key 1132 fs/reiserfs/inode.c "%K should not be found", &key); key 1450 fs/reiserfs/inode.c struct cpu_key key; key 1460 fs/reiserfs/inode.c make_cpu_key(&key, inode, SD_OFFSET, TYPE_STAT_DATA, 3); key 1465 fs/reiserfs/inode.c retval = search_item(inode->i_sb, &key, &path); key 1469 fs/reiserfs/inode.c "update %K stat data", &key); key 1546 fs/reiserfs/inode.c struct cpu_key key; key 1556 fs/reiserfs/inode.c key.version = KEY_FORMAT_3_5; key 1557 fs/reiserfs/inode.c key.on_disk_key.k_dir_id = dirino; key 1558 fs/reiserfs/inode.c key.on_disk_key.k_objectid = inode->i_ino; key 1559 fs/reiserfs/inode.c key.on_disk_key.k_offset = 0; key 1560 fs/reiserfs/inode.c key.on_disk_key.k_type = 0; key 1563 fs/reiserfs/inode.c retval = search_item(inode->i_sb, &key, &path_to_sd); key 1567 fs/reiserfs/inode.c "stat data of %K", &key); key 1606 fs/reiserfs/inode.c &key); key 1642 fs/reiserfs/inode.c struct inode *reiserfs_iget(struct super_block *s, const struct cpu_key *key) key 1648 fs/reiserfs/inode.c args.objectid = key->on_disk_key.k_objectid; key 1649 fs/reiserfs/inode.c args.dirid = key->on_disk_key.k_dir_id; key 1651 fs/reiserfs/inode.c inode = iget5_locked(s, key->on_disk_key.k_objectid, key 1663 fs/reiserfs/inode.c if (comp_short_keys(INODE_PKEY(inode), key) || is_bad_inode(inode)) { key 1675 fs/reiserfs/inode.c struct cpu_key key; key 1678 fs/reiserfs/inode.c key.on_disk_key.k_objectid = objectid; key 1679 fs/reiserfs/inode.c key.on_disk_key.k_dir_id = dir_id; key 1681 fs/reiserfs/inode.c inode = reiserfs_iget(sb, &key); key 1812 fs/reiserfs/inode.c struct cpu_key key; key 1817 fs/reiserfs/inode.c _make_cpu_key(&key, KEY_FORMAT_3_5, le32_to_cpu(ih->ih_key.k_dir_id), key 1845 fs/reiserfs/inode.c retval = search_item(sb, &key, path); key 1860 fs/reiserfs/inode.c return reiserfs_insert_item(th, path, &key, ih, inode, body); key 1874 fs/reiserfs/inode.c struct cpu_key key; key 1879 fs/reiserfs/inode.c _make_cpu_key(&key, KEY_FORMAT_3_5, key 1888 fs/reiserfs/inode.c retval = search_item(sb, &key, path); key 1903 fs/reiserfs/inode.c return reiserfs_insert_item(th, path, &key, ih, inode, symname); key 1937 fs/reiserfs/inode.c struct cpu_key key; key 2022 fs/reiserfs/inode.c _make_cpu_key(&key, KEY_FORMAT_3_6, le32_to_cpu(ih.ih_key.k_dir_id), key 2027 fs/reiserfs/inode.c retval = search_item(sb, &key, &path_to_key); key 2068 fs/reiserfs/inode.c reiserfs_insert_item(th, &path_to_key, &key, &ih, inode, key 2378 fs/reiserfs/inode.c struct cpu_key key; key 2402 fs/reiserfs/inode.c make_cpu_key(&key, inode, byte_offset, TYPE_ANY, 3); key 2405 fs/reiserfs/inode.c retval = search_for_position_by_key(inode->i_sb, &key, &path); key 2471 fs/reiserfs/inode.c set_cpu_key_k_offset(&key, key 2472 fs/reiserfs/inode.c cpu_key_k_offset(&key) + key 24 fs/reiserfs/item_ops.c static void sd_decrement_key(struct cpu_key *key) key 26 fs/reiserfs/item_ops.c key->on_disk_key.k_objectid--; key 27 fs/reiserfs/item_ops.c set_cpu_key_k_type(key, TYPE_ANY); key 28 fs/reiserfs/item_ops.c set_cpu_key_k_offset(key, (loff_t)(~0ULL >> 1)); key 31 fs/reiserfs/item_ops.c static int sd_is_left_mergeable(struct reiserfs_key *key, unsigned long bsize) key 120 fs/reiserfs/item_ops.c static void direct_decrement_key(struct cpu_key *key) key 122 fs/reiserfs/item_ops.c cpu_key_k_offset_dec(key); key 123 fs/reiserfs/item_ops.c if (cpu_key_k_offset(key) == 0) key 124 fs/reiserfs/item_ops.c set_cpu_key_k_type(key, TYPE_STAT_DATA); key 127 fs/reiserfs/item_ops.c static int direct_is_left_mergeable(struct reiserfs_key *key, key 130 fs/reiserfs/item_ops.c int version = le_key_version(key); key 131 fs/reiserfs/item_ops.c return ((le_key_k_offset(version, key) & (bsize - 1)) != 1); key 211 fs/reiserfs/item_ops.c static void indirect_decrement_key(struct cpu_key *key) key 213 fs/reiserfs/item_ops.c cpu_key_k_offset_dec(key); key 214 fs/reiserfs/item_ops.c if (cpu_key_k_offset(key) == 0) key 215 fs/reiserfs/item_ops.c set_cpu_key_k_type(key, TYPE_STAT_DATA); key 219 fs/reiserfs/item_ops.c static int indirect_is_left_mergeable(struct reiserfs_key *key, key 222 fs/reiserfs/item_ops.c int version = le_key_version(key); key 223 fs/reiserfs/item_ops.c return (le_key_k_offset(version, key) != 1); key 356 fs/reiserfs/item_ops.c static void direntry_decrement_key(struct cpu_key *key) key 358 fs/reiserfs/item_ops.c cpu_key_k_offset_dec(key); key 359 fs/reiserfs/item_ops.c if (cpu_key_k_offset(key) == 0) key 360 fs/reiserfs/item_ops.c set_cpu_key_k_type(key, TYPE_STAT_DATA); key 363 fs/reiserfs/item_ops.c static int direntry_is_left_mergeable(struct reiserfs_key *key, key 366 fs/reiserfs/item_ops.c if (le32_to_cpu(key->u.k_offset_v1.k_offset) == DOT_OFFSET) key 643 fs/reiserfs/item_ops.c static void errcatch_decrement_key(struct cpu_key *key) key 649 fs/reiserfs/item_ops.c static int errcatch_is_left_mergeable(struct reiserfs_key *key, key 120 fs/reiserfs/namei.c int search_by_entry_key(struct super_block *sb, const struct cpu_key *key, key 125 fs/reiserfs/namei.c retval = search_item(sb, key, path); key 152 fs/reiserfs/namei.c COMP_SHORT_KEYS(&de->de_ih->ih_key, key)) { key 156 fs/reiserfs/namei.c "as key %K", de->de_ih, key); key 164 fs/reiserfs/namei.c retval = bin_search_in_dir_item(de, cpu_key_k_offset(key)); key 226 fs/reiserfs/namei.c static int linear_search_in_dir_item(struct cpu_key *key, key 238 fs/reiserfs/namei.c GET_HASH_VALUE(cpu_key_k_offset(key))) { key 250 fs/reiserfs/namei.c GET_HASH_VALUE(cpu_key_k_offset(key))) { key 1295 fs/reiserfs/namei.c struct reiserfs_key *key) key 1298 fs/reiserfs/namei.c de->de_deh[de->de_entry_num].deh_dir_id = key->k_dir_id; key 1299 fs/reiserfs/namei.c de->de_deh[de->de_entry_num].deh_objectid = key->k_objectid; key 17 fs/reiserfs/prints.c static char *reiserfs_cpu_offset(struct cpu_key *key) key 19 fs/reiserfs/prints.c if (cpu_key_k_type(key) == TYPE_DIRENTRY) key 22 fs/reiserfs/prints.c GET_HASH_VALUE(cpu_key_k_offset(key)), key 24 fs/reiserfs/prints.c GET_GENERATION_NUMBER(cpu_key_k_offset(key))); key 27 fs/reiserfs/prints.c (unsigned long long)cpu_key_k_offset(key)); key 31 fs/reiserfs/prints.c static char *le_offset(struct reiserfs_key *key) key 35 fs/reiserfs/prints.c version = le_key_version(key); key 36 fs/reiserfs/prints.c if (le_key_k_type(version, key) == TYPE_DIRENTRY) key 39 fs/reiserfs/prints.c GET_HASH_VALUE(le_key_k_offset(version, key)), key 41 fs/reiserfs/prints.c GET_GENERATION_NUMBER(le_key_k_offset(version, key))); key 44 fs/reiserfs/prints.c (unsigned long long)le_key_k_offset(version, key)); key 48 fs/reiserfs/prints.c static char *cpu_type(struct cpu_key *key) key 50 fs/reiserfs/prints.c if (cpu_key_k_type(key) == TYPE_STAT_DATA) key 52 fs/reiserfs/prints.c if (cpu_key_k_type(key) == TYPE_DIRENTRY) key 54 fs/reiserfs/prints.c if (cpu_key_k_type(key) == TYPE_DIRECT) key 56 fs/reiserfs/prints.c if (cpu_key_k_type(key) == TYPE_INDIRECT) key 61 fs/reiserfs/prints.c static char *le_type(struct reiserfs_key *key) key 65 fs/reiserfs/prints.c version = le_key_version(key); key 67 fs/reiserfs/prints.c if (le_key_k_type(version, key) == TYPE_STAT_DATA) key 69 fs/reiserfs/prints.c if (le_key_k_type(version, key) == TYPE_DIRENTRY) key 71 fs/reiserfs/prints.c if (le_key_k_type(version, key) == TYPE_DIRECT) key 73 fs/reiserfs/prints.c if (le_key_k_type(version, key) == TYPE_INDIRECT) key 79 fs/reiserfs/prints.c static int scnprintf_le_key(char *buf, size_t size, struct reiserfs_key *key) key 81 fs/reiserfs/prints.c if (key) key 83 fs/reiserfs/prints.c le32_to_cpu(key->k_dir_id), key 84 fs/reiserfs/prints.c le32_to_cpu(key->k_objectid), le_offset(key), key 85 fs/reiserfs/prints.c le_type(key)); key 91 fs/reiserfs/prints.c static int scnprintf_cpu_key(char *buf, size_t size, struct cpu_key *key) key 93 fs/reiserfs/prints.c if (key) key 95 fs/reiserfs/prints.c key->on_disk_key.k_dir_id, key 96 fs/reiserfs/prints.c key->on_disk_key.k_objectid, key 97 fs/reiserfs/prints.c reiserfs_cpu_offset(key), cpu_type(key)); key 444 fs/reiserfs/prints.c struct reiserfs_key *key; key 467 fs/reiserfs/prints.c for (i = from, key = internal_key(bh, from), dc++; i < to; key 468 fs/reiserfs/prints.c i++, key++, dc++) { key 469 fs/reiserfs/prints.c reiserfs_printk("KEY %d: %k PTR %d: %y ", i, key, i + 1, dc); key 1475 fs/reiserfs/reiserfs.h const struct reiserfs_key *key) key 1478 fs/reiserfs/reiserfs.h le32_to_cpu(key->u.k_offset_v1.k_offset) : key 1479 fs/reiserfs/reiserfs.h offset_v2_k_offset(&(key->u.k_offset_v2)); key 1487 fs/reiserfs/reiserfs.h static inline loff_t le_key_k_type(int version, const struct reiserfs_key *key) key 1490 fs/reiserfs/reiserfs.h loff_t val = le32_to_cpu(key->u.k_offset_v1.k_uniqueness); key 1493 fs/reiserfs/reiserfs.h return offset_v2_k_type(&(key->u.k_offset_v2)); key 1501 fs/reiserfs/reiserfs.h static inline void set_le_key_k_offset(int version, struct reiserfs_key *key, key 1505 fs/reiserfs/reiserfs.h key->u.k_offset_v1.k_offset = cpu_to_le32(offset); key 1507 fs/reiserfs/reiserfs.h set_offset_v2_k_offset(&key->u.k_offset_v2, offset); key 1510 fs/reiserfs/reiserfs.h static inline void add_le_key_k_offset(int version, struct reiserfs_key *key, key 1513 fs/reiserfs/reiserfs.h set_le_key_k_offset(version, key, key 1514 fs/reiserfs/reiserfs.h le_key_k_offset(version, key) + offset); key 1527 fs/reiserfs/reiserfs.h static inline void set_le_key_k_type(int version, struct reiserfs_key *key, key 1532 fs/reiserfs/reiserfs.h key->u.k_offset_v1.k_uniqueness = cpu_to_le32(type); key 1534 fs/reiserfs/reiserfs.h set_offset_v2_k_type(&key->u.k_offset_v2, type); key 1542 fs/reiserfs/reiserfs.h static inline int is_direntry_le_key(int version, struct reiserfs_key *key) key 1544 fs/reiserfs/reiserfs.h return le_key_k_type(version, key) == TYPE_DIRENTRY; key 1547 fs/reiserfs/reiserfs.h static inline int is_direct_le_key(int version, struct reiserfs_key *key) key 1549 fs/reiserfs/reiserfs.h return le_key_k_type(version, key) == TYPE_DIRECT; key 1552 fs/reiserfs/reiserfs.h static inline int is_indirect_le_key(int version, struct reiserfs_key *key) key 1554 fs/reiserfs/reiserfs.h return le_key_k_type(version, key) == TYPE_INDIRECT; key 1557 fs/reiserfs/reiserfs.h static inline int is_statdata_le_key(int version, struct reiserfs_key *key) key 1559 fs/reiserfs/reiserfs.h return le_key_k_type(version, key) == TYPE_STAT_DATA; key 1584 fs/reiserfs/reiserfs.h static inline loff_t cpu_key_k_offset(const struct cpu_key *key) key 1586 fs/reiserfs/reiserfs.h return key->on_disk_key.k_offset; key 1589 fs/reiserfs/reiserfs.h static inline loff_t cpu_key_k_type(const struct cpu_key *key) key 1591 fs/reiserfs/reiserfs.h return key->on_disk_key.k_type; key 1594 fs/reiserfs/reiserfs.h static inline void set_cpu_key_k_offset(struct cpu_key *key, loff_t offset) key 1596 fs/reiserfs/reiserfs.h key->on_disk_key.k_offset = offset; key 1599 fs/reiserfs/reiserfs.h static inline void set_cpu_key_k_type(struct cpu_key *key, int type) key 1601 fs/reiserfs/reiserfs.h key->on_disk_key.k_type = type; key 1604 fs/reiserfs/reiserfs.h static inline void cpu_key_k_offset_dec(struct cpu_key *key) key 1606 fs/reiserfs/reiserfs.h key->on_disk_key.k_offset--; key 1609 fs/reiserfs/reiserfs.h #define is_direntry_cpu_key(key) (cpu_key_k_type (key) == TYPE_DIRENTRY) key 1610 fs/reiserfs/reiserfs.h #define is_direct_cpu_key(key) (cpu_key_k_type (key) == TYPE_DIRECT) key 1611 fs/reiserfs/reiserfs.h #define is_indirect_cpu_key(key) (cpu_key_k_type (key) == TYPE_INDIRECT) key 1612 fs/reiserfs/reiserfs.h #define is_statdata_cpu_key(key) (cpu_key_k_type (key) == TYPE_STAT_DATA) key 1620 fs/reiserfs/reiserfs.h #define I_K_KEY_IN_ITEM(ih, key, n_blocksize) \ key 1621 fs/reiserfs/reiserfs.h (!COMP_SHORT_KEYS(ih, key) && \ key 1622 fs/reiserfs/reiserfs.h I_OFF_BYTE_IN_ITEM(ih, k_offset(key), n_blocksize)) key 2193 fs/reiserfs/reiserfs.h struct reiserfs_key *key = reiserfs_node_data(bh); key 2195 fs/reiserfs/reiserfs.h return &key[item_num]; key 2549 fs/reiserfs/reiserfs.h struct in_core_key key; key 2649 fs/reiserfs/reiserfs.h #define op_is_left_mergeable(key,bsize) item_ops[le_key_k_type (le_key_version (key), key)]->is_left_mergeable (key, bsize) key 2982 fs/reiserfs/reiserfs.h static inline int le_key_version(const struct reiserfs_key *key) key 2986 fs/reiserfs/reiserfs.h type = offset_v2_k_type(&(key->u.k_offset_v2)); key 3006 fs/reiserfs/reiserfs.h #define search_item(s,key,path) search_by_key (s, key, path, DISK_LEAF_NODE_LEVEL) key 3018 fs/reiserfs/reiserfs.h const struct cpu_key *key, key 3024 fs/reiserfs/reiserfs.h const struct cpu_key *key, key 3030 fs/reiserfs/reiserfs.h struct cpu_key *key, key 3036 fs/reiserfs/reiserfs.h const struct cpu_key *key, key 3040 fs/reiserfs/reiserfs.h struct inode *inode, struct reiserfs_key *key); key 3083 fs/reiserfs/reiserfs.h void make_le_item_head(struct item_head *ih, const struct cpu_key *key, key 3086 fs/reiserfs/reiserfs.h struct inode *reiserfs_iget(struct super_block *s, const struct cpu_key *key); key 3111 fs/reiserfs/reiserfs.h int search_by_entry_key(struct super_block *sb, const struct cpu_key *key, key 3271 fs/reiserfs/reiserfs.h struct in_core_key key; key 3338 fs/reiserfs/reiserfs.h .key = tb->key, key 154 fs/reiserfs/stree.c static inline int bin_search(const void *key, /* Key to search for. */ key 175 fs/reiserfs/stree.c (struct cpu_key *)key)) { key 325 fs/reiserfs/stree.c const struct cpu_key *key, key 330 fs/reiserfs/stree.c RFALSE(!key || chk_path->path_length < FIRST_PATH_ELEMENT_OFFSET key 333 fs/reiserfs/stree.c key, chk_path->path_length); key 337 fs/reiserfs/stree.c if (comp_keys(get_lkey(chk_path, sb), key) == 1) key 341 fs/reiserfs/stree.c if (comp_keys(get_rkey(chk_path, sb), key) != 1) key 588 fs/reiserfs/stree.c int search_by_key(struct super_block *sb, const struct cpu_key *key, key 631 fs/reiserfs/stree.c key); key 688 fs/reiserfs/stree.c !key_in_buffer(search_path, key, sb))) { key 711 fs/reiserfs/stree.c RFALSE(comp_keys(&MAX_KEY, key) && key 712 fs/reiserfs/stree.c !key_in_buffer(search_path, key, sb), key 743 fs/reiserfs/stree.c retval = bin_search(key, item_head(bh, 0), key 802 fs/reiserfs/stree.c key->on_disk_key.k_objectid) { key 1384 fs/reiserfs/stree.c struct inode *inode, struct reiserfs_key *key) key 1397 fs/reiserfs/stree.c le_key2cpu_key(&cpu_key, key); key 1417 fs/reiserfs/stree.c (le_key_version(key), key)) == 0 key 1420 fs/reiserfs/stree.c (le_key_version(key), key 1421 fs/reiserfs/stree.c key)) == 1)) key 1423 fs/reiserfs/stree.c "%k not found", key); key 1452 fs/reiserfs/stree.c key2type(key)); key 2025 fs/reiserfs/stree.c const struct cpu_key *key) key 2033 fs/reiserfs/stree.c cpu_key_k_offset(key) key 2040 fs/reiserfs/stree.c pos_in_item(path), key); key 2046 fs/reiserfs/stree.c cpu_key_k_offset(key) key 2052 fs/reiserfs/stree.c found_ih, pos_in_item(path), key); key 2065 fs/reiserfs/stree.c const struct cpu_key *key, key 2087 fs/reiserfs/stree.c key2type(&key->on_disk_key)); key 2100 fs/reiserfs/stree.c s_paste_balance.key = key->on_disk_key; key 2115 fs/reiserfs/stree.c search_for_position_by_key(th->t_super, key, key 2124 fs/reiserfs/stree.c key); key 2129 fs/reiserfs/stree.c check_research_for_paste(search_path, key); key 2149 fs/reiserfs/stree.c key2type(&key->on_disk_key)); key 2165 fs/reiserfs/stree.c struct treepath *path, const struct cpu_key *key, key 2208 fs/reiserfs/stree.c s_ins_balance.key = key->on_disk_key; key 2224 fs/reiserfs/stree.c retval = search_item(th->t_super, key, path); key 2232 fs/reiserfs/stree.c key); key 194 fs/reiserfs/super.c struct reiserfs_key *key, int oid_free) key 204 fs/reiserfs/super.c reiserfs_delete_solid_item(&th, NULL, key); key 207 fs/reiserfs/super.c reiserfs_release_objectid(&th, le32_to_cpu(key->k_objectid)); key 434 fs/reiserfs/super.c struct cpu_key key; key 451 fs/reiserfs/super.c key.version = KEY_FORMAT_3_5; key 452 fs/reiserfs/super.c key.on_disk_key.k_dir_id = MAX_KEY_OBJECTID; key 453 fs/reiserfs/super.c key.on_disk_key.k_objectid = inode->i_ino; key 456 fs/reiserfs/super.c set_cpu_key_k_offset(&key, 1 + inode->i_sb->s_blocksize); key 457 fs/reiserfs/super.c set_cpu_key_k_type(&key, TYPE_DIRECT); key 460 fs/reiserfs/super.c make_le_item_head(&ih, &key, key.version, key 470 fs/reiserfs/super.c set_cpu_key_k_offset(&key, 1); key 471 fs/reiserfs/super.c set_cpu_key_k_type(&key, TYPE_INDIRECT); key 474 fs/reiserfs/super.c make_le_item_head(&ih, &key, key.version, 1, TYPE_INDIRECT, key 477 fs/reiserfs/super.c key.key_length = 3; key 480 fs/reiserfs/super.c retval = search_item(inode->i_sb, &key, &path); key 484 fs/reiserfs/super.c "search_by_key (%K) returned %d", &key, key 495 fs/reiserfs/super.c reiserfs_insert_item(th, &path, &key, &ih, NULL, (char *)&link); key 513 fs/reiserfs/super.c struct reiserfs_key key; key 522 fs/reiserfs/super.c key.k_dir_id = cpu_to_le32(MAX_KEY_OBJECTID); key 523 fs/reiserfs/super.c key.k_objectid = INODE_PKEY(inode)->k_objectid; key 526 fs/reiserfs/super.c set_le_key_k_offset(KEY_FORMAT_3_5, &key, key 528 fs/reiserfs/super.c set_le_key_k_type(KEY_FORMAT_3_5, &key, TYPE_DIRECT); key 531 fs/reiserfs/super.c set_le_key_k_offset(KEY_FORMAT_3_5, &key, 1); key 532 fs/reiserfs/super.c set_le_key_k_type(KEY_FORMAT_3_5, &key, TYPE_INDIRECT); key 540 fs/reiserfs/super.c reiserfs_delete_solid_item(&th, NULL, &key); key 1734 fs/reiserfs/super.c struct cpu_key key; key 1743 fs/reiserfs/super.c make_cpu_key(&key, inode, ~0, TYPE_DIRENTRY, 3); key 1744 fs/reiserfs/super.c retval = search_by_entry_key(s, &key, &path, &de); key 217 fs/reiserfs/tail_conversion.c struct cpu_key key; key 279 fs/reiserfs/tail_conversion.c key = *item_key; key 280 fs/reiserfs/tail_conversion.c set_cpu_key_k_type(&key, TYPE_DIRECT); key 281 fs/reiserfs/tail_conversion.c key.key_length = 4; key 283 fs/reiserfs/tail_conversion.c if (reiserfs_insert_item(th, path, &key, &s_ih, inode, key 184 fs/select.c static int __pollwake(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) key 207 fs/select.c return default_wake_function(&dummy_wait, mode, sync, key); key 210 fs/select.c static int pollwake(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) key 215 fs/select.c if (key && !(key_to_poll(key) & entry->key)) key 217 fs/select.c return __pollwake(wait, mode, sync, key); key 230 fs/select.c entry->key = p->_key; key 1244 fs/super.c void *key) key 1246 fs/super.c fc->s_fs_info = key; key 249 fs/sysfs/file.c struct lock_class_key *key = NULL; key 302 fs/sysfs/file.c key = attr->key ?: (struct lock_class_key *)&attr->skey; key 306 fs/sysfs/file.c size, ops, (void *)attr, ns, key); key 61 fs/sysv/itree.c sysv_zone_t key; key 69 fs/sysv/itree.c p->key = *(p->p = v); key 75 fs/sysv/itree.c while (from <= to && from->key == *from->p) key 100 fs/sysv/itree.c if (!p->key) key 103 fs/sysv/itree.c int block = block_to_cpu(SYSV_SB(sb), p->key); key 110 fs/sysv/itree.c if (!p->key) key 134 fs/sysv/itree.c branch[0].key = sysv_new_block(inode->i_sb); key 135 fs/sysv/itree.c if (branch[0].key) for (n = 1; n < num; n++) { key 139 fs/sysv/itree.c branch[n].key = sysv_new_block(inode->i_sb); key 140 fs/sysv/itree.c if (!branch[n].key) key 146 fs/sysv/itree.c parent = block_to_cpu(SYSV_SB(inode->i_sb), branch[n-1].key); key 152 fs/sysv/itree.c *branch[n].p = branch[n].key; key 164 fs/sysv/itree.c sysv_free_block(inode->i_sb, branch[i].key); key 179 fs/sysv/itree.c *where->p = where->key; key 199 fs/sysv/itree.c sysv_free_block(inode->i_sb, where[i].key); key 225 fs/sysv/itree.c chain[depth-1].key)); key 298 fs/sysv/itree.c if (!partial->key && *partial->p) { key 273 fs/ubifs/auth.c struct key *keyring_key; key 639 fs/ubifs/commit.c key_read(c, &br->key, &u_key); key 688 fs/ubifs/commit.c key_read(c, &br->key, &lower_key); key 691 fs/ubifs/commit.c key_read(c, &br->key, &upper_key); key 91 fs/ubifs/debug.c const union ubifs_key *key, char *buffer, int len) key 94 fs/ubifs/debug.c int type = key_type(c, key); key 100 fs/ubifs/debug.c (unsigned long)key_inum(c, key), key 106 fs/ubifs/debug.c (unsigned long)key_inum(c, key), key 107 fs/ubifs/debug.c get_key_type(type), key_hash(c, key)); key 111 fs/ubifs/debug.c (unsigned long)key_inum(c, key), key 112 fs/ubifs/debug.c get_key_type(type), key_block(c, key)); key 116 fs/ubifs/debug.c (unsigned long)key_inum(c, key), key 121 fs/ubifs/debug.c key->u32[0], key->u32[1]); key 228 fs/ubifs/debug.c union ubifs_key key; key 271 fs/ubifs/debug.c lowest_dent_key(c, &key, inode->i_ino); key 273 fs/ubifs/debug.c dent = ubifs_tnc_next_ent(c, &key, &nm); key 289 fs/ubifs/debug.c key_read(c, &dent->key, &key); key 297 fs/ubifs/debug.c union ubifs_key key; key 412 fs/ubifs/debug.c key_read(c, &ino->key, &key); key 414 fs/ubifs/debug.c dbg_snprintf_key(c, &key, key_buf, DBG_KEY_BUF_LEN)); key 447 fs/ubifs/debug.c key_read(c, &dent->key, &key); key 449 fs/ubifs/debug.c dbg_snprintf_key(c, &key, key_buf, DBG_KEY_BUF_LEN)); key 472 fs/ubifs/debug.c key_read(c, &dn->key, &key); key 474 fs/ubifs/debug.c dbg_snprintf_key(c, &key, key_buf, DBG_KEY_BUF_LEN)); key 508 fs/ubifs/debug.c key_read(c, &br->key, &key); key 512 fs/ubifs/debug.c dbg_snprintf_key(c, &key, key_buf, key 876 fs/ubifs/debug.c dbg_snprintf_key(c, &zbr->key, key_buf, key 881 fs/ubifs/debug.c dbg_snprintf_key(c, &zbr->key, key_buf, key 1106 fs/ubifs/debug.c union ubifs_key key; key 1117 fs/ubifs/debug.c lowest_dent_key(c, &key, dir->i_ino); key 1121 fs/ubifs/debug.c dent = ubifs_tnc_next_ent(c, &key, &nm); key 1136 fs/ubifs/debug.c key_read(c, &dent->key, &key); key 1177 fs/ubifs/debug.c union ubifs_key key; key 1180 fs/ubifs/debug.c ubifs_assert(c, !keys_cmp(c, &zbr1->key, &zbr2->key)); key 1206 fs/ubifs/debug.c key_read(c, &dent1->key, &key); key 1207 fs/ubifs/debug.c if (keys_cmp(c, &zbr1->key, &key)) { key 1209 fs/ubifs/debug.c zbr1->offs, dbg_snprintf_key(c, &key, key_buf, key 1212 fs/ubifs/debug.c dbg_snprintf_key(c, &zbr1->key, key_buf, key 1218 fs/ubifs/debug.c key_read(c, &dent2->key, &key); key 1219 fs/ubifs/debug.c if (keys_cmp(c, &zbr2->key, &key)) { key 1221 fs/ubifs/debug.c zbr1->offs, dbg_snprintf_key(c, &key, key_buf, key 1224 fs/ubifs/debug.c dbg_snprintf_key(c, &zbr2->key, key_buf, key 1242 fs/ubifs/debug.c dbg_snprintf_key(c, &key, key_buf, DBG_KEY_BUF_LEN)); key 1320 fs/ubifs/debug.c err = ubifs_search_zbranch(c, zp, &zbr->key, &n); key 1334 fs/ubifs/debug.c if (keys_cmp(c, &zp->zbranch[n].key, key 1335 fs/ubifs/debug.c &zp->zbranch[znode->iip].key)) { key 1346 fs/ubifs/debug.c min = &zbr->key; key 1347 fs/ubifs/debug.c cmp = keys_cmp(c, min, &znode->zbranch[0].key); key 1354 fs/ubifs/debug.c max = &zp->zbranch[n + 1].key; key 1362 fs/ubifs/debug.c &znode->zbranch[znode->child_cnt - 1].key); key 1381 fs/ubifs/debug.c cmp = keys_cmp(c, &znode->zbranch[n - 1].key, key 1382 fs/ubifs/debug.c &znode->zbranch[n].key); key 1389 fs/ubifs/debug.c if (!is_hash_key(c, &znode->zbranch[n].key)) { key 1512 fs/ubifs/debug.c !keys_cmp(c, &prev->zbranch[last].key, key 1513 fs/ubifs/debug.c &znode->zbranch[0].key)) { key 1797 fs/ubifs/debug.c ino_t inum = key_inum_flash(c, &ino->key); key 1908 fs/ubifs/debug.c union ubifs_key key; key 1918 fs/ubifs/debug.c ino_key_init(c, &key, inum); key 1919 fs/ubifs/debug.c err = ubifs_lookup_level0(c, &key, &znode, &n); key 1981 fs/ubifs/debug.c int err, type = key_type(c, &zbr->key); key 2038 fs/ubifs/debug.c inum = key_inum_flash(c, &dn->key); key 2048 fs/ubifs/debug.c blk_offs = key_block_flash(c, &dn->key); key 2084 fs/ubifs/debug.c inum = key_inum_flash(c, &dent->key); key 2143 fs/ubifs/debug.c union ubifs_key key; key 2218 fs/ubifs/debug.c ino_key_init(c, &key, fscki->inum); key 2219 fs/ubifs/debug.c err = ubifs_lookup_level0(c, &key, &znode, &n); key 2325 fs/ubifs/debug.c inuma = key_inum(c, &sa->key); key 2326 fs/ubifs/debug.c inumb = key_inum(c, &sb->key); key 2336 fs/ubifs/debug.c blka = key_block(c, &sa->key); key 2337 fs/ubifs/debug.c blkb = key_block(c, &sb->key); key 2415 fs/ubifs/debug.c inuma = key_inum(c, &sa->key); key 2416 fs/ubifs/debug.c inumb = key_inum(c, &sb->key); key 2426 fs/ubifs/debug.c hasha = key_block(c, &sa->key); key 2427 fs/ubifs/debug.c hashb = key_block(c, &sb->key); key 162 fs/ubifs/debug.h #define ubifs_dbg_msg_key(type, key, fmt, ...) do { \ key 166 fs/ubifs/debug.h dbg_snprintf_key(c, key, __tmp_key_buf, DBG_KEY_BUF_LEN)); \ key 173 fs/ubifs/debug.h #define dbg_jnlk(key, fmt, ...) \ key 174 fs/ubifs/debug.h ubifs_dbg_msg_key("jnl", key, fmt, ##__VA_ARGS__) key 177 fs/ubifs/debug.h #define dbg_tnck(key, fmt, ...) \ key 178 fs/ubifs/debug.h ubifs_dbg_msg_key("tnc", key, fmt, ##__VA_ARGS__) key 185 fs/ubifs/debug.h #define dbg_mntk(key, fmt, ...) \ key 186 fs/ubifs/debug.h ubifs_dbg_msg_key("mnt", key, fmt, ##__VA_ARGS__) key 241 fs/ubifs/debug.h const union ubifs_key *key); key 243 fs/ubifs/debug.h const union ubifs_key *key, char *buffer, int len); key 203 fs/ubifs/dir.c union ubifs_key key; key 233 fs/ubifs/dir.c dent_key_init_hash(c, &key, dir->i_ino, nm.hash); key 234 fs/ubifs/dir.c err = ubifs_tnc_lookup_dh(c, &key, dent, nm.minor_hash); key 236 fs/ubifs/dir.c dent_key_init(c, &key, dir->i_ino, &nm); key 237 fs/ubifs/dir.c err = ubifs_tnc_lookup_nm(c, &key, dent, &nm); key 500 fs/ubifs/dir.c union ubifs_key key; key 555 fs/ubifs/dir.c lowest_dent_key(c, &key, dir->i_ino); key 557 fs/ubifs/dir.c dent = ubifs_tnc_next_ent(c, &key, &nm); key 563 fs/ubifs/dir.c ctx->pos = key_hash_flash(c, &dent->key); key 573 fs/ubifs/dir.c dent_key_init_hash(c, &key, dir->i_ino, ctx->pos); key 575 fs/ubifs/dir.c dent = ubifs_tnc_next_ent(c, &key, &nm); key 580 fs/ubifs/dir.c ctx->pos = key_hash_flash(c, &dent->key); key 587 fs/ubifs/dir.c key_hash_flash(c, &dent->key)); key 598 fs/ubifs/dir.c &dent->key), key 617 fs/ubifs/dir.c key_read(c, &dent->key, &key); key 618 fs/ubifs/dir.c dent = ubifs_tnc_next_ent(c, &key, &nm); key 625 fs/ubifs/dir.c ctx->pos = key_hash_flash(c, &dent->key); key 852 fs/ubifs/dir.c union ubifs_key key; key 855 fs/ubifs/dir.c lowest_dent_key(c, &key, dir->i_ino); key 856 fs/ubifs/dir.c dent = ubifs_tnc_next_ent(c, &key, &nm); key 50 fs/ubifs/file.c union ubifs_key key; key 53 fs/ubifs/file.c data_key_init(c, &key, inode->i_ino, block); key 54 fs/ubifs/file.c err = ubifs_tnc_lookup(c, &key, dn); key 635 fs/ubifs/file.c } else if (key_block(c, &bu->zbranch[nn].key) == page_block) { key 666 fs/ubifs/file.c } else if (key_block(c, &bu->zbranch[nn].key) < page_block) { key 879 fs/ubifs/file.c data_key_init(c, &bu->key, inode->i_ino, key 907 fs/ubifs/file.c union ubifs_key key; key 926 fs/ubifs/file.c data_key_init(c, &key, inode->i_ino, block); key 927 fs/ubifs/file.c err = ubifs_jnl_write_data(c, inode, &key, addr, blen); key 122 fs/ubifs/gc.c ubifs_assert(c, key_type(c, &sa->key) == UBIFS_DATA_KEY); key 123 fs/ubifs/gc.c ubifs_assert(c, key_type(c, &sb->key) == UBIFS_DATA_KEY); key 127 fs/ubifs/gc.c inuma = key_inum(c, &sa->key); key 128 fs/ubifs/gc.c inumb = key_inum(c, &sb->key); key 131 fs/ubifs/gc.c unsigned int blka = key_block(c, &sa->key); key 132 fs/ubifs/gc.c unsigned int blkb = key_block(c, &sb->key); key 166 fs/ubifs/gc.c ubifs_assert(c, key_type(c, &sa->key) != UBIFS_DATA_KEY && key 167 fs/ubifs/gc.c key_type(c, &sb->key) != UBIFS_DATA_KEY); key 180 fs/ubifs/gc.c ubifs_assert(c, key_type(c, &sa->key) == UBIFS_DENT_KEY || key 181 fs/ubifs/gc.c key_type(c, &sa->key) == UBIFS_XENT_KEY); key 182 fs/ubifs/gc.c ubifs_assert(c, key_type(c, &sb->key) == UBIFS_DENT_KEY || key 183 fs/ubifs/gc.c key_type(c, &sb->key) == UBIFS_XENT_KEY); key 189 fs/ubifs/gc.c inuma = key_inum(c, &sa->key); key 190 fs/ubifs/gc.c inumb = key_inum(c, &sb->key); key 193 fs/ubifs/gc.c uint32_t hasha = key_hash(c, &sa->key); key 194 fs/ubifs/gc.c uint32_t hashb = key_hash(c, &sb->key); key 258 fs/ubifs/gc.c ubifs_assert(c, key_type(c, &snod->key) == UBIFS_DATA_KEY || key 259 fs/ubifs/gc.c key_type(c, &snod->key) == UBIFS_INO_KEY || key 260 fs/ubifs/gc.c key_type(c, &snod->key) == UBIFS_DENT_KEY || key 261 fs/ubifs/gc.c key_type(c, &snod->key) == UBIFS_XENT_KEY); key 263 fs/ubifs/gc.c err = ubifs_tnc_has_node(c, &snod->key, 0, sleb->lnum, key 278 fs/ubifs/gc.c if (key_type(c, &snod->key) != UBIFS_DATA_KEY) key 316 fs/ubifs/gc.c err = ubifs_tnc_replace(c, &snod->key, sleb->lnum, key 396 fs/ubifs/gc.c if (key_type(c, &snod->key) == UBIFS_DENT_KEY || key 558 fs/ubifs/gc.c key_read(c, ubifs_idx_key(c, idx), &snod->key); key 559 fs/ubifs/gc.c err = ubifs_dirty_idx_node(c, &snod->key, level, lnum, key 453 fs/ubifs/journal.c ino_key_init_flash(c, &ino->key, inode->i_ino); key 600 fs/ubifs/journal.c key_write(c, &dent_key, dent->key); key 723 fs/ubifs/journal.c const union ubifs_key *key, const void *buf, int len) key 733 fs/ubifs/journal.c dbg_jnlk(key, "ino %lu, blk %u, len %d, key ", key 734 fs/ubifs/journal.c (unsigned long)key_inum(c, key), key_block(c, key), len); key 757 fs/ubifs/journal.c key_write(c, key, &data->key); key 771 fs/ubifs/journal.c err = ubifs_encrypt(inode, data, compr_len, &out_len, key_block(c, key)); key 802 fs/ubifs/journal.c ubifs_wbuf_add_ino_nolock(&c->jheads[DATAHD].wbuf, key_inum(c, key)); key 807 fs/ubifs/journal.c err = ubifs_tnc_add(c, key, lnum, offs, dlen, hash); key 878 fs/ubifs/journal.c union ubifs_key key; key 888 fs/ubifs/journal.c lowest_xent_key(c, &key, inode->i_ino); key 890 fs/ubifs/journal.c xent = ubifs_tnc_next_ent(c, &key, &nm); key 919 fs/ubifs/journal.c key_read(c, &xent->key, &key); key 946 fs/ubifs/journal.c union ubifs_key key; key 948 fs/ubifs/journal.c ino_key_init(c, &key, inode->i_ino); key 949 fs/ubifs/journal.c err = ubifs_tnc_add(c, &key, lnum, offs, ilen, hash); key 1053 fs/ubifs/journal.c union ubifs_key key; key 1091 fs/ubifs/journal.c dent_key_init_flash(c, &dent1->key, snd_dir->i_ino, snd_nm); key 1107 fs/ubifs/journal.c dent_key_init_flash(c, &dent2->key, fst_dir->i_ino, fst_nm); key 1151 fs/ubifs/journal.c dent_key_init(c, &key, snd_dir->i_ino, snd_nm); key 1152 fs/ubifs/journal.c err = ubifs_tnc_add_nm(c, &key, lnum, offs, dlen1, hash_dent1, snd_nm); key 1157 fs/ubifs/journal.c dent_key_init(c, &key, fst_dir->i_ino, fst_nm); key 1158 fs/ubifs/journal.c err = ubifs_tnc_add_nm(c, &key, lnum, offs, dlen2, hash_dent2, fst_nm); key 1164 fs/ubifs/journal.c ino_key_init(c, &key, fst_dir->i_ino); key 1165 fs/ubifs/journal.c err = ubifs_tnc_add(c, &key, lnum, offs, plen, hash_p1); key 1171 fs/ubifs/journal.c ino_key_init(c, &key, snd_dir->i_ino); key 1172 fs/ubifs/journal.c err = ubifs_tnc_add(c, &key, lnum, offs, plen, hash_p2); key 1218 fs/ubifs/journal.c union ubifs_key key; key 1266 fs/ubifs/journal.c dent_key_init_flash(c, &dent->key, new_dir->i_ino, new_nm); key 1281 fs/ubifs/journal.c dent_key_init_flash(c, &dent2->key, old_dir->i_ino, old_nm); key 1354 fs/ubifs/journal.c dent_key_init(c, &key, new_dir->i_ino, new_nm); key 1355 fs/ubifs/journal.c err = ubifs_tnc_add_nm(c, &key, lnum, offs, dlen1, hash_dent1, new_nm); key 1361 fs/ubifs/journal.c dent_key_init(c, &key, old_dir->i_ino, old_nm); key 1362 fs/ubifs/journal.c err = ubifs_tnc_add_nm(c, &key, lnum, offs, dlen2, hash_dent2, old_nm); key 1372 fs/ubifs/journal.c dent_key_init(c, &key, old_dir->i_ino, old_nm); key 1373 fs/ubifs/journal.c err = ubifs_tnc_remove_nm(c, &key, old_nm); key 1380 fs/ubifs/journal.c ino_key_init(c, &key, new_inode->i_ino); key 1381 fs/ubifs/journal.c err = ubifs_tnc_add(c, &key, lnum, offs, ilen, hash_new_inode); key 1387 fs/ubifs/journal.c ino_key_init(c, &key, old_dir->i_ino); key 1388 fs/ubifs/journal.c err = ubifs_tnc_add(c, &key, lnum, offs, plen, hash_old_dir); key 1394 fs/ubifs/journal.c ino_key_init(c, &key, new_dir->i_ino); key 1395 fs/ubifs/journal.c err = ubifs_tnc_add(c, &key, lnum, offs, plen, hash_new_dir); key 1506 fs/ubifs/journal.c union ubifs_key key, to_key; key 1544 fs/ubifs/journal.c data_key_init(c, &key, inum, blk); key 1545 fs/ubifs/journal.c dbg_jnlk(&key, "last block key "); key 1546 fs/ubifs/journal.c err = ubifs_tnc_lookup(c, &key, dn); key 1607 fs/ubifs/journal.c err = ubifs_tnc_add(c, &key, lnum, sz, dlen, hash_dn); key 1612 fs/ubifs/journal.c ino_key_init(c, &key, inum); key 1613 fs/ubifs/journal.c err = ubifs_tnc_add(c, &key, lnum, offs, UBIFS_INO_NODE_SZ, hash_ino); key 1623 fs/ubifs/journal.c data_key_init(c, &key, inum, blk); key 1629 fs/ubifs/journal.c err = ubifs_tnc_remove_range(c, &key, &to_key); key 1703 fs/ubifs/journal.c key_write(c, &xent_key, xent->key); key 1792 fs/ubifs/journal.c union ubifs_key key; key 1840 fs/ubifs/journal.c ino_key_init(c, &key, host->i_ino); key 1841 fs/ubifs/journal.c err = ubifs_tnc_add(c, &key, lnum, offs, len1, hash_host); key 1845 fs/ubifs/journal.c ino_key_init(c, &key, inode->i_ino); key 1846 fs/ubifs/journal.c err = ubifs_tnc_add(c, &key, lnum, offs + aligned_len1, len2, hash); key 91 fs/ubifs/key.h union ubifs_key *key, ino_t inum) key 93 fs/ubifs/key.h key->u32[0] = inum; key 94 fs/ubifs/key.h key->u32[1] = UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS; key 106 fs/ubifs/key.h union ubifs_key *key = k; key 108 fs/ubifs/key.h key->j32[0] = cpu_to_le32(inum); key 109 fs/ubifs/key.h key->j32[1] = cpu_to_le32(UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS); key 120 fs/ubifs/key.h union ubifs_key *key, ino_t inum) key 122 fs/ubifs/key.h key->u32[0] = inum; key 123 fs/ubifs/key.h key->u32[1] = 0; key 133 fs/ubifs/key.h union ubifs_key *key, ino_t inum) key 135 fs/ubifs/key.h key->u32[0] = inum; key 136 fs/ubifs/key.h key->u32[1] = 0xffffffff; key 147 fs/ubifs/key.h union ubifs_key *key, ino_t inum, key 154 fs/ubifs/key.h key->u32[0] = inum; key 155 fs/ubifs/key.h key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); key 167 fs/ubifs/key.h union ubifs_key *key, ino_t inum, key 171 fs/ubifs/key.h key->u32[0] = inum; key 172 fs/ubifs/key.h key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); key 186 fs/ubifs/key.h union ubifs_key *key = k; key 190 fs/ubifs/key.h key->j32[0] = cpu_to_le32(inum); key 191 fs/ubifs/key.h key->j32[1] = cpu_to_le32(hash | key 203 fs/ubifs/key.h union ubifs_key *key, ino_t inum) key 205 fs/ubifs/key.h key->u32[0] = inum; key 206 fs/ubifs/key.h key->u32[1] = UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS; key 217 fs/ubifs/key.h union ubifs_key *key, ino_t inum, key 223 fs/ubifs/key.h key->u32[0] = inum; key 224 fs/ubifs/key.h key->u32[1] = hash | (UBIFS_XENT_KEY << UBIFS_S_KEY_HASH_BITS); key 237 fs/ubifs/key.h union ubifs_key *key = k; key 241 fs/ubifs/key.h key->j32[0] = cpu_to_le32(inum); key 242 fs/ubifs/key.h key->j32[1] = cpu_to_le32(hash | key 254 fs/ubifs/key.h union ubifs_key *key, ino_t inum) key 256 fs/ubifs/key.h key->u32[0] = inum; key 257 fs/ubifs/key.h key->u32[1] = UBIFS_XENT_KEY << UBIFS_S_KEY_HASH_BITS; key 268 fs/ubifs/key.h union ubifs_key *key, ino_t inum, key 272 fs/ubifs/key.h key->u32[0] = inum; key 273 fs/ubifs/key.h key->u32[1] = block | (UBIFS_DATA_KEY << UBIFS_S_KEY_BLOCK_BITS); key 283 fs/ubifs/key.h union ubifs_key *key, ino_t inum) key 285 fs/ubifs/key.h data_key_init(c, key, inum, UBIFS_S_KEY_BLOCK_MASK); key 298 fs/ubifs/key.h union ubifs_key *key, ino_t inum) key 300 fs/ubifs/key.h key->u32[0] = inum; key 301 fs/ubifs/key.h key->u32[1] = UBIFS_TRUN_KEY << UBIFS_S_KEY_BLOCK_BITS; key 312 fs/ubifs/key.h union ubifs_key *key) key 314 fs/ubifs/key.h key->u32[0] = 0xDEADBEAF; key 315 fs/ubifs/key.h key->u32[1] = UBIFS_INVALID_KEY; key 324 fs/ubifs/key.h const union ubifs_key *key) key 326 fs/ubifs/key.h return key->u32[1] >> UBIFS_S_KEY_BLOCK_BITS; key 336 fs/ubifs/key.h const union ubifs_key *key = k; key 338 fs/ubifs/key.h return le32_to_cpu(key->j32[1]) >> UBIFS_S_KEY_BLOCK_BITS; key 348 fs/ubifs/key.h const union ubifs_key *key = k; key 350 fs/ubifs/key.h return key->u32[0]; key 360 fs/ubifs/key.h const union ubifs_key *key = k; key 362 fs/ubifs/key.h return le32_to_cpu(key->j32[0]); key 371 fs/ubifs/key.h const union ubifs_key *key) key 373 fs/ubifs/key.h return key->u32[1] & UBIFS_S_KEY_HASH_MASK; key 383 fs/ubifs/key.h const union ubifs_key *key = k; key 385 fs/ubifs/key.h return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_HASH_MASK; key 394 fs/ubifs/key.h const union ubifs_key *key) key 396 fs/ubifs/key.h return key->u32[1] & UBIFS_S_KEY_BLOCK_MASK; key 407 fs/ubifs/key.h const union ubifs_key *key = k; key 409 fs/ubifs/key.h return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_BLOCK_MASK; key 523 fs/ubifs/key.h const union ubifs_key *key) key 525 fs/ubifs/key.h int type = key_type(c, key); key 1130 fs/ubifs/lprops.c key_read(c, ubifs_idx_key(c, idx), &snod->key); key 1134 fs/ubifs/lprops.c found = ubifs_tnc_has_node(c, &snod->key, level, lnum, key 215 fs/ubifs/misc.h return (void *)((struct ubifs_branch *)idx->branches)->key; key 230 fs/ubifs/misc.h const union ubifs_key *key, void *node) key 232 fs/ubifs/misc.h return ubifs_tnc_locate(c, key, node, NULL, NULL); key 159 fs/ubifs/orphan.c union ubifs_key key; key 169 fs/ubifs/orphan.c lowest_xent_key(c, &key, inum); key 171 fs/ubifs/orphan.c xent = ubifs_tnc_next_ent(c, &key, &nm); key 187 fs/ubifs/orphan.c key_read(c, &xent->key, &key); key 917 fs/ubifs/orphan.c inum = key_inum(c, &zbr->key); key 920 fs/ubifs/orphan.c if (key_type(c, &zbr->key) != UBIFS_INO_KEY) key 922 fs/ubifs/orphan.c (unsigned long)inum, key_type(c, &zbr->key)); key 1354 fs/ubifs/recovery.c int ubifs_recover_size_accum(struct ubifs_info *c, union ubifs_key *key, key 1357 fs/ubifs/recovery.c ino_t inum = key_inum(c, key); key 1361 fs/ubifs/recovery.c switch (key_type(c, key)) { key 1406 fs/ubifs/recovery.c union ubifs_key key; key 1412 fs/ubifs/recovery.c ino_key_init(c, &key, e->inum); key 1413 fs/ubifs/recovery.c err = ubifs_tnc_locate(c, &key, ino, &lnum, &offs); key 1541 fs/ubifs/recovery.c union ubifs_key key; key 1543 fs/ubifs/recovery.c ino_key_init(c, &key, e->inum); key 1544 fs/ubifs/recovery.c err = ubifs_tnc_lookup(c, &key, c->sbuf); key 53 fs/ubifs/replay.c union ubifs_key key; key 195 fs/ubifs/replay.c ino = key_inum(c, &r->key); key 218 fs/ubifs/replay.c ubifs_assert(c, key_type(c, &rino->key) == UBIFS_INO_KEY); key 226 fs/ubifs/replay.c if (key_inum(c, &r->key) == key_inum(c, &rino->key)) key 246 fs/ubifs/replay.c dbg_mntk(&r->key, "LEB %d:%d len %d deletion %d sqnum %llu key ", key 249 fs/ubifs/replay.c if (is_hash_key(c, &r->key)) { key 251 fs/ubifs/replay.c err = ubifs_tnc_remove_nm(c, &r->key, &r->nm); key 253 fs/ubifs/replay.c err = ubifs_tnc_add_nm(c, &r->key, r->lnum, r->offs, key 257 fs/ubifs/replay.c switch (key_type(c, &r->key)) { key 260 fs/ubifs/replay.c ino_t inum = key_inum(c, &r->key); key 274 fs/ubifs/replay.c err = ubifs_tnc_remove(c, &r->key); key 278 fs/ubifs/replay.c err = ubifs_tnc_add(c, &r->key, r->lnum, r->offs, key 284 fs/ubifs/replay.c err = ubifs_recover_size_accum(c, &r->key, r->deletion, key 355 fs/ubifs/replay.c if (is_hash_key(c, &r->key)) key 383 fs/ubifs/replay.c const u8 *hash, union ubifs_key *key, key 389 fs/ubifs/replay.c dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs); key 391 fs/ubifs/replay.c if (key_inum(c, key) >= c->highest_inum) key 392 fs/ubifs/replay.c c->highest_inum = key_inum(c, key); key 406 fs/ubifs/replay.c key_copy(c, key, &r->key); key 432 fs/ubifs/replay.c const u8 *hash, union ubifs_key *key, key 439 fs/ubifs/replay.c dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs); key 440 fs/ubifs/replay.c if (key_inum(c, key) >= c->highest_inum) key 441 fs/ubifs/replay.c c->highest_inum = key_inum(c, key); key 461 fs/ubifs/replay.c key_copy(c, key, &r->key); key 482 fs/ubifs/replay.c int key_type = key_type_flash(c, dent->key); key 751 fs/ubifs/replay.c &snod->key, snod->sqnum, deletion, key 759 fs/ubifs/replay.c key_block(c, &snod->key) * key 763 fs/ubifs/replay.c &snod->key, snod->sqnum, deletion, key 777 fs/ubifs/replay.c &snod->key, dent->name, key 787 fs/ubifs/replay.c union ubifs_key key; key 801 fs/ubifs/replay.c trun_key_init(c, &key, le32_to_cpu(trun->inum)); key 803 fs/ubifs/replay.c &key, snod->sqnum, 1, &used, key 80 fs/ubifs/sb.c union ubifs_key key; key 278 fs/ubifs/sb.c ino_key_init(c, &key, UBIFS_ROOT_INO); key 280 fs/ubifs/sb.c key_write_idx(c, &key, &br->key); key 289 fs/ubifs/sb.c ino_key_init_flash(c, &ino->key, UBIFS_ROOT_INO); key 207 fs/ubifs/scan.c key_read(c, &ino->key, &snod->key); key 210 fs/ubifs/scan.c invalid_key_init(c, &snod->key); key 92 fs/ubifs/super.c union ubifs_key key; key 113 fs/ubifs/super.c ino_key_init(c, &key, inode->i_ino); key 115 fs/ubifs/super.c err = ubifs_tnc_lookup(c, &key, ino); key 27 fs/ubifs/tnc.c static int fallible_read_node(struct ubifs_info *c, const union ubifs_key *key, key 314 fs/ubifs/tnc.c ubifs_assert(c, is_hash_key(c, &zbr->key)); key 389 fs/ubifs/tnc.c ubifs_assert(c, is_hash_key(c, &zbr->key)); key 399 fs/ubifs/tnc.c err = fallible_read_node(c, &zbr->key, zbr, node); key 497 fs/ubifs/tnc.c static int fallible_read_node(struct ubifs_info *c, const union ubifs_key *key, key 502 fs/ubifs/tnc.c dbg_tnck(key, "LEB %d:%d, key ", zbr->lnum, zbr->offs); key 504 fs/ubifs/tnc.c ret = try_read_node(c, node, key_type(c, key), zbr); key 510 fs/ubifs/tnc.c key_read(c, &dent->key, &node_key); key 511 fs/ubifs/tnc.c if (keys_cmp(c, key, &node_key) != 0) key 515 fs/ubifs/tnc.c dbg_mntk(key, "dangling branch LEB %d:%d len %d, key ", key 700 fs/ubifs/tnc.c static int resolve_collision(struct ubifs_info *c, const union ubifs_key *key, key 723 fs/ubifs/tnc.c if (keys_cmp(c, &(*zn)->zbranch[*n].key, key)) { key 787 fs/ubifs/tnc.c if (keys_cmp(c, &znode->zbranch[nn].key, key)) key 831 fs/ubifs/tnc.c err = fallible_read_node(c, &zbr->key, zbr, dent); key 889 fs/ubifs/tnc.c const union ubifs_key *key, key 925 fs/ubifs/tnc.c if (keys_cmp(c, &(*zn)->zbranch[*n].key, key)) { key 970 fs/ubifs/tnc.c if (keys_cmp(c, &znode->zbranch[nn].key, key)) key 992 fs/ubifs/tnc.c dbg_mntk(key, "dangling match LEB %d:%d len %d key ", key 1034 fs/ubifs/tnc.c const union ubifs_key *key, key 1053 fs/ubifs/tnc.c if (keys_cmp(c, &znode->zbranch[nn].key, key)) key 1071 fs/ubifs/tnc.c if (keys_cmp(c, &znode->zbranch[nn].key, key)) key 1170 fs/ubifs/tnc.c int ubifs_lookup_level0(struct ubifs_info *c, const union ubifs_key *key, key 1177 fs/ubifs/tnc.c dbg_tnck(key, "search key "); key 1178 fs/ubifs/tnc.c ubifs_assert(c, key_type(c, key) < UBIFS_INVALID_KEY); key 1192 fs/ubifs/tnc.c exact = ubifs_search_zbranch(c, znode, key, n); key 1214 fs/ubifs/tnc.c if (exact || !is_hash_key(c, key) || *n != -1) { key 1270 fs/ubifs/tnc.c if (keys_cmp(c, key, &znode->zbranch[*n].key)) { key 1306 fs/ubifs/tnc.c static int lookup_level0_dirty(struct ubifs_info *c, const union ubifs_key *key, key 1313 fs/ubifs/tnc.c dbg_tnck(key, "search and dirty key "); key 1331 fs/ubifs/tnc.c exact = ubifs_search_zbranch(c, znode, key, n); key 1358 fs/ubifs/tnc.c if (exact || !is_hash_key(c, key) || *n != -1) { key 1375 fs/ubifs/tnc.c if (keys_cmp(c, key, &znode->zbranch[*n].key)) { key 1441 fs/ubifs/tnc.c int ubifs_tnc_locate(struct ubifs_info *c, const union ubifs_key *key, key 1450 fs/ubifs/tnc.c found = ubifs_lookup_level0(c, key, &znode, &n); key 1463 fs/ubifs/tnc.c if (is_hash_key(c, key)) { key 1486 fs/ubifs/tnc.c err = fallible_read_node(c, key, &zbr, node); key 1519 fs/ubifs/tnc.c unsigned int block = key_block(c, &bu->key); key 1528 fs/ubifs/tnc.c err = ubifs_lookup_level0(c, &bu->key, &znode, &n); key 1547 fs/ubifs/tnc.c union ubifs_key *key; key 1555 fs/ubifs/tnc.c key = &zbr->key; key 1557 fs/ubifs/tnc.c if (key_inum(c, key) != key_inum(c, &bu->key) || key 1558 fs/ubifs/tnc.c key_type(c, key) != UBIFS_DATA_KEY) { key 1585 fs/ubifs/tnc.c next_block = key_block(c, key); key 1627 fs/ubifs/tnc.c block = key_block(c, &bu->key) + bu->blk_cnt; key 1630 fs/ubifs/tnc.c if (key_block(c, &bu->zbranch[bu->cnt - 1].key) < block) key 1723 fs/ubifs/tnc.c if (!keys_eq(c, &zbr->key, &key1)) { key 1726 fs/ubifs/tnc.c dbg_tnck(&zbr->key, "looked for key "); key 1780 fs/ubifs/tnc.c dbg_tnck(&bu->key, "key "); key 1809 fs/ubifs/tnc.c static int do_lookup_nm(struct ubifs_info *c, const union ubifs_key *key, key 1815 fs/ubifs/tnc.c dbg_tnck(key, "key "); key 1817 fs/ubifs/tnc.c found = ubifs_lookup_level0(c, key, &znode, &n); key 1828 fs/ubifs/tnc.c err = resolve_collision(c, key, &znode, &n, nm); key 1857 fs/ubifs/tnc.c int ubifs_tnc_lookup_nm(struct ubifs_info *c, const union ubifs_key *key, key 1867 fs/ubifs/tnc.c err = ubifs_tnc_lookup(c, key, node); key 1880 fs/ubifs/tnc.c return do_lookup_nm(c, key, node, nm); key 1883 fs/ubifs/tnc.c static int search_dh_cookie(struct ubifs_info *c, const union ubifs_key *key, key 1900 fs/ubifs/tnc.c dkey = &zbr->key; key 1902 fs/ubifs/tnc.c if (key_inum(c, dkey) != key_inum(c, key) || key 1903 fs/ubifs/tnc.c key_type(c, dkey) != key_type(c, key)) { key 1911 fs/ubifs/tnc.c if (key_hash(c, key) == key_hash(c, dkey) && key 1923 fs/ubifs/tnc.c static int do_lookup_dh(struct ubifs_info *c, const union ubifs_key *key, key 1930 fs/ubifs/tnc.c ubifs_assert(c, is_hash_key(c, key)); key 1932 fs/ubifs/tnc.c lowest_dent_key(c, &start_key, key_inum(c, key)); key 1939 fs/ubifs/tnc.c err = search_dh_cookie(c, key, dent, cookie, &znode, &n, err); key 1960 fs/ubifs/tnc.c int ubifs_tnc_lookup_dh(struct ubifs_info *c, const union ubifs_key *key, key 1973 fs/ubifs/tnc.c err = ubifs_tnc_lookup(c, key, node); key 1984 fs/ubifs/tnc.c return do_lookup_dh(c, key, node, cookie); key 1999 fs/ubifs/tnc.c union ubifs_key *key, *key1; key 2004 fs/ubifs/tnc.c key = &znode->zbranch[0].key; key 2005 fs/ubifs/tnc.c key1 = &znode->parent->zbranch[0].key; key 2007 fs/ubifs/tnc.c while (keys_cmp(c, key, key1) < 0) { key 2008 fs/ubifs/tnc.c key_copy(c, key, key1); key 2013 fs/ubifs/tnc.c key1 = &znode->parent->zbranch[0].key; key 2086 fs/ubifs/tnc.c union ubifs_key *key = &zbr->key, *key1; key 2095 fs/ubifs/tnc.c dbg_tnck(key, "inserted at %d level %d, key ", n, znode->level); key 2110 fs/ubifs/tnc.c dbg_tnck(key, "splitting level %d, key ", znode->level); key 2126 fs/ubifs/tnc.c if (znode->level == 0 && key_type(c, key) == UBIFS_DATA_KEY) { key 2129 fs/ubifs/tnc.c key1 = &znode->zbranch[n - 1].key; key 2130 fs/ubifs/tnc.c if (key_inum(c, key1) == key_inum(c, key) && key 2140 fs/ubifs/tnc.c key1 = &znode->zbranch[0].key; key 2141 fs/ubifs/tnc.c if (key_inum(c, key1) == key_inum(c, key) && key 2143 fs/ubifs/tnc.c key1 = &znode->zbranch[n].key; key 2144 fs/ubifs/tnc.c if (key_inum(c, key1) != key_inum(c, key) || key 2204 fs/ubifs/tnc.c dbg_tnck(key, "inserting at %d level %d, key ", n, zn->level); key 2217 fs/ubifs/tnc.c zbr->key = zn->zbranch[0].key; key 2240 fs/ubifs/tnc.c zi->zbranch[0].key = znode->zbranch[0].key; key 2245 fs/ubifs/tnc.c zi->zbranch[1].key = zn->zbranch[0].key; key 2274 fs/ubifs/tnc.c int ubifs_tnc_add(struct ubifs_info *c, const union ubifs_key *key, int lnum, key 2281 fs/ubifs/tnc.c dbg_tnck(key, "%d:%d, len %d, key ", lnum, offs, len); key 2282 fs/ubifs/tnc.c found = lookup_level0_dirty(c, key, &znode, &n); key 2291 fs/ubifs/tnc.c key_copy(c, key, &zbr.key); key 2325 fs/ubifs/tnc.c int ubifs_tnc_replace(struct ubifs_info *c, const union ubifs_key *key, key 2332 fs/ubifs/tnc.c dbg_tnck(key, "old LEB %d:%d, new LEB %d:%d, len %d, key ", old_lnum, key 2334 fs/ubifs/tnc.c found = lookup_level0_dirty(c, key, &znode, &n); key 2353 fs/ubifs/tnc.c } else if (is_hash_key(c, key)) { key 2354 fs/ubifs/tnc.c found = resolve_collision_directly(c, key, &znode, &n, key 2409 fs/ubifs/tnc.c int ubifs_tnc_add_nm(struct ubifs_info *c, const union ubifs_key *key, key 2417 fs/ubifs/tnc.c dbg_tnck(key, "LEB %d:%d, key ", lnum, offs); key 2418 fs/ubifs/tnc.c found = lookup_level0_dirty(c, key, &znode, &n); key 2426 fs/ubifs/tnc.c found = fallible_resolve_collision(c, key, &znode, &n, key 2429 fs/ubifs/tnc.c found = resolve_collision(c, key, &znode, &n, nm); key 2466 fs/ubifs/tnc.c key_copy(c, key, &zbr.key); key 2483 fs/ubifs/tnc.c return ubifs_tnc_remove_nm(c, key, &noname); key 2512 fs/ubifs/tnc.c dbg_tnck(&znode->zbranch[n].key, "deleting key "); key 2616 fs/ubifs/tnc.c int ubifs_tnc_remove(struct ubifs_info *c, const union ubifs_key *key) key 2622 fs/ubifs/tnc.c dbg_tnck(key, "key "); key 2623 fs/ubifs/tnc.c found = lookup_level0_dirty(c, key, &znode, &n); key 2646 fs/ubifs/tnc.c int ubifs_tnc_remove_nm(struct ubifs_info *c, const union ubifs_key *key, key 2653 fs/ubifs/tnc.c dbg_tnck(key, "key "); key 2654 fs/ubifs/tnc.c err = lookup_level0_dirty(c, key, &znode, &n); key 2660 fs/ubifs/tnc.c err = fallible_resolve_collision(c, key, &znode, &n, key 2663 fs/ubifs/tnc.c err = resolve_collision(c, key, &znode, &n, nm); key 2695 fs/ubifs/tnc.c int ubifs_tnc_remove_dh(struct ubifs_info *c, const union ubifs_key *key, key 2707 fs/ubifs/tnc.c err = lookup_level0_dirty(c, key, &znode, &n); key 2726 fs/ubifs/tnc.c lowest_dent_key(c, &start_key, key_inum(c, key)); key 2732 fs/ubifs/tnc.c err = search_dh_cookie(c, key, dent, cookie, &znode, &n, err); key 2764 fs/ubifs/tnc.c static int key_in_range(struct ubifs_info *c, union ubifs_key *key, key 2767 fs/ubifs/tnc.c if (keys_cmp(c, key, from_key) < 0) key 2769 fs/ubifs/tnc.c if (keys_cmp(c, key, to_key) > 0) key 2789 fs/ubifs/tnc.c union ubifs_key *key; key 2799 fs/ubifs/tnc.c key = from_key; key 2808 fs/ubifs/tnc.c key = &znode->zbranch[n].key; key 2809 fs/ubifs/tnc.c if (!key_in_range(c, key, from_key, to_key)) { key 2826 fs/ubifs/tnc.c key = &znode->zbranch[i].key; key 2827 fs/ubifs/tnc.c if (!key_in_range(c, key, from_key, to_key)) key 2836 fs/ubifs/tnc.c dbg_tnck(key, "removing key "); key 2915 fs/ubifs/tnc.c key_read(c, &xent->key, &key1); key 2949 fs/ubifs/tnc.c union ubifs_key *key, key 2952 fs/ubifs/tnc.c int n, err, type = key_type(c, key); key 2958 fs/ubifs/tnc.c dbg_tnck(key, "key "); key 2959 fs/ubifs/tnc.c ubifs_assert(c, is_hash_key(c, key)); key 2962 fs/ubifs/tnc.c err = ubifs_lookup_level0(c, key, &znode, &n); key 2970 fs/ubifs/tnc.c err = fallible_resolve_collision(c, key, &znode, &n, key 2973 fs/ubifs/tnc.c err = resolve_collision(c, key, &znode, &n, nm); key 3013 fs/ubifs/tnc.c dkey = &zbr->key; key 3014 fs/ubifs/tnc.c if (key_inum(c, dkey) != key_inum(c, key) || key 3176 fs/ubifs/tnc.c union ubifs_key *key, int level, key 3182 fs/ubifs/tnc.c ubifs_assert(c, key_type(c, key) < UBIFS_INVALID_KEY); key 3205 fs/ubifs/tnc.c ubifs_search_zbranch(c, znode, key, &n); key 3220 fs/ubifs/tnc.c ubifs_search_zbranch(c, znode, key, &n); key 3233 fs/ubifs/tnc.c if (!is_hash_key(c, key)) key 3259 fs/ubifs/tnc.c if (keys_cmp(c, &znode->zbranch[n].key, key) < 0) key 3281 fs/ubifs/tnc.c if (keys_cmp(c, &znode->zbranch[n].key, key) > 0) key 3304 fs/ubifs/tnc.c int is_idx_node_in_tnc(struct ubifs_info *c, union ubifs_key *key, int level, key 3309 fs/ubifs/tnc.c znode = lookup_znode(c, key, level, lnum, offs); key 3331 fs/ubifs/tnc.c static int is_leaf_node_in_tnc(struct ubifs_info *c, union ubifs_key *key, key 3337 fs/ubifs/tnc.c const int unique = !is_hash_key(c, key); key 3339 fs/ubifs/tnc.c found = ubifs_lookup_level0(c, key, &znode, &n); key 3362 fs/ubifs/tnc.c if (keys_cmp(c, key, &znode->zbranch[n].key)) key 3378 fs/ubifs/tnc.c if (keys_cmp(c, key, &znode->zbranch[n].key)) key 3401 fs/ubifs/tnc.c int ubifs_tnc_has_node(struct ubifs_info *c, union ubifs_key *key, int level, key 3408 fs/ubifs/tnc.c err = is_idx_node_in_tnc(c, key, level, lnum, offs); key 3420 fs/ubifs/tnc.c err = is_leaf_node_in_tnc(c, key, lnum, offs); key 3441 fs/ubifs/tnc.c int ubifs_dirty_idx_node(struct ubifs_info *c, union ubifs_key *key, int level, key 3448 fs/ubifs/tnc.c znode = lookup_znode(c, key, level, lnum, offs); key 3481 fs/ubifs/tnc.c union ubifs_key from_key, to_key, *key; key 3500 fs/ubifs/tnc.c key = &from_key; key 3513 fs/ubifs/tnc.c key = &znode->zbranch[n].key; key 3514 fs/ubifs/tnc.c if (!key_in_range(c, key, &from_key, &to_key)) key 3518 fs/ubifs/tnc.c block = key_block(c, key); key 40 fs/ubifs/tnc_commit.c key_write_idx(c, &zbr->key, &br->key); key 198 fs/ubifs/tnc_commit.c static int is_idx_node_in_use(struct ubifs_info *c, union ubifs_key *key, key 203 fs/ubifs/tnc_commit.c ret = is_idx_node_in_tnc(c, key, level, lnum, offs); key 257 fs/ubifs/tnc_commit.c key_read(c, ubifs_idx_key(c, idx), &snod->key); key 260 fs/ubifs/tnc_commit.c in_use = is_idx_node_in_use(c, &snod->key, level, lnum, key 873 fs/ubifs/tnc_commit.c key_write_idx(c, &zbr->key, &br->key); key 127 fs/ubifs/tnc_misc.c const union ubifs_key *key, int *n) key 137 fs/ubifs/tnc_misc.c cmp = keys_cmp(c, key, &zbr[mid].key); key 153 fs/ubifs/tnc_misc.c ubifs_assert(c, keys_cmp(c, key, &zbr[0].key) < 0); key 155 fs/ubifs/tnc_misc.c ubifs_assert(c, keys_cmp(c, key, &zbr[*n].key) > 0); key 157 fs/ubifs/tnc_misc.c ubifs_assert(c, keys_cmp(c, key, &zbr[*n + 1].key) < 0); key 310 fs/ubifs/tnc_misc.c key_read(c, &br->key, &zbr->key); key 327 fs/ubifs/tnc_misc.c switch (key_type(c, &zbr->key)) { key 335 fs/ubifs/tnc_misc.c i, key_type(c, &zbr->key)); key 343 fs/ubifs/tnc_misc.c type = key_type(c, &zbr->key); key 371 fs/ubifs/tnc_misc.c key1 = &znode->zbranch[i].key; key 372 fs/ubifs/tnc_misc.c key2 = &znode->zbranch[i + 1].key; key 464 fs/ubifs/tnc_misc.c union ubifs_key key1, *key = &zbr->key; key 465 fs/ubifs/tnc_misc.c int err, type = key_type(c, key); key 481 fs/ubifs/tnc_misc.c dbg_tnck(key, "key "); key 487 fs/ubifs/tnc_misc.c if (!keys_eq(c, key, &key1)) { key 490 fs/ubifs/tnc_misc.c dbg_tnck(key, "looked for key "); key 124 fs/ubifs/ubifs-media.h #define UBIFS_KEY_OFFSET offsetof(struct ubifs_ino_node, key) key 517 fs/ubifs/ubifs-media.h __u8 key[UBIFS_MAX_KEY_LEN]; key 558 fs/ubifs/ubifs-media.h __u8 key[UBIFS_MAX_KEY_LEN]; key 579 fs/ubifs/ubifs-media.h __u8 key[UBIFS_MAX_KEY_LEN]; key 816 fs/ubifs/ubifs-media.h __u8 key[]; key 303 fs/ubifs/ubifs.h union ubifs_key key; key 744 fs/ubifs/ubifs.h union ubifs_key key; key 804 fs/ubifs/ubifs.h union ubifs_key key; key 1767 fs/ubifs/ubifs.h const union ubifs_key *key, const void *buf, int len); key 1818 fs/ubifs/ubifs.h int ubifs_lookup_level0(struct ubifs_info *c, const union ubifs_key *key, key 1820 fs/ubifs/ubifs.h int ubifs_tnc_lookup_nm(struct ubifs_info *c, const union ubifs_key *key, key 1822 fs/ubifs/ubifs.h int ubifs_tnc_lookup_dh(struct ubifs_info *c, const union ubifs_key *key, key 1824 fs/ubifs/ubifs.h int ubifs_tnc_locate(struct ubifs_info *c, const union ubifs_key *key, key 1826 fs/ubifs/ubifs.h int ubifs_tnc_add(struct ubifs_info *c, const union ubifs_key *key, int lnum, key 1828 fs/ubifs/ubifs.h int ubifs_tnc_replace(struct ubifs_info *c, const union ubifs_key *key, key 1830 fs/ubifs/ubifs.h int ubifs_tnc_add_nm(struct ubifs_info *c, const union ubifs_key *key, key 1833 fs/ubifs/ubifs.h int ubifs_tnc_remove(struct ubifs_info *c, const union ubifs_key *key); key 1834 fs/ubifs/ubifs.h int ubifs_tnc_remove_nm(struct ubifs_info *c, const union ubifs_key *key, key 1836 fs/ubifs/ubifs.h int ubifs_tnc_remove_dh(struct ubifs_info *c, const union ubifs_key *key, key 1842 fs/ubifs/ubifs.h union ubifs_key *key, key 1845 fs/ubifs/ubifs.h int ubifs_tnc_has_node(struct ubifs_info *c, union ubifs_key *key, int level, key 1847 fs/ubifs/ubifs.h int ubifs_dirty_idx_node(struct ubifs_info *c, union ubifs_key *key, int level, key 1851 fs/ubifs/ubifs.h int is_idx_node_in_tnc(struct ubifs_info *c, union ubifs_key *key, int level, key 1863 fs/ubifs/ubifs.h const union ubifs_key *key, int *n); key 2046 fs/ubifs/ubifs.h int ubifs_recover_size_accum(struct ubifs_info *c, union ubifs_key *key, key 272 fs/ubifs/xattr.c union ubifs_key key; key 292 fs/ubifs/xattr.c xent_key_init(c, &key, host->i_ino, &nm); key 293 fs/ubifs/xattr.c err = ubifs_tnc_lookup_nm(c, &key, xent, &nm); key 334 fs/ubifs/xattr.c union ubifs_key key; key 344 fs/ubifs/xattr.c xent_key_init(c, &key, host->i_ino, &nm); key 345 fs/ubifs/xattr.c err = ubifs_tnc_lookup_nm(c, &key, xent, &nm); key 398 fs/ubifs/xattr.c union ubifs_key key; key 420 fs/ubifs/xattr.c lowest_xent_key(c, &key, host->i_ino); key 422 fs/ubifs/xattr.c xent = ubifs_tnc_next_ent(c, &key, &nm); key 438 fs/ubifs/xattr.c key_read(c, &xent->key, &key); key 494 fs/ubifs/xattr.c union ubifs_key key; key 507 fs/ubifs/xattr.c lowest_xent_key(c, &key, host->i_ino); key 509 fs/ubifs/xattr.c xent = ubifs_tnc_next_ent(c, &key, &nm); key 543 fs/ubifs/xattr.c key_read(c, &xent->key, &key); key 583 fs/ubifs/xattr.c union ubifs_key key; key 595 fs/ubifs/xattr.c xent_key_init(c, &key, host->i_ino, &nm); key 596 fs/ubifs/xattr.c err = ubifs_tnc_lookup_nm(c, &key, xent, &nm); key 380 fs/unicode/mkutf8data.c static void *lookup(struct tree *tree, const char *key) key 388 fs/unicode/mkutf8data.c key++; key 389 fs/unicode/mkutf8data.c if (*key & (1 << (node->bitnum & 7))) { key 533 fs/unicode/mkutf8data.c static int insert(struct tree *tree, char *key, int keylen, void *leaf) key 552 fs/unicode/mkutf8data.c key++; key 553 fs/unicode/mkutf8data.c if (*key & (1 << (node->bitnum & 7))) key 563 fs/unicode/mkutf8data.c if (*key & (1 << (node->bitnum & 7))) key 1750 fs/unicode/mkutf8data.c char key[4]; key 1764 fs/unicode/mkutf8data.c utf8encode(key,unichar); key 1765 fs/unicode/mkutf8data.c leaf = utf8lookup(tree, hangul, key); key 107 fs/userfaultfd.c int wake_flags, void *key) key 109 fs/userfaultfd.c struct userfaultfd_wake_range *range = key; key 27 fs/verity/signature.c static struct key *fsverity_keyring; key 136 fs/verity/signature.c struct key *ring; key 186 fs/xfs/libxfs/xfs_alloc_btree.c union xfs_btree_key *key, key 189 fs/xfs/libxfs/xfs_alloc_btree.c key->alloc.ar_startblock = rec->alloc.ar_startblock; key 190 fs/xfs/libxfs/xfs_alloc_btree.c key->alloc.ar_blockcount = rec->alloc.ar_blockcount; key 195 fs/xfs/libxfs/xfs_alloc_btree.c union xfs_btree_key *key, key 202 fs/xfs/libxfs/xfs_alloc_btree.c key->alloc.ar_startblock = cpu_to_be32(x); key 203 fs/xfs/libxfs/xfs_alloc_btree.c key->alloc.ar_blockcount = 0; key 208 fs/xfs/libxfs/xfs_alloc_btree.c union xfs_btree_key *key, key 211 fs/xfs/libxfs/xfs_alloc_btree.c key->alloc.ar_blockcount = rec->alloc.ar_blockcount; key 212 fs/xfs/libxfs/xfs_alloc_btree.c key->alloc.ar_startblock = 0; key 239 fs/xfs/libxfs/xfs_alloc_btree.c union xfs_btree_key *key) key 242 fs/xfs/libxfs/xfs_alloc_btree.c xfs_alloc_key_t *kp = &key->alloc; key 250 fs/xfs/libxfs/xfs_alloc_btree.c union xfs_btree_key *key) key 253 fs/xfs/libxfs/xfs_alloc_btree.c xfs_alloc_key_t *kp = &key->alloc; key 355 fs/xfs/libxfs/xfs_bmap_btree.c union xfs_btree_key *key, key 358 fs/xfs/libxfs/xfs_bmap_btree.c key->bmbt.br_startoff = key 364 fs/xfs/libxfs/xfs_bmap_btree.c union xfs_btree_key *key, key 367 fs/xfs/libxfs/xfs_bmap_btree.c key->bmbt.br_startoff = cpu_to_be64( key 391 fs/xfs/libxfs/xfs_bmap_btree.c union xfs_btree_key *key) key 393 fs/xfs/libxfs/xfs_bmap_btree.c return (int64_t)be64_to_cpu(key->bmbt.br_startoff) - key 1386 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key *key, key 1395 fs/xfs/libxfs/xfs_btree.c dst_key = (char *)key + (dir * cur->bc_ops->key_len); key 1396 fs/xfs/libxfs/xfs_btree.c memmove(dst_key, key, numkeys * cur->bc_ops->key_len); key 1924 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key key; key 1934 fs/xfs/libxfs/xfs_btree.c keyno, block, &key); key 2015 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key *key) key 2018 fs/xfs/libxfs/xfs_btree.c return (union xfs_btree_key *)((char *)key + key 2027 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key *key) key 2036 fs/xfs/libxfs/xfs_btree.c cur->bc_ops->init_key_from_rec(key, rec); key 2049 fs/xfs/libxfs/xfs_btree.c high = xfs_btree_high_key_from_key(cur, key); key 2059 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key *key) key 2067 fs/xfs/libxfs/xfs_btree.c memcpy(key, xfs_btree_key_addr(cur, 1, block), key 2077 fs/xfs/libxfs/xfs_btree.c high = xfs_btree_high_key_from_key(cur, key); key 2080 fs/xfs/libxfs/xfs_btree.c memcpy(key, xfs_btree_key_addr(cur, 1, block), key 2090 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key *key) key 2093 fs/xfs/libxfs/xfs_btree.c xfs_btree_get_leaf_keys(cur, block, key); key 2095 fs/xfs/libxfs/xfs_btree.c xfs_btree_get_node_keys(cur, block, key); key 2126 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key key; /* keys from current level */ key 2142 fs/xfs/libxfs/xfs_btree.c lkey = &key; key 2197 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key key; key 2212 fs/xfs/libxfs/xfs_btree.c xfs_btree_get_keys(cur, block, &key); key 2225 fs/xfs/libxfs/xfs_btree.c xfs_btree_copy_keys(cur, kp, &key, 1); key 2657 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key *key, key 2754 fs/xfs/libxfs/xfs_btree.c xfs_btree_get_node_keys(cur, right, key); key 2768 fs/xfs/libxfs/xfs_btree.c xfs_btree_get_leaf_keys(cur, right, key); key 2837 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key *key; key 2870 fs/xfs/libxfs/xfs_btree.c args->key, args->curp, args->stat); key 2886 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key *key, key 2894 fs/xfs/libxfs/xfs_btree.c return __xfs_btree_split(cur, level, ptrp, key, curp, stat); key 2899 fs/xfs/libxfs/xfs_btree.c args.key = key; key 3153 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key *key, /* key of new block */ key 3201 fs/xfs/libxfs/xfs_btree.c error = xfs_btree_split(cur, level, nptr, key, ncur, stat); key 3220 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key *key, /* i/o: block key for ptrp */ key 3279 fs/xfs/libxfs/xfs_btree.c ASSERT(cur->bc_ops->keys_inorder(cur, key, key 3338 fs/xfs/libxfs/xfs_btree.c xfs_btree_copy_keys(cur, kp, key, 1); key 3404 fs/xfs/libxfs/xfs_btree.c xfs_btree_copy_keys(cur, key, lkey, 1); key 3434 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key *key; key 3440 fs/xfs/libxfs/xfs_btree.c key = &bkey; key 3446 fs/xfs/libxfs/xfs_btree.c cur->bc_ops->init_key_from_rec(key, &rec); key 3458 fs/xfs/libxfs/xfs_btree.c error = xfs_btree_insrec(pcur, level, &nptr, &rec, key, key 130 fs/xfs/libxfs/xfs_btree.h void (*init_key_from_rec)(union xfs_btree_key *key, key 136 fs/xfs/libxfs/xfs_btree.h void (*init_high_key_from_rec)(union xfs_btree_key *key, key 141 fs/xfs/libxfs/xfs_btree.h union xfs_btree_key *key); key 510 fs/xfs/libxfs/xfs_btree.h struct xfs_btree_block *block, union xfs_btree_key *key); key 512 fs/xfs/libxfs/xfs_btree.h union xfs_btree_key *key); key 170 fs/xfs/libxfs/xfs_ialloc_btree.c union xfs_btree_key *key, key 173 fs/xfs/libxfs/xfs_ialloc_btree.c key->inobt.ir_startino = rec->inobt.ir_startino; key 178 fs/xfs/libxfs/xfs_ialloc_btree.c union xfs_btree_key *key, key 185 fs/xfs/libxfs/xfs_ialloc_btree.c key->inobt.ir_startino = cpu_to_be32(x); key 236 fs/xfs/libxfs/xfs_ialloc_btree.c union xfs_btree_key *key) key 238 fs/xfs/libxfs/xfs_ialloc_btree.c return (int64_t)be32_to_cpu(key->inobt.ir_startino) - key 139 fs/xfs/libxfs/xfs_refcount_btree.c union xfs_btree_key *key, key 142 fs/xfs/libxfs/xfs_refcount_btree.c key->refc.rc_startblock = rec->refc.rc_startblock; key 147 fs/xfs/libxfs/xfs_refcount_btree.c union xfs_btree_key *key, key 154 fs/xfs/libxfs/xfs_refcount_btree.c key->refc.rc_startblock = cpu_to_be32(x); key 182 fs/xfs/libxfs/xfs_refcount_btree.c union xfs_btree_key *key) key 185 fs/xfs/libxfs/xfs_refcount_btree.c struct xfs_refcount_key *kp = &key->refc; key 164 fs/xfs/libxfs/xfs_rmap_btree.c union xfs_btree_key *key, key 167 fs/xfs/libxfs/xfs_rmap_btree.c key->rmap.rm_startblock = rec->rmap.rm_startblock; key 168 fs/xfs/libxfs/xfs_rmap_btree.c key->rmap.rm_owner = rec->rmap.rm_owner; key 169 fs/xfs/libxfs/xfs_rmap_btree.c key->rmap.rm_offset = rec->rmap.rm_offset; key 181 fs/xfs/libxfs/xfs_rmap_btree.c union xfs_btree_key *key, key 189 fs/xfs/libxfs/xfs_rmap_btree.c key->rmap.rm_startblock = rec->rmap.rm_startblock; key 190 fs/xfs/libxfs/xfs_rmap_btree.c be32_add_cpu(&key->rmap.rm_startblock, adj); key 191 fs/xfs/libxfs/xfs_rmap_btree.c key->rmap.rm_owner = rec->rmap.rm_owner; key 192 fs/xfs/libxfs/xfs_rmap_btree.c key->rmap.rm_offset = rec->rmap.rm_offset; key 196 fs/xfs/libxfs/xfs_rmap_btree.c off = be64_to_cpu(key->rmap.rm_offset); key 198 fs/xfs/libxfs/xfs_rmap_btree.c key->rmap.rm_offset = cpu_to_be64(off); key 228 fs/xfs/libxfs/xfs_rmap_btree.c union xfs_btree_key *key) key 231 fs/xfs/libxfs/xfs_rmap_btree.c struct xfs_rmap_key *kp = &key->rmap; key 130 fs/xfs/scrub/btree.c union xfs_btree_key key; key 152 fs/xfs/scrub/btree.c cur->bc_ops->init_key_from_rec(&key, rec); key 155 fs/xfs/scrub/btree.c if (cur->bc_ops->diff_two_keys(cur, &key, keyp) < 0) key 178 fs/xfs/scrub/btree.c union xfs_btree_key *key; key 185 fs/xfs/scrub/btree.c key = xfs_btree_key_addr(cur, cur->bc_ptrs[level], block); key 191 fs/xfs/scrub/btree.c !cur->bc_ops->keys_inorder(cur, &bs->lastkey[level], key)) key 194 fs/xfs/scrub/btree.c memcpy(&bs->lastkey[level], key, cur->bc_ops->key_len); key 202 fs/xfs/scrub/btree.c if (cur->bc_ops->diff_two_keys(cur, key, keyp) < 0) key 209 fs/xfs/scrub/btree.c key = xfs_btree_high_key_addr(cur, cur->bc_ptrs[level], block); key 211 fs/xfs/scrub/btree.c if (cur->bc_ops->diff_two_keys(cur, keyp, key) < 0) key 481 fs/xfs/scrub/dabtree.c struct xfs_da_node_entry *key; key 565 fs/xfs/scrub/dabtree.c key = xchk_da_btree_entry(&ds, level, blks[level].index); key 566 fs/xfs/scrub/dabtree.c error = xchk_da_btree_hash(&ds, level, &key->hashval); key 571 fs/xfs/scrub/dabtree.c blkno = be32_to_cpu(key->before); key 497 fs/xfs/xfs_buf.c const struct xfs_buf_map *map = arg->key; key 119 fs/xfs/xfs_filestream.c trace_xfs_filestream_free(mp, mru->key, item->ag); key 708 fs/xfs/xfs_fsmap.c struct xfs_alloc_rec_incore *key = priv; key 712 fs/xfs/xfs_fsmap.c return xfs_getfsmap_datadev_bnobt_helper(*curpp, &key[1], info); key 717 fs/xfs/xfs_fsmap.c key->ar_startblock = info->low.rm_startblock; key 718 fs/xfs/xfs_fsmap.c key[1].ar_startblock = info->high.rm_startblock; key 719 fs/xfs/xfs_fsmap.c return xfs_alloc_query_range(*curpp, key, &key[1], key 1942 fs/xfs/xfs_inode.c const xfs_agino_t *key = arg->key; key 1945 fs/xfs/xfs_inode.c if (iu->iu_next_unlinked != *key) key 239 fs/xfs/xfs_mru_cache.c radix_tree_delete(&mru->store, elem->key); key 421 fs/xfs/xfs_mru_cache.c unsigned long key, key 434 fs/xfs/xfs_mru_cache.c elem->key = key; key 437 fs/xfs/xfs_mru_cache.c error = radix_tree_insert(&mru->store, key, elem); key 455 fs/xfs/xfs_mru_cache.c unsigned long key) key 464 fs/xfs/xfs_mru_cache.c elem = radix_tree_delete(&mru->store, key); key 479 fs/xfs/xfs_mru_cache.c unsigned long key) key 483 fs/xfs/xfs_mru_cache.c elem = xfs_mru_cache_remove(mru, key); key 511 fs/xfs/xfs_mru_cache.c unsigned long key) key 520 fs/xfs/xfs_mru_cache.c elem = radix_tree_lookup(&mru->store, key); key 13 fs/xfs/xfs_mru_cache.h unsigned long key; key 25 fs/xfs/xfs_mru_cache.h int xfs_mru_cache_insert(struct xfs_mru_cache *mru, unsigned long key, key 28 fs/xfs/xfs_mru_cache.h xfs_mru_cache_remove(struct xfs_mru_cache *mru, unsigned long key); key 29 fs/xfs/xfs_mru_cache.h void xfs_mru_cache_delete(struct xfs_mru_cache *mru, unsigned long key); key 31 fs/xfs/xfs_mru_cache.h xfs_mru_cache_lookup(struct xfs_mru_cache *mru, unsigned long key); key 131 include/crypto/aead.h int (*setkey)(struct crypto_aead *tfm, const u8 *key, key 282 include/crypto/aead.h const u8 *key, unsigned int keylen); key 97 include/crypto/akcipher.h int (*set_pub_key)(struct crypto_akcipher *tfm, const void *key, key 99 include/crypto/akcipher.h int (*set_priv_key)(struct crypto_akcipher *tfm, const void *key, key 387 include/crypto/akcipher.h const void *key, key 392 include/crypto/akcipher.h return alg->set_pub_key(tfm, key, keylen); key 409 include/crypto/akcipher.h const void *key, key 414 include/crypto/akcipher.h return alg->set_priv_key(tfm, key, keylen); key 29 include/crypto/authenc.h int crypto_authenc_extractkeys(struct crypto_authenc_keys *keys, const u8 *key, key 21 include/crypto/blowfish.h int blowfish_setkey(struct crypto_tfm *tfm, const u8 *key, key 19 include/crypto/cast5.h int cast5_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen); key 18 include/crypto/cast6.h int __cast6_setkey(struct cast6_ctx *ctx, const u8 *key, key 20 include/crypto/cast6.h int cast6_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen); key 33 include/crypto/chacha.h u32 key[8]; key 46 include/crypto/chacha.h int crypto_chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key, key 48 include/crypto/chacha.h int crypto_chacha12_setkey(struct crypto_skcipher *tfm, const u8 *key, key 42 include/crypto/des.h int des_expand_key(struct des_ctx *ctx, const u8 *key, unsigned int keylen); key 54 include/crypto/des.h int des3_ede_expand_key(struct des3_ede_ctx *ctx, const u8 *key, key 35 include/crypto/dh.h void *key; key 38 include/crypto/ecdh.h char *key; key 136 include/crypto/hash.h int (*setkey)(struct crypto_ahash *tfm, const u8 *key, key 190 include/crypto/hash.h int (*setkey)(struct crypto_shash *tfm, const u8 *key, key 211 include/crypto/hash.h int (*setkey)(struct crypto_ahash *tfm, const u8 *key, key 411 include/crypto/hash.h int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, key 824 include/crypto/hash.h int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, key 48 include/crypto/if_alg.h int (*setkey)(void *private, const u8 *key, unsigned int keylen); key 26 include/crypto/internal/des.h static inline int crypto_des_verify_key(struct crypto_tfm *tfm, const u8 *key) key 31 include/crypto/internal/des.h err = des_expand_key(&tmp, key, DES_KEY_SIZE); key 59 include/crypto/internal/des.h static inline int des3_ede_verify_key(const u8 *key, unsigned int key_len, key 65 include/crypto/internal/des.h memcpy(K, key, DES3_EDE_KEY_SIZE); key 96 include/crypto/internal/des.h const u8 *key) key 100 include/crypto/internal/des.h err = des3_ede_verify_key(key, DES3_EDE_KEY_SIZE, key 109 include/crypto/internal/des.h const u8 *key) key 111 include/crypto/internal/des.h return crypto_des_verify_key(crypto_skcipher_tfm(tfm), key); key 115 include/crypto/internal/des.h const u8 *key) key 117 include/crypto/internal/des.h return crypto_des3_ede_verify_key(crypto_skcipher_tfm(tfm), key); key 121 include/crypto/internal/des.h const u8 *key) key 123 include/crypto/internal/des.h return crypto_des_verify_key(crypto_ablkcipher_tfm(tfm), key); key 127 include/crypto/internal/des.h const u8 *key) key 129 include/crypto/internal/des.h return crypto_des3_ede_verify_key(crypto_ablkcipher_tfm(tfm), key); key 132 include/crypto/internal/des.h static inline int verify_aead_des_key(struct crypto_aead *tfm, const u8 *key, key 139 include/crypto/internal/des.h return crypto_des_verify_key(crypto_aead_tfm(tfm), key); key 142 include/crypto/internal/des.h static inline int verify_aead_des3_key(struct crypto_aead *tfm, const u8 *key, key 149 include/crypto/internal/des.h return crypto_des3_ede_verify_key(crypto_aead_tfm(tfm), key); key 80 include/crypto/internal/hash.h int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, key 50 include/crypto/internal/rsa.h int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, key 53 include/crypto/internal/rsa.h int rsa_parse_priv_key(struct rsa_key *rsa_key, const void *key, key 58 include/crypto/nhpoly1305.h typedef void (*nh_t)(const u32 *key, const u8 *message, size_t message_len, key 62 include/crypto/nhpoly1305.h const u8 *key, unsigned int keylen); key 15 include/crypto/pkcs7.h struct key; key 33 include/crypto/pkcs7.h struct key *trust_keyring); key 46 include/crypto/poly1305.h void poly1305_core_setkey(struct poly1305_key *key, const u8 *raw_key); key 52 include/crypto/poly1305.h const struct poly1305_key *key, key 23 include/crypto/public_key.h void *key; key 33 include/crypto/public_key.h extern void public_key_free(struct public_key *key); key 53 include/crypto/public_key.h struct key; key 57 include/crypto/public_key.h extern int restrict_link_by_signature(struct key *dest_keyring, key 60 include/crypto/public_key.h struct key *trust_keyring); key 62 include/crypto/public_key.h extern int restrict_link_by_key_or_keyring(struct key *dest_keyring, key 65 include/crypto/public_key.h struct key *trusted); key 67 include/crypto/public_key.h extern int restrict_link_by_key_or_keyring_chain(struct key *trust_keyring, key 70 include/crypto/public_key.h struct key *trusted); key 78 include/crypto/public_key.h extern int verify_signature(const struct key *, key 21 include/crypto/serpent.h int __serpent_setkey(struct serpent_ctx *ctx, const u8 *key, key 23 include/crypto/serpent.h int serpent_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen); key 38 include/crypto/skcipher.h int (*setkey)(struct crypto_skcipher *tfm, const u8 *key, key 112 include/crypto/skcipher.h int (*setkey)(struct crypto_skcipher *tfm, const u8 *key, key 401 include/crypto/skcipher.h const u8 *key, unsigned int keylen) key 403 include/crypto/skcipher.h return tfm->setkey(tfm, key, keylen); key 407 include/crypto/skcipher.h const u8 *key, unsigned int keylen) key 409 include/crypto/skcipher.h return crypto_skcipher_setkey(&tfm->base, key, keylen); key 21 include/crypto/twofish.h int __twofish_setkey(struct twofish_ctx *ctx, const u8 *key, key 23 include/crypto/twofish.h int twofish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len); key 14 include/crypto/xts.h const u8 *key, unsigned int keylen) key 29 include/crypto/xts.h !crypto_memneq(key, key + (keylen / 2), keylen / 2)) { key 38 include/crypto/xts.h const u8 *key, unsigned int keylen) key 52 include/crypto/xts.h !crypto_memneq(key, key + (keylen / 2), keylen / 2)) { key 44 include/drm/drm_hashtab.h unsigned long key; key 57 include/drm/drm_hashtab.h int drm_ht_find_item(struct drm_open_hash *ht, unsigned long key, struct drm_hash_item **item); key 59 include/drm/drm_hashtab.h void drm_ht_verbose_list(struct drm_open_hash *ht, unsigned long key); key 60 include/drm/drm_hashtab.h int drm_ht_remove_key(struct drm_open_hash *ht, unsigned long key); key 30 include/keys/asymmetric-subtype.h void (*describe)(const struct key *key, struct seq_file *m); key 43 include/keys/asymmetric-subtype.h int (*verify_signature)(const struct key *key, key 55 include/keys/asymmetric-subtype.h struct asymmetric_key_subtype *asymmetric_key_subtype(const struct key *key) key 57 include/keys/asymmetric-subtype.h return key->payload.data[asym_subtype]; key 70 include/keys/asymmetric-type.h const struct asymmetric_key_ids *asymmetric_key_ids(const struct key *key) key 72 include/keys/asymmetric-type.h return key->payload.data[asym_key_ids]; key 75 include/keys/asymmetric-type.h extern struct key *find_asymmetric_key(struct key *keyring, key 17 include/keys/big_key-type.h extern void big_key_revoke(struct key *key); key 18 include/keys/big_key-type.h extern void big_key_destroy(struct key *key); key 19 include/keys/big_key-type.h extern void big_key_describe(const struct key *big_key, struct seq_file *m); key 20 include/keys/big_key-type.h extern long big_key_read(const struct key *key, char *buffer, size_t buflen); key 18 include/keys/request_key_auth-type.h struct key *target_key; key 19 include/keys/request_key_auth-type.h struct key *dest_keyring; key 27 include/keys/request_key_auth-type.h static inline struct request_key_auth *get_request_key_auth(const struct key *key) key 29 include/keys/request_key_auth-type.h return key->payload.data[0]; key 18 include/keys/rxrpc-type.h extern struct key *rxrpc_get_null_key(const char *); key 15 include/keys/system_keyring.h extern int restrict_link_by_builtin_trusted(struct key *keyring, key 18 include/keys/system_keyring.h struct key *restriction_key); key 26 include/keys/system_keyring.h struct key *keyring, key 29 include/keys/system_keyring.h struct key *restriction_key); key 47 include/keys/system_keyring.h extern struct key *ima_blacklist_keyring; key 49 include/keys/system_keyring.h static inline struct key *get_ima_blacklist_keyring(void) key 54 include/keys/system_keyring.h static inline struct key *get_ima_blacklist_keyring(void) key 62 include/keys/system_keyring.h extern void __init set_platform_trusted_keys(struct key *keyring); key 64 include/keys/system_keyring.h static inline void set_platform_trusted_keys(struct key *keyring) key 25 include/keys/trusted-type.h unsigned char key[MAX_KEY_SIZE + 1]; key 39 include/keys/trusted.h int TSS_authhmac(unsigned char *digest, const unsigned char *key, key 45 include/keys/trusted.h const unsigned char *key, key 68 include/keys/trusted.h 16, 1, p->key, p->key_len, 0); key 40 include/keys/user-type.h extern int user_update(struct key *key, struct key_preparsed_payload *prep); key 41 include/keys/user-type.h extern void user_revoke(struct key *key); key 42 include/keys/user-type.h extern void user_destroy(struct key *key); key 43 include/keys/user-type.h extern void user_describe(const struct key *user, struct seq_file *m); key 44 include/keys/user-type.h extern long user_read(const struct key *key, char *buffer, size_t buflen); key 46 include/keys/user-type.h static inline const struct user_key_payload *user_key_payload_rcu(const struct key *key) key 48 include/keys/user-type.h return (struct user_key_payload *)dereference_key_rcu(key); key 51 include/keys/user-type.h static inline struct user_key_payload *user_key_payload_locked(const struct key *key) key 53 include/keys/user-type.h return (struct user_key_payload *)dereference_key_locked((struct key *)key); key 75 include/linux/agp_backend.h int key; key 72 include/linux/agpgart.h int key; /* tag of allocation */ key 82 include/linux/agpgart.h int key; /* tag of allocation */ key 87 include/linux/agpgart.h int key; /* tag of allocation */ key 158 include/linux/audit.h char *key); key 218 include/linux/audit.h static inline void audit_log_key(struct audit_buffer *ab, char *key) key 478 include/linux/avf/virtchnl.h u8 key[1]; /* RSS hash key, packed bytes */ key 844 include/linux/blk-cgroup.h static inline struct blkcg_gq *blkg_lookup(struct blkcg *blkcg, void *key) { return NULL; } key 48 include/linux/bpf-cgroup.h struct bpf_cgroup_storage_key key; key 163 include/linux/bpf-cgroup.h int bpf_percpu_cgroup_storage_copy(struct bpf_map *map, void *key, void *value); key 164 include/linux/bpf-cgroup.h int bpf_percpu_cgroup_storage_update(struct bpf_map *map, void *key, key 371 include/linux/bpf-cgroup.h static inline int bpf_percpu_cgroup_storage_copy(struct bpf_map *map, void *key, key 376 include/linux/bpf-cgroup.h void *key, void *value, u64 flags) { key 37 include/linux/bpf.h int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key); key 39 include/linux/bpf.h void *(*map_lookup_elem_sys_only)(struct bpf_map *map, void *key); key 42 include/linux/bpf.h void *(*map_lookup_elem)(struct bpf_map *map, void *key); key 43 include/linux/bpf.h int (*map_update_elem)(struct bpf_map *map, void *key, void *value, u64 flags); key 44 include/linux/bpf.h int (*map_delete_elem)(struct bpf_map *map, void *key); key 55 include/linux/bpf.h void (*map_seq_show_elem)(struct bpf_map *map, void *key, key 143 include/linux/bpf.h void *key, void *next_key); key 145 include/linux/bpf.h void *key, void *value); key 147 include/linux/bpf.h void *key, void *value, u64 flags); key 148 include/linux/bpf.h int (*map_delete_elem)(struct bpf_offloaded_map *map, void *key); key 675 include/linux/bpf.h int bpf_percpu_hash_copy(struct bpf_map *map, void *key, void *value); key 676 include/linux/bpf.h int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value); key 677 include/linux/bpf.h int bpf_percpu_hash_update(struct bpf_map *map, void *key, void *value, key 679 include/linux/bpf.h int bpf_percpu_array_update(struct bpf_map *map, void *key, void *value, key 682 include/linux/bpf.h int bpf_stackmap_copy(struct bpf_map *map, void *key, void *value); key 685 include/linux/bpf.h void *key, void *value, u64 map_flags); key 686 include/linux/bpf.h int bpf_fd_array_map_lookup_elem(struct bpf_map *map, void *key, u32 *value); key 688 include/linux/bpf.h void *key, void *value, u64 map_flags); key 689 include/linux/bpf.h int bpf_fd_htab_map_lookup_elem(struct bpf_map *map, void *key, u32 *value); key 720 include/linux/bpf.h struct bpf_dtab_netdev *__dev_map_lookup_elem(struct bpf_map *map, u32 key); key 721 include/linux/bpf.h struct bpf_dtab_netdev *__dev_map_hash_lookup_elem(struct bpf_map *map, u32 key); key 728 include/linux/bpf.h struct bpf_cpu_map_entry *__cpu_map_lookup_elem(struct bpf_map *map, u32 key); key 803 include/linux/bpf.h u32 key) key 809 include/linux/bpf.h u32 key) key 838 include/linux/bpf.h struct bpf_cpu_map_entry *__cpu_map_lookup_elem(struct bpf_map *map, u32 key) key 897 include/linux/bpf.h int bpf_map_offload_lookup_elem(struct bpf_map *map, void *key, void *value); key 899 include/linux/bpf.h void *key, void *value, u64 flags); key 900 include/linux/bpf.h int bpf_map_offload_delete_elem(struct bpf_map *map, void *key); key 902 include/linux/bpf.h void *key, void *next_key); key 977 include/linux/bpf.h struct xdp_sock *__xsk_map_lookup_elem(struct bpf_map *map, u32 key); key 984 include/linux/bpf.h u32 key) key 1002 include/linux/bpf.h int bpf_fd_reuseport_array_lookup_elem(struct bpf_map *map, void *key, key 1004 include/linux/bpf.h int bpf_fd_reuseport_array_update_elem(struct bpf_map *map, void *key, key 1013 include/linux/bpf.h void *key, void *value) key 1019 include/linux/bpf.h void *key, void *value, key 7 include/linux/bsearch.h void *bsearch(const void *key, const void *base, size_t num, size_t size, key 8 include/linux/bsearch.h int (*cmp)(const void *key, const void *elt)); key 24 include/linux/btree-128.h u64 key[2] = {k1, k2}; key 25 include/linux/btree-128.h return btree_lookup(&head->h, &btree_geo128, (unsigned long *)&key); key 31 include/linux/btree-128.h u64 key[2] = {*k1, *k2}; key 35 include/linux/btree-128.h (unsigned long *)&key); key 36 include/linux/btree-128.h *k1 = key[0]; key 37 include/linux/btree-128.h *k2 = key[1]; key 44 include/linux/btree-128.h u64 key[2] = {k1, k2}; key 46 include/linux/btree-128.h (unsigned long *)&key, val, gfp); key 52 include/linux/btree-128.h u64 key[2] = {k1, k2}; key 54 include/linux/btree-128.h (unsigned long *)&key, val); key 59 include/linux/btree-128.h u64 key[2] = {k1, k2}; key 60 include/linux/btree-128.h return btree_remove(&head->h, &btree_geo128, (unsigned long *)&key); key 65 include/linux/btree-128.h u64 key[2]; key 68 include/linux/btree-128.h val = btree_last(&head->h, &btree_geo128, (unsigned long *)&key[0]); key 70 include/linux/btree-128.h *k1 = key[0]; key 71 include/linux/btree-128.h *k2 = key[1]; key 38 include/linux/btree-type.h static inline void *BTREE_FN(lookup)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key) key 40 include/linux/btree-type.h unsigned long _key = key; key 44 include/linux/btree-type.h static inline int BTREE_FN(insert)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key, key 47 include/linux/btree-type.h unsigned long _key = key; key 51 include/linux/btree-type.h static inline int BTREE_FN(update)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key, key 54 include/linux/btree-type.h unsigned long _key = key; key 58 include/linux/btree-type.h static inline void *BTREE_FN(remove)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key) key 60 include/linux/btree-type.h unsigned long _key = key; key 64 include/linux/btree-type.h static inline void *BTREE_FN(last)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE *key) key 69 include/linux/btree-type.h *key = _key; key 73 include/linux/btree-type.h static inline void *BTREE_FN(get_prev)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE *key) key 75 include/linux/btree-type.h unsigned long _key = *key; key 78 include/linux/btree-type.h *key = _key; key 82 include/linux/btree-type.h static inline void *BTREE_FN(lookup)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key) key 84 include/linux/btree-type.h return btree_lookup(&head->h, BTREE_TYPE_GEO, (unsigned long *)&key); key 87 include/linux/btree-type.h static inline int BTREE_FN(insert)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key, key 90 include/linux/btree-type.h return btree_insert(&head->h, BTREE_TYPE_GEO, (unsigned long *)&key, key 94 include/linux/btree-type.h static inline int BTREE_FN(update)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key, key 97 include/linux/btree-type.h return btree_update(&head->h, BTREE_TYPE_GEO, (unsigned long *)&key, val); key 100 include/linux/btree-type.h static inline void *BTREE_FN(remove)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key) key 102 include/linux/btree-type.h return btree_remove(&head->h, BTREE_TYPE_GEO, (unsigned long *)&key); key 105 include/linux/btree-type.h static inline void *BTREE_FN(last)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE *key) key 107 include/linux/btree-type.h return btree_last(&head->h, BTREE_TYPE_GEO, (unsigned long *)key); key 110 include/linux/btree-type.h static inline void *BTREE_FN(get_prev)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE *key) key 112 include/linux/btree-type.h return btree_get_prev(&head->h, BTREE_TYPE_GEO, (unsigned long *)key); key 116 include/linux/btree-type.h void VISITOR_FN(void *elem, unsigned long opaque, unsigned long *key, key 120 include/linux/btree-type.h BTREE_KEYTYPE key, size_t index); key 101 include/linux/btree.h unsigned long *key); key 116 include/linux/btree.h unsigned long *key, void *val, gfp_t gfp); key 129 include/linux/btree.h unsigned long *key, void *val); key 141 include/linux/btree.h unsigned long *key); key 173 include/linux/btree.h unsigned long *key); key 187 include/linux/btree.h unsigned long *key); key 194 include/linux/btree.h unsigned long *key, size_t index, key 202 include/linux/btree.h unsigned long *key, key 216 include/linux/btree.h #define btree_for_each_safel(head, key, val) \ key 217 include/linux/btree.h for (val = btree_lastl(head, &key); \ key 219 include/linux/btree.h val = btree_get_prevl(head, &key)) key 227 include/linux/btree.h #define btree_for_each_safe32(head, key, val) \ key 228 include/linux/btree.h for (val = btree_last32(head, &key); \ key 230 include/linux/btree.h val = btree_get_prev32(head, &key)) key 239 include/linux/btree.h #define btree_for_each_safe64(head, key, val) \ key 240 include/linux/btree.h for (val = btree_last64(head, &key); \ key 242 include/linux/btree.h val = btree_get_prev64(head, &key)) key 175 include/linux/ccp.h struct scatterlist *key; key 235 include/linux/ccp.h struct scatterlist *key; key 346 include/linux/ccp.h struct scatterlist *key; key 95 include/linux/ceph/auth.h const struct ceph_crypto_key *key; /* our secret key */ key 102 include/linux/ceph/auth.h const struct ceph_crypto_key *key); key 66 include/linux/ceph/libceph.h struct ceph_crypto_key *key; key 228 include/linux/ceph/libceph.h static type *lookup_##name(struct rb_root *root, lookup_param_type key) \ key 236 include/linux/ceph/libceph.h cmp = cmpexp(key, keyexp(cur->keyfld)); \ key 303 include/linux/ceph/osd_client.h void *key; key 25 include/linux/cleancache.h u32 key[CLEANCACHE_KEY_MAX]; key 137 include/linux/cred.h struct key *session_keyring; /* keyring inherited over fork */ key 138 include/linux/cred.h struct key *process_keyring; /* keyring private to this process */ key 139 include/linux/cred.h struct key *thread_keyring; /* keyring private to this thread */ key 140 include/linux/cred.h struct key *request_key_auth; /* assumed request_key authority */ key 233 include/linux/crypto.h int (*setkey)(struct crypto_ablkcipher *tfm, const u8 *key, key 255 include/linux/crypto.h int (*setkey)(struct crypto_tfm *tfm, const u8 *key, key 319 include/linux/crypto.h int (*cia_setkey)(struct crypto_tfm *tfm, const u8 *key, key 719 include/linux/crypto.h int (*setkey)(struct crypto_ablkcipher *tfm, const u8 *key, key 732 include/linux/crypto.h int (*setkey)(struct crypto_tfm *tfm, const u8 *key, key 742 include/linux/crypto.h const u8 *key, unsigned int keylen); key 1056 include/linux/crypto.h const u8 *key, unsigned int keylen) key 1060 include/linux/crypto.h return crt->setkey(crt->base, key, keylen); key 1460 include/linux/crypto.h const u8 *key, unsigned int keylen) key 1463 include/linux/crypto.h key, keylen); key 1745 include/linux/crypto.h const u8 *key, unsigned int keylen) key 1748 include/linux/crypto.h key, keylen); key 607 include/linux/device.h struct lock_class_key *key); key 773 include/linux/device.h struct lock_class_key *key); key 47 include/linux/digsig.h int digsig_verify(struct key *keyring, const char *sig, int siglen, key 52 include/linux/digsig.h static inline int digsig_verify(struct key *keyring, const char *sig, key 45 include/linux/dynamic_debug.h } key; key 97 include/linux/dynamic_debug.h #define _DPRINTK_KEY_INIT .key.dd_key_true = (STATIC_KEY_TRUE_INIT) key 100 include/linux/dynamic_debug.h static_branch_likely(&descriptor.key.dd_key_true) key 102 include/linux/dynamic_debug.h #define _DPRINTK_KEY_INIT .key.dd_key_false = (STATIC_KEY_FALSE_INIT) key 105 include/linux/dynamic_debug.h static_branch_unlikely(&descriptor.key.dd_key_false) key 367 include/linux/ethtool.h int (*get_rxfh)(struct net_device *, u32 *indir, u8 *key, key 370 include/linux/ethtool.h const u8 *key, const u8 hfunc); key 371 include/linux/ethtool.h int (*get_rxfh_context)(struct net_device *, u32 *indir, u8 *key, key 374 include/linux/ethtool.h const u8 *key, const u8 hfunc, key 18 include/linux/evm.h extern int evm_set_key(void *key, size_t keylen); key 48 include/linux/evm.h static inline int evm_set_key(void *key, size_t keylen) key 75 include/linux/firewire.h int fw_csr_iterator_next(struct fw_csr_iterator *ci, int *key, int *value); key 76 include/linux/firewire.h int fw_csr_string(const u32 *directory, int key, char *buf, size_t size); key 378 include/linux/firewire.h u32 key; key 1449 include/linux/fs.h struct key *s_master_keys; /* master crypto keys in use */ key 65 include/linux/fs_context.h const char *key; /* Parameter name */ key 132 include/linux/fs_context.h extern int vfs_parse_fs_string(struct fs_context *fc, const char *key, key 164 include/linux/fs_context.h void *key); key 165 include/linux/fscache.h void *key; /* Index key */ key 60 include/linux/hashtable.h #define hash_add(hashtable, node, key) \ key 61 include/linux/hashtable.h hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))]) key 69 include/linux/hashtable.h #define hash_add_rcu(hashtable, node, key) \ key 70 include/linux/hashtable.h hlist_add_head_rcu(node, &hashtable[hash_min(key, HASH_BITS(hashtable))]) key 165 include/linux/hashtable.h #define hash_for_each_possible(name, obj, member, key) \ key 166 include/linux/hashtable.h hlist_for_each_entry(obj, &name[hash_min(key, HASH_BITS(name))], member) key 176 include/linux/hashtable.h #define hash_for_each_possible_rcu(name, obj, member, key) \ key 177 include/linux/hashtable.h hlist_for_each_entry_rcu(obj, &name[hash_min(key, HASH_BITS(name))],\ key 191 include/linux/hashtable.h #define hash_for_each_possible_rcu_notrace(name, obj, member, key) \ key 193 include/linux/hashtable.h &name[hash_min(key, HASH_BITS(name))], member) key 204 include/linux/hashtable.h #define hash_for_each_possible_safe(name, obj, tmp, member, key) \ key 206 include/linux/hashtable.h &name[hash_min(key, HASH_BITS(name))], member) key 174 include/linux/input.h unsigned long key[BITS_TO_LONGS(KEY_CNT)]; key 30 include/linux/input/mt.h unsigned int key; key 122 include/linux/input/mt.h int input_mt_get_slot_by_key(struct input_dev *dev, int key); key 16 include/linux/ipc.h key_t key; key 70 include/linux/jhash.h static inline u32 jhash(const void *key, u32 length, u32 initval) key 73 include/linux/jhash.h const u8 *k = key; key 81 include/linux/jump_label.h #define STATIC_KEY_CHECK_USE(key) WARN(!static_key_initialized, \ key 83 include/linux/jump_label.h __func__, (key)) key 125 include/linux/jump_label.h long key; // key may be far away from the core kernel under KASLR key 140 include/linux/jump_label.h long offset = entry->key & ~3L; key 142 include/linux/jump_label.h return (struct static_key *)((unsigned long)&entry->key + offset); key 159 include/linux/jump_label.h return (struct static_key *)((unsigned long)entry->key & ~3UL); key 166 include/linux/jump_label.h return (unsigned long)entry->key & 1UL; key 171 include/linux/jump_label.h return (unsigned long)entry->key & 2UL; key 176 include/linux/jump_label.h entry->key |= 2; key 198 include/linux/jump_label.h static __always_inline bool static_key_false(struct static_key *key) key 200 include/linux/jump_label.h return arch_static_branch(key, false); key 203 include/linux/jump_label.h static __always_inline bool static_key_true(struct static_key *key) key 205 include/linux/jump_label.h return !arch_static_branch(key, true); key 222 include/linux/jump_label.h extern void static_key_slow_inc(struct static_key *key); key 223 include/linux/jump_label.h extern void static_key_slow_dec(struct static_key *key); key 224 include/linux/jump_label.h extern void static_key_slow_inc_cpuslocked(struct static_key *key); key 225 include/linux/jump_label.h extern void static_key_slow_dec_cpuslocked(struct static_key *key); key 227 include/linux/jump_label.h extern int static_key_count(struct static_key *key); key 228 include/linux/jump_label.h extern void static_key_enable(struct static_key *key); key 229 include/linux/jump_label.h extern void static_key_disable(struct static_key *key); key 230 include/linux/jump_label.h extern void static_key_enable_cpuslocked(struct static_key *key); key 231 include/linux/jump_label.h extern void static_key_disable_cpuslocked(struct static_key *key); key 252 include/linux/jump_label.h static inline int static_key_count(struct static_key *key) key 254 include/linux/jump_label.h return atomic_read(&key->enabled); key 262 include/linux/jump_label.h static __always_inline bool static_key_false(struct static_key *key) key 264 include/linux/jump_label.h if (unlikely(static_key_count(key) > 0)) key 269 include/linux/jump_label.h static __always_inline bool static_key_true(struct static_key *key) key 271 include/linux/jump_label.h if (likely(static_key_count(key) > 0)) key 276 include/linux/jump_label.h static inline void static_key_slow_inc(struct static_key *key) key 278 include/linux/jump_label.h STATIC_KEY_CHECK_USE(key); key 279 include/linux/jump_label.h atomic_inc(&key->enabled); key 282 include/linux/jump_label.h static inline void static_key_slow_dec(struct static_key *key) key 284 include/linux/jump_label.h STATIC_KEY_CHECK_USE(key); key 285 include/linux/jump_label.h atomic_dec(&key->enabled); key 288 include/linux/jump_label.h #define static_key_slow_inc_cpuslocked(key) static_key_slow_inc(key) key 289 include/linux/jump_label.h #define static_key_slow_dec_cpuslocked(key) static_key_slow_dec(key) key 304 include/linux/jump_label.h static inline void static_key_enable(struct static_key *key) key 306 include/linux/jump_label.h STATIC_KEY_CHECK_USE(key); key 308 include/linux/jump_label.h if (atomic_read(&key->enabled) != 0) { key 309 include/linux/jump_label.h WARN_ON_ONCE(atomic_read(&key->enabled) != 1); key 312 include/linux/jump_label.h atomic_set(&key->enabled, 1); key 315 include/linux/jump_label.h static inline void static_key_disable(struct static_key *key) key 317 include/linux/jump_label.h STATIC_KEY_CHECK_USE(key); key 319 include/linux/jump_label.h if (atomic_read(&key->enabled) != 1) { key 320 include/linux/jump_label.h WARN_ON_ONCE(atomic_read(&key->enabled) != 0); key 323 include/linux/jump_label.h atomic_set(&key->enabled, 0); key 347 include/linux/jump_label.h struct static_key key; key 351 include/linux/jump_label.h struct static_key key; key 354 include/linux/jump_label.h #define STATIC_KEY_TRUE_INIT (struct static_key_true) { .key = STATIC_KEY_INIT_TRUE, } key 355 include/linux/jump_label.h #define STATIC_KEY_FALSE_INIT (struct static_key_false){ .key = STATIC_KEY_INIT_FALSE, } key 458 include/linux/jump_label.h branch = !arch_static_branch(&(x)->key, true); \ key 460 include/linux/jump_label.h branch = !arch_static_branch_jump(&(x)->key, true); \ key 470 include/linux/jump_label.h branch = arch_static_branch_jump(&(x)->key, false); \ key 472 include/linux/jump_label.h branch = arch_static_branch(&(x)->key, false); \ key 480 include/linux/jump_label.h #define static_branch_likely(x) likely(static_key_enabled(&(x)->key)) key 481 include/linux/jump_label.h #define static_branch_unlikely(x) unlikely(static_key_enabled(&(x)->key)) key 489 include/linux/jump_label.h #define static_branch_inc(x) static_key_slow_inc(&(x)->key) key 490 include/linux/jump_label.h #define static_branch_dec(x) static_key_slow_dec(&(x)->key) key 491 include/linux/jump_label.h #define static_branch_inc_cpuslocked(x) static_key_slow_inc_cpuslocked(&(x)->key) key 492 include/linux/jump_label.h #define static_branch_dec_cpuslocked(x) static_key_slow_dec_cpuslocked(&(x)->key) key 498 include/linux/jump_label.h #define static_branch_enable(x) static_key_enable(&(x)->key) key 499 include/linux/jump_label.h #define static_branch_disable(x) static_key_disable(&(x)->key) key 500 include/linux/jump_label.h #define static_branch_enable_cpuslocked(x) static_key_enable_cpuslocked(&(x)->key) key 501 include/linux/jump_label.h #define static_branch_disable_cpuslocked(x) static_key_disable_cpuslocked(&(x)->key) key 10 include/linux/jump_label_ratelimit.h struct static_key key; key 16 include/linux/jump_label_ratelimit.h struct static_key_true key; key 22 include/linux/jump_label_ratelimit.h struct static_key_false key; key 28 include/linux/jump_label_ratelimit.h __static_key_slow_dec_deferred(&(x)->key, &(x)->work, (x)->timeout) key 30 include/linux/jump_label_ratelimit.h __static_key_slow_dec_deferred(&(x)->key.key, &(x)->work, (x)->timeout) key 36 include/linux/jump_label_ratelimit.h __static_key_slow_dec_deferred(struct static_key *key, key 39 include/linux/jump_label_ratelimit.h extern void __static_key_deferred_flush(void *key, struct delayed_work *work); key 41 include/linux/jump_label_ratelimit.h jump_label_rate_limit(struct static_key_deferred *key, unsigned long rl); key 47 include/linux/jump_label_ratelimit.h .key = { STATIC_KEY_INIT_TRUE }, \ key 56 include/linux/jump_label_ratelimit.h .key = { STATIC_KEY_INIT_FALSE }, \ key 65 include/linux/jump_label_ratelimit.h struct static_key key; key 68 include/linux/jump_label_ratelimit.h struct static_key_true key; key 71 include/linux/jump_label_ratelimit.h struct static_key_false key; key 78 include/linux/jump_label_ratelimit.h #define static_branch_slow_dec_deferred(x) static_branch_dec(&(x)->key) key 80 include/linux/jump_label_ratelimit.h static inline void static_key_slow_dec_deferred(struct static_key_deferred *key) key 82 include/linux/jump_label_ratelimit.h STATIC_KEY_CHECK_USE(key); key 83 include/linux/jump_label_ratelimit.h static_key_slow_dec(&key->key); key 85 include/linux/jump_label_ratelimit.h static inline void static_key_deferred_flush(void *key) key 87 include/linux/jump_label_ratelimit.h STATIC_KEY_CHECK_USE(key); key 90 include/linux/jump_label_ratelimit.h jump_label_rate_limit(struct static_key_deferred *key, key 93 include/linux/jump_label_ratelimit.h STATIC_KEY_CHECK_USE(key); key 97 include/linux/jump_label_ratelimit.h #define static_branch_deferred_inc(x) static_branch_inc(&(x)->key) key 356 include/linux/kernfs.h struct lock_class_key *key); key 451 include/linux/kernfs.h void *priv, const void *ns, struct lock_class_key *key) key 547 include/linux/kernfs.h struct lock_class_key *key = NULL; key 550 include/linux/kernfs.h key = (struct lock_class_key *)&ops->lockdep_key; key 553 include/linux/kernfs.h size, ops, priv, ns, key); key 40 include/linux/key-type.h typedef int (*request_key_actor_t)(struct key *auth_key, void *aux); key 50 include/linux/key-type.h bool (*cmp)(const struct key *key, key 93 include/linux/key-type.h int (*instantiate)(struct key *key, struct key_preparsed_payload *prep); key 100 include/linux/key-type.h int (*update)(struct key *key, struct key_preparsed_payload *prep); key 115 include/linux/key-type.h void (*revoke)(struct key *key); key 118 include/linux/key-type.h void (*destroy)(struct key *key); key 121 include/linux/key-type.h void (*describe)(const struct key *key, struct seq_file *p); key 130 include/linux/key-type.h long (*read)(const struct key *key, char *buffer, size_t buflen); key 168 include/linux/key-type.h extern int key_payload_reserve(struct key *key, size_t datalen); key 169 include/linux/key-type.h extern int key_instantiate_and_link(struct key *key, key 172 include/linux/key-type.h struct key *keyring, key 173 include/linux/key-type.h struct key *authkey); key 174 include/linux/key-type.h extern int key_reject_and_link(struct key *key, key 177 include/linux/key-type.h struct key *keyring, key 178 include/linux/key-type.h struct key *authkey); key 179 include/linux/key-type.h extern void complete_request_key(struct key *authkey, int error); key 181 include/linux/key-type.h static inline int key_negate_and_link(struct key *key, key 183 include/linux/key-type.h struct key *keyring, key 184 include/linux/key-type.h struct key *authkey) key 186 include/linux/key-type.h return key_reject_and_link(key, timeout, ENOKEY, keyring, authkey); key 189 include/linux/key-type.h extern int generic_key_instantiate(struct key *key, struct key_preparsed_payload *prep); key 33 include/linux/key.h struct key; key 132 include/linux/key.h static inline key_ref_t make_key_ref(const struct key *key, key 135 include/linux/key.h return (key_ref_t) ((unsigned long) key | possession); key 138 include/linux/key.h static inline struct key *key_ref_to_ptr(const key_ref_t key_ref) key 140 include/linux/key.h return (struct key *) ((unsigned long) key_ref & ~1UL); key 148 include/linux/key.h typedef int (*key_restrict_link_func_t)(struct key *dest_keyring, key 151 include/linux/key.h struct key *restriction_key); key 155 include/linux/key.h struct key *key; key 257 include/linux/key.h extern struct key *key_alloc(struct key_type *type, key 273 include/linux/key.h extern void key_revoke(struct key *key); key 274 include/linux/key.h extern void key_invalidate(struct key *key); key 275 include/linux/key.h extern void key_put(struct key *key); key 279 include/linux/key.h static inline struct key *__key_get(struct key *key) key 281 include/linux/key.h refcount_inc(&key->usage); key 282 include/linux/key.h return key; key 285 include/linux/key.h static inline struct key *key_get(struct key *key) key 287 include/linux/key.h return key ? __key_get(key) : key; key 295 include/linux/key.h extern struct key *request_key_tag(struct key_type *type, key 300 include/linux/key.h extern struct key *request_key_rcu(struct key_type *type, key 304 include/linux/key.h extern struct key *request_key_with_auxdata(struct key_type *type, key 319 include/linux/key.h static inline struct key *request_key(struct key_type *type, key 358 include/linux/key.h extern int wait_for_key_construction(struct key *key, bool intr); key 360 include/linux/key.h extern int key_validate(const struct key *key); key 370 include/linux/key.h extern int key_update(key_ref_t key, key 374 include/linux/key.h extern int key_link(struct key *keyring, key 375 include/linux/key.h struct key *key); key 377 include/linux/key.h extern int key_move(struct key *key, key 378 include/linux/key.h struct key *from_keyring, key 379 include/linux/key.h struct key *to_keyring, key 382 include/linux/key.h extern int key_unlink(struct key *keyring, key 383 include/linux/key.h struct key *key); key 385 include/linux/key.h extern struct key *keyring_alloc(const char *description, kuid_t uid, kgid_t gid, key 390 include/linux/key.h struct key *dest); key 392 include/linux/key.h extern int restrict_link_reject(struct key *keyring, key 395 include/linux/key.h struct key *restriction_key); key 397 include/linux/key.h extern int keyring_clear(struct key *keyring); key 404 include/linux/key.h extern int keyring_add_key(struct key *keyring, key 405 include/linux/key.h struct key *key); key 410 include/linux/key.h extern struct key *key_lookup(key_serial_t id); key 412 include/linux/key.h static inline key_serial_t key_serial(const struct key *key) key 414 include/linux/key.h return key ? key->serial : 0; key 417 include/linux/key.h extern void key_set_timeout(struct key *, unsigned); key 434 include/linux/key.h static inline short key_read_state(const struct key *key) key 437 include/linux/key.h return smp_load_acquire(&key->state); key 447 include/linux/key.h static inline bool key_is_positive(const struct key *key) key 449 include/linux/key.h return key_read_state(key) == KEY_IS_POSITIVE; key 452 include/linux/key.h static inline bool key_is_negative(const struct key *key) key 454 include/linux/key.h return key_read_state(key) < 0; key 462 include/linux/key.h rwsem_is_locked(&((struct key *)(KEY))->sem))) key 30 include/linux/keyctl.h struct key *key; key 149 include/linux/kthread.h const char *name, struct lock_class_key *key); key 63 include/linux/list_lru.h struct lock_class_key *key, struct shrinker *shrinker); key 67 include/linux/list_lru.h #define list_lru_init_key(lru, key) \ key 68 include/linux/list_lru.h __list_lru_init((lru), false, (key), NULL) key 97 include/linux/lockdep.h const struct lockdep_subclass_key *key; key 158 include/linux/lockdep.h struct lock_class_key *key; key 293 include/linux/lockdep.h extern void lockdep_register_key(struct lock_class_key *key); key 294 include/linux/lockdep.h extern void lockdep_unregister_key(struct lock_class_key *key); key 303 include/linux/lockdep.h struct lock_class_key *key, int subclass); key 311 include/linux/lockdep.h #define lockdep_set_class(lock, key) \ key 312 include/linux/lockdep.h lockdep_init_map(&(lock)->dep_map, #key, key, 0) key 313 include/linux/lockdep.h #define lockdep_set_class_and_name(lock, key, name) \ key 314 include/linux/lockdep.h lockdep_init_map(&(lock)->dep_map, name, key, 0) key 315 include/linux/lockdep.h #define lockdep_set_class_and_subclass(lock, key, sub) \ key 316 include/linux/lockdep.h lockdep_init_map(&(lock)->dep_map, #key, key, sub) key 319 include/linux/lockdep.h (lock)->dep_map.key, sub) key 326 include/linux/lockdep.h #define lockdep_match_class(lock, key) lockdep_match_key(&(lock)->dep_map, key) key 329 include/linux/lockdep.h struct lock_class_key *key) key 331 include/linux/lockdep.h return lock->key == key; key 369 include/linux/lockdep.h struct lock_class_key *key, unsigned int subclass, key 375 include/linux/lockdep.h lock_set_class(lock, lock->name, lock->key, subclass, ip); key 436 include/linux/lockdep.h # define lockdep_init_map(lock, name, key, sub) \ key 437 include/linux/lockdep.h do { (void)(name); (void)(key); } while (0) key 438 include/linux/lockdep.h # define lockdep_set_class(lock, key) do { (void)(key); } while (0) key 439 include/linux/lockdep.h # define lockdep_set_class_and_name(lock, key, name) \ key 440 include/linux/lockdep.h do { (void)(key); (void)(name); } while (0) key 441 include/linux/lockdep.h #define lockdep_set_class_and_subclass(lock, key, sub) \ key 442 include/linux/lockdep.h do { (void)(key); } while (0) key 461 include/linux/lockdep.h static inline void lockdep_register_key(struct lock_class_key *key) key 465 include/linux/lockdep.h static inline void lockdep_unregister_key(struct lock_class_key *key) key 507 include/linux/lockdep.h { .name = (_name), .key = (void *)(_key), } key 87 include/linux/lsm_audit.h key_serial_t key; key 1794 include/linux/lsm_hooks.h int (*key_alloc)(struct key *key, const struct cred *cred, key 1796 include/linux/lsm_hooks.h void (*key_free)(struct key *key); key 1799 include/linux/lsm_hooks.h int (*key_getsecurity)(struct key *key, char **_buffer); key 30 include/linux/mbcache.h int mb_cache_entry_create(struct mb_cache *cache, gfp_t mask, u32 key, key 42 include/linux/mbcache.h void mb_cache_entry_delete(struct mb_cache *cache, u32 key, u64 value); key 43 include/linux/mbcache.h struct mb_cache_entry *mb_cache_entry_get(struct mb_cache *cache, u32 key, key 46 include/linux/mbcache.h u32 key); key 74 include/linux/mfd/arizona/pdata.h int key; /** Key to report to input layer */ key 119 include/linux/mfd/ipaq-micro.h void (*key) (void *data, int len, unsigned char *rxdata); key 692 include/linux/mlx4/device.h u32 key; key 704 include/linux/mlx4/device.h u32 key; key 375 include/linux/mlx5/driver.h u32 key; key 846 include/linux/mlx5/driver.h static inline u32 mlx5_base_mkey(const u32 key) key 848 include/linux/mlx5/driver.h return key & 0xffffff00u; key 485 include/linux/mlx5/mlx5_ifc.h u8 key[0x20]; key 10234 include/linux/mlx5/mlx5_ifc.h u8 key[8][0x20]; key 282 include/linux/mlx5/qp.h } key; key 299 include/linux/mlx5/qp.h } key; key 457 include/linux/mlx5/qp.h __be32 key; key 464 include/linux/mlx5/qp.h __be32 key; key 129 include/linux/mutex.h struct lock_class_key *key); key 636 include/linux/nvme.h __u8 key[4]; key 27 include/linux/page_ref.h #define page_ref_tracepoint_active(t) static_key_false(&(t).key) key 32 include/linux/percpu_counter.h struct lock_class_key *key); key 95 include/linux/poll.h __poll_t key; key 10 include/linux/pr.h int (*pr_reserve)(struct block_device *bdev, u64 key, key 12 include/linux/pr.h int (*pr_release)(struct block_device *bdev, u64 key, key 16 include/linux/pr.h int (*pr_clear)(struct block_device *bdev, u64 key); key 252 include/linux/qed/qed_rdma_if.h u8 key; key 66 include/linux/rbtree_latch.h int (*comp)(void *key, struct latch_tree_node *b); key 106 include/linux/rbtree_latch.h __lt_find(void *key, struct latch_tree_root *ltr, int idx, key 107 include/linux/rbtree_latch.h int (*comp)(void *key, struct latch_tree_node *node)) key 115 include/linux/rbtree_latch.h c = comp(key, ltn); key 200 include/linux/rbtree_latch.h latch_tree_find(void *key, struct latch_tree_root *root, key 208 include/linux/rbtree_latch.h node = __lt_find(key, root, seq & 1, ops->comp); key 35 include/linux/rhashtable-types.h const void *key; key 126 include/linux/rhashtable.h const void *key, const struct rhashtable_params params, key 133 include/linux/rhashtable.h hash = ht->p.hashfn(key, ht->key_len, hash_rnd); key 138 include/linux/rhashtable.h hash = params.hashfn(key, key_len, hash_rnd); key 140 include/linux/rhashtable.h hash = jhash(key, key_len, hash_rnd); key 142 include/linux/rhashtable.h hash = jhash2(key, key_len / sizeof(u32), hash_rnd); key 147 include/linux/rhashtable.h hash = params.hashfn(key, key_len, hash_rnd); key 149 include/linux/rhashtable.h hash = jhash(key, key_len, hash_rnd); key 157 include/linux/rhashtable.h const void *key, const struct rhashtable_params params) key 159 include/linux/rhashtable.h unsigned int hash = rht_key_get_hash(ht, key, params, tbl->hash_rnd); key 242 include/linux/rhashtable.h void *rhashtable_insert_slow(struct rhashtable *ht, const void *key, key 584 include/linux/rhashtable.h return memcmp(ptr + ht->p.key_offset, arg->key, ht->p.key_len); key 589 include/linux/rhashtable.h struct rhashtable *ht, const void *key, key 594 include/linux/rhashtable.h .key = key, key 603 include/linux/rhashtable.h hash = rht_key_hashfn(ht, tbl, key, params); key 642 include/linux/rhashtable.h struct rhashtable *ht, const void *key, key 645 include/linux/rhashtable.h struct rhash_head *he = __rhashtable_lookup(ht, key, params); key 665 include/linux/rhashtable.h struct rhashtable *ht, const void *key, key 671 include/linux/rhashtable.h obj = rhashtable_lookup(ht, key, params); key 692 include/linux/rhashtable.h struct rhltable *hlt, const void *key, key 695 include/linux/rhashtable.h struct rhash_head *he = __rhashtable_lookup(&hlt->ht, key, params); key 705 include/linux/rhashtable.h struct rhashtable *ht, const void *key, struct rhash_head *obj, key 710 include/linux/rhashtable.h .key = key, key 736 include/linux/rhashtable.h return rhashtable_insert_slow(ht, key, obj); key 744 include/linux/rhashtable.h if (!key || key 856 include/linux/rhashtable.h struct rhltable *hlt, const void *key, struct rhlist_head *list, key 859 include/linux/rhashtable.h return PTR_ERR(__rhashtable_insert_fast(&hlt->ht, key, &list->rhead, key 882 include/linux/rhashtable.h const char *key = rht_obj(&hlt->ht, &list->rhead); key 884 include/linux/rhashtable.h key += params.key_offset; key 886 include/linux/rhashtable.h return rhltable_insert_key(hlt, key, list, params); key 907 include/linux/rhashtable.h const char *key = rht_obj(ht, obj); key 912 include/linux/rhashtable.h ret = __rhashtable_insert_fast(ht, key + ht->p.key_offset, obj, params, key 934 include/linux/rhashtable.h const char *key = rht_obj(ht, obj); key 938 include/linux/rhashtable.h return __rhashtable_insert_fast(ht, key + ht->p.key_offset, obj, params, key 958 include/linux/rhashtable.h struct rhashtable *ht, const void *key, struct rhash_head *obj, key 963 include/linux/rhashtable.h BUG_ON(!ht->p.obj_hashfn || !key); key 965 include/linux/rhashtable.h ret = __rhashtable_insert_fast(ht, key, obj, params, false); key 984 include/linux/rhashtable.h struct rhashtable *ht, const void *key, struct rhash_head *obj, key 987 include/linux/rhashtable.h BUG_ON(!ht->p.obj_hashfn || !key); key 989 include/linux/rhashtable.h return __rhashtable_insert_fast(ht, key, obj, params, false); key 87 include/linux/ring_buffer.h __ring_buffer_alloc(unsigned long size, unsigned flags, struct lock_class_key *key); key 106 include/linux/rtmutex.h extern void __rt_mutex_init(struct rt_mutex *lock, const char *name, struct lock_class_key *key); key 19 include/linux/rwlock.h struct lock_class_key *key); key 104 include/linux/rwsem.h struct lock_class_key *key); key 882 include/linux/sched.h struct key *cached_requested_key; key 1743 include/linux/security.h int security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags); key 1744 include/linux/security.h void security_key_free(struct key *key); key 1747 include/linux/security.h int security_key_getsecurity(struct key *key, char **_buffer); key 1751 include/linux/security.h static inline int security_key_alloc(struct key *key, key 1758 include/linux/security.h static inline void security_key_free(struct key *key) key 1769 include/linux/security.h static inline int security_key_getsecurity(struct key *key, char **_buffer) key 56 include/linux/seqlock.h struct lock_class_key *key) key 61 include/linux/seqlock.h lockdep_init_map(&s->dep_map, name, key, 0); key 21 include/linux/siphash.h u64 key[2]; key 24 include/linux/siphash.h static inline bool siphash_key_is_zero(const siphash_key_t *key) key 26 include/linux/siphash.h return !(key->key[0] | key->key[1]); key 29 include/linux/siphash.h u64 __siphash_aligned(const void *data, size_t len, const siphash_key_t *key); key 31 include/linux/siphash.h u64 __siphash_unaligned(const void *data, size_t len, const siphash_key_t *key); key 34 include/linux/siphash.h u64 siphash_1u64(const u64 a, const siphash_key_t *key); key 35 include/linux/siphash.h u64 siphash_2u64(const u64 a, const u64 b, const siphash_key_t *key); key 37 include/linux/siphash.h const siphash_key_t *key); key 39 include/linux/siphash.h const siphash_key_t *key); key 40 include/linux/siphash.h u64 siphash_1u32(const u32 a, const siphash_key_t *key); key 42 include/linux/siphash.h const siphash_key_t *key); key 45 include/linux/siphash.h const siphash_key_t *key) key 47 include/linux/siphash.h return siphash_1u64((u64)b << 32 | a, key); key 50 include/linux/siphash.h const u32 d, const siphash_key_t *key) key 52 include/linux/siphash.h return siphash_2u64((u64)b << 32 | a, (u64)d << 32 | c, key); key 57 include/linux/siphash.h const siphash_key_t *key) key 60 include/linux/siphash.h return siphash_1u32(le32_to_cpup((const __le32 *)data), key); key 62 include/linux/siphash.h return siphash_1u64(le64_to_cpu(data[0]), key); key 65 include/linux/siphash.h key); key 68 include/linux/siphash.h le64_to_cpu(data[2]), key); key 72 include/linux/siphash.h key); key 73 include/linux/siphash.h return __siphash_aligned(data, len, key); key 83 include/linux/siphash.h const siphash_key_t *key) key 87 include/linux/siphash.h return __siphash_unaligned(data, len, key); key 89 include/linux/siphash.h return ___siphash_aligned(data, len, key); key 94 include/linux/siphash.h unsigned long key[2]; key 98 include/linux/siphash.h const hsiphash_key_t *key); key 101 include/linux/siphash.h const hsiphash_key_t *key); key 104 include/linux/siphash.h u32 hsiphash_1u32(const u32 a, const hsiphash_key_t *key); key 105 include/linux/siphash.h u32 hsiphash_2u32(const u32 a, const u32 b, const hsiphash_key_t *key); key 107 include/linux/siphash.h const hsiphash_key_t *key); key 109 include/linux/siphash.h const hsiphash_key_t *key); key 112 include/linux/siphash.h const hsiphash_key_t *key) key 115 include/linux/siphash.h return hsiphash_1u32(le32_to_cpu(data[0]), key); key 118 include/linux/siphash.h key); key 121 include/linux/siphash.h le32_to_cpu(data[2]), key); key 125 include/linux/siphash.h key); key 126 include/linux/siphash.h return __hsiphash_aligned(data, len, key); key 136 include/linux/siphash.h const hsiphash_key_t *key) key 140 include/linux/siphash.h return __hsiphash_unaligned(data, len, key); key 142 include/linux/siphash.h return ___hsiphash_aligned(data, len, key); key 1251 include/linux/skbuff.h const struct flow_dissector_key *key, key 96 include/linux/spinlock.h struct lock_class_key *key); key 466 include/linux/spinlock.h struct lock_class_key *key); key 470 include/linux/spinlock.h static struct lock_class_key key; \ key 474 include/linux/spinlock.h cpu_mult, gfp, #locks, &key); \ key 29 include/linux/srcu.h struct lock_class_key *key); key 171 include/linux/sunrpc/cache.h struct cache_head *key, int hash); key 244 include/linux/sunrpc/gss_krb5.h struct xdr_buf *body, int body_offset, u8 *key, key 263 include/linux/sunrpc/gss_krb5.h krb5_encrypt(struct crypto_sync_skcipher *key, key 267 include/linux/sunrpc/gss_krb5.h krb5_decrypt(struct crypto_sync_skcipher *key, key 280 include/linux/sunrpc/gss_krb5.h struct crypto_sync_skcipher *key, key 302 include/linux/sunrpc/gss_krb5.h struct xdr_netobj *key); key 307 include/linux/sunrpc/gss_krb5.h struct xdr_netobj *key); key 83 include/linux/swait.h struct lock_class_key *key); key 769 include/linux/syscalls.h asmlinkage long sys_msgget(key_t key, int msgflg); key 778 include/linux/syscalls.h asmlinkage long sys_semget(key_t key, int nsems, int semflg); key 791 include/linux/syscalls.h asmlinkage long sys_shmget(key_t key, size_t size, int flag); key 996 include/linux/syscalls.h asmlinkage long sys_fsconfig(int fs_fd, unsigned int cmd, const char __user *key, key 1409 include/linux/syscalls.h long ksys_semget(key_t key, int nsems, int semflg); key 1411 include/linux/syscalls.h long ksys_msgget(key_t key, int msgflg); key 1417 include/linux/syscalls.h long ksys_shmget(key_t key, size_t size, int shmflg); key 35 include/linux/sysfs.h struct lock_class_key *key; key 55 include/linux/sysfs.h (attr)->key = &__key; \ key 46 include/linux/sysrq.h void handle_sysrq(int key); key 47 include/linux/sysrq.h void __handle_sysrq(int key, bool check_mask); key 48 include/linux/sysrq.h int register_sysrq_key(int key, struct sysrq_key_op *op); key 49 include/linux/sysrq.h int unregister_sysrq_key(int key, struct sysrq_key_op *op); key 50 include/linux/sysrq.h struct sysrq_key_op *__sysrq_get_key_op(int key); key 56 include/linux/sysrq.h static inline void handle_sysrq(int key) key 60 include/linux/sysrq.h static inline void __handle_sysrq(int key, bool check_mask) key 64 include/linux/sysrq.h static inline int register_sysrq_key(int key, struct sysrq_key_op *op) key 69 include/linux/sysrq.h static inline int unregister_sysrq_key(int key, struct sysrq_key_op *op) key 131 include/linux/thunderbolt.h char key[TB_PROPERTY_KEY_SIZE + 1]; key 148 include/linux/thunderbolt.h int tb_property_add_immediate(struct tb_property_dir *parent, const char *key, key 150 include/linux/thunderbolt.h int tb_property_add_data(struct tb_property_dir *parent, const char *key, key 152 include/linux/thunderbolt.h int tb_property_add_text(struct tb_property_dir *parent, const char *key, key 154 include/linux/thunderbolt.h int tb_property_add_dir(struct tb_property_dir *parent, const char *key, key 158 include/linux/thunderbolt.h const char *key, enum tb_property_type type); key 167 include/linux/thunderbolt.h int tb_register_property_dir(const char *key, struct tb_property_dir *dir); key 168 include/linux/thunderbolt.h void tb_unregister_property_dir(const char *key, struct tb_property_dir *dir); key 355 include/linux/thunderbolt.h const char *key; key 403 include/linux/thunderbolt.h #define TB_SERVICE(key, id) \ key 406 include/linux/thunderbolt.h .protocol_key = (key), \ key 92 include/linux/timer.h const char *name, struct lock_class_key *key); key 98 include/linux/timer.h struct lock_class_key *key); key 104 include/linux/timer.h struct lock_class_key *key) key 106 include/linux/timer.h init_timer_key(timer, func, flags, name, key); key 32 include/linux/tracepoint-defs.h struct static_key key; key 209 include/linux/tracepoint.h if (static_key_false(&__tracepoint_##name.key)) \ key 235 include/linux/tracepoint.h if (static_key_false(&__tracepoint_##name.key)) \ key 274 include/linux/tracepoint.h return static_key_false(&__tracepoint_##name.key); \ key 145 include/linux/tty_ldisc.h struct lock_class_key *key); key 74 include/linux/user_namespace.h struct key *user_keyring_register; key 80 include/linux/user_namespace.h struct key *persistent_keyring_register; key 15 include/linux/verification.h #define VERIFY_USE_SECONDARY_KEYRING ((struct key *)1UL) key 16 include/linux/verification.h #define VERIFY_USE_PLATFORM_KEYRING ((struct key *)2UL) key 34 include/linux/verification.h struct key; key 39 include/linux/verification.h struct key *trusted_keys, key 47 include/linux/verification.h struct key *trusted_keys, key 57 include/linux/verification.h struct key *trusted_keys, key 16 include/linux/wait.h typedef int (*wait_queue_func_t)(struct wait_queue_entry *wq_entry, unsigned mode, int flags, void *key); key 17 include/linux/wait.h int default_wake_function(struct wait_queue_entry *wq_entry, unsigned mode, int flags, void *key); key 200 include/linux/wait.h void __wake_up(struct wait_queue_head *wq_head, unsigned int mode, int nr, void *key); key 201 include/linux/wait.h void __wake_up_locked_key(struct wait_queue_head *wq_head, unsigned int mode, void *key); key 203 include/linux/wait.h unsigned int mode, void *key, wait_queue_entry_t *bookmark); key 204 include/linux/wait.h void __wake_up_sync_key(struct wait_queue_head *wq_head, unsigned int mode, int nr, void *key); key 1128 include/linux/wait.h int woken_wake_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *key); key 1129 include/linux/wait.h int autoremove_wake_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *key); key 17 include/linux/wait_bit.h struct wait_bit_key key; key 24 include/linux/wait_bit.h typedef int wait_bit_action_f(struct wait_bit_key *key, int mode); key 36 include/linux/wait_bit.h int wake_bit_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *key); key 40 include/linux/wait_bit.h .key = __WAIT_BIT_KEY_INITIALIZER(word, bit), \ key 49 include/linux/wait_bit.h extern int bit_wait(struct wait_bit_key *key, int mode); key 50 include/linux/wait_bit.h extern int bit_wait_io(struct wait_bit_key *key, int mode); key 51 include/linux/wait_bit.h extern int bit_wait_timeout(struct wait_bit_key *key, int mode); key 52 include/linux/wait_bit.h extern int bit_wait_io_timeout(struct wait_bit_key *key, int mode); key 450 include/media/v4l2-ctrls.h struct lock_class_key *key, const char *name); key 14 include/net/af_rxrpc.h struct key; key 44 include/net/af_rxrpc.h struct key *, key 15 include/net/arp.h u32 key = *(const u32 *)pkey; key 16 include/net/arp.h u32 val = key ^ hash32_ptr(dev); key 22 include/net/arp.h static inline struct neighbour *__ipv4_neigh_lookup_noref(struct net_device *dev, u32 key) key 25 include/net/arp.h key = INADDR_ANY; key 27 include/net/arp.h return ___neigh_lookup_noref(&arp_tbl, neigh_key_eq32, arp_hashfn, &key, dev); key 31 include/net/arp.h struct neighbour *__ipv4_neigh_lookup_noref(struct net_device *dev, u32 key) key 37 include/net/arp.h static inline struct neighbour *__ipv4_neigh_lookup(struct net_device *dev, u32 key) key 42 include/net/arp.h n = __ipv4_neigh_lookup_noref(dev, key); key 50 include/net/arp.h static inline void __ipv4_confirm_neigh(struct net_device *dev, u32 key) key 55 include/net/arp.h n = __ipv4_neigh_lookup_noref(dev, key); key 769 include/net/bluetooth/hci.h __u8 key[HCI_AMP_LINK_KEY_SIZE]; key 777 include/net/bluetooth/hci.h __u8 key[HCI_AMP_LINK_KEY_SIZE]; key 1530 include/net/bluetooth/hci_core.h void mgmt_new_link_key(struct hci_dev *hdev, struct link_key *key, key 1577 include/net/bluetooth/hci_core.h void mgmt_new_ltk(struct hci_dev *hdev, struct smp_ltk *key, bool persistent); key 695 include/net/bluetooth/mgmt.h struct mgmt_link_key_info key; key 701 include/net/bluetooth/mgmt.h struct mgmt_ltk_info key; key 816 include/net/bluetooth/mgmt.h struct mgmt_csrk_info key; key 201 include/net/bond_3ad.h u16 key; key 571 include/net/cfg80211.h const u8 *key; key 2279 include/net/cfg80211.h const u8 *key; key 2540 include/net/cfg80211.h const u8 *key; key 91 include/net/cfg802154.h const struct ieee802154_llsec_key *key); key 109 include/net/cfg802154.h const struct ieee802154_llsec_device_key *key); key 113 include/net/cfg802154.h const struct ieee802154_llsec_device_key *key); key 255 include/net/cfg802154.h u8 key[IEEE802154_LLSEC_KEY_SIZE]; key 262 include/net/cfg802154.h struct ieee802154_llsec_key *key; key 155 include/net/dst_metadata.h ip_tunnel_key_init(&tun_dst->u.tun_info.key, key 190 include/net/dst_metadata.h info->key.tun_flags = flags; key 191 include/net/dst_metadata.h info->key.tun_id = tunnel_id; key 192 include/net/dst_metadata.h info->key.tp_src = 0; key 193 include/net/dst_metadata.h info->key.tp_dst = tp_dst; key 195 include/net/dst_metadata.h info->key.u.ipv6.src = *saddr; key 196 include/net/dst_metadata.h info->key.u.ipv6.dst = *daddr; key 198 include/net/dst_metadata.h info->key.tos = tos; key 199 include/net/dst_metadata.h info->key.ttl = ttl; key 200 include/net/dst_metadata.h info->key.label = label; key 109 include/net/flow_dissector.h __be32 key; key 12 include/net/flow_offload.h void *key; key 16 include/net/flow_offload.h struct flow_dissector_key_meta *key, *mask; key 20 include/net/flow_offload.h struct flow_dissector_key_basic *key, *mask; key 24 include/net/flow_offload.h struct flow_dissector_key_control *key, *mask; key 28 include/net/flow_offload.h struct flow_dissector_key_eth_addrs *key, *mask; key 32 include/net/flow_offload.h struct flow_dissector_key_vlan *key, *mask; key 36 include/net/flow_offload.h struct flow_dissector_key_ipv4_addrs *key, *mask; key 40 include/net/flow_offload.h struct flow_dissector_key_ipv6_addrs *key, *mask; key 44 include/net/flow_offload.h struct flow_dissector_key_ip *key, *mask; key 48 include/net/flow_offload.h struct flow_dissector_key_ports *key, *mask; key 52 include/net/flow_offload.h struct flow_dissector_key_icmp *key, *mask; key 56 include/net/flow_offload.h struct flow_dissector_key_tcp *key, *mask; key 60 include/net/flow_offload.h struct flow_dissector_key_mpls *key, *mask; key 64 include/net/flow_offload.h struct flow_dissector_key_keyid *key, *mask; key 68 include/net/flow_offload.h struct flow_dissector_key_enc_opts *key, *mask; key 251 include/net/flow_offload.h enum flow_dissector_key_id key) key 253 include/net/flow_offload.h return dissector_uses_key(rule->match.dissector, key); key 17 include/net/gre.h __be32 key; key 122 include/net/gre.h __be32 key, __be32 seq) key 142 include/net/gre.h *ptr = key; key 277 include/net/ieee802154_netdev.h const struct ieee802154_llsec_key *key); key 287 include/net/ieee802154_netdev.h const struct ieee802154_llsec_device_key *key); key 290 include/net/ieee802154_netdev.h const struct ieee802154_llsec_device_key *key); key 82 include/net/inet_frag.h } key; key 126 include/net/inet_frag.h struct inet_frag_queue *inet_frag_find(struct fqdir *fqdir, void *key); key 31 include/net/inetpeer.h u32 key[INETPEER_MAXKEYSZ]; key 136 include/net/inetpeer.h if (a->key[i] == b->key[i]) key 138 include/net/inetpeer.h if (a->key[i] < b->key[i]) key 70 include/net/ip_tunnels.h struct ip_tunnel_key key; key 150 include/net/ip_tunnels.h __be32 key; key 170 include/net/ip_tunnels.h static inline void ip_tunnel_key_init(struct ip_tunnel_key *key, key 176 include/net/ip_tunnels.h key->tun_id = tun_id; key 177 include/net/ip_tunnels.h key->u.ipv4.src = saddr; key 178 include/net/ip_tunnels.h key->u.ipv4.dst = daddr; key 179 include/net/ip_tunnels.h memset((unsigned char *)key + IP_TUNNEL_KEY_IPV4_PAD, key 181 include/net/ip_tunnels.h key->tos = tos; key 182 include/net/ip_tunnels.h key->ttl = ttl; key 183 include/net/ip_tunnels.h key->label = label; key 184 include/net/ip_tunnels.h key->tun_flags = tun_flags; key 190 include/net/ip_tunnels.h key->tp_src = tp_src; key 191 include/net/ip_tunnels.h key->tp_dst = tp_dst; key 194 include/net/ip_tunnels.h if (sizeof(*key) != IP_TUNNEL_KEY_SIZE) key 195 include/net/ip_tunnels.h memset((unsigned char *)key + IP_TUNNEL_KEY_SIZE, key 196 include/net/ip_tunnels.h 0, sizeof(*key) - IP_TUNNEL_KEY_SIZE); key 207 include/net/ip_tunnels.h if (info->key.tun_flags & TUNNEL_NOCACHE) key 219 include/net/ip_tunnels.h static inline __be64 key32_to_tunnel_id(__be32 key) key 222 include/net/ip_tunnels.h return (__force __be64)key; key 224 include/net/ip_tunnels.h return (__force __be64)((__force u64)key << 32); key 243 include/net/ip_tunnels.h __be32 key, __u8 tos, int oif, key 252 include/net/ip_tunnels.h fl4->fl4_gre_key = key; key 281 include/net/ip_tunnels.h __be32 key); key 477 include/net/ip_tunnels.h info->key.tun_flags |= flags; key 523 include/net/ip_tunnels.h info->key.tun_flags |= flags; key 399 include/net/ipv6.h if (static_branch_unlikely(&ipv6_flowlabel_exclusive.key)) key 34 include/net/ipv6_frag.h const struct frag_v6_compare_key *key = a; key 36 include/net/ipv6_frag.h q->key.v6 = *key; key 50 include/net/ipv6_frag.h return jhash2((const u32 *)&fq->key.v6, key 57 include/net/ipv6_frag.h const struct frag_v6_compare_key *key = arg->key; key 60 include/net/ipv6_frag.h return !!memcmp(&fq->key, key, sizeof(*key)); key 71 include/net/lib80211.h int (*set_key) (void *key, int len, u8 * seq, void *priv); key 72 include/net/lib80211.h int (*get_key) (void *key, int len, u8 * seq, void *priv); key 1763 include/net/mac80211.h u8 key[0]; key 3797 include/net/mac80211.h struct ieee80211_key_conf *key); key 3826 include/net/mac80211.h struct ieee80211_key_conf *key, key 5582 include/net/mac80211.h struct ieee80211_key_conf *key, key 5606 include/net/mac80211.h struct ieee80211_key_conf *key, key 177 include/net/neighbour.h u8 key[0]; key 356 include/net/neighbour.h const void *key, struct net_device *dev, key 359 include/net/neighbour.h const void *key, struct net_device *dev); key 360 include/net/neighbour.h int pneigh_delete(struct neigh_table *tbl, struct net *net, const void *key, key 24 include/net/netfilter/nf_conntrack_count.h const u32 *key, key 63 include/net/netfilter/nf_conntrack_tuple.h __be16 key; key 240 include/net/netfilter/nf_tables.h } key; key 324 include/net/netfilter/nf_tables.h const u32 *key, key 327 include/net/netfilter/nf_tables.h const u32 *key, key 335 include/net/netfilter/nf_tables.h const u32 *key); key 658 include/net/netfilter/nf_tables.h const u32 *key, const u32 *data, key 1071 include/net/netfilter/nf_tables.h struct nft_object_hash_key key; key 8 include/net/netfilter/nf_tables_offload.h u32 key; key 52 include/net/netfilter/nf_tables_offload.h struct nft_flow_key key; key 75 include/net/netfilter/nf_tables_offload.h (__reg)->key = __key; \ key 8 include/net/netfilter/nft_meta.h enum nft_meta_keys key:8; key 50 include/net/sctp/auth.h struct sctp_auth_bytes *key; key 62 include/net/sctp/auth.h static inline void sctp_auth_key_hold(struct sctp_auth_bytes *key) key 64 include/net/sctp/auth.h if (!key) key 67 include/net/sctp/auth.h refcount_inc(&key->refcnt); key 70 include/net/sctp/auth.h void sctp_auth_key_put(struct sctp_auth_bytes *key); key 45 include/net/seg6_hmac.h extern struct seg6_hmac_info *seg6_hmac_info_lookup(struct net *net, u32 key); key 46 include/net/seg6_hmac.h extern int seg6_hmac_info_add(struct net *net, u32 key, key 48 include/net/seg6_hmac.h extern int seg6_hmac_info_del(struct net *net, u32 key); key 1508 include/net/sock.h #define sock_lock_init_class_and_name(sk, sname, skey, name, key) \ key 1517 include/net/sock.h lockdep_init_map(&(sk)->sk_lock.dep_map, (name), (key), 0); \ key 1039 include/net/tcp.h u32 key; key 1098 include/net/tcp.h struct tcp_congestion_ops *tcp_ca_find_key(u32 key); key 1101 include/net/tcp.h char *tcp_ca_get_name_by_key(u32 key, char *buffer); key 1103 include/net/tcp.h static inline char *tcp_ca_get_name_by_key(u32 key, char *buffer) key 1544 include/net/tcp.h u8 key[TCP_MD5SIG_MAXKEYLEN]; key 1584 include/net/tcp.h int tcp_v4_md5_hash_skb(char *md5_hash, const struct tcp_md5sig_key *key, key 1632 include/net/tcp.h const struct tcp_md5sig_key *key); key 1669 include/net/tcp.h siphash_key_t key[TCP_FASTOPEN_KEY_MAX]; key 51 include/net/tipc.h __be32 key; key 58 include/net/tipc.h get_random_bytes(&key, sizeof(key)); key 59 include/net/tipc.h return key; key 453 include/rdma/ib_mad.h __be32 key; key 402 include/rdma/ib_sa.h u8 key[16]; key 1386 include/rdma/ib_verbs.h u32 key; key 1976 include/rdma/ib_verbs.h __be32 key; key 563 include/rdma/rdma_vt.h int rvt_fast_reg_mr(struct rvt_qp *qp, struct ib_mr *ibmr, u32 key, key 121 include/rdma/signature.h u32 key; key 200 include/rdma/uverbs_ioctl.h static inline __attribute_const__ bool uapi_key_is_object(u32 key) key 202 include/rdma/uverbs_ioctl.h return (key & ~UVERBS_API_OBJ_KEY_MASK) == 0; key 242 include/rdma/uverbs_ioctl.h static inline __attribute_const__ bool uapi_key_is_ioctl_method(u32 key) key 244 include/rdma/uverbs_ioctl.h unsigned int method = key & UVERBS_API_METHOD_KEY_MASK; key 247 include/rdma/uverbs_ioctl.h (key & UVERBS_API_ATTR_KEY_MASK) == 0; key 250 include/rdma/uverbs_ioctl.h static inline __attribute_const__ bool uapi_key_is_write_method(u32 key) key 252 include/rdma/uverbs_ioctl.h return (key & UVERBS_API_METHOD_KEY_MASK) == UVERBS_API_METHOD_IS_WRITE; key 255 include/rdma/uverbs_ioctl.h static inline __attribute_const__ bool uapi_key_is_write_ex_method(u32 key) key 257 include/rdma/uverbs_ioctl.h return (key & UVERBS_API_METHOD_KEY_MASK) == key 291 include/rdma/uverbs_ioctl.h static inline __attribute_const__ bool uapi_key_is_attr(u32 key) key 293 include/rdma/uverbs_ioctl.h unsigned int method = key & UVERBS_API_METHOD_KEY_MASK; key 296 include/rdma/uverbs_ioctl.h (key & UVERBS_API_ATTR_KEY_MASK) != 0; key 65 include/scsi/scsi_common.h extern void scsi_build_sense_buffer(int desc, u8 *buf, u8 key, u8 asc, u8 ascq); key 55 include/scsi/scsi_dbg.h scsi_sense_key_string(unsigned char key) key 99 include/scsi/srp.h __be32 key; key 165 include/sound/emux_synth.h unsigned char key; key 68 include/sound/jack.h unsigned int key[6]; /* Keep in sync with definitions above */ key 521 include/sound/wavefront.h s16 key; /* Use WAVEFRONT_PATCH here */ key 72 include/trace/events/bcache.h __entry->bucket = PTR_BUCKET_NR(b->c, &b->key, 0); key 273 include/trace/events/bcache.h __entry->bucket = PTR_BUCKET_NR(b->c, &b->key, 0); key 347 include/trace/events/bcache.h __entry->btree_node = PTR_BUCKET_NR(b->c, &b->key, 0); key 374 include/trace/events/bcache.h __entry->bucket = PTR_BUCKET_NR(b->c, &b->key, 0); key 85 include/trace/events/bridge.h memcpy(__entry->addr, f->key.addr.addr, ETH_ALEN); key 86 include/trace/events/bridge.h __entry->vid = f->key.vlan_id; key 716 include/trace/events/btrfs.h __entry->offset = block_group->key.objectid; key 717 include/trace/events/btrfs.h __entry->size = block_group->key.offset; key 1201 include/trace/events/btrfs.h __entry->bg_objectid = block_group->key.objectid; key 1249 include/trace/events/btrfs.h __entry->bg_objectid = block_group->key.objectid; key 1276 include/trace/events/btrfs.h __entry->bg_objectid = block_group->key.objectid; key 1300 include/trace/events/btrfs.h __entry->bg_objectid = block_group->key.objectid; key 1862 include/trace/events/btrfs.h __entry->bytenr = bg_cache->key.objectid, key 1863 include/trace/events/btrfs.h __entry->len = bg_cache->key.offset, key 21 include/uapi/asm-generic/ipcbuf.h __kernel_key_t key; key 93 include/uapi/linux/agpgart.h int key; /* tag of allocation */ key 103 include/uapi/linux/agpgart.h int key; /* tag of allocation */ key 108 include/uapi/linux/agpgart.h int key; /* tag of allocation */ key 133 include/uapi/linux/bcache.h #define BKEY_PADDED(key) \ key 134 include/uapi/linux/bcache.h union { struct bkey key; __u64 key ## _pad[BKEY_PAD]; } key 391 include/uapi/linux/bpf.h __aligned_u64 key; key 515 include/uapi/linux/btrfs.h struct btrfs_ioctl_search_key key; key 520 include/uapi/linux/btrfs.h struct btrfs_ioctl_search_key key; /* in/out - search parameters */ key 499 include/uapi/linux/btrfs_tree.h struct btrfs_disk_key key; key 633 include/uapi/linux/cdrom.h dvd_key key; key 81 include/uapi/linux/edd.h __u16 key; /* = 0xBEDD */ key 645 include/uapi/linux/firewire-cdev.h __u32 key; key 349 include/uapi/linux/hyperv.h __u8 key[HV_KVP_EXCHANGE_MAX_KEY_SIZE]; key 372 include/uapi/linux/hyperv.h __u8 key[HV_KVP_EXCHANGE_MAX_KEY_SIZE]; key 12 include/uapi/linux/ipc.h __kernel_key_t key; key 40 include/uapi/linux/netfilter/nf_conntrack_tuple_common.h __be16 key; /* GRE key is 32bit, PPtP only uses 16bit */ key 266 include/uapi/linux/pkt_cls.h __u32 key; key 17 include/uapi/linux/pr.h __u64 key; key 37 include/uapi/linux/pr.h __u64 key; key 51 include/uapi/linux/sed-opal.h __u8 key[OPAL_KEY_MAX]; key 55 include/uapi/linux/sed-opal.h struct opal_key key; key 98 include/uapi/linux/sed-opal.h struct opal_key key; key 104 include/uapi/linux/sed-opal.h struct opal_key key; key 110 include/uapi/linux/sed-opal.h struct opal_key key; key 214 include/uapi/linux/soundcard.h unsigned short key; /* Use WAVE_PATCH here */ key 303 include/uapi/linux/soundcard.h short key; /* Use SYSEX_PATCH or MAUI_PATCH here */ key 472 include/uapi/linux/soundcard.h unsigned short key; /* FM_PATCH or OPL3_PATCH */ key 1242 include/uapi/linux/soundcard.h #define SEQ_ECHO_BACK(key) _TIMER_EVENT(TMR_ECHO, key) key 91 include/uapi/linux/tls.h unsigned char key[TLS_CIPHER_AES_GCM_128_KEY_SIZE]; key 99 include/uapi/linux/tls.h unsigned char key[TLS_CIPHER_AES_GCM_256_KEY_SIZE]; key 107 include/uapi/linux/tls.h unsigned char key[TLS_CIPHER_AES_CCM_128_KEY_SIZE]; key 832 include/uapi/linux/wireless.h __u8 key[0]; key 52 include/uapi/rdma/cxgb3-abi.h __aligned_u64 key; key 58 include/uapi/rdma/cxgb3-abi.h __aligned_u64 key; key 66 include/uapi/rdma/cxgb3-abi.h __aligned_u64 key; key 58 include/uapi/rdma/cxgb4-abi.h __aligned_u64 key; key 1090 include/uapi/rdma/ib_user_verbs.h __be32 key; key 102 include/uapi/rdma/rdma_user_rxe.h __u32 key; key 129 include/uapi/sound/asound_fm.h char key[4]; key 143 include/uapi/sound/compress_offload.h __u32 key; key 40 include/uapi/sound/sfnt_info.h unsigned short key; /* use the key below */ key 502 include/xen/interface/io/kbdif.h struct xenkbd_key key; key 287 include/xen/interface/io/netif.h static uint32_t xen_netif_toeplitz_hash(const uint8_t *key, key 298 include/xen/interface/io/netif.h prefix |= (keyi < keylen) ? key[keyi] : 0; key 316 include/xen/interface/io/netif.h prefix |= (keyi < keylen) ? key[keyi] : 0; key 64 ipc/compat.c to->key = from->key; key 75 ipc/compat.c to->key = from->key; key 137 ipc/msg.c key_t key = params->key; key 145 ipc/msg.c msq->q_perm.key = key; key 276 ipc/msg.c long ksys_msgget(key_t key, int msgflg) key 287 ipc/msg.c msg_params.key = key; key 293 ipc/msg.c SYSCALL_DEFINE2(msgget, key_t, key, int, msgflg) key 295 ipc/msg.c return ksys_msgget(key, msgflg); key 1297 ipc/msg.c msq->q_perm.key, key 513 ipc/sem.c key_t key = params->key; key 528 ipc/sem.c sma->sem_perm.key = key; key 581 ipc/sem.c long ksys_semget(key_t key, int nsems, int semflg) key 596 ipc/sem.c sem_params.key = key; key 603 ipc/sem.c SYSCALL_DEFINE3(semget, key_t, key, int, nsems, int, semflg) key 605 ipc/sem.c return ksys_semget(key, nsems, semflg); key 2431 ipc/sem.c sma->sem_perm.key, key 602 ipc/shm.c key_t key = params->key; key 626 ipc/shm.c shp->shm_perm.key = key; key 637 ipc/shm.c sprintf(name, "SYSV%08x", key); key 726 ipc/shm.c long ksys_shmget(key_t key, size_t size, int shmflg) key 738 ipc/shm.c shm_params.key = key; key 745 ipc/shm.c SYSCALL_DEFINE3(shmget, key_t, key, size_t, size, int, shmflg) key 747 ipc/shm.c return ksys_shmget(key, size, shmflg); key 1310 ipc/shm.c v.shm_perm.key = in->shm_perm.key; key 1760 ipc/shm.c shp->shm_perm.key, key 102 ipc/util.c .key_offset = offsetof(struct kern_ipc_perm, key), key 103 ipc/util.c .key_len = FIELD_SIZEOF(struct kern_ipc_perm, key), key 171 ipc/util.c static struct kern_ipc_perm *ipc_findkey(struct ipc_ids *ids, key_t key) key 175 ipc/util.c ipcp = rhashtable_lookup_fast(&ids->key_ht, &key, key 307 ipc/util.c if (idx >= 0 && new->key != IPC_PRIVATE) { key 408 ipc/util.c ipcp = ipc_findkey(ids, params->key); key 448 ipc/util.c if (ipcp->key != IPC_PRIVATE) key 491 ipc/util.c ipcp->key = IPC_PRIVATE; key 555 ipc/util.c out->key = in->key; key 574 ipc/util.c out->key = in->key; key 642 ipc/util.c if (params->key == IPC_PRIVATE) key 88 ipc/util.h key_t key; key 258 ipc/util.h key_t key; key 2053 kernel/audit.c void audit_log_key(struct audit_buffer *ab, char *key) key 2056 kernel/audit.c if (key) key 2057 kernel/audit.c audit_log_untrustedstring(ab, key); key 27 kernel/audit_tree.c unsigned long key; key 221 kernel/audit_tree.c static inline struct list_head *chunk_hash(unsigned long key) key 223 kernel/audit_tree.c unsigned long n = key / L1_CACHE_BYTES; key 238 kernel/audit_tree.c WARN_ON_ONCE(!chunk->key); key 239 kernel/audit_tree.c list = chunk_hash(chunk->key); key 246 kernel/audit_tree.c unsigned long key = inode_to_key(inode); key 247 kernel/audit_tree.c struct list_head *list = chunk_hash(key); key 255 kernel/audit_tree.c if (READ_ONCE(p->key) == key) { key 300 kernel/audit_tree.c new->key = old->key; key 442 kernel/audit_tree.c chunk->key = inode_to_key(inode); key 713 kernel/audit_tree.c (void *)(chunk->key), key 740 kernel/auditsc.c static enum audit_state audit_filter_task(struct task_struct *tsk, char **key) key 750 kernel/auditsc.c *key = kstrdup(e->rule.filterkey, GFP_ATOMIC); key 919 kernel/auditsc.c char *key = NULL; key 924 kernel/auditsc.c state = audit_filter_task(tsk, &key); key 931 kernel/auditsc.c kfree(key); key 935 kernel/auditsc.c context->filterkey = key; key 143 kernel/bpf/arraymap.c static void *array_map_lookup_elem(struct bpf_map *map, void *key) key 146 kernel/bpf/arraymap.c u32 index = *(u32 *)key; key 215 kernel/bpf/arraymap.c static void *percpu_array_map_lookup_elem(struct bpf_map *map, void *key) key 218 kernel/bpf/arraymap.c u32 index = *(u32 *)key; key 226 kernel/bpf/arraymap.c int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value) key 229 kernel/bpf/arraymap.c u32 index = *(u32 *)key; key 253 kernel/bpf/arraymap.c static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) key 256 kernel/bpf/arraymap.c u32 index = key ? *(u32 *)key : U32_MAX; key 272 kernel/bpf/arraymap.c static int array_map_update_elem(struct bpf_map *map, void *key, void *value, key 276 kernel/bpf/arraymap.c u32 index = *(u32 *)key; key 309 kernel/bpf/arraymap.c int bpf_percpu_array_update(struct bpf_map *map, void *key, void *value, key 313 kernel/bpf/arraymap.c u32 index = *(u32 *)key; key 348 kernel/bpf/arraymap.c static int array_map_delete_elem(struct bpf_map *map, void *key) key 371 kernel/bpf/arraymap.c static void array_map_seq_show_elem(struct bpf_map *map, void *key, key 378 kernel/bpf/arraymap.c value = array_map_lookup_elem(map, key); key 385 kernel/bpf/arraymap.c seq_printf(m, "%u: ", *(u32 *)key); key 392 kernel/bpf/arraymap.c static void percpu_array_map_seq_show_elem(struct bpf_map *map, void *key, key 396 kernel/bpf/arraymap.c u32 index = *(u32 *)key; key 402 kernel/bpf/arraymap.c seq_printf(m, "%u: {\n", *(u32 *)key); key 499 kernel/bpf/arraymap.c static void *fd_array_map_lookup_elem(struct bpf_map *map, void *key) key 505 kernel/bpf/arraymap.c int bpf_fd_array_map_lookup_elem(struct bpf_map *map, void *key, u32 *value) key 514 kernel/bpf/arraymap.c elem = array_map_lookup_elem(map, key); key 526 kernel/bpf/arraymap.c void *key, void *value, u64 map_flags) key 530 kernel/bpf/arraymap.c u32 index = *(u32 *)key, ufd; key 550 kernel/bpf/arraymap.c static int fd_array_map_delete_elem(struct bpf_map *map, void *key) key 554 kernel/bpf/arraymap.c u32 index = *(u32 *)key; key 605 kernel/bpf/arraymap.c static void prog_array_map_seq_show_elem(struct bpf_map *map, void *key, key 613 kernel/bpf/arraymap.c elem = array_map_lookup_elem(map, key); key 617 kernel/bpf/arraymap.c seq_printf(m, "%u: ", *(u32 *)key); key 793 kernel/bpf/arraymap.c static void *array_of_map_lookup_elem(struct bpf_map *map, void *key) key 795 kernel/bpf/arraymap.c struct bpf_map **inner_map = array_map_lookup_elem(map, key); key 593 kernel/bpf/core.c static __always_inline int bpf_tree_comp(void *key, struct latch_tree_node *n) key 595 kernel/bpf/core.c unsigned long val = (unsigned long)key; key 455 kernel/bpf/cpumap.c static int cpu_map_delete_elem(struct bpf_map *map, void *key) key 458 kernel/bpf/cpumap.c u32 key_cpu = *(u32 *)key; key 468 kernel/bpf/cpumap.c static int cpu_map_update_elem(struct bpf_map *map, void *key, void *value, key 475 kernel/bpf/cpumap.c u32 key_cpu = *(u32 *)key; key 555 kernel/bpf/cpumap.c struct bpf_cpu_map_entry *__cpu_map_lookup_elem(struct bpf_map *map, u32 key) key 560 kernel/bpf/cpumap.c if (key >= map->max_entries) key 563 kernel/bpf/cpumap.c rcpu = READ_ONCE(cmap->cpu_map[key]); key 567 kernel/bpf/cpumap.c static void *cpu_map_lookup_elem(struct bpf_map *map, void *key) key 570 kernel/bpf/cpumap.c __cpu_map_lookup_elem(map, *(u32 *)key); key 575 kernel/bpf/cpumap.c static int cpu_map_get_next_key(struct bpf_map *map, void *key, void *next_key) key 578 kernel/bpf/cpumap.c u32 index = key ? *(u32 *)key : U32_MAX; key 273 kernel/bpf/devmap.c static int dev_map_get_next_key(struct bpf_map *map, void *key, void *next_key) key 276 kernel/bpf/devmap.c u32 index = key ? *(u32 *)key : U32_MAX; key 290 kernel/bpf/devmap.c struct bpf_dtab_netdev *__dev_map_hash_lookup_elem(struct bpf_map *map, u32 key) key 293 kernel/bpf/devmap.c struct hlist_head *head = dev_map_index_hash(dtab, key); key 298 kernel/bpf/devmap.c if (dev->idx == key) key 304 kernel/bpf/devmap.c static int dev_map_hash_get_next_key(struct bpf_map *map, void *key, key 313 kernel/bpf/devmap.c if (!key) key 316 kernel/bpf/devmap.c idx = *(u32 *)key; key 421 kernel/bpf/devmap.c struct bpf_dtab_netdev *__dev_map_lookup_elem(struct bpf_map *map, u32 key) key 426 kernel/bpf/devmap.c if (key >= map->max_entries) key 429 kernel/bpf/devmap.c obj = READ_ONCE(dtab->netdev_map[key]); key 496 kernel/bpf/devmap.c static void *dev_map_lookup_elem(struct bpf_map *map, void *key) key 498 kernel/bpf/devmap.c struct bpf_dtab_netdev *obj = __dev_map_lookup_elem(map, *(u32 *)key); key 504 kernel/bpf/devmap.c static void *dev_map_hash_lookup_elem(struct bpf_map *map, void *key) key 507 kernel/bpf/devmap.c *(u32 *)key); key 539 kernel/bpf/devmap.c static int dev_map_delete_elem(struct bpf_map *map, void *key) key 543 kernel/bpf/devmap.c int k = *(u32 *)key; key 562 kernel/bpf/devmap.c static int dev_map_hash_delete_elem(struct bpf_map *map, void *key) key 566 kernel/bpf/devmap.c int k = *(u32 *)key; key 624 kernel/bpf/devmap.c void *key, void *value, u64 map_flags) key 629 kernel/bpf/devmap.c u32 i = *(u32 *)key; key 657 kernel/bpf/devmap.c static int dev_map_update_elem(struct bpf_map *map, void *key, void *value, key 661 kernel/bpf/devmap.c map, key, value, map_flags); key 665 kernel/bpf/devmap.c void *key, void *value, u64 map_flags) key 670 kernel/bpf/devmap.c u32 idx = *(u32 *)key; key 714 kernel/bpf/devmap.c static int dev_map_hash_update_elem(struct bpf_map *map, void *key, void *value, key 718 kernel/bpf/devmap.c map, key, value, map_flags); key 57 kernel/bpf/hashtab.c char key[0] __aligned(8); key 82 kernel/bpf/hashtab.c *(void __percpu **)(l->key + key_size) = pptr; key 87 kernel/bpf/hashtab.c return *(void __percpu **)(l->key + key_size); key 92 kernel/bpf/hashtab.c return *(void **)(l->key + roundup(map->key_size, 8)); key 119 kernel/bpf/hashtab.c static struct htab_elem *prealloc_lru_pop(struct bpf_htab *htab, void *key, key 127 kernel/bpf/hashtab.c memcpy(l->key, key, htab->map.key_size); key 405 kernel/bpf/hashtab.c static inline u32 htab_map_hash(const void *key, u32 key_len, u32 hashrnd) key 407 kernel/bpf/hashtab.c return jhash(key, key_len, hashrnd); key 422 kernel/bpf/hashtab.c void *key, u32 key_size) key 428 kernel/bpf/hashtab.c if (l->hash == hash && !memcmp(&l->key, key, key_size)) key 439 kernel/bpf/hashtab.c u32 hash, void *key, key 447 kernel/bpf/hashtab.c if (l->hash == hash && !memcmp(&l->key, key, key_size)) key 461 kernel/bpf/hashtab.c static void *__htab_map_lookup_elem(struct bpf_map *map, void *key) key 473 kernel/bpf/hashtab.c hash = htab_map_hash(key, key_size, htab->hashrnd); key 477 kernel/bpf/hashtab.c l = lookup_nulls_elem_raw(head, hash, key, key_size, htab->n_buckets); key 482 kernel/bpf/hashtab.c static void *htab_map_lookup_elem(struct bpf_map *map, void *key) key 484 kernel/bpf/hashtab.c struct htab_elem *l = __htab_map_lookup_elem(map, key); key 487 kernel/bpf/hashtab.c return l->key + round_up(map->key_size, 8); key 509 kernel/bpf/hashtab.c (void *(*)(struct bpf_map *map, void *key))NULL)); key 513 kernel/bpf/hashtab.c offsetof(struct htab_elem, key) + key 519 kernel/bpf/hashtab.c void *key, const bool mark) key 521 kernel/bpf/hashtab.c struct htab_elem *l = __htab_map_lookup_elem(map, key); key 526 kernel/bpf/hashtab.c return l->key + round_up(map->key_size, 8); key 532 kernel/bpf/hashtab.c static void *htab_lru_map_lookup_elem(struct bpf_map *map, void *key) key 534 kernel/bpf/hashtab.c return __htab_lru_map_lookup_elem(map, key, true); key 537 kernel/bpf/hashtab.c static void *htab_lru_map_lookup_elem_sys(struct bpf_map *map, void *key) key 539 kernel/bpf/hashtab.c return __htab_lru_map_lookup_elem(map, key, false); key 550 kernel/bpf/hashtab.c (void *(*)(struct bpf_map *map, void *key))NULL)); key 562 kernel/bpf/hashtab.c offsetof(struct htab_elem, key) + key 597 kernel/bpf/hashtab.c static int htab_map_get_next_key(struct bpf_map *map, void *key, void *next_key) key 609 kernel/bpf/hashtab.c if (!key) key 612 kernel/bpf/hashtab.c hash = htab_map_hash(key, key_size, htab->hashrnd); key 617 kernel/bpf/hashtab.c l = lookup_nulls_elem_raw(head, hash, key, key_size, htab->n_buckets); key 628 kernel/bpf/hashtab.c memcpy(next_key, next_l->key, key_size); key 646 kernel/bpf/hashtab.c memcpy(next_key, next_l->key, key_size); key 721 kernel/bpf/hashtab.c static struct htab_elem *alloc_htab_elem(struct bpf_htab *htab, void *key, key 765 kernel/bpf/hashtab.c l_new->key + round_up(key_size, 8)); key 768 kernel/bpf/hashtab.c memcpy(l_new->key, key, key_size); key 790 kernel/bpf/hashtab.c memcpy(l_new->key + round_up(key_size, 8), value, size); key 793 kernel/bpf/hashtab.c l_new->key + round_up(key_size, 8), key 819 kernel/bpf/hashtab.c static int htab_map_update_elem(struct bpf_map *map, void *key, void *value, key 838 kernel/bpf/hashtab.c hash = htab_map_hash(key, key_size, htab->hashrnd); key 847 kernel/bpf/hashtab.c l_old = lookup_nulls_elem_raw(head, hash, key, key_size, key 855 kernel/bpf/hashtab.c l_old->key + round_up(key_size, 8), key 868 kernel/bpf/hashtab.c l_old = lookup_elem_raw(head, hash, key, key_size); key 882 kernel/bpf/hashtab.c l_old->key + round_up(key_size, 8), key 888 kernel/bpf/hashtab.c l_new = alloc_htab_elem(htab, key, value, key_size, hash, false, false, key 911 kernel/bpf/hashtab.c static int htab_lru_map_update_elem(struct bpf_map *map, void *key, void *value, key 930 kernel/bpf/hashtab.c hash = htab_map_hash(key, key_size, htab->hashrnd); key 940 kernel/bpf/hashtab.c l_new = prealloc_lru_pop(htab, key, hash); key 943 kernel/bpf/hashtab.c memcpy(l_new->key + round_up(map->key_size, 8), value, map->value_size); key 948 kernel/bpf/hashtab.c l_old = lookup_elem_raw(head, hash, key, key_size); key 975 kernel/bpf/hashtab.c static int __htab_percpu_map_update_elem(struct bpf_map *map, void *key, key 995 kernel/bpf/hashtab.c hash = htab_map_hash(key, key_size, htab->hashrnd); key 1003 kernel/bpf/hashtab.c l_old = lookup_elem_raw(head, hash, key, key_size); key 1014 kernel/bpf/hashtab.c l_new = alloc_htab_elem(htab, key, value, key_size, key 1028 kernel/bpf/hashtab.c static int __htab_lru_percpu_map_update_elem(struct bpf_map *map, void *key, key 1048 kernel/bpf/hashtab.c hash = htab_map_hash(key, key_size, htab->hashrnd); key 1059 kernel/bpf/hashtab.c l_new = prealloc_lru_pop(htab, key, hash); key 1067 kernel/bpf/hashtab.c l_old = lookup_elem_raw(head, hash, key, key_size); key 1093 kernel/bpf/hashtab.c static int htab_percpu_map_update_elem(struct bpf_map *map, void *key, key 1096 kernel/bpf/hashtab.c return __htab_percpu_map_update_elem(map, key, value, map_flags, false); key 1099 kernel/bpf/hashtab.c static int htab_lru_percpu_map_update_elem(struct bpf_map *map, void *key, key 1102 kernel/bpf/hashtab.c return __htab_lru_percpu_map_update_elem(map, key, value, map_flags, key 1107 kernel/bpf/hashtab.c static int htab_map_delete_elem(struct bpf_map *map, void *key) key 1121 kernel/bpf/hashtab.c hash = htab_map_hash(key, key_size, htab->hashrnd); key 1127 kernel/bpf/hashtab.c l = lookup_elem_raw(head, hash, key, key_size); key 1139 kernel/bpf/hashtab.c static int htab_lru_map_delete_elem(struct bpf_map *map, void *key) key 1153 kernel/bpf/hashtab.c hash = htab_map_hash(key, key_size, htab->hashrnd); key 1159 kernel/bpf/hashtab.c l = lookup_elem_raw(head, hash, key, key_size); key 1214 kernel/bpf/hashtab.c static void htab_map_seq_show_elem(struct bpf_map *map, void *key, key 1221 kernel/bpf/hashtab.c value = htab_map_lookup_elem(map, key); key 1227 kernel/bpf/hashtab.c btf_type_seq_show(map->btf, map->btf_key_type_id, key, m); key 1261 kernel/bpf/hashtab.c static void *htab_percpu_map_lookup_elem(struct bpf_map *map, void *key) key 1263 kernel/bpf/hashtab.c struct htab_elem *l = __htab_map_lookup_elem(map, key); key 1271 kernel/bpf/hashtab.c static void *htab_lru_percpu_map_lookup_elem(struct bpf_map *map, void *key) key 1273 kernel/bpf/hashtab.c struct htab_elem *l = __htab_map_lookup_elem(map, key); key 1283 kernel/bpf/hashtab.c int bpf_percpu_hash_copy(struct bpf_map *map, void *key, void *value) key 1297 kernel/bpf/hashtab.c l = __htab_map_lookup_elem(map, key); key 1315 kernel/bpf/hashtab.c int bpf_percpu_hash_update(struct bpf_map *map, void *key, void *value, key 1323 kernel/bpf/hashtab.c ret = __htab_lru_percpu_map_update_elem(map, key, value, key 1326 kernel/bpf/hashtab.c ret = __htab_percpu_map_update_elem(map, key, value, map_flags, key 1333 kernel/bpf/hashtab.c static void htab_percpu_map_seq_show_elem(struct bpf_map *map, void *key, key 1342 kernel/bpf/hashtab.c l = __htab_map_lookup_elem(map, key); key 1348 kernel/bpf/hashtab.c btf_type_seq_show(map->btf, map->btf_key_type_id, key, m); key 1413 kernel/bpf/hashtab.c int bpf_fd_htab_map_lookup_elem(struct bpf_map *map, void *key, u32 *value) key 1422 kernel/bpf/hashtab.c ptr = htab_map_lookup_elem(map, key); key 1434 kernel/bpf/hashtab.c void *key, void *value, u64 map_flags) key 1444 kernel/bpf/hashtab.c ret = htab_map_update_elem(map, key, &ptr, map_flags); key 1470 kernel/bpf/hashtab.c static void *htab_of_map_lookup_elem(struct bpf_map *map, void *key) key 1472 kernel/bpf/hashtab.c struct bpf_map **inner_map = htab_map_lookup_elem(map, key); key 1487 kernel/bpf/hashtab.c (void *(*)(struct bpf_map *map, void *key))NULL)); key 1491 kernel/bpf/hashtab.c offsetof(struct htab_elem, key) + key 26 kernel/bpf/helpers.c BPF_CALL_2(bpf_map_lookup_elem, struct bpf_map *, map, void *, key) key 29 kernel/bpf/helpers.c return (unsigned long) map->ops->map_lookup_elem(map, key); key 41 kernel/bpf/helpers.c BPF_CALL_4(bpf_map_update_elem, struct bpf_map *, map, void *, key, key 45 kernel/bpf/helpers.c return map->ops->map_update_elem(map, key, value, flags); key 59 kernel/bpf/helpers.c BPF_CALL_2(bpf_map_delete_elem, struct bpf_map *, map, void *, key) key 62 kernel/bpf/helpers.c return map->ops->map_delete_elem(map, key); key 152 kernel/bpf/inode.c void *key; key 169 kernel/bpf/inode.c kfree(iter->key); key 182 kernel/bpf/inode.c iter->key = kzalloc(map->key_size, GFP_KERNEL | __GFP_NOWARN); key 183 kernel/bpf/inode.c if (!iter->key) key 196 kernel/bpf/inode.c void *key = map_iter(m)->key; key 206 kernel/bpf/inode.c prev_key = key; key 208 kernel/bpf/inode.c if (map->ops->map_get_next_key(map, prev_key, key)) { key 212 kernel/bpf/inode.c return key; key 220 kernel/bpf/inode.c return *pos ? map_iter(m)->key : SEQ_START_TOKEN; key 230 kernel/bpf/inode.c void *key = map_iter(m)->key; key 236 kernel/bpf/inode.c map->ops->map_seq_show_elem(map, key, m); key 49 kernel/bpf/local_storage.c struct bpf_cgroup_storage_map *map, struct bpf_cgroup_storage_key *key, key 64 kernel/bpf/local_storage.c switch (bpf_cgroup_storage_key_cmp(key, &storage->key)) { key 96 kernel/bpf/local_storage.c switch (bpf_cgroup_storage_key_cmp(&storage->key, &this->key)) { key 117 kernel/bpf/local_storage.c struct bpf_cgroup_storage_key *key = _key; key 120 kernel/bpf/local_storage.c storage = cgroup_storage_lookup(map, key, false); key 130 kernel/bpf/local_storage.c struct bpf_cgroup_storage_key *key = _key; key 145 kernel/bpf/local_storage.c key, false); key 174 kernel/bpf/local_storage.c struct bpf_cgroup_storage_key *key = _key; key 180 kernel/bpf/local_storage.c storage = cgroup_storage_lookup(map, key, false); key 204 kernel/bpf/local_storage.c struct bpf_cgroup_storage_key *key = _key; key 213 kernel/bpf/local_storage.c storage = cgroup_storage_lookup(map, key, false); key 239 kernel/bpf/local_storage.c struct bpf_cgroup_storage_key *key = _key; key 248 kernel/bpf/local_storage.c if (key) { key 249 kernel/bpf/local_storage.c storage = cgroup_storage_lookup(map, key, true); key 262 kernel/bpf/local_storage.c next->attach_type = storage->key.attach_type; key 263 kernel/bpf/local_storage.c next->cgroup_inode_id = storage->key.cgroup_inode_id; key 328 kernel/bpf/local_storage.c static int cgroup_storage_delete_elem(struct bpf_map *map, void *key) key 380 kernel/bpf/local_storage.c struct bpf_cgroup_storage_key *key = _key; key 385 kernel/bpf/local_storage.c storage = cgroup_storage_lookup(map_to_storage(map), key, false); key 391 kernel/bpf/local_storage.c btf_type_seq_show(map->btf, map->btf_key_type_id, key, m); key 571 kernel/bpf/local_storage.c storage->key.attach_type = type; key 572 kernel/bpf/local_storage.c storage->key.cgroup_inode_id = cgroup->kn->id.id; key 166 kernel/bpf/lpm_trie.c const struct bpf_lpm_trie_key *key) key 168 kernel/bpf/lpm_trie.c u32 limit = min(node->prefixlen, key->prefixlen); key 181 kernel/bpf/lpm_trie.c *(__be64 *)key->data); key 194 kernel/bpf/lpm_trie.c *(__be32 *)&key->data[i]); key 206 kernel/bpf/lpm_trie.c *(__be16 *)&key->data[i]); key 217 kernel/bpf/lpm_trie.c prefixlen += 8 - fls(node->data[i] ^ key->data[i]); key 231 kernel/bpf/lpm_trie.c struct bpf_lpm_trie_key *key = _key; key 243 kernel/bpf/lpm_trie.c matchlen = longest_prefix_match(trie, node, key); key 266 kernel/bpf/lpm_trie.c next_bit = extract_bit(key->data, node->prefixlen); key 306 kernel/bpf/lpm_trie.c struct bpf_lpm_trie_key *key = _key; key 315 kernel/bpf/lpm_trie.c if (key->prefixlen > trie->max_prefixlen) key 335 kernel/bpf/lpm_trie.c new_node->prefixlen = key->prefixlen; key 338 kernel/bpf/lpm_trie.c memcpy(new_node->data, key->data, trie->data_size); key 349 kernel/bpf/lpm_trie.c matchlen = longest_prefix_match(trie, node, key); key 352 kernel/bpf/lpm_trie.c node->prefixlen == key->prefixlen || key 356 kernel/bpf/lpm_trie.c next_bit = extract_bit(key->data, node->prefixlen); key 387 kernel/bpf/lpm_trie.c if (matchlen == key->prefixlen) { key 405 kernel/bpf/lpm_trie.c if (extract_bit(key->data, matchlen)) { key 434 kernel/bpf/lpm_trie.c struct bpf_lpm_trie_key *key = _key; key 442 kernel/bpf/lpm_trie.c if (key->prefixlen > trie->max_prefixlen) key 458 kernel/bpf/lpm_trie.c matchlen = longest_prefix_match(trie, node, key); key 461 kernel/bpf/lpm_trie.c node->prefixlen == key->prefixlen) key 466 kernel/bpf/lpm_trie.c next_bit = extract_bit(key->data, node->prefixlen); key 470 kernel/bpf/lpm_trie.c if (!node || node->prefixlen != key->prefixlen || key 634 kernel/bpf/lpm_trie.c struct bpf_lpm_trie_key *key = _key, *next_key = _next_key; key 657 kernel/bpf/lpm_trie.c if (!key || key->prefixlen > trie->max_prefixlen) key 669 kernel/bpf/lpm_trie.c matchlen = longest_prefix_match(trie, node, key); key 671 kernel/bpf/lpm_trie.c node->prefixlen == key->prefixlen) key 674 kernel/bpf/lpm_trie.c next_bit = extract_bit(key->data, node->prefixlen); key 677 kernel/bpf/lpm_trie.c if (!node || node->prefixlen != key->prefixlen || key 434 kernel/bpf/offload.c int bpf_map_offload_lookup_elem(struct bpf_map *map, void *key, void *value) key 441 kernel/bpf/offload.c ret = offmap->dev_ops->map_lookup_elem(offmap, key, value); key 448 kernel/bpf/offload.c void *key, void *value, u64 flags) key 458 kernel/bpf/offload.c ret = offmap->dev_ops->map_update_elem(offmap, key, value, key 465 kernel/bpf/offload.c int bpf_map_offload_delete_elem(struct bpf_map *map, void *key) key 472 kernel/bpf/offload.c ret = offmap->dev_ops->map_delete_elem(offmap, key); key 478 kernel/bpf/offload.c int bpf_map_offload_get_next_key(struct bpf_map *map, void *key, void *next_key) key 485 kernel/bpf/offload.c ret = offmap->dev_ops->map_get_next_key(offmap, key, next_key); key 240 kernel/bpf/queue_stack_maps.c static void *queue_stack_map_lookup_elem(struct bpf_map *map, void *key) key 246 kernel/bpf/queue_stack_maps.c static int queue_stack_map_update_elem(struct bpf_map *map, void *key, key 253 kernel/bpf/queue_stack_maps.c static int queue_stack_map_delete_elem(struct bpf_map *map, void *key) key 259 kernel/bpf/queue_stack_maps.c static int queue_stack_map_get_next_key(struct bpf_map *map, void *key, key 49 kernel/bpf/reuseport_array.c static void *reuseport_array_lookup_elem(struct bpf_map *map, void *key) key 52 kernel/bpf/reuseport_array.c u32 index = *(u32 *)key; key 61 kernel/bpf/reuseport_array.c static int reuseport_array_delete_elem(struct bpf_map *map, void *key) key 64 kernel/bpf/reuseport_array.c u32 index = *(u32 *)key; key 181 kernel/bpf/reuseport_array.c int bpf_fd_reuseport_array_lookup_elem(struct bpf_map *map, void *key, key 191 kernel/bpf/reuseport_array.c sk = reuseport_array_lookup_elem(map, key); key 248 kernel/bpf/reuseport_array.c int bpf_fd_reuseport_array_update_elem(struct bpf_map *map, void *key, key 254 kernel/bpf/reuseport_array.c u32 index = *(u32 *)key; key 334 kernel/bpf/reuseport_array.c static int reuseport_array_get_next_key(struct bpf_map *map, void *key, key 338 kernel/bpf/reuseport_array.c u32 index = key ? *(u32 *)key : U32_MAX; key 514 kernel/bpf/stackmap.c static void *stack_map_lookup_elem(struct bpf_map *map, void *key) key 520 kernel/bpf/stackmap.c int bpf_stackmap_copy(struct bpf_map *map, void *key, void *value) key 524 kernel/bpf/stackmap.c u32 id = *(u32 *)key, trace_len; key 543 kernel/bpf/stackmap.c static int stack_map_get_next_key(struct bpf_map *map, void *key, key 552 kernel/bpf/stackmap.c if (!key) { key 555 kernel/bpf/stackmap.c id = *(u32 *)key; key 572 kernel/bpf/stackmap.c static int stack_map_update_elem(struct bpf_map *map, void *key, void *value, key 579 kernel/bpf/stackmap.c static int stack_map_delete_elem(struct bpf_map *map, void *key) key 583 kernel/bpf/stackmap.c u32 id = *(u32 *)key; key 720 kernel/bpf/syscall.c int __weak bpf_stackmap_copy(struct bpf_map *map, void *key, void *value) key 741 kernel/bpf/syscall.c void __user *ukey = u64_to_user_ptr(attr->key); key 745 kernel/bpf/syscall.c void *key, *value, *ptr; key 771 kernel/bpf/syscall.c key = __bpf_copy_key(ukey, map->key_size); key 772 kernel/bpf/syscall.c if (IS_ERR(key)) { key 773 kernel/bpf/syscall.c err = PTR_ERR(key); key 793 kernel/bpf/syscall.c err = bpf_map_offload_lookup_elem(map, key, value); key 801 kernel/bpf/syscall.c err = bpf_percpu_hash_copy(map, key, value); key 803 kernel/bpf/syscall.c err = bpf_percpu_array_copy(map, key, value); key 805 kernel/bpf/syscall.c err = bpf_percpu_cgroup_storage_copy(map, key, value); key 807 kernel/bpf/syscall.c err = bpf_stackmap_copy(map, key, value); key 809 kernel/bpf/syscall.c err = bpf_fd_array_map_lookup_elem(map, key, value); key 811 kernel/bpf/syscall.c err = bpf_fd_htab_map_lookup_elem(map, key, value); key 813 kernel/bpf/syscall.c err = bpf_fd_reuseport_array_lookup_elem(map, key, value); key 820 kernel/bpf/syscall.c ptr = map->ops->map_lookup_elem_sys_only(map, key); key 822 kernel/bpf/syscall.c ptr = map->ops->map_lookup_elem(map, key); key 855 kernel/bpf/syscall.c kfree(key); key 876 kernel/bpf/syscall.c void __user *ukey = u64_to_user_ptr(attr->key); key 880 kernel/bpf/syscall.c void *key, *value; key 903 kernel/bpf/syscall.c key = __bpf_copy_key(ukey, map->key_size); key 904 kernel/bpf/syscall.c if (IS_ERR(key)) { key 905 kernel/bpf/syscall.c err = PTR_ERR(key); key 928 kernel/bpf/syscall.c err = bpf_map_offload_update_elem(map, key, value, attr->flags); key 933 kernel/bpf/syscall.c err = map->ops->map_update_elem(map, key, value, attr->flags); key 944 kernel/bpf/syscall.c err = bpf_percpu_hash_update(map, key, value, attr->flags); key 946 kernel/bpf/syscall.c err = bpf_percpu_array_update(map, key, value, attr->flags); key 948 kernel/bpf/syscall.c err = bpf_percpu_cgroup_storage_update(map, key, value, key 952 kernel/bpf/syscall.c err = bpf_fd_array_map_update_elem(map, f.file, key, value, key 957 kernel/bpf/syscall.c err = bpf_fd_htab_map_update_elem(map, f.file, key, value, key 962 kernel/bpf/syscall.c err = bpf_fd_reuseport_array_update_elem(map, key, value, key 969 kernel/bpf/syscall.c err = map->ops->map_update_elem(map, key, value, attr->flags); key 979 kernel/bpf/syscall.c kfree(key); key 985 kernel/bpf/syscall.c #define BPF_MAP_DELETE_ELEM_LAST_FIELD key key 989 kernel/bpf/syscall.c void __user *ukey = u64_to_user_ptr(attr->key); key 993 kernel/bpf/syscall.c void *key; key 1008 kernel/bpf/syscall.c key = __bpf_copy_key(ukey, map->key_size); key 1009 kernel/bpf/syscall.c if (IS_ERR(key)) { key 1010 kernel/bpf/syscall.c err = PTR_ERR(key); key 1015 kernel/bpf/syscall.c err = bpf_map_offload_delete_elem(map, key); key 1022 kernel/bpf/syscall.c err = map->ops->map_delete_elem(map, key); key 1028 kernel/bpf/syscall.c kfree(key); key 1039 kernel/bpf/syscall.c void __user *ukey = u64_to_user_ptr(attr->key); key 1043 kernel/bpf/syscall.c void *key, *next_key; key 1060 kernel/bpf/syscall.c key = __bpf_copy_key(ukey, map->key_size); key 1061 kernel/bpf/syscall.c if (IS_ERR(key)) { key 1062 kernel/bpf/syscall.c err = PTR_ERR(key); key 1066 kernel/bpf/syscall.c key = NULL; key 1075 kernel/bpf/syscall.c err = bpf_map_offload_get_next_key(map, key, next_key); key 1080 kernel/bpf/syscall.c err = map->ops->map_get_next_key(map, key, next_key); key 1095 kernel/bpf/syscall.c kfree(key); key 1105 kernel/bpf/syscall.c void __user *ukey = u64_to_user_ptr(attr->key); key 1109 kernel/bpf/syscall.c void *key, *value; key 1126 kernel/bpf/syscall.c key = __bpf_copy_key(ukey, map->key_size); key 1127 kernel/bpf/syscall.c if (IS_ERR(key)) { key 1128 kernel/bpf/syscall.c err = PTR_ERR(key); key 1159 kernel/bpf/syscall.c kfree(key); key 9178 kernel/bpf/verifier.c (void *(*)(struct bpf_map *map, void *key))NULL)); key 9180 kernel/bpf/verifier.c (int (*)(struct bpf_map *map, void *key))NULL)); key 9182 kernel/bpf/verifier.c (int (*)(struct bpf_map *map, void *key, void *value, key 146 kernel/bpf/xskmap.c static int xsk_map_get_next_key(struct bpf_map *map, void *key, void *next_key) key 149 kernel/bpf/xskmap.c u32 index = key ? *(u32 *)key : U32_MAX; key 163 kernel/bpf/xskmap.c struct xdp_sock *__xsk_map_lookup_elem(struct bpf_map *map, u32 key) key 168 kernel/bpf/xskmap.c if (key >= map->max_entries) key 171 kernel/bpf/xskmap.c xs = READ_ONCE(m->xsk_map[key]); key 204 kernel/bpf/xskmap.c static void *xsk_map_lookup_elem(struct bpf_map *map, void *key) key 207 kernel/bpf/xskmap.c return __xsk_map_lookup_elem(map, *(u32 *)key); key 210 kernel/bpf/xskmap.c static void *xsk_map_lookup_elem_sys_only(struct bpf_map *map, void *key) key 215 kernel/bpf/xskmap.c static int xsk_map_update_elem(struct bpf_map *map, void *key, void *value, key 220 kernel/bpf/xskmap.c u32 i = *(u32 *)key, fd = *(u32 *)value; key 280 kernel/bpf/xskmap.c static int xsk_map_delete_elem(struct bpf_map *map, void *key) key 284 kernel/bpf/xskmap.c int k = *(u32 *)key; key 183 kernel/cgroup/cgroup-v1.c struct { enum cgroup_filetype type; struct pid_namespace *ns; } key; key 229 kernel/cgroup/cgroup-v1.c put_pid_ns(l->key.ns); key 291 kernel/cgroup/cgroup-v1.c if (l->key.type == type && l->key.ns == ns) key 319 kernel/cgroup/cgroup-v1.c l->key.type = type; key 321 kernel/cgroup/cgroup-v1.c l->key.ns = get_pid_ns(task_active_pid_ns(current)); key 916 kernel/cgroup/cgroup-v1.c if (strcmp(param->key, "source") == 0) { key 922 kernel/cgroup/cgroup-v1.c if (strcmp(param->key, ss->legacy_name)) key 927 kernel/cgroup/cgroup-v1.c return cg_invalf(fc, "cgroup1: Unknown subsys name '%s'", param->key); key 923 kernel/cgroup/cgroup.c unsigned long key = 0UL; key 928 kernel/cgroup/cgroup.c key += (unsigned long)css[i]; key 929 kernel/cgroup/cgroup.c key = (key >> 16) ^ key; key 931 kernel/cgroup/cgroup.c return key; key 1067 kernel/cgroup/cgroup.c unsigned long key; key 1091 kernel/cgroup/cgroup.c key = css_set_hash(template); key 1092 kernel/cgroup/cgroup.c hash_for_each_possible(css_set_table, cset, hlist, key) { key 1187 kernel/cgroup/cgroup.c unsigned long key; key 1244 kernel/cgroup/cgroup.c key = css_set_hash(cset->subsys); key 1245 kernel/cgroup/cgroup.c hash_add(css_set_table, &cset->hlist, key); key 3874 kernel/cgroup/cgroup.c struct lock_class_key *key = NULL; key 3878 kernel/cgroup/cgroup.c key = &cft->lockdep_key; key 3884 kernel/cgroup/cgroup.c NULL, key); key 677 kernel/cgroup/cpuset.c return static_key_count(&cpusets_enabled_key.key) + 1; key 871 kernel/debug/debug_core.c static void sysrq_handle_dbg(int key) key 60 kernel/debug/kdb/kdb_io.c int key; key 74 kernel/debug/kdb/kdb_io.c key = *ped++; key 79 kernel/debug/kdb/kdb_io.c key = (*f)(); key 80 kernel/debug/kdb/kdb_io.c if (key == -1) { key 88 kernel/debug/kdb/kdb_io.c if (key == '\r') key 89 kernel/debug/kdb/kdb_io.c key = '\n'; key 90 kernel/debug/kdb/kdb_io.c *buffer++ = key; key 94 kernel/debug/kdb/kdb_io.c if (escape_delay == 0 && key == '\e') { key 100 kernel/debug/kdb/kdb_io.c *ped++ = key; key 110 kernel/debug/kdb/kdb_io.c if (key != '[') key 116 kernel/debug/kdb/kdb_io.c switch (key) { key 147 kernel/debug/kdb/kdb_io.c if (key == '~') { key 170 kernel/debug/kdb/kdb_io.c return key; key 219 kernel/debug/kdb/kdb_io.c int key, buf_size, ret; key 236 kernel/debug/kdb/kdb_io.c key = kdb_read_get_key(buffer, bufsize); key 237 kernel/debug/kdb/kdb_io.c if (key == -1) key 239 kernel/debug/kdb/kdb_io.c if (key != 9) key 241 kernel/debug/kdb/kdb_io.c switch (key) { key 305 kernel/debug/kdb/kdb_io.c *lastchar = (char)key; key 320 kernel/debug/kdb/kdb_io.c *lastchar = (char)key; key 379 kernel/debug/kdb/kdb_io.c if (key >= 32 && lastchar < bufend) { key 384 kernel/debug/kdb/kdb_io.c *cp = key; key 394 kernel/debug/kdb/kdb_io.c *cp++ = key; key 403 kernel/debug/kdb/kdb_io.c kdb_printf("%c", key); key 1398 kernel/exit.c int sync, void *key) key 1402 kernel/exit.c struct task_struct *p = key; key 1410 kernel/exit.c return default_wake_function(wait, mode, sync, key); key 205 kernel/futex.c union futex_key key; key 235 kernel/futex.c union futex_key key; key 244 kernel/futex.c .key = FUTEX_KEY_INIT, key 334 kernel/futex.c static inline void futex_get_mm(union futex_key *key) key 336 kernel/futex.c mmgrab(key->private.mm); key 386 kernel/futex.c static struct futex_hash_bucket *hash_futex(union futex_key *key) key 388 kernel/futex.c u32 hash = jhash2((u32 *)key, offsetof(typeof(*key), both.offset) / 4, key 389 kernel/futex.c key->both.offset); key 415 kernel/futex.c static void get_futex_key_refs(union futex_key *key) key 417 kernel/futex.c if (!key->both.ptr) key 430 kernel/futex.c switch (key->both.offset & (FUT_OFF_INODE|FUT_OFF_MMSHARED)) { key 435 kernel/futex.c futex_get_mm(key); /* implies smp_mb(); (B) */ key 453 kernel/futex.c static void drop_futex_key_refs(union futex_key *key) key 455 kernel/futex.c if (!key->both.ptr) { key 464 kernel/futex.c switch (key->both.offset & (FUT_OFF_INODE|FUT_OFF_MMSHARED)) { key 468 kernel/futex.c mmdrop(key->private.mm); key 572 kernel/futex.c get_futex_key(u32 __user *uaddr, int fshared, union futex_key *key, enum futex_access rw) key 583 kernel/futex.c key->both.offset = address % PAGE_SIZE; key 586 kernel/futex.c address -= key->both.offset; key 602 kernel/futex.c key->private.mm = mm; key 603 kernel/futex.c key->private.address = address; key 604 kernel/futex.c get_futex_key_refs(key); /* implies smp_mb(); (B) */ key 703 kernel/futex.c key->both.offset |= FUT_OFF_MMSHARED; /* ref taken on mm */ key 704 kernel/futex.c key->private.mm = mm; key 705 kernel/futex.c key->private.address = address; key 738 kernel/futex.c key->both.offset |= FUT_OFF_INODE; /* inode-based key */ key 739 kernel/futex.c key->shared.i_seq = get_inode_sequence_number(inode); key 740 kernel/futex.c key->shared.pgoff = basepage_index(tail); key 744 kernel/futex.c get_futex_key_refs(key); /* implies smp_mb(); (B) */ key 751 kernel/futex.c static inline void put_futex_key(union futex_key *key) key 753 kernel/futex.c drop_futex_key_refs(key); key 789 kernel/futex.c union futex_key *key) key 794 kernel/futex.c if (match_futex(&this->key, key)) key 843 kernel/futex.c pi_state->key = FUTEX_KEY_INIT; key 921 kernel/futex.c union futex_key key = FUTEX_KEY_INIT; key 934 kernel/futex.c key = pi_state->key; key 935 kernel/futex.c hb = hash_futex(&key); key 1286 kernel/futex.c static int attach_to_pi_owner(u32 __user *uaddr, u32 uval, union futex_key *key, key 1358 kernel/futex.c pi_state->key = *key; key 1378 kernel/futex.c union futex_key *key, struct futex_pi_state **ps, key 1381 kernel/futex.c struct futex_q *top_waiter = futex_top_waiter(hb, key); key 1394 kernel/futex.c return attach_to_pi_owner(uaddr, uval, key, ps, exiting); key 1438 kernel/futex.c union futex_key *key, key 1471 kernel/futex.c top_waiter = futex_top_waiter(hb, key); key 1512 kernel/futex.c return attach_to_pi_owner(uaddr, newval, key, ps, exiting); key 1676 kernel/futex.c union futex_key key = FUTEX_KEY_INIT; key 1683 kernel/futex.c ret = get_futex_key(uaddr, flags & FLAGS_SHARED, &key, FUTEX_READ); key 1687 kernel/futex.c hb = hash_futex(&key); key 1696 kernel/futex.c if (match_futex (&this->key, &key)) { key 1715 kernel/futex.c put_futex_key(&key); key 1826 kernel/futex.c if (match_futex (&this->key, &key1)) { key 1840 kernel/futex.c if (match_futex (&this->key, &key2)) { key 1888 kernel/futex.c q->key = *key2; key 1906 kernel/futex.c void requeue_pi_wake_futex(struct futex_q *q, union futex_key *key, key 1909 kernel/futex.c get_futex_key_refs(key); key 1910 kernel/futex.c q->key = *key; key 2203 kernel/futex.c if (!match_futex(&this->key, &key1)) key 2320 kernel/futex.c hb = hash_futex(&q->key); key 2435 kernel/futex.c drop_futex_key_refs(&q->key); key 2768 kernel/futex.c ret = get_futex_key(uaddr, flags & FLAGS_SHARED, &q->key, FUTEX_READ); key 2787 kernel/futex.c put_futex_key(&q->key); key 2798 kernel/futex.c put_futex_key(&q->key); key 2913 kernel/futex.c ret = get_futex_key(uaddr, flags & FLAGS_SHARED, &q.key, FUTEX_WRITE); key 2920 kernel/futex.c ret = futex_lock_pi_atomic(uaddr, hb, &q.key, &q.pi_state, current, key 2943 kernel/futex.c put_futex_key(&q.key); key 3057 kernel/futex.c put_futex_key(&q.key); key 3075 kernel/futex.c put_futex_key(&q.key); key 3087 kernel/futex.c union futex_key key = FUTEX_KEY_INIT; key 3104 kernel/futex.c ret = get_futex_key(uaddr, flags & FLAGS_SHARED, &key, FUTEX_WRITE); key 3108 kernel/futex.c hb = hash_futex(&key); key 3116 kernel/futex.c top_waiter = futex_top_waiter(hb, &key); key 3204 kernel/futex.c put_futex_key(&key); key 3208 kernel/futex.c put_futex_key(&key); key 3213 kernel/futex.c put_futex_key(&key); key 3252 kernel/futex.c if (!match_futex(&q->key, key2)) { key 3361 kernel/futex.c if (match_futex(&q.key, &key2)) { key 3465 kernel/futex.c put_futex_key(&q.key); key 67 kernel/gcov/gcc_4_7.c const struct gcov_info *key; key 72 kernel/jump_label.c jea->key = jeb->key - delta; key 76 kernel/jump_label.c jeb->key = tmp.key + delta; key 93 kernel/jump_label.c static void jump_label_update(struct static_key *key); key 104 kernel/jump_label.c int static_key_count(struct static_key *key) key 110 kernel/jump_label.c int n = atomic_read(&key->enabled); key 116 kernel/jump_label.c void static_key_slow_inc_cpuslocked(struct static_key *key) key 120 kernel/jump_label.c STATIC_KEY_CHECK_USE(key); key 135 kernel/jump_label.c for (v = atomic_read(&key->enabled); v > 0; v = v1) { key 136 kernel/jump_label.c v1 = atomic_cmpxchg(&key->enabled, v, v + 1); key 142 kernel/jump_label.c if (atomic_read(&key->enabled) == 0) { key 143 kernel/jump_label.c atomic_set(&key->enabled, -1); key 144 kernel/jump_label.c jump_label_update(key); key 149 kernel/jump_label.c atomic_set_release(&key->enabled, 1); key 151 kernel/jump_label.c atomic_inc(&key->enabled); key 156 kernel/jump_label.c void static_key_slow_inc(struct static_key *key) key 159 kernel/jump_label.c static_key_slow_inc_cpuslocked(key); key 164 kernel/jump_label.c void static_key_enable_cpuslocked(struct static_key *key) key 166 kernel/jump_label.c STATIC_KEY_CHECK_USE(key); key 169 kernel/jump_label.c if (atomic_read(&key->enabled) > 0) { key 170 kernel/jump_label.c WARN_ON_ONCE(atomic_read(&key->enabled) != 1); key 175 kernel/jump_label.c if (atomic_read(&key->enabled) == 0) { key 176 kernel/jump_label.c atomic_set(&key->enabled, -1); key 177 kernel/jump_label.c jump_label_update(key); key 181 kernel/jump_label.c atomic_set_release(&key->enabled, 1); key 187 kernel/jump_label.c void static_key_enable(struct static_key *key) key 190 kernel/jump_label.c static_key_enable_cpuslocked(key); key 195 kernel/jump_label.c void static_key_disable_cpuslocked(struct static_key *key) key 197 kernel/jump_label.c STATIC_KEY_CHECK_USE(key); key 200 kernel/jump_label.c if (atomic_read(&key->enabled) != 1) { key 201 kernel/jump_label.c WARN_ON_ONCE(atomic_read(&key->enabled) != 0); key 206 kernel/jump_label.c if (atomic_cmpxchg(&key->enabled, 1, 0)) key 207 kernel/jump_label.c jump_label_update(key); key 212 kernel/jump_label.c void static_key_disable(struct static_key *key) key 215 kernel/jump_label.c static_key_disable_cpuslocked(key); key 220 kernel/jump_label.c static bool static_key_slow_try_dec(struct static_key *key) key 224 kernel/jump_label.c val = atomic_fetch_add_unless(&key->enabled, -1, 1); key 239 kernel/jump_label.c static void __static_key_slow_dec_cpuslocked(struct static_key *key) key 243 kernel/jump_label.c if (static_key_slow_try_dec(key)) key 247 kernel/jump_label.c if (atomic_dec_and_test(&key->enabled)) key 248 kernel/jump_label.c jump_label_update(key); key 252 kernel/jump_label.c static void __static_key_slow_dec(struct static_key *key) key 255 kernel/jump_label.c __static_key_slow_dec_cpuslocked(key); key 261 kernel/jump_label.c struct static_key_deferred *key = key 263 kernel/jump_label.c __static_key_slow_dec(&key->key); key 267 kernel/jump_label.c void static_key_slow_dec(struct static_key *key) key 269 kernel/jump_label.c STATIC_KEY_CHECK_USE(key); key 270 kernel/jump_label.c __static_key_slow_dec(key); key 274 kernel/jump_label.c void static_key_slow_dec_cpuslocked(struct static_key *key) key 276 kernel/jump_label.c STATIC_KEY_CHECK_USE(key); key 277 kernel/jump_label.c __static_key_slow_dec_cpuslocked(key); key 280 kernel/jump_label.c void __static_key_slow_dec_deferred(struct static_key *key, key 284 kernel/jump_label.c STATIC_KEY_CHECK_USE(key); key 286 kernel/jump_label.c if (static_key_slow_try_dec(key)) key 293 kernel/jump_label.c void __static_key_deferred_flush(void *key, struct delayed_work *work) key 295 kernel/jump_label.c STATIC_KEY_CHECK_USE(key); key 300 kernel/jump_label.c void jump_label_rate_limit(struct static_key_deferred *key, key 303 kernel/jump_label.c STATIC_KEY_CHECK_USE(key); key 304 kernel/jump_label.c key->timeout = rl; key 305 kernel/jump_label.c INIT_DELAYED_WORK(&key->work, jump_label_update_timeout); key 345 kernel/jump_label.c static inline struct jump_entry *static_key_entries(struct static_key *key) key 347 kernel/jump_label.c WARN_ON_ONCE(key->type & JUMP_TYPE_LINKED); key 348 kernel/jump_label.c return (struct jump_entry *)(key->type & ~JUMP_TYPE_MASK); key 351 kernel/jump_label.c static inline bool static_key_type(struct static_key *key) key 353 kernel/jump_label.c return key->type & JUMP_TYPE_TRUE; key 356 kernel/jump_label.c static inline bool static_key_linked(struct static_key *key) key 358 kernel/jump_label.c return key->type & JUMP_TYPE_LINKED; key 361 kernel/jump_label.c static inline void static_key_clear_linked(struct static_key *key) key 363 kernel/jump_label.c key->type &= ~JUMP_TYPE_LINKED; key 366 kernel/jump_label.c static inline void static_key_set_linked(struct static_key *key) key 368 kernel/jump_label.c key->type |= JUMP_TYPE_LINKED; key 380 kernel/jump_label.c static void static_key_set_entries(struct static_key *key, key 386 kernel/jump_label.c type = key->type & JUMP_TYPE_MASK; key 387 kernel/jump_label.c key->entries = entries; key 388 kernel/jump_label.c key->type |= type; key 393 kernel/jump_label.c struct static_key *key = jump_entry_key(entry); key 394 kernel/jump_label.c bool enabled = static_key_enabled(key); key 420 kernel/jump_label.c static void __jump_label_update(struct static_key *key, key 425 kernel/jump_label.c for (; (entry < stop) && (jump_entry_key(entry) == key); entry++) { key 431 kernel/jump_label.c static void __jump_label_update(struct static_key *key, key 436 kernel/jump_label.c for (; (entry < stop) && (jump_entry_key(entry) == key); entry++) { key 457 kernel/jump_label.c struct static_key *key = NULL; key 487 kernel/jump_label.c if (iterk == key) key 490 kernel/jump_label.c key = iterk; key 491 kernel/jump_label.c static_key_set_entries(key, iter); key 502 kernel/jump_label.c struct static_key *key = jump_entry_key(entry); key 503 kernel/jump_label.c bool type = static_key_type(key); key 516 kernel/jump_label.c static inline struct static_key_mod *static_key_mod(struct static_key *key) key 518 kernel/jump_label.c WARN_ON_ONCE(!static_key_linked(key)); key 519 kernel/jump_label.c return (struct static_key_mod *)(key->type & ~JUMP_TYPE_MASK); key 528 kernel/jump_label.c static void static_key_set_mod(struct static_key *key, key 534 kernel/jump_label.c type = key->type & JUMP_TYPE_MASK; key 535 kernel/jump_label.c key->next = mod; key 536 kernel/jump_label.c key->type |= type; key 557 kernel/jump_label.c static void __jump_label_mod_update(struct static_key *key) key 561 kernel/jump_label.c for (mod = static_key_mod(key); mod; mod = mod->next) { key 577 kernel/jump_label.c __jump_label_update(key, mod->entries, stop, key 612 kernel/jump_label.c struct static_key *key = NULL; key 628 kernel/jump_label.c if (iterk == key) key 631 kernel/jump_label.c key = iterk; key 632 kernel/jump_label.c if (within_module((unsigned long)key, mod)) { key 633 kernel/jump_label.c static_key_set_entries(key, iter); key 639 kernel/jump_label.c if (!static_key_linked(key)) { key 647 kernel/jump_label.c jlm2->mod = __module_address((unsigned long)key); key 649 kernel/jump_label.c jlm2->entries = static_key_entries(key); key 651 kernel/jump_label.c static_key_set_mod(key, jlm2); key 652 kernel/jump_label.c static_key_set_linked(key); key 656 kernel/jump_label.c jlm->next = static_key_mod(key); key 657 kernel/jump_label.c static_key_set_mod(key, jlm); key 658 kernel/jump_label.c static_key_set_linked(key); key 662 kernel/jump_label.c __jump_label_update(key, iter, iter_stop, true); key 673 kernel/jump_label.c struct static_key *key = NULL; key 677 kernel/jump_label.c if (jump_entry_key(iter) == key) key 680 kernel/jump_label.c key = jump_entry_key(iter); key 682 kernel/jump_label.c if (within_module((unsigned long)key, mod)) key 686 kernel/jump_label.c if (WARN_ON(!static_key_linked(key))) key 689 kernel/jump_label.c prev = &key->next; key 690 kernel/jump_label.c jlm = static_key_mod(key); key 701 kernel/jump_label.c if (prev == &key->next) key 702 kernel/jump_label.c static_key_set_mod(key, jlm->next); key 708 kernel/jump_label.c jlm = static_key_mod(key); key 711 kernel/jump_label.c static_key_set_entries(key, jlm->entries); key 712 kernel/jump_label.c static_key_clear_linked(key); key 787 kernel/jump_label.c static void jump_label_update(struct static_key *key) key 794 kernel/jump_label.c if (static_key_linked(key)) { key 795 kernel/jump_label.c __jump_label_mod_update(key); key 800 kernel/jump_label.c mod = __module_address((unsigned long)key); key 805 kernel/jump_label.c entry = static_key_entries(key); key 808 kernel/jump_label.c __jump_label_update(key, entry, stop, key 821 kernel/jump_label.c WARN_ON(static_key_enabled(&sk_true.key) != true); key 822 kernel/jump_label.c WARN_ON(static_key_enabled(&sk_false.key) != false); key 832 kernel/jump_label.c WARN_ON(static_key_enabled(&sk_true.key) == true); key 833 kernel/jump_label.c WARN_ON(static_key_enabled(&sk_false.key) == false); key 608 kernel/kthread.c struct lock_class_key *key) key 612 kernel/kthread.c lockdep_set_class_and_name(&worker->lock, key, name); key 342 kernel/locking/lockdep.c #define __classhashfn(key) hash_long((unsigned long)key, CLASSHASH_BITS) key 343 kernel/locking/lockdep.c #define classhashentry(key) (classhash_table + __classhashfn((key))) key 364 kernel/locking/lockdep.c static inline u64 iterate_chain_key(u64 key, u32 idx) key 366 kernel/locking/lockdep.c u32 k0 = key, k1 = key >> 32; key 581 kernel/locking/lockdep.c const char *__get_key_name(const struct lockdep_subclass_key *key, char *str) key 583 kernel/locking/lockdep.c return kallsyms_lookup((unsigned long)key, NULL, NULL, NULL, str); key 637 kernel/locking/lockdep.c name = __get_key_name(class->key, str); key 666 kernel/locking/lockdep.c name = __get_key_name(lock->key->subkeys, str); key 781 kernel/locking/lockdep.c if (new_class->key - new_class->subclass == class->key) key 793 kernel/locking/lockdep.c struct lockdep_subclass_key *key; key 811 kernel/locking/lockdep.c if (unlikely(!lock->key)) key 823 kernel/locking/lockdep.c key = lock->key->subkeys + subclass; key 825 kernel/locking/lockdep.c hash_head = classhashentry(key); key 834 kernel/locking/lockdep.c if (class->key == key) { key 840 kernel/locking/lockdep.c lock->key != &__lockdep_no_validate__); key 869 kernel/locking/lockdep.c lock->key = (void *)can_addr; key 871 kernel/locking/lockdep.c lock->key = (void *)can_addr; key 873 kernel/locking/lockdep.c lock->key = (void *)lock; key 1105 kernel/locking/lockdep.c static inline struct hlist_head *keyhashentry(const struct lock_class_key *key) key 1107 kernel/locking/lockdep.c unsigned long hash = hash_long((uintptr_t)key, KEYHASH_BITS); key 1113 kernel/locking/lockdep.c void lockdep_register_key(struct lock_class_key *key) key 1119 kernel/locking/lockdep.c if (WARN_ON_ONCE(static_obj(key))) key 1121 kernel/locking/lockdep.c hash_head = keyhashentry(key); key 1127 kernel/locking/lockdep.c if (WARN_ON_ONCE(k == key)) key 1130 kernel/locking/lockdep.c hlist_add_head_rcu(&key->hash_entry, hash_head); key 1139 kernel/locking/lockdep.c static bool is_dynamic_key(const struct lock_class_key *key) key 1145 kernel/locking/lockdep.c if (WARN_ON_ONCE(static_obj(key))) key 1156 kernel/locking/lockdep.c hash_head = keyhashentry(key); key 1160 kernel/locking/lockdep.c if (k == key) { key 1178 kernel/locking/lockdep.c struct lockdep_subclass_key *key; key 1188 kernel/locking/lockdep.c if (!lock->key) { key 1191 kernel/locking/lockdep.c } else if (!static_obj(lock->key) && !is_dynamic_key(lock->key)) { key 1195 kernel/locking/lockdep.c key = lock->key->subkeys + subclass; key 1196 kernel/locking/lockdep.c hash_head = classhashentry(key); key 1206 kernel/locking/lockdep.c if (class->key == key) key 1227 kernel/locking/lockdep.c class->key = key; key 1247 kernel/locking/lockdep.c printk("\nnew class %px: %s", class->key, class->name); key 1939 kernel/locking/lockdep.c depth, "", class->key, class->key); key 2451 kernel/locking/lockdep.c if (!hlock_class(prev)->key || !hlock_class(next)->key) { key 2458 kernel/locking/lockdep.c WARN_ONCE(!debug_locks_silent && !hlock_class(prev)->key, key 2462 kernel/locking/lockdep.c WARN_ONCE(!debug_locks_silent && !hlock_class(next)->key, key 2895 kernel/locking/lockdep.c class->key, class->name); key 2903 kernel/locking/lockdep.c (unsigned long long)chain_key, class->key, class->name); key 3714 kernel/locking/lockdep.c struct lock_class_key *key, int subclass) key 3738 kernel/locking/lockdep.c if (DEBUG_LOCKS_WARN_ON(!key)) key 3744 kernel/locking/lockdep.c if (!static_obj(key) && !is_dynamic_key(key)) { key 3746 kernel/locking/lockdep.c printk(KERN_ERR "BUG: key %px has not been registered!\n", key); key 3750 kernel/locking/lockdep.c lock->key = key; key 3831 kernel/locking/lockdep.c if (!prove_locking || lock->key == &__lockdep_no_validate__) key 3848 kernel/locking/lockdep.c printk("\nacquire class [%px] %s", class->key, class->name); key 3954 kernel/locking/lockdep.c WARN_ON_ONCE(depth && !hlock_class(hlock - 1)->key); key 3955 kernel/locking/lockdep.c WARN_ON_ONCE(!hlock_class(hlock)->key); key 4120 kernel/locking/lockdep.c struct lock_class_key *key, unsigned int subclass, key 4146 kernel/locking/lockdep.c lockdep_init_map(lock, name, key, 0); key 4437 kernel/locking/lockdep.c struct lock_class_key *key, unsigned int subclass, key 4448 kernel/locking/lockdep.c if (__lock_set_class(lock, name, key, subclass, ip)) key 4856 kernel/locking/lockdep.c WARN_ON_ONCE(!class->key); key 4874 kernel/locking/lockdep.c WRITE_ONCE(class->key, NULL); key 4889 kernel/locking/lockdep.c const unsigned int offset = offsetof(struct lock_class, key); key 5003 kernel/locking/lockdep.c if (!within(class->key, start, size) && key 5172 kernel/locking/lockdep.c void lockdep_unregister_key(struct lock_class_key *key) key 5174 kernel/locking/lockdep.c struct hlist_head *hash_head = keyhashentry(key); key 5182 kernel/locking/lockdep.c if (WARN_ON_ONCE(static_obj(key))) key 5191 kernel/locking/lockdep.c if (k == key) { key 5198 kernel/locking/lockdep.c __lockdep_free_key_range(pf, key, 1); key 121 kernel/locking/lockdep_internals.h extern const char *__get_key_name(const struct lockdep_subclass_key *key, key 47 kernel/locking/lockdep_proc.c name = __get_key_name(class->key, str); key 69 kernel/locking/lockdep_proc.c seq_printf(m, "%p", class->key); key 87 kernel/locking/lockdep_proc.c seq_printf(m, " -> [%p] ", entry->class->key); key 143 kernel/locking/lockdep_proc.c if (!class->key) key 146 kernel/locking/lockdep_proc.c seq_printf(m, "[%p] ", class->key); key 426 kernel/locking/lockdep_proc.c ckey = rcu_dereference_sched(class->key); key 81 kernel/locking/mutex-debug.c struct lock_class_key *key) key 88 kernel/locking/mutex-debug.c lockdep_init_map(&lock->dep_map, name, key, 0); key 29 kernel/locking/mutex-debug.h struct lock_class_key *key); key 40 kernel/locking/mutex.c __mutex_init(struct mutex *lock, const char *name, struct lock_class_key *key) key 49 kernel/locking/mutex.c debug_mutex_init(lock, name, key); key 20 kernel/locking/mutex.h #define debug_mutex_init(lock, name, key) do { } while (0) key 170 kernel/locking/rtmutex-debug.c void debug_rt_mutex_init(struct rt_mutex *lock, const char *name, struct lock_class_key *key) key 179 kernel/locking/rtmutex-debug.c lockdep_init_map(&lock->dep_map, name, key, 0); key 15 kernel/locking/rtmutex-debug.h extern void debug_rt_mutex_init(struct rt_mutex *lock, const char *name, struct lock_class_key *key); key 1676 kernel/locking/rtmutex.c struct lock_class_key *key) key 1682 kernel/locking/rtmutex.c if (name && key) key 1683 kernel/locking/rtmutex.c debug_rt_mutex_init(lock, name, key); key 325 kernel/locking/rwsem.c struct lock_class_key *key) key 332 kernel/locking/rwsem.c lockdep_init_map(&sem->dep_map, name, key, 0); key 17 kernel/locking/spinlock_debug.c struct lock_class_key *key) key 24 kernel/locking/spinlock_debug.c lockdep_init_map(&lock->dep_map, name, key, 0); key 35 kernel/locking/spinlock_debug.c struct lock_class_key *key) key 42 kernel/locking/spinlock_debug.c lockdep_init_map(&lock->dep_map, name, key, 0); key 126 kernel/module.c mod_tree_comp(void *key, struct latch_tree_node *n) key 128 kernel/module.c unsigned long val = (unsigned long)key; key 26 kernel/power/poweroff.c static void handle_poweroff(int key) key 45 kernel/rcu/srcutiny.c struct lock_class_key *key) key 49 kernel/rcu/srcutiny.c lockdep_init_map(&ssp->dep_map, name, key, 0); key 190 kernel/rcu/srcutree.c struct lock_class_key *key) key 194 kernel/rcu/srcutree.c lockdep_init_map(&ssp->dep_map, name, key, 0); key 702 kernel/rcu/tree_stall.h static void sysrq_show_rcu(int key) key 195 kernel/sched/clock.c if (static_key_count(&sched_clock_running.key) == 2) key 4336 kernel/sched/core.c void *key) key 1578 kernel/sched/sched.h static __always_inline bool static_branch_##name(struct static_key *key) \ key 1580 kernel/sched/sched.h return static_key_##enabled(key); \ key 8 kernel/sched/swait.c struct lock_class_key *key) key 11 kernel/sched/swait.c lockdep_set_class_and_name(&q->lock, key, name); key 9 kernel/sched/wait.c void __init_waitqueue_head(struct wait_queue_head *wq_head, const char *name, struct lock_class_key *key) key 12 kernel/sched/wait.c lockdep_set_class_and_name(&wq_head->lock, key, name); key 67 kernel/sched/wait.c int nr_exclusive, int wake_flags, void *key, key 93 kernel/sched/wait.c ret = curr->func(curr, mode, wake_flags, key); key 111 kernel/sched/wait.c int nr_exclusive, int wake_flags, void *key) key 124 kernel/sched/wait.c wake_flags, key, &bookmark); key 140 kernel/sched/wait.c int nr_exclusive, void *key) key 142 kernel/sched/wait.c __wake_up_common_lock(wq_head, mode, nr_exclusive, 0, key); key 155 kernel/sched/wait.c void __wake_up_locked_key(struct wait_queue_head *wq_head, unsigned int mode, void *key) key 157 kernel/sched/wait.c __wake_up_common(wq_head, mode, 1, 0, key, NULL); key 162 kernel/sched/wait.c unsigned int mode, void *key, wait_queue_entry_t *bookmark) key 164 kernel/sched/wait.c __wake_up_common(wq_head, mode, 1, 0, key, bookmark); key 186 kernel/sched/wait.c int nr_exclusive, void *key) key 196 kernel/sched/wait.c __wake_up_common_lock(wq_head, mode, nr_exclusive, wake_flags, key); key 370 kernel/sched/wait.c int autoremove_wake_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *key) key 372 kernel/sched/wait.c int ret = default_wake_function(wq_entry, mode, sync, key); key 431 kernel/sched/wait.c int woken_wake_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *key) key 437 kernel/sched/wait.c return default_wake_function(wq_entry, mode, sync, key); key 23 kernel/sched/wait_bit.c struct wait_bit_key *key = arg; key 26 kernel/sched/wait_bit.c if (wait_bit->key.flags != key->flags || key 27 kernel/sched/wait_bit.c wait_bit->key.bit_nr != key->bit_nr || key 28 kernel/sched/wait_bit.c test_bit(key->bit_nr, key->flags)) key 31 kernel/sched/wait_bit.c return autoremove_wake_function(wq_entry, mode, sync, key); key 48 kernel/sched/wait_bit.c if (test_bit(wbq_entry->key.bit_nr, wbq_entry->key.flags)) key 49 kernel/sched/wait_bit.c ret = (*action)(&wbq_entry->key, mode); key 50 kernel/sched/wait_bit.c } while (test_bit(wbq_entry->key.bit_nr, wbq_entry->key.flags) && !ret); key 75 kernel/sched/wait_bit.c wq_entry.key.timeout = jiffies + timeout; key 89 kernel/sched/wait_bit.c if (test_bit(wbq_entry->key.bit_nr, wbq_entry->key.flags)) { key 90 kernel/sched/wait_bit.c ret = action(&wbq_entry->key, mode); key 100 kernel/sched/wait_bit.c if (!test_and_set_bit(wbq_entry->key.bit_nr, wbq_entry->key.flags)) { key 123 kernel/sched/wait_bit.c struct wait_bit_key key = __WAIT_BIT_KEY_INITIALIZER(word, bit); key 126 kernel/sched/wait_bit.c __wake_up(wq_head, TASK_NORMAL, 1, &key); key 163 kernel/sched/wait_bit.c struct wait_bit_key *key = arg; key 167 kernel/sched/wait_bit.c if (wbq_entry->key.flags != key->flags || key 168 kernel/sched/wait_bit.c wbq_entry->key.bit_nr != key->bit_nr) key 171 kernel/sched/wait_bit.c return autoremove_wake_function(wq_entry, mode, sync, key); key 177 kernel/sched/wait_bit.c .key = { key 1265 kernel/sysctl.c .data = &bpf_stats_enabled_key.key, key 3390 kernel/sysctl.c struct static_key *key = (struct static_key *)table->data; key 3405 kernel/sysctl.c val = static_key_enabled(key); key 3409 kernel/sysctl.c static_key_enable(key); key 3411 kernel/sysctl.c static_key_disable(key); key 735 kernel/time/timer.c const char *name, struct lock_class_key *key); key 740 kernel/time/timer.c const char *name, struct lock_class_key *key) key 743 kernel/time/timer.c do_init_timer(timer, func, flags, name, key); key 780 kernel/time/timer.c const char *name, struct lock_class_key *key) key 785 kernel/time/timer.c lockdep_init_map(&timer->lockdep_map, name, key, 0); key 802 kernel/time/timer.c const char *name, struct lock_class_key *key) key 805 kernel/time/timer.c do_init_timer(timer, func, flags, name, key); key 698 kernel/trace/ftrace.c unsigned long key; key 700 kernel/trace/ftrace.c key = hash_long(ip, FTRACE_PROFILE_HASH_BITS); key 701 kernel/trace/ftrace.c hhd = &stat->hash[key]; key 717 kernel/trace/ftrace.c unsigned long key; key 719 kernel/trace/ftrace.c key = hash_long(rec->ip, FTRACE_PROFILE_HASH_BITS); key 720 kernel/trace/ftrace.c hlist_add_head_rcu(&rec->node, &stat->hash[key]); key 1128 kernel/trace/ftrace.c unsigned long key; key 1132 kernel/trace/ftrace.c key = ftrace_hash_key(hash, ip); key 1133 kernel/trace/ftrace.c hhd = &hash->buckets[key]; key 1165 kernel/trace/ftrace.c unsigned long key; key 1167 kernel/trace/ftrace.c key = ftrace_hash_key(hash, entry->ip); key 1168 kernel/trace/ftrace.c hhd = &hash->buckets[key]; key 1527 kernel/trace/ftrace.c const struct dyn_ftrace *key = a; key 1530 kernel/trace/ftrace.c if (key->flags < rec->ip) key 1532 kernel/trace/ftrace.c if (key->ip >= rec->ip + MCOUNT_INSN_SIZE) key 1553 kernel/trace/ftrace.c struct dyn_ftrace key; key 1555 kernel/trace/ftrace.c key.ip = start; key 1556 kernel/trace/ftrace.c key.flags = end; /* overload flags, as it is unsigned long */ key 1562 kernel/trace/ftrace.c rec = bsearch(&key, pg->records, pg->index, key 6125 kernel/trace/ftrace.c struct dyn_ftrace key; key 6133 kernel/trace/ftrace.c key.ip = start; key 6134 kernel/trace/ftrace.c key.flags = end; /* overload flags, as it is unsigned long */ key 6151 kernel/trace/ftrace.c rec = bsearch(&key, pg->records, pg->index, key 1378 kernel/trace/ring_buffer.c struct lock_class_key *key) key 1398 kernel/trace/ring_buffer.c buffer->reader_lock_key = key; key 2579 kernel/trace/trace.c static_key_enable(&tracepoint_printk_key.key); key 2581 kernel/trace/trace.c static_key_disable(&tracepoint_printk_key.key); key 2591 kernel/trace/trace.c if (static_key_false(&tracepoint_printk_key.key)) key 9251 kernel/trace/trace.c static_key_enable(&tracepoint_printk_key.key); key 443 kernel/trace/trace_events_hist.c struct ring_buffer_event *rbe, void *key, key 524 kernel/trace/trace_events_hist.c void *key; key 539 kernel/trace/trace_events_hist.c void *key; key 549 kernel/trace/trace_events_hist.c kfree(track_data->key); key 570 kernel/trace/trace_events_hist.c data->key = kzalloc(key_len, GFP_KERNEL); key 571 kernel/trace/trace_events_hist.c if (!data->key) { key 1151 kernel/trace/trace_events_hist.c if (unlikely(atomic_read(&tp->key.enabled) > 0)) { key 1305 kernel/trace/trace_events_hist.c struct ring_buffer_event *rbe, void *key, key 1944 kernel/trace/trace_events_hist.c static bool resolve_var_refs(struct hist_trigger_data *hist_data, void *key, key 1968 kernel/trace/trace_events_hist.c var_elt = tracing_map_lookup(var_data->map, key); key 3502 kernel/trace/trace_events_hist.c struct ring_buffer_event *rbe, void *key, key 3682 kernel/trace/trace_events_hist.c struct ring_buffer_event *rbe, void *key, key 3686 kernel/trace/trace_events_hist.c data->track_data.save_data(hist_data, elt, rec, rbe, key, data, var_ref_vals); key 3724 kernel/trace/trace_events_hist.c memcpy(track_data->key, context->key, track_data->key_len); key 3738 kernel/trace/trace_events_hist.c struct ring_buffer_event *rbe, void *key, key 3746 kernel/trace/trace_events_hist.c context.key = key; key 3753 kernel/trace/trace_events_hist.c void *key, key 3797 kernel/trace/trace_events_hist.c hist_trigger_print_key(m, hist_data, track_data->key, &track_data->elt); key 3807 kernel/trace/trace_events_hist.c struct ring_buffer_event *rbe, void *key, key 3849 kernel/trace/trace_events_hist.c struct ring_buffer_event *rbe, void *key, key 3856 kernel/trace/trace_events_hist.c save_track_data(hist_data, elt, rec, rbe, key, data, var_ref_vals); key 5312 kernel/trace/trace_events_hist.c static inline void add_to_key(char *compound_key, void *key, key 5324 kernel/trace/trace_events_hist.c size = strlen(key); key 5332 kernel/trace/trace_events_hist.c strncpy(compound_key + key_field->offset, (char *)key, size); key 5334 kernel/trace/trace_events_hist.c memcpy(compound_key + key_field->offset, key, size); key 5340 kernel/trace/trace_events_hist.c struct ring_buffer_event *rbe, void *key, key 5348 kernel/trace/trace_events_hist.c data->fn(hist_data, elt, rec, rbe, key, data, var_ref_vals); key 5363 kernel/trace/trace_events_hist.c void *key = NULL; key 5375 kernel/trace/trace_events_hist.c key = entries; key 5379 kernel/trace/trace_events_hist.c key = (void *)(unsigned long)field_contents; key 5382 kernel/trace/trace_events_hist.c key = (void *)&field_contents; key 5386 kernel/trace/trace_events_hist.c add_to_key(compound_key, key, key_field, rec); key 5390 kernel/trace/trace_events_hist.c key = compound_key; key 5393 kernel/trace/trace_events_hist.c !resolve_var_refs(hist_data, key, var_ref_vals, false)) key 5396 kernel/trace/trace_events_hist.c elt = tracing_map_insert(hist_data->map, key); key 5402 kernel/trace/trace_events_hist.c if (resolve_var_refs(hist_data, key, var_ref_vals, true)) key 5403 kernel/trace/trace_events_hist.c hist_trigger_actions(hist_data, elt, rec, rbe, key, var_ref_vals); key 5426 kernel/trace/trace_events_hist.c void *key, key 5447 kernel/trace/trace_events_hist.c uval = *(u64 *)(key + key_field->offset); key 5450 kernel/trace/trace_events_hist.c uval = *(u64 *)(key + key_field->offset); key 5455 kernel/trace/trace_events_hist.c uval = *(u64 *)(key + key_field->offset); key 5468 kernel/trace/trace_events_hist.c uval = *(u64 *)(key + key_field->offset); key 5474 kernel/trace/trace_events_hist.c uval = *(u64 *)(key + key_field->offset); key 5484 kernel/trace/trace_events_hist.c key + key_field->offset, key 5489 kernel/trace/trace_events_hist.c *(u64 *)(key + key_field->offset)); key 5492 kernel/trace/trace_events_hist.c (char *)(key + key_field->offset)); key 5494 kernel/trace/trace_events_hist.c uval = *(u64 *)(key + key_field->offset); key 5507 kernel/trace/trace_events_hist.c void *key, key 5513 kernel/trace/trace_events_hist.c hist_trigger_print_key(m, hist_data, key, elt); key 5554 kernel/trace/trace_events_hist.c sort_entries[i]->key, key 649 kernel/trace/trace_output.c unsigned key; key 651 kernel/trace/trace_output.c key = type & (EVENT_HASHSIZE - 1); key 653 kernel/trace/trace_output.c hlist_for_each_entry(event, &event_hash[key], node) { key 718 kernel/trace/trace_output.c unsigned key; key 770 kernel/trace/trace_output.c key = event->type & (EVENT_HASHSIZE - 1); key 772 kernel/trace/trace_output.c hlist_add_head(&event->node, &event_hash[key]); key 396 kernel/trace/tracing_map.c kfree(elt->key); key 411 kernel/trace/tracing_map.c elt->key = kzalloc(map->key_size, GFP_KERNEL); key 412 kernel/trace/tracing_map.c if (!elt->key) { key 502 kernel/trace/tracing_map.c static inline bool keys_match(void *key, void *test_key, unsigned key_size) key 506 kernel/trace/tracing_map.c if (memcmp(key, test_key, key_size)) key 513 kernel/trace/tracing_map.c __tracing_map_insert(struct tracing_map *map, void *key, bool lookup_only) key 520 kernel/trace/tracing_map.c key_hash = jhash(key, map->key_size, 0); key 528 kernel/trace/tracing_map.c test_key = entry->key; key 533 kernel/trace/tracing_map.c keys_match(key, val->key, map->key_size)) { key 563 kernel/trace/tracing_map.c if (!cmpxchg(&entry->key, 0, key_hash)) { key 569 kernel/trace/tracing_map.c entry->key = 0; key 573 kernel/trace/tracing_map.c memcpy(elt->key, key, map->key_size); key 631 kernel/trace/tracing_map.c struct tracing_map_elt *tracing_map_insert(struct tracing_map *map, void *key) key 633 kernel/trace/tracing_map.c return __tracing_map_insert(map, key, false); key 653 kernel/trace/tracing_map.c struct tracing_map_elt *tracing_map_lookup(struct tracing_map *map, void *key) key 655 kernel/trace/tracing_map.c return __tracing_map_insert(map, key, true); key 842 kernel/trace/tracing_map.c if (memcmp((*a)->key, (*b)->key, (*a)->elt->map->key_size)) key 895 kernel/trace/tracing_map.c val_a = elt_a->key + field->offset; key 896 kernel/trace/tracing_map.c val_b = elt_b->key + field->offset; key 935 kernel/trace/tracing_map.c create_sort_entry(void *key, struct tracing_map_elt *elt) key 943 kernel/trace/tracing_map.c sort_entry->key = key; key 954 kernel/trace/tracing_map.c void *key; key 962 kernel/trace/tracing_map.c key = sort_entries[0]->key; key 964 kernel/trace/tracing_map.c if (!memcmp(sort_entries[i]->key, key, key_size)) { key 968 kernel/trace/tracing_map.c key = sort_entries[i]->key; key 1078 kernel/trace/tracing_map.c if (!entry->key || !entry->val) key 1081 kernel/trace/tracing_map.c entries[n_entries] = create_sort_entry(entry->val->key, key 143 kernel/trace/tracing_map.h void *key; key 148 kernel/trace/tracing_map.h u32 key; key 158 kernel/trace/tracing_map.h void *key; key 257 kernel/trace/tracing_map.h tracing_map_insert(struct tracing_map *map, void *key); key 259 kernel/trace/tracing_map.h tracing_map_lookup(struct tracing_map *map, void *key); key 233 kernel/tracepoint.c if (tp->regfunc && !static_key_enabled(&tp->key)) { key 254 kernel/tracepoint.c if (!static_key_enabled(&tp->key)) key 255 kernel/tracepoint.c static_key_slow_inc(&tp->key); key 281 kernel/tracepoint.c if (tp->unregfunc && static_key_enabled(&tp->key)) key 284 kernel/tracepoint.c if (static_key_enabled(&tp->key)) key 285 kernel/tracepoint.c static_key_slow_dec(&tp->key); key 226 kernel/user_namespace.c const struct idmap_key *key = k; key 229 kernel/user_namespace.c id2 = key->id + key->count - 1; key 232 kernel/user_namespace.c if (key->map_up) key 239 kernel/user_namespace.c if (key->id >= first && key->id <= last && key 243 kernel/user_namespace.c if (key->id < first || id2 < first) key 256 kernel/user_namespace.c struct idmap_key key; key 258 kernel/user_namespace.c key.map_up = false; key 259 kernel/user_namespace.c key.count = count; key 260 kernel/user_namespace.c key.id = id; key 262 kernel/user_namespace.c return bsearch(&key, map->forward, extents, key 343 kernel/user_namespace.c struct idmap_key key; key 345 kernel/user_namespace.c key.map_up = true; key 346 kernel/user_namespace.c key.count = 1; key 347 kernel/user_namespace.c key.id = id; key 349 kernel/user_namespace.c return bsearch(&key, map->reverse, extents, key 264 kernel/workqueue.c struct lock_class_key key; key 3079 kernel/workqueue.c static int cwt_wakefn(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) key 3083 kernel/workqueue.c if (cwait->work != key) key 3085 kernel/workqueue.c return autoremove_wake_function(wait, mode, sync, key); key 3453 kernel/workqueue.c lockdep_register_key(&wq->key); key 3459 kernel/workqueue.c lockdep_init_map(&wq->lockdep_map, lock_name, &wq->key, 0); key 3464 kernel/workqueue.c lockdep_unregister_key(&wq->key); key 31 lib/bsearch.c void *bsearch(const void *key, const void *base, size_t num, size_t size, key 32 lib/bsearch.c int (*cmp)(const void *key, const void *elt)) key 39 lib/bsearch.c result = cmp(key, pivot); key 135 lib/btree.c static void dec_key(struct btree_geo *geo, unsigned long *key) key 141 lib/btree.c val = key[i]; key 142 lib/btree.c key[i] = val - 1; key 159 lib/btree.c unsigned long *key) key 161 lib/btree.c longcpy(bkey(geo, node, n), key, geo->keylen); key 208 lib/btree.c unsigned long *key) key 219 lib/btree.c longcpy(key, bkey(geo, node, 0), geo->keylen); key 225 lib/btree.c unsigned long *key) key 227 lib/btree.c return longcmp(bkey(geo, node, pos), key, geo->keylen); key 230 lib/btree.c static int keyzero(struct btree_geo *geo, unsigned long *key) key 235 lib/btree.c if (key[i]) key 242 lib/btree.c unsigned long *key) key 252 lib/btree.c if (keycmp(geo, node, i, key) <= 0) key 265 lib/btree.c if (keycmp(geo, node, i, key) == 0) key 272 lib/btree.c unsigned long *key, void *val) key 282 lib/btree.c if (keycmp(geo, node, i, key) <= 0) key 295 lib/btree.c if (keycmp(geo, node, i, key) == 0) { key 316 lib/btree.c unsigned long *retry_key = NULL, key[MAX_KEYLEN]; key 323 lib/btree.c longcpy(key, __key, geo->keylen); key 325 lib/btree.c dec_key(geo, key); key 330 lib/btree.c if (keycmp(geo, node, i, key) <= 0) key 345 lib/btree.c if (keycmp(geo, node, i, key) <= 0) { key 355 lib/btree.c longcpy(key, retry_key, geo->keylen); key 364 lib/btree.c unsigned long *key) key 369 lib/btree.c if (keycmp(geo, node, i, key) <= 0) key 389 lib/btree.c unsigned long *key, int level) key 396 lib/btree.c if (keycmp(geo, node, i, key) <= 0) key 404 lib/btree.c setkey(geo, node, i, key); key 449 lib/btree.c unsigned long *key, void *val, int level, key 463 lib/btree.c node = find_level(head, geo, key, level); key 464 lib/btree.c pos = getpos(geo, node, key); key 467 lib/btree.c BUG_ON(pos < fill && keycmp(geo, node, pos, key) == 0); key 504 lib/btree.c setkey(geo, node, pos, key); key 511 lib/btree.c unsigned long *key, void *val, gfp_t gfp) key 514 lib/btree.c return btree_insert_level(head, geo, key, val, 1, gfp); key 519 lib/btree.c unsigned long *key, int level); key 541 lib/btree.c unsigned long *key, int level, unsigned long *child, int fill) key 551 lib/btree.c btree_remove_level(head, geo, key, level + 1); key 556 lib/btree.c parent = find_level(head, geo, key, level + 1); key 557 lib/btree.c i = getpos(geo, parent, key); key 592 lib/btree.c unsigned long *key, int level) key 605 lib/btree.c node = find_level(head, geo, key, level); key 606 lib/btree.c pos = getpos(geo, node, key); key 608 lib/btree.c if ((level == 1) && (keycmp(geo, node, pos, key) != 0)) key 621 lib/btree.c rebalance(head, geo, key, level, node, fill - 1); key 630 lib/btree.c unsigned long *key) key 635 lib/btree.c return btree_remove_level(head, geo, key, 1); key 642 lib/btree.c unsigned long key[MAX_KEYLEN]; key 661 lib/btree.c if (!btree_last(victim, geo, key)) key 663 lib/btree.c val = btree_lookup(victim, geo, key); key 664 lib/btree.c err = btree_insert(target, geo, key, val, gfp); key 669 lib/btree.c longcpy(dup, key, geo->keylen); key 679 lib/btree.c unsigned long *key, size_t index, key 702 lib/btree.c static void empty(void *elem, unsigned long opaque, unsigned long *key, key 707 lib/btree.c void visitorl(void *elem, unsigned long opaque, unsigned long *key, key 712 lib/btree.c func(elem, opaque, *key, index); key 720 lib/btree.c u32 *key = (void *)__key; key 722 lib/btree.c func(elem, opaque, *key, index); key 730 lib/btree.c u64 *key = (void *)__key; key 732 lib/btree.c func(elem, opaque, *key, index); key 740 lib/btree.c u64 *key = (void *)__key; key 742 lib/btree.c func(elem, opaque, key[0], key[1], index); key 749 lib/btree.c unsigned long *key, key 767 lib/btree.c unsigned long *key, key 16 lib/bucket_locks.c const char *name, struct lock_class_key *key) key 39 lib/bucket_locks.c lockdep_init_map(&tlocks[i].dep_map, name, key, 0); key 699 lib/crypto/des.c int des_expand_key(struct des_ctx *ctx, const u8 *key, unsigned int keylen) key 704 lib/crypto/des.c return des_ekey(ctx->expkey, key) ? 0 : -ENOKEY; key 823 lib/crypto/des.c int des3_ede_expand_key(struct des3_ede_ctx *ctx, const u8 *key, key 832 lib/crypto/des.c err = des3_ede_verify_key(key, keylen, true); key 836 lib/crypto/des.c des_ekey(pe, key); pe += DES_EXPKEY_WORDS; key += DES_KEY_SIZE; key 837 lib/crypto/des.c dkey(pe, key); pe += DES_EXPKEY_WORDS; key += DES_KEY_SIZE; key 838 lib/crypto/des.c des_ekey(pe, key); key 67 lib/digsig.c static int digsig_verify_rsa(struct key *key, key 84 lib/digsig.c down_read(&key->sem); key 85 lib/digsig.c ukp = user_key_payload_locked(key); key 179 lib/digsig.c up_read(&key->sem); key 199 lib/digsig.c int digsig_verify(struct key *keyring, const char *sig, int siglen, key 206 lib/digsig.c struct key *key; key 223 lib/digsig.c key = ERR_CAST(kref); key 225 lib/digsig.c key = key_ref_to_ptr(kref); key 227 lib/digsig.c key = request_key(&key_type_user, name, NULL); key 229 lib/digsig.c if (IS_ERR(key)) { key 231 lib/digsig.c return PTR_ERR(key); key 249 lib/digsig.c err = digsig_verify_rsa(key, sig + sizeof(*sh), siglen - sizeof(*sh), key 253 lib/digsig.c key_put(key); key 196 lib/dynamic_debug.c static_branch_disable(&dp->key.dd_key_true); key 198 lib/dynamic_debug.c static_branch_enable(&dp->key.dd_key_true); key 95 lib/extable.c static int cmp_ex_search(const void *key, const void *elt) key 98 lib/extable.c unsigned long _key = *(unsigned long *)key; key 118 lib/kobject_uevent.c const char *next, *buf_end, *key; key 149 lib/kobject_uevent.c key = ++next; key 150 lib/kobject_uevent.c if (key > buf_end) key 169 lib/kobject_uevent.c key_len, key, (int) (next - buf), buf)) key 919 lib/objagg.c return ops->hints_obj_cmp ? ops->hints_obj_cmp(ptr, arg->key) : key 920 lib/objagg.c memcmp(ptr, arg->key, ht->p.key_len); key 9 lib/once.c struct static_key_true *key; key 17 lib/once.c BUG_ON(!static_key_enabled(work->key)); key 18 lib/once.c static_branch_disable(work->key); key 22 lib/once.c static void once_disable_jump(struct static_key_true *key) key 31 lib/once.c w->key = key; key 123 lib/percpu_counter.c struct lock_class_key *key) key 128 lib/percpu_counter.c lockdep_set_class(&fbc->lock, key); key 19 lib/rbtree_test.c u32 key; key 35 lib/rbtree_test.c u32 key = node->key; key 39 lib/rbtree_test.c if (key < rb_entry(parent, struct test_node, rb)->key) key 52 lib/rbtree_test.c u32 key = node->key; key 57 lib/rbtree_test.c if (key < rb_entry(parent, struct test_node, rb)->key) key 89 lib/rbtree_test.c u32 key = node->key; key 98 lib/rbtree_test.c if (key < parent->key) key 113 lib/rbtree_test.c u32 key = node->key; key 123 lib/rbtree_test.c if (key < parent->key) key 153 lib/rbtree_test.c nodes[i].key = prandom_u32_state(&rnd); key 199 lib/rbtree_test.c WARN_ON_ONCE(node->key < prev_key); key 207 lib/rbtree_test.c prev_key = node->key; key 481 lib/rhashtable.c const void *key, struct rhash_head *obj) key 485 lib/rhashtable.c .key = key, key 497 lib/rhashtable.c if (!key || key 580 lib/rhashtable.c static void *rhashtable_try_insert(struct rhashtable *ht, const void *key, key 605 lib/rhashtable.c hash, key, obj); key 622 lib/rhashtable.c void *rhashtable_insert_slow(struct rhashtable *ht, const void *key, key 629 lib/rhashtable.c data = rhashtable_try_insert(ht, key, obj); key 961 lib/rhashtable.c static u32 rhashtable_jhash2(const void *key, u32 length, u32 seed) key 963 lib/rhashtable.c return jhash2(key, length, seed); key 35 lib/siphash.c v3 ^= key->key[1]; \ key 36 lib/siphash.c v2 ^= key->key[0]; \ key 37 lib/siphash.c v1 ^= key->key[1]; \ key 38 lib/siphash.c v0 ^= key->key[0]; key 52 lib/siphash.c u64 __siphash_aligned(const void *data, size_t len, const siphash_key_t *key) key 85 lib/siphash.c u64 __siphash_unaligned(const void *data, size_t len, const siphash_key_t *key) key 123 lib/siphash.c u64 siphash_1u64(const u64 first, const siphash_key_t *key) key 140 lib/siphash.c u64 siphash_2u64(const u64 first, const u64 second, const siphash_key_t *key) key 163 lib/siphash.c const siphash_key_t *key) key 191 lib/siphash.c const u64 forth, const siphash_key_t *key) key 214 lib/siphash.c u64 siphash_1u32(const u32 first, const siphash_key_t *key) key 223 lib/siphash.c const siphash_key_t *key) key 253 lib/siphash.c u32 __hsiphash_aligned(const void *data, size_t len, const hsiphash_key_t *key) key 286 lib/siphash.c const hsiphash_key_t *key) key 323 lib/siphash.c u32 hsiphash_1u32(const u32 first, const hsiphash_key_t *key) key 337 lib/siphash.c u32 hsiphash_2u32(const u32 first, const u32 second, const hsiphash_key_t *key) key 356 lib/siphash.c const hsiphash_key_t *key) key 377 lib/siphash.c const u32 forth, const hsiphash_key_t *key) key 406 lib/siphash.c v3 ^= key->key[1]; \ key 407 lib/siphash.c v2 ^= key->key[0]; \ key 408 lib/siphash.c v1 ^= key->key[1]; \ key 409 lib/siphash.c v0 ^= key->key[0]; key 421 lib/siphash.c u32 __hsiphash_aligned(const void *data, size_t len, const hsiphash_key_t *key) key 444 lib/siphash.c const hsiphash_key_t *key) key 471 lib/siphash.c u32 hsiphash_1u32(const u32 first, const hsiphash_key_t *key) key 487 lib/siphash.c u32 hsiphash_2u32(const u32 first, const u32 second, const hsiphash_key_t *key) key 508 lib/siphash.c const hsiphash_key_t *key) key 533 lib/siphash.c const u32 forth, const hsiphash_key_t *key) key 38 lib/test_objagg.c struct tokey key; key 51 lib/test_objagg.c struct tokey key; key 54 lib/test_objagg.c key.id = key_id; key 55 lib/test_objagg.c objagg_obj = objagg_obj_get(objagg, &key); key 93 lib/test_objagg.c const struct tokey *key = obj; key 94 lib/test_objagg.c int diff = key->id - parent_key->id; key 103 lib/test_objagg.c struct tokey *key = obj; key 104 lib/test_objagg.c int diff = key->id - parent_key->id; key 130 lib/test_objagg.c struct tokey *key = obj; key 136 lib/test_objagg.c memcpy(&root->key, key, sizeof(root->key)); key 183 lib/test_objagg.c if (root->key.id != key_id) { key 89 lib/test_rhashtable.c const struct test_obj_val *val = arg->key; key 145 lib/test_rhashtable.c struct test_obj_val key = { key 152 lib/test_rhashtable.c obj = rhashtable_lookup_fast(ht, &key, test_rht_params); key 155 lib/test_rhashtable.c pr_warn("Test failed: Could not find key %u\n", key.id); key 159 lib/test_rhashtable.c key.id); key 246 lib/test_rhashtable.c struct test_obj_val key = { key 251 lib/test_rhashtable.c obj = rhashtable_lookup_fast(ht, &key, test_rht_params); key 313 lib/test_rhashtable.c struct test_obj_val key = { key 319 lib/test_rhashtable.c h = rhltable_lookup(&rhlt, &key, test_rht_params); key 538 lib/test_rhashtable.c const char *key; key 553 lib/test_rhashtable.c key = rht_obj(&rhlt->ht, &rhl_test_objects[i].list_node.rhead); key 554 lib/test_rhashtable.c key += test_rht_params_dup.key_offset; key 557 lib/test_rhashtable.c err = PTR_ERR(rhashtable_insert_slow(&rhlt->ht, key, key 608 lib/test_rhashtable.c struct test_obj_val key = { key 613 lib/test_rhashtable.c obj = rhashtable_lookup_fast(&ht, &key, test_rht_params); key 615 lib/test_rhashtable.c pr_err(" found unexpected object %d-%d\n", key.tid, key.id); key 618 lib/test_rhashtable.c pr_err(" object %d-%d not found!\n", key.tid, key.id); key 620 lib/test_rhashtable.c } else if (obj && memcmp(&obj->value, &key, sizeof(key))) { key 622 lib/test_rhashtable.c obj->value.tid, obj->value.id, key.tid, key.id); key 34 lib/test_static_key_base.c static void invert_key(struct static_key *key) key 36 lib/test_static_key_base.c if (static_key_enabled(key)) key 37 lib/test_static_key_base.c static_key_disable(key); key 39 lib/test_static_key_base.c static_key_enable(key); key 46 lib/test_static_key_base.c invert_key(&base_inv_true_key.key); key 47 lib/test_static_key_base.c invert_key(&base_inv_false_key.key); key 37 lib/test_static_keys.c struct static_key *key; key 41 lib/test_static_keys.c #define test_key_func(key, branch) \ key 42 lib/test_static_keys.c static bool key ## _ ## branch(void) \ key 44 lib/test_static_keys.c return branch(&key); \ key 47 lib/test_static_keys.c static void invert_key(struct static_key *key) key 49 lib/test_static_keys.c if (static_key_enabled(key)) key 50 lib/test_static_keys.c static_key_disable(key); key 52 lib/test_static_keys.c static_key_enable(key); key 61 lib/test_static_keys.c if (previous != keys[i].key) { key 62 lib/test_static_keys.c invert_key(keys[i].key); key 63 lib/test_static_keys.c previous = keys[i].key; key 74 lib/test_static_keys.c ret = static_key_enabled(keys[i].key); key 79 lib/test_static_keys.c if (static_key_enabled(keys[i].key)) { key 118 lib/test_static_keys.c .key = &old_true_key, key 123 lib/test_static_keys.c .key = &old_false_key, key 129 lib/test_static_keys.c .key = &true_key.key, key 134 lib/test_static_keys.c .key = &true_key.key, key 139 lib/test_static_keys.c .key = &false_key.key, key 144 lib/test_static_keys.c .key = &false_key.key, key 150 lib/test_static_keys.c .key = &base_old_true_key, key 155 lib/test_static_keys.c .key = &base_inv_old_true_key, key 160 lib/test_static_keys.c .key = &base_old_false_key, key 165 lib/test_static_keys.c .key = &base_inv_old_false_key, key 171 lib/test_static_keys.c .key = &base_true_key.key, key 176 lib/test_static_keys.c .key = &base_true_key.key, key 181 lib/test_static_keys.c .key = &base_inv_true_key.key, key 186 lib/test_static_keys.c .key = &base_inv_true_key.key, key 191 lib/test_static_keys.c .key = &base_false_key.key, key 196 lib/test_static_keys.c .key = &base_false_key.key, key 201 lib/test_static_keys.c .key = &base_inv_false_key.key, key 206 lib/test_static_keys.c .key = &base_inv_false_key.key, key 145 mm/cleancache.c struct cleancache_filekey *key) key 151 mm/cleancache.c key->u.ino = inode->i_ino; key 155 mm/cleancache.c len = (*fhfn)(inode, &key->u.fh[0], &maxlen, NULL); key 180 mm/cleancache.c struct cleancache_filekey key = { .u.key = { 0 } }; key 192 mm/cleancache.c if (cleancache_get_key(page->mapping->host, &key) < 0) key 195 mm/cleancache.c ret = cleancache_ops->get_page(pool_id, key, page->index, page); key 218 mm/cleancache.c struct cleancache_filekey key = { .u.key = { 0 } }; key 228 mm/cleancache.c cleancache_get_key(page->mapping->host, &key) >= 0) { key 229 mm/cleancache.c cleancache_ops->put_page(pool_id, key, page->index, page); key 248 mm/cleancache.c struct cleancache_filekey key = { .u.key = { 0 } }; key 255 mm/cleancache.c if (cleancache_get_key(mapping->host, &key) >= 0) { key 257 mm/cleancache.c key, page->index); key 276 mm/cleancache.c struct cleancache_filekey key = { .u.key = { 0 } }; key 281 mm/cleancache.c if (pool_id >= 0 && cleancache_get_key(mapping->host, &key) >= 0) key 282 mm/cleancache.c cleancache_ops->invalidate_inode(pool_id, key); key 1030 mm/filemap.c struct wait_page_key *key = arg; key 1034 mm/filemap.c if (wait_page->page != key->page) key 1036 mm/filemap.c key->page_match = 1; key 1038 mm/filemap.c if (wait_page->bit_nr != key->bit_nr) key 1049 mm/filemap.c if (test_bit(key->bit_nr, &key->page->flags)) key 1052 mm/filemap.c return autoremove_wake_function(wait, mode, sync, key); key 1058 mm/filemap.c struct wait_page_key key; key 1062 mm/filemap.c key.page = page; key 1063 mm/filemap.c key.bit_nr = bit_nr; key 1064 mm/filemap.c key.page_match = 0; key 1072 mm/filemap.c __wake_up_locked_key_bookmark(q, TASK_NORMAL, &key, &bookmark); key 1084 mm/filemap.c __wake_up_locked_key_bookmark(q, TASK_NORMAL, &key, &bookmark); key 1096 mm/filemap.c if (!waitqueue_active(q) || !key.page_match) { key 4097 mm/hugetlb.c unsigned long key[2]; key 4100 mm/hugetlb.c key[0] = (unsigned long) mapping; key 4101 mm/hugetlb.c key[1] = idx; key 4103 mm/hugetlb.c hash = jhash2((u32 *)&key, sizeof(key)/sizeof(u32), 0); key 601 mm/list_lru.c struct lock_class_key *key, struct shrinker *shrinker) key 620 mm/list_lru.c if (key) key 621 mm/list_lru.c lockdep_set_class(&lru->node[i].lock, key); key 4645 mm/memcontrol.c int sync, void *key) key 4650 mm/memcontrol.c __poll_t flags = key_to_poll(key); key 1983 mm/shmem.c static int synchronous_wake_function(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) key 1985 mm/shmem.c int ret = default_wake_function(wait, mode, sync, key); key 3484 mm/shmem.c return invalf(fc, "tmpfs: Unsupported parameter '%s'", param->key); key 3486 mm/shmem.c return invalf(fc, "tmpfs: Bad value for '%s'", param->key); key 518 net/9p/trans_fd.c static int p9_pollwake(wait_queue_entry_t *wait, unsigned int mode, int sync, void *key) key 287 net/batman-adv/distributed-arp-table.c const unsigned char *key; key 291 net/batman-adv/distributed-arp-table.c key = (const unsigned char *)&dat->ip; key 293 net/batman-adv/distributed-arp-table.c hash += key[i]; key 299 net/batman-adv/distributed-arp-table.c key = (__force const unsigned char *)&vid; key 301 net/batman-adv/distributed-arp-table.c hash += key[i]; key 78 net/batman-adv/hash.c struct lock_class_key *key) key 83 net/batman-adv/hash.c lockdep_set_class(&hash->list_locks[i], key); key 59 net/batman-adv/hash.h struct lock_class_key *key); key 480 net/batman-adv/network-coding.c static void batadv_nc_hash_key_gen(struct batadv_nc_path *key, const char *src, key 483 net/batman-adv/network-coding.c memcpy(key->prev_hop, src, sizeof(key->prev_hop)); key 484 net/batman-adv/network-coding.c memcpy(key->next_hop, dst, sizeof(key->next_hop)); key 128 net/bluetooth/amp.c static int hmac_sha256(u8 *key, u8 ksize, char *plaintext, u8 psize, u8 *output) key 143 net/bluetooth/amp.c ret = crypto_shash_setkey(tfm, key, ksize); key 170 net/bluetooth/amp.c struct link_key *key; key 189 net/bluetooth/amp.c key = hci_find_link_key(hdev, &conn->dst); key 190 net/bluetooth/amp.c if (!key) { key 196 net/bluetooth/amp.c memcpy(&keybuf[0], key->val, HCI_LINK_KEY_SIZE); key 197 net/bluetooth/amp.c memcpy(&keybuf[HCI_LINK_KEY_SIZE], key->val, HCI_LINK_KEY_SIZE); key 449 net/bluetooth/amp.c if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len, key 488 net/bluetooth/amp.c if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len, key 136 net/bluetooth/ecdh_helper.c p.key = tmp; key 2286 net/bluetooth/hci_core.c struct link_key *key; key 2288 net/bluetooth/hci_core.c list_for_each_entry_rcu(key, &hdev->link_keys, list) { key 2289 net/bluetooth/hci_core.c list_del_rcu(&key->list); key 2290 net/bluetooth/hci_core.c kfree_rcu(key, rcu); key 2448 net/bluetooth/hci_core.c struct link_key *key, *old_key; key 2454 net/bluetooth/hci_core.c key = old_key; key 2457 net/bluetooth/hci_core.c key = kzalloc(sizeof(*key), GFP_KERNEL); key 2458 net/bluetooth/hci_core.c if (!key) key 2460 net/bluetooth/hci_core.c list_add_rcu(&key->list, &hdev->link_keys); key 2475 net/bluetooth/hci_core.c bacpy(&key->bdaddr, bdaddr); key 2476 net/bluetooth/hci_core.c memcpy(key->val, val, HCI_LINK_KEY_SIZE); key 2477 net/bluetooth/hci_core.c key->pin_len = pin_len; key 2480 net/bluetooth/hci_core.c key->type = old_key_type; key 2482 net/bluetooth/hci_core.c key->type = type; key 2488 net/bluetooth/hci_core.c return key; key 2495 net/bluetooth/hci_core.c struct smp_ltk *key, *old_key; key 2500 net/bluetooth/hci_core.c key = old_key; key 2502 net/bluetooth/hci_core.c key = kzalloc(sizeof(*key), GFP_KERNEL); key 2503 net/bluetooth/hci_core.c if (!key) key 2505 net/bluetooth/hci_core.c list_add_rcu(&key->list, &hdev->long_term_keys); key 2508 net/bluetooth/hci_core.c bacpy(&key->bdaddr, bdaddr); key 2509 net/bluetooth/hci_core.c key->bdaddr_type = addr_type; key 2510 net/bluetooth/hci_core.c memcpy(key->val, tk, sizeof(key->val)); key 2511 net/bluetooth/hci_core.c key->authenticated = authenticated; key 2512 net/bluetooth/hci_core.c key->ediv = ediv; key 2513 net/bluetooth/hci_core.c key->rand = rand; key 2514 net/bluetooth/hci_core.c key->enc_size = enc_size; key 2515 net/bluetooth/hci_core.c key->type = type; key 2517 net/bluetooth/hci_core.c return key; key 2545 net/bluetooth/hci_core.c struct link_key *key; key 2547 net/bluetooth/hci_core.c key = hci_find_link_key(hdev, bdaddr); key 2548 net/bluetooth/hci_core.c if (!key) key 2553 net/bluetooth/hci_core.c list_del_rcu(&key->list); key 2554 net/bluetooth/hci_core.c kfree_rcu(key, rcu); key 366 net/bluetooth/hci_debugfs.c struct link_key *key; key 369 net/bluetooth/hci_debugfs.c list_for_each_entry_rcu(key, &hdev->link_keys, list) key 370 net/bluetooth/hci_debugfs.c seq_printf(f, "%pMR %u %*phN %u\n", &key->bdaddr, key->type, key 371 net/bluetooth/hci_debugfs.c HCI_LINK_KEY_SIZE, key->val, key->pin_len); key 3875 net/bluetooth/hci_event.c struct link_key *key; key 3884 net/bluetooth/hci_event.c key = hci_find_link_key(hdev, &ev->bdaddr); key 3885 net/bluetooth/hci_event.c if (!key) { key 3891 net/bluetooth/hci_event.c BT_DBG("%s found key type %u for %pMR", hdev->name, key->type, key 3898 net/bluetooth/hci_event.c if ((key->type == HCI_LK_UNAUTH_COMBINATION_P192 || key 3899 net/bluetooth/hci_event.c key->type == HCI_LK_UNAUTH_COMBINATION_P256) && key 3905 net/bluetooth/hci_event.c if (key->type == HCI_LK_COMBINATION && key->pin_len < 16 && key 3913 net/bluetooth/hci_event.c conn_set_key(conn, key->type, key->pin_len); key 3917 net/bluetooth/hci_event.c memcpy(cp.link_key, key->val, HCI_LINK_KEY_SIZE); key 3934 net/bluetooth/hci_event.c struct link_key *key; key 3956 net/bluetooth/hci_event.c key = hci_add_link_key(hdev, conn, &ev->bdaddr, ev->link_key, key 3958 net/bluetooth/hci_event.c if (!key) key 3965 net/bluetooth/hci_event.c conn_set_key(conn, key->type, key->pin_len); key 3967 net/bluetooth/hci_event.c mgmt_new_link_key(hdev, key, persistent); key 3974 net/bluetooth/hci_event.c if (key->type == HCI_LK_DEBUG_COMBINATION && key 3976 net/bluetooth/hci_event.c list_del_rcu(&key->list); key 3977 net/bluetooth/hci_event.c kfree_rcu(key, rcu); key 1251 net/bluetooth/hidp/core.c int sync, void *key) key 2320 net/bluetooth/mgmt.c struct mgmt_link_key_info *key = &cp->keys[i]; key 2322 net/bluetooth/mgmt.c if (key->addr.type != BDADDR_BREDR || key->type > 0x08) key 2342 net/bluetooth/mgmt.c struct mgmt_link_key_info *key = &cp->keys[i]; key 2347 net/bluetooth/mgmt.c if (key->type == HCI_LK_DEBUG_COMBINATION) key 2350 net/bluetooth/mgmt.c hci_add_link_key(hdev, NULL, &key->addr.bdaddr, key->val, key 2351 net/bluetooth/mgmt.c key->type, key->pin_len, NULL); key 5039 net/bluetooth/mgmt.c struct mgmt_irk_info *key = &cp->irks[i]; key 5041 net/bluetooth/mgmt.c if (!irk_is_valid(key)) key 5068 net/bluetooth/mgmt.c static bool ltk_is_valid(struct mgmt_ltk_info *key) key 5070 net/bluetooth/mgmt.c if (key->master != 0x00 && key->master != 0x01) key 5073 net/bluetooth/mgmt.c switch (key->addr.type) { key 5079 net/bluetooth/mgmt.c if ((key->addr.bdaddr.b[5] & 0xc0) != 0xc0) key 5121 net/bluetooth/mgmt.c struct mgmt_ltk_info *key = &cp->keys[i]; key 5123 net/bluetooth/mgmt.c if (!ltk_is_valid(key)) key 5134 net/bluetooth/mgmt.c struct mgmt_ltk_info *key = &cp->keys[i]; key 5137 net/bluetooth/mgmt.c switch (key->type) { key 5140 net/bluetooth/mgmt.c type = key->master ? SMP_LTK : SMP_LTK_SLAVE; key 5144 net/bluetooth/mgmt.c type = key->master ? SMP_LTK : SMP_LTK_SLAVE; key 5162 net/bluetooth/mgmt.c hci_add_ltk(hdev, &key->addr.bdaddr, key 5163 net/bluetooth/mgmt.c le_addr_type(key->addr.type), type, authenticated, key 5164 net/bluetooth/mgmt.c key->val, key->enc_size, key->ediv, key->rand); key 7087 net/bluetooth/mgmt.c void mgmt_new_link_key(struct hci_dev *hdev, struct link_key *key, key 7095 net/bluetooth/mgmt.c bacpy(&ev.key.addr.bdaddr, &key->bdaddr); key 7096 net/bluetooth/mgmt.c ev.key.addr.type = BDADDR_BREDR; key 7097 net/bluetooth/mgmt.c ev.key.type = key->type; key 7098 net/bluetooth/mgmt.c memcpy(ev.key.val, key->val, HCI_LINK_KEY_SIZE); key 7099 net/bluetooth/mgmt.c ev.key.pin_len = key->pin_len; key 7123 net/bluetooth/mgmt.c void mgmt_new_ltk(struct hci_dev *hdev, struct smp_ltk *key, bool persistent) key 7140 net/bluetooth/mgmt.c if (key->bdaddr_type == ADDR_LE_DEV_RANDOM && key 7141 net/bluetooth/mgmt.c (key->bdaddr.b[5] & 0xc0) != 0xc0) key 7146 net/bluetooth/mgmt.c bacpy(&ev.key.addr.bdaddr, &key->bdaddr); key 7147 net/bluetooth/mgmt.c ev.key.addr.type = link_to_bdaddr(LE_LINK, key->bdaddr_type); key 7148 net/bluetooth/mgmt.c ev.key.type = mgmt_ltk_type(key); key 7149 net/bluetooth/mgmt.c ev.key.enc_size = key->enc_size; key 7150 net/bluetooth/mgmt.c ev.key.ediv = key->ediv; key 7151 net/bluetooth/mgmt.c ev.key.rand = key->rand; key 7153 net/bluetooth/mgmt.c if (key->type == SMP_LTK) key 7154 net/bluetooth/mgmt.c ev.key.master = 1; key 7159 net/bluetooth/mgmt.c memcpy(ev.key.val, key->val, key->enc_size); key 7160 net/bluetooth/mgmt.c memset(ev.key.val + key->enc_size, 0, key 7161 net/bluetooth/mgmt.c sizeof(ev.key.val) - key->enc_size); key 7204 net/bluetooth/mgmt.c bacpy(&ev.key.addr.bdaddr, &csrk->bdaddr); key 7205 net/bluetooth/mgmt.c ev.key.addr.type = link_to_bdaddr(LE_LINK, csrk->bdaddr_type); key 7206 net/bluetooth/mgmt.c ev.key.type = csrk->type; key 7207 net/bluetooth/mgmt.c memcpy(ev.key.val, csrk->val, sizeof(csrk->val)); key 1097 net/bluetooth/smp.c struct link_key *key; key 1107 net/bluetooth/smp.c key = hci_add_link_key(hdev, smp->conn->hcon, &hcon->dst, key 1109 net/bluetooth/smp.c if (key) { key 1110 net/bluetooth/smp.c mgmt_new_link_key(hdev, key, persistent); key 1116 net/bluetooth/smp.c key->type == HCI_LK_DEBUG_COMBINATION) { key 1117 net/bluetooth/smp.c list_del_rcu(&key->list); key 1118 net/bluetooth/smp.c kfree_rcu(key, rcu); key 1200 net/bluetooth/smp.c struct link_key *key; key 1202 net/bluetooth/smp.c key = hci_find_link_key(hdev, &hcon->dst); key 1203 net/bluetooth/smp.c if (!key) { key 1208 net/bluetooth/smp.c if (key->type == HCI_LK_DEBUG_COMBINATION) key 1215 net/bluetooth/smp.c if (smp_h7(smp->tfm_cmac, key->val, salt, smp->tk)) key 1221 net/bluetooth/smp.c if (smp_h6(smp->tfm_cmac, key->val, tmp2, smp->tk)) key 2209 net/bluetooth/smp.c struct smp_ltk *key; key 2212 net/bluetooth/smp.c key = hci_find_ltk(hcon->hdev, &hcon->dst, hcon->dst_type, hcon->role); key 2213 net/bluetooth/smp.c if (!key) key 2216 net/bluetooth/smp.c if (smp_ltk_sec_level(key) < sec_level) key 2222 net/bluetooth/smp.c hci_le_start_enc(hcon, key->ediv, key->rand, key->val, key->enc_size); key 2223 net/bluetooth/smp.c hcon->enc_key_size = key->enc_size; key 2674 net/bluetooth/smp.c struct smp_cmd_public_key *key = (void *) skb->data; key 2685 net/bluetooth/smp.c if (skb->len < sizeof(*key)) key 2688 net/bluetooth/smp.c memcpy(smp->remote_pk, key, 64); key 154 net/bluetooth/smp.h static inline bool smp_ltk_is_sc(struct smp_ltk *key) key 156 net/bluetooth/smp.h switch (key->type) { key 165 net/bluetooth/smp.h static inline u8 smp_ltk_sec_level(struct smp_ltk *key) key 167 net/bluetooth/smp.h if (key->authenticated) { key 168 net/bluetooth/smp.h if (smp_ltk_is_sc(key)) key 29 net/bridge/br_fdb.c .key_offset = offsetof(struct net_bridge_fdb_entry, key), key 93 net/bridge/br_fdb.c struct net_bridge_fdb_key key; key 97 net/bridge/br_fdb.c key.vlan_id = vid; key 98 net/bridge/br_fdb.c memcpy(key.addr.addr, addr, sizeof(key.addr.addr)); key 100 net/bridge/br_fdb.c return rhashtable_lookup(tbl, &key, br_fdb_rht_params); key 201 net/bridge/br_fdb.c fdb_del_hw_addr(br, f->key.addr.addr); key 215 net/bridge/br_fdb.c const unsigned char *addr = f->key.addr.addr; key 219 net/bridge/br_fdb.c u16 vid = f->key.vlan_id; key 400 net/bridge/br_fdb.c if (f->is_static || (vid && f->key.vlan_id != vid)) key 466 net/bridge/br_fdb.c memcpy(fe->mac_addr, f->key.addr.addr, ETH_ALEN); key 494 net/bridge/br_fdb.c memcpy(fdb->key.addr.addr, addr, ETH_ALEN); key 496 net/bridge/br_fdb.c fdb->key.vlan_id = vid; key 658 net/bridge/br_fdb.c if (nla_put(skb, NDA_LLADDR, ETH_ALEN, &fdb->key.addr)) key 669 net/bridge/br_fdb.c if (fdb->key.vlan_id && nla_put(skb, NDA_VLAN, sizeof(u16), key 670 net/bridge/br_fdb.c &fdb->key.vlan_id)) key 1069 net/bridge/br_fdb.c err = dev_uc_add(p->dev, f->key.addr.addr); key 1085 net/bridge/br_fdb.c dev_uc_del(p->dev, tmp->key.addr.addr); key 1103 net/bridge/br_fdb.c dev_uc_del(p->dev, f->key.addr.addr); key 1208 net/bridge/br_fdb.c if (f->dst == p && f->key.vlan_id == vid) key 184 net/bridge/br_private.h struct net_bridge_fdb_key key; key 129 net/bridge/br_switchdev.c br_switchdev_fdb_call_notifiers(false, fdb->key.addr.addr, key 130 net/bridge/br_switchdev.c fdb->key.vlan_id, key 136 net/bridge/br_switchdev.c br_switchdev_fdb_call_notifiers(true, fdb->key.addr.addr, key 137 net/bridge/br_switchdev.c fdb->key.vlan_id, key 17 net/bridge/br_vlan.c u16 vid = *(u16 *)arg->key; key 23 net/bridge/br_vlan_tunnel.c __be64 tunid = *(__be64 *)arg->key; key 60 net/bridge/br_vlan_tunnel.c __be64 key = key32_to_tunnel_id(cpu_to_be32(tun_id)); key 67 net/bridge/br_vlan_tunnel.c key, 0); key 73 net/bridge/br_vlan_tunnel.c vlan->tinfo.tunnel_id = key; key 170 net/bridge/br_vlan_tunnel.c vlan = br_vlan_tunnel_lookup(&vg->tunnel_hash, tinfo->key.tun_id); key 30 net/bridge/netfilter/ebt_among.c int key = ((const unsigned char *)mac)[5]; key 33 net/bridge/netfilter/ebt_among.c start = wh->table[key]; key 34 net/bridge/netfilter/ebt_among.c limit = wh->table[key + 1]; key 30 net/bridge/netfilter/nft_meta_bridge.c switch (priv->key) { key 76 net/bridge/netfilter/nft_meta_bridge.c priv->key = ntohl(nla_get_be32(tb[NFTA_META_KEY])); key 77 net/bridge/netfilter/nft_meta_bridge.c switch (priv->key) { key 39 net/ceph/auth.c struct ceph_auth_client *ceph_auth_init(const char *name, const struct ceph_crypto_key *key) key 58 net/ceph/auth.c ac->key = key; key 525 net/ceph/auth_x.c auth->key = 0; key 527 net/ceph/auth_x.c auth->key ^= *(__le64 *)u; key 530 net/ceph/auth_x.c le64_to_cpu(auth->key)); key 943 net/ceph/auth_x.c if (!ac->key) { key 948 net/ceph/auth_x.c ret = ceph_crypto_key_clone(&xi->secret, ac->key); key 40 net/ceph/auth_x_protocol.h __le64 key; key 155 net/ceph/ceph_common.c if (opt1->key && !opt2->key) key 157 net/ceph/ceph_common.c if (!opt1->key && opt2->key) key 159 net/ceph/ceph_common.c if (opt1->key && opt2->key) { key 160 net/ceph/ceph_common.c if (opt1->key->type != opt2->key->type) key 162 net/ceph/ceph_common.c if (opt1->key->created.tv_sec != opt2->key->created.tv_sec) key 164 net/ceph/ceph_common.c if (opt1->key->created.tv_nsec != opt2->key->created.tv_nsec) key 166 net/ceph/ceph_common.c if (opt1->key->len != opt2->key->len) key 168 net/ceph/ceph_common.c if (opt1->key->key && !opt2->key->key) key 170 net/ceph/ceph_common.c if (!opt1->key->key && opt2->key->key) key 172 net/ceph/ceph_common.c if (opt1->key->key && opt2->key->key) { key 173 net/ceph/ceph_common.c ret = memcmp(opt1->key->key, opt2->key->key, opt1->key->len); key 310 net/ceph/ceph_common.c if (opt->key) { key 311 net/ceph/ceph_common.c ceph_crypto_key_destroy(opt->key); key 312 net/ceph/ceph_common.c kfree(opt->key); key 321 net/ceph/ceph_common.c struct key *ukey; key 456 net/ceph/ceph_common.c ceph_crypto_key_destroy(opt->key); key 457 net/ceph/ceph_common.c kfree(opt->key); key 459 net/ceph/ceph_common.c opt->key = kzalloc(sizeof(*opt->key), GFP_KERNEL); key 460 net/ceph/ceph_common.c if (!opt->key) { key 464 net/ceph/ceph_common.c err = ceph_crypto_key_unarmor(opt->key, argstr[0].from); key 469 net/ceph/ceph_common.c ceph_crypto_key_destroy(opt->key); key 470 net/ceph/ceph_common.c kfree(opt->key); key 472 net/ceph/ceph_common.c opt->key = kzalloc(sizeof(*opt->key), GFP_KERNEL); key 473 net/ceph/ceph_common.c if (!opt->key) { key 477 net/ceph/ceph_common.c err = get_secret(opt->key, argstr[0].from); key 587 net/ceph/ceph_common.c if (opt->key) key 23 net/ceph/crypto.c static int set_secret(struct ceph_crypto_key *key, void *buf) key 28 net/ceph/crypto.c key->key = NULL; key 29 net/ceph/crypto.c key->tfm = NULL; key 31 net/ceph/crypto.c switch (key->type) { key 40 net/ceph/crypto.c if (!key->len) key 43 net/ceph/crypto.c key->key = kmemdup(buf, key->len, GFP_NOIO); key 44 net/ceph/crypto.c if (!key->key) { key 51 net/ceph/crypto.c key->tfm = crypto_alloc_sync_skcipher("cbc(aes)", 0, 0); key 53 net/ceph/crypto.c if (IS_ERR(key->tfm)) { key 54 net/ceph/crypto.c ret = PTR_ERR(key->tfm); key 55 net/ceph/crypto.c key->tfm = NULL; key 59 net/ceph/crypto.c ret = crypto_sync_skcipher_setkey(key->tfm, key->key, key->len); key 66 net/ceph/crypto.c ceph_crypto_key_destroy(key); key 74 net/ceph/crypto.c return set_secret(dst, src->key); key 77 net/ceph/crypto.c int ceph_crypto_key_encode(struct ceph_crypto_key *key, void **p, void *end) key 79 net/ceph/crypto.c if (*p + sizeof(u16) + sizeof(key->created) + key 80 net/ceph/crypto.c sizeof(u16) + key->len > end) key 82 net/ceph/crypto.c ceph_encode_16(p, key->type); key 83 net/ceph/crypto.c ceph_encode_copy(p, &key->created, sizeof(key->created)); key 84 net/ceph/crypto.c ceph_encode_16(p, key->len); key 85 net/ceph/crypto.c ceph_encode_copy(p, key->key, key->len); key 89 net/ceph/crypto.c int ceph_crypto_key_decode(struct ceph_crypto_key *key, void **p, void *end) key 93 net/ceph/crypto.c ceph_decode_need(p, end, 2*sizeof(u16) + sizeof(key->created), bad); key 94 net/ceph/crypto.c key->type = ceph_decode_16(p); key 95 net/ceph/crypto.c ceph_decode_copy(p, &key->created, sizeof(key->created)); key 96 net/ceph/crypto.c key->len = ceph_decode_16(p); key 97 net/ceph/crypto.c ceph_decode_need(p, end, key->len, bad); key 98 net/ceph/crypto.c ret = set_secret(key, *p); key 99 net/ceph/crypto.c *p += key->len; key 107 net/ceph/crypto.c int ceph_crypto_key_unarmor(struct ceph_crypto_key *key, const char *inkey) key 125 net/ceph/crypto.c ret = ceph_crypto_key_decode(key, &p, p + blen); key 129 net/ceph/crypto.c dout("crypto_key_unarmor key %p type %d len %d\n", key, key 130 net/ceph/crypto.c key->type, key->len); key 134 net/ceph/crypto.c void ceph_crypto_key_destroy(struct ceph_crypto_key *key) key 136 net/ceph/crypto.c if (key) { key 137 net/ceph/crypto.c kfree(key->key); key 138 net/ceph/crypto.c key->key = NULL; key 139 net/ceph/crypto.c if (key->tfm) { key 140 net/ceph/crypto.c crypto_free_sync_skcipher(key->tfm); key 141 net/ceph/crypto.c key->tfm = NULL; key 218 net/ceph/crypto.c static int ceph_aes_crypt(const struct ceph_crypto_key *key, bool encrypt, key 221 net/ceph/crypto.c SYNC_SKCIPHER_REQUEST_ON_STACK(req, key->tfm); key 237 net/ceph/crypto.c skcipher_request_set_sync_tfm(req, key->tfm); key 282 net/ceph/crypto.c int ceph_crypt(const struct ceph_crypto_key *key, bool encrypt, key 285 net/ceph/crypto.c switch (key->type) { key 290 net/ceph/crypto.c return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len, key 336 net/ceph/crypto.c static void ceph_key_destroy(struct key *key) key 338 net/ceph/crypto.c struct ceph_crypto_key *ckey = key->payload.data[0]; key 15 net/ceph/crypto.h void *key; key 21 net/ceph/crypto.h int ceph_crypto_key_encode(struct ceph_crypto_key *key, void **p, void *end); key 22 net/ceph/crypto.h int ceph_crypto_key_decode(struct ceph_crypto_key *key, void **p, void *end); key 23 net/ceph/crypto.h int ceph_crypto_key_unarmor(struct ceph_crypto_key *key, const char *in); key 24 net/ceph/crypto.h void ceph_crypto_key_destroy(struct ceph_crypto_key *key); key 27 net/ceph/crypto.h int ceph_crypt(const struct ceph_crypto_key *key, bool encrypt, key 309 net/ceph/debugfs.c dump_name_escaped(s, hoid->key, hoid->key_len); key 1056 net/ceph/mon_client.c cl->options->key); key 1653 net/ceph/osd_client.c *pkey = hoid->key; key 1744 net/ceph/osd_client.c hoid->key = ceph_extract_encoded_string(p, end, &hoid->key_len, key 1746 net/ceph/osd_client.c if (IS_ERR(hoid->key)) { key 1747 net/ceph/osd_client.c ret = PTR_ERR(hoid->key); key 1748 net/ceph/osd_client.c hoid->key = NULL; key 1790 net/ceph/osd_client.c ceph_encode_string(p, end, hoid->key, hoid->key_len); key 1802 net/ceph/osd_client.c kfree(hoid->key); key 1896 net/ceph/osd_client.c hoid->key = NULL; key 678 net/core/bpf_sk_storage.c static int notsupp_get_next_key(struct bpf_map *map, void *key, key 701 net/core/bpf_sk_storage.c static void *bpf_fd_sk_storage_lookup_elem(struct bpf_map *map, void *key) key 707 net/core/bpf_sk_storage.c fd = *(int *)key; key 718 net/core/bpf_sk_storage.c static int bpf_fd_sk_storage_update_elem(struct bpf_map *map, void *key, key 725 net/core/bpf_sk_storage.c fd = *(int *)key; key 736 net/core/bpf_sk_storage.c static int bpf_fd_sk_storage_delete_elem(struct bpf_map *map, void *key) key 741 net/core/bpf_sk_storage.c fd = *(int *)key; key 76 net/core/datagram.c void *key) key 81 net/core/datagram.c if (key && !(key_to_poll(key) & (EPOLLIN | EPOLLERR))) key 83 net/core/datagram.c return autoremove_wake_function(wait, mode, sync, key); key 2861 net/core/ethtool.c struct ethtool_rx_flow_key key; key 2889 net/core/ethtool.c flow->rule->match.key = &match->key; key 2901 net/core/ethtool.c ether_addr_copy(match->key.eth_addrs.src, key 2907 net/core/ethtool.c ether_addr_copy(match->key.eth_addrs.dst, key 2913 net/core/ethtool.c match->key.basic.n_proto = ether_spec->h_proto; key 2922 net/core/ethtool.c match->key.basic.n_proto = htons(ETH_P_IP); key 2928 net/core/ethtool.c match->key.ipv4.src = v4_spec->ip4src; key 2932 net/core/ethtool.c match->key.ipv4.dst = v4_spec->ip4dst; key 2943 net/core/ethtool.c match->key.tp.src = v4_spec->psrc; key 2947 net/core/ethtool.c match->key.tp.dst = v4_spec->pdst; key 2958 net/core/ethtool.c match->key.ip.tos = v4_spec->tos; key 2971 net/core/ethtool.c match->key.basic.n_proto = htons(ETH_P_IPV6); key 2976 net/core/ethtool.c memcpy(&match->key.ipv6.src, v6_spec->ip6src, key 2977 net/core/ethtool.c sizeof(match->key.ipv6.src)); key 2982 net/core/ethtool.c memcpy(&match->key.ipv6.dst, v6_spec->ip6dst, key 2983 net/core/ethtool.c sizeof(match->key.ipv6.dst)); key 2995 net/core/ethtool.c match->key.tp.src = v6_spec->psrc; key 2999 net/core/ethtool.c match->key.tp.dst = v6_spec->pdst; key 3010 net/core/ethtool.c match->key.ip.tos = v6_spec->tclass; key 3027 net/core/ethtool.c match->key.basic.ip_proto = IPPROTO_TCP; key 3031 net/core/ethtool.c match->key.basic.ip_proto = IPPROTO_UDP; key 3045 net/core/ethtool.c match->key.vlan.vlan_tpid = ext_h_spec->vlan_etype; key 3050 net/core/ethtool.c match->key.vlan.vlan_id = key 3055 net/core/ethtool.c match->key.vlan.vlan_dei = key 3060 net/core/ethtool.c match->key.vlan.vlan_priority = key 3078 net/core/ethtool.c memcpy(match->key.eth_addrs.dst, ext_h_spec->h_dest, key 3862 net/core/filter.c to->tunnel_id = be64_to_cpu(info->key.tun_id); key 3863 net/core/filter.c to->tunnel_tos = info->key.tos; key 3864 net/core/filter.c to->tunnel_ttl = info->key.ttl; key 3868 net/core/filter.c memcpy(to->remote_ipv6, &info->key.u.ipv6.src, key 3870 net/core/filter.c to->tunnel_label = be32_to_cpu(info->key.label); key 3872 net/core/filter.c to->remote_ipv4 = be32_to_cpu(info->key.u.ipv4.src); key 3902 net/core/filter.c !(info->key.tun_flags & TUNNEL_OPTIONS_PRESENT))) { key 3970 net/core/filter.c info->key.tun_flags = TUNNEL_KEY | TUNNEL_CSUM | TUNNEL_NOCACHE; key 3972 net/core/filter.c info->key.tun_flags |= TUNNEL_DONT_FRAGMENT; key 3974 net/core/filter.c info->key.tun_flags &= ~TUNNEL_CSUM; key 3976 net/core/filter.c info->key.tun_flags |= TUNNEL_SEQ; key 3978 net/core/filter.c info->key.tun_id = cpu_to_be64(from->tunnel_id); key 3979 net/core/filter.c info->key.tos = from->tunnel_tos; key 3980 net/core/filter.c info->key.ttl = from->tunnel_ttl; key 3984 net/core/filter.c memcpy(&info->key.u.ipv6.dst, from->remote_ipv6, key 3986 net/core/filter.c info->key.label = cpu_to_be32(from->tunnel_label) & key 3989 net/core/filter.c info->key.u.ipv4.dst = cpu_to_be32(from->remote_ipv4); key 8716 net/core/filter.c struct bpf_map *, map, void *, key, u32, flags) key 8721 net/core/filter.c selected_sk = map->ops->map_lookup_elem(map, key); key 44 net/core/flow_dissector.c const struct flow_dissector_key *key, key 51 net/core/flow_dissector.c for (i = 0; i < key_count; i++, key++) { key 55 net/core/flow_dissector.c BUG_ON(key->offset > USHRT_MAX); key 57 net/core/flow_dissector.c key->key_id)); key 59 net/core/flow_dissector.c dissector_set_key(flow_dissector, key->key_id); key 60 net/core/flow_dissector.c flow_dissector->offset[key->key_id] = key->offset; key 262 net/core/flow_dissector.c struct flow_dissector_key_ct *key; key 274 net/core/flow_dissector.c key = skb_flow_dissector_target(flow_dissector, key 279 net/core/flow_dissector.c key->ct_state = ctinfo_map[ctinfo]; key 281 net/core/flow_dissector.c key->ct_zone = ct->zone.id; key 284 net/core/flow_dissector.c key->ct_mark = ct->mark; key 289 net/core/flow_dissector.c memcpy(key->ct_labels, cl->bits, sizeof(key->ct_labels)); key 300 net/core/flow_dissector.c struct ip_tunnel_key *key; key 323 net/core/flow_dissector.c key = &info->key; key 337 net/core/flow_dissector.c ipv4->src = key->u.ipv4.src; key 338 net/core/flow_dissector.c ipv4->dst = key->u.ipv4.dst; key 352 net/core/flow_dissector.c ipv6->src = key->u.ipv6.src; key 353 net/core/flow_dissector.c ipv6->dst = key->u.ipv6.dst; key 364 net/core/flow_dissector.c keyid->keyid = tunnel_id_to_key32(key->tun_id); key 373 net/core/flow_dissector.c tp->src = key->tp_src; key 374 net/core/flow_dissector.c tp->dst = key->tp_dst; key 383 net/core/flow_dissector.c ip->tos = key->tos; key 384 net/core/flow_dissector.c ip->ttl = key->ttl; key 397 net/core/flow_dissector.c enc_opt->dst_opt_type = info->key.tun_flags & key 565 net/core/flow_dissector.c offset += FIELD_SIZEOF(struct gre_full_hdr, key); key 1194 net/core/flow_dissector.c key_addrs->tipckey.key = tipc_hdr_rps_key(hdr); key 1437 net/core/flow_dissector.c return flow->addrs.tipckey.key; key 27 net/core/flow_offload.c (__out)->key = skb_flow_dissector_target(__d, __type, (__m)->key); \ key 692 net/core/neighbour.c if (!memcmp(n->key, pkey, key_len) && key 736 net/core/neighbour.c memcpy(n->key, pkey, key_len); key 769 net/core/neighbour.c if (!memcmp(n->key, pkey, key_len) && n->dev == dev && key 2498 net/core/neighbour.c if (nla_put(skb, NDA_DST, tbl->key_len, pn->key)) key 2994 net/core/neighbour.c u32 key = *((u32 *)addr); key 2996 net/core/neighbour.c neigh = __ipv4_neigh_lookup_noref(dev, key); key 267 net/core/sock_map.c static struct sock *__sock_map_lookup_elem(struct bpf_map *map, u32 key) key 273 net/core/sock_map.c if (unlikely(key >= map->max_entries)) key 275 net/core/sock_map.c return READ_ONCE(stab->sks[key]); key 278 net/core/sock_map.c static void *sock_map_lookup(struct bpf_map *map, void *key) key 311 net/core/sock_map.c static int sock_map_delete_elem(struct bpf_map *map, void *key) key 314 net/core/sock_map.c u32 i = *(u32 *)key; key 324 net/core/sock_map.c static int sock_map_get_next_key(struct bpf_map *map, void *key, void *next) key 327 net/core/sock_map.c u32 i = key ? *(u32 *)key : U32_MAX; key 405 net/core/sock_map.c static int sock_map_update_elem(struct bpf_map *map, void *key, key 409 net/core/sock_map.c u32 idx = *(u32 *)key; key 439 net/core/sock_map.c struct bpf_map *, map, void *, key, u64, flags) key 445 net/core/sock_map.c return sock_map_update_common(map, *(u32 *)key, sops->sk, key 462 net/core/sock_map.c struct bpf_map *, map, u32, key, u64, flags) key 469 net/core/sock_map.c tcb->bpf.sk_redir = __sock_map_lookup_elem(map, key); key 486 net/core/sock_map.c struct bpf_map *, map, u32, key, u64, flags) key 491 net/core/sock_map.c msg->sk_redir = __sock_map_lookup_elem(map, key); key 523 net/core/sock_map.c u8 key[0]; key 540 net/core/sock_map.c static inline u32 sock_hash_bucket_hash(const void *key, u32 len) key 542 net/core/sock_map.c return jhash(key, len, 0); key 552 net/core/sock_map.c sock_hash_lookup_elem_raw(struct hlist_head *head, u32 hash, void *key, key 559 net/core/sock_map.c !memcmp(&elem->key, key, key_size)) key 566 net/core/sock_map.c static struct sock *__sock_hash_lookup_elem(struct bpf_map *map, void *key) key 575 net/core/sock_map.c hash = sock_hash_bucket_hash(key, key_size); key 577 net/core/sock_map.c elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); key 605 net/core/sock_map.c elem->key, map->key_size); key 614 net/core/sock_map.c static int sock_hash_delete_elem(struct bpf_map *map, void *key) key 622 net/core/sock_map.c hash = sock_hash_bucket_hash(key, key_size); key 626 net/core/sock_map.c elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); key 638 net/core/sock_map.c void *key, u32 key_size, key 657 net/core/sock_map.c memcpy(new->key, key, key_size); key 663 net/core/sock_map.c static int sock_hash_update_common(struct bpf_map *map, void *key, key 692 net/core/sock_map.c hash = sock_hash_bucket_hash(key, key_size); key 696 net/core/sock_map.c elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); key 705 net/core/sock_map.c elem_new = sock_hash_alloc_elem(htab, key, key_size, hash, sk, elem); key 731 net/core/sock_map.c static int sock_hash_update_elem(struct bpf_map *map, void *key, key 756 net/core/sock_map.c ret = sock_hash_update_common(map, key, sk, flags); key 763 net/core/sock_map.c static int sock_hash_get_next_key(struct bpf_map *map, void *key, key 772 net/core/sock_map.c if (!key) key 774 net/core/sock_map.c hash = sock_hash_bucket_hash(key, key_size); key 776 net/core/sock_map.c elem = sock_hash_lookup_elem_raw(head, hash, key, key_size); key 783 net/core/sock_map.c memcpy(key_next, elem_next->key, key_size); key 795 net/core/sock_map.c memcpy(key_next, elem_next->key, key_size); key 901 net/core/sock_map.c struct bpf_map *, map, void *, key, u64, flags) key 907 net/core/sock_map.c return sock_hash_update_common(map, key, sops->sk, flags); key 923 net/core/sock_map.c struct bpf_map *, map, void *, key, u64, flags) key 930 net/core/sock_map.c tcb->bpf.sk_redir = __sock_hash_lookup_elem(map, key); key 947 net/core/sock_map.c struct bpf_map *, map, void *, key, u64, flags) key 952 net/core/sock_map.c msg->sk_redir = __sock_hash_lookup_elem(map, key); key 567 net/core/sysctl_net_core.c .data = &net_high_order_alloc_disable_key.key, key 37 net/core/xdp.c const u32 key = *k; key 43 net/core/xdp.c return key; key 50 net/core/xdp.c u32 mem_id = *(u32 *)arg->key; key 62 net/decnet/dn_table.c #define dz_key_0(key) ((key).datum = 0) key 76 net/decnet/dn_table.c #define DN_FIB_SCAN_KEY(f, fp, key) \ key 77 net/decnet/dn_table.c for( ; ((f) = *(fp)) != NULL && dn_key_eq((f)->fn_key, (key)); (fp) = &(f)->fn_next) key 87 net/decnet/dn_table.c static inline dn_fib_idx_t dn_hash(dn_fib_key_t key, struct dn_zone *dz) key 89 net/decnet/dn_table.c u16 h = le16_to_cpu(key.datum)>>(16 - dz->dz_order); key 103 net/decnet/dn_table.c static inline struct dn_fib_node **dn_chain_p(dn_fib_key_t key, struct dn_zone *dz) key 105 net/decnet/dn_table.c return &dz->dz_hash[dn_hash(key, dz).datum]; key 108 net/decnet/dn_table.c static inline struct dn_fib_node *dz_chain(dn_fib_key_t key, struct dn_zone *dz) key 110 net/decnet/dn_table.c return dz->dz_hash[dn_hash(key, dz).datum]; key 538 net/decnet/dn_table.c dn_fib_key_t key; key 548 net/decnet/dn_table.c dz_key_0(key); key 553 net/decnet/dn_table.c key = dz_key(dst, dz); key 564 net/decnet/dn_table.c fp = dn_chain_p(key, dz); key 567 net/decnet/dn_table.c if (dn_key_leq(key, f->fn_key)) key 574 net/decnet/dn_table.c dn_key_eq(f->fn_key, key)) { key 581 net/decnet/dn_table.c DN_FIB_SCAN_KEY(f, fp, key) { key 586 net/decnet/dn_table.c if (f && dn_key_eq(f->fn_key, key) && key 604 net/decnet/dn_table.c DN_FIB_SCAN_KEY(f, fp, key) { key 630 net/decnet/dn_table.c new_f->fn_key = key; key 673 net/decnet/dn_table.c dn_fib_key_t key; key 683 net/decnet/dn_table.c dz_key_0(key); key 688 net/decnet/dn_table.c key = dz_key(dst, dz); key 691 net/decnet/dn_table.c fp = dn_chain_p(key, dz); key 694 net/decnet/dn_table.c if (dn_key_eq(f->fn_key, key)) key 696 net/decnet/dn_table.c if (dn_key_leq(key, f->fn_key)) key 702 net/decnet/dn_table.c DN_FIB_SCAN_KEY(f, fp, key) { key 242 net/dns_resolver/dns_key.c static bool dns_resolver_cmp(const struct key *key, key 246 net/dns_resolver/dns_key.c const char *src = key->description, *dsp = match_data->raw_data; key 287 net/dns_resolver/dns_key.c static void dns_resolver_describe(const struct key *key, struct seq_file *m) key 289 net/dns_resolver/dns_key.c seq_puts(m, key->description); key 290 net/dns_resolver/dns_key.c if (key_is_positive(key)) { key 291 net/dns_resolver/dns_key.c int err = PTR_ERR(key->payload.data[dns_key_error]); key 296 net/dns_resolver/dns_key.c seq_printf(m, ": %u", key->datalen); key 304 net/dns_resolver/dns_key.c static long dns_resolver_read(const struct key *key, key 307 net/dns_resolver/dns_key.c int err = PTR_ERR(key->payload.data[dns_key_error]); key 312 net/dns_resolver/dns_key.c return user_read(key, buffer, buflen); key 331 net/dns_resolver/dns_key.c struct key *keyring; key 79 net/dns_resolver/dns_query.c struct key *rkey; key 38 net/ieee802154/6lowpan/reassembly.c const struct frag_lowpan_compare_key *key = a; key 40 net/ieee802154/6lowpan/reassembly.c BUILD_BUG_ON(sizeof(*key) > sizeof(q->key)); key 41 net/ieee802154/6lowpan/reassembly.c memcpy(&q->key, key, sizeof(*key)); key 69 net/ieee802154/6lowpan/reassembly.c struct frag_lowpan_compare_key key = {}; key 72 net/ieee802154/6lowpan/reassembly.c key.tag = cb->d_tag; key 73 net/ieee802154/6lowpan/reassembly.c key.d_size = cb->d_size; key 74 net/ieee802154/6lowpan/reassembly.c key.src = *src; key 75 net/ieee802154/6lowpan/reassembly.c key.dst = *dst; key 77 net/ieee802154/6lowpan/reassembly.c q = inet_frag_find(ieee802154_lowpan->fqdir, &key); key 495 net/ieee802154/6lowpan/reassembly.c return jhash2((const u32 *)&fq->key, key 501 net/ieee802154/6lowpan/reassembly.c const struct frag_lowpan_compare_key *key = arg->key; key 504 net/ieee802154/6lowpan/reassembly.c return !!memcmp(&fq->key, key, sizeof(*key)); key 832 net/ieee802154/nl-mac.c struct ieee802154_llsec_key *key) key 837 net/ieee802154/nl-mac.c memset(key, 0, sizeof(*key)); key 858 net/ieee802154/nl-mac.c key->cmd_frame_ids = commands[7]; key 861 net/ieee802154/nl-mac.c key->frame_types = frames; key 863 net/ieee802154/nl-mac.c nla_memcpy(key->key, info->attrs[IEEE802154_ATTR_LLSEC_KEY_BYTES], key 872 net/ieee802154/nl-mac.c struct ieee802154_llsec_key key; key 875 net/ieee802154/nl-mac.c if (ieee802154_llsec_parse_key(info, &key) || key 879 net/ieee802154/nl-mac.c return ops->llsec->add_key(dev, &id, &key); key 909 net/ieee802154/nl-mac.c const struct ieee802154_llsec_key_entry *key, key 922 net/ieee802154/nl-mac.c ieee802154_llsec_fill_key_id(msg, &key->id) || key 924 net/ieee802154/nl-mac.c key->key->frame_types)) key 927 net/ieee802154/nl-mac.c if (key->key->frame_types & BIT(IEEE802154_FC_TYPE_MAC_CMD)) { key 929 net/ieee802154/nl-mac.c commands[7] = key->key->cmd_frame_ids; key 936 net/ieee802154/nl-mac.c IEEE802154_LLSEC_KEY_SIZE, key->key->key)) key 1108 net/ieee802154/nl-mac.c struct ieee802154_llsec_device_key key; key 1113 net/ieee802154/nl-mac.c ieee802154_llsec_parse_key_id(info, &key.key_id)) key 1117 net/ieee802154/nl-mac.c key.frame_counter = nla_get_u32(info->attrs[IEEE802154_ATTR_LLSEC_FRAME_COUNTER]); key 1119 net/ieee802154/nl-mac.c return ops->llsec->add_devkey(dev, devaddr, &key); key 1134 net/ieee802154/nl-mac.c struct ieee802154_llsec_device_key key; key 1138 net/ieee802154/nl-mac.c ieee802154_llsec_parse_key_id(info, &key.key_id)) key 1143 net/ieee802154/nl-mac.c return ops->llsec->del_devkey(dev, devaddr, &key); key 1443 net/ieee802154/nl802154.c const struct ieee802154_llsec_key_entry *key) key 1464 net/ieee802154/nl802154.c if (ieee802154_llsec_send_key_id(msg, &key->id) < 0) key 1470 net/ieee802154/nl802154.c key->key->frame_types)) key 1473 net/ieee802154/nl802154.c if (key->key->frame_types & BIT(NL802154_FRAME_CMD)) { key 1476 net/ieee802154/nl802154.c commands[7] = key->key->cmd_frame_ids; key 1483 net/ieee802154/nl802154.c key->key->key)) key 1500 net/ieee802154/nl802154.c struct ieee802154_llsec_key_entry *key; key 1521 net/ieee802154/nl802154.c list_for_each_entry(key, &table->keys, list) { key 1525 net/ieee802154/nl802154.c rdev, wpan_dev->netdev, key) < 0) { key 1559 net/ieee802154/nl802154.c struct ieee802154_llsec_key key = { }; key 1573 net/ieee802154/nl802154.c key.frame_types = nla_get_u8(attrs[NL802154_KEY_ATTR_USAGE_FRAMES]); key 1574 net/ieee802154/nl802154.c if (key.frame_types > BIT(NL802154_FRAME_MAX) || key 1575 net/ieee802154/nl802154.c ((key.frame_types & BIT(NL802154_FRAME_CMD)) && key 1590 net/ieee802154/nl802154.c key.cmd_frame_ids = commands[7]; key 1592 net/ieee802154/nl802154.c key.cmd_frame_ids = 0; key 1595 net/ieee802154/nl802154.c nla_memcpy(key.key, attrs[NL802154_KEY_ATTR_BYTES], NL802154_KEY_SIZE); key 1600 net/ieee802154/nl802154.c return rdev_add_llsec_key(rdev, wpan_dev, &id, &key); key 1898 net/ieee802154/nl802154.c struct ieee802154_llsec_device_key key; key 1911 net/ieee802154/nl802154.c &key.key_id) < 0) key 1915 net/ieee802154/nl802154.c key.frame_counter = nla_get_u32(attrs[NL802154_DEVKEY_ATTR_FRAME_COUNTER]); key 1920 net/ieee802154/nl802154.c return rdev_add_devkey(rdev, wpan_dev, extended_addr, &key); key 1929 net/ieee802154/nl802154.c struct ieee802154_llsec_device_key key; key 1940 net/ieee802154/nl802154.c &key.key_id) < 0) key 1947 net/ieee802154/nl802154.c return rdev_del_devkey(rdev, wpan_dev, extended_addr, &key); key 258 net/ieee802154/rdev-ops.h const struct ieee802154_llsec_key *key) key 260 net/ieee802154/rdev-ops.h return rdev->ops->add_llsec_key(&rdev->wpan_phy, wpan_dev, id, key); key 1379 net/ipv4/arp.c sprintf(tbuf, "%pI4", n->key); key 64 net/ipv4/cipso_ipv4.c unsigned char *key; key 136 net/ipv4/cipso_ipv4.c kfree(entry->key); key 149 net/ipv4/cipso_ipv4.c static u32 cipso_v4_map_cache_hash(const unsigned char *key, u32 key_len) key 151 net/ipv4/cipso_ipv4.c return jhash(key, key_len, 0); key 234 net/ipv4/cipso_ipv4.c static int cipso_v4_cache_check(const unsigned char *key, key 246 net/ipv4/cipso_ipv4.c hash = cipso_v4_map_cache_hash(key, key_len); key 252 net/ipv4/cipso_ipv4.c memcmp(entry->key, key, key_len) == 0) { key 314 net/ipv4/cipso_ipv4.c entry->key = kmemdup(cipso_ptr, cipso_ptr_len, GFP_ATOMIC); key 315 net/ipv4/cipso_ipv4.c if (!entry->key) { key 866 net/ipv4/esp4.c char *key; key 906 net/ipv4/esp4.c key = kmalloc(keylen, GFP_KERNEL); key 907 net/ipv4/esp4.c if (!key) key 910 net/ipv4/esp4.c p = key; key 945 net/ipv4/esp4.c err = crypto_aead_setkey(aead, key, keylen); key 948 net/ipv4/esp4.c kfree(key); key 41 net/ipv4/fib_lookup.h void rtmsg_fib(int event, __be32 key, struct fib_alias *fa, int dst_len, key 503 net/ipv4/fib_semantics.c void rtmsg_fib(int event, __be32 key, struct fib_alias *fa, key 516 net/ipv4/fib_semantics.c fa->fa_type, key, dst_len, key 121 net/ipv4/fib_trie.c t_key key; key 218 net/ipv4/fib_trie.c #define get_cindex(key, kv) (((key) ^ (kv)->key) >> (kv)->pos) key 220 net/ipv4/fib_trie.c static inline unsigned long get_index(t_key key, struct key_vector *kv) key 222 net/ipv4/fib_trie.c unsigned long index = key ^ kv->key; key 355 net/ipv4/fib_trie.c static struct key_vector *leaf_new(t_key key, struct fib_alias *fa) key 366 net/ipv4/fib_trie.c l->key = key; key 378 net/ipv4/fib_trie.c static struct key_vector *tnode_new(t_key key, int pos, int bits) key 400 net/ipv4/fib_trie.c tn->key = (shift < KEYLENGTH) ? (key >> shift) << shift : 0; key 470 net/ipv4/fib_trie.c static inline void put_child_root(struct key_vector *tp, t_key key, key 476 net/ipv4/fib_trie.c put_child(tp, get_index(key, tp), n); key 518 net/ipv4/fib_trie.c put_child_root(tp, tn->key, tn); key 547 net/ipv4/fib_trie.c tn = tnode_new(oldtnode->key, oldtnode->pos - 1, oldtnode->bits + 1); key 570 net/ipv4/fib_trie.c put_child(tn, get_index(inode->key, tn), inode); key 598 net/ipv4/fib_trie.c node1 = tnode_new(inode->key | m, inode->pos, inode->bits - 1); key 601 net/ipv4/fib_trie.c node0 = tnode_new(inode->key, inode->pos, inode->bits - 1); key 642 net/ipv4/fib_trie.c tn = tnode_new(oldtnode->key, oldtnode->pos + 1, oldtnode->bits - 1); key 666 net/ipv4/fib_trie.c inode = tnode_new(node0->key, oldtnode->pos, 1); key 701 net/ipv4/fib_trie.c put_child_root(tp, oldtnode->key, n); key 855 net/ipv4/fib_trie.c unsigned long cindex = get_index(tn->key, tp); key 938 net/ipv4/fib_trie.c struct key_vector **tp, u32 key) key 950 net/ipv4/fib_trie.c index = get_cindex(key, n); key 1015 net/ipv4/fib_trie.c struct fib_alias *new, t_key key) key 1019 net/ipv4/fib_trie.c l = leaf_new(key, new); key 1024 net/ipv4/fib_trie.c n = get_child(tp, get_index(key, tp)); key 1035 net/ipv4/fib_trie.c tn = tnode_new(key, __fls(key ^ n->key), 1); key 1041 net/ipv4/fib_trie.c put_child(tn, get_index(key, tn) ^ 1, n); key 1044 net/ipv4/fib_trie.c put_child_root(tp, key, tn); key 1054 net/ipv4/fib_trie.c put_child_root(tp, key, l); key 1069 net/ipv4/fib_trie.c struct fib_alias *fa, t_key key) key 1072 net/ipv4/fib_trie.c return fib_insert_node(t, tp, new, key); key 1103 net/ipv4/fib_trie.c static bool fib_valid_key_len(u32 key, u8 plen, struct netlink_ext_ack *extack) key 1110 net/ipv4/fib_trie.c if ((plen < KEYLENGTH) && (key << plen)) { key 1132 net/ipv4/fib_trie.c u32 key; key 1135 net/ipv4/fib_trie.c key = ntohl(cfg->fc_dst); key 1137 net/ipv4/fib_trie.c if (!fib_valid_key_len(key, plen, extack)) key 1140 net/ipv4/fib_trie.c pr_debug("Insert table=%u %08x/%d\n", tb->tb_id, key, plen); key 1148 net/ipv4/fib_trie.c l = fib_find_node(t, &tp, key); key 1220 net/ipv4/fib_trie.c key, plen, new_fa, key 1225 net/ipv4/fib_trie.c rtmsg_fib(RTM_NEWROUTE, htonl(key), new_fa, plen, key 1270 net/ipv4/fib_trie.c err = call_fib_entry_notifiers(net, event, key, plen, new_fa, extack); key 1275 net/ipv4/fib_trie.c err = fib_insert_alias(t, tp, l, new_fa, fa, key); key 1283 net/ipv4/fib_trie.c rtmsg_fib(RTM_NEWROUTE, htonl(key), new_fa, plen, new_fa->tb_id, key 1294 net/ipv4/fib_trie.c call_fib_entry_notifiers(net, FIB_EVENT_ENTRY_DEL, key, key 1304 net/ipv4/fib_trie.c static inline t_key prefix_mismatch(t_key key, struct key_vector *n) key 1306 net/ipv4/fib_trie.c t_key prefix = n->key; key 1308 net/ipv4/fib_trie.c return (key ^ prefix) & (prefix | -prefix); key 1319 net/ipv4/fib_trie.c const t_key key = ntohl(flp->daddr); key 1340 net/ipv4/fib_trie.c index = get_cindex(key, n); key 1385 net/ipv4/fib_trie.c if (unlikely(prefix_mismatch(key, n)) || (n->slen == n->pos)) key 1409 net/ipv4/fib_trie.c t_key pkey = pn->key; key 1438 net/ipv4/fib_trie.c index = key ^ n->key; key 1491 net/ipv4/fib_trie.c res->prefix = htonl(n->key); key 1531 net/ipv4/fib_trie.c put_child_root(tp, l->key, NULL); key 1556 net/ipv4/fib_trie.c u32 key; key 1558 net/ipv4/fib_trie.c key = ntohl(cfg->fc_dst); key 1560 net/ipv4/fib_trie.c if (!fib_valid_key_len(key, plen, extack)) key 1563 net/ipv4/fib_trie.c l = fib_find_node(t, &tp, key); key 1571 net/ipv4/fib_trie.c pr_debug("Deleting %08x/%d tos=%d t=%p\n", key, plen, tos, t); key 1599 net/ipv4/fib_trie.c call_fib_entry_notifiers(net, FIB_EVENT_ENTRY_DEL, key, plen, key 1601 net/ipv4/fib_trie.c rtmsg_fib(RTM_DELROUTE, htonl(key), fa_to_delete, plen, tb->tb_id, key 1618 net/ipv4/fib_trie.c static struct key_vector *leaf_walk_rcu(struct key_vector **tn, t_key key) key 1627 net/ipv4/fib_trie.c cindex = (key > pn->key) ? get_index(key, pn) : 0; key 1638 net/ipv4/fib_trie.c if (IS_LEAF(n) && (n->key >= key)) key 1646 net/ipv4/fib_trie.c t_key pkey = pn->key; key 1688 net/ipv4/fib_trie.c t_key pkey = pn->key; key 1697 net/ipv4/fib_trie.c put_child_root(pn, n->key, NULL); key 1723 net/ipv4/fib_trie.c put_child_root(pn, n->key, NULL); key 1740 net/ipv4/fib_trie.c t_key key = 0; key 1751 net/ipv4/fib_trie.c while ((l = leaf_walk_rcu(&tp, key)) != NULL) { key 1769 net/ipv4/fib_trie.c local_l = fib_find_node(lt, &local_tp, l->key); key 1772 net/ipv4/fib_trie.c NULL, l->key)) { key 1779 net/ipv4/fib_trie.c key = l->key + 1; key 1780 net/ipv4/fib_trie.c if (key < l->key) key 1806 net/ipv4/fib_trie.c t_key pkey = pn->key; key 1854 net/ipv4/fib_trie.c put_child_root(pn, n->key, NULL); key 1876 net/ipv4/fib_trie.c t_key pkey = pn->key; key 1925 net/ipv4/fib_trie.c n->key, key 1938 net/ipv4/fib_trie.c put_child_root(pn, n->key, NULL); key 1960 net/ipv4/fib_trie.c t_key pkey = pn->key; key 1989 net/ipv4/fib_trie.c rtmsg_fib(RTM_NEWROUTE, htonl(n->key), fa, key 1998 net/ipv4/fib_trie.c n->key, key 2035 net/ipv4/fib_trie.c call_fib_entry_notifier(nb, net, FIB_EVENT_ENTRY_ADD, l->key, key 2045 net/ipv4/fib_trie.c t_key key = 0; key 2047 net/ipv4/fib_trie.c while ((l = leaf_walk_rcu(&tp, key)) != NULL) { key 2050 net/ipv4/fib_trie.c key = l->key + 1; key 2052 net/ipv4/fib_trie.c if (key < l->key) key 2092 net/ipv4/fib_trie.c __be32 xkey = htonl(l->key); key 2176 net/ipv4/fib_trie.c t_key key = cb->args[3]; key 2181 net/ipv4/fib_trie.c if (count && !key) key 2184 net/ipv4/fib_trie.c while ((l = leaf_walk_rcu(&tp, key)) != NULL) { key 2189 net/ipv4/fib_trie.c cb->args[3] = key; key 2195 net/ipv4/fib_trie.c key = l->key + 1; key 2201 net/ipv4/fib_trie.c if (key < l->key) key 2205 net/ipv4/fib_trie.c cb->args[3] = key; key 2296 net/ipv4/fib_trie.c pkey = pn->key; key 2618 net/ipv4/fib_trie.c __be32 prf = htonl(n->key); key 2626 net/ipv4/fib_trie.c __be32 val = htonl(n->key); key 2663 net/ipv4/fib_trie.c t_key key; key 2670 net/ipv4/fib_trie.c t_key key; key 2674 net/ipv4/fib_trie.c key = iter->key; key 2677 net/ipv4/fib_trie.c key = 0; key 2682 net/ipv4/fib_trie.c while ((l = leaf_walk_rcu(tp, key)) && (pos-- > 0)) { key 2683 net/ipv4/fib_trie.c key = l->key + 1; key 2688 net/ipv4/fib_trie.c if (!key) key 2693 net/ipv4/fib_trie.c iter->key = l->key; /* remember it */ key 2721 net/ipv4/fib_trie.c iter->key = KEY_MAX; key 2730 net/ipv4/fib_trie.c t_key key = iter->key + 1; key 2735 net/ipv4/fib_trie.c if ((v == SEQ_START_TOKEN) || key) key 2736 net/ipv4/fib_trie.c l = leaf_walk_rcu(&iter->tnode, key); key 2739 net/ipv4/fib_trie.c iter->key = l->key; key 2793 net/ipv4/fib_trie.c prefix = htonl(l->key); key 99 net/ipv4/gre_demux.c tpi->key = *options; key 102 net/ipv4/gre_demux.c tpi->key = 0; key 139 net/ipv4/gre_demux.c tpi->key = cpu_to_be32(get_session_id(ershdr)); key 310 net/ipv4/inet_fragment.c *prev = rhashtable_lookup_get_insert_key(&fqdir->rhashtable, &q->key, key 322 net/ipv4/inet_fragment.c struct inet_frag_queue *inet_frag_find(struct fqdir *fqdir, void *key) key 331 net/ipv4/inet_fragment.c prev = rhashtable_lookup(&fqdir->rhashtable, key, fqdir->f->rhash_params); key 333 net/ipv4/inet_fragment.c fq = inet_frag_create(fqdir, key, &prev); key 87 net/ipv4/ip_fragment.c const struct frag_v4_compare_key *key = a; key 89 net/ipv4/ip_fragment.c q->key.v4 = *key; key 92 net/ipv4/ip_fragment.c inet_getpeer_v4(net->ipv4.peers, key->saddr, key->vif, 1) : key 184 net/ipv4/ip_fragment.c if (frag_expire_skip_icmp(qp->q.key.v4.user) && key 206 net/ipv4/ip_fragment.c struct frag_v4_compare_key key = { key 216 net/ipv4/ip_fragment.c q = inet_frag_find(net->ipv4.fqdir, &key); key 398 net/ipv4/ip_fragment.c return qp->q.key.v4.user == IP_DEFRAG_LOCAL_DELIVER; key 467 net/ipv4/ip_fragment.c net_info_ratelimited("Oversized IP packet from %pI4\n", &qp->q.key.v4.saddr); key 717 net/ipv4/ip_fragment.c return jhash2((const u32 *)&fq->key.v4, key 723 net/ipv4/ip_fragment.c const struct frag_v4_compare_key *key = arg->key; key 726 net/ipv4/ip_fragment.c return !!memcmp(&fq->key, key, sizeof(*key)); key 731 net/ipv4/ip_fragment.c .key_offset = offsetof(struct inet_frag_queue, key), key 154 net/ipv4/ip_gre.c iph->daddr, iph->saddr, tpi->key); key 272 net/ipv4/ip_gre.c iph->saddr, iph->daddr, tpi->key); key 294 net/ipv4/ip_gre.c tun_id = key32_to_tunnel_id(tpi->key); key 316 net/ipv4/ip_gre.c info->key.tun_flags |= TUNNEL_ERSPAN_OPT; key 340 net/ipv4/ip_gre.c iph->saddr, iph->daddr, tpi->key); key 356 net/ipv4/ip_gre.c tun_id = key32_to_tunnel_id(tpi->key); key 457 net/ipv4/ip_gre.c const struct ip_tunnel_key *key; key 466 net/ipv4/ip_gre.c key = &tun_info->key; key 467 net/ipv4/ip_gre.c tunnel_hlen = gre_calc_hlen(key->tun_flags); key 473 net/ipv4/ip_gre.c if (gre_handle_offloads(skb, !!(tun_info->key.tun_flags & TUNNEL_CSUM))) key 476 net/ipv4/ip_gre.c flags = tun_info->key.tun_flags & key 479 net/ipv4/ip_gre.c tunnel_id_to_key32(tun_info->key.tun_id), key 495 net/ipv4/ip_gre.c const struct ip_tunnel_key *key; key 509 net/ipv4/ip_gre.c key = &tun_info->key; key 510 net/ipv4/ip_gre.c if (!(tun_info->key.tun_flags & TUNNEL_ERSPAN_OPT)) key 542 net/ipv4/ip_gre.c erspan_build_header(skb, ntohl(tunnel_id_to_key32(key->tun_id)), key 547 net/ipv4/ip_gre.c ntohl(tunnel_id_to_key32(key->tun_id)), key 571 net/ipv4/ip_gre.c const struct ip_tunnel_key *key; key 578 net/ipv4/ip_gre.c key = &info->key; key 579 net/ipv4/ip_gre.c ip_tunnel_init_flow(&fl4, IPPROTO_GRE, key->u.ipv4.dst, key->u.ipv4.src, key 580 net/ipv4/ip_gre.c tunnel_id_to_key32(key->tun_id), key->tos, 0, key 587 net/ipv4/ip_gre.c info->key.u.ipv4.src = fl4.saddr; key 53 net/ipv4/ip_tunnel.c static unsigned int ip_tunnel_hash(__be32 key, __be32 remote) key 55 net/ipv4/ip_tunnel.c return hash_32((__force u32)key ^ (__force u32)remote, key 60 net/ipv4/ip_tunnel.c __be16 flags, __be32 key) key 64 net/ipv4/ip_tunnel.c return key == p->i_key; key 86 net/ipv4/ip_tunnel.c __be32 key) key 92 net/ipv4/ip_tunnel.c hash = ip_tunnel_hash(key, remote); key 101 net/ipv4/ip_tunnel.c if (!ip_tunnel_key_match(&t->parms, flags, key)) key 116 net/ipv4/ip_tunnel.c if (!ip_tunnel_key_match(&t->parms, flags, key)) key 125 net/ipv4/ip_tunnel.c hash = ip_tunnel_hash(key, 0); key 136 net/ipv4/ip_tunnel.c if (!ip_tunnel_key_match(&t->parms, flags, key)) key 146 net/ipv4/ip_tunnel.c if ((!(flags & TUNNEL_NO_KEY) && t->parms.i_key != key) || key 213 net/ipv4/ip_tunnel.c __be32 key = parms->i_key; key 224 net/ipv4/ip_tunnel.c ip_tunnel_key_match(&t->parms, flags, key)) key 549 net/ipv4/ip_tunnel.c const struct ip_tunnel_key *key; key 561 net/ipv4/ip_tunnel.c key = &tun_info->key; key 564 net/ipv4/ip_tunnel.c tos = key->tos; key 571 net/ipv4/ip_tunnel.c ip_tunnel_init_flow(&fl4, proto, key->u.ipv4.dst, key->u.ipv4.src, key 572 net/ipv4/ip_tunnel.c tunnel_id_to_key32(key->tun_id), RT_TOS(tos), key 596 net/ipv4/ip_tunnel.c if (key->tun_flags & TUNNEL_DONT_FRAGMENT) key 599 net/ipv4/ip_tunnel.c key->u.ipv4.dst, true)) { key 605 net/ipv4/ip_tunnel.c ttl = key->ttl; key 672 net/ipv4/ip_tunnel.c tun_info->key.u.ipv4.dst) { key 673 net/ipv4/ip_tunnel.c dst = tun_info->key.u.ipv4.dst; key 138 net/ipv4/ip_tunnel_core.c dst->key.tun_id = src->key.tun_id; key 140 net/ipv4/ip_tunnel_core.c memcpy(&dst->key.u.ipv6.dst, &src->key.u.ipv6.src, key 143 net/ipv4/ip_tunnel_core.c dst->key.u.ipv4.dst = src->key.u.ipv4.src; key 144 net/ipv4/ip_tunnel_core.c dst->key.tun_flags = src->key.tun_flags; key 254 net/ipv4/ip_tunnel_core.c tun_info->key.tun_id = nla_get_be64(tb[LWTUNNEL_IP_ID]); key 257 net/ipv4/ip_tunnel_core.c tun_info->key.u.ipv4.dst = nla_get_in_addr(tb[LWTUNNEL_IP_DST]); key 260 net/ipv4/ip_tunnel_core.c tun_info->key.u.ipv4.src = nla_get_in_addr(tb[LWTUNNEL_IP_SRC]); key 263 net/ipv4/ip_tunnel_core.c tun_info->key.ttl = nla_get_u8(tb[LWTUNNEL_IP_TTL]); key 266 net/ipv4/ip_tunnel_core.c tun_info->key.tos = nla_get_u8(tb[LWTUNNEL_IP_TOS]); key 269 net/ipv4/ip_tunnel_core.c tun_info->key.tun_flags = nla_get_be16(tb[LWTUNNEL_IP_FLAGS]); key 293 net/ipv4/ip_tunnel_core.c if (nla_put_be64(skb, LWTUNNEL_IP_ID, tun_info->key.tun_id, key 295 net/ipv4/ip_tunnel_core.c nla_put_in_addr(skb, LWTUNNEL_IP_DST, tun_info->key.u.ipv4.dst) || key 296 net/ipv4/ip_tunnel_core.c nla_put_in_addr(skb, LWTUNNEL_IP_SRC, tun_info->key.u.ipv4.src) || key 297 net/ipv4/ip_tunnel_core.c nla_put_u8(skb, LWTUNNEL_IP_TOS, tun_info->key.tos) || key 298 net/ipv4/ip_tunnel_core.c nla_put_u8(skb, LWTUNNEL_IP_TTL, tun_info->key.ttl) || key 299 net/ipv4/ip_tunnel_core.c nla_put_be16(skb, LWTUNNEL_IP_FLAGS, tun_info->key.tun_flags)) key 363 net/ipv4/ip_tunnel_core.c tun_info->key.tun_id = nla_get_be64(tb[LWTUNNEL_IP6_ID]); key 366 net/ipv4/ip_tunnel_core.c tun_info->key.u.ipv6.dst = nla_get_in6_addr(tb[LWTUNNEL_IP6_DST]); key 369 net/ipv4/ip_tunnel_core.c tun_info->key.u.ipv6.src = nla_get_in6_addr(tb[LWTUNNEL_IP6_SRC]); key 372 net/ipv4/ip_tunnel_core.c tun_info->key.ttl = nla_get_u8(tb[LWTUNNEL_IP6_HOPLIMIT]); key 375 net/ipv4/ip_tunnel_core.c tun_info->key.tos = nla_get_u8(tb[LWTUNNEL_IP6_TC]); key 378 net/ipv4/ip_tunnel_core.c tun_info->key.tun_flags = nla_get_be16(tb[LWTUNNEL_IP6_FLAGS]); key 393 net/ipv4/ip_tunnel_core.c if (nla_put_be64(skb, LWTUNNEL_IP6_ID, tun_info->key.tun_id, key 395 net/ipv4/ip_tunnel_core.c nla_put_in6_addr(skb, LWTUNNEL_IP6_DST, &tun_info->key.u.ipv6.dst) || key 396 net/ipv4/ip_tunnel_core.c nla_put_in6_addr(skb, LWTUNNEL_IP6_SRC, &tun_info->key.u.ipv6.src) || key 397 net/ipv4/ip_tunnel_core.c nla_put_u8(skb, LWTUNNEL_IP6_TC, tun_info->key.tos) || key 398 net/ipv4/ip_tunnel_core.c nla_put_u8(skb, LWTUNNEL_IP6_HOPLIMIT, tun_info->key.ttl) || key 399 net/ipv4/ip_tunnel_core.c nla_put_be16(skb, LWTUNNEL_IP6_FLAGS, tun_info->key.tun_flags)) key 359 net/ipv4/ipmr.c const struct mfc_cache_cmp_arg *cmparg = arg->key; key 68 net/ipv4/netfilter/nf_nat_pptp.c t.src.u.gre.key = ct_pptp_info->pac_call_id; key 70 net/ipv4/netfilter/nf_nat_pptp.c t.dst.u.gre.key = ct_pptp_info->pns_call_id; key 77 net/ipv4/netfilter/nf_nat_pptp.c t.src.u.gre.key = nat_pptp_info->pns_call_id; key 79 net/ipv4/netfilter/nf_nat_pptp.c t.dst.u.gre.key = nat_pptp_info->pac_call_id; key 217 net/ipv4/netfilter/nf_nat_pptp.c expect_orig->saved_proto.gre.key = ct_pptp_info->pns_call_id; key 218 net/ipv4/netfilter/nf_nat_pptp.c expect_orig->tuple.src.u.gre.key = nat_pptp_info->pns_call_id; key 219 net/ipv4/netfilter/nf_nat_pptp.c expect_orig->tuple.dst.u.gre.key = ct_pptp_info->pac_call_id; key 223 net/ipv4/netfilter/nf_nat_pptp.c expect_reply->saved_proto.gre.key = nat_pptp_info->pns_call_id; key 224 net/ipv4/netfilter/nf_nat_pptp.c expect_reply->tuple.src.u.gre.key = nat_pptp_info->pac_call_id; key 225 net/ipv4/netfilter/nf_nat_pptp.c expect_reply->tuple.dst.u.gre.key = ct_pptp_info->pns_call_id; key 2062 net/ipv4/route.c fl4.flowi4_tun_key.tun_id = tun_info->key.tun_id; key 280 net/ipv4/sysctl_net_ipv4.c static int sscanf_key(char *buf, __le32 *key) key 290 net/ipv4/sysctl_net_ipv4.c key[i] = cpu_to_le32(user_key[i]); key 312 net/ipv4/sysctl_net_ipv4.c __le32 key[TCP_FASTOPEN_KEY_MAX * 4]; key 324 net/ipv4/sysctl_net_ipv4.c memcpy(&key[0], &ctx->key[0], TCP_FASTOPEN_KEY_LENGTH * n_keys); key 329 net/ipv4/sysctl_net_ipv4.c memset(&key[0], 0, TCP_FASTOPEN_KEY_LENGTH); key 334 net/ipv4/sysctl_net_ipv4.c user_key[i] = le32_to_cpu(key[i]); key 355 net/ipv4/sysctl_net_ipv4.c if (sscanf_key(tbl.data, key)) { key 360 net/ipv4/sysctl_net_ipv4.c if (sscanf_key(backup_data, key + 4)) { key 365 net/ipv4/sysctl_net_ipv4.c tcp_fastopen_reset_cipher(net, NULL, key, key 366 net/ipv4/sysctl_net_ipv4.c backup_data ? key + 4 : NULL); key 605 net/ipv4/sysctl_net_ipv4.c .data = &tcp_rx_skb_cache_key.key, key 611 net/ipv4/sysctl_net_ipv4.c .data = &tcp_tx_skb_cache_key.key, key 2851 net/ipv4/tcp.c __u8 key[TCP_FASTOPEN_KEY_BUF_LENGTH]; key 2861 net/ipv4/tcp.c if (copy_from_user(key, optval, optlen)) key 2865 net/ipv4/tcp.c backup_key = key + TCP_FASTOPEN_KEY_LENGTH; key 2867 net/ipv4/tcp.c return tcp_fastopen_reset_cipher(net, sk, key, backup_key); key 3530 net/ipv4/tcp.c __u8 key[TCP_FASTOPEN_KEY_BUF_LENGTH]; key 3542 net/ipv4/tcp.c memcpy(&key[0], &ctx->key[0], key_len); key 3549 net/ipv4/tcp.c if (copy_to_user(optval, key, len)) key 3845 net/ipv4/tcp.c int tcp_md5_hash_key(struct tcp_md5sig_pool *hp, const struct tcp_md5sig_key *key) key 3849 net/ipv4/tcp.c sg_init_one(&sg, key->key, key->keylen); key 3850 net/ipv4/tcp.c ahash_request_set_crypt(hp->md5_req, &sg, NULL, key->keylen); key 54 net/ipv4/tcp_cong.c struct tcp_congestion_ops *tcp_ca_find_key(u32 key) key 59 net/ipv4/tcp_cong.c if (e->key == key) key 81 net/ipv4/tcp_cong.c ca->key = jhash(ca->name, sizeof(ca->name), strlen(ca->name)); key 84 net/ipv4/tcp_cong.c if (ca->key == TCP_CA_UNSPEC || tcp_ca_find_key(ca->key)) { key 124 net/ipv4/tcp_cong.c u32 key = TCP_CA_UNSPEC; key 131 net/ipv4/tcp_cong.c key = ca->key; key 136 net/ipv4/tcp_cong.c return key; key 140 net/ipv4/tcp_cong.c char *tcp_ca_get_name_by_key(u32 key, char *buffer) key 146 net/ipv4/tcp_cong.c ca = tcp_ca_find_key(key); key 39 net/ipv4/tcp_diag.c const struct tcp_md5sig_key *key) key 41 net/ipv4/tcp_diag.c info->tcpm_family = key->family; key 42 net/ipv4/tcp_diag.c info->tcpm_prefixlen = key->prefixlen; key 43 net/ipv4/tcp_diag.c info->tcpm_keylen = key->keylen; key 44 net/ipv4/tcp_diag.c memcpy(info->tcpm_key, key->key, key->keylen); key 46 net/ipv4/tcp_diag.c if (key->family == AF_INET) key 47 net/ipv4/tcp_diag.c info->tcpm_addr[0] = key->addr.a4.s_addr; key 49 net/ipv4/tcp_diag.c else if (key->family == AF_INET6) key 50 net/ipv4/tcp_diag.c memcpy(&info->tcpm_addr, &key->addr.a6, key 58 net/ipv4/tcp_diag.c const struct tcp_md5sig_key *key; key 63 net/ipv4/tcp_diag.c hlist_for_each_entry_rcu(key, &md5sig->head, node) key 75 net/ipv4/tcp_diag.c hlist_for_each_entry_rcu(key, &md5sig->head, node) { key 76 net/ipv4/tcp_diag.c tcp_diag_md5sig_fill(info++, key); key 152 net/ipv4/tcp_diag.c const struct tcp_md5sig_key *key; key 158 net/ipv4/tcp_diag.c hlist_for_each_entry_rcu(key, &md5sig->head, node) key 15 net/ipv4/tcp_fastopen.c u8 key[TCP_FASTOPEN_KEY_LENGTH]; key 32 net/ipv4/tcp_fastopen.c get_random_bytes(key, sizeof(key)); key 33 net/ipv4/tcp_fastopen.c tcp_fastopen_reset_cipher(net, NULL, key, NULL); key 82 net/ipv4/tcp_fastopen.c ctx->key[0].key[0] = get_unaligned_le64(primary_key); key 83 net/ipv4/tcp_fastopen.c ctx->key[0].key[1] = get_unaligned_le64(primary_key + 8); key 85 net/ipv4/tcp_fastopen.c ctx->key[1].key[0] = get_unaligned_le64(backup_key); key 86 net/ipv4/tcp_fastopen.c ctx->key[1].key[1] = get_unaligned_le64(backup_key + 8); key 113 net/ipv4/tcp_fastopen.c const siphash_key_t *key, key 124 net/ipv4/tcp_fastopen.c key)); key 135 net/ipv4/tcp_fastopen.c key)); key 156 net/ipv4/tcp_fastopen.c __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[0], foc); key 220 net/ipv4/tcp_fastopen.c __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[i], foc); key 3632 net/ipv4/tcp_input.c if (static_branch_unlikely(&clean_acked_data_enabled.key)) key 86 net/ipv4/tcp_ipv4.c static int tcp_v4_md5_hash_hdr(char *md5_hash, const struct tcp_md5sig_key *key, key 662 net/ipv4/tcp_ipv4.c struct tcp_md5sig_key *key = NULL; key 706 net/ipv4/tcp_ipv4.c key = tcp_md5_do_lookup(sk, (union tcp_md5_addr *) key 725 net/ipv4/tcp_ipv4.c key = tcp_md5_do_lookup(sk1, (union tcp_md5_addr *) key 727 net/ipv4/tcp_ipv4.c if (!key) key 731 net/ipv4/tcp_ipv4.c genhash = tcp_v4_md5_hash_skb(newhash, key, NULL, skb); key 737 net/ipv4/tcp_ipv4.c if (key) { key 747 net/ipv4/tcp_ipv4.c key, ip_hdr(skb)->saddr, key 805 net/ipv4/tcp_ipv4.c struct tcp_md5sig_key *key, key 846 net/ipv4/tcp_ipv4.c if (key) { key 857 net/ipv4/tcp_ipv4.c key, ip_hdr(skb)->saddr, key 993 net/ipv4/tcp_ipv4.c struct tcp_md5sig_key *key; key 1005 net/ipv4/tcp_ipv4.c hlist_for_each_entry_rcu(key, &md5sig->head, node) { key 1006 net/ipv4/tcp_ipv4.c if (key->family != family) key 1010 net/ipv4/tcp_ipv4.c mask = inet_make_mask(key->prefixlen); key 1011 net/ipv4/tcp_ipv4.c match = (key->addr.a4.s_addr & mask) == key 1015 net/ipv4/tcp_ipv4.c match = ipv6_prefix_equal(&key->addr.a6, &addr->a6, key 1016 net/ipv4/tcp_ipv4.c key->prefixlen); key 1023 net/ipv4/tcp_ipv4.c key->prefixlen > best_match->prefixlen)) key 1024 net/ipv4/tcp_ipv4.c best_match = key; key 1035 net/ipv4/tcp_ipv4.c struct tcp_md5sig_key *key; key 1048 net/ipv4/tcp_ipv4.c hlist_for_each_entry_rcu(key, &md5sig->head, node) { key 1049 net/ipv4/tcp_ipv4.c if (key->family != family) key 1051 net/ipv4/tcp_ipv4.c if (!memcmp(&key->addr, addr, size) && key 1052 net/ipv4/tcp_ipv4.c key->prefixlen == prefixlen) key 1053 net/ipv4/tcp_ipv4.c return key; key 1074 net/ipv4/tcp_ipv4.c struct tcp_md5sig_key *key; key 1078 net/ipv4/tcp_ipv4.c key = tcp_md5_do_lookup_exact(sk, addr, family, prefixlen); key 1079 net/ipv4/tcp_ipv4.c if (key) { key 1081 net/ipv4/tcp_ipv4.c memcpy(key->key, newkey, newkeylen); key 1082 net/ipv4/tcp_ipv4.c key->keylen = newkeylen; key 1098 net/ipv4/tcp_ipv4.c key = sock_kmalloc(sk, sizeof(*key), gfp); key 1099 net/ipv4/tcp_ipv4.c if (!key) key 1102 net/ipv4/tcp_ipv4.c sock_kfree_s(sk, key, sizeof(*key)); key 1106 net/ipv4/tcp_ipv4.c memcpy(key->key, newkey, newkeylen); key 1107 net/ipv4/tcp_ipv4.c key->keylen = newkeylen; key 1108 net/ipv4/tcp_ipv4.c key->family = family; key 1109 net/ipv4/tcp_ipv4.c key->prefixlen = prefixlen; key 1110 net/ipv4/tcp_ipv4.c memcpy(&key->addr, addr, key 1113 net/ipv4/tcp_ipv4.c hlist_add_head_rcu(&key->node, &md5sig->head); key 1121 net/ipv4/tcp_ipv4.c struct tcp_md5sig_key *key; key 1123 net/ipv4/tcp_ipv4.c key = tcp_md5_do_lookup_exact(sk, addr, family, prefixlen); key 1124 net/ipv4/tcp_ipv4.c if (!key) key 1126 net/ipv4/tcp_ipv4.c hlist_del_rcu(&key->node); key 1127 net/ipv4/tcp_ipv4.c atomic_sub(sizeof(*key), &sk->sk_omem_alloc); key 1128 net/ipv4/tcp_ipv4.c kfree_rcu(key, rcu); key 1136 net/ipv4/tcp_ipv4.c struct tcp_md5sig_key *key; key 1142 net/ipv4/tcp_ipv4.c hlist_for_each_entry_safe(key, n, &md5sig->head, node) { key 1143 net/ipv4/tcp_ipv4.c hlist_del_rcu(&key->node); key 1144 net/ipv4/tcp_ipv4.c atomic_sub(sizeof(*key), &sk->sk_omem_alloc); key 1145 net/ipv4/tcp_ipv4.c kfree_rcu(key, rcu); key 1209 net/ipv4/tcp_ipv4.c static int tcp_v4_md5_hash_hdr(char *md5_hash, const struct tcp_md5sig_key *key, key 1224 net/ipv4/tcp_ipv4.c if (tcp_md5_hash_key(hp, key)) key 1240 net/ipv4/tcp_ipv4.c int tcp_v4_md5_hash_skb(char *md5_hash, const struct tcp_md5sig_key *key, key 1270 net/ipv4/tcp_ipv4.c if (tcp_md5_hash_key(hp, key)) key 1424 net/ipv4/tcp_ipv4.c struct tcp_md5sig_key *key; key 1473 net/ipv4/tcp_ipv4.c key = tcp_md5_do_lookup(sk, (union tcp_md5_addr *)&newinet->inet_daddr, key 1475 net/ipv4/tcp_ipv4.c if (key) { key 1483 net/ipv4/tcp_ipv4.c AF_INET, 32, key->key, key->keylen, GFP_ATOMIC); key 302 net/ipv4/tcp_minisocks.c struct tcp_md5sig_key *key; key 304 net/ipv4/tcp_minisocks.c key = tp->af_specific->md5_lookup(sk, sk); key 305 net/ipv4/tcp_minisocks.c if (key) { key 306 net/ipv4/tcp_minisocks.c tcptw->tw_md5_key = kmemdup(key, sizeof(*key), GFP_ATOMIC); key 218 net/ipv4/udp_tunnel.c info->key.tp_src = udp_hdr(skb)->source; key 219 net/ipv4/udp_tunnel.c info->key.tp_dst = udp_hdr(skb)->dest; key 221 net/ipv4/udp_tunnel.c info->key.tun_flags |= TUNNEL_CSUM; key 75 net/ipv6/calipso.c unsigned char *key; key 102 net/ipv6/calipso.c kfree(entry->key); key 115 net/ipv6/calipso.c static u32 calipso_map_cache_hash(const unsigned char *key, u32 key_len) key 117 net/ipv6/calipso.c return jhash(key, key_len, 0); key 196 net/ipv6/calipso.c static int calipso_cache_check(const unsigned char *key, key 208 net/ipv6/calipso.c hash = calipso_map_cache_hash(key, key_len); key 214 net/ipv6/calipso.c memcmp(entry->key, key, key_len) == 0) { key 278 net/ipv6/calipso.c entry->key = kmemdup(calipso_ptr + 2, calipso_ptr_len, GFP_ATOMIC); key 279 net/ipv6/calipso.c if (!entry->key) { key 761 net/ipv6/esp6.c char *key; key 801 net/ipv6/esp6.c key = kmalloc(keylen, GFP_KERNEL); key 802 net/ipv6/esp6.c if (!key) key 805 net/ipv6/esp6.c p = key; key 840 net/ipv6/esp6.c err = crypto_aead_setkey(aead, key, keylen); key 843 net/ipv6/esp6.c kfree(key); key 72 net/ipv6/ila/ila_xlat.c return (ila->xp.ip.locator_match.v64 != *(__be64 *)arg->key); key 695 net/ipv6/ip6_fib.c struct rt6key *key; key 708 net/ipv6/ip6_fib.c key = (struct rt6key *)((u8 *)leaf + offset); key 714 net/ipv6/ip6_fib.c !ipv6_prefix_equal(&key->addr, addr, fn->fn_bit)) { key 816 net/ipv6/ip6_fib.c bit = __ipv6_addr_diff(addr, &key->addr, sizeof(*addr)); key 885 net/ipv6/ip6_fib.c if (addr_bit_set(&key->addr, plen)) key 1511 net/ipv6/ip6_fib.c struct rt6key *key; key 1516 net/ipv6/ip6_fib.c key = (struct rt6key *) ((u8 *)leaf + args->offset); key 1518 net/ipv6/ip6_fib.c if (ipv6_prefix_equal(&key->addr, args->addr, key->plen)) { key 1594 net/ipv6/ip6_fib.c struct rt6key *key; key 1604 net/ipv6/ip6_fib.c key = (struct rt6key *)((u8 *)leaf + offset); key 1610 net/ipv6/ip6_fib.c !ipv6_prefix_equal(&key->addr, addr, fn->fn_bit)) key 100 net/ipv6/ip6_gre.c #define HASH_KEY(key) (((__force u32)key^((__force u32)key>>4))&(IP6_GRE_HASH_SIZE - 1)) key 117 net/ipv6/ip6_gre.c __be32 key, __be16 gre_proto) key 122 net/ipv6/ip6_gre.c unsigned int h1 = HASH_KEY(key); key 134 net/ipv6/ip6_gre.c key != t->parms.i_key || key 158 net/ipv6/ip6_gre.c key != t->parms.i_key || key 184 net/ipv6/ip6_gre.c key != t->parms.i_key || key 207 net/ipv6/ip6_gre.c if (t->parms.i_key != key || key 326 net/ipv6/ip6_gre.c __be32 key = parms->i_key; key 337 net/ipv6/ip6_gre.c key == t->parms.i_key && key 435 net/ipv6/ip6_gre.c tpi.key, tpi.proto); key 496 net/ipv6/ip6_gre.c &ipv6h->saddr, &ipv6h->daddr, tpi->key, key 505 net/ipv6/ip6_gre.c tun_id = key32_to_tunnel_id(tpi->key); key 537 net/ipv6/ip6_gre.c &ipv6h->saddr, &ipv6h->daddr, tpi->key, key 560 net/ipv6/ip6_gre.c tun_id = key32_to_tunnel_id(tpi->key); key 581 net/ipv6/ip6_gre.c info->key.tun_flags |= TUNNEL_ERSPAN_OPT; key 729 net/ipv6/ip6_gre.c const struct ip_tunnel_key *key; key 738 net/ipv6/ip6_gre.c key = &tun_info->key; key 741 net/ipv6/ip6_gre.c fl6->daddr = key->u.ipv6.dst; key 742 net/ipv6/ip6_gre.c fl6->flowlabel = key->label; key 745 net/ipv6/ip6_gre.c dsfield = key->tos; key 746 net/ipv6/ip6_gre.c flags = key->tun_flags & key 752 net/ipv6/ip6_gre.c tunnel_id_to_key32(tun_info->key.tun_id), key 963 net/ipv6/ip6_gre.c const struct ip_tunnel_key *key; key 973 net/ipv6/ip6_gre.c key = &tun_info->key; key 976 net/ipv6/ip6_gre.c fl6.daddr = key->u.ipv6.dst; key 977 net/ipv6/ip6_gre.c fl6.flowlabel = key->label; key 980 net/ipv6/ip6_gre.c dsfield = key->tos; key 981 net/ipv6/ip6_gre.c if (!(tun_info->key.tun_flags & TUNNEL_ERSPAN_OPT)) key 987 net/ipv6/ip6_gre.c tun_id = tunnel_id_to_key32(key->tun_id); key 1052 net/ipv6/ip6_tunnel.c hop_limit = skb_tunnel_info(skb)->key.ttl; key 1250 net/ipv6/ip6_tunnel.c const struct ip_tunnel_key *key; key 1256 net/ipv6/ip6_tunnel.c key = &tun_info->key; key 1259 net/ipv6/ip6_tunnel.c fl6.saddr = key->u.ipv6.src; key 1260 net/ipv6/ip6_tunnel.c fl6.daddr = key->u.ipv6.dst; key 1261 net/ipv6/ip6_tunnel.c fl6.flowlabel = key->label; key 1262 net/ipv6/ip6_tunnel.c dsfield = key->tos; key 1322 net/ipv6/ip6_tunnel.c const struct ip_tunnel_key *key; key 1328 net/ipv6/ip6_tunnel.c key = &tun_info->key; key 1331 net/ipv6/ip6_tunnel.c fl6.saddr = key->u.ipv6.src; key 1332 net/ipv6/ip6_tunnel.c fl6.daddr = key->u.ipv6.dst; key 1333 net/ipv6/ip6_tunnel.c fl6.flowlabel = key->label; key 1334 net/ipv6/ip6_tunnel.c dsfield = key->tos; key 341 net/ipv6/ip6mr.c const struct mfc6_cache_cmp_arg *cmparg = arg->key; key 372 net/ipv6/ndisc.c struct in6_addr *addr = (struct in6_addr *)&n->key; key 385 net/ipv6/ndisc.c struct in6_addr *addr = (struct in6_addr *)&n->key; key 152 net/ipv6/netfilter/nf_conntrack_reasm.c struct frag_v6_compare_key key = { key 161 net/ipv6/netfilter/nf_conntrack_reasm.c q = inet_frag_find(net->nf_frag.fqdir, &key); key 84 net/ipv6/reassembly.c struct frag_v6_compare_key key = { key 95 net/ipv6/reassembly.c key.iif = 0; key 97 net/ipv6/reassembly.c q = inet_frag_find(net->ipv6.fqdir, &key); key 2462 net/ipv6/route.c fl6.flowi6_tun_key.tun_id = tun_info->key.tun_id; key 51 net/ipv6/seg6_hmac.c return (hinfo->hmackeyid != *(__u32 *)arg->key); key 282 net/ipv6/seg6_hmac.c struct seg6_hmac_info *seg6_hmac_info_lookup(struct net *net, u32 key) key 287 net/ipv6/seg6_hmac.c hinfo = rhashtable_lookup_fast(&sdata->hmac_infos, &key, rht_params); key 293 net/ipv6/seg6_hmac.c int seg6_hmac_info_add(struct net *net, u32 key, struct seg6_hmac_info *hinfo) key 305 net/ipv6/seg6_hmac.c int seg6_hmac_info_del(struct net *net, u32 key) key 311 net/ipv6/seg6_hmac.c hinfo = rhashtable_lookup_fast(&sdata->hmac_infos, &key, rht_params); key 619 net/ipv6/tcp_ipv6.c static int tcp_v6_md5_hash_hdr(char *md5_hash, const struct tcp_md5sig_key *key, key 635 net/ipv6/tcp_ipv6.c if (tcp_md5_hash_key(hp, key)) key 652 net/ipv6/tcp_ipv6.c const struct tcp_md5sig_key *key, key 682 net/ipv6/tcp_ipv6.c if (tcp_md5_hash_key(hp, key)) key 807 net/ipv6/tcp_ipv6.c int oif, struct tcp_md5sig_key *key, int rst, key 824 net/ipv6/tcp_ipv6.c if (key) key 859 net/ipv6/tcp_ipv6.c if (key) { key 862 net/ipv6/tcp_ipv6.c tcp_v6_md5_hash_hdr((__u8 *)topt, key, key 928 net/ipv6/tcp_ipv6.c struct tcp_md5sig_key *key = NULL; key 954 net/ipv6/tcp_ipv6.c key = tcp_v6_md5_do_lookup(sk, &ipv6h->saddr); key 973 net/ipv6/tcp_ipv6.c key = tcp_v6_md5_do_lookup(sk1, &ipv6h->saddr); key 974 net/ipv6/tcp_ipv6.c if (!key) key 977 net/ipv6/tcp_ipv6.c genhash = tcp_v6_md5_hash_skb(newhash, key, NULL, skb); key 1008 net/ipv6/tcp_ipv6.c tcp_v6_send_response(sk, skb, seq, ack_seq, 0, 0, 0, oif, key, 1, 0, key 1019 net/ipv6/tcp_ipv6.c struct tcp_md5sig_key *key, u8 tclass, key 1022 net/ipv6/tcp_ipv6.c tcp_v6_send_response(sk, skb, seq, ack, win, tsval, tsecr, oif, key, 0, key 1128 net/ipv6/tcp_ipv6.c struct tcp_md5sig_key *key; key 1273 net/ipv6/tcp_ipv6.c key = tcp_v6_md5_do_lookup(sk, &newsk->sk_v6_daddr); key 1274 net/ipv6/tcp_ipv6.c if (key) { key 1281 net/ipv6/tcp_ipv6.c AF_INET6, 128, key->key, key->keylen, key 426 net/key/af_key.c static inline int sadb_key_len(const struct sadb_key *key) key 428 net/key/af_key.c int key_bytes = DIV_ROUND_UP(key->sadb_key_bits, 8); key 436 net/key/af_key.c const struct sadb_key *key = p; key 438 net/key/af_key.c if (sadb_key_len(key) > key->sadb_key_len) key 772 net/key/af_key.c struct sadb_key *key; key 968 net/key/af_key.c key = skb_put(skb, sizeof(struct sadb_key) + auth_key_size); key 969 net/key/af_key.c key->sadb_key_len = (sizeof(struct sadb_key) + auth_key_size) / key 971 net/key/af_key.c key->sadb_key_exttype = SADB_EXT_KEY_AUTH; key 972 net/key/af_key.c key->sadb_key_bits = x->aalg->alg_key_len; key 973 net/key/af_key.c key->sadb_key_reserved = 0; key 974 net/key/af_key.c memcpy(key + 1, x->aalg->alg_key, (x->aalg->alg_key_len+7)/8); key 978 net/key/af_key.c key = skb_put(skb, sizeof(struct sadb_key) + encrypt_key_size); key 979 net/key/af_key.c key->sadb_key_len = (sizeof(struct sadb_key) + key 981 net/key/af_key.c key->sadb_key_exttype = SADB_EXT_KEY_ENCRYPT; key 982 net/key/af_key.c key->sadb_key_bits = x->ealg->alg_key_len; key 983 net/key/af_key.c key->sadb_key_reserved = 0; key 984 net/key/af_key.c memcpy(key + 1, x->ealg->alg_key, key 1070 net/key/af_key.c const struct sadb_key *key; key 1115 net/key/af_key.c key = ext_hdrs[SADB_EXT_KEY_AUTH - 1]; key 1116 net/key/af_key.c if (key != NULL && key 1118 net/key/af_key.c key->sadb_key_bits == 0) key 1120 net/key/af_key.c key = ext_hdrs[SADB_EXT_KEY_ENCRYPT-1]; key 1121 net/key/af_key.c if (key != NULL && key 1123 net/key/af_key.c key->sadb_key_bits == 0) key 1171 net/key/af_key.c key = ext_hdrs[SADB_EXT_KEY_AUTH - 1]; key 1179 net/key/af_key.c if (key) key 1180 net/key/af_key.c keysize = (key->sadb_key_bits + 7) / 8; key 1188 net/key/af_key.c if (key) { key 1189 net/key/af_key.c x->aalg->alg_key_len = key->sadb_key_bits; key 1190 net/key/af_key.c memcpy(x->aalg->alg_key, key+1, keysize); key 1217 net/key/af_key.c key = (struct sadb_key*) ext_hdrs[SADB_EXT_KEY_ENCRYPT-1]; key 1218 net/key/af_key.c if (key) key 1219 net/key/af_key.c keysize = (key->sadb_key_bits + 7) / 8; key 1227 net/key/af_key.c if (key) { key 1228 net/key/af_key.c x->ealg->alg_key_len = key->sadb_key_bits; key 1229 net/key/af_key.c memcpy(x->ealg->alg_key, key+1, keysize); key 85 net/mac80211/aead_api.c aead_key_setup_encrypt(const char *alg, const u8 key[], key 95 net/mac80211/aead_api.c err = crypto_aead_setkey(tfm, key, key_len); key 10 net/mac80211/aead_api.h aead_key_setup_encrypt(const char *alg, const u8 key[], key 15 net/mac80211/aes_ccm.h ieee80211_aes_key_setup_encrypt(const u8 key[], size_t key_len, size_t mic_len) key 17 net/mac80211/aes_ccm.h return aead_key_setup_encrypt("ccm(aes)", key, key_len, mic_len); key 53 net/mac80211/aes_cmac.c struct crypto_shash *ieee80211_aes_cmac_key_setup(const u8 key[], key 60 net/mac80211/aes_cmac.c crypto_shash_setkey(tfm, key, key_len); key 12 net/mac80211/aes_cmac.h struct crypto_shash *ieee80211_aes_cmac_key_setup(const u8 key[], key 32 net/mac80211/aes_gcm.h ieee80211_aes_gcm_key_setup_encrypt(const u8 key[], size_t key_len) key 34 net/mac80211/aes_gcm.h return aead_key_setup_encrypt("gcm(aes)", key, key 56 net/mac80211/aes_gmac.c struct crypto_aead *ieee80211_aes_gmac_key_setup(const u8 key[], key 66 net/mac80211/aes_gmac.c err = crypto_aead_setkey(tfm, key, key_len); key 15 net/mac80211/aes_gmac.h struct crypto_aead *ieee80211_aes_gmac_key_setup(const u8 key[], key 359 net/mac80211/cfg.c struct ieee80211_key *key; key 376 net/mac80211/cfg.c key = key_mtx_dereference(local, sta->ptk[key_idx]); key 378 net/mac80211/cfg.c if (key && key->conf.flags & IEEE80211_KEY_FLAG_NO_AUTO_TX) key 379 net/mac80211/cfg.c ret = ieee80211_set_tx_key(key); key 393 net/mac80211/cfg.c struct ieee80211_key *key; key 423 net/mac80211/cfg.c key = ieee80211_key_alloc(params->cipher, key_idx, params->key_len, key 424 net/mac80211/cfg.c params->key, params->seq_len, params->seq, key 426 net/mac80211/cfg.c if (IS_ERR(key)) key 427 net/mac80211/cfg.c return PTR_ERR(key); key 430 net/mac80211/cfg.c key->conf.flags |= IEEE80211_KEY_FLAG_PAIRWISE; key 433 net/mac80211/cfg.c key->conf.flags |= IEEE80211_KEY_FLAG_NO_AUTO_TX; key 450 net/mac80211/cfg.c ieee80211_key_free_unused(key); key 459 net/mac80211/cfg.c key->conf.flags |= IEEE80211_KEY_FLAG_RX_MGMT; key 465 net/mac80211/cfg.c key->conf.flags |= IEEE80211_KEY_FLAG_RX_MGMT; key 473 net/mac80211/cfg.c key->conf.flags |= IEEE80211_KEY_FLAG_RX_MGMT; key 493 net/mac80211/cfg.c err = ieee80211_key_link(key, sdata, sta); key 507 net/mac80211/cfg.c struct ieee80211_key *key = NULL; key 521 net/mac80211/cfg.c key = key_mtx_dereference(local, sta->ptk[key_idx]); key 523 net/mac80211/cfg.c key = key_mtx_dereference(local, sta->gtk[key_idx]); key 525 net/mac80211/cfg.c key = key_mtx_dereference(local, sdata->keys[key_idx]); key 527 net/mac80211/cfg.c if (!key) { key 532 net/mac80211/cfg.c ieee80211_key_free(key, sdata->vif.type == NL80211_IFTYPE_STATION); key 552 net/mac80211/cfg.c struct ieee80211_key *key = NULL; key 569 net/mac80211/cfg.c key = rcu_dereference(sta->ptk[key_idx]); key 572 net/mac80211/cfg.c key = rcu_dereference(sta->gtk[key_idx]); key 574 net/mac80211/cfg.c key = rcu_dereference(sdata->keys[key_idx]); key 576 net/mac80211/cfg.c if (!key) key 581 net/mac80211/cfg.c params.cipher = key->conf.cipher; key 583 net/mac80211/cfg.c switch (key->conf.cipher) { key 585 net/mac80211/cfg.c pn64 = atomic64_read(&key->conf.tx_pn); key 589 net/mac80211/cfg.c if (key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE && key 590 net/mac80211/cfg.c !(key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_IV)) { key 591 net/mac80211/cfg.c drv_get_key_seq(sdata->local, key, &kseq); key 622 net/mac80211/cfg.c if (key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE && key 623 net/mac80211/cfg.c !(key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_IV)) { key 624 net/mac80211/cfg.c drv_get_key_seq(sdata->local, key, &kseq); key 627 net/mac80211/cfg.c pn64 = atomic64_read(&key->conf.tx_pn); key 639 net/mac80211/cfg.c if (!(key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE)) key 641 net/mac80211/cfg.c if (WARN_ON(key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_IV)) key 643 net/mac80211/cfg.c drv_get_key_seq(sdata->local, key, &kseq); key 649 net/mac80211/cfg.c params.key = key->conf.key; key 650 net/mac80211/cfg.c params.key_len = key->conf.keylen; key 21 net/mac80211/debugfs_key.c struct ieee80211_key *key = file->private_data; \ key 23 net/mac80211/debugfs_key.c format_string, key->prop); \ key 74 net/mac80211/debugfs_key.c struct ieee80211_key *key = file->private_data; key 75 net/mac80211/debugfs_key.c u32 c = key->conf.cipher; key 86 net/mac80211/debugfs_key.c struct ieee80211_key *key = file->private_data; key 90 net/mac80211/debugfs_key.c switch (key->conf.cipher) { key 111 net/mac80211/debugfs_key.c atomic64_set(&key->conf.tx_pn, pn); key 124 net/mac80211/debugfs_key.c struct ieee80211_key *key = file->private_data; key 126 net/mac80211/debugfs_key.c switch (key->conf.cipher) { key 132 net/mac80211/debugfs_key.c pn = atomic64_read(&key->conf.tx_pn); key 145 net/mac80211/debugfs_key.c pn = atomic64_read(&key->conf.tx_pn); key 160 net/mac80211/debugfs_key.c struct ieee80211_key *key = file->private_data; key 165 net/mac80211/debugfs_key.c switch (key->conf.cipher) { key 174 net/mac80211/debugfs_key.c key->u.tkip.rx[i].iv32, key 175 net/mac80211/debugfs_key.c key->u.tkip.rx[i].iv16); key 181 net/mac80211/debugfs_key.c rpn = key->u.ccmp.rx_pn[i]; key 191 net/mac80211/debugfs_key.c rpn = key->u.aes_cmac.rx_pn; key 200 net/mac80211/debugfs_key.c rpn = key->u.aes_gmac.rx_pn; key 210 net/mac80211/debugfs_key.c rpn = key->u.gcmp.rx_pn[i]; key 228 net/mac80211/debugfs_key.c struct ieee80211_key *key = file->private_data; key 232 net/mac80211/debugfs_key.c switch (key->conf.cipher) { key 235 net/mac80211/debugfs_key.c len = scnprintf(buf, sizeof(buf), "%u\n", key->u.ccmp.replays); key 240 net/mac80211/debugfs_key.c key->u.aes_cmac.replays); key 245 net/mac80211/debugfs_key.c key->u.aes_gmac.replays); key 249 net/mac80211/debugfs_key.c len = scnprintf(buf, sizeof(buf), "%u\n", key->u.gcmp.replays); key 261 net/mac80211/debugfs_key.c struct ieee80211_key *key = file->private_data; key 265 net/mac80211/debugfs_key.c switch (key->conf.cipher) { key 269 net/mac80211/debugfs_key.c key->u.aes_cmac.icverrors); key 274 net/mac80211/debugfs_key.c key->u.aes_gmac.icverrors); key 286 net/mac80211/debugfs_key.c struct ieee80211_key *key = file->private_data; key 290 net/mac80211/debugfs_key.c if (key->conf.cipher != WLAN_CIPHER_SUITE_TKIP) key 293 net/mac80211/debugfs_key.c len = scnprintf(buf, sizeof(buf), "%u\n", key->u.tkip.mic_failures); key 302 net/mac80211/debugfs_key.c struct ieee80211_key *key = file->private_data; key 303 net/mac80211/debugfs_key.c int i, bufsize = 2 * key->conf.keylen + 2; key 311 net/mac80211/debugfs_key.c for (i = 0; i < key->conf.keylen; i++) key 312 net/mac80211/debugfs_key.c p += scnprintf(p, bufsize + buf - p, "%02x", key->conf.key[i]); key 318 net/mac80211/debugfs_key.c KEY_OPS(key); key 321 net/mac80211/debugfs_key.c debugfs_create_file(#name, 0400, key->debugfs.dir, \ key 322 net/mac80211/debugfs_key.c key, &key_##name##_ops); key 324 net/mac80211/debugfs_key.c debugfs_create_file(#name, 0600, key->debugfs.dir, \ key 325 net/mac80211/debugfs_key.c key, &key_##name##_ops); key 327 net/mac80211/debugfs_key.c void ieee80211_debugfs_key_add(struct ieee80211_key *key) key 333 net/mac80211/debugfs_key.c if (!key->local->debugfs.keys) key 337 net/mac80211/debugfs_key.c key->debugfs.cnt = keycount; key 339 net/mac80211/debugfs_key.c key->debugfs.dir = debugfs_create_dir(buf, key 340 net/mac80211/debugfs_key.c key->local->debugfs.keys); key 342 net/mac80211/debugfs_key.c sta = key->sta; key 346 net/mac80211/debugfs_key.c key->debugfs.stalink = key 347 net/mac80211/debugfs_key.c debugfs_create_symlink("station", key->debugfs.dir, buf); key 360 net/mac80211/debugfs_key.c DEBUGFS_ADD(key); key 364 net/mac80211/debugfs_key.c void ieee80211_debugfs_key_remove(struct ieee80211_key *key) key 366 net/mac80211/debugfs_key.c if (!key) key 369 net/mac80211/debugfs_key.c debugfs_remove_recursive(key->debugfs.dir); key 370 net/mac80211/debugfs_key.c key->debugfs.dir = NULL; key 376 net/mac80211/debugfs_key.c struct ieee80211_key *key; key 387 net/mac80211/debugfs_key.c key = key_mtx_dereference(sdata->local, key 389 net/mac80211/debugfs_key.c sprintf(buf, "../keys/%d", key->debugfs.cnt); key 399 net/mac80211/debugfs_key.c key = key_mtx_dereference(sdata->local, key 401 net/mac80211/debugfs_key.c sprintf(buf, "../keys/%d", key->debugfs.cnt); key 411 net/mac80211/debugfs_key.c struct ieee80211_key *key; key 416 net/mac80211/debugfs_key.c key = key_mtx_dereference(sdata->local, key 418 net/mac80211/debugfs_key.c if (key) { key 419 net/mac80211/debugfs_key.c sprintf(buf, "../keys/%d", key->debugfs.cnt); key 436 net/mac80211/debugfs_key.c void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key, key 439 net/mac80211/debugfs_key.c debugfs_remove(key->debugfs.stalink); key 440 net/mac80211/debugfs_key.c key->debugfs.stalink = NULL; key 6 net/mac80211/debugfs_key.h void ieee80211_debugfs_key_add(struct ieee80211_key *key); key 7 net/mac80211/debugfs_key.h void ieee80211_debugfs_key_remove(struct ieee80211_key *key); key 13 net/mac80211/debugfs_key.h void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key, key 16 net/mac80211/debugfs_key.h static inline void ieee80211_debugfs_key_add(struct ieee80211_key *key) key 18 net/mac80211/debugfs_key.h static inline void ieee80211_debugfs_key_remove(struct ieee80211_key *key) key 29 net/mac80211/debugfs_key.h static inline void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key, key 242 net/mac80211/driver-ops.h struct ieee80211_key_conf *key) key 252 net/mac80211/driver-ops.h trace_drv_set_key(local, cmd, sdata, sta, key); key 253 net/mac80211/driver-ops.h ret = local->ops->set_key(&local->hw, cmd, &sdata->vif, sta, key); key 385 net/mac80211/driver-ops.h struct ieee80211_key *key, key 389 net/mac80211/driver-ops.h local->ops->get_key_seq(&local->hw, &key->conf, seq); key 390 net/mac80211/driver-ops.h trace_drv_get_key_seq(local, &key->conf); key 66 net/mac80211/fils_aead.c static int aes_siv_encrypt(const u8 *key, size_t key_len, key 91 net/mac80211/fils_aead.c res = crypto_shash_setkey(tfm, key, key_len); key 122 net/mac80211/fils_aead.c res = crypto_skcipher_setkey(tfm2, key + key_len, key_len); key 144 net/mac80211/fils_aead.c static int aes_siv_decrypt(const u8 *key, size_t key_len, key 179 net/mac80211/fils_aead.c res = crypto_skcipher_setkey(tfm2, key + key_len, key_len); key 206 net/mac80211/fils_aead.c res = crypto_shash_setkey(tfm, key, key_len); key 175 net/mac80211/ieee80211_i.h struct ieee80211_key *key; key 224 net/mac80211/ieee80211_i.h struct ieee80211_key *key; key 374 net/mac80211/ieee80211_i.h u8 key[WLAN_KEY_LEN_WEP104]; key 2099 net/mac80211/ieee80211_i.h const u8 *da, const u8 *key, u8 key_len, u8 key_idx, key 125 net/mac80211/key.c static int ieee80211_key_enable_hw_accel(struct ieee80211_key *key) key 127 net/mac80211/key.c struct ieee80211_sub_if_data *sdata = key->sdata; key 133 net/mac80211/key.c if (key->flags & KEY_FLAG_TAINTED) { key 141 net/mac80211/key.c if (key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE && key 142 net/mac80211/key.c !(key->conf.flags & (IEEE80211_KEY_FLAG_GENERATE_MMIC | key 147 net/mac80211/key.c key->flags &= ~KEY_FLAG_UPLOADED_TO_HARDWARE; key 151 net/mac80211/key.c if (!key->local->ops->set_key) key 154 net/mac80211/key.c assert_key_lock(key->local); key 156 net/mac80211/key.c sta = key->sta; key 162 net/mac80211/key.c if (sta && !(key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE) && key 163 net/mac80211/key.c !ieee80211_hw_check(&key->local->hw, SUPPORTS_PER_STA_GTK)) key 174 net/mac80211/key.c if (!(key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE)) { key 180 net/mac80211/key.c ret = drv_set_key(key->local, SET_KEY, sdata, key 181 net/mac80211/key.c sta ? &sta->sta : NULL, &key->conf); key 184 net/mac80211/key.c key->flags |= KEY_FLAG_UPLOADED_TO_HARDWARE; key 186 net/mac80211/key.c if (!(key->conf.flags & (IEEE80211_KEY_FLAG_GENERATE_MMIC | key 191 net/mac80211/key.c WARN_ON((key->conf.flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE) && key 192 net/mac80211/key.c (key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_IV)); key 194 net/mac80211/key.c WARN_ON((key->conf.flags & IEEE80211_KEY_FLAG_PUT_MIC_SPACE) && key 195 net/mac80211/key.c (key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_MMIC)); key 203 net/mac80211/key.c key->conf.keyidx, key 207 net/mac80211/key.c switch (key->conf.cipher) { key 222 net/mac80211/key.c if (ieee80211_hw_check(&key->local->hw, SW_CRYPTO_CONTROL)) key 230 net/mac80211/key.c static void ieee80211_key_disable_hw_accel(struct ieee80211_key *key) key 238 net/mac80211/key.c if (!key || !key->local->ops->set_key) key 241 net/mac80211/key.c assert_key_lock(key->local); key 243 net/mac80211/key.c if (!(key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE)) key 246 net/mac80211/key.c sta = key->sta; key 247 net/mac80211/key.c sdata = key->sdata; key 249 net/mac80211/key.c if (!(key->conf.flags & (IEEE80211_KEY_FLAG_GENERATE_MMIC | key 254 net/mac80211/key.c key->flags &= ~KEY_FLAG_UPLOADED_TO_HARDWARE; key 255 net/mac80211/key.c ret = drv_set_key(key->local, DISABLE_KEY, sdata, key 256 net/mac80211/key.c sta ? &sta->sta : NULL, &key->conf); key 261 net/mac80211/key.c key->conf.keyidx, key 265 net/mac80211/key.c static int _ieee80211_set_tx_key(struct ieee80211_key *key, bool force) key 267 net/mac80211/key.c struct sta_info *sta = key->sta; key 268 net/mac80211/key.c struct ieee80211_local *local = key->local; key 274 net/mac80211/key.c sta->ptk_idx = key->conf.keyidx; key 283 net/mac80211/key.c int ieee80211_set_tx_key(struct ieee80211_key *key) key 285 net/mac80211/key.c return _ieee80211_set_tx_key(key, false); key 350 net/mac80211/key.c struct ieee80211_key *key = NULL; key 355 net/mac80211/key.c key = key_mtx_dereference(sdata->local, sdata->keys[idx]); key 358 net/mac80211/key.c rcu_assign_pointer(sdata->default_unicast_key, key); key 365 net/mac80211/key.c rcu_assign_pointer(sdata->default_multicast_key, key); key 381 net/mac80211/key.c struct ieee80211_key *key = NULL; key 387 net/mac80211/key.c key = key_mtx_dereference(sdata->local, sdata->keys[idx]); key 389 net/mac80211/key.c rcu_assign_pointer(sdata->default_mgmt_key, key); key 504 net/mac80211/key.c struct ieee80211_key *key; key 510 net/mac80211/key.c key = kzalloc(sizeof(struct ieee80211_key) + key_len, GFP_KERNEL); key 511 net/mac80211/key.c if (!key) key 518 net/mac80211/key.c key->conf.flags = 0; key 519 net/mac80211/key.c key->flags = 0; key 521 net/mac80211/key.c key->conf.cipher = cipher; key 522 net/mac80211/key.c key->conf.keyidx = idx; key 523 net/mac80211/key.c key->conf.keylen = key_len; key 527 net/mac80211/key.c key->conf.iv_len = IEEE80211_WEP_IV_LEN; key 528 net/mac80211/key.c key->conf.icv_len = IEEE80211_WEP_ICV_LEN; key 531 net/mac80211/key.c key->conf.iv_len = IEEE80211_TKIP_IV_LEN; key 532 net/mac80211/key.c key->conf.icv_len = IEEE80211_TKIP_ICV_LEN; key 535 net/mac80211/key.c key->u.tkip.rx[i].iv32 = key 537 net/mac80211/key.c key->u.tkip.rx[i].iv16 = key 541 net/mac80211/key.c spin_lock_init(&key->u.tkip.txlock); key 544 net/mac80211/key.c key->conf.iv_len = IEEE80211_CCMP_HDR_LEN; key 545 net/mac80211/key.c key->conf.icv_len = IEEE80211_CCMP_MIC_LEN; key 549 net/mac80211/key.c key->u.ccmp.rx_pn[i][j] = key 556 net/mac80211/key.c key->u.ccmp.tfm = ieee80211_aes_key_setup_encrypt( key 558 net/mac80211/key.c if (IS_ERR(key->u.ccmp.tfm)) { key 559 net/mac80211/key.c err = PTR_ERR(key->u.ccmp.tfm); key 560 net/mac80211/key.c kfree(key); key 565 net/mac80211/key.c key->conf.iv_len = IEEE80211_CCMP_256_HDR_LEN; key 566 net/mac80211/key.c key->conf.icv_len = IEEE80211_CCMP_256_MIC_LEN; key 569 net/mac80211/key.c key->u.ccmp.rx_pn[i][j] = key 574 net/mac80211/key.c key->u.ccmp.tfm = ieee80211_aes_key_setup_encrypt( key 576 net/mac80211/key.c if (IS_ERR(key->u.ccmp.tfm)) { key 577 net/mac80211/key.c err = PTR_ERR(key->u.ccmp.tfm); key 578 net/mac80211/key.c kfree(key); key 584 net/mac80211/key.c key->conf.iv_len = 0; key 586 net/mac80211/key.c key->conf.icv_len = sizeof(struct ieee80211_mmie); key 588 net/mac80211/key.c key->conf.icv_len = sizeof(struct ieee80211_mmie_16); key 591 net/mac80211/key.c key->u.aes_cmac.rx_pn[j] = key 597 net/mac80211/key.c key->u.aes_cmac.tfm = key 599 net/mac80211/key.c if (IS_ERR(key->u.aes_cmac.tfm)) { key 600 net/mac80211/key.c err = PTR_ERR(key->u.aes_cmac.tfm); key 601 net/mac80211/key.c kfree(key); key 607 net/mac80211/key.c key->conf.iv_len = 0; key 608 net/mac80211/key.c key->conf.icv_len = sizeof(struct ieee80211_mmie_16); key 611 net/mac80211/key.c key->u.aes_gmac.rx_pn[j] = key 616 net/mac80211/key.c key->u.aes_gmac.tfm = key 618 net/mac80211/key.c if (IS_ERR(key->u.aes_gmac.tfm)) { key 619 net/mac80211/key.c err = PTR_ERR(key->u.aes_gmac.tfm); key 620 net/mac80211/key.c kfree(key); key 626 net/mac80211/key.c key->conf.iv_len = IEEE80211_GCMP_HDR_LEN; key 627 net/mac80211/key.c key->conf.icv_len = IEEE80211_GCMP_MIC_LEN; key 630 net/mac80211/key.c key->u.gcmp.rx_pn[i][j] = key 635 net/mac80211/key.c key->u.gcmp.tfm = ieee80211_aes_gcm_key_setup_encrypt(key_data, key 637 net/mac80211/key.c if (IS_ERR(key->u.gcmp.tfm)) { key 638 net/mac80211/key.c err = PTR_ERR(key->u.gcmp.tfm); key 639 net/mac80211/key.c kfree(key); key 646 net/mac80211/key.c kfree(key); key 650 net/mac80211/key.c key->conf.iv_len = cs->hdr_len; key 651 net/mac80211/key.c key->conf.icv_len = cs->mic_len; key 654 net/mac80211/key.c key->u.gen.rx_pn[i][j] = key 656 net/mac80211/key.c key->flags |= KEY_FLAG_CIPHER_SCHEME; key 659 net/mac80211/key.c memcpy(key->conf.key, key_data, key_len); key 660 net/mac80211/key.c INIT_LIST_HEAD(&key->list); key 662 net/mac80211/key.c return key; key 665 net/mac80211/key.c static void ieee80211_key_free_common(struct ieee80211_key *key) key 667 net/mac80211/key.c switch (key->conf.cipher) { key 670 net/mac80211/key.c ieee80211_aes_key_free(key->u.ccmp.tfm); key 674 net/mac80211/key.c ieee80211_aes_cmac_key_free(key->u.aes_cmac.tfm); key 678 net/mac80211/key.c ieee80211_aes_gmac_key_free(key->u.aes_gmac.tfm); key 682 net/mac80211/key.c ieee80211_aes_gcm_key_free(key->u.gcmp.tfm); key 685 net/mac80211/key.c kzfree(key); key 688 net/mac80211/key.c static void __ieee80211_key_destroy(struct ieee80211_key *key, key 691 net/mac80211/key.c if (key->local) { key 692 net/mac80211/key.c struct ieee80211_sub_if_data *sdata = key->sdata; key 694 net/mac80211/key.c ieee80211_debugfs_key_remove(key); key 706 net/mac80211/key.c ieee80211_key_free_common(key); key 709 net/mac80211/key.c static void ieee80211_key_destroy(struct ieee80211_key *key, key 712 net/mac80211/key.c if (!key) key 721 net/mac80211/key.c __ieee80211_key_destroy(key, delay_tailroom); key 724 net/mac80211/key.c void ieee80211_key_free_unused(struct ieee80211_key *key) key 726 net/mac80211/key.c WARN_ON(key->sdata || key->local); key 727 net/mac80211/key.c ieee80211_key_free_common(key); key 740 net/mac80211/key.c tk_old = old->conf.key; key 741 net/mac80211/key.c tk_new = new->conf.key; key 763 net/mac80211/key.c int ieee80211_key_link(struct ieee80211_key *key, key 768 net/mac80211/key.c int idx = key->conf.keyidx; key 769 net/mac80211/key.c bool pairwise = key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE; key 789 net/mac80211/key.c if ((alt_key && alt_key->conf.cipher != key->conf.cipher) || key 790 net/mac80211/key.c (old_key && old_key->conf.cipher != key->conf.cipher)) key 800 net/mac80211/key.c if (old_key && old_key->conf.cipher != key->conf.cipher) key 808 net/mac80211/key.c if (ieee80211_key_identical(sdata, old_key, key)) { key 809 net/mac80211/key.c ieee80211_key_free_unused(key); key 814 net/mac80211/key.c key->local = sdata->local; key 815 net/mac80211/key.c key->sdata = sdata; key 816 net/mac80211/key.c key->sta = sta; key 820 net/mac80211/key.c ret = ieee80211_key_replace(sdata, sta, pairwise, old_key, key); key 823 net/mac80211/key.c ieee80211_debugfs_key_add(key); key 826 net/mac80211/key.c ieee80211_key_free(key, delay_tailroom); key 835 net/mac80211/key.c void ieee80211_key_free(struct ieee80211_key *key, bool delay_tailroom) key 837 net/mac80211/key.c if (!key) key 843 net/mac80211/key.c if (key->sdata) key 844 net/mac80211/key.c ieee80211_key_replace(key->sdata, key->sta, key 845 net/mac80211/key.c key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE, key 846 net/mac80211/key.c key, NULL); key 847 net/mac80211/key.c ieee80211_key_destroy(key, delay_tailroom); key 852 net/mac80211/key.c struct ieee80211_key *key; key 870 net/mac80211/key.c list_for_each_entry(key, &sdata->key_list, list) { key 872 net/mac80211/key.c ieee80211_key_enable_hw_accel(key); key 884 net/mac80211/key.c struct ieee80211_key_conf *key, key 889 net/mac80211/key.c struct ieee80211_key *key, *tmp; key 897 net/mac80211/key.c list_for_each_entry_safe(key, tmp, &sdata->key_list, list) key 899 net/mac80211/key.c key->sta ? &key->sta->sta : NULL, key 900 net/mac80211/key.c &key->conf, iter_data); key 903 net/mac80211/key.c list_for_each_entry_safe(key, tmp, key 906 net/mac80211/key.c key->sta ? &key->sta->sta : NULL, key 907 net/mac80211/key.c &key->conf, iter_data); key 919 net/mac80211/key.c struct ieee80211_key_conf *key, key 923 net/mac80211/key.c struct ieee80211_key *key; key 925 net/mac80211/key.c list_for_each_entry_rcu(key, &sdata->key_list, list) { key 927 net/mac80211/key.c if (key->sta && key->sta->removed) key 929 net/mac80211/key.c if (!(key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE)) key 933 net/mac80211/key.c key->sta ? &key->sta->sta : NULL, key 934 net/mac80211/key.c &key->conf, iter_data); key 943 net/mac80211/key.c struct ieee80211_key_conf *key, key 963 net/mac80211/key.c struct ieee80211_key *key, *tmp; key 971 net/mac80211/key.c list_for_each_entry_safe(key, tmp, &sdata->key_list, list) { key 972 net/mac80211/key.c ieee80211_key_replace(key->sdata, key->sta, key 973 net/mac80211/key.c key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE, key 974 net/mac80211/key.c key, NULL); key 975 net/mac80211/key.c list_add_tail(&key->list, keys); key 987 net/mac80211/key.c struct ieee80211_key *key, *tmp; key 1003 net/mac80211/key.c list_for_each_entry_safe(key, tmp, &keys, list) key 1004 net/mac80211/key.c __ieee80211_key_destroy(key, false); key 1032 net/mac80211/key.c struct ieee80211_key *key; key 1037 net/mac80211/key.c key = key_mtx_dereference(local, sta->gtk[i]); key 1038 net/mac80211/key.c if (!key) key 1040 net/mac80211/key.c ieee80211_key_replace(key->sdata, key->sta, key 1041 net/mac80211/key.c key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE, key 1042 net/mac80211/key.c key, NULL); key 1043 net/mac80211/key.c __ieee80211_key_destroy(key, key->sdata->vif.type == key 1048 net/mac80211/key.c key = key_mtx_dereference(local, sta->ptk[i]); key 1049 net/mac80211/key.c if (!key) key 1051 net/mac80211/key.c ieee80211_key_replace(key->sdata, key->sta, key 1052 net/mac80211/key.c key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE, key 1053 net/mac80211/key.c key, NULL); key 1054 net/mac80211/key.c __ieee80211_key_destroy(key, key->sdata->vif.type == key 1105 net/mac80211/key.c struct ieee80211_key *key; key 1108 net/mac80211/key.c key = container_of(keyconf, struct ieee80211_key, conf); key 1110 net/mac80211/key.c switch (key->conf.cipher) { key 1114 net/mac80211/key.c seq->tkip.iv32 = key->u.tkip.rx[tid].iv32; key 1115 net/mac80211/key.c seq->tkip.iv16 = key->u.tkip.rx[tid].iv16; key 1122 net/mac80211/key.c pn = key->u.ccmp.rx_pn[IEEE80211_NUM_TIDS]; key 1124 net/mac80211/key.c pn = key->u.ccmp.rx_pn[tid]; key 1131 net/mac80211/key.c pn = key->u.aes_cmac.rx_pn; key 1138 net/mac80211/key.c pn = key->u.aes_gmac.rx_pn; key 1146 net/mac80211/key.c pn = key->u.gcmp.rx_pn[IEEE80211_NUM_TIDS]; key 1148 net/mac80211/key.c pn = key->u.gcmp.rx_pn[tid]; key 1158 net/mac80211/key.c struct ieee80211_key *key; key 1161 net/mac80211/key.c key = container_of(keyconf, struct ieee80211_key, conf); key 1163 net/mac80211/key.c switch (key->conf.cipher) { key 1167 net/mac80211/key.c key->u.tkip.rx[tid].iv32 = seq->tkip.iv32; key 1168 net/mac80211/key.c key->u.tkip.rx[tid].iv16 = seq->tkip.iv16; key 1175 net/mac80211/key.c pn = key->u.ccmp.rx_pn[IEEE80211_NUM_TIDS]; key 1177 net/mac80211/key.c pn = key->u.ccmp.rx_pn[tid]; key 1184 net/mac80211/key.c pn = key->u.aes_cmac.rx_pn; key 1191 net/mac80211/key.c pn = key->u.aes_gmac.rx_pn; key 1199 net/mac80211/key.c pn = key->u.gcmp.rx_pn[IEEE80211_NUM_TIDS]; key 1201 net/mac80211/key.c pn = key->u.gcmp.rx_pn[tid]; key 1213 net/mac80211/key.c struct ieee80211_key *key; key 1215 net/mac80211/key.c key = container_of(keyconf, struct ieee80211_key, conf); key 1217 net/mac80211/key.c assert_key_lock(key->local); key 1223 net/mac80211/key.c if (key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE) { key 1224 net/mac80211/key.c key->flags &= ~KEY_FLAG_UPLOADED_TO_HARDWARE; key 1226 net/mac80211/key.c if (!(key->conf.flags & (IEEE80211_KEY_FLAG_GENERATE_MMIC | key 1229 net/mac80211/key.c increment_tailroom_need_count(key->sdata); key 1232 net/mac80211/key.c ieee80211_key_free(key, false); key 1242 net/mac80211/key.c struct ieee80211_key *key; key 1251 net/mac80211/key.c key = ieee80211_key_alloc(keyconf->cipher, keyconf->keyidx, key 1252 net/mac80211/key.c keyconf->keylen, keyconf->key, key 1254 net/mac80211/key.c if (IS_ERR(key)) key 1255 net/mac80211/key.c return ERR_CAST(key); key 1258 net/mac80211/key.c key->conf.flags |= IEEE80211_KEY_FLAG_RX_MGMT; key 1260 net/mac80211/key.c err = ieee80211_key_link(key, sdata, NULL); key 1264 net/mac80211/key.c return &key->conf; key 146 net/mac80211/key.h int ieee80211_key_link(struct ieee80211_key *key, key 149 net/mac80211/key.h int ieee80211_set_tx_key(struct ieee80211_key *key); key 150 net/mac80211/key.h void ieee80211_key_free(struct ieee80211_key *key, bool delay_tailroom); key 151 net/mac80211/key.h void ieee80211_key_free_unused(struct ieee80211_key *key); key 27 net/mac80211/michael.c static void michael_mic_hdr(struct michael_mic_ctx *mctx, const u8 *key, key 39 net/mac80211/michael.c mctx->l = get_unaligned_le32(key); key 40 net/mac80211/michael.c mctx->r = get_unaligned_le32(key + 4); key 53 net/mac80211/michael.c void michael_mic(const u8 *key, struct ieee80211_hdr *hdr, key 60 net/mac80211/michael.c michael_mic_hdr(&mctx, key, hdr); key 19 net/mac80211/michael.h void michael_mic(const u8 *key, struct ieee80211_hdr *hdr, key 2846 net/mac80211/mlme.c auth_data->key, auth_data->key_len, key 5142 net/mac80211/mlme.c if (req->key && req->key_len) { key 5145 net/mac80211/mlme.c memcpy(auth_data->key, req->key, req->key_len); key 1913 net/mac80211/rx.c rx->key = NULL; key 1935 net/mac80211/rx.c rx->key = ptk_idx ? ptk_idx : sta_ptk; key 1956 net/mac80211/rx.c rx->key = rcu_dereference(rx->sta->gtk[mmie_keyidx]); key 1958 net/mac80211/rx.c if (!rx->key) key 1959 net/mac80211/rx.c rx->key = rcu_dereference(rx->sdata->keys[mmie_keyidx]); key 1967 net/mac80211/rx.c struct ieee80211_key *key = NULL; key 1973 net/mac80211/rx.c (key = rcu_dereference(rx->sdata->default_mgmt_key))) key 1974 net/mac80211/rx.c rx->key = key; key 1978 net/mac80211/rx.c key = rcu_dereference(rx->sta->gtk[i]); key 1979 net/mac80211/rx.c if (key) key 1983 net/mac80211/rx.c if (!key) { key 1985 net/mac80211/rx.c key = rcu_dereference(sdata->keys[i]); key 1986 net/mac80211/rx.c if (key) key 1990 net/mac80211/rx.c if (key) key 1991 net/mac80211/rx.c rx->key = key; key 2015 net/mac80211/rx.c rx->key = rcu_dereference(rx->sta->gtk[keyidx]); key 2018 net/mac80211/rx.c if (!rx->key) { key 2019 net/mac80211/rx.c rx->key = rcu_dereference(rx->sdata->keys[keyidx]); key 2026 net/mac80211/rx.c if (rx->key && key 2027 net/mac80211/rx.c rx->key->conf.cipher != WLAN_CIPHER_SUITE_WEP40 && key 2028 net/mac80211/rx.c rx->key->conf.cipher != WLAN_CIPHER_SUITE_WEP104 && key 2030 net/mac80211/rx.c rx->key = NULL; key 2034 net/mac80211/rx.c if (rx->key) { key 2035 net/mac80211/rx.c if (unlikely(rx->key->flags & KEY_FLAG_TAINTED)) key 2043 net/mac80211/rx.c switch (rx->key->conf.cipher) { key 2200 net/mac80211/rx.c if (rx->key && key 2201 net/mac80211/rx.c (rx->key->conf.cipher == WLAN_CIPHER_SUITE_CCMP || key 2202 net/mac80211/rx.c rx->key->conf.cipher == WLAN_CIPHER_SUITE_CCMP_256 || key 2203 net/mac80211/rx.c rx->key->conf.cipher == WLAN_CIPHER_SUITE_GCMP || key 2204 net/mac80211/rx.c rx->key->conf.cipher == WLAN_CIPHER_SUITE_GCMP_256) && key 2213 net/mac80211/rx.c rx->key->u.ccmp.rx_pn[queue], key 2219 net/mac80211/rx.c BUILD_BUG_ON(sizeof(rx->key->u.ccmp.rx_pn[queue]) != key 2220 net/mac80211/rx.c sizeof(rx->key->u.gcmp.rx_pn[queue])); key 2247 net/mac80211/rx.c if (!rx->key || key 2248 net/mac80211/rx.c (rx->key->conf.cipher != WLAN_CIPHER_SUITE_CCMP && key 2249 net/mac80211/rx.c rx->key->conf.cipher != WLAN_CIPHER_SUITE_CCMP_256 && key 2250 net/mac80211/rx.c rx->key->conf.cipher != WLAN_CIPHER_SUITE_GCMP && key 2251 net/mac80211/rx.c rx->key->conf.cipher != WLAN_CIPHER_SUITE_GCMP_256)) key 2260 net/mac80211/rx.c rpn = rx->key->u.ccmp.rx_pn[queue]; key 2321 net/mac80211/rx.c ieee80211_is_data(fc) && rx->key)) key 2343 net/mac80211/rx.c rx->key)) { key 2365 net/mac80211/rx.c if (unlikely(ieee80211_is_action(fc) && !rx->key && key 3968 net/mac80211/rx.c struct ieee80211_key *key; key 4055 net/mac80211/rx.c key = rcu_dereference(sta->ptk[sta->ptk_idx]); key 4056 net/mac80211/rx.c if (key) { key 4057 net/mac80211/rx.c switch (key->conf.cipher) { key 4073 net/mac80211/rx.c fastrx.key = true; key 4074 net/mac80211/rx.c fastrx.icv_len = key->conf.icv_len; key 4168 net/mac80211/rx.c if (fast_rx->key && key 4198 net/mac80211/rx.c if (fast_rx->key && !(status->flag & RX_FLAG_IV_STRIPPED)) { key 4224 net/mac80211/rx.c if (rx->key && !(status->flag & RX_FLAG_MIC_STRIPPED) && key 4259 net/mac80211/rx.c if (rx->key && !ieee80211_has_protected(hdr->frame_control)) key 308 net/mac80211/sta_info.h struct ieee80211_key *key; key 343 net/mac80211/sta_info.h u8 key:1, key 152 net/mac80211/tkip.c static void ieee80211_compute_tkip_p1k(struct ieee80211_key *key, u32 iv32) key 154 net/mac80211/tkip.c struct ieee80211_sub_if_data *sdata = key->sdata; key 155 net/mac80211/tkip.c struct tkip_ctx *ctx = &key->u.tkip.tx; key 156 net/mac80211/tkip.c const u8 *tk = &key->conf.key[NL80211_TKIP_DATA_OFFSET_ENCR_KEY]; key 158 net/mac80211/tkip.c lockdep_assert_held(&key->u.tkip.txlock); key 174 net/mac80211/tkip.c struct ieee80211_key *key = (struct ieee80211_key *) key 176 net/mac80211/tkip.c struct tkip_ctx *ctx = &key->u.tkip.tx; key 178 net/mac80211/tkip.c spin_lock_bh(&key->u.tkip.txlock); key 179 net/mac80211/tkip.c ieee80211_compute_tkip_p1k(key, iv32); key 181 net/mac80211/tkip.c spin_unlock_bh(&key->u.tkip.txlock); key 188 net/mac80211/tkip.c const u8 *tk = &keyconf->key[NL80211_TKIP_DATA_OFFSET_ENCR_KEY]; key 199 net/mac80211/tkip.c struct ieee80211_key *key = (struct ieee80211_key *) key 201 net/mac80211/tkip.c const u8 *tk = &key->conf.key[NL80211_TKIP_DATA_OFFSET_ENCR_KEY]; key 202 net/mac80211/tkip.c struct tkip_ctx *ctx = &key->u.tkip.tx; key 208 net/mac80211/tkip.c spin_lock(&key->u.tkip.txlock); key 209 net/mac80211/tkip.c ieee80211_compute_tkip_p1k(key, iv32); key 211 net/mac80211/tkip.c spin_unlock(&key->u.tkip.txlock); key 223 net/mac80211/tkip.c struct ieee80211_key *key, key 229 net/mac80211/tkip.c ieee80211_get_tkip_p2k(&key->conf, skb, rc4key); key 240 net/mac80211/tkip.c struct ieee80211_key *key, key 249 net/mac80211/tkip.c const u8 *tk = &key->conf.key[NL80211_TKIP_DATA_OFFSET_ENCR_KEY]; key 250 net/mac80211/tkip.c struct tkip_ctx_rx *rx_ctx = &key->u.tkip.rx[queue]; key 263 net/mac80211/tkip.c if ((keyid >> 6) != key->conf.keyidx) key 294 net/mac80211/tkip.c if (key->local->ops->update_tkip_key && key 295 net/mac80211/tkip.c key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE && key 297 net/mac80211/tkip.c struct ieee80211_sub_if_data *sdata = key->sdata; key 300 net/mac80211/tkip.c sdata = container_of(key->sdata->bss, key 302 net/mac80211/tkip.c drv_update_tkip_key(key->local, sdata, &key->conf, key->sta, key 14 net/mac80211/tkip.h struct ieee80211_key *key, key 25 net/mac80211/tkip.h struct ieee80211_key *key, key 582 net/mac80211/trace.h struct ieee80211_key_conf *key), key 584 net/mac80211/trace.h TP_ARGS(local, cmd, sdata, sta, key), key 597 net/mac80211/trace.h KEY_ASSIGN(key); key 720 net/mac80211/trace.h struct ieee80211_key_conf *key), key 722 net/mac80211/trace.h TP_ARGS(local, key), key 731 net/mac80211/trace.h KEY_ASSIGN(key); key 589 net/mac80211/tx.c struct ieee80211_key *key; key 594 net/mac80211/tx.c tx->key = NULL; key 599 net/mac80211/tx.c (key = rcu_dereference(tx->sta->ptk[tx->sta->ptk_idx]))) key 600 net/mac80211/tx.c tx->key = key; key 602 net/mac80211/tx.c (key = rcu_dereference(tx->sdata->default_multicast_key))) key 603 net/mac80211/tx.c tx->key = key; key 607 net/mac80211/tx.c (key = rcu_dereference(tx->sdata->default_mgmt_key))) key 608 net/mac80211/tx.c tx->key = key; key 610 net/mac80211/tx.c (key = rcu_dereference(tx->sdata->default_multicast_key))) key 611 net/mac80211/tx.c tx->key = key; key 613 net/mac80211/tx.c (key = rcu_dereference(tx->sdata->default_unicast_key))) key 614 net/mac80211/tx.c tx->key = key; key 616 net/mac80211/tx.c tx->key = NULL; key 618 net/mac80211/tx.c if (tx->key) { key 623 net/mac80211/tx.c switch (tx->key->conf.cipher) { key 628 net/mac80211/tx.c tx->key = NULL; key 638 net/mac80211/tx.c tx->key = NULL; key 640 net/mac80211/tx.c skip_hw = (tx->key->conf.flags & key 649 net/mac80211/tx.c tx->key = NULL; key 653 net/mac80211/tx.c if (unlikely(tx->key && tx->key->flags & KEY_FLAG_TAINTED && key 657 net/mac80211/tx.c if (!skip_hw && tx->key && key 658 net/mac80211/tx.c tx->key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE) key 659 net/mac80211/tx.c info->control.hw_key = &tx->key->conf; key 1021 net/mac80211/tx.c if (!tx->key) key 1024 net/mac80211/tx.c switch (tx->key->conf.cipher) { key 3007 net/mac80211/tx.c build.key = rcu_access_pointer(sta->ptk[sta->ptk_idx]); key 3008 net/mac80211/tx.c if (!build.key) key 3009 net/mac80211/tx.c build.key = rcu_access_pointer(sdata->default_unicast_key); key 3010 net/mac80211/tx.c if (build.key) { key 3013 net/mac80211/tx.c gen_iv = build.key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_IV; key 3014 net/mac80211/tx.c iv_spc = build.key->conf.flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE; key 3015 net/mac80211/tx.c mmic = build.key->conf.flags & key 3020 net/mac80211/tx.c if (!(build.key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE)) key 3024 net/mac80211/tx.c if (build.key->flags & KEY_FLAG_TAINTED) key 3027 net/mac80211/tx.c switch (build.key->conf.cipher) { key 3063 net/mac80211/tx.c build.key->conf.cipher); key 3070 net/mac80211/tx.c if (!(build.key->flags & KEY_FLAG_CIPHER_SCHEME)) key 3074 net/mac80211/tx.c build.key->conf.iv_len > IEEE80211_FAST_XMIT_MAX_IV) key 3077 net/mac80211/tx.c build.hdr_len += build.key->conf.iv_len; key 3365 net/mac80211/tx.c struct ieee80211_key *key, key 3372 net/mac80211/tx.c if (key) key 3373 net/mac80211/tx.c info->control.hw_key = &key->conf; key 3404 net/mac80211/tx.c switch (key->conf.cipher) { key 3409 net/mac80211/tx.c pn = atomic64_inc_return(&key->conf.tx_pn); key 3412 net/mac80211/tx.c crypto_hdr[3] = 0x20 | (key->conf.keyidx << 6); key 3521 net/mac80211/tx.c tx.key = fast_tx->key; key 3540 net/mac80211/tx.c fast_tx->key, skb); key 3640 net/mac80211/tx.c if (tx.key && key 3641 net/mac80211/tx.c (tx.key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_IV)) key 3645 net/mac80211/tx.c tx.key, skb); key 1555 net/mac80211/util.c const u8 *bssid, const u8 *key, u8 key_len, u8 key_idx, key 1585 net/mac80211/util.c err = ieee80211_wep_encrypt(local, skb, key, key_len, key_idx); key 2547 net/mac80211/util.c struct ieee80211_key *key; key 2564 net/mac80211/util.c list_for_each_entry(key, &sdata->key_list, list) key 2565 net/mac80211/util.c key->flags |= KEY_FLAG_TAINTED; key 96 net/mac80211/wep.c struct ieee80211_key *key) key 135 net/mac80211/wep.c const u8 *key, int keylen, int keyidx) key 154 net/mac80211/wep.c memcpy(rc4key + 3, key, keylen); key 195 net/mac80211/wep.c struct ieee80211_key *key) key 216 net/mac80211/wep.c if (!key || keyidx != key->conf.keyidx) key 219 net/mac80211/wep.c klen = 3 + key->conf.keylen; key 225 net/mac80211/wep.c memcpy(rc4key + 3, key->conf.key, key->conf.keylen); key 256 net/mac80211/wep.c if (ieee80211_wep_decrypt(rx->local, rx->skb, rx->key)) key 262 net/mac80211/wep.c ieee80211_wep_remove_iv(rx->local, rx->skb, rx->key); key 278 net/mac80211/wep.c if (ieee80211_wep_encrypt(tx->local, skb, tx->key->conf.key, key 279 net/mac80211/wep.c tx->key->conf.keylen, key 280 net/mac80211/wep.c tx->key->conf.keyidx)) key 285 net/mac80211/wep.c tx->key->conf.keylen, key 286 net/mac80211/wep.c tx->key->conf.keyidx)) key 21 net/mac80211/wep.h const u8 *key, int keylen, int keyidx); key 31 net/mac80211/wpa.c u8 *data, *key, *mic; key 40 net/mac80211/wpa.c if (!tx->key || tx->key->conf.cipher != WLAN_CIPHER_SUITE_TKIP || key 59 net/mac80211/wpa.c !(tx->key->conf.flags & (IEEE80211_KEY_FLAG_GENERATE_MMIC | key 78 net/mac80211/wpa.c if (tx->key->conf.flags & IEEE80211_KEY_FLAG_PUT_MIC_SPACE) { key 84 net/mac80211/wpa.c key = &tx->key->conf.key[NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY]; key 85 net/mac80211/wpa.c michael_mic(key, hdr, data, data_len, mic); key 96 net/mac80211/wpa.c u8 *data, *key = NULL; key 121 net/mac80211/wpa.c if (!(status->flag & RX_FLAG_IV_STRIPPED) && rx->key && key 122 net/mac80211/wpa.c rx->key->conf.cipher == WLAN_CIPHER_SUITE_TKIP) key 133 net/mac80211/wpa.c if (!rx->key || rx->key->conf.cipher != WLAN_CIPHER_SUITE_TKIP || key 137 net/mac80211/wpa.c if (rx->sdata->vif.type == NL80211_IFTYPE_AP && rx->key->conf.keyidx) { key 160 net/mac80211/wpa.c key = &rx->key->conf.key[NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY]; key 161 net/mac80211/wpa.c michael_mic(key, hdr, data, data_len, mic); key 170 net/mac80211/wpa.c rx->key->u.tkip.rx[rx->security_idx].iv32 = rx->tkip_iv32; key 171 net/mac80211/wpa.c rx->key->u.tkip.rx[rx->security_idx].iv16 = rx->tkip_iv16; key 176 net/mac80211/wpa.c rx->key->u.tkip.mic_failures++; key 188 net/mac80211/wpa.c rx->key ? rx->key->conf.keyidx : -1, key 196 net/mac80211/wpa.c struct ieee80211_key *key = tx->key; key 232 net/mac80211/wpa.c pn = atomic64_inc_return(&key->conf.tx_pn); key 233 net/mac80211/wpa.c pos = ieee80211_tkip_add_iv(pos, &key->conf, pn); key 243 net/mac80211/wpa.c key, skb, pos, len); key 268 net/mac80211/wpa.c struct ieee80211_key *key = rx->key; key 294 net/mac80211/wpa.c key, skb->data + hdrlen, key 409 net/mac80211/wpa.c struct ieee80211_key *key = tx->key; key 454 net/mac80211/wpa.c pn64 = atomic64_inc_return(&key->conf.tx_pn); key 463 net/mac80211/wpa.c ccmp_pn2hdr(pos, pn, key->conf.keyidx); key 471 net/mac80211/wpa.c return ieee80211_aes_ccm_encrypt(key->u.ccmp.tfm, b_0, aad, pos, len, key 499 net/mac80211/wpa.c struct ieee80211_key *key = rx->key; key 533 net/mac80211/wpa.c res = memcmp(pn, key->u.ccmp.rx_pn[queue], key 537 net/mac80211/wpa.c key->u.ccmp.replays++; key 548 net/mac80211/wpa.c key->u.ccmp.tfm, b_0, aad, key 555 net/mac80211/wpa.c memcpy(key->u.ccmp.rx_pn[queue], pn, IEEE80211_CCMP_PN_LEN); key 640 net/mac80211/wpa.c struct ieee80211_key *key = tx->key; key 686 net/mac80211/wpa.c pn64 = atomic64_inc_return(&key->conf.tx_pn); key 695 net/mac80211/wpa.c gcmp_pn2hdr(pos, pn, key->conf.keyidx); key 703 net/mac80211/wpa.c return ieee80211_aes_gcm_encrypt(key->u.gcmp.tfm, j_0, aad, pos, len, key 727 net/mac80211/wpa.c struct ieee80211_key *key = rx->key; key 760 net/mac80211/wpa.c res = memcmp(pn, key->u.gcmp.rx_pn[queue], key 764 net/mac80211/wpa.c key->u.gcmp.replays++; key 775 net/mac80211/wpa.c key->u.gcmp.tfm, j_0, aad, key 783 net/mac80211/wpa.c memcpy(key->u.gcmp.rx_pn[queue], pn, IEEE80211_GCMP_PN_LEN); key 800 net/mac80211/wpa.c struct ieee80211_key *key = tx->key; key 803 net/mac80211/wpa.c u8 *pos, iv_len = key->conf.iv_len; key 841 net/mac80211/wpa.c struct ieee80211_key *key = rx->key; key 875 net/mac80211/wpa.c rx_pn = key->u.gen.rx_pn[qos_tid]; key 937 net/mac80211/wpa.c struct ieee80211_key *key = tx->key; key 950 net/mac80211/wpa.c !(key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_MMIE)) key 959 net/mac80211/wpa.c mmie->key_id = cpu_to_le16(key->conf.keyidx); key 962 net/mac80211/wpa.c pn64 = atomic64_inc_return(&key->conf.tx_pn); key 974 net/mac80211/wpa.c ieee80211_aes_cmac(key->u.aes_cmac.tfm, aad, key 985 net/mac80211/wpa.c struct ieee80211_key *key = tx->key; key 1006 net/mac80211/wpa.c mmie->key_id = cpu_to_le16(key->conf.keyidx); key 1009 net/mac80211/wpa.c pn64 = atomic64_inc_return(&key->conf.tx_pn); key 1017 net/mac80211/wpa.c ieee80211_aes_cmac_256(key->u.aes_cmac.tfm, aad, key 1028 net/mac80211/wpa.c struct ieee80211_key *key = rx->key; key 1049 net/mac80211/wpa.c if (memcmp(ipn, key->u.aes_cmac.rx_pn, 6) <= 0) { key 1050 net/mac80211/wpa.c key->u.aes_cmac.replays++; key 1057 net/mac80211/wpa.c ieee80211_aes_cmac(key->u.aes_cmac.tfm, aad, key 1060 net/mac80211/wpa.c key->u.aes_cmac.icverrors++; key 1065 net/mac80211/wpa.c memcpy(key->u.aes_cmac.rx_pn, ipn, 6); key 1078 net/mac80211/wpa.c struct ieee80211_key *key = rx->key; key 1099 net/mac80211/wpa.c if (memcmp(ipn, key->u.aes_cmac.rx_pn, 6) <= 0) { key 1100 net/mac80211/wpa.c key->u.aes_cmac.replays++; key 1107 net/mac80211/wpa.c ieee80211_aes_cmac_256(key->u.aes_cmac.tfm, aad, key 1110 net/mac80211/wpa.c key->u.aes_cmac.icverrors++; key 1115 net/mac80211/wpa.c memcpy(key->u.aes_cmac.rx_pn, ipn, 6); key 1128 net/mac80211/wpa.c struct ieee80211_key *key = tx->key; key 1151 net/mac80211/wpa.c mmie->key_id = cpu_to_le16(key->conf.keyidx); key 1154 net/mac80211/wpa.c pn64 = atomic64_inc_return(&key->conf.tx_pn); key 1165 net/mac80211/wpa.c if (ieee80211_aes_gmac(key->u.aes_gmac.tfm, aad, nonce, key 1177 net/mac80211/wpa.c struct ieee80211_key *key = rx->key; key 1198 net/mac80211/wpa.c if (memcmp(ipn, key->u.aes_gmac.rx_pn, 6) <= 0) { key 1199 net/mac80211/wpa.c key->u.aes_gmac.replays++; key 1213 net/mac80211/wpa.c if (ieee80211_aes_gmac(key->u.aes_gmac.tfm, aad, nonce, key 1217 net/mac80211/wpa.c key->u.aes_gmac.icverrors++; key 1224 net/mac80211/wpa.c memcpy(key->u.aes_gmac.rx_pn, ipn, 6); key 1246 net/mac80211/wpa.c if (tx->key->flags & KEY_FLAG_CIPHER_SCHEME) { key 331 net/mac802154/cfg.c const struct ieee802154_llsec_key *key) key 338 net/mac802154/cfg.c res = mac802154_llsec_key_add(&sdata->sec, id, key); key 422 net/mac802154/cfg.c const struct ieee802154_llsec_device_key *key) key 429 net/mac802154/cfg.c res = mac802154_llsec_devkey_add(&sdata->sec, extended_addr, key); key 438 net/mac802154/cfg.c const struct ieee802154_llsec_device_key *key) key 445 net/mac802154/cfg.c res = mac802154_llsec_devkey_del(&sdata->sec, extended_addr, key); key 142 net/mac802154/ieee802154_i.h const struct ieee802154_llsec_key *key); key 152 net/mac802154/ieee802154_i.h const struct ieee802154_llsec_device_key *key); key 155 net/mac802154/ieee802154_i.h const struct ieee802154_llsec_device_key *key); key 21 net/mac802154/llsec.c static void llsec_key_put(struct mac802154_llsec_key *key); key 45 net/mac802154/llsec.c struct ieee802154_llsec_key_entry *key, *kn; key 63 net/mac802154/llsec.c list_for_each_entry_safe(key, kn, &sec->table.keys, list) { key 66 net/mac802154/llsec.c mkey = container_of(key->key, struct mac802154_llsec_key, key); key 67 net/mac802154/llsec.c list_del(&key->list); key 69 net/mac802154/llsec.c kzfree(key); key 117 net/mac802154/llsec.c struct mac802154_llsec_key *key; key 120 net/mac802154/llsec.c key = kzalloc(sizeof(*key), GFP_KERNEL); key 121 net/mac802154/llsec.c if (!key) key 124 net/mac802154/llsec.c kref_init(&key->ref); key 125 net/mac802154/llsec.c key->key = *template; key 127 net/mac802154/llsec.c BUILD_BUG_ON(ARRAY_SIZE(authsizes) != ARRAY_SIZE(key->tfm)); key 129 net/mac802154/llsec.c for (i = 0; i < ARRAY_SIZE(key->tfm); i++) { key 130 net/mac802154/llsec.c key->tfm[i] = crypto_alloc_aead("ccm(aes)", 0, key 132 net/mac802154/llsec.c if (IS_ERR(key->tfm[i])) key 134 net/mac802154/llsec.c if (crypto_aead_setkey(key->tfm[i], template->key, key 137 net/mac802154/llsec.c if (crypto_aead_setauthsize(key->tfm[i], authsizes[i])) key 141 net/mac802154/llsec.c key->tfm0 = crypto_alloc_sync_skcipher("ctr(aes)", 0, 0); key 142 net/mac802154/llsec.c if (IS_ERR(key->tfm0)) key 145 net/mac802154/llsec.c if (crypto_sync_skcipher_setkey(key->tfm0, template->key, key 149 net/mac802154/llsec.c return key; key 152 net/mac802154/llsec.c crypto_free_sync_skcipher(key->tfm0); key 154 net/mac802154/llsec.c for (i = 0; i < ARRAY_SIZE(key->tfm); i++) key 155 net/mac802154/llsec.c if (key->tfm[i]) key 156 net/mac802154/llsec.c crypto_free_aead(key->tfm[i]); key 158 net/mac802154/llsec.c kzfree(key); key 164 net/mac802154/llsec.c struct mac802154_llsec_key *key; key 167 net/mac802154/llsec.c key = container_of(ref, struct mac802154_llsec_key, ref); key 169 net/mac802154/llsec.c for (i = 0; i < ARRAY_SIZE(key->tfm); i++) key 170 net/mac802154/llsec.c crypto_free_aead(key->tfm[i]); key 172 net/mac802154/llsec.c crypto_free_sync_skcipher(key->tfm0); key 173 net/mac802154/llsec.c kzfree(key); key 177 net/mac802154/llsec.c llsec_key_get(struct mac802154_llsec_key *key) key 179 net/mac802154/llsec.c kref_get(&key->ref); key 180 net/mac802154/llsec.c return key; key 183 net/mac802154/llsec.c static void llsec_key_put(struct mac802154_llsec_key *key) key 185 net/mac802154/llsec.c kref_put(&key->ref, llsec_key_release); key 214 net/mac802154/llsec.c const struct ieee802154_llsec_key *key) key 219 net/mac802154/llsec.c if (!(key->frame_types & (1 << IEEE802154_FC_TYPE_MAC_CMD)) && key 220 net/mac802154/llsec.c key->cmd_frame_ids) key 227 net/mac802154/llsec.c if (memcmp(pos->key->key, key->key, key 231 net/mac802154/llsec.c mkey = container_of(pos->key, struct mac802154_llsec_key, key); key 237 net/mac802154/llsec.c if (pos->key->frame_types != key->frame_types || key 238 net/mac802154/llsec.c pos->key->cmd_frame_ids != key->cmd_frame_ids) key 249 net/mac802154/llsec.c mkey = llsec_key_alloc(key); key 257 net/mac802154/llsec.c new->key = &mkey->key; key 269 net/mac802154/llsec.c const struct ieee802154_llsec_key_id *key) key 276 net/mac802154/llsec.c mkey = container_of(pos->key, struct mac802154_llsec_key, key); key 278 net/mac802154/llsec.c if (llsec_key_id_equal(&pos->id, key)) { key 309 net/mac802154/llsec.c u32 key = llsec_dev_hash_short(short_addr, pan_id); key 311 net/mac802154/llsec.c hash_for_each_possible_rcu(sec->devices_short, dev, bucket_s, key) { key 324 net/mac802154/llsec.c u64 key = llsec_dev_hash_long(hwaddr); key 326 net/mac802154/llsec.c hash_for_each_possible_rcu(sec->devices_hw, dev, bucket_hw, key) { key 406 net/mac802154/llsec.c const struct ieee802154_llsec_key_id *key) key 411 net/mac802154/llsec.c if (!llsec_key_id_equal(key, &devkey->key_id)) key 423 net/mac802154/llsec.c const struct ieee802154_llsec_device_key *key) key 433 net/mac802154/llsec.c if (llsec_devkey_find(dev, &key->key_id)) key 440 net/mac802154/llsec.c devkey->devkey = *key; key 447 net/mac802154/llsec.c const struct ieee802154_llsec_device_key *key) key 457 net/mac802154/llsec.c devkey = llsec_devkey_find(dev, &key->key_id); key 550 net/mac802154/llsec.c struct mac802154_llsec_key *key; key 565 net/mac802154/llsec.c if (!(key_entry->key->frame_types & BIT(hdr->fc.type))) key 590 net/mac802154/llsec.c key = container_of(key_entry->key, struct mac802154_llsec_key, key); key 593 net/mac802154/llsec.c return llsec_key_get(key); key 613 net/mac802154/llsec.c struct mac802154_llsec_key *key) key 617 net/mac802154/llsec.c SYNC_SKCIPHER_REQUEST_ON_STACK(req, key->tfm0); key 627 net/mac802154/llsec.c skcipher_request_set_sync_tfm(req, key->tfm0); key 636 net/mac802154/llsec.c llsec_tfm_by_len(struct mac802154_llsec_key *key, int authlen) key 640 net/mac802154/llsec.c for (i = 0; i < ARRAY_SIZE(key->tfm); i++) key 641 net/mac802154/llsec.c if (crypto_aead_authsize(key->tfm[i]) == authlen) key 642 net/mac802154/llsec.c return key->tfm[i]; key 650 net/mac802154/llsec.c struct mac802154_llsec_key *key) key 661 net/mac802154/llsec.c req = aead_request_alloc(llsec_tfm_by_len(key, authlen), GFP_ATOMIC); key 693 net/mac802154/llsec.c struct mac802154_llsec_key *key) key 696 net/mac802154/llsec.c return llsec_do_encrypt_unauth(skb, sec, hdr, key); key 698 net/mac802154/llsec.c return llsec_do_encrypt_auth(skb, sec, hdr, key); key 705 net/mac802154/llsec.c struct mac802154_llsec_key *key; key 733 net/mac802154/llsec.c key = llsec_lookup_key(sec, &hdr, &hdr.dest, NULL); key 734 net/mac802154/llsec.c if (!key) { key 747 net/mac802154/llsec.c llsec_key_put(key); key 761 net/mac802154/llsec.c rc = llsec_do_encrypt(skb, sec, &hdr, key); key 762 net/mac802154/llsec.c llsec_key_put(key); key 785 net/mac802154/llsec.c u32 key = llsec_dev_hash_short(devaddr.short_addr, key 789 net/mac802154/llsec.c bucket_s, key) { key 795 net/mac802154/llsec.c u64 key = llsec_dev_hash_long(devaddr.extended_addr); key 798 net/mac802154/llsec.c bucket_hw, key) { key 829 net/mac802154/llsec.c struct mac802154_llsec_key *key, __le64 dev_addr) key 835 net/mac802154/llsec.c SYNC_SKCIPHER_REQUEST_ON_STACK(req, key->tfm0); key 844 net/mac802154/llsec.c skcipher_request_set_sync_tfm(req, key->tfm0); key 856 net/mac802154/llsec.c struct mac802154_llsec_key *key, __le64 dev_addr) key 867 net/mac802154/llsec.c req = aead_request_alloc(llsec_tfm_by_len(key, authlen), GFP_ATOMIC); key 898 net/mac802154/llsec.c struct mac802154_llsec_key *key, __le64 dev_addr) key 901 net/mac802154/llsec.c return llsec_do_decrypt_unauth(skb, sec, hdr, key, dev_addr); key 903 net/mac802154/llsec.c return llsec_do_decrypt_auth(skb, sec, hdr, key, dev_addr); key 978 net/mac802154/llsec.c struct mac802154_llsec_key *key; key 1002 net/mac802154/llsec.c key = llsec_lookup_key(sec, &hdr, &hdr.source, &key_id); key 1003 net/mac802154/llsec.c if (!key) { key 1041 net/mac802154/llsec.c err = llsec_do_decrypt(skb, sec, &hdr, key, dev_addr); key 1042 net/mac802154/llsec.c llsec_key_put(key); key 1046 net/mac802154/llsec.c llsec_key_put(key); key 20 net/mac802154/llsec.h struct ieee802154_llsec_key key; key 75 net/mac802154/llsec.h const struct ieee802154_llsec_key *key); key 77 net/mac802154/llsec.h const struct ieee802154_llsec_key_id *key); key 86 net/mac802154/llsec.h const struct ieee802154_llsec_device_key *key); key 89 net/mac802154/llsec.h const struct ieee802154_llsec_device_key *key); key 73 net/mac802154/mib.c const struct ieee802154_llsec_key *key) key 81 net/mac802154/mib.c res = mac802154_llsec_key_add(&sdata->sec, id, key); key 133 net/mac802154/mib.c const struct ieee802154_llsec_device_key *key) key 141 net/mac802154/mib.c res = mac802154_llsec_devkey_add(&sdata->sec, device_addr, key); key 149 net/mac802154/mib.c const struct ieee802154_llsec_device_key *key) key 157 net/mac802154/mib.c res = mac802154_llsec_devkey_del(&sdata->sec, device_addr, key); key 159 net/mac802154/rx.c u64 key; key 180 net/mac802154/rx.c key = swab64((__force u64)hdr->sec.extended_src); key 181 net/mac802154/rx.c pr_debug("key source %8phC %02x\n", &key, key 657 net/netfilter/ipset/ip_set_hash_gen.h u32 i, j, r, nr, key; key 725 net/netfilter/ipset/ip_set_hash_gen.h key = HKEY(data, h->initval, htable_bits); key 726 net/netfilter/ipset/ip_set_hash_gen.h m = __ipset_dereference(hbucket(t, key)); key 727 net/netfilter/ipset/ip_set_hash_gen.h nr = ahash_region(key, htable_bits); key 740 net/netfilter/ipset/ip_set_hash_gen.h RCU_INIT_POINTER(hbucket(t, key), m); key 764 net/netfilter/ipset/ip_set_hash_gen.h RCU_INIT_POINTER(hbucket(t, key), ht); key 866 net/netfilter/ipset/ip_set_hash_gen.h u32 r, key, multi = 0, elements, maxelem; key 870 net/netfilter/ipset/ip_set_hash_gen.h key = HKEY(value, h->initval, t->htable_bits); key 871 net/netfilter/ipset/ip_set_hash_gen.h r = ahash_region(key, t->htable_bits); key 892 net/netfilter/ipset/ip_set_hash_gen.h n = rcu_dereference_bh(hbucket(t, key)); key 1001 net/netfilter/ipset/ip_set_hash_gen.h rcu_assign_pointer(hbucket(t, key), n); key 1055 net/netfilter/ipset/ip_set_hash_gen.h u32 key, multi = 0; key 1063 net/netfilter/ipset/ip_set_hash_gen.h key = HKEY(value, h->initval, t->htable_bits); key 1064 net/netfilter/ipset/ip_set_hash_gen.h r = ahash_region(key, t->htable_bits); key 1069 net/netfilter/ipset/ip_set_hash_gen.h n = rcu_dereference_bh(hbucket(t, key)); key 1115 net/netfilter/ipset/ip_set_hash_gen.h rcu_assign_pointer(hbucket(t, key), NULL); key 1135 net/netfilter/ipset/ip_set_hash_gen.h rcu_assign_pointer(hbucket(t, key), tmp); key 1184 net/netfilter/ipset/ip_set_hash_gen.h u32 key, multi = 0; key 1198 net/netfilter/ipset/ip_set_hash_gen.h key = HKEY(d, h->initval, t->htable_bits); key 1199 net/netfilter/ipset/ip_set_hash_gen.h n = rcu_dereference_bh(hbucket(t, key)); key 1235 net/netfilter/ipset/ip_set_hash_gen.h u32 key, multi = 0; key 1252 net/netfilter/ipset/ip_set_hash_gen.h key = HKEY(d, h->initval, t->htable_bits); key 1253 net/netfilter/ipset/ip_set_hash_gen.h n = rcu_dereference_bh(hbucket(t, key)); key 92 net/netfilter/ipvs/ip_vs_conn.c static inline void ct_write_lock_bh(unsigned int key) key 94 net/netfilter/ipvs/ip_vs_conn.c spin_lock_bh(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l); key 97 net/netfilter/ipvs/ip_vs_conn.c static inline void ct_write_unlock_bh(unsigned int key) key 99 net/netfilter/ipvs/ip_vs_conn.c spin_unlock_bh(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l); key 73 net/netfilter/ipvs/ip_vs_mh.c hash1->key[0] = 2654435761UL; key 74 net/netfilter/ipvs/ip_vs_mh.c hash1->key[1] = 2654435761UL; key 76 net/netfilter/ipvs/ip_vs_mh.c hash2->key[0] = 2654446892UL; key 77 net/netfilter/ipvs/ip_vs_mh.c hash2->key[1] = 2654446892UL; key 90 net/netfilter/ipvs/ip_vs_mh.c __be16 port, hsiphash_key_t *key, unsigned int offset) key 101 net/netfilter/ipvs/ip_vs_mh.c return hsiphash(&v, sizeof(v), key); key 52 net/netfilter/nf_conncount.c u32 key[MAX_KEYLEN]; key 304 net/netfilter/nf_conncount.c const u32 *key, key 325 net/netfilter/nf_conncount.c diff = key_diff(key, rbconn->key, keylen); key 370 net/netfilter/nf_conncount.c memcpy(rbconn->key, key, sizeof(u32) * keylen); key 387 net/netfilter/nf_conncount.c const u32 *key, key 397 net/netfilter/nf_conncount.c hash = jhash2(key, data->keylen, conncount_rnd) % CONNCOUNT_SLOTS; key 406 net/netfilter/nf_conncount.c diff = key_diff(key, rbconn->key, keylen); key 441 net/netfilter/nf_conncount.c return insert_tree(net, data, root, hash, key, tuple, zone); key 508 net/netfilter/nf_conncount.c const u32 *key, key 512 net/netfilter/nf_conncount.c return count_tree(net, data, key, tuple, zone); key 194 net/netfilter/nf_conntrack_pptp.c t.src.u.gre.key = ct_pptp_info->pns_call_id; key 195 net/netfilter/nf_conntrack_pptp.c t.dst.u.gre.key = ct_pptp_info->pac_call_id; key 202 net/netfilter/nf_conntrack_pptp.c t.src.u.gre.key = ct_pptp_info->pac_call_id; key 203 net/netfilter/nf_conntrack_pptp.c t.dst.u.gre.key = ct_pptp_info->pns_call_id; key 86 net/netfilter/nf_conntrack_proto_gre.c __be16 key = 0; key 90 net/netfilter/nf_conntrack_proto_gre.c key = km->tuple.src.u.gre.key; key 95 net/netfilter/nf_conntrack_proto_gre.c pr_debug("lookup src key 0x%x for ", key); key 98 net/netfilter/nf_conntrack_proto_gre.c return key; key 192 net/netfilter/nf_conntrack_proto_gre.c tuple->dst.u.gre.key = pgrehdr->call_id; key 194 net/netfilter/nf_conntrack_proto_gre.c tuple->src.u.gre.key = srckey; key 88 net/netfilter/nf_conntrack_standalone.c ntohs(tuple->src.u.gre.key), key 89 net/netfilter/nf_conntrack_standalone.c ntohs(tuple->dst.u.gre.key)); key 184 net/netfilter/nf_flow_table_core.c const struct flow_offload_tuple *tuple = arg->key; key 432 net/netfilter/nf_nat_core.c keyptr = &tuple->src.u.gre.key; key 434 net/netfilter/nf_nat_core.c keyptr = &tuple->dst.u.gre.key; key 440 net/netfilter/nf_nat_core.c min = ntohs(range->min_proto.gre.key); key 441 net/netfilter/nf_nat_core.c range_size = ntohs(range->max_proto.gre.key) - min + 1; key 306 net/netfilter/nf_nat_proto.c pr_debug("call_id -> 0x%04x\n", ntohs(tuple->dst.u.gre.key)); key 307 net/netfilter/nf_nat_proto.c pgreh->call_id = tuple->dst.u.gre.key; key 61 net/netfilter/nf_tables_api.c .key_offset = offsetof(struct nft_object, key), key 864 net/netfilter/nf_tables_api.c const char *name = arg->key; key 882 net/netfilter/nf_tables_api.c return nft_objname_hash(&obj->key, 0, seed); key 888 net/netfilter/nf_tables_api.c const struct nft_object_hash_key *k = arg->key; key 891 net/netfilter/nf_tables_api.c if (obj->key.table != k->table) key 894 net/netfilter/nf_tables_api.c return strcmp(obj->key.name, k->name); key 4034 net/netfilter/nf_tables_api.c (*nft_set_ext_obj(ext))->key.name) < 0) key 4287 net/netfilter/nf_tables_api.c err = nft_data_init(ctx, &elem.key.val, sizeof(elem.key), &desc, key 4294 net/netfilter/nf_tables_api.c nft_data_release(&elem.key.val, desc.type); key 4423 net/netfilter/nf_tables_api.c const u32 *key, const u32 *data, key 4436 net/netfilter/nf_tables_api.c memcpy(nft_set_ext_key(ext), key, set->klen); key 4568 net/netfilter/nf_tables_api.c err = nft_data_init(ctx, &elem.key.val, sizeof(elem.key), &d1, key 4649 net/netfilter/nf_tables_api.c elem.priv = nft_set_elem_init(set, &tmpl, elem.key.val.data, data.data, key 4718 net/netfilter/nf_tables_api.c nft_data_release(&elem.key.val, d1.type); key 4839 net/netfilter/nf_tables_api.c err = nft_data_init(ctx, &elem.key.val, sizeof(elem.key), &desc, key 4851 net/netfilter/nf_tables_api.c elem.priv = nft_set_elem_init(set, &tmpl, elem.key.val.data, NULL, 0, key 4885 net/netfilter/nf_tables_api.c nft_data_release(&elem.key.val, desc.type); key 5274 net/netfilter/nf_tables_api.c obj->key.table = table; key 5277 net/netfilter/nf_tables_api.c obj->key.name = nla_strdup(nla[NFTA_OBJ_NAME], GFP_KERNEL); key 5278 net/netfilter/nf_tables_api.c if (!obj->key.name) { key 5300 net/netfilter/nf_tables_api.c kfree(obj->key.name); key 5329 net/netfilter/nf_tables_api.c nla_put_string(skb, NFTA_OBJ_NAME, obj->key.name) || key 5515 net/netfilter/nf_tables_api.c kfree(obj->key.name); key 26 net/netfilter/nf_tables_offload.c flow->rule->match.key = &flow->match.key; key 123 net/netfilter/nft_cmp.c u8 *key = (u8 *)&flow->match.key; key 128 net/netfilter/nft_cmp.c memcpy(key + reg->offset, &priv->data, priv->len); key 131 net/netfilter/nft_cmp.c flow->match.dissector.used_keys |= BIT(reg->key); key 132 net/netfilter/nft_cmp.c flow->match.dissector.offset[reg->key] = reg->base_offset; key 27 net/netfilter/nft_ct.c enum nft_ct_keys key:8; key 73 net/netfilter/nft_ct.c switch (priv->key) { key 90 net/netfilter/nft_ct.c switch (priv->key) { key 139 net/netfilter/nft_ct.c priv->key, priv->dir); key 189 net/netfilter/nft_ct.c switch (priv->key) { key 295 net/netfilter/nft_ct.c switch (priv->key) { key 395 net/netfilter/nft_ct.c priv->key = ntohl(nla_get_be32(tb[NFTA_CT_KEY])); key 397 net/netfilter/nft_ct.c switch (priv->key) { key 513 net/netfilter/nft_ct.c if (priv->key == NFT_CT_BYTES || key 514 net/netfilter/nft_ct.c priv->key == NFT_CT_PKTS || key 515 net/netfilter/nft_ct.c priv->key == NFT_CT_AVGPKT) key 523 net/netfilter/nft_ct.c switch (priv->key) { key 548 net/netfilter/nft_ct.c priv->key = ntohl(nla_get_be32(tb[NFTA_CT_KEY])); key 549 net/netfilter/nft_ct.c switch (priv->key) { key 642 net/netfilter/nft_ct.c if (nla_put_be32(skb, NFTA_CT_KEY, htonl(priv->key))) key 645 net/netfilter/nft_ct.c switch (priv->key) { key 681 net/netfilter/nft_ct.c if (nla_put_be32(skb, NFTA_CT_KEY, htonl(priv->key))) key 684 net/netfilter/nft_ct.c switch (priv->key) { key 69 net/netfilter/nft_meta.c switch (priv->key) { key 279 net/netfilter/nft_meta.c switch (meta->key) { key 324 net/netfilter/nft_meta.c priv->key = ntohl(nla_get_be32(tb[NFTA_META_KEY])); key 325 net/netfilter/nft_meta.c switch (priv->key) { key 397 net/netfilter/nft_meta.c if (priv->key != NFT_META_SECPATH) key 428 net/netfilter/nft_meta.c if (priv->key != NFT_META_PKTTYPE) key 459 net/netfilter/nft_meta.c priv->key = ntohl(nla_get_be32(tb[NFTA_META_KEY])); key 460 net/netfilter/nft_meta.c switch (priv->key) { key 483 net/netfilter/nft_meta.c if (priv->key == NFT_META_NFTRACE) key 495 net/netfilter/nft_meta.c if (nla_put_be32(skb, NFTA_META_KEY, htonl(priv->key))) key 510 net/netfilter/nft_meta.c if (nla_put_be32(skb, NFTA_META_KEY, htonl(priv->key))) key 527 net/netfilter/nft_meta.c if (priv->key == NFT_META_NFTRACE) key 539 net/netfilter/nft_meta.c switch (priv->key) { key 54 net/netfilter/nft_objref.c if (nla_put_string(skb, NFTA_OBJREF_IMM_NAME, obj->key.name) || key 62 net/netfilter/nft_quota.c nft_obj_notify(nft_net(pkt), obj->key.table, obj, 0, 0, key 17 net/netfilter/nft_rt.c enum nft_rt_keys key:8; key 66 net/netfilter/nft_rt.c switch (priv->key) { key 121 net/netfilter/nft_rt.c priv->key = ntohl(nla_get_be32(tb[NFTA_RT_KEY])); key 122 net/netfilter/nft_rt.c switch (priv->key) { key 154 net/netfilter/nft_rt.c if (nla_put_be32(skb, NFTA_RT_KEY, htonl(priv->key))) key 170 net/netfilter/nft_rt.c switch (priv->key) { key 52 net/netfilter/nft_set_bitmap.c const void *key, key 58 net/netfilter/nft_set_bitmap.c k = *(u16 *)key; key 60 net/netfilter/nft_set_bitmap.c k = *(u8 *)key; key 77 net/netfilter/nft_set_bitmap.c const u32 *key, const struct nft_set_ext **ext) key 83 net/netfilter/nft_set_bitmap.c nft_bitmap_location(set, key, &idx, &off); key 114 net/netfilter/nft_set_bitmap.c if (memcmp(nft_set_ext_key(&be->ext), elem->key.val.data, set->klen) || key 201 net/netfilter/nft_set_bitmap.c nft_bitmap_location(set, elem->key.val.data, &idx, &off); key 36 net/netfilter/nft_set_hash.c const u32 *key; key 44 net/netfilter/nft_set_hash.c return jhash(arg->key, len, seed); key 57 net/netfilter/nft_set_hash.c const struct nft_rhash_cmp_arg *x = arg->key; key 60 net/netfilter/nft_set_hash.c if (memcmp(nft_set_ext_key(&he->ext), x->key, x->set->klen)) key 78 net/netfilter/nft_set_hash.c const u32 *key, const struct nft_set_ext **ext) key 85 net/netfilter/nft_set_hash.c .key = key, key 103 net/netfilter/nft_set_hash.c .key = elem->key.val.data, key 113 net/netfilter/nft_set_hash.c static bool nft_rhash_update(struct nft_set *set, const u32 *key, key 126 net/netfilter/nft_set_hash.c .key = key, key 167 net/netfilter/nft_set_hash.c .key = elem->key.val.data, key 213 net/netfilter/nft_set_hash.c .key = elem->key.val.data, key 238 net/netfilter/nft_set_hash.c const u32 *key) key 244 net/netfilter/nft_set_hash.c .key = key, key 423 net/netfilter/nft_set_hash.c const u32 *key, const struct nft_set_ext **ext) key 430 net/netfilter/nft_set_hash.c hash = jhash(key, set->klen, priv->seed); key 433 net/netfilter/nft_set_hash.c if (!memcmp(nft_set_ext_key(&he->ext), key, set->klen) && key 450 net/netfilter/nft_set_hash.c hash = jhash(elem->key.val.data, set->klen, priv->seed); key 453 net/netfilter/nft_set_hash.c if (!memcmp(nft_set_ext_key(&he->ext), elem->key.val.data, set->klen) && key 462 net/netfilter/nft_set_hash.c const u32 *key, const struct nft_set_ext **ext) key 469 net/netfilter/nft_set_hash.c k1 = *key; key 486 net/netfilter/nft_set_hash.c const struct nft_data *key = nft_set_ext_key(ext); key 490 net/netfilter/nft_set_hash.c k1 = *(u32 *)key; key 493 net/netfilter/nft_set_hash.c hash = jhash(key, set->klen, priv->seed); key 550 net/netfilter/nft_set_hash.c if (!memcmp(nft_set_ext_key(&he->ext), &elem->key.val, key 48 net/netfilter/nft_set_rbtree.c const u32 *key, const struct nft_set_ext **ext, key 66 net/netfilter/nft_set_rbtree.c d = memcmp(this, key, set->klen); key 111 net/netfilter/nft_set_rbtree.c const u32 *key, const struct nft_set_ext **ext) key 117 net/netfilter/nft_set_rbtree.c ret = __nft_rbtree_lookup(net, set, key, ext, seq); key 123 net/netfilter/nft_set_rbtree.c ret = __nft_rbtree_lookup(net, set, key, ext, seq); key 130 net/netfilter/nft_set_rbtree.c const u32 *key, struct nft_rbtree_elem **elem, key 147 net/netfilter/nft_set_rbtree.c d = memcmp(this, key, set->klen); key 199 net/netfilter/nft_set_rbtree.c const u32 *key = (const u32 *)&elem->key.val; key 203 net/netfilter/nft_set_rbtree.c ret = __nft_rbtree_get(net, set, key, &rbe, seq, flags, genmask); key 209 net/netfilter/nft_set_rbtree.c ret = __nft_rbtree_get(net, set, key, &rbe, seq, flags, genmask); key 326 net/netfilter/nft_set_rbtree.c d = memcmp(nft_set_ext_key(&rbe->ext), &elem->key.val, key 11 net/netfilter/nft_socket.c enum nft_socket_keys key:8; key 50 net/netfilter/nft_socket.c switch(priv->key) { key 97 net/netfilter/nft_socket.c priv->key = ntohl(nla_get_u32(tb[NFTA_SOCKET_KEY])); key 98 net/netfilter/nft_socket.c switch(priv->key) { key 119 net/netfilter/nft_socket.c if (nla_put_u32(skb, NFTA_SOCKET_KEY, htonl(priv->key))) key 16 net/netfilter/nft_tunnel.c enum nft_tunnel_keys key:8; key 31 net/netfilter/nft_tunnel.c switch (priv->key) { key 56 net/netfilter/nft_tunnel.c *dest = ntohl(tunnel_id_to_key32(tun_info->key.tun_id)); key 83 net/netfilter/nft_tunnel.c priv->key = ntohl(nla_get_be32(tb[NFTA_TUNNEL_KEY])); key 84 net/netfilter/nft_tunnel.c switch (priv->key) { key 114 net/netfilter/nft_tunnel.c if (nla_put_be32(skb, NFTA_TUNNEL_KEY, htonl(priv->key))) key 178 net/netfilter/nft_tunnel.c info->key.u.ipv4.src = nla_get_be32(tb[NFTA_TUNNEL_KEY_IP_SRC]); key 180 net/netfilter/nft_tunnel.c info->key.u.ipv4.dst = nla_get_be32(tb[NFTA_TUNNEL_KEY_IP_DST]); key 207 net/netfilter/nft_tunnel.c memcpy(&info->key.u.ipv6.src, key 212 net/netfilter/nft_tunnel.c memcpy(&info->key.u.ipv6.dst, key 217 net/netfilter/nft_tunnel.c info->key.label = nla_get_be32(tb[NFTA_TUNNEL_KEY_IP6_FLOWLABEL]); key 361 net/netfilter/nft_tunnel.c info.key.tun_id = key32_to_tunnel_id(nla_get_be32(tb[NFTA_TUNNEL_KEY_ID])); key 362 net/netfilter/nft_tunnel.c info.key.tun_flags = TUNNEL_KEY | TUNNEL_CSUM | TUNNEL_NOCACHE; key 377 net/netfilter/nft_tunnel.c info.key.tp_src = nla_get_be16(tb[NFTA_TUNNEL_KEY_SPORT]); key 380 net/netfilter/nft_tunnel.c info.key.tp_dst = nla_get_be16(tb[NFTA_TUNNEL_KEY_DPORT]); key 391 net/netfilter/nft_tunnel.c info.key.tun_flags &= ~TUNNEL_CSUM; key 393 net/netfilter/nft_tunnel.c info.key.tun_flags |= TUNNEL_DONT_FRAGMENT; key 395 net/netfilter/nft_tunnel.c info.key.tun_flags |= TUNNEL_SEQ; key 398 net/netfilter/nft_tunnel.c info.key.tos = nla_get_u8(tb[NFTA_TUNNEL_KEY_TOS]); key 400 net/netfilter/nft_tunnel.c info.key.ttl = nla_get_u8(tb[NFTA_TUNNEL_KEY_TTL]); key 402 net/netfilter/nft_tunnel.c info.key.ttl = U8_MAX; key 451 net/netfilter/nft_tunnel.c if (nla_put_in6_addr(skb, NFTA_TUNNEL_KEY_IP6_SRC, &info->key.u.ipv6.src) < 0 || key 452 net/netfilter/nft_tunnel.c nla_put_in6_addr(skb, NFTA_TUNNEL_KEY_IP6_DST, &info->key.u.ipv6.dst) < 0 || key 453 net/netfilter/nft_tunnel.c nla_put_be32(skb, NFTA_TUNNEL_KEY_IP6_FLOWLABEL, info->key.label)) key 462 net/netfilter/nft_tunnel.c if (nla_put_in_addr(skb, NFTA_TUNNEL_KEY_IP_SRC, info->key.u.ipv4.src) < 0 || key 463 net/netfilter/nft_tunnel.c nla_put_in_addr(skb, NFTA_TUNNEL_KEY_IP_DST, info->key.u.ipv4.dst) < 0) key 510 net/netfilter/nft_tunnel.c if (nla_put_be16(skb, NFTA_TUNNEL_KEY_SPORT, info->key.tp_src) < 0 || key 511 net/netfilter/nft_tunnel.c nla_put_be16(skb, NFTA_TUNNEL_KEY_DPORT, info->key.tp_dst) < 0) key 522 net/netfilter/nft_tunnel.c if (info->key.tun_flags & TUNNEL_DONT_FRAGMENT) key 524 net/netfilter/nft_tunnel.c if (!(info->key.tun_flags & TUNNEL_CSUM)) key 526 net/netfilter/nft_tunnel.c if (info->key.tun_flags & TUNNEL_SEQ) key 542 net/netfilter/nft_tunnel.c tunnel_id_to_key32(info->key.tun_id)) || key 546 net/netfilter/nft_tunnel.c nla_put_u8(skb, NFTA_TUNNEL_KEY_TOS, info->key.tos) || key 547 net/netfilter/nft_tunnel.c nla_put_u8(skb, NFTA_TUNNEL_KEY_TTL, info->key.ttl) || key 26 net/netfilter/nft_xfrm.c enum nft_xfrm_keys key:8; key 53 net/netfilter/nft_xfrm.c priv->key = ntohl(nla_get_u32(tb[NFTA_XFRM_KEY])); key 54 net/netfilter/nft_xfrm.c switch (priv->key) { key 123 net/netfilter/nft_xfrm.c if (!xfrm_state_addr_ok(priv->key, key 130 net/netfilter/nft_xfrm.c switch (priv->key) { key 221 net/netfilter/nft_xfrm.c if (nla_put_be32(skb, NFTA_XFRM_KEY, htonl(priv->key))) key 40 net/netfilter/xt_connlimit.c u32 key[5]; key 61 net/netfilter/xt_connlimit.c memcpy(key, &addr, sizeof(addr.ip6)); key 62 net/netfilter/xt_connlimit.c key[4] = zone->id; key 65 net/netfilter/xt_connlimit.c key[0] = (info->flags & XT_CONNLIMIT_DADDR) ? key 68 net/netfilter/xt_connlimit.c key[0] &= info->mask.ip; key 69 net/netfilter/xt_connlimit.c key[1] = zone->id; key 72 net/netfilter/xt_connlimit.c connections = nf_conncount_count(net, info->data, key, tuple_ptr, key 104 net/netlabel/netlabel_domainhash.c static u32 netlbl_domhsh_hash(const char *key) key 113 net/netlabel/netlabel_domainhash.c for (iter = 0, val = 0, len = strlen(key); iter < len; iter++) key 114 net/netlabel/netlabel_domainhash.c val = (val << 4 | (val >> (8 * sizeof(u32) - 4))) ^ key[iter]; key 482 net/netlink/af_netlink.c const struct netlink_compare_arg *x = arg->key; key 71 net/openvswitch/actions.c struct sw_flow_key key[OVS_DEFERRED_ACTION_THRESHOLD]; key 85 net/openvswitch/actions.c struct sw_flow_key *key = NULL; key 88 net/openvswitch/actions.c key = &keys->key[level - 1]; key 89 net/openvswitch/actions.c *key = *key_; key 92 net/openvswitch/actions.c return key; key 124 net/openvswitch/actions.c const struct sw_flow_key *key, key 137 net/openvswitch/actions.c da->pkt_key = *key; key 143 net/openvswitch/actions.c static void invalidate_flow_key(struct sw_flow_key *key) key 145 net/openvswitch/actions.c key->mac_proto |= SW_FLOW_KEY_INVALID; key 148 net/openvswitch/actions.c static bool is_flow_key_valid(const struct sw_flow_key *key) key 150 net/openvswitch/actions.c return !(key->mac_proto & SW_FLOW_KEY_INVALID); key 154 net/openvswitch/actions.c struct sw_flow_key *key, key 160 net/openvswitch/actions.c struct sw_flow_key *key, key 163 net/openvswitch/actions.c static int push_mpls(struct sk_buff *skb, struct sw_flow_key *key, key 170 net/openvswitch/actions.c ovs_key_mac_proto(key) == MAC_PROTO_ETHERNET); key 174 net/openvswitch/actions.c invalidate_flow_key(key); key 178 net/openvswitch/actions.c static int pop_mpls(struct sk_buff *skb, struct sw_flow_key *key, key 184 net/openvswitch/actions.c ovs_key_mac_proto(key) == MAC_PROTO_ETHERNET); key 188 net/openvswitch/actions.c invalidate_flow_key(key); key 209 net/openvswitch/actions.c static int pop_vlan(struct sk_buff *skb, struct sw_flow_key *key) key 215 net/openvswitch/actions.c invalidate_flow_key(key); key 217 net/openvswitch/actions.c key->eth.vlan.tci = 0; key 218 net/openvswitch/actions.c key->eth.vlan.tpid = 0; key 223 net/openvswitch/actions.c static int push_vlan(struct sk_buff *skb, struct sw_flow_key *key, key 227 net/openvswitch/actions.c invalidate_flow_key(key); key 229 net/openvswitch/actions.c key->eth.vlan.tci = vlan->vlan_tci; key 230 net/openvswitch/actions.c key->eth.vlan.tpid = vlan->vlan_tpid; key 249 net/openvswitch/actions.c const struct ovs_key_ethernet *key, key 260 net/openvswitch/actions.c ether_addr_copy_masked(eth_hdr(skb)->h_source, key->eth_src, key 262 net/openvswitch/actions.c ether_addr_copy_masked(eth_hdr(skb)->h_dest, key->eth_dst, key 275 net/openvswitch/actions.c static int pop_eth(struct sk_buff *skb, struct sw_flow_key *key) key 282 net/openvswitch/actions.c key->mac_proto = MAC_PROTO_NONE; key 283 net/openvswitch/actions.c invalidate_flow_key(key); key 287 net/openvswitch/actions.c static int push_eth(struct sk_buff *skb, struct sw_flow_key *key, key 308 net/openvswitch/actions.c key->mac_proto = MAC_PROTO_ETHERNET; key 309 net/openvswitch/actions.c invalidate_flow_key(key); key 313 net/openvswitch/actions.c static int push_nsh(struct sk_buff *skb, struct sw_flow_key *key, key 323 net/openvswitch/actions.c key->mac_proto = MAC_PROTO_NONE; key 324 net/openvswitch/actions.c invalidate_flow_key(key); key 328 net/openvswitch/actions.c static int pop_nsh(struct sk_buff *skb, struct sw_flow_key *key) key 338 net/openvswitch/actions.c key->mac_proto = MAC_PROTO_ETHERNET; key 340 net/openvswitch/actions.c key->mac_proto = MAC_PROTO_NONE; key 341 net/openvswitch/actions.c invalidate_flow_key(key); key 445 net/openvswitch/actions.c const struct ovs_key_ipv4 *key, key 464 net/openvswitch/actions.c new_addr = OVS_MASKED(nh->saddr, key->ipv4_src, mask->ipv4_src); key 472 net/openvswitch/actions.c new_addr = OVS_MASKED(nh->daddr, key->ipv4_dst, mask->ipv4_dst); key 480 net/openvswitch/actions.c ipv4_change_dsfield(nh, ~mask->ipv4_tos, key->ipv4_tos); key 484 net/openvswitch/actions.c set_ip_ttl(skb, nh, key->ipv4_ttl, mask->ipv4_ttl); key 497 net/openvswitch/actions.c const struct ovs_key_ipv6 *key, key 518 net/openvswitch/actions.c mask_ipv6_addr(saddr, key->ipv6_src, mask->ipv6_src, masked); key 534 net/openvswitch/actions.c mask_ipv6_addr(daddr, key->ipv6_dst, mask->ipv6_dst, masked); key 550 net/openvswitch/actions.c ipv6_change_dsfield(nh, ~mask->ipv6_tclass, key->ipv6_tclass); key 554 net/openvswitch/actions.c set_ipv6_fl(nh, ntohl(key->ipv6_label), key 560 net/openvswitch/actions.c OVS_SET_MASKED(nh->hop_limit, key->ipv6_hlimit, key 577 net/openvswitch/actions.c struct ovs_key_nsh key; key 580 net/openvswitch/actions.c err = nsh_key_from_nlattr(a, &key, &mask); key 600 net/openvswitch/actions.c flags = OVS_MASKED(flags, key.base.flags, mask.base.flags); key 603 net/openvswitch/actions.c ttl = OVS_MASKED(ttl, key.base.ttl, mask.base.ttl); key 606 net/openvswitch/actions.c nh->path_hdr = OVS_MASKED(nh->path_hdr, key.base.path_hdr, key 613 net/openvswitch/actions.c OVS_MASKED(nh->md1.context[i], key.context[i], key 639 net/openvswitch/actions.c const struct ovs_key_udp *key, key 653 net/openvswitch/actions.c src = OVS_MASKED(uh->source, key->udp_src, mask->udp_src); key 654 net/openvswitch/actions.c dst = OVS_MASKED(uh->dest, key->udp_dst, mask->udp_dst); key 681 net/openvswitch/actions.c const struct ovs_key_tcp *key, key 694 net/openvswitch/actions.c src = OVS_MASKED(th->source, key->tcp_src, mask->tcp_src); key 699 net/openvswitch/actions.c dst = OVS_MASKED(th->dest, key->tcp_dst, mask->tcp_dst); key 710 net/openvswitch/actions.c const struct ovs_key_sctp *key, key 726 net/openvswitch/actions.c sh->source = OVS_MASKED(sh->source, key->sctp_src, mask->sctp_src); key 727 net/openvswitch/actions.c sh->dest = OVS_MASKED(sh->dest, key->sctp_dst, mask->sctp_dst); key 816 net/openvswitch/actions.c struct sw_flow_key *key) key 830 net/openvswitch/actions.c if (key->eth.type == htons(ETH_P_IP)) { key 835 net/openvswitch/actions.c ovs_key_mac_proto(key)); key 846 net/openvswitch/actions.c } else if (key->eth.type == htons(ETH_P_IPV6)) { key 855 net/openvswitch/actions.c ovs_key_mac_proto(key)); key 869 net/openvswitch/actions.c ovs_vport_name(vport), ntohs(key->eth.type), mru, key 880 net/openvswitch/actions.c struct sw_flow_key *key) key 889 net/openvswitch/actions.c if (skb->len - cutlen > ovs_mac_header_len(key)) key 892 net/openvswitch/actions.c pskb_trim(skb, ovs_mac_header_len(key)); key 897 net/openvswitch/actions.c ovs_vport_send(vport, skb, ovs_key_mac_proto(key)); key 901 net/openvswitch/actions.c ovs_fragment(net, vport, skb, mru, key); key 911 net/openvswitch/actions.c struct sw_flow_key *key, const struct nlattr *attr, key 960 net/openvswitch/actions.c return ovs_dp_upcall(dp, skb, key, &upcall, cutlen); key 968 net/openvswitch/actions.c struct sw_flow_key *key, const struct nlattr *attr, key 990 net/openvswitch/actions.c return clone_execute(dp, skb, key, 0, actions, rem, last, key 999 net/openvswitch/actions.c struct sw_flow_key *key, const struct nlattr *attr, key 1012 net/openvswitch/actions.c return clone_execute(dp, skb, key, 0, actions, rem, last, key 1016 net/openvswitch/actions.c static void execute_hash(struct sk_buff *skb, struct sw_flow_key *key, key 1028 net/openvswitch/actions.c key->ovs_flow_hash = hash; key 1127 net/openvswitch/actions.c struct sw_flow_key *key, key 1132 net/openvswitch/actions.c if (!is_flow_key_valid(key)) { key 1135 net/openvswitch/actions.c err = ovs_flow_key_update(skb, key); key 1139 net/openvswitch/actions.c BUG_ON(!is_flow_key_valid(key)); key 1142 net/openvswitch/actions.c return clone_execute(dp, skb, key, recirc_id, NULL, 0, last, true); key 1146 net/openvswitch/actions.c struct sw_flow_key *key, key 1175 net/openvswitch/actions.c return clone_execute(dp, skb, key, 0, nla_data(actions), key 1181 net/openvswitch/actions.c struct sw_flow_key *key, key 1201 net/openvswitch/actions.c do_output(dp, skb, port, key); key 1209 net/openvswitch/actions.c do_output(dp, clone, port, key); key 1223 net/openvswitch/actions.c output_userspace(dp, skb, key, a, attr, key 1229 net/openvswitch/actions.c execute_hash(skb, key, a); key 1233 net/openvswitch/actions.c err = push_mpls(skb, key, nla_data(a)); key 1237 net/openvswitch/actions.c err = pop_mpls(skb, key, nla_get_be16(a)); key 1241 net/openvswitch/actions.c err = push_vlan(skb, key, nla_data(a)); key 1245 net/openvswitch/actions.c err = pop_vlan(skb, key); key 1251 net/openvswitch/actions.c err = execute_recirc(dp, skb, key, a, last); key 1263 net/openvswitch/actions.c err = execute_set_action(skb, key, nla_data(a)); key 1268 net/openvswitch/actions.c err = execute_masked_set_action(skb, key, nla_data(a)); key 1274 net/openvswitch/actions.c err = sample(dp, skb, key, a, last); key 1282 net/openvswitch/actions.c if (!is_flow_key_valid(key)) { key 1283 net/openvswitch/actions.c err = ovs_flow_key_update(skb, key); key 1288 net/openvswitch/actions.c err = ovs_ct_execute(ovs_dp_get_net(dp), skb, key, key 1297 net/openvswitch/actions.c err = ovs_ct_clear(skb, key); key 1301 net/openvswitch/actions.c err = push_eth(skb, key, nla_data(a)); key 1305 net/openvswitch/actions.c err = pop_eth(skb, key); key 1316 net/openvswitch/actions.c err = push_nsh(skb, key, nh); key 1321 net/openvswitch/actions.c err = pop_nsh(skb, key); key 1325 net/openvswitch/actions.c if (ovs_meter_execute(dp, skb, key, nla_get_u32(a))) { key 1334 net/openvswitch/actions.c err = clone(dp, skb, key, a, last); key 1344 net/openvswitch/actions.c err = execute_check_pkt_len(dp, skb, key, a, last); key 1369 net/openvswitch/actions.c struct sw_flow_key *key, u32 recirc_id, key 1389 net/openvswitch/actions.c clone = clone_flow_key ? clone_key(key) : key; key 1410 net/openvswitch/actions.c da = add_deferred_actions(skb, key, actions, len); key 1413 net/openvswitch/actions.c key = &da->pkt_key; key 1414 net/openvswitch/actions.c key->recirc_id = recirc_id; key 1447 net/openvswitch/actions.c struct sw_flow_key *key = &da->pkt_key; key 1452 net/openvswitch/actions.c do_execute_actions(dp, skb, key, actions, actions_len); key 1454 net/openvswitch/actions.c ovs_dp_process_packet(skb, key); key 1464 net/openvswitch/actions.c struct sw_flow_key *key) key 1478 net/openvswitch/actions.c err = do_execute_actions(dp, skb, key, key 105 net/openvswitch/conntrack.c static u16 key_to_nfproto(const struct sw_flow_key *key) key 107 net/openvswitch/conntrack.c switch (ntohs(key->eth.type)) { key 175 net/openvswitch/conntrack.c static void __ovs_ct_update_key_orig_tp(struct sw_flow_key *key, key 179 net/openvswitch/conntrack.c key->ct_orig_proto = orig->dst.protonum; key 181 net/openvswitch/conntrack.c key->ct.orig_tp.src = htons(orig->dst.u.icmp.type); key 182 net/openvswitch/conntrack.c key->ct.orig_tp.dst = htons(orig->dst.u.icmp.code); key 184 net/openvswitch/conntrack.c key->ct.orig_tp.src = orig->src.u.all; key 185 net/openvswitch/conntrack.c key->ct.orig_tp.dst = orig->dst.u.all; key 189 net/openvswitch/conntrack.c static void __ovs_ct_update_key(struct sw_flow_key *key, u8 state, key 193 net/openvswitch/conntrack.c key->ct_state = state; key 194 net/openvswitch/conntrack.c key->ct_zone = zone->id; key 195 net/openvswitch/conntrack.c key->ct.mark = ovs_ct_get_mark(ct); key 196 net/openvswitch/conntrack.c ovs_ct_get_labels(ct, &key->ct.labels); key 207 net/openvswitch/conntrack.c if (key->eth.type == htons(ETH_P_IP) && key 209 net/openvswitch/conntrack.c key->ipv4.ct_orig.src = orig->src.u3.ip; key 210 net/openvswitch/conntrack.c key->ipv4.ct_orig.dst = orig->dst.u3.ip; key 211 net/openvswitch/conntrack.c __ovs_ct_update_key_orig_tp(key, orig, IPPROTO_ICMP); key 213 net/openvswitch/conntrack.c } else if (key->eth.type == htons(ETH_P_IPV6) && key 214 net/openvswitch/conntrack.c !sw_flow_key_is_nd(key) && key 216 net/openvswitch/conntrack.c key->ipv6.ct_orig.src = orig->src.u3.in6; key 217 net/openvswitch/conntrack.c key->ipv6.ct_orig.dst = orig->dst.u3.in6; key 218 net/openvswitch/conntrack.c __ovs_ct_update_key_orig_tp(key, orig, NEXTHDR_ICMP); key 225 net/openvswitch/conntrack.c key->ct_orig_proto = 0; key 235 net/openvswitch/conntrack.c struct sw_flow_key *key, bool post_ct, key 255 net/openvswitch/conntrack.c state |= key->ct_state & OVS_CS_F_NAT_MASK; key 268 net/openvswitch/conntrack.c __ovs_ct_update_key(key, state, zone, ct); key 274 net/openvswitch/conntrack.c void ovs_ct_fill_key(const struct sk_buff *skb, struct sw_flow_key *key) key 276 net/openvswitch/conntrack.c ovs_ct_update_key(skb, NULL, key, false, false); key 331 net/openvswitch/conntrack.c static int ovs_ct_set_mark(struct nf_conn *ct, struct sw_flow_key *key, key 342 net/openvswitch/conntrack.c key->ct.mark = new_mark; key 368 net/openvswitch/conntrack.c static int ovs_ct_init_labels(struct nf_conn *ct, struct sw_flow_key *key, key 404 net/openvswitch/conntrack.c memcpy(&key->ct.labels, cl->bits, OVS_CT_LABELS_LEN); key 409 net/openvswitch/conntrack.c static int ovs_ct_set_labels(struct nf_conn *ct, struct sw_flow_key *key, key 426 net/openvswitch/conntrack.c memcpy(&key->ct.labels, cl->bits, OVS_CT_LABELS_LEN); key 493 net/openvswitch/conntrack.c static int handle_fragments(struct net *net, struct sw_flow_key *key, key 499 net/openvswitch/conntrack.c if (key->eth.type == htons(ETH_P_IP)) { key 509 net/openvswitch/conntrack.c } else if (key->eth.type == htons(ETH_P_IPV6)) { key 520 net/openvswitch/conntrack.c key->ip.proto = ipv6_hdr(skb)->nexthdr; key 531 net/openvswitch/conntrack.c ovs_flow_key_update_l3l4(skb, key); key 533 net/openvswitch/conntrack.c key->ip.frag = OVS_FRAG_TYPE_NONE; key 650 net/openvswitch/conntrack.c const struct sw_flow_key *key, key 663 net/openvswitch/conntrack.c *ct_executed = (key->ct_state & OVS_CS_F_TRACKED) && key 664 net/openvswitch/conntrack.c !(key->ct_state & OVS_CS_F_INVALID) && key 665 net/openvswitch/conntrack.c (key->ct_zone == info->zone.id); key 667 net/openvswitch/conntrack.c if (*ct_executed || (!key->ct_state && info->force)) { key 669 net/openvswitch/conntrack.c !!(key->ct_state & key 678 net/openvswitch/conntrack.c const struct sw_flow_key *key, key 688 net/openvswitch/conntrack.c ct = ovs_ct_executed(net, key, info, skb, &ct_executed); key 814 net/openvswitch/conntrack.c static void ovs_nat_update_key(struct sw_flow_key *key, key 821 net/openvswitch/conntrack.c key->ct_state |= OVS_CS_F_SRC_NAT; key 822 net/openvswitch/conntrack.c if (key->eth.type == htons(ETH_P_IP)) key 823 net/openvswitch/conntrack.c key->ipv4.addr.src = ip_hdr(skb)->saddr; key 824 net/openvswitch/conntrack.c else if (key->eth.type == htons(ETH_P_IPV6)) key 825 net/openvswitch/conntrack.c memcpy(&key->ipv6.addr.src, &ipv6_hdr(skb)->saddr, key 826 net/openvswitch/conntrack.c sizeof(key->ipv6.addr.src)); key 830 net/openvswitch/conntrack.c if (key->ip.proto == IPPROTO_UDP) key 832 net/openvswitch/conntrack.c else if (key->ip.proto == IPPROTO_TCP) key 834 net/openvswitch/conntrack.c else if (key->ip.proto == IPPROTO_SCTP) key 839 net/openvswitch/conntrack.c key->tp.src = src; key 843 net/openvswitch/conntrack.c key->ct_state |= OVS_CS_F_DST_NAT; key 844 net/openvswitch/conntrack.c if (key->eth.type == htons(ETH_P_IP)) key 845 net/openvswitch/conntrack.c key->ipv4.addr.dst = ip_hdr(skb)->daddr; key 846 net/openvswitch/conntrack.c else if (key->eth.type == htons(ETH_P_IPV6)) key 847 net/openvswitch/conntrack.c memcpy(&key->ipv6.addr.dst, &ipv6_hdr(skb)->daddr, key 848 net/openvswitch/conntrack.c sizeof(key->ipv6.addr.dst)); key 852 net/openvswitch/conntrack.c if (key->ip.proto == IPPROTO_UDP) key 854 net/openvswitch/conntrack.c else if (key->ip.proto == IPPROTO_TCP) key 856 net/openvswitch/conntrack.c else if (key->ip.proto == IPPROTO_SCTP) key 861 net/openvswitch/conntrack.c key->tp.dst = dst; key 866 net/openvswitch/conntrack.c static int ovs_ct_nat(struct net *net, struct sw_flow_key *key, key 919 net/openvswitch/conntrack.c ovs_nat_update_key(key, skb, maniptype); key 924 net/openvswitch/conntrack.c static int ovs_ct_nat(struct net *net, struct sw_flow_key *key, key 939 net/openvswitch/conntrack.c static int __ovs_ct_lookup(struct net *net, struct sw_flow_key *key, key 948 net/openvswitch/conntrack.c bool cached = skb_nfct_cached(net, key, info, skb); key 977 net/openvswitch/conntrack.c key->ct_state = 0; key 980 net/openvswitch/conntrack.c ovs_ct_update_key(skb, info, key, true, true); key 995 net/openvswitch/conntrack.c if (info->nat && !(key->ct_state & OVS_CS_F_NAT_MASK) && key 997 net/openvswitch/conntrack.c ovs_ct_nat(net, key, info, skb, ct, ctinfo) != NF_ACCEPT) { key 1035 net/openvswitch/conntrack.c static int ovs_ct_lookup(struct net *net, struct sw_flow_key *key, key 1056 net/openvswitch/conntrack.c __ovs_ct_update_key(key, state, &info->zone, exp->master); key 1061 net/openvswitch/conntrack.c err = __ovs_ct_lookup(net, key, info, skb); key 1168 net/openvswitch/conntrack.c static int ovs_ct_commit(struct net *net, struct sw_flow_key *key, key 1176 net/openvswitch/conntrack.c err = __ovs_ct_lookup(net, key, info, skb); key 1219 net/openvswitch/conntrack.c err = ovs_ct_set_mark(ct, key, info->mark.value, key 1225 net/openvswitch/conntrack.c err = ovs_ct_init_labels(ct, key, &info->labels.value, key 1231 net/openvswitch/conntrack.c err = ovs_ct_set_labels(ct, key, &info->labels.value, key 1279 net/openvswitch/conntrack.c struct sw_flow_key *key, key 1293 net/openvswitch/conntrack.c if (key->ip.frag != OVS_FRAG_TYPE_NONE) { key 1294 net/openvswitch/conntrack.c err = handle_fragments(net, key, info->zone.id, skb); key 1300 net/openvswitch/conntrack.c err = ovs_ct_commit(net, key, info, skb); key 1302 net/openvswitch/conntrack.c err = ovs_ct_lookup(net, key, info, skb); key 1311 net/openvswitch/conntrack.c int ovs_ct_clear(struct sk_buff *skb, struct sw_flow_key *key) key 1316 net/openvswitch/conntrack.c ovs_ct_fill_key(skb, key); key 1323 net/openvswitch/conntrack.c const struct sw_flow_key *key, bool log) key 1330 net/openvswitch/conntrack.c key->ip.proto); key 1345 net/openvswitch/conntrack.c key->ip.proto); key 1649 net/openvswitch/conntrack.c const struct sw_flow_key *key, key 1657 net/openvswitch/conntrack.c family = key_to_nfproto(key); key 1681 net/openvswitch/conntrack.c if (nf_ct_set_timeout(net, ct_info.ct, family, key->ip.proto, key 1692 net/openvswitch/conntrack.c err = ovs_ct_add_helper(&ct_info, helper, key, log); key 26 net/openvswitch/conntrack.h int ovs_ct_clear(struct sk_buff *skb, struct sw_flow_key *key); key 28 net/openvswitch/conntrack.h void ovs_ct_fill_key(const struct sk_buff *skb, struct sw_flow_key *key); key 50 net/openvswitch/conntrack.h const struct sw_flow_key *key, key 63 net/openvswitch/conntrack.h struct sw_flow_key *key, key 71 net/openvswitch/conntrack.h struct sw_flow_key *key) key 77 net/openvswitch/conntrack.h struct sw_flow_key *key) key 79 net/openvswitch/conntrack.h key->ct_state = 0; key 80 net/openvswitch/conntrack.h key->ct_zone = 0; key 81 net/openvswitch/conntrack.h key->ct.mark = 0; key 82 net/openvswitch/conntrack.h memset(&key->ct.labels, 0, sizeof(key->ct.labels)); key 86 net/openvswitch/conntrack.h key->ct_orig_proto = 0; key 216 net/openvswitch/datapath.c void ovs_dp_process_packet(struct sk_buff *skb, struct sw_flow_key *key) key 230 net/openvswitch/datapath.c flow = ovs_flow_tbl_lookup_stats(&dp->table, key, &n_mask_hit); key 238 net/openvswitch/datapath.c error = ovs_dp_upcall(dp, skb, key, &upcall, 0); key 247 net/openvswitch/datapath.c ovs_flow_stats_update(flow, key->tp.flags, skb); key 249 net/openvswitch/datapath.c error = ovs_execute_actions(dp, skb, sf_acts, key); key 265 net/openvswitch/datapath.c const struct sw_flow_key *key, key 278 net/openvswitch/datapath.c err = queue_userspace_packet(dp, skb, key, upcall_info, cutlen); key 280 net/openvswitch/datapath.c err = queue_gso_packets(dp, skb, key, upcall_info, cutlen); key 297 net/openvswitch/datapath.c const struct sw_flow_key *key, key 318 net/openvswitch/datapath.c later_key = *key; key 326 net/openvswitch/datapath.c key = &later_key; key 328 net/openvswitch/datapath.c err = queue_userspace_packet(dp, skb, key, upcall_info, cutlen); key 384 net/openvswitch/datapath.c const struct sw_flow_key *key, key 447 net/openvswitch/datapath.c err = ovs_nla_put_key(key, key, OVS_PACKET_ATTR_KEY, false, user_skb); key 577 net/openvswitch/datapath.c packet, &flow->key, log); key 582 net/openvswitch/datapath.c &flow->key, &acts, log); key 587 net/openvswitch/datapath.c packet->priority = flow->key.phy.priority; key 588 net/openvswitch/datapath.c packet->mark = flow->key.phy.skb_mark; key 596 net/openvswitch/datapath.c input_vport = ovs_vport_rcu(dp, flow->key.phy.in_port); key 608 net/openvswitch/datapath.c err = ovs_execute_actions(dp, packet, sf_acts, &flow->key); key 932 net/openvswitch/datapath.c ovs_match_init(&match, &new_flow->key, false, &mask); key 940 net/openvswitch/datapath.c &new_flow->key, log); key 946 net/openvswitch/datapath.c match.key = new_flow->id.unmasked_key; key 948 net/openvswitch/datapath.c ovs_flow_mask_key(&new_flow->key, &new_flow->key, true, &mask); key 952 net/openvswitch/datapath.c &new_flow->key, &acts, log); key 976 net/openvswitch/datapath.c flow = ovs_flow_tbl_lookup(&dp->table, &new_flow->key); key 1062 net/openvswitch/datapath.c const struct sw_flow_key *key, key 1070 net/openvswitch/datapath.c ovs_flow_mask_key(&masked_key, key, true, mask); key 1097 net/openvswitch/datapath.c struct sw_flow_key *key, key 1106 net/openvswitch/datapath.c ovs_match_init(match, key, true, &mask); key 1121 net/openvswitch/datapath.c *acts = get_flow_actions(net, a[OVS_FLOW_ATTR_ACTIONS], key, key 1140 net/openvswitch/datapath.c struct sw_flow_key key; key 1159 net/openvswitch/datapath.c error = ovs_nla_init_match_and_action(net, &match, &key, a, key 1242 net/openvswitch/datapath.c struct sw_flow_key key; key 1255 net/openvswitch/datapath.c ovs_match_init(&match, &key, true, NULL); key 1301 net/openvswitch/datapath.c struct sw_flow_key key; key 1314 net/openvswitch/datapath.c ovs_match_init(&match, &key, true, NULL); key 223 net/openvswitch/datapath.h void ovs_dp_process_packet(struct sk_buff *skb, struct sw_flow_key *key); key 242 net/openvswitch/flow.c static int parse_ipv6hdr(struct sk_buff *skb, struct sw_flow_key *key) key 257 net/openvswitch/flow.c key->ip.proto = NEXTHDR_NONE; key 258 net/openvswitch/flow.c key->ip.tos = ipv6_get_dsfield(nh); key 259 net/openvswitch/flow.c key->ip.ttl = nh->hop_limit; key 260 net/openvswitch/flow.c key->ipv6.label = *(__be32 *)nh & htonl(IPV6_FLOWINFO_FLOWLABEL); key 261 net/openvswitch/flow.c key->ipv6.addr.src = nh->saddr; key 262 net/openvswitch/flow.c key->ipv6.addr.dst = nh->daddr; key 267 net/openvswitch/flow.c key->ip.frag = OVS_FRAG_TYPE_LATER; key 268 net/openvswitch/flow.c key->ip.proto = nexthdr; key 271 net/openvswitch/flow.c key->ip.frag = OVS_FRAG_TYPE_FIRST; key 273 net/openvswitch/flow.c key->ip.frag = OVS_FRAG_TYPE_NONE; key 285 net/openvswitch/flow.c key->ip.proto = nexthdr; key 337 net/openvswitch/flow.c static void clear_vlan(struct sw_flow_key *key) key 339 net/openvswitch/flow.c key->eth.vlan.tci = 0; key 340 net/openvswitch/flow.c key->eth.vlan.tpid = 0; key 341 net/openvswitch/flow.c key->eth.cvlan.tci = 0; key 342 net/openvswitch/flow.c key->eth.cvlan.tpid = 0; key 345 net/openvswitch/flow.c static int parse_vlan(struct sk_buff *skb, struct sw_flow_key *key) key 350 net/openvswitch/flow.c key->eth.vlan.tci = htons(skb->vlan_tci) | htons(VLAN_CFI_MASK); key 351 net/openvswitch/flow.c key->eth.vlan.tpid = skb->vlan_proto; key 354 net/openvswitch/flow.c res = parse_vlan_tag(skb, &key->eth.vlan, true); key 360 net/openvswitch/flow.c res = parse_vlan_tag(skb, &key->eth.cvlan, false); key 405 net/openvswitch/flow.c static int parse_icmpv6(struct sk_buff *skb, struct sw_flow_key *key, key 413 net/openvswitch/flow.c key->tp.src = htons(icmp->icmp6_type); key 414 net/openvswitch/flow.c key->tp.dst = htons(icmp->icmp6_code); key 415 net/openvswitch/flow.c memset(&key->ipv6.nd, 0, sizeof(key->ipv6.nd)); key 434 net/openvswitch/flow.c key->ipv6.nd.target = nd->target; key 452 net/openvswitch/flow.c if (unlikely(!is_zero_ether_addr(key->ipv6.nd.sll))) key 454 net/openvswitch/flow.c ether_addr_copy(key->ipv6.nd.sll, key 458 net/openvswitch/flow.c if (unlikely(!is_zero_ether_addr(key->ipv6.nd.tll))) key 460 net/openvswitch/flow.c ether_addr_copy(key->ipv6.nd.tll, key 472 net/openvswitch/flow.c memset(&key->ipv6.nd.target, 0, sizeof(key->ipv6.nd.target)); key 473 net/openvswitch/flow.c memset(key->ipv6.nd.sll, 0, sizeof(key->ipv6.nd.sll)); key 474 net/openvswitch/flow.c memset(key->ipv6.nd.tll, 0, sizeof(key->ipv6.nd.tll)); key 479 net/openvswitch/flow.c static int parse_nsh(struct sk_buff *skb, struct sw_flow_key *key) key 502 net/openvswitch/flow.c key->nsh.base.flags = nsh_get_flags(nh); key 503 net/openvswitch/flow.c key->nsh.base.ttl = nsh_get_ttl(nh); key 504 net/openvswitch/flow.c key->nsh.base.mdtype = nh->mdtype; key 505 net/openvswitch/flow.c key->nsh.base.np = nh->np; key 506 net/openvswitch/flow.c key->nsh.base.path_hdr = nh->path_hdr; key 507 net/openvswitch/flow.c switch (key->nsh.base.mdtype) { key 511 net/openvswitch/flow.c memcpy(key->nsh.context, nh->md1.context, key 515 net/openvswitch/flow.c memset(key->nsh.context, 0, key 532 net/openvswitch/flow.c static int key_extract_l3l4(struct sk_buff *skb, struct sw_flow_key *key) key 537 net/openvswitch/flow.c if (key->eth.type == htons(ETH_P_IP)) { key 543 net/openvswitch/flow.c memset(&key->ip, 0, sizeof(key->ip)); key 544 net/openvswitch/flow.c memset(&key->ipv4, 0, sizeof(key->ipv4)); key 553 net/openvswitch/flow.c key->ipv4.addr.src = nh->saddr; key 554 net/openvswitch/flow.c key->ipv4.addr.dst = nh->daddr; key 556 net/openvswitch/flow.c key->ip.proto = nh->protocol; key 557 net/openvswitch/flow.c key->ip.tos = nh->tos; key 558 net/openvswitch/flow.c key->ip.ttl = nh->ttl; key 562 net/openvswitch/flow.c key->ip.frag = OVS_FRAG_TYPE_LATER; key 563 net/openvswitch/flow.c memset(&key->tp, 0, sizeof(key->tp)); key 568 net/openvswitch/flow.c key->ip.frag = OVS_FRAG_TYPE_FIRST; key 570 net/openvswitch/flow.c key->ip.frag = OVS_FRAG_TYPE_NONE; key 573 net/openvswitch/flow.c if (key->ip.proto == IPPROTO_TCP) { key 576 net/openvswitch/flow.c key->tp.src = tcp->source; key 577 net/openvswitch/flow.c key->tp.dst = tcp->dest; key 578 net/openvswitch/flow.c key->tp.flags = TCP_FLAGS_BE16(tcp); key 580 net/openvswitch/flow.c memset(&key->tp, 0, sizeof(key->tp)); key 583 net/openvswitch/flow.c } else if (key->ip.proto == IPPROTO_UDP) { key 586 net/openvswitch/flow.c key->tp.src = udp->source; key 587 net/openvswitch/flow.c key->tp.dst = udp->dest; key 589 net/openvswitch/flow.c memset(&key->tp, 0, sizeof(key->tp)); key 591 net/openvswitch/flow.c } else if (key->ip.proto == IPPROTO_SCTP) { key 594 net/openvswitch/flow.c key->tp.src = sctp->source; key 595 net/openvswitch/flow.c key->tp.dst = sctp->dest; key 597 net/openvswitch/flow.c memset(&key->tp, 0, sizeof(key->tp)); key 599 net/openvswitch/flow.c } else if (key->ip.proto == IPPROTO_ICMP) { key 605 net/openvswitch/flow.c key->tp.src = htons(icmp->type); key 606 net/openvswitch/flow.c key->tp.dst = htons(icmp->code); key 608 net/openvswitch/flow.c memset(&key->tp, 0, sizeof(key->tp)); key 612 net/openvswitch/flow.c } else if (key->eth.type == htons(ETH_P_ARP) || key 613 net/openvswitch/flow.c key->eth.type == htons(ETH_P_RARP)) { key 627 net/openvswitch/flow.c key->ip.proto = ntohs(arp->ar_op); key 629 net/openvswitch/flow.c key->ip.proto = 0; key 631 net/openvswitch/flow.c memcpy(&key->ipv4.addr.src, arp->ar_sip, sizeof(key->ipv4.addr.src)); key 632 net/openvswitch/flow.c memcpy(&key->ipv4.addr.dst, arp->ar_tip, sizeof(key->ipv4.addr.dst)); key 633 net/openvswitch/flow.c ether_addr_copy(key->ipv4.arp.sha, arp->ar_sha); key 634 net/openvswitch/flow.c ether_addr_copy(key->ipv4.arp.tha, arp->ar_tha); key 636 net/openvswitch/flow.c memset(&key->ip, 0, sizeof(key->ip)); key 637 net/openvswitch/flow.c memset(&key->ipv4, 0, sizeof(key->ipv4)); key 639 net/openvswitch/flow.c } else if (eth_p_mpls(key->eth.type)) { key 653 net/openvswitch/flow.c memcpy(&key->mpls.top_lse, &lse, MPLS_HLEN); key 661 net/openvswitch/flow.c } else if (key->eth.type == htons(ETH_P_IPV6)) { key 664 net/openvswitch/flow.c nh_len = parse_ipv6hdr(skb, key); key 668 net/openvswitch/flow.c memset(&key->ip, 0, sizeof(key->ip)); key 669 net/openvswitch/flow.c memset(&key->ipv6.addr, 0, sizeof(key->ipv6.addr)); key 681 net/openvswitch/flow.c if (key->ip.frag == OVS_FRAG_TYPE_LATER) { key 682 net/openvswitch/flow.c memset(&key->tp, 0, sizeof(key->tp)); key 686 net/openvswitch/flow.c key->ip.frag = OVS_FRAG_TYPE_FIRST; key 689 net/openvswitch/flow.c if (key->ip.proto == NEXTHDR_TCP) { key 692 net/openvswitch/flow.c key->tp.src = tcp->source; key 693 net/openvswitch/flow.c key->tp.dst = tcp->dest; key 694 net/openvswitch/flow.c key->tp.flags = TCP_FLAGS_BE16(tcp); key 696 net/openvswitch/flow.c memset(&key->tp, 0, sizeof(key->tp)); key 698 net/openvswitch/flow.c } else if (key->ip.proto == NEXTHDR_UDP) { key 701 net/openvswitch/flow.c key->tp.src = udp->source; key 702 net/openvswitch/flow.c key->tp.dst = udp->dest; key 704 net/openvswitch/flow.c memset(&key->tp, 0, sizeof(key->tp)); key 706 net/openvswitch/flow.c } else if (key->ip.proto == NEXTHDR_SCTP) { key 709 net/openvswitch/flow.c key->tp.src = sctp->source; key 710 net/openvswitch/flow.c key->tp.dst = sctp->dest; key 712 net/openvswitch/flow.c memset(&key->tp, 0, sizeof(key->tp)); key 714 net/openvswitch/flow.c } else if (key->ip.proto == NEXTHDR_ICMP) { key 716 net/openvswitch/flow.c error = parse_icmpv6(skb, key, nh_len); key 720 net/openvswitch/flow.c memset(&key->tp, 0, sizeof(key->tp)); key 723 net/openvswitch/flow.c } else if (key->eth.type == htons(ETH_P_NSH)) { key 724 net/openvswitch/flow.c error = parse_nsh(skb, key); key 756 net/openvswitch/flow.c static int key_extract(struct sk_buff *skb, struct sw_flow_key *key) key 761 net/openvswitch/flow.c key->tp.flags = 0; key 766 net/openvswitch/flow.c clear_vlan(key); key 767 net/openvswitch/flow.c if (ovs_key_mac_proto(key) == MAC_PROTO_NONE) { key 772 net/openvswitch/flow.c key->eth.type = skb->protocol; key 775 net/openvswitch/flow.c ether_addr_copy(key->eth.src, eth->h_source); key 776 net/openvswitch/flow.c ether_addr_copy(key->eth.dst, eth->h_dest); key 783 net/openvswitch/flow.c if (unlikely(parse_vlan(skb, key))) key 786 net/openvswitch/flow.c key->eth.type = parse_ethertype(skb); key 787 net/openvswitch/flow.c if (unlikely(key->eth.type == htons(0))) key 794 net/openvswitch/flow.c if (key->eth.cvlan.tci & htons(VLAN_CFI_MASK)) key 795 net/openvswitch/flow.c skb->protocol = key->eth.cvlan.tpid; key 797 net/openvswitch/flow.c skb->protocol = key->eth.type; key 806 net/openvswitch/flow.c return key_extract_l3l4(skb, key); key 812 net/openvswitch/flow.c int ovs_flow_key_update_l3l4(struct sk_buff *skb, struct sw_flow_key *key) key 814 net/openvswitch/flow.c return key_extract_l3l4(skb, key); key 817 net/openvswitch/flow.c int ovs_flow_key_update(struct sk_buff *skb, struct sw_flow_key *key) key 821 net/openvswitch/flow.c res = key_extract(skb, key); key 823 net/openvswitch/flow.c key->mac_proto &= ~SW_FLOW_KEY_INVALID; key 843 net/openvswitch/flow.c struct sk_buff *skb, struct sw_flow_key *key) key 852 net/openvswitch/flow.c key->tun_proto = ip_tunnel_info_af(tun_info); key 853 net/openvswitch/flow.c memcpy(&key->tun_key, &tun_info->key, sizeof(key->tun_key)); key 858 net/openvswitch/flow.c > sizeof(key->tun_opts)); key 860 net/openvswitch/flow.c ip_tunnel_info_opts_get(TUN_METADATA_OPTS(key, tun_info->options_len), key 862 net/openvswitch/flow.c key->tun_opts_len = tun_info->options_len; key 864 net/openvswitch/flow.c key->tun_opts_len = 0; key 867 net/openvswitch/flow.c key->tun_proto = 0; key 868 net/openvswitch/flow.c key->tun_opts_len = 0; key 869 net/openvswitch/flow.c memset(&key->tun_key, 0, sizeof(key->tun_key)); key 872 net/openvswitch/flow.c key->phy.priority = skb->priority; key 873 net/openvswitch/flow.c key->phy.in_port = OVS_CB(skb)->input_vport->port_no; key 874 net/openvswitch/flow.c key->phy.skb_mark = skb->mark; key 875 net/openvswitch/flow.c key->ovs_flow_hash = 0; key 879 net/openvswitch/flow.c key->mac_proto = res; key 884 net/openvswitch/flow.c key->recirc_id = tc_ext ? tc_ext->chain : 0; key 886 net/openvswitch/flow.c key->recirc_id = 0; key 889 net/openvswitch/flow.c key->recirc_id = 0; key 892 net/openvswitch/flow.c err = key_extract(skb, key); key 894 net/openvswitch/flow.c ovs_ct_fill_key(skb, key); /* Must be after key_extract(). */ key 900 net/openvswitch/flow.c struct sw_flow_key *key, bool log) key 911 net/openvswitch/flow.c err = ovs_nla_get_flow_metadata(net, a, attrs, key, log); key 924 net/openvswitch/flow.c skb->protocol = key->eth.type; key 925 net/openvswitch/flow.c err = key_extract(skb, key); key 934 net/openvswitch/flow.c key->eth.type != htons(ETH_P_IP)) key 937 net/openvswitch/flow.c (key->eth.type != htons(ETH_P_IPV6) || key 938 net/openvswitch/flow.c sw_flow_key_is_nd(key))) key 152 net/openvswitch/flow.h static inline bool sw_flow_key_is_nd(const struct sw_flow_key *key) key 154 net/openvswitch/flow.h return key->eth.type == htons(ETH_P_IPV6) && key 155 net/openvswitch/flow.h key->ip.proto == NEXTHDR_ICMP && key 156 net/openvswitch/flow.h key->tp.dst == 0 && key 157 net/openvswitch/flow.h (key->tp.src == htons(NDISC_NEIGHBOUR_SOLICITATION) || key 158 net/openvswitch/flow.h key->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)); key 171 net/openvswitch/flow.h struct sw_flow_key key; key 175 net/openvswitch/flow.h struct sw_flow_key *key; key 214 net/openvswitch/flow.h struct sw_flow_key key; key 240 net/openvswitch/flow.h static inline u8 ovs_key_mac_proto(const struct sw_flow_key *key) key 242 net/openvswitch/flow.h return key->mac_proto & ~SW_FLOW_KEY_INVALID; key 250 net/openvswitch/flow.h static inline u16 ovs_mac_header_len(const struct sw_flow_key *key) key 252 net/openvswitch/flow.h return __ovs_mac_header_len(ovs_key_mac_proto(key)); key 272 net/openvswitch/flow.h int ovs_flow_key_update(struct sk_buff *skb, struct sw_flow_key *key); key 273 net/openvswitch/flow.h int ovs_flow_key_update_l3l4(struct sk_buff *skb, struct sw_flow_key *key); key 276 net/openvswitch/flow.h struct sw_flow_key *key); key 280 net/openvswitch/flow.h struct sw_flow_key *key, bool log); key 117 net/openvswitch/flow_netlink.c sizeof((match)->key->field), is_mask); \ key 119 net/openvswitch/flow_netlink.c (match)->mask->key.field = value; \ key 121 net/openvswitch/flow_netlink.c (match)->key->field = value; \ key 128 net/openvswitch/flow_netlink.c memcpy((u8 *)&(match)->mask->key + offset, value_p, \ key 131 net/openvswitch/flow_netlink.c memcpy((u8 *)(match)->key + offset, value_p, len); \ key 141 net/openvswitch/flow_netlink.c sizeof((match)->key->field), is_mask); \ key 143 net/openvswitch/flow_netlink.c memset((u8 *)&(match)->mask->key.field, value, \ key 144 net/openvswitch/flow_netlink.c sizeof((match)->mask->key.field)); \ key 146 net/openvswitch/flow_netlink.c memset((u8 *)&(match)->key->field, value, \ key 147 net/openvswitch/flow_netlink.c sizeof((match)->key->field)); \ key 179 net/openvswitch/flow_netlink.c if (match->key->eth.type == htons(ETH_P_ARP) key 180 net/openvswitch/flow_netlink.c || match->key->eth.type == htons(ETH_P_RARP)) { key 182 net/openvswitch/flow_netlink.c if (match->mask && (match->mask->key.eth.type == htons(0xffff))) key 186 net/openvswitch/flow_netlink.c if (eth_p_mpls(match->key->eth.type)) { key 188 net/openvswitch/flow_netlink.c if (match->mask && (match->mask->key.eth.type == htons(0xffff))) key 192 net/openvswitch/flow_netlink.c if (match->key->eth.type == htons(ETH_P_IP)) { key 194 net/openvswitch/flow_netlink.c if (match->mask && match->mask->key.eth.type == htons(0xffff)) { key 199 net/openvswitch/flow_netlink.c if (match->key->ip.frag != OVS_FRAG_TYPE_LATER) { key 200 net/openvswitch/flow_netlink.c if (match->key->ip.proto == IPPROTO_UDP) { key 202 net/openvswitch/flow_netlink.c if (match->mask && (match->mask->key.ip.proto == 0xff)) key 206 net/openvswitch/flow_netlink.c if (match->key->ip.proto == IPPROTO_SCTP) { key 208 net/openvswitch/flow_netlink.c if (match->mask && (match->mask->key.ip.proto == 0xff)) key 212 net/openvswitch/flow_netlink.c if (match->key->ip.proto == IPPROTO_TCP) { key 215 net/openvswitch/flow_netlink.c if (match->mask && (match->mask->key.ip.proto == 0xff)) { key 221 net/openvswitch/flow_netlink.c if (match->key->ip.proto == IPPROTO_ICMP) { key 223 net/openvswitch/flow_netlink.c if (match->mask && (match->mask->key.ip.proto == 0xff)) key 229 net/openvswitch/flow_netlink.c if (match->key->eth.type == htons(ETH_P_IPV6)) { key 231 net/openvswitch/flow_netlink.c if (match->mask && match->mask->key.eth.type == htons(0xffff)) { key 236 net/openvswitch/flow_netlink.c if (match->key->ip.frag != OVS_FRAG_TYPE_LATER) { key 237 net/openvswitch/flow_netlink.c if (match->key->ip.proto == IPPROTO_UDP) { key 239 net/openvswitch/flow_netlink.c if (match->mask && (match->mask->key.ip.proto == 0xff)) key 243 net/openvswitch/flow_netlink.c if (match->key->ip.proto == IPPROTO_SCTP) { key 245 net/openvswitch/flow_netlink.c if (match->mask && (match->mask->key.ip.proto == 0xff)) key 249 net/openvswitch/flow_netlink.c if (match->key->ip.proto == IPPROTO_TCP) { key 252 net/openvswitch/flow_netlink.c if (match->mask && (match->mask->key.ip.proto == 0xff)) { key 258 net/openvswitch/flow_netlink.c if (match->key->ip.proto == IPPROTO_ICMPV6) { key 260 net/openvswitch/flow_netlink.c if (match->mask && (match->mask->key.ip.proto == 0xff)) key 263 net/openvswitch/flow_netlink.c if (match->key->tp.src == key 265 net/openvswitch/flow_netlink.c match->key->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { key 273 net/openvswitch/flow_netlink.c if (match->mask && (match->mask->key.tp.src == htons(0xff))) key 280 net/openvswitch/flow_netlink.c if (match->key->eth.type == htons(ETH_P_NSH)) { key 283 net/openvswitch/flow_netlink.c match->mask->key.eth.type == htons(0xffff)) { key 525 net/openvswitch/flow_netlink.c if (nla_len(a) > sizeof(match->key->tun_opts)) { key 527 net/openvswitch/flow_netlink.c nla_len(a), sizeof(match->key->tun_opts)); key 555 net/openvswitch/flow_netlink.c if (match->key->tun_opts_len != nla_len(a)) { key 557 net/openvswitch/flow_netlink.c match->key->tun_opts_len, nla_len(a)); key 579 net/openvswitch/flow_netlink.c BUILD_BUG_ON(sizeof(opts) > sizeof(match->key->tun_opts)); key 633 net/openvswitch/flow_netlink.c sizeof(match->key->tun_opts)); key 635 net/openvswitch/flow_netlink.c if (nla_len(a) > sizeof(match->key->tun_opts)) { key 637 net/openvswitch/flow_netlink.c nla_len(a), sizeof(match->key->tun_opts)); key 811 net/openvswitch/flow_netlink.c if (match->key->tun_key.u.ipv4.src || key 812 net/openvswitch/flow_netlink.c match->key->tun_key.u.ipv4.dst || key 813 net/openvswitch/flow_netlink.c match->key->tun_key.tp_src || key 814 net/openvswitch/flow_netlink.c match->key->tun_key.tp_dst || key 815 net/openvswitch/flow_netlink.c match->key->tun_key.ttl || key 816 net/openvswitch/flow_netlink.c match->key->tun_key.tos || key 821 net/openvswitch/flow_netlink.c } else if (!match->key->tun_key.u.ipv4.dst) { key 826 net/openvswitch/flow_netlink.c if (ipv6 && ipv6_addr_any(&match->key->tun_key.u.ipv6.dst)) { key 954 net/openvswitch/flow_netlink.c return __ip_tun_to_nlattr(skb, &tun_info->key, key 1027 net/openvswitch/flow_netlink.c bool encap_valid = !!(match->key->eth.vlan.tci & key 1029 net/openvswitch/flow_netlink.c bool i_encap_valid = !!(match->key->eth.cvlan.tci & key 1110 net/openvswitch/flow_netlink.c encap_valid = !!(match->key->eth.vlan.tci & htons(VLAN_CFI_MASK)); key 1252 net/openvswitch/flow_netlink.c sizeof(match->key->ipv6.ct_orig.src), key 1255 net/openvswitch/flow_netlink.c sizeof(match->key->ipv6.ct_orig.dst), key 1531 net/openvswitch/flow_netlink.c } else if (!match->key->eth.type) { key 1588 net/openvswitch/flow_netlink.c sizeof(match->key->ipv6.addr.src), key 1592 net/openvswitch/flow_netlink.c sizeof(match->key->ipv6.addr.dst), key 1701 net/openvswitch/flow_netlink.c sizeof(match->key->ipv6.nd.target), key 1804 net/openvswitch/flow_netlink.c if (match->key->tun_proto) key 1868 net/openvswitch/flow_netlink.c const struct sw_flow_key *key, bool log) key 1879 net/openvswitch/flow_netlink.c memcpy(new_key, key, sizeof(*key)); key 1912 net/openvswitch/flow_netlink.c u64 attrs, struct sw_flow_key *key, bool log) key 1917 net/openvswitch/flow_netlink.c match.key = key; key 1919 net/openvswitch/flow_netlink.c key->ct_state = 0; key 1920 net/openvswitch/flow_netlink.c key->ct_zone = 0; key 1921 net/openvswitch/flow_netlink.c key->ct_orig_proto = 0; key 1922 net/openvswitch/flow_netlink.c memset(&key->ct, 0, sizeof(key->ct)); key 1923 net/openvswitch/flow_netlink.c memset(&key->ipv4.ct_orig, 0, sizeof(key->ipv4.ct_orig)); key 1924 net/openvswitch/flow_netlink.c memset(&key->ipv6.ct_orig, 0, sizeof(key->ipv6.ct_orig)); key 1926 net/openvswitch/flow_netlink.c key->phy.in_port = DP_MAX_PORTS; key 2242 net/openvswitch/flow_netlink.c return ovs_nla_put_key(&flow->key, &flow->key, key 2249 net/openvswitch/flow_netlink.c return ovs_nla_put_key(&flow->key, &flow->mask->key, key 2407 net/openvswitch/flow_netlink.c const struct sw_flow_key *key, key 2412 net/openvswitch/flow_netlink.c const struct sw_flow_key *key, key 2465 net/openvswitch/flow_netlink.c err = __ovs_nla_copy_actions(net, actions, key, sfa, key 2478 net/openvswitch/flow_netlink.c const struct sw_flow_key *key, key 2500 net/openvswitch/flow_netlink.c err = __ovs_nla_copy_actions(net, attr, key, sfa, key 2511 net/openvswitch/flow_netlink.c struct sw_flow_key *key, key 2516 net/openvswitch/flow_netlink.c match->key = key; key 2520 net/openvswitch/flow_netlink.c memset(key, 0, sizeof(*key)); key 2523 net/openvswitch/flow_netlink.c memset(&mask->key, 0, sizeof(mask->key)); key 2528 net/openvswitch/flow_netlink.c static int validate_geneve_opts(struct sw_flow_key *key) key 2531 net/openvswitch/flow_netlink.c int opts_len = key->tun_opts_len; key 2534 net/openvswitch/flow_netlink.c option = (struct geneve_opt *)TUN_METADATA_OPTS(key, key->tun_opts_len); key 2551 net/openvswitch/flow_netlink.c key->tun_key.tun_flags |= crit_opt ? TUNNEL_CRIT_OPT : 0; key 2560 net/openvswitch/flow_netlink.c struct sw_flow_key key; key 2569 net/openvswitch/flow_netlink.c ovs_match_init(&match, &key, true, NULL); key 2574 net/openvswitch/flow_netlink.c if (key.tun_opts_len) { key 2577 net/openvswitch/flow_netlink.c err = validate_geneve_opts(&key); key 2595 net/openvswitch/flow_netlink.c tun_dst = metadata_dst_alloc(key.tun_opts_len, METADATA_IP_TUNNEL, key 2619 net/openvswitch/flow_netlink.c if (key.tun_proto == AF_INET6) key 2621 net/openvswitch/flow_netlink.c else if (key.tun_proto == AF_INET && key.tun_key.u.ipv4.dst == 0) key 2623 net/openvswitch/flow_netlink.c tun_info->key = key.tun_key; key 2630 net/openvswitch/flow_netlink.c TUN_METADATA_OPTS(&key, key.tun_opts_len), key 2631 net/openvswitch/flow_netlink.c key.tun_opts_len, dst_opt_type); key 2641 net/openvswitch/flow_netlink.c struct sw_flow_key key; key 2644 net/openvswitch/flow_netlink.c ovs_match_init(&match, &key, true, NULL); key 2864 net/openvswitch/flow_netlink.c const struct sw_flow_key *key, key 2914 net/openvswitch/flow_netlink.c err = __ovs_nla_copy_actions(net, acts_if_lesser_eq, key, sfa, key 2927 net/openvswitch/flow_netlink.c err = __ovs_nla_copy_actions(net, acts_if_greater, key, sfa, key 2953 net/openvswitch/flow_netlink.c const struct sw_flow_key *key, key 2957 net/openvswitch/flow_netlink.c u8 mac_proto = ovs_key_mac_proto(key); key 3089 net/openvswitch/flow_netlink.c err = validate_set(a, key, sfa, key 3097 net/openvswitch/flow_netlink.c err = validate_set(a, key, sfa, key 3107 net/openvswitch/flow_netlink.c err = validate_and_copy_sample(net, a, key, sfa, key 3117 net/openvswitch/flow_netlink.c err = ovs_ct_copy_action(net, a, key, sfa, log); key 3160 net/openvswitch/flow_netlink.c inner_proto = tun_p_to_eth_p(key->nsh.base.np); key 3163 net/openvswitch/flow_netlink.c if (key->nsh.base.np == TUN_P_ETHERNET) key 3177 net/openvswitch/flow_netlink.c err = validate_and_copy_clone(net, a, key, sfa, key 3189 net/openvswitch/flow_netlink.c err = validate_and_copy_check_pkt_len(net, a, key, sfa, key 3218 net/openvswitch/flow_netlink.c const struct sw_flow_key *key, key 3228 net/openvswitch/flow_netlink.c err = __ovs_nla_copy_actions(net, attr, key, sfa, key->eth.type, key 3229 net/openvswitch/flow_netlink.c key->eth.vlan.tci, log); key 3382 net/openvswitch/flow_netlink.c err = ip_tun_to_nlattr(skb, &tun_info->key, key 30 net/openvswitch/flow_netlink.h struct sw_flow_key *key, bool reset_key, key 39 net/openvswitch/flow_netlink.h u64 attrs, struct sw_flow_key *key, bool log); key 46 net/openvswitch/flow_netlink.h const struct nlattr *key, const struct nlattr *mask, key 54 net/openvswitch/flow_netlink.h const struct sw_flow_key *key, bool log); key 58 net/openvswitch/flow_netlink.h const struct sw_flow_key *key, key 52 net/openvswitch/flow_table.c const long *m = (const long *)((const u8 *)&mask->key + start); key 370 net/openvswitch/flow_table.c static u32 flow_hash(const struct sw_flow_key *key, key 375 net/openvswitch/flow_table.c const u32 *hash_key = (const u32 *)((const u8 *)key + key_start); key 384 net/openvswitch/flow_table.c static int flow_key_start(const struct sw_flow_key *key) key 386 net/openvswitch/flow_table.c if (key->tun_proto) key 409 net/openvswitch/flow_table.c const struct sw_flow_key *key, key 412 net/openvswitch/flow_table.c return cmp_key(&flow->key, key, range->start, range->end); key 418 net/openvswitch/flow_table.c struct sw_flow_key *key = match->key; key 419 net/openvswitch/flow_table.c int key_start = flow_key_start(key); key 423 net/openvswitch/flow_table.c return cmp_key(flow->id.unmasked_key, key, key_start, key_end); key 447 net/openvswitch/flow_table.c const struct sw_flow_key *key, key 457 net/openvswitch/flow_table.c flow = masked_flow_lookup(ti, key, mask); key 465 net/openvswitch/flow_table.c const struct sw_flow_key *key) key 469 net/openvswitch/flow_table.c return ovs_flow_tbl_lookup_stats(tbl, key, &n_mask_hit); key 481 net/openvswitch/flow_table.c flow = masked_flow_lookup(ti, match->key, mask); key 506 net/openvswitch/flow_table.c return flow_cmp_masked_key(flow, match->key, &match->range); key 598 net/openvswitch/flow_table.c const u8 *a_ = (const u8 *)&a->key + a->range.start; key 599 net/openvswitch/flow_table.c const u8 *b_ = (const u8 *)&b->key + b->range.start; key 632 net/openvswitch/flow_table.c mask->key = new->key; key 650 net/openvswitch/flow_table.c flow->flow_table.hash = flow_hash(&flow->key, &flow->mask->range); key 443 net/openvswitch/meter.c struct sw_flow_key *key, u32 meter_id) key 49 net/openvswitch/meter.h struct sw_flow_key *key, u32 meter_id); key 427 net/openvswitch/vport.c struct sw_flow_key key; key 443 net/openvswitch/vport.c error = ovs_flow_key_extract(tun_info, skb, &key); key 448 net/openvswitch/vport.c ovs_dp_process_packet(skb, &key); key 56 net/rds/bind.c static inline void __rds_create_bind_key(u8 *key, const struct in6_addr *addr, key 59 net/rds/bind.c memcpy(key, addr, sizeof(*addr)); key 60 net/rds/bind.c key += sizeof(*addr); key 61 net/rds/bind.c memcpy(key, &port, sizeof(port)); key 62 net/rds/bind.c key += sizeof(port); key 63 net/rds/bind.c memcpy(key, &scope_id, sizeof(scope_id)); key 75 net/rds/bind.c u8 key[RDS_BOUND_KEY_LEN]; key 78 net/rds/bind.c __rds_create_bind_key(key, addr, port, scope_id); key 80 net/rds/bind.c rs = rhashtable_lookup(&bind_hash_table, key, ht_parms); key 99 net/rds/bind.c u8 key[RDS_BOUND_KEY_LEN]; key 117 net/rds/bind.c __rds_create_bind_key(key, addr, cpu_to_be16(rover), key 119 net/rds/bind.c if (rhashtable_lookup_fast(&bind_hash_table, key, ht_parms)) key 122 net/rds/bind.c memcpy(rs->rs_bound_key, key, sizeof(rs->rs_bound_key)); key 201 net/rds/ib_fmr.c u32 *key) key 215 net/rds/ib_fmr.c *key = fmr->fmr->rkey; key 158 net/rds/ib_frmr.c reg_wr.key = frmr->mr->rkey; key 404 net/rds/ib_frmr.c unsigned long nents, u32 *key) key 428 net/rds/ib_frmr.c *key = frmr->mr->rkey; key 146 net/rds/ib_mr.h unsigned long nents, u32 *key); key 65 net/rds/rdma.c static struct rds_mr *rds_mr_tree_walk(struct rb_root *root, u64 key, key 76 net/rds/rdma.c if (key < mr->r_key) key 78 net/rds/rdma.c else if (key > mr->r_key) key 282 net/rxrpc/af_rxrpc.c struct key *key, key 297 net/rxrpc/af_rxrpc.c _enter(",,%x,%lx", key_serial(key), user_call_ID); key 305 net/rxrpc/af_rxrpc.c if (!key) key 306 net/rxrpc/af_rxrpc.c key = rx->key; key 307 net/rxrpc/af_rxrpc.c if (key && !key->payload.data[0]) key 308 net/rxrpc/af_rxrpc.c key = NULL; /* a no-security key */ key 317 net/rxrpc/af_rxrpc.c cp.key = key; key 604 net/rxrpc/af_rxrpc.c if (rx->key) key 614 net/rxrpc/af_rxrpc.c if (rx->key) key 878 net/rxrpc/af_rxrpc.c key_put(rx->key); key 879 net/rxrpc/af_rxrpc.c rx->key = NULL; key 142 net/rxrpc/ar-internal.h struct key *key; /* security for this socket */ key 143 net/rxrpc/ar-internal.h struct key *securities; /* list of server security descriptors */ key 343 net/rxrpc/ar-internal.h struct key *key; /* Security details */ key 448 net/rxrpc/ar-internal.h struct key *server_key; /* security for this service */ key 986 net/rxrpc/ar-internal.h const struct rxrpc_security *, struct key *, key 1128 net/rxrpc/ar-internal.h const struct rxrpc_security **, struct key **, key 267 net/rxrpc/call_accept.c struct key *key, key 315 net/rxrpc/call_accept.c rxrpc_new_incoming_connection(rx, conn, sec, key, skb); key 358 net/rxrpc/call_accept.c struct key *key = NULL; key 379 net/rxrpc/call_accept.c if (!conn && !rxrpc_look_up_server_security(local, rx, &sec, &key, skb)) key 382 net/rxrpc/call_accept.c call = rxrpc_alloc_incoming_call(rx, local, peer, conn, sec, key, skb); key 383 net/rxrpc/call_accept.c key_put(key); key 213 net/rxrpc/conn_client.c key_get(conn->params.key); key 311 net/rxrpc/conn_client.c cmp(key) ?: key 378 net/rxrpc/conn_client.c cmp(key) ?: key 364 net/rxrpc/conn_object.c key_put(conn->params.key); key 152 net/rxrpc/conn_service.c struct key *key, key 166 net/rxrpc/conn_service.c conn->server_key = key_get(key); key 31 net/rxrpc/key.c static void rxrpc_destroy(struct key *); key 32 net/rxrpc/key.c static void rxrpc_destroy_s(struct key *); key 33 net/rxrpc/key.c static void rxrpc_describe(const struct key *, struct seq_file *); key 34 net/rxrpc/key.c static long rxrpc_read(const struct key *, char *, size_t); key 872 net/rxrpc/key.c static void rxrpc_destroy(struct key *key) key 874 net/rxrpc/key.c rxrpc_free_token_list(key->payload.data[0]); key 880 net/rxrpc/key.c static void rxrpc_destroy_s(struct key *key) key 882 net/rxrpc/key.c if (key->payload.data[0]) { key 883 net/rxrpc/key.c crypto_free_skcipher(key->payload.data[0]); key 884 net/rxrpc/key.c key->payload.data[0] = NULL; key 891 net/rxrpc/key.c static void rxrpc_describe(const struct key *key, struct seq_file *m) key 893 net/rxrpc/key.c seq_puts(m, key->description); key 901 net/rxrpc/key.c struct key *key; key 913 net/rxrpc/key.c key = request_key_net(&key_type_rxrpc, description, sock_net(&rx->sk), NULL); key 914 net/rxrpc/key.c if (IS_ERR(key)) { key 916 net/rxrpc/key.c _leave(" = %ld", PTR_ERR(key)); key 917 net/rxrpc/key.c return PTR_ERR(key); key 920 net/rxrpc/key.c rx->key = key; key 922 net/rxrpc/key.c _leave(" = 0 [key %x]", key->serial); key 932 net/rxrpc/key.c struct key *key; key 944 net/rxrpc/key.c key = request_key_net(&key_type_keyring, description, sock_net(&rx->sk), NULL); key 945 net/rxrpc/key.c if (IS_ERR(key)) { key 947 net/rxrpc/key.c _leave(" = %ld", PTR_ERR(key)); key 948 net/rxrpc/key.c return PTR_ERR(key); key 951 net/rxrpc/key.c rx->securities = key; key 953 net/rxrpc/key.c _leave(" = 0 [key %x]", key->serial); key 966 net/rxrpc/key.c struct key *key; key 976 net/rxrpc/key.c key = key_alloc(&key_type_rxrpc, "x", key 979 net/rxrpc/key.c if (IS_ERR(key)) { key 980 net/rxrpc/key.c _leave(" = -ENOMEM [alloc %ld]", PTR_ERR(key)); key 984 net/rxrpc/key.c _debug("key %d", key_serial(key)); key 994 net/rxrpc/key.c ret = key_instantiate_and_link(key, &data, sizeof(data), NULL, NULL); key 998 net/rxrpc/key.c conn->params.key = key; key 999 net/rxrpc/key.c _leave(" = 0 [%d]", key_serial(key)); key 1003 net/rxrpc/key.c key_revoke(key); key 1004 net/rxrpc/key.c key_put(key); key 1017 net/rxrpc/key.c struct key *rxrpc_get_null_key(const char *keyname) key 1020 net/rxrpc/key.c struct key *key; key 1023 net/rxrpc/key.c key = key_alloc(&key_type_rxrpc, keyname, key 1026 net/rxrpc/key.c if (IS_ERR(key)) key 1027 net/rxrpc/key.c return key; key 1029 net/rxrpc/key.c ret = key_instantiate_and_link(key, NULL, 0, NULL, NULL); key 1031 net/rxrpc/key.c key_revoke(key); key 1032 net/rxrpc/key.c key_put(key); key 1036 net/rxrpc/key.c return key; key 1044 net/rxrpc/key.c static long rxrpc_read(const struct key *key, key 1058 net/rxrpc/key.c if (memcmp(key->description, "afs@", 4) != 0) key 1060 net/rxrpc/key.c cnlen = strlen(key->description + 4); key 1071 net/rxrpc/key.c for (token = key->payload.data[0]; token; token = token->next) { key 1155 net/rxrpc/key.c ENCODE_DATA(cnlen, key->description + 4); /* cellname */ key 1159 net/rxrpc/key.c for (token = key->payload.data[0]; token; token = token->next) { key 194 net/rxrpc/proc.c key_serial(conn->params.key), key 58 net/rxrpc/rxkad.c _enter("{%d},{%x}", conn->debug_id, key_serial(conn->params.key)); key 60 net/rxrpc/rxkad.c token = conn->params.key->payload.data[0]; key 112 net/rxrpc/rxkad.c if (!conn->params.key) key 125 net/rxrpc/rxkad.c token = conn->params.key->payload.data[0]; key 241 net/rxrpc/rxkad.c token = call->conn->params.key->payload.data[0]; key 291 net/rxrpc/rxkad.c call->debug_id, key_serial(call->conn->params.key), key 297 net/rxrpc/rxkad.c ret = key_validate(call->conn->params.key); key 472 net/rxrpc/rxkad.c token = call->conn->params.key->payload.data[0]; key 539 net/rxrpc/rxkad.c call->debug_id, key_serial(call->conn->params.key), seq); key 820 net/rxrpc/rxkad.c _enter("{%d,%x}", conn->debug_id, key_serial(conn->params.key)); key 824 net/rxrpc/rxkad.c if (!conn->params.key) key 828 net/rxrpc/rxkad.c ret = key_validate(conn->params.key); key 855 net/rxrpc/rxkad.c token = conn->params.key->payload.data[0]; key 903 net/rxrpc/rxkad.c struct rxrpc_crypt iv, key; key 991 net/rxrpc/rxkad.c memcpy(&key, p, sizeof(key)); key 993 net/rxrpc/rxkad.c _debug("KIV KEY : %08x %08x", ntohl(key.n[0]), ntohl(key.n[1])); key 994 net/rxrpc/rxkad.c memcpy(_session_key, &key, sizeof(key)); key 72 net/rxrpc/security.c struct key *key = conn->params.key; key 75 net/rxrpc/security.c _enter("{%d},{%x}", conn->debug_id, key_serial(key)); key 77 net/rxrpc/security.c if (!key) key 80 net/rxrpc/security.c ret = key_validate(key); key 84 net/rxrpc/security.c token = key->payload.data[0]; key 108 net/rxrpc/security.c struct key **_key, key 602 net/rxrpc/sendmsg.c struct key *key; key 613 net/rxrpc/sendmsg.c key = rx->key; key 614 net/rxrpc/sendmsg.c if (key && !rx->key->payload.data[0]) key 615 net/rxrpc/sendmsg.c key = NULL; key 619 net/rxrpc/sendmsg.c cp.key = rx->key; key 176 net/sched/act_tunnel_key.c info->key.tun_flags |= TUNNEL_GENEVE_OPT; key 470 net/sched/act_tunnel_key.c if (info->key.tun_flags & TUNNEL_GENEVE_OPT) { key 490 net/sched/act_tunnel_key.c __be32 saddr = info->key.u.ipv4.src; key 491 net/sched/act_tunnel_key.c __be32 daddr = info->key.u.ipv4.dst; key 499 net/sched/act_tunnel_key.c const struct in6_addr *saddr6 = &info->key.u.ipv6.src; key 500 net/sched/act_tunnel_key.c const struct in6_addr *daddr6 = &info->key.u.ipv6.dst; key 537 net/sched/act_tunnel_key.c struct ip_tunnel_key *key = &info->key; key 538 net/sched/act_tunnel_key.c __be32 key_id = tunnel_id_to_key32(key->tun_id); key 540 net/sched/act_tunnel_key.c if (((key->tun_flags & TUNNEL_KEY) && key 544 net/sched/act_tunnel_key.c (key->tp_dst && key 546 net/sched/act_tunnel_key.c key->tp_dst)) || key 548 net/sched/act_tunnel_key.c !(key->tun_flags & TUNNEL_CSUM)) || key 552 net/sched/act_tunnel_key.c if (key->tos && nla_put_u8(skb, TCA_TUNNEL_KEY_ENC_TOS, key->tos)) key 555 net/sched/act_tunnel_key.c if (key->ttl && nla_put_u8(skb, TCA_TUNNEL_KEY_ENC_TTL, key->ttl)) key 240 net/sched/cls_flow.c static u32 flow_key_get(struct sk_buff *skb, int key, struct flow_keys *flow) key 242 net/sched/cls_flow.c switch (key) { key 302 net/sched/cls_flow.c unsigned int n, key; key 317 net/sched/cls_flow.c key = ffs(keymask) - 1; key 318 net/sched/cls_flow.c keymask &= ~(1 << key); key 319 net/sched/cls_flow.c keys[n] = flow_key_get(skb, key, &flow_keys); key 73 net/sched/cls_flower.c struct fl_flow_key key; key 108 net/sched/cls_flower.c struct fl_flow_key key; key 125 net/sched/cls_flower.c .key_offset = offsetof(struct fl_flow_mask, key), key 138 net/sched/cls_flower.c const u8 *bytes = (const u8 *) &mask->key; key 139 net/sched/cls_flower.c size_t size = sizeof(mask->key); key 159 net/sched/cls_flower.c static void *fl_key_get_start(struct fl_flow_key *key, key 162 net/sched/cls_flower.c return (u8 *) key + mask->range.start; key 165 net/sched/cls_flower.c static void fl_set_masked_key(struct fl_flow_key *mkey, struct fl_flow_key *key, key 168 net/sched/cls_flower.c const long *lkey = fl_key_get_start(key, mask); key 169 net/sched/cls_flower.c const long *lmask = fl_key_get_start(&mask->key, mask); key 180 net/sched/cls_flower.c const long *lmask = fl_key_get_start(&mask->key, mask); key 194 net/sched/cls_flower.c static void fl_clear_masked_range(struct fl_flow_key *key, key 197 net/sched/cls_flower.c memset(fl_key_get_start(key, mask), 0, fl_mask_range(mask)); key 201 net/sched/cls_flower.c struct fl_flow_key *key, key 206 net/sched/cls_flower.c min_mask = htons(filter->mask->key.tp_range.tp_min.dst); key 207 net/sched/cls_flower.c max_mask = htons(filter->mask->key.tp_range.tp_max.dst); key 208 net/sched/cls_flower.c min_val = htons(filter->key.tp_range.tp_min.dst); key 209 net/sched/cls_flower.c max_val = htons(filter->key.tp_range.tp_max.dst); key 212 net/sched/cls_flower.c if (htons(key->tp_range.tp.dst) < min_val || key 213 net/sched/cls_flower.c htons(key->tp_range.tp.dst) > max_val) key 224 net/sched/cls_flower.c struct fl_flow_key *key, key 229 net/sched/cls_flower.c min_mask = htons(filter->mask->key.tp_range.tp_min.src); key 230 net/sched/cls_flower.c max_mask = htons(filter->mask->key.tp_range.tp_max.src); key 231 net/sched/cls_flower.c min_val = htons(filter->key.tp_range.tp_min.src); key 232 net/sched/cls_flower.c max_val = htons(filter->key.tp_range.tp_max.src); key 235 net/sched/cls_flower.c if (htons(key->tp_range.tp.src) < min_val || key 236 net/sched/cls_flower.c htons(key->tp_range.tp.src) > max_val) key 255 net/sched/cls_flower.c struct fl_flow_key *key) key 260 net/sched/cls_flower.c if (!fl_range_port_dst_cmp(filter, key, mkey)) key 263 net/sched/cls_flower.c if (!fl_range_port_src_cmp(filter, key, mkey)) key 275 net/sched/cls_flower.c struct fl_flow_key *key) key 278 net/sched/cls_flower.c return fl_lookup_range(mask, mkey, key); key 447 net/sched/cls_flower.c cls_flower.rule->match.mask = &f->mask->key; key 448 net/sched/cls_flower.c cls_flower.rule->match.key = &f->mkey; key 722 net/sched/cls_flower.c static int fl_set_key_port_range(struct nlattr **tb, struct fl_flow_key *key, key 725 net/sched/cls_flower.c fl_set_key_val(tb, &key->tp_range.tp_min.dst, key 727 net/sched/cls_flower.c TCA_FLOWER_UNSPEC, sizeof(key->tp_range.tp_min.dst)); key 728 net/sched/cls_flower.c fl_set_key_val(tb, &key->tp_range.tp_max.dst, key 730 net/sched/cls_flower.c TCA_FLOWER_UNSPEC, sizeof(key->tp_range.tp_max.dst)); key 731 net/sched/cls_flower.c fl_set_key_val(tb, &key->tp_range.tp_min.src, key 733 net/sched/cls_flower.c TCA_FLOWER_UNSPEC, sizeof(key->tp_range.tp_min.src)); key 734 net/sched/cls_flower.c fl_set_key_val(tb, &key->tp_range.tp_max.src, key 736 net/sched/cls_flower.c TCA_FLOWER_UNSPEC, sizeof(key->tp_range.tp_max.src)); key 739 net/sched/cls_flower.c htons(key->tp_range.tp_max.dst) <= key 740 net/sched/cls_flower.c htons(key->tp_range.tp_min.dst)) || key 742 net/sched/cls_flower.c htons(key->tp_range.tp_max.src) <= key 743 net/sched/cls_flower.c htons(key->tp_range.tp_min.src))) key 821 net/sched/cls_flower.c u32 key, mask; key 827 net/sched/cls_flower.c key = be32_to_cpu(nla_get_u32(tb[TCA_FLOWER_KEY_FLAGS])); key 833 net/sched/cls_flower.c fl_set_key_flag(key, mask, flags_key, flags_mask, key 835 net/sched/cls_flower.c fl_set_key_flag(key, mask, flags_key, flags_mask, key 843 net/sched/cls_flower.c struct flow_dissector_key_ip *key, key 851 net/sched/cls_flower.c fl_set_key_val(tb, &key->tos, tos_key, &mask->tos, tos_mask, sizeof(key->tos)); key 852 net/sched/cls_flower.c fl_set_key_val(tb, &key->ttl, ttl_key, &mask->ttl, ttl_mask, sizeof(key->ttl)); key 855 net/sched/cls_flower.c static int fl_set_geneve_opt(const struct nlattr *nla, struct fl_flow_key *key, key 867 net/sched/cls_flower.c opt = (struct geneve_opt *)&key->enc_opts.data[key->enc_opts.len]; key 904 net/sched/cls_flower.c int new_len = key->enc_opts.len; key 940 net/sched/cls_flower.c static int fl_set_enc_opt(struct nlattr **tb, struct fl_flow_key *key, key 971 net/sched/cls_flower.c key->enc_opts.dst_opt_type = TUNNEL_GENEVE_OPT; key 972 net/sched/cls_flower.c option_len = fl_set_geneve_opt(nla_opt_key, key, key 978 net/sched/cls_flower.c key->enc_opts.len += option_len; key 990 net/sched/cls_flower.c if (key->enc_opts.len != mask->enc_opts.len) { key 1008 net/sched/cls_flower.c struct flow_dissector_key_ct *key, key 1017 net/sched/cls_flower.c fl_set_key_val(tb, &key->ct_state, TCA_FLOWER_KEY_CT_STATE, key 1019 net/sched/cls_flower.c sizeof(key->ct_state)); key 1026 net/sched/cls_flower.c fl_set_key_val(tb, &key->ct_zone, TCA_FLOWER_KEY_CT_ZONE, key 1028 net/sched/cls_flower.c sizeof(key->ct_zone)); key 1035 net/sched/cls_flower.c fl_set_key_val(tb, &key->ct_mark, TCA_FLOWER_KEY_CT_MARK, key 1037 net/sched/cls_flower.c sizeof(key->ct_mark)); key 1044 net/sched/cls_flower.c fl_set_key_val(tb, key->ct_labels, TCA_FLOWER_KEY_CT_LABELS, key 1046 net/sched/cls_flower.c sizeof(key->ct_labels)); key 1053 net/sched/cls_flower.c struct fl_flow_key *key, struct fl_flow_key *mask, key 1063 net/sched/cls_flower.c key->meta.ingress_ifindex = err; key 1067 net/sched/cls_flower.c fl_set_key_val(tb, key->eth.dst, TCA_FLOWER_KEY_ETH_DST, key 1069 net/sched/cls_flower.c sizeof(key->eth.dst)); key 1070 net/sched/cls_flower.c fl_set_key_val(tb, key->eth.src, TCA_FLOWER_KEY_ETH_SRC, key 1072 net/sched/cls_flower.c sizeof(key->eth.src)); key 1079 net/sched/cls_flower.c TCA_FLOWER_KEY_VLAN_PRIO, &key->vlan, key 1088 net/sched/cls_flower.c &key->cvlan, &mask->cvlan); key 1089 net/sched/cls_flower.c fl_set_key_val(tb, &key->basic.n_proto, key 1093 net/sched/cls_flower.c sizeof(key->basic.n_proto)); key 1095 net/sched/cls_flower.c key->basic.n_proto = ethertype; key 1100 net/sched/cls_flower.c key->basic.n_proto = ethertype; key 1105 net/sched/cls_flower.c if (key->basic.n_proto == htons(ETH_P_IP) || key 1106 net/sched/cls_flower.c key->basic.n_proto == htons(ETH_P_IPV6)) { key 1107 net/sched/cls_flower.c fl_set_key_val(tb, &key->basic.ip_proto, TCA_FLOWER_KEY_IP_PROTO, key 1109 net/sched/cls_flower.c sizeof(key->basic.ip_proto)); key 1110 net/sched/cls_flower.c fl_set_key_ip(tb, false, &key->ip, &mask->ip); key 1114 net/sched/cls_flower.c key->control.addr_type = FLOW_DISSECTOR_KEY_IPV4_ADDRS; key 1116 net/sched/cls_flower.c fl_set_key_val(tb, &key->ipv4.src, TCA_FLOWER_KEY_IPV4_SRC, key 1118 net/sched/cls_flower.c sizeof(key->ipv4.src)); key 1119 net/sched/cls_flower.c fl_set_key_val(tb, &key->ipv4.dst, TCA_FLOWER_KEY_IPV4_DST, key 1121 net/sched/cls_flower.c sizeof(key->ipv4.dst)); key 1123 net/sched/cls_flower.c key->control.addr_type = FLOW_DISSECTOR_KEY_IPV6_ADDRS; key 1125 net/sched/cls_flower.c fl_set_key_val(tb, &key->ipv6.src, TCA_FLOWER_KEY_IPV6_SRC, key 1127 net/sched/cls_flower.c sizeof(key->ipv6.src)); key 1128 net/sched/cls_flower.c fl_set_key_val(tb, &key->ipv6.dst, TCA_FLOWER_KEY_IPV6_DST, key 1130 net/sched/cls_flower.c sizeof(key->ipv6.dst)); key 1133 net/sched/cls_flower.c if (key->basic.ip_proto == IPPROTO_TCP) { key 1134 net/sched/cls_flower.c fl_set_key_val(tb, &key->tp.src, TCA_FLOWER_KEY_TCP_SRC, key 1136 net/sched/cls_flower.c sizeof(key->tp.src)); key 1137 net/sched/cls_flower.c fl_set_key_val(tb, &key->tp.dst, TCA_FLOWER_KEY_TCP_DST, key 1139 net/sched/cls_flower.c sizeof(key->tp.dst)); key 1140 net/sched/cls_flower.c fl_set_key_val(tb, &key->tcp.flags, TCA_FLOWER_KEY_TCP_FLAGS, key 1142 net/sched/cls_flower.c sizeof(key->tcp.flags)); key 1143 net/sched/cls_flower.c } else if (key->basic.ip_proto == IPPROTO_UDP) { key 1144 net/sched/cls_flower.c fl_set_key_val(tb, &key->tp.src, TCA_FLOWER_KEY_UDP_SRC, key 1146 net/sched/cls_flower.c sizeof(key->tp.src)); key 1147 net/sched/cls_flower.c fl_set_key_val(tb, &key->tp.dst, TCA_FLOWER_KEY_UDP_DST, key 1149 net/sched/cls_flower.c sizeof(key->tp.dst)); key 1150 net/sched/cls_flower.c } else if (key->basic.ip_proto == IPPROTO_SCTP) { key 1151 net/sched/cls_flower.c fl_set_key_val(tb, &key->tp.src, TCA_FLOWER_KEY_SCTP_SRC, key 1153 net/sched/cls_flower.c sizeof(key->tp.src)); key 1154 net/sched/cls_flower.c fl_set_key_val(tb, &key->tp.dst, TCA_FLOWER_KEY_SCTP_DST, key 1156 net/sched/cls_flower.c sizeof(key->tp.dst)); key 1157 net/sched/cls_flower.c } else if (key->basic.n_proto == htons(ETH_P_IP) && key 1158 net/sched/cls_flower.c key->basic.ip_proto == IPPROTO_ICMP) { key 1159 net/sched/cls_flower.c fl_set_key_val(tb, &key->icmp.type, TCA_FLOWER_KEY_ICMPV4_TYPE, key 1162 net/sched/cls_flower.c sizeof(key->icmp.type)); key 1163 net/sched/cls_flower.c fl_set_key_val(tb, &key->icmp.code, TCA_FLOWER_KEY_ICMPV4_CODE, key 1166 net/sched/cls_flower.c sizeof(key->icmp.code)); key 1167 net/sched/cls_flower.c } else if (key->basic.n_proto == htons(ETH_P_IPV6) && key 1168 net/sched/cls_flower.c key->basic.ip_proto == IPPROTO_ICMPV6) { key 1169 net/sched/cls_flower.c fl_set_key_val(tb, &key->icmp.type, TCA_FLOWER_KEY_ICMPV6_TYPE, key 1172 net/sched/cls_flower.c sizeof(key->icmp.type)); key 1173 net/sched/cls_flower.c fl_set_key_val(tb, &key->icmp.code, TCA_FLOWER_KEY_ICMPV6_CODE, key 1176 net/sched/cls_flower.c sizeof(key->icmp.code)); key 1177 net/sched/cls_flower.c } else if (key->basic.n_proto == htons(ETH_P_MPLS_UC) || key 1178 net/sched/cls_flower.c key->basic.n_proto == htons(ETH_P_MPLS_MC)) { key 1179 net/sched/cls_flower.c ret = fl_set_key_mpls(tb, &key->mpls, &mask->mpls); key 1182 net/sched/cls_flower.c } else if (key->basic.n_proto == htons(ETH_P_ARP) || key 1183 net/sched/cls_flower.c key->basic.n_proto == htons(ETH_P_RARP)) { key 1184 net/sched/cls_flower.c fl_set_key_val(tb, &key->arp.sip, TCA_FLOWER_KEY_ARP_SIP, key 1186 net/sched/cls_flower.c sizeof(key->arp.sip)); key 1187 net/sched/cls_flower.c fl_set_key_val(tb, &key->arp.tip, TCA_FLOWER_KEY_ARP_TIP, key 1189 net/sched/cls_flower.c sizeof(key->arp.tip)); key 1190 net/sched/cls_flower.c fl_set_key_val(tb, &key->arp.op, TCA_FLOWER_KEY_ARP_OP, key 1192 net/sched/cls_flower.c sizeof(key->arp.op)); key 1193 net/sched/cls_flower.c fl_set_key_val(tb, key->arp.sha, TCA_FLOWER_KEY_ARP_SHA, key 1195 net/sched/cls_flower.c sizeof(key->arp.sha)); key 1196 net/sched/cls_flower.c fl_set_key_val(tb, key->arp.tha, TCA_FLOWER_KEY_ARP_THA, key 1198 net/sched/cls_flower.c sizeof(key->arp.tha)); key 1201 net/sched/cls_flower.c if (key->basic.ip_proto == IPPROTO_TCP || key 1202 net/sched/cls_flower.c key->basic.ip_proto == IPPROTO_UDP || key 1203 net/sched/cls_flower.c key->basic.ip_proto == IPPROTO_SCTP) { key 1204 net/sched/cls_flower.c ret = fl_set_key_port_range(tb, key, mask); key 1211 net/sched/cls_flower.c key->enc_control.addr_type = FLOW_DISSECTOR_KEY_IPV4_ADDRS; key 1213 net/sched/cls_flower.c fl_set_key_val(tb, &key->enc_ipv4.src, key 1217 net/sched/cls_flower.c sizeof(key->enc_ipv4.src)); key 1218 net/sched/cls_flower.c fl_set_key_val(tb, &key->enc_ipv4.dst, key 1222 net/sched/cls_flower.c sizeof(key->enc_ipv4.dst)); key 1227 net/sched/cls_flower.c key->enc_control.addr_type = FLOW_DISSECTOR_KEY_IPV6_ADDRS; key 1229 net/sched/cls_flower.c fl_set_key_val(tb, &key->enc_ipv6.src, key 1233 net/sched/cls_flower.c sizeof(key->enc_ipv6.src)); key 1234 net/sched/cls_flower.c fl_set_key_val(tb, &key->enc_ipv6.dst, key 1238 net/sched/cls_flower.c sizeof(key->enc_ipv6.dst)); key 1241 net/sched/cls_flower.c fl_set_key_val(tb, &key->enc_key_id.keyid, TCA_FLOWER_KEY_ENC_KEY_ID, key 1243 net/sched/cls_flower.c sizeof(key->enc_key_id.keyid)); key 1245 net/sched/cls_flower.c fl_set_key_val(tb, &key->enc_tp.src, TCA_FLOWER_KEY_ENC_UDP_SRC_PORT, key 1247 net/sched/cls_flower.c sizeof(key->enc_tp.src)); key 1249 net/sched/cls_flower.c fl_set_key_val(tb, &key->enc_tp.dst, TCA_FLOWER_KEY_ENC_UDP_DST_PORT, key 1251 net/sched/cls_flower.c sizeof(key->enc_tp.dst)); key 1253 net/sched/cls_flower.c fl_set_key_ip(tb, true, &key->enc_ip, &mask->enc_ip); key 1256 net/sched/cls_flower.c ret = fl_set_enc_opt(tb, key, mask, extack); key 1261 net/sched/cls_flower.c ret = fl_set_key_ct(tb, &key->ct, &mask->ct, extack); key 1266 net/sched/cls_flower.c ret = fl_set_key_flags(tb, &key->control.flags, &mask->control.flags); key 1274 net/sched/cls_flower.c const void *psrc = fl_key_get_start(&src->key, src); key 1275 net/sched/cls_flower.c void *pdst = fl_key_get_start(&dst->key, src); key 1384 net/sched/cls_flower.c if ((newmask->key.tp_range.tp_min.dst && key 1385 net/sched/cls_flower.c newmask->key.tp_range.tp_max.dst) || key 1386 net/sched/cls_flower.c (newmask->key.tp_range.tp_min.src && key 1387 net/sched/cls_flower.c newmask->key.tp_range.tp_max.src)) key 1394 net/sched/cls_flower.c fl_init_dissector(&newmask->dissector, &newmask->key); key 1491 net/sched/cls_flower.c err = fl_set_key(net, tb, &f->key, &mask->key, extack); key 1496 net/sched/cls_flower.c fl_set_masked_key(&f->mkey, &f->key, mask); key 1812 net/sched/cls_flower.c cls_flower.rule->match.mask = &f->mask->key; key 1813 net/sched/cls_flower.c cls_flower.rule->match.key = &f->mkey; key 1886 net/sched/cls_flower.c cls_flower.rule->match.key = &tmplt->dummy_key; key 1982 net/sched/cls_flower.c static int fl_dump_key_port_range(struct sk_buff *skb, struct fl_flow_key *key, key 1985 net/sched/cls_flower.c if (fl_dump_key_val(skb, &key->tp_range.tp_min.dst, key 1988 net/sched/cls_flower.c sizeof(key->tp_range.tp_min.dst)) || key 1989 net/sched/cls_flower.c fl_dump_key_val(skb, &key->tp_range.tp_max.dst, key 1992 net/sched/cls_flower.c sizeof(key->tp_range.tp_max.dst)) || key 1993 net/sched/cls_flower.c fl_dump_key_val(skb, &key->tp_range.tp_min.src, key 1996 net/sched/cls_flower.c sizeof(key->tp_range.tp_min.src)) || key 1997 net/sched/cls_flower.c fl_dump_key_val(skb, &key->tp_range.tp_max.src, key 2000 net/sched/cls_flower.c sizeof(key->tp_range.tp_max.src))) key 2042 net/sched/cls_flower.c struct flow_dissector_key_ip *key, key 2050 net/sched/cls_flower.c if (fl_dump_key_val(skb, &key->tos, tos_key, &mask->tos, tos_mask, sizeof(key->tos)) || key 2051 net/sched/cls_flower.c fl_dump_key_val(skb, &key->ttl, ttl_key, &mask->ttl, ttl_mask, sizeof(key->ttl))) key 2094 net/sched/cls_flower.c u32 key, mask; key 2101 net/sched/cls_flower.c key = 0; key 2104 net/sched/cls_flower.c fl_get_key_flag(flags_key, flags_mask, &key, &mask, key 2106 net/sched/cls_flower.c fl_get_key_flag(flags_key, flags_mask, &key, &mask, key 2110 net/sched/cls_flower.c _key = cpu_to_be32(key); key 2155 net/sched/cls_flower.c struct flow_dissector_key_ct *key, key 2159 net/sched/cls_flower.c fl_dump_key_val(skb, &key->ct_state, TCA_FLOWER_KEY_CT_STATE, key 2161 net/sched/cls_flower.c sizeof(key->ct_state))) key 2165 net/sched/cls_flower.c fl_dump_key_val(skb, &key->ct_zone, TCA_FLOWER_KEY_CT_ZONE, key 2167 net/sched/cls_flower.c sizeof(key->ct_zone))) key 2171 net/sched/cls_flower.c fl_dump_key_val(skb, &key->ct_mark, TCA_FLOWER_KEY_CT_MARK, key 2173 net/sched/cls_flower.c sizeof(key->ct_mark))) key 2177 net/sched/cls_flower.c fl_dump_key_val(skb, &key->ct_labels, TCA_FLOWER_KEY_CT_LABELS, key 2179 net/sched/cls_flower.c sizeof(key->ct_labels))) key 2232 net/sched/cls_flower.c struct fl_flow_key *key, struct fl_flow_key *mask) key 2237 net/sched/cls_flower.c dev = __dev_get_by_index(net, key->meta.ingress_ifindex); key 2242 net/sched/cls_flower.c if (fl_dump_key_val(skb, key->eth.dst, TCA_FLOWER_KEY_ETH_DST, key 2244 net/sched/cls_flower.c sizeof(key->eth.dst)) || key 2245 net/sched/cls_flower.c fl_dump_key_val(skb, key->eth.src, TCA_FLOWER_KEY_ETH_SRC, key 2247 net/sched/cls_flower.c sizeof(key->eth.src)) || key 2248 net/sched/cls_flower.c fl_dump_key_val(skb, &key->basic.n_proto, TCA_FLOWER_KEY_ETH_TYPE, key 2250 net/sched/cls_flower.c sizeof(key->basic.n_proto))) key 2253 net/sched/cls_flower.c if (fl_dump_key_mpls(skb, &key->mpls, &mask->mpls)) key 2257 net/sched/cls_flower.c TCA_FLOWER_KEY_VLAN_PRIO, &key->vlan, &mask->vlan)) key 2262 net/sched/cls_flower.c &key->cvlan, &mask->cvlan) || key 2265 net/sched/cls_flower.c key->cvlan.vlan_tpid))) key 2271 net/sched/cls_flower.c key->basic.n_proto)) key 2275 net/sched/cls_flower.c key->basic.n_proto)) key 2280 net/sched/cls_flower.c if ((key->basic.n_proto == htons(ETH_P_IP) || key 2281 net/sched/cls_flower.c key->basic.n_proto == htons(ETH_P_IPV6)) && key 2282 net/sched/cls_flower.c (fl_dump_key_val(skb, &key->basic.ip_proto, TCA_FLOWER_KEY_IP_PROTO, key 2284 net/sched/cls_flower.c sizeof(key->basic.ip_proto)) || key 2285 net/sched/cls_flower.c fl_dump_key_ip(skb, false, &key->ip, &mask->ip))) key 2288 net/sched/cls_flower.c if (key->control.addr_type == FLOW_DISSECTOR_KEY_IPV4_ADDRS && key 2289 net/sched/cls_flower.c (fl_dump_key_val(skb, &key->ipv4.src, TCA_FLOWER_KEY_IPV4_SRC, key 2291 net/sched/cls_flower.c sizeof(key->ipv4.src)) || key 2292 net/sched/cls_flower.c fl_dump_key_val(skb, &key->ipv4.dst, TCA_FLOWER_KEY_IPV4_DST, key 2294 net/sched/cls_flower.c sizeof(key->ipv4.dst)))) key 2296 net/sched/cls_flower.c else if (key->control.addr_type == FLOW_DISSECTOR_KEY_IPV6_ADDRS && key 2297 net/sched/cls_flower.c (fl_dump_key_val(skb, &key->ipv6.src, TCA_FLOWER_KEY_IPV6_SRC, key 2299 net/sched/cls_flower.c sizeof(key->ipv6.src)) || key 2300 net/sched/cls_flower.c fl_dump_key_val(skb, &key->ipv6.dst, TCA_FLOWER_KEY_IPV6_DST, key 2302 net/sched/cls_flower.c sizeof(key->ipv6.dst)))) key 2305 net/sched/cls_flower.c if (key->basic.ip_proto == IPPROTO_TCP && key 2306 net/sched/cls_flower.c (fl_dump_key_val(skb, &key->tp.src, TCA_FLOWER_KEY_TCP_SRC, key 2308 net/sched/cls_flower.c sizeof(key->tp.src)) || key 2309 net/sched/cls_flower.c fl_dump_key_val(skb, &key->tp.dst, TCA_FLOWER_KEY_TCP_DST, key 2311 net/sched/cls_flower.c sizeof(key->tp.dst)) || key 2312 net/sched/cls_flower.c fl_dump_key_val(skb, &key->tcp.flags, TCA_FLOWER_KEY_TCP_FLAGS, key 2314 net/sched/cls_flower.c sizeof(key->tcp.flags)))) key 2316 net/sched/cls_flower.c else if (key->basic.ip_proto == IPPROTO_UDP && key 2317 net/sched/cls_flower.c (fl_dump_key_val(skb, &key->tp.src, TCA_FLOWER_KEY_UDP_SRC, key 2319 net/sched/cls_flower.c sizeof(key->tp.src)) || key 2320 net/sched/cls_flower.c fl_dump_key_val(skb, &key->tp.dst, TCA_FLOWER_KEY_UDP_DST, key 2322 net/sched/cls_flower.c sizeof(key->tp.dst)))) key 2324 net/sched/cls_flower.c else if (key->basic.ip_proto == IPPROTO_SCTP && key 2325 net/sched/cls_flower.c (fl_dump_key_val(skb, &key->tp.src, TCA_FLOWER_KEY_SCTP_SRC, key 2327 net/sched/cls_flower.c sizeof(key->tp.src)) || key 2328 net/sched/cls_flower.c fl_dump_key_val(skb, &key->tp.dst, TCA_FLOWER_KEY_SCTP_DST, key 2330 net/sched/cls_flower.c sizeof(key->tp.dst)))) key 2332 net/sched/cls_flower.c else if (key->basic.n_proto == htons(ETH_P_IP) && key 2333 net/sched/cls_flower.c key->basic.ip_proto == IPPROTO_ICMP && key 2334 net/sched/cls_flower.c (fl_dump_key_val(skb, &key->icmp.type, key 2337 net/sched/cls_flower.c sizeof(key->icmp.type)) || key 2338 net/sched/cls_flower.c fl_dump_key_val(skb, &key->icmp.code, key 2341 net/sched/cls_flower.c sizeof(key->icmp.code)))) key 2343 net/sched/cls_flower.c else if (key->basic.n_proto == htons(ETH_P_IPV6) && key 2344 net/sched/cls_flower.c key->basic.ip_proto == IPPROTO_ICMPV6 && key 2345 net/sched/cls_flower.c (fl_dump_key_val(skb, &key->icmp.type, key 2348 net/sched/cls_flower.c sizeof(key->icmp.type)) || key 2349 net/sched/cls_flower.c fl_dump_key_val(skb, &key->icmp.code, key 2352 net/sched/cls_flower.c sizeof(key->icmp.code)))) key 2354 net/sched/cls_flower.c else if ((key->basic.n_proto == htons(ETH_P_ARP) || key 2355 net/sched/cls_flower.c key->basic.n_proto == htons(ETH_P_RARP)) && key 2356 net/sched/cls_flower.c (fl_dump_key_val(skb, &key->arp.sip, key 2359 net/sched/cls_flower.c sizeof(key->arp.sip)) || key 2360 net/sched/cls_flower.c fl_dump_key_val(skb, &key->arp.tip, key 2363 net/sched/cls_flower.c sizeof(key->arp.tip)) || key 2364 net/sched/cls_flower.c fl_dump_key_val(skb, &key->arp.op, key 2367 net/sched/cls_flower.c sizeof(key->arp.op)) || key 2368 net/sched/cls_flower.c fl_dump_key_val(skb, key->arp.sha, TCA_FLOWER_KEY_ARP_SHA, key 2370 net/sched/cls_flower.c sizeof(key->arp.sha)) || key 2371 net/sched/cls_flower.c fl_dump_key_val(skb, key->arp.tha, TCA_FLOWER_KEY_ARP_THA, key 2373 net/sched/cls_flower.c sizeof(key->arp.tha)))) key 2376 net/sched/cls_flower.c if ((key->basic.ip_proto == IPPROTO_TCP || key 2377 net/sched/cls_flower.c key->basic.ip_proto == IPPROTO_UDP || key 2378 net/sched/cls_flower.c key->basic.ip_proto == IPPROTO_SCTP) && key 2379 net/sched/cls_flower.c fl_dump_key_port_range(skb, key, mask)) key 2382 net/sched/cls_flower.c if (key->enc_control.addr_type == FLOW_DISSECTOR_KEY_IPV4_ADDRS && key 2383 net/sched/cls_flower.c (fl_dump_key_val(skb, &key->enc_ipv4.src, key 2386 net/sched/cls_flower.c sizeof(key->enc_ipv4.src)) || key 2387 net/sched/cls_flower.c fl_dump_key_val(skb, &key->enc_ipv4.dst, key 2390 net/sched/cls_flower.c sizeof(key->enc_ipv4.dst)))) key 2392 net/sched/cls_flower.c else if (key->enc_control.addr_type == FLOW_DISSECTOR_KEY_IPV6_ADDRS && key 2393 net/sched/cls_flower.c (fl_dump_key_val(skb, &key->enc_ipv6.src, key 2396 net/sched/cls_flower.c sizeof(key->enc_ipv6.src)) || key 2397 net/sched/cls_flower.c fl_dump_key_val(skb, &key->enc_ipv6.dst, key 2401 net/sched/cls_flower.c sizeof(key->enc_ipv6.dst)))) key 2404 net/sched/cls_flower.c if (fl_dump_key_val(skb, &key->enc_key_id, TCA_FLOWER_KEY_ENC_KEY_ID, key 2406 net/sched/cls_flower.c sizeof(key->enc_key_id)) || key 2407 net/sched/cls_flower.c fl_dump_key_val(skb, &key->enc_tp.src, key 2411 net/sched/cls_flower.c sizeof(key->enc_tp.src)) || key 2412 net/sched/cls_flower.c fl_dump_key_val(skb, &key->enc_tp.dst, key 2416 net/sched/cls_flower.c sizeof(key->enc_tp.dst)) || key 2417 net/sched/cls_flower.c fl_dump_key_ip(skb, true, &key->enc_ip, &mask->enc_ip) || key 2418 net/sched/cls_flower.c fl_dump_key_enc_opt(skb, &key->enc_opts, &mask->enc_opts)) key 2421 net/sched/cls_flower.c if (fl_dump_key_ct(skb, &key->ct, &mask->ct)) key 2424 net/sched/cls_flower.c if (fl_dump_key_flags(skb, key->control.flags, mask->control.flags)) key 2438 net/sched/cls_flower.c struct fl_flow_key *key, *mask; key 2456 net/sched/cls_flower.c key = &f->key; key 2457 net/sched/cls_flower.c mask = &f->mask->key; key 2460 net/sched/cls_flower.c if (fl_dump_key(skb, net, key, mask)) key 2494 net/sched/cls_flower.c struct fl_flow_key *key, *mask; key 2501 net/sched/cls_flower.c key = &tmplt->dummy_key; key 2504 net/sched/cls_flower.c if (fl_dump_key(skb, net, key, mask)) key 175 net/sched/cls_rsvp.h (*(u32 *)(xprt + s->dpi.offset) ^ s->dpi.key)) && key 186 net/sched/cls_rsvp.h !(f->spi.mask & (*(u32 *)(xprt + f->spi.offset) ^ f->spi.key)) key 40 net/sched/cls_tcindex.c u16 key; key 80 net/sched/cls_tcindex.c u16 key) key 83 net/sched/cls_tcindex.c struct tcindex_filter_result *f = p->perfect + key; key 90 net/sched/cls_tcindex.c fp = &p->h[key % p->hash]; key 94 net/sched/cls_tcindex.c if (f->key == key) key 107 net/sched/cls_tcindex.c int key = (skb->tc_index & p->mask) >> p->shift; key 112 net/sched/cls_tcindex.c f = tcindex_lookup(p, key); key 118 net/sched/cls_tcindex.c res->classid = TC_H_MAKE(TC_H_MAJ(q->handle), key); key 460 net/sched/cls_tcindex.c f->key = handle; key 668 net/sched/cls_tcindex.c t->tcm_handle = f->key; key 94 net/sched/cls_u32.c static inline unsigned int u32_hash_fold(__be32 key, key 98 net/sched/cls_u32.c unsigned int h = ntohl(key & sel->hmask) >> fshift; key 127 net/sched/cls_u32.c struct tc_u32_key *key = n->sel.keys; key 148 net/sched/cls_u32.c for (i = n->sel.nkeys; i > 0; i--, key++) { key 149 net/sched/cls_u32.c int toff = off + key->off + (off2 & key->offmask); key 158 net/sched/cls_u32.c if ((*data ^ key->val) & key->mask) { key 335 net/sched/cls_u32.c static struct hlist_head *tc_u_hash(void *key) key 337 net/sched/cls_u32.c return tc_u_common_hash + hash_ptr(key, U32_HASH_SHIFT); key 340 net/sched/cls_u32.c static struct tc_u_common *tc_u_common_find(void *key) key 343 net/sched/cls_u32.c hlist_for_each_entry(tc, tc_u_hash(key), hnode) { key 344 net/sched/cls_u32.c if (tc->ptr == key) key 353 net/sched/cls_u32.c void *key = tc_u_common_ptr(tp); key 354 net/sched/cls_u32.c struct tc_u_common *tp_c = tc_u_common_find(key); key 372 net/sched/cls_u32.c tp_c->ptr = key; key 376 net/sched/cls_u32.c hlist_add_head(&tp_c->hnode, tc_u_hash(key)); key 419 net/sched/cls_u32.c struct tc_u_knode *key = container_of(to_rcu_work(work), key 423 net/sched/cls_u32.c u32_destroy_key(key, false); key 436 net/sched/cls_u32.c struct tc_u_knode *key = container_of(to_rcu_work(work), key 440 net/sched/cls_u32.c u32_destroy_key(key, true); key 444 net/sched/cls_u32.c static int u32_delete_key(struct tcf_proto *tp, struct tc_u_knode *key) key 449 net/sched/cls_u32.c struct tc_u_hnode *ht = rtnl_dereference(key->ht_up); key 452 net/sched/cls_u32.c kp = &ht->ht[TC_U32_HASH(key->handle)]; key 455 net/sched/cls_u32.c if (pkp == key) { key 456 net/sched/cls_u32.c RCU_INIT_POINTER(*kp, key->next); key 459 net/sched/cls_u32.c tcf_unbind_filter(tp, &key->res); key 460 net/sched/cls_u32.c idr_remove(&ht->handle_idr, key->handle); key 461 net/sched/cls_u32.c tcf_exts_get_net(&key->exts); key 462 net/sched/cls_u32.c tcf_queue_work(&key->rwork, u32_delete_key_freepf_work); key 20 net/sched/em_u32.c struct tc_u32_key *key = (struct tc_u32_key *) em->data; key 26 net/sched/em_u32.c ptr += (info->nexthdr & key->offmask); key 29 net/sched/em_u32.c ptr += key->off; key 34 net/sched/em_u32.c return !(((*(__be32 *) ptr) ^ key->val) & key->mask); key 927 net/sctp/associola.c __be32 key = htonl(tsn); key 951 net/sctp/associola.c if (key == chunk->subh.data_hdr->tsn) { key 965 net/sctp/associola.c if (key == chunk->subh.data_hdr->tsn) { key 46 net/sctp/auth.c void sctp_auth_key_put(struct sctp_auth_bytes *key) key 48 net/sctp/auth.c if (!key) key 51 net/sctp/auth.c if (refcount_dec_and_test(&key->refcnt)) { key 52 net/sctp/auth.c kzfree(key); key 60 net/sctp/auth.c struct sctp_auth_bytes *key; key 67 net/sctp/auth.c key = kmalloc(sizeof(struct sctp_auth_bytes) + key_len, gfp); key 68 net/sctp/auth.c if (!key) key 71 net/sctp/auth.c key->len = key_len; key 72 net/sctp/auth.c refcount_set(&key->refcnt, 1); key 75 net/sctp/auth.c return key; key 99 net/sctp/auth.c sctp_auth_key_put(sh_key->key); key 100 net/sctp/auth.c sh_key->key = NULL; key 263 net/sctp/auth.c if (ep_key->key) key 264 net/sctp/auth.c auth_len += ep_key->key->len; key 270 net/sctp/auth.c if (ep_key->key) { key 271 net/sctp/auth.c memcpy(secret->data, ep_key->key->data, ep_key->key->len); key 272 net/sctp/auth.c offset += ep_key->key->len; key 367 net/sctp/auth.c new->key = sh_key->key; key 368 net/sctp/auth.c sctp_auth_key_hold(new->key); key 433 net/sctp/auth.c struct sctp_shared_key *key; key 436 net/sctp/auth.c key_for_each(key, &asoc->endpoint_shared_keys) { key 437 net/sctp/auth.c if (key->key_id == key_id) { key 438 net/sctp/auth.c if (!key->deactivated) key 439 net/sctp/auth.c return key; key 827 net/sctp/auth.c struct sctp_auth_bytes *key; key 856 net/sctp/auth.c key = sctp_auth_create_key(auth_key->sca_keylength, GFP_KERNEL); key 857 net/sctp/auth.c if (!key) { key 862 net/sctp/auth.c memcpy(key->data, &auth_key->sca_key[0], auth_key->sca_keylength); key 863 net/sctp/auth.c cur_key->key = key; key 878 net/sctp/auth.c struct sctp_shared_key *key; key 893 net/sctp/auth.c key_for_each(key, sh_keys) { key 894 net/sctp/auth.c if (key->key_id == key_id) { key 900 net/sctp/auth.c if (!found || key->deactivated) key 916 net/sctp/auth.c struct sctp_shared_key *key; key 939 net/sctp/auth.c key_for_each(key, sh_keys) { key 940 net/sctp/auth.c if (key->key_id == key_id) { key 950 net/sctp/auth.c list_del_init(&key->key_list); key 951 net/sctp/auth.c sctp_auth_shkey_release(key); key 959 net/sctp/auth.c struct sctp_shared_key *key; key 982 net/sctp/auth.c key_for_each(key, sh_keys) { key 983 net/sctp/auth.c if (key->key_id == key_id) { key 996 net/sctp/auth.c if (asoc && !list_empty(&key->key_list) && key 997 net/sctp/auth.c refcount_read(&key->refcnt) == 1) { key 1000 net/sctp/auth.c ev = sctp_ulpevent_make_authkey(asoc, key->key_id, key 1006 net/sctp/auth.c key->deactivated = 1; key 877 net/sctp/input.c const struct sctp_hash_cmp_arg *x = arg->key; key 265 net/smc/smc_wr.c link->wr_reg.key = mr->rkey; key 246 net/sunrpc/auth_gss/gss_krb5_keys.c static void mit_des_fixup_key_parity(u8 key[8]) key 250 net/sunrpc/auth_gss/gss_krb5_keys.c key[i] &= 0xfe; key 251 net/sunrpc/auth_gss/gss_krb5_keys.c key[i] |= 1^parity_char(key[i]); key 260 net/sunrpc/auth_gss/gss_krb5_keys.c struct xdr_netobj *key) key 265 net/sunrpc/auth_gss/gss_krb5_keys.c if (key->len != 24) { key 266 net/sunrpc/auth_gss/gss_krb5_keys.c dprintk("%s: key->len is %d\n", __func__, key->len); key 279 net/sunrpc/auth_gss/gss_krb5_keys.c memcpy(key->data + i*8, randombits->data + i*7, 7); key 280 net/sunrpc/auth_gss/gss_krb5_keys.c key->data[i*8+7] = (((key->data[i*8]&1)<<1) | key 281 net/sunrpc/auth_gss/gss_krb5_keys.c ((key->data[i*8+1]&1)<<2) | key 282 net/sunrpc/auth_gss/gss_krb5_keys.c ((key->data[i*8+2]&1)<<3) | key 283 net/sunrpc/auth_gss/gss_krb5_keys.c ((key->data[i*8+3]&1)<<4) | key 284 net/sunrpc/auth_gss/gss_krb5_keys.c ((key->data[i*8+4]&1)<<5) | key 285 net/sunrpc/auth_gss/gss_krb5_keys.c ((key->data[i*8+5]&1)<<6) | key 286 net/sunrpc/auth_gss/gss_krb5_keys.c ((key->data[i*8+6]&1)<<7)); key 288 net/sunrpc/auth_gss/gss_krb5_keys.c mit_des_fixup_key_parity(key->data + i*8); key 300 net/sunrpc/auth_gss/gss_krb5_keys.c struct xdr_netobj *key) key 304 net/sunrpc/auth_gss/gss_krb5_keys.c if (key->len != 16 && key->len != 32) { key 305 net/sunrpc/auth_gss/gss_krb5_keys.c dprintk("%s: key->len is %d\n", __func__, key->len); key 313 net/sunrpc/auth_gss/gss_krb5_keys.c if (randombits->len != key->len) { key 315 net/sunrpc/auth_gss/gss_krb5_keys.c __func__, randombits->len, key->len); key 318 net/sunrpc/auth_gss/gss_krb5_keys.c memcpy(key->data, randombits->data, key->len); key 200 net/sunrpc/auth_gss/gss_krb5_mech.c struct xdr_netobj key; key 222 net/sunrpc/auth_gss/gss_krb5_mech.c p = simple_get_netobj(p, end, &key); key 233 net/sunrpc/auth_gss/gss_krb5_mech.c if (crypto_sync_skcipher_setkey(*res, key.data, key.len)) { key 239 net/sunrpc/auth_gss/gss_krb5_mech.c kfree(key.data); key 245 net/sunrpc/auth_gss/gss_krb5_mech.c kfree(key.data); key 327 net/sunrpc/auth_gss/gss_krb5_mech.c context_v2_alloc_cipher(struct krb5_ctx *ctx, const char *cname, u8 *key) key 337 net/sunrpc/auth_gss/gss_krb5_mech.c if (crypto_sync_skcipher_setkey(cp, key, ctx->gk5e->keylength)) { key 80 net/sunrpc/auth_gss/gss_krb5_seqnum.c struct crypto_sync_skcipher *key, key 106 net/sunrpc/auth_gss/gss_krb5_seqnum.c code = krb5_encrypt(key, cksum, plain, buf, 8); key 163 net/sunrpc/auth_gss/gss_krb5_seqnum.c struct crypto_sync_skcipher *key = kctx->seq; key 174 net/sunrpc/auth_gss/gss_krb5_seqnum.c if ((code = krb5_decrypt(key, cksum, buf, plain, 8))) key 60 net/sunrpc/cache.c struct cache_head *key, key 68 net/sunrpc/cache.c if (detail->match(tmp, key)) { key 81 net/sunrpc/cache.c struct cache_head *key, key 95 net/sunrpc/cache.c detail->init(new, key); key 101 net/sunrpc/cache.c if (detail->match(tmp, key)) { key 128 net/sunrpc/cache.c struct cache_head *key, int hash) key 132 net/sunrpc/cache.c ret = sunrpc_cache_find_rcu(detail, key, hash); key 136 net/sunrpc/cache.c return sunrpc_cache_add_entry(detail, key, hash); key 286 net/sunrpc/sched.c static int rpc_wait_bit_killable(struct wait_bit_key *key, int mode) key 331 net/sunrpc/xprtrdma/frwr_ops.c u8 key; key 368 net/sunrpc/xprtrdma/frwr_ops.c key = (u8)(ibmr->rkey & 0x000000FF); key 369 net/sunrpc/xprtrdma/frwr_ops.c ib_update_fast_reg_key(ibmr, ++key); key 373 net/sunrpc/xprtrdma/frwr_ops.c reg_wr->key = ibmr->rkey; key 235 net/tipc/group.c u64 nkey, key = (u64)node << 32 | port; key 241 net/tipc/group.c if (key < nkey) key 243 net/tipc/group.c else if (key > nkey) key 279 net/tipc/group.c u64 nkey, key = (u64)m->node << 32 | m->port; key 289 net/tipc/group.c if (key < nkey) key 291 net/tipc/group.c else if (key > nkey) key 2374 net/tipc/link.c u32 key; key 2421 net/tipc/link.c if (nla_put_u32(skb, map[i].key, map[i].val)) key 2510 net/tipc/link.c __u32 key; key 2542 net/tipc/link.c if (nla_put_u32(skb, map[i].key, map[i].val)) key 60 net/tipc/name_distr.c i->key = htonl(p->key); key 214 net/tipc/name_distr.c publ->node, publ->key); key 223 net/tipc/name_distr.c publ->key); key 272 net/tipc/name_distr.c u32 key = ntohl(i->key); key 277 net/tipc/name_distr.c port, key); key 284 net/tipc/name_distr.c upper, node, key); key 67 net/tipc/name_distr.h __be32 key; key 94 net/tipc/name_table.c u32 key) key 107 net/tipc/name_table.c publ->key = key; key 224 net/tipc/name_table.c u32 key) key 239 net/tipc/name_table.c if (p->key == key && (!p->node || p->node == node)) key 244 net/tipc/name_table.c p = tipc_publ_create(type, lower, upper, scope, node, port, key); key 266 net/tipc/name_table.c u32 node, u32 key) key 271 net/tipc/name_table.c if (p->key != key || (node && node != p->node)) key 339 net/tipc/name_table.c u32 port, u32 key) key 358 net/tipc/name_table.c scope, node, port, key); key 365 net/tipc/name_table.c u32 node, u32 key) key 380 net/tipc/name_table.c p = tipc_service_remove_publ(sr, node, key); key 612 net/tipc/name_table.c u32 key) key 627 net/tipc/name_table.c tipc_own_addr(net), port, key); key 644 net/tipc/name_table.c u32 upper, u32 key) key 654 net/tipc/name_table.c p = tipc_nametbl_remove_publ(net, type, lower, upper, self, key); key 662 net/tipc/name_table.c type, lower, upper, key); key 764 net/tipc/name_table.c tipc_service_remove_publ(sr, p->node, p->key); key 813 net/tipc/name_table.c if (p->key == *last_key) key 815 net/tipc/name_table.c if (p->key != *last_key) key 824 net/tipc/name_table.c *last_key = p->key; key 852 net/tipc/name_table.c if (nla_put_u32(msg->skb, TIPC_NLA_PUBL_KEY, p->key)) key 81 net/tipc/name_table.h u32 key; key 121 net/tipc/name_table.h u32 key); key 123 net/tipc/name_table.h u32 key); key 126 net/tipc/name_table.h u32 node, u32 ref, u32 key); key 129 net/tipc/name_table.h u32 node, u32 key); key 2718 net/tipc/socket.c u32 key; key 2725 net/tipc/socket.c key = tsk->portid + tsk->pub_count + 1; key 2726 net/tipc/socket.c if (key == tsk->portid) key 2730 net/tipc/socket.c scope, tsk->portid, key); key 2762 net/tipc/socket.c publ->upper, publ->key); key 2767 net/tipc/socket.c publ->upper, publ->key); key 3525 net/tipc/socket.c if (nla_put_u32(skb, TIPC_NLA_PUBL_KEY, publ->key)) key 3557 net/tipc/socket.c if (p->key == *last_publ) key 3560 net/tipc/socket.c if (p->key != *last_publ) { key 3579 net/tipc/socket.c *last_publ = p->key; key 443 net/tls/tls_device_fallback.c const u8 *key; key 455 net/tls/tls_device_fallback.c key = ((struct tls12_crypto_info_aes_gcm_128 *)crypto_info)->key; key 457 net/tls/tls_device_fallback.c rc = crypto_aead_setkey(offload_ctx->aead_send, key, key 2273 net/tls/tls_sw.c char *iv, *rec_seq, *key, *salt, *cipher_name; key 2338 net/tls/tls_sw.c key = gcm_128_info->key; key 2355 net/tls/tls_sw.c key = gcm_256_info->key; key 2372 net/tls/tls_sw.c key = ccm_128_info->key; key 2433 net/tls/tls_sw.c rc = crypto_aead_setkey(*aead, key, keysize); key 355 net/unix/af_unix.c void *key) key 369 net/unix/af_unix.c wake_up_interruptible_poll(u_sleep, key_to_poll(key)); key 368 net/wireless/core.h const u8 *key, int key_len, int key_idx, key 299 net/wireless/ibss.c ck->params[i].key = ck->data[i]; key 40 net/wireless/lib80211_crypt_ccmp.c u8 key[CCMP_TK_LEN]; key 156 net/wireless/lib80211_crypt_ccmp.c struct lib80211_ccmp_data *key = priv; key 164 net/wireless/lib80211_crypt_ccmp.c memcpy(aeskey, key->key, CCMP_TK_LEN); key 172 net/wireless/lib80211_crypt_ccmp.c key->tx_pn[i]++; key 173 net/wireless/lib80211_crypt_ccmp.c if (key->tx_pn[i] != 0) key 178 net/wireless/lib80211_crypt_ccmp.c *pos++ = key->tx_pn[5]; key 179 net/wireless/lib80211_crypt_ccmp.c *pos++ = key->tx_pn[4]; key 181 net/wireless/lib80211_crypt_ccmp.c *pos++ = (key->key_idx << 6) | (1 << 5) /* Ext IV included */ ; key 182 net/wireless/lib80211_crypt_ccmp.c *pos++ = key->tx_pn[3]; key 183 net/wireless/lib80211_crypt_ccmp.c *pos++ = key->tx_pn[2]; key 184 net/wireless/lib80211_crypt_ccmp.c *pos++ = key->tx_pn[1]; key 185 net/wireless/lib80211_crypt_ccmp.c *pos++ = key->tx_pn[0]; key 192 net/wireless/lib80211_crypt_ccmp.c struct lib80211_ccmp_data *key = priv; key 196 net/wireless/lib80211_crypt_ccmp.c u8 *aad = key->tx_aad; key 209 net/wireless/lib80211_crypt_ccmp.c req = aead_request_alloc(key->tfm, GFP_ATOMIC); key 214 net/wireless/lib80211_crypt_ccmp.c aad_len = ccmp_init_iv_and_aad(hdr, key->tx_pn, iv, aad); key 256 net/wireless/lib80211_crypt_ccmp.c struct lib80211_ccmp_data *key = priv; key 261 net/wireless/lib80211_crypt_ccmp.c u8 *aad = key->rx_aad; key 268 net/wireless/lib80211_crypt_ccmp.c key->dot11RSNAStatsCCMPFormatErrors++; key 278 net/wireless/lib80211_crypt_ccmp.c key->dot11RSNAStatsCCMPFormatErrors++; key 282 net/wireless/lib80211_crypt_ccmp.c if (key->key_idx != keyidx) { key 284 net/wireless/lib80211_crypt_ccmp.c key->key_idx, keyidx); key 287 net/wireless/lib80211_crypt_ccmp.c if (!key->key_set) { key 301 net/wireless/lib80211_crypt_ccmp.c if (ccmp_replay_check(pn, key->rx_pn)) { key 305 net/wireless/lib80211_crypt_ccmp.c key->rx_pn[0], key->rx_pn[1], key->rx_pn[2], key 306 net/wireless/lib80211_crypt_ccmp.c key->rx_pn[3], key->rx_pn[4], key->rx_pn[5], key 309 net/wireless/lib80211_crypt_ccmp.c key->dot11RSNAStatsCCMPReplays++; key 313 net/wireless/lib80211_crypt_ccmp.c req = aead_request_alloc(key->tfm, GFP_ATOMIC); key 333 net/wireless/lib80211_crypt_ccmp.c key->dot11RSNAStatsCCMPDecryptErrors++; key 337 net/wireless/lib80211_crypt_ccmp.c memcpy(key->rx_pn, pn, CCMP_PN_LEN); key 347 net/wireless/lib80211_crypt_ccmp.c static int lib80211_ccmp_set_key(void *key, int len, u8 * seq, void *priv) key 358 net/wireless/lib80211_crypt_ccmp.c memcpy(data->key, key, CCMP_TK_LEN); key 369 net/wireless/lib80211_crypt_ccmp.c crypto_aead_setkey(data->tfm, data->key, CCMP_TK_LEN)) key 379 net/wireless/lib80211_crypt_ccmp.c static int lib80211_ccmp_get_key(void *key, int len, u8 * seq, void *priv) key 388 net/wireless/lib80211_crypt_ccmp.c memcpy(key, data->key, CCMP_TK_LEN); key 44 net/wireless/lib80211_crypt_tkip.c u8 key[TKIP_KEY_LEN]; key 299 net/wireless/lib80211_crypt_tkip.c tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, key 303 net/wireless/lib80211_crypt_tkip.c tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); key 432 net/wireless/lib80211_crypt_tkip.c tkip_mixing_phase1(tkey->rx_ttak, tkey->key, hdr->addr2, iv32); key 435 net/wireless/lib80211_crypt_tkip.c tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); key 474 net/wireless/lib80211_crypt_tkip.c static int michael_mic(struct crypto_shash *tfm_michael, u8 *key, u8 *hdr, key 487 net/wireless/lib80211_crypt_tkip.c if (crypto_shash_setkey(tfm_michael, key, 8)) key 556 net/wireless/lib80211_crypt_tkip.c if (michael_mic(tkey->tx_tfm_michael, &tkey->key[16], tkey->tx_hdr, key 594 net/wireless/lib80211_crypt_tkip.c if (michael_mic(tkey->rx_tfm_michael, &tkey->key[24], tkey->rx_hdr, key 620 net/wireless/lib80211_crypt_tkip.c static int lib80211_tkip_set_key(void *key, int len, u8 * seq, void *priv) key 637 net/wireless/lib80211_crypt_tkip.c memcpy(tkey->key, key, TKIP_KEY_LEN); key 653 net/wireless/lib80211_crypt_tkip.c static int lib80211_tkip_get_key(void *key, int len, u8 * seq, void *priv) key 662 net/wireless/lib80211_crypt_tkip.c memcpy(key, tkey->key, TKIP_KEY_LEN); key 32 net/wireless/lib80211_crypt_wep.c u8 key[WEP_KEY_LEN + 1]; key 64 net/wireless/lib80211_crypt_wep.c u8 *key, int keylen, void *priv) key 110 net/wireless/lib80211_crypt_wep.c u8 key[WEP_KEY_LEN + 3]; key 121 net/wireless/lib80211_crypt_wep.c skb_copy_from_linear_data_offset(skb, hdr_len, key, 3); key 124 net/wireless/lib80211_crypt_wep.c memcpy(key + 3, wep->key, wep->key_len); key 138 net/wireless/lib80211_crypt_wep.c arc4_setkey(&wep->tx_ctx, key, klen); key 155 net/wireless/lib80211_crypt_wep.c u8 key[WEP_KEY_LEN + 3]; key 162 net/wireless/lib80211_crypt_wep.c key[0] = *pos++; key 163 net/wireless/lib80211_crypt_wep.c key[1] = *pos++; key 164 net/wireless/lib80211_crypt_wep.c key[2] = *pos++; key 172 net/wireless/lib80211_crypt_wep.c memcpy(key + 3, wep->key, wep->key_len); key 177 net/wireless/lib80211_crypt_wep.c arc4_setkey(&wep->rx_ctx, key, klen); key 198 net/wireless/lib80211_crypt_wep.c static int lib80211_wep_set_key(void *key, int len, u8 * seq, void *priv) key 205 net/wireless/lib80211_crypt_wep.c memcpy(wep->key, key, len); key 211 net/wireless/lib80211_crypt_wep.c static int lib80211_wep_get_key(void *key, int len, u8 * seq, void *priv) key 218 net/wireless/lib80211_crypt_wep.c memcpy(key, wep->key, wep->key_len); key 228 net/wireless/mlme.c const u8 *key, int key_len, int key_idx, key 238 net/wireless/mlme.c .key = key, key 247 net/wireless/mlme.c if (!key || !key_len || key_idx < 0 || key_idx > 3) key 1035 net/wireless/nl80211.c static int nl80211_parse_key_new(struct genl_info *info, struct nlattr *key, key 1039 net/wireless/nl80211.c int err = nla_parse_nested_deprecated(tb, NL80211_KEY_MAX, key, key 1059 net/wireless/nl80211.c k->p.key = nla_data(tb[NL80211_KEY_DATA]); key 1098 net/wireless/nl80211.c k->p.key = nla_data(info->attrs[NL80211_ATTR_KEY_DATA]); key 1200 net/wireless/nl80211.c struct nlattr *key; key 1205 net/wireless/nl80211.c nla_for_each_nested(key, keys, rem) { key 1219 net/wireless/nl80211.c nla_for_each_nested(key, keys, rem) { key 1223 net/wireless/nl80211.c err = nl80211_parse_key_new(info, key, &parse); key 1227 net/wireless/nl80211.c if (!parse.p.key) key 1257 net/wireless/nl80211.c result->params[parse.idx].key = result->data[parse.idx]; key 1258 net/wireless/nl80211.c memcpy(result->data[parse.idx], parse.p.key, parse.p.key_len); key 3715 net/wireless/nl80211.c struct nlattr *key; key 3718 net/wireless/nl80211.c if ((params->key && key 3720 net/wireless/nl80211.c params->key_len, params->key)) || key 3729 net/wireless/nl80211.c key = nla_nest_start_noflag(cookie->msg, NL80211_ATTR_KEY); key 3730 net/wireless/nl80211.c if (!key) key 3733 net/wireless/nl80211.c if ((params->key && key 3735 net/wireless/nl80211.c params->key_len, params->key)) || key 3747 net/wireless/nl80211.c nla_nest_end(cookie->msg, key); key 3831 net/wireless/nl80211.c struct key_parse key; key 3835 net/wireless/nl80211.c err = nl80211_parse_key(info, &key); key 3839 net/wireless/nl80211.c if (key.idx < 0) key 3845 net/wireless/nl80211.c if (!key.def && !key.defmgmt && key 3846 net/wireless/nl80211.c !(key.p.mode == NL80211_KEY_SET_TX)) key 3851 net/wireless/nl80211.c if (key.def) { key 3861 net/wireless/nl80211.c err = rdev_set_default_key(rdev, dev, key.idx, key 3862 net/wireless/nl80211.c key.def_uni, key.def_multi); key 3868 net/wireless/nl80211.c dev->ieee80211_ptr->wext.default_key = key.idx; key 3870 net/wireless/nl80211.c } else if (key.defmgmt) { key 3871 net/wireless/nl80211.c if (key.def_uni || !key.def_multi) { key 3885 net/wireless/nl80211.c err = rdev_set_default_mgmt_key(rdev, dev, key.idx); key 3890 net/wireless/nl80211.c dev->ieee80211_ptr->wext.default_mgmt_key = key.idx; key 3892 net/wireless/nl80211.c } else if (key.p.mode == NL80211_KEY_SET_TX && key 3900 net/wireless/nl80211.c if (!mac_addr || key.idx < 0 || key.idx > 1) { key 3905 net/wireless/nl80211.c err = rdev_add_key(rdev, dev, key.idx, key 3907 net/wireless/nl80211.c mac_addr, &key.p); key 3922 net/wireless/nl80211.c struct key_parse key; key 3925 net/wireless/nl80211.c err = nl80211_parse_key(info, &key); key 3929 net/wireless/nl80211.c if (!key.p.key) key 3935 net/wireless/nl80211.c if (key.type == -1) { key 3937 net/wireless/nl80211.c key.type = NL80211_KEYTYPE_PAIRWISE; key 3939 net/wireless/nl80211.c key.type = NL80211_KEYTYPE_GROUP; key 3943 net/wireless/nl80211.c if (key.type != NL80211_KEYTYPE_PAIRWISE && key 3944 net/wireless/nl80211.c key.type != NL80211_KEYTYPE_GROUP) key 3950 net/wireless/nl80211.c if (cfg80211_validate_key_settings(rdev, &key.p, key.idx, key 3951 net/wireless/nl80211.c key.type == NL80211_KEYTYPE_PAIRWISE, key 3958 net/wireless/nl80211.c err = rdev_add_key(rdev, dev, key.idx, key 3959 net/wireless/nl80211.c key.type == NL80211_KEYTYPE_PAIRWISE, key 3960 net/wireless/nl80211.c mac_addr, &key.p); key 3972 net/wireless/nl80211.c struct key_parse key; key 3974 net/wireless/nl80211.c err = nl80211_parse_key(info, &key); key 3981 net/wireless/nl80211.c if (key.type == -1) { key 3983 net/wireless/nl80211.c key.type = NL80211_KEYTYPE_PAIRWISE; key 3985 net/wireless/nl80211.c key.type = NL80211_KEYTYPE_GROUP; key 3989 net/wireless/nl80211.c if (key.type != NL80211_KEYTYPE_PAIRWISE && key 3990 net/wireless/nl80211.c key.type != NL80211_KEYTYPE_GROUP) key 3999 net/wireless/nl80211.c if (key.type == NL80211_KEYTYPE_GROUP && mac_addr && key 4004 net/wireless/nl80211.c err = rdev_del_key(rdev, dev, key.idx, key 4005 net/wireless/nl80211.c key.type == NL80211_KEYTYPE_PAIRWISE, key 4010 net/wireless/nl80211.c if (key.idx == dev->ieee80211_ptr->wext.default_key) key 4012 net/wireless/nl80211.c else if (key.idx == dev->ieee80211_ptr->wext.default_mgmt_key) key 8944 net/wireless/nl80211.c struct key_parse key; key 8959 net/wireless/nl80211.c err = nl80211_parse_key(info, &key); key 8963 net/wireless/nl80211.c if (key.idx >= 0) { key 8964 net/wireless/nl80211.c if (key.type != -1 && key.type != NL80211_KEYTYPE_GROUP) key 8966 net/wireless/nl80211.c if (!key.p.key || !key.p.key_len) key 8968 net/wireless/nl80211.c if ((key.p.cipher != WLAN_CIPHER_SUITE_WEP40 || key 8969 net/wireless/nl80211.c key.p.key_len != WLAN_KEY_LEN_WEP40) && key 8970 net/wireless/nl80211.c (key.p.cipher != WLAN_CIPHER_SUITE_WEP104 || key 8971 net/wireless/nl80211.c key.p.key_len != WLAN_KEY_LEN_WEP104)) key 8973 net/wireless/nl80211.c if (key.idx > 3) key 8976 net/wireless/nl80211.c key.p.key_len = 0; key 8977 net/wireless/nl80211.c key.p.key = NULL; key 8980 net/wireless/nl80211.c if (key.idx >= 0) { key 8985 net/wireless/nl80211.c if (key.p.cipher == rdev->wiphy.cipher_suites[i]) { key 9051 net/wireless/nl80211.c key.p.key, key.p.key_len, key.idx, key 720 net/wireless/reg.c static struct key *builtin_regdb_keys; key 726 net/wireless/reg.c key_ref_t key; key 742 net/wireless/reg.c key = key_create_or_update(make_key_ref(builtin_regdb_keys, 1), key 749 net/wireless/reg.c if (IS_ERR(key)) { key 751 net/wireless/reg.c PTR_ERR(key)); key 754 net/wireless/reg.c key_ref_to_ptr(key)->description); key 755 net/wireless/reg.c key_ref_put(key); key 176 net/wireless/sme.c params->key, params->key_len, key 1215 net/wireless/sme.c connect->key = connkeys->params[idx].key; key 418 net/wireless/wext-compat.c wdev->wext.keys->params[i].key = key 508 net/wireless/wext-compat.c params->key, params->key_len); key 509 net/wireless/wext-compat.c wdev->wext.keys->params[idx].key = key 610 net/wireless/wext-compat.c params.key = keybuf; key 698 net/wireless/wext-compat.c params.key = ext->key; key 746 net/wireless/wext-compat.c memcpy(keybuf, wdev->wext.keys->params[idx].key, erq->length); key 51 net/wireless/wext-sme.c ck->params[i].key = ck->data[i]; key 1462 net/xfrm/xfrm_policy.c const struct xfrm_pol_inexact_key *key = arg->key; key 1466 net/xfrm/xfrm_policy.c if (!net_eq(read_pnet(&b->k.net), read_pnet(&key->net))) key 1469 net/xfrm/xfrm_policy.c ret = b->k.dir ^ key->dir; key 1473 net/xfrm/xfrm_policy.c ret = b->k.type ^ key->type; key 1477 net/xfrm/xfrm_policy.c ret = b->k.family ^ key->family; key 1481 net/xfrm/xfrm_policy.c return b->k.if_id ^ key->if_id; key 107 samples/bpf/cpustat_kern.c u32 key, cpu, pstate_idx; key 115 samples/bpf/cpustat_kern.c key = cpu * MAP_OFF_NUM + MAP_OFF_CSTATE_TIME; key 116 samples/bpf/cpustat_kern.c cts = bpf_map_lookup_elem(&my_map, &key); key 120 samples/bpf/cpustat_kern.c key = cpu * MAP_OFF_NUM + MAP_OFF_CSTATE_IDX; key 121 samples/bpf/cpustat_kern.c cstate = bpf_map_lookup_elem(&my_map, &key); key 125 samples/bpf/cpustat_kern.c key = cpu * MAP_OFF_NUM + MAP_OFF_PSTATE_TIME; key 126 samples/bpf/cpustat_kern.c pts = bpf_map_lookup_elem(&my_map, &key); key 130 samples/bpf/cpustat_kern.c key = cpu * MAP_OFF_NUM + MAP_OFF_PSTATE_IDX; key 131 samples/bpf/cpustat_kern.c pstate = bpf_map_lookup_elem(&my_map, &key); key 175 samples/bpf/cpustat_kern.c key = cpu * MAX_PSTATE_ENTRIES + pstate_idx; key 176 samples/bpf/cpustat_kern.c val = bpf_map_lookup_elem(&pstate_duration, &key); key 198 samples/bpf/cpustat_kern.c key = cpu * MAX_CSTATE_ENTRIES + prev_state; key 199 samples/bpf/cpustat_kern.c val = bpf_map_lookup_elem(&cstate_duration, &key); key 215 samples/bpf/cpustat_kern.c u32 key, cpu, pstate_idx; key 220 samples/bpf/cpustat_kern.c key = cpu * MAP_OFF_NUM + MAP_OFF_PSTATE_TIME; key 221 samples/bpf/cpustat_kern.c pts = bpf_map_lookup_elem(&my_map, &key); key 225 samples/bpf/cpustat_kern.c key = cpu * MAP_OFF_NUM + MAP_OFF_PSTATE_IDX; key 226 samples/bpf/cpustat_kern.c pstate = bpf_map_lookup_elem(&my_map, &key); key 230 samples/bpf/cpustat_kern.c key = cpu * MAP_OFF_NUM + MAP_OFF_CSTATE_IDX; key 231 samples/bpf/cpustat_kern.c cstate = bpf_map_lookup_elem(&my_map, &key); key 272 samples/bpf/cpustat_kern.c key = cpu * MAX_PSTATE_ENTRIES + pstate_idx; key 273 samples/bpf/cpustat_kern.c val = bpf_map_lookup_elem(&pstate_duration, &key); key 80 samples/bpf/cpustat_user.c unsigned long key, value; key 85 samples/bpf/cpustat_user.c key = c * MAX_CSTATE_ENTRIES + i; key 86 samples/bpf/cpustat_user.c bpf_map_lookup_elem(cstate_fd, &key, &value); key 91 samples/bpf/cpustat_user.c key = c * MAX_PSTATE_ENTRIES + i; key 92 samples/bpf/cpustat_user.c bpf_map_lookup_elem(pstate_fd, &key, &value); key 75 samples/bpf/fds_example.c static int bpf_do_map(const char *file, uint32_t flags, uint32_t key, key 95 samples/bpf/fds_example.c ret = bpf_map_update_elem(fd, &key, &value, 0); key 96 samples/bpf/fds_example.c printf("bpf: fd:%d u->(%u:%u) ret:(%d,%s)\n", fd, key, value, key 100 samples/bpf/fds_example.c ret = bpf_map_lookup_elem(fd, &key, &value); key 101 samples/bpf/fds_example.c printf("bpf: fd:%d l->(%u):%u ret:(%d,%s)\n", fd, key, value, key 141 samples/bpf/fds_example.c uint32_t key = 0, value = 0, flags = 0; key 161 samples/bpf/fds_example.c key = strtoul(optarg, NULL, 0); key 185 samples/bpf/fds_example.c return bpf_do_map(file, flags, key, value); key 164 samples/bpf/hbm.c int key = 0; key 193 samples/bpf/hbm.c if (bpf_map_update_elem(map_fd, &key, &qstats, BPF_ANY)) { key 216 samples/bpf/hbm.c bpf_map_lookup_elem(map_fd, &key, &qstats); key 245 samples/bpf/hbm.c bpf_map_lookup_elem(map_fd, &key, &qstats); key 292 samples/bpf/hbm.c if (bpf_map_update_elem(map_fd, &key, &qstats, BPF_ANY)) key 299 samples/bpf/hbm.c if (stats_flag && bpf_map_lookup_elem(map_fd, &key, &qstats)) { key 32 samples/bpf/ibumad_user.c __u32 key; key 35 samples/bpf/ibumad_user.c for (key = 0; key < 256; key++) { key 36 samples/bpf/ibumad_user.c if (bpf_map_lookup_elem(fd, &key, &value)) { key 37 samples/bpf/ibumad_user.c printf("failed to read key %u\n", key); key 41 samples/bpf/ibumad_user.c printf("0x%02x : %llu\n", key, value); key 75 samples/bpf/lathist_kern.c int key, cpu; key 89 samples/bpf/lathist_kern.c key = cpu * MAX_ENTRIES + delta; key 90 samples/bpf/lathist_kern.c val = bpf_map_lookup_elem(&my_lat, &key); key 64 samples/bpf/lathist_user.c long key, value; key 72 samples/bpf/lathist_user.c key = c * MAX_ENTRIES + i; key 73 samples/bpf/lathist_user.c bpf_map_lookup_elem(fd, &key, &value); key 69 samples/bpf/lwt_len_hist_kern.c __u64 *value, key, init_val = 1; key 71 samples/bpf/lwt_len_hist_kern.c key = log2l(skb->len); key 73 samples/bpf/lwt_len_hist_kern.c value = bpf_map_lookup_elem(&lwt_len_hist_map, &key); key 77 samples/bpf/lwt_len_hist_kern.c bpf_map_update_elem(&lwt_len_hist_map, &key, &init_val, BPF_ANY); key 34 samples/bpf/lwt_len_hist_user.c uint64_t key = 0, next_key, max_key = 0; key 45 samples/bpf/lwt_len_hist_user.c while (bpf_map_get_next_key(map_fd, &key, &next_key) == 0) { key 64 samples/bpf/lwt_len_hist_user.c key = next_key; key 101 samples/bpf/map_perf_test_kern.c u32 key = bpf_get_current_pid_tgid(); key 105 samples/bpf/map_perf_test_kern.c bpf_map_update_elem(&hash_map, &key, &init_val, BPF_ANY); key 106 samples/bpf/map_perf_test_kern.c value = bpf_map_lookup_elem(&hash_map, &key); key 108 samples/bpf/map_perf_test_kern.c bpf_map_delete_elem(&hash_map, &key); key 116 samples/bpf/map_perf_test_kern.c u32 key = bpf_get_current_pid_tgid(); key 120 samples/bpf/map_perf_test_kern.c bpf_map_update_elem(&percpu_hash_map, &key, &init_val, BPF_ANY); key 121 samples/bpf/map_perf_test_kern.c value = bpf_map_lookup_elem(&percpu_hash_map, &key); key 123 samples/bpf/map_perf_test_kern.c bpf_map_delete_elem(&percpu_hash_map, &key); key 130 samples/bpf/map_perf_test_kern.c u32 key = bpf_get_current_pid_tgid(); key 134 samples/bpf/map_perf_test_kern.c bpf_map_update_elem(&hash_map_alloc, &key, &init_val, BPF_ANY); key 135 samples/bpf/map_perf_test_kern.c value = bpf_map_lookup_elem(&hash_map_alloc, &key); key 137 samples/bpf/map_perf_test_kern.c bpf_map_delete_elem(&hash_map_alloc, &key); key 144 samples/bpf/map_perf_test_kern.c u32 key = bpf_get_current_pid_tgid(); key 148 samples/bpf/map_perf_test_kern.c bpf_map_update_elem(&percpu_hash_map_alloc, &key, &init_val, BPF_ANY); key 149 samples/bpf/map_perf_test_kern.c value = bpf_map_lookup_elem(&percpu_hash_map_alloc, &key); key 151 samples/bpf/map_perf_test_kern.c bpf_map_delete_elem(&percpu_hash_map_alloc, &key); key 167 samples/bpf/map_perf_test_kern.c u32 key; key 174 samples/bpf/map_perf_test_kern.c u32 key = 0; key 193 samples/bpf/map_perf_test_kern.c key = bpf_get_prandom_u32(); key 196 samples/bpf/map_perf_test_kern.c ret = bpf_map_update_elem(&lru_hash_map, &key, &val, BPF_ANY); key 198 samples/bpf/map_perf_test_kern.c ret = bpf_map_update_elem(&nocommon_lru_hash_map, &key, &val, key 211 samples/bpf/map_perf_test_kern.c ret = bpf_map_update_elem(nolocal_lru_map, &key, &val, key 216 samples/bpf/map_perf_test_kern.c key = test_params.key; key 220 samples/bpf/map_perf_test_kern.c bpf_map_lookup_elem(&lru_hash_lookup_map, &key); key 221 samples/bpf/map_perf_test_kern.c key++; key 240 samples/bpf/map_perf_test_kern.c } key; key 243 samples/bpf/map_perf_test_kern.c key.b32[0] = 32; key 244 samples/bpf/map_perf_test_kern.c key.b8[4] = 192; key 245 samples/bpf/map_perf_test_kern.c key.b8[5] = 168; key 246 samples/bpf/map_perf_test_kern.c key.b8[6] = 0; key 247 samples/bpf/map_perf_test_kern.c key.b8[7] = 1; key 251 samples/bpf/map_perf_test_kern.c bpf_map_lookup_elem(&lpm_trie_map_alloc, &key); key 259 samples/bpf/map_perf_test_kern.c u32 key = 1, i; key 264 samples/bpf/map_perf_test_kern.c value = bpf_map_lookup_elem(&hash_map, &key); key 272 samples/bpf/map_perf_test_kern.c u32 key = 1, i; key 277 samples/bpf/map_perf_test_kern.c value = bpf_map_lookup_elem(&array_map, &key); key 93 samples/bpf/map_perf_test_user.c uint32_t key; key 107 samples/bpf/map_perf_test_user.c for (key = 0; key < lru_hash_lookup_test_entries; key++) { key 108 samples/bpf/map_perf_test_user.c ret = bpf_map_update_elem(fd, &key, &val, BPF_NOEXIST); key 366 samples/bpf/map_perf_test_user.c struct bpf_lpm_trie_key *key; key 371 samples/bpf/map_perf_test_user.c key = alloca(sizeof(*key) + 4); key 372 samples/bpf/map_perf_test_user.c key->prefixlen = 32; key 375 samples/bpf/map_perf_test_user.c key->prefixlen = rand() % 33; key 376 samples/bpf/map_perf_test_user.c key->data[0] = rand() & 0xff; key 377 samples/bpf/map_perf_test_user.c key->data[1] = rand() & 0xff; key 378 samples/bpf/map_perf_test_user.c key->data[2] = rand() & 0xff; key 379 samples/bpf/map_perf_test_user.c key->data[3] = rand() & 0xff; key 380 samples/bpf/map_perf_test_user.c r = bpf_map_update_elem(map_fd[6], key, &value, 0); key 384 samples/bpf/map_perf_test_user.c key->prefixlen = 32; key 385 samples/bpf/map_perf_test_user.c key->data[0] = 192; key 386 samples/bpf/map_perf_test_user.c key->data[1] = 168; key 387 samples/bpf/map_perf_test_user.c key->data[2] = 0; key 388 samples/bpf/map_perf_test_user.c key->data[3] = 1; key 391 samples/bpf/map_perf_test_user.c r = bpf_map_update_elem(map_fd[6], key, &value, 0); key 80 samples/bpf/offwaketime_kern.c struct key_t key; key 82 samples/bpf/offwaketime_kern.c __builtin_memset(&key.waker, 0, sizeof(key.waker)); key 83 samples/bpf/offwaketime_kern.c bpf_get_current_comm(&key.target, sizeof(key.target)); key 84 samples/bpf/offwaketime_kern.c key.tret = bpf_get_stackid(ctx, &stackmap, STACKID_FLAGS); key 85 samples/bpf/offwaketime_kern.c key.wret = 0; key 89 samples/bpf/offwaketime_kern.c key.wret = woke->ret; key 90 samples/bpf/offwaketime_kern.c __builtin_memcpy(&key.waker, woke->name, sizeof(key.waker)); key 94 samples/bpf/offwaketime_kern.c val = bpf_map_lookup_elem(&counts, &key); key 96 samples/bpf/offwaketime_kern.c bpf_map_update_elem(&counts, &key, &zero, BPF_NOEXIST); key 97 samples/bpf/offwaketime_kern.c val = bpf_map_lookup_elem(&counts, &key); key 48 samples/bpf/offwaketime_user.c static void print_stack(struct key_t *key, __u64 count) key 54 samples/bpf/offwaketime_user.c printf("%s;", key->target); key 55 samples/bpf/offwaketime_user.c if (bpf_map_lookup_elem(map_fd[3], &key->tret, ip) != 0) { key 62 samples/bpf/offwaketime_user.c if (bpf_map_lookup_elem(map_fd[3], &key->wret, ip) != 0) { key 68 samples/bpf/offwaketime_user.c printf(";%s %lld\n", key->waker, count); key 70 samples/bpf/offwaketime_user.c if ((key->tret == -EEXIST || key->wret == -EEXIST) && !warned) { key 73 samples/bpf/offwaketime_user.c } else if (((int)(key->tret) < 0 || (int)(key->wret) < 0)) { key 74 samples/bpf/offwaketime_user.c printf("err stackid %d %d\n", key->tret, key->wret); key 80 samples/bpf/offwaketime_user.c struct key_t key = {}, next_key; key 83 samples/bpf/offwaketime_user.c while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { key 86 samples/bpf/offwaketime_user.c key = next_key; key 88 samples/bpf/sampleip_user.c __u64 key, next_key; key 95 samples/bpf/sampleip_user.c key = 0, i = 0; key 96 samples/bpf/sampleip_user.c while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { key 100 samples/bpf/sampleip_user.c key = next_key; key 37 samples/bpf/sock_example.c int sock = -1, map_fd, prog_fd, i, key; key 40 samples/bpf/sock_example.c map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(key), sizeof(value), key 79 samples/bpf/sock_example.c key = IPPROTO_TCP; key 80 samples/bpf/sock_example.c assert(bpf_map_lookup_elem(map_fd, &key, &tcp_cnt) == 0); key 82 samples/bpf/sock_example.c key = IPPROTO_UDP; key 83 samples/bpf/sock_example.c assert(bpf_map_lookup_elem(map_fd, &key, &udp_cnt) == 0); key 85 samples/bpf/sock_example.c key = IPPROTO_ICMP; key 86 samples/bpf/sock_example.c assert(bpf_map_lookup_elem(map_fd, &key, &icmp_cnt) == 0); key 9 samples/bpf/sockex1_kern.c __type(key, u32); key 37 samples/bpf/sockex1_user.c int key; key 39 samples/bpf/sockex1_user.c key = IPPROTO_TCP; key 40 samples/bpf/sockex1_user.c assert(bpf_map_lookup_elem(map_fd, &key, &tcp_cnt) == 0); key 42 samples/bpf/sockex1_user.c key = IPPROTO_UDP; key 43 samples/bpf/sockex1_user.c assert(bpf_map_lookup_elem(map_fd, &key, &udp_cnt) == 0); key 45 samples/bpf/sockex1_user.c key = IPPROTO_ICMP; key 46 samples/bpf/sockex1_user.c assert(bpf_map_lookup_elem(map_fd, &key, &icmp_cnt) == 0); key 194 samples/bpf/sockex2_kern.c __type(key, __be32); key 204 samples/bpf/sockex2_kern.c u32 key; key 209 samples/bpf/sockex2_kern.c key = flow.dst; key 210 samples/bpf/sockex2_kern.c value = bpf_map_lookup_elem(&hash_map, &key); key 217 samples/bpf/sockex2_kern.c bpf_map_update_elem(&hash_map, &key, &val, BPF_ANY); key 44 samples/bpf/sockex2_user.c int key = 0, next_key; key 47 samples/bpf/sockex2_user.c while (bpf_map_get_next_key(map_fd, &key, &next_key) == 0) { key 52 samples/bpf/sockex2_user.c key = next_key; key 104 samples/bpf/sockex3_kern.c u32 key = bpf_get_smp_processor_id(); key 106 samples/bpf/sockex3_kern.c return bpf_map_lookup_elem(&percpu_map, &key); key 124 samples/bpf/sockex3_kern.c struct flow_key_record key = g->flow; key 127 samples/bpf/sockex3_kern.c value = bpf_map_lookup_elem(&hash_map, &key); key 134 samples/bpf/sockex3_kern.c bpf_map_update_elem(&hash_map, &key, &val, BPF_ANY); key 36 samples/bpf/sockex3_user.c int i, sock, err, id, key = PARSE_IP; key 51 samples/bpf/sockex3_user.c err = bpf_map_lookup_elem(PROG_ARRAY_FD, &key, &id); key 67 samples/bpf/sockex3_user.c struct flow_key_record key = {}, next_key; key 72 samples/bpf/sockex3_user.c while (bpf_map_get_next_key(map_fd[2], &key, &next_key) == 0) { key 80 samples/bpf/sockex3_user.c key = next_key; key 15 samples/bpf/spintest_user.c long key, next_key, value; key 34 samples/bpf/spintest_user.c key = 0; key 36 samples/bpf/spintest_user.c while (bpf_map_get_next_key(map_fd[0], &key, &next_key) == 0) { key 40 samples/bpf/spintest_user.c key = next_key; key 48 samples/bpf/spintest_user.c if (key) key 50 samples/bpf/spintest_user.c key = 0; key 51 samples/bpf/spintest_user.c while (bpf_map_get_next_key(map_fd[0], &key, &next_key) == 0) key 37 samples/bpf/syscall_tp_kern.c u32 key = 0; key 40 samples/bpf/syscall_tp_kern.c value = bpf_map_lookup_elem(map, &key); key 44 samples/bpf/syscall_tp_kern.c bpf_map_update_elem(map, &key, &init_val, BPF_NOEXIST); key 32 samples/bpf/syscall_tp_user.c __u32 key = 0; key 35 samples/bpf/syscall_tp_user.c if (bpf_map_lookup_elem(map_id, &key, &val) != 0) { key 44 samples/bpf/syscall_tp_user.c if (bpf_map_update_elem(map_id, &key, &val, BPF_ANY) != 0) { key 65 samples/bpf/tc_l2_redirect_kern.c int key = 0, *ifindex; key 72 samples/bpf/tc_l2_redirect_kern.c ifindex = bpf_map_lookup_elem(&tun_iface, &key); key 116 samples/bpf/tc_l2_redirect_kern.c int key = 0, *ifindex; key 123 samples/bpf/tc_l2_redirect_kern.c ifindex = bpf_map_lookup_elem(&tun_iface, &key); key 157 samples/bpf/tc_l2_redirect_kern.c int key = 0, *ifindex; key 162 samples/bpf/tc_l2_redirect_kern.c ifindex = bpf_map_lookup_elem(&tun_iface, &key); key 18 samples/bpf/tcp_dumpstats_kern.c int *key; key 89 samples/bpf/test_cgrp2_attach.c int prog_fd, map_fd, ret, key; key 93 samples/bpf/test_cgrp2_attach.c sizeof(key), sizeof(byte_cnt), key 115 samples/bpf/test_cgrp2_attach.c key = MAP_KEY_PACKETS; key 116 samples/bpf/test_cgrp2_attach.c assert(bpf_map_lookup_elem(map_fd, &key, &pkt_cnt) == 0); key 118 samples/bpf/test_cgrp2_attach.c key = MAP_KEY_BYTES; key 119 samples/bpf/test_cgrp2_attach.c assert(bpf_map_lookup_elem(map_fd, &key, &byte_cnt) == 0); key 91 samples/bpf/test_lru_dist.c unsigned long long key; key 130 samples/bpf/test_lru_dist.c unsigned long long key) key 136 samples/bpf/test_lru_dist.c if (!bpf_map_lookup_elem(lru->map_fd, &key, &node)) { key 153 samples/bpf/test_lru_dist.c bpf_map_update_elem(lru->map_fd, &node->key, &null_node, BPF_EXIST); key 156 samples/bpf/test_lru_dist.c node->key = key; key 161 samples/bpf/test_lru_dist.c assert(!bpf_map_update_elem(lru->map_fd, &key, &node, BPF_EXIST)); key 164 samples/bpf/test_lru_dist.c assert(!bpf_map_update_elem(lru->map_fd, &key, &node, BPF_NOEXIST)); key 273 samples/bpf/test_lru_dist.c unsigned long long key, value = 1234; key 283 samples/bpf/test_lru_dist.c key = dist_keys[i] + key_offset; key 285 samples/bpf/test_lru_dist.c pfect_lru_lookup_or_insert(&pfect_lru, key); key 287 samples/bpf/test_lru_dist.c if (!bpf_map_lookup_elem(lru_map_fd, &key, &value)) key 290 samples/bpf/test_lru_dist.c if (bpf_map_update_elem(lru_map_fd, &key, &value, BPF_NOEXIST)) { key 292 samples/bpf/test_lru_dist.c key, errno); key 337 samples/bpf/test_lru_dist.c unsigned long long key, value[nr_cpus]; key 357 samples/bpf/test_lru_dist.c for (key = 1; key <= 1000; key++) { key 360 samples/bpf/test_lru_dist.c assert(bpf_map_update_elem(map_fd, &key, value, BPF_NOEXIST) == 0); key 363 samples/bpf/test_lru_dist.c end_key = min(key, 900); key 371 samples/bpf/test_lru_dist.c for (key = 1; key <= 1000; key++) { key 372 samples/bpf/test_lru_dist.c if (bpf_map_lookup_elem(map_fd, &key, value)) { key 373 samples/bpf/test_lru_dist.c if (key <= 100) key 375 samples/bpf/test_lru_dist.c else if (key <= 900) key 391 samples/bpf/test_lru_dist.c unsigned long long key, value[nr_cpus]; key 409 samples/bpf/test_lru_dist.c for (key = 1; key <= 1000; key++) key 410 samples/bpf/test_lru_dist.c assert(!bpf_map_update_elem(map_fd, &key, value, BPF_NOEXIST)); key 412 samples/bpf/test_lru_dist.c for (key = 1; key <= 1000; key++) { key 413 samples/bpf/test_lru_dist.c if (bpf_map_lookup_elem(map_fd, &key, value)) key 429 samples/bpf/test_lru_dist.c unsigned long long key, value[nr_cpus]; key 449 samples/bpf/test_lru_dist.c key = rn % nr_stable_elems + stable_base; key 450 samples/bpf/test_lru_dist.c bpf_map_lookup_elem(map_fd, &key, value); key 458 samples/bpf/test_lru_dist.c key = stable_base; key 460 samples/bpf/test_lru_dist.c if (bpf_map_lookup_elem(map_fd, &key, value)) key 462 samples/bpf/test_lru_dist.c key++; key 32 samples/bpf/test_map_in_map_user.c static void check_map_id(int inner_map_fd, int map_in_map_fd, uint32_t key) key 41 samples/bpf/test_map_in_map_user.c ret = bpf_map_lookup_elem(map_in_map_fd, &key, &id); key 46 samples/bpf/trace_event_kern.c struct key_t key; key 53 samples/bpf/trace_event_kern.c bpf_get_current_comm(&key.comm, sizeof(key.comm)); key 54 samples/bpf/trace_event_kern.c key.kernstack = bpf_get_stackid(ctx, &stackmap, KERN_STACKID_FLAGS); key 55 samples/bpf/trace_event_kern.c key.userstack = bpf_get_stackid(ctx, &stackmap, USER_STACKID_FLAGS); key 56 samples/bpf/trace_event_kern.c if ((int)key.kernstack < 0 && (int)key.userstack < 0) { key 71 samples/bpf/trace_event_kern.c val = bpf_map_lookup_elem(&counts, &key); key 75 samples/bpf/trace_event_kern.c bpf_map_update_elem(&counts, &key, &one, BPF_NOEXIST); key 61 samples/bpf/trace_event_user.c static void print_stack(struct key_t *key, __u64 count) key 67 samples/bpf/trace_event_user.c printf("%3lld %s;", count, key->comm); key 68 samples/bpf/trace_event_user.c if (bpf_map_lookup_elem(map_fd[1], &key->kernstack, ip) != 0) { key 75 samples/bpf/trace_event_user.c if (bpf_map_lookup_elem(map_fd[1], &key->userstack, ip) != 0) { key 86 samples/bpf/trace_event_user.c if (key->kernstack == -EEXIST && !warned) { key 89 samples/bpf/trace_event_user.c } else if ((int)key->kernstack < 0 && (int)key->userstack < 0) { key 90 samples/bpf/trace_event_user.c printf("err stackid %d %d\n", key->kernstack, key->userstack); key 102 samples/bpf/trace_event_user.c struct key_t key = {}, next_key; key 108 samples/bpf/trace_event_user.c while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { key 112 samples/bpf/trace_event_user.c key = next_key; key 85 samples/bpf/tracex2_kern.c struct hist_key key; key 87 samples/bpf/tracex2_kern.c key.index = log2l(write_size); key 88 samples/bpf/tracex2_kern.c key.pid_tgid = bpf_get_current_pid_tgid(); key 89 samples/bpf/tracex2_kern.c key.uid_gid = bpf_get_current_uid_gid(); key 90 samples/bpf/tracex2_kern.c bpf_get_current_comm(&key.comm, sizeof(key.comm)); key 92 samples/bpf/tracex2_kern.c value = bpf_map_lookup_elem(&my_hist_map, &key); key 96 samples/bpf/tracex2_kern.c bpf_map_update_elem(&my_hist_map, &key, &init_val, BPF_ANY); key 44 samples/bpf/tracex2_user.c struct hist_key key = {}, next_key; key 53 samples/bpf/tracex2_user.c while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { key 55 samples/bpf/tracex2_user.c key = next_key; key 68 samples/bpf/tracex2_user.c key = next_key; key 83 samples/bpf/tracex2_user.c struct hist_key key = {}, next_key; key 88 samples/bpf/tracex2_user.c while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { key 96 samples/bpf/tracex2_user.c key = next_key; key 119 samples/bpf/tracex2_user.c long key, next_key, value; key 147 samples/bpf/tracex2_user.c key = 0; key 148 samples/bpf/tracex2_user.c while (bpf_map_get_next_key(map_fd[0], &key, &next_key) == 0) { key 151 samples/bpf/tracex2_user.c key = next_key; key 153 samples/bpf/tracex2_user.c if (key) key 23 samples/bpf/tracex3_user.c __u32 key; key 26 samples/bpf/tracex3_user.c for (key = 0; key < SLOTS; key++) key 27 samples/bpf/tracex3_user.c bpf_map_update_elem(fd, &key, values, BPF_ANY); key 84 samples/bpf/tracex3_user.c __u32 key; key 87 samples/bpf/tracex3_user.c for (key = 0; key < SLOTS; key++) { key 88 samples/bpf/tracex3_user.c bpf_map_lookup_elem(fd, &key, values); key 92 samples/bpf/tracex3_user.c cnt[key] = value; key 98 samples/bpf/tracex3_user.c for (key = full_range ? 0 : 29; key < SLOTS; key++) { key 99 samples/bpf/tracex3_user.c int c = num_colors * cnt[key] / (max_cnt + 1); key 33 samples/bpf/tracex4_user.c __u64 key, next_key; key 36 samples/bpf/tracex4_user.c key = write(1, "\e[1;1H\e[2J", 12); /* clear screen */ key 38 samples/bpf/tracex4_user.c key = -1; key 39 samples/bpf/tracex4_user.c while (bpf_map_get_next_key(map_fd[0], &key, &next_key) == 0) { key 41 samples/bpf/tracex4_user.c key = next_key; key 28 samples/bpf/tracex6_kern.c u32 key = bpf_get_smp_processor_id(); key 32 samples/bpf/tracex6_kern.c count = bpf_perf_event_read(&counters, key); key 37 samples/bpf/tracex6_kern.c val = bpf_map_lookup_elem(&values, &key); key 41 samples/bpf/tracex6_kern.c bpf_map_update_elem(&values, &key, &count, BPF_NOEXIST); key 49 samples/bpf/tracex6_kern.c u32 key = bpf_get_smp_processor_id(); key 53 samples/bpf/tracex6_kern.c error = bpf_perf_event_read_value(&counters, key, &buf, sizeof(buf)); key 57 samples/bpf/tracex6_kern.c val = bpf_map_lookup_elem(&values2, &key); key 61 samples/bpf/tracex6_kern.c bpf_map_update_elem(&values2, &key, &buf, BPF_NOEXIST); key 19 samples/bpf/xdp1_kern.c __type(key, u32); key 51 samples/bpf/xdp1_user.c __u32 key = UINT32_MAX; key 55 samples/bpf/xdp1_user.c while (bpf_map_get_next_key(map_fd, &key, &key) != -1) { key 58 samples/bpf/xdp1_user.c assert(bpf_map_lookup_elem(map_fd, &key, values) == 0); key 61 samples/bpf/xdp1_user.c if (sum > prev[key]) key 63 samples/bpf/xdp1_user.c key, (sum - prev[key]) / interval); key 64 samples/bpf/xdp1_user.c prev[key] = sum; key 19 samples/bpf/xdp2_kern.c __type(key, u32); key 30 samples/bpf/xdp_adjust_tail_kern.c __type(key, __u32); key 37 samples/bpf/xdp_adjust_tail_kern.c u64 key = 0; key 40 samples/bpf/xdp_adjust_tail_kern.c icmp_count = bpf_map_lookup_elem(&icmpcnt, &key); key 56 samples/bpf/xdp_adjust_tail_user.c int key = 0; key 62 samples/bpf/xdp_adjust_tail_user.c assert(bpf_map_lookup_elem(map_fd, &key, &value) == 0); key 47 samples/bpf/xdp_monitor_kern.c u32 key = XDP_REDIRECT_ERROR; key 52 samples/bpf/xdp_monitor_kern.c key = XDP_REDIRECT_SUCCESS; key 54 samples/bpf/xdp_monitor_kern.c cnt = bpf_map_lookup_elem(&redirect_err_cnt, &key); key 109 samples/bpf/xdp_monitor_kern.c u32 key; key 111 samples/bpf/xdp_monitor_kern.c key = ctx->act; key 112 samples/bpf/xdp_monitor_kern.c if (key > XDP_REDIRECT) key 113 samples/bpf/xdp_monitor_kern.c key = XDP_UNKNOWN; key 115 samples/bpf/xdp_monitor_kern.c cnt = bpf_map_lookup_elem(&exception_cnt, &key); key 198 samples/bpf/xdp_monitor_kern.c u32 key = 0; key 200 samples/bpf/xdp_monitor_kern.c rec = bpf_map_lookup_elem(&cpumap_kthread_cnt, &key); key 239 samples/bpf/xdp_monitor_kern.c u32 key = 0; key 241 samples/bpf/xdp_monitor_kern.c rec = bpf_map_lookup_elem(&devmap_xmit_cnt, &key); key 148 samples/bpf/xdp_monitor_user.c static bool map_collect_record(int fd, __u32 key, struct record *rec) key 159 samples/bpf/xdp_monitor_user.c if ((bpf_map_lookup_elem(fd, &key, values)) != 0) { key 161 samples/bpf/xdp_monitor_user.c "ERR: bpf_map_lookup_elem failed key:0x%X\n", key); key 185 samples/bpf/xdp_monitor_user.c static bool map_collect_record_u64(int fd, __u32 key, struct record_u64 *rec) key 193 samples/bpf/xdp_monitor_user.c if ((bpf_map_lookup_elem(fd, &key, values)) != 0) { key 195 samples/bpf/xdp_monitor_user.c "ERR: bpf_map_lookup_elem failed key:0x%X\n", key); key 40 samples/bpf/xdp_redirect_cpu_kern.c __type(key, u32); key 48 samples/bpf/xdp_redirect_cpu_kern.c __type(key, u32); key 57 samples/bpf/xdp_redirect_cpu_kern.c __type(key, u32); key 65 samples/bpf/xdp_redirect_cpu_kern.c __type(key, u32); key 75 samples/bpf/xdp_redirect_cpu_kern.c __type(key, u32); key 81 samples/bpf/xdp_redirect_cpu_kern.c __type(key, u32); key 87 samples/bpf/xdp_redirect_cpu_kern.c __type(key, u32); key 95 samples/bpf/xdp_redirect_cpu_kern.c __type(key, u32); key 208 samples/bpf/xdp_redirect_cpu_kern.c u32 key = 0; key 211 samples/bpf/xdp_redirect_cpu_kern.c cpu_selected = bpf_map_lookup_elem(&cpus_available, &key); key 217 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&rx_cnt, &key); key 240 samples/bpf/xdp_redirect_cpu_kern.c u32 key = 0; key 243 samples/bpf/xdp_redirect_cpu_kern.c cpu_selected = bpf_map_lookup_elem(&cpus_available, &key); key 253 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&rx_cnt, &key); key 334 samples/bpf/xdp_redirect_cpu_kern.c u32 key = 0; key 337 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&rx_cnt, &key); key 403 samples/bpf/xdp_redirect_cpu_kern.c u32 key = 0; key 406 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&rx_cnt, &key); key 524 samples/bpf/xdp_redirect_cpu_kern.c u32 key = 0; key 527 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&rx_cnt, &key); key 532 samples/bpf/xdp_redirect_cpu_kern.c cpu_max = bpf_map_lookup_elem(&cpus_count, &key); key 594 samples/bpf/xdp_redirect_cpu_kern.c u32 key = XDP_REDIRECT_ERROR; key 599 samples/bpf/xdp_redirect_cpu_kern.c key = XDP_REDIRECT_SUCCESS; key 601 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&redirect_err_cnt, &key); key 641 samples/bpf/xdp_redirect_cpu_kern.c u32 key = 0; key 643 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&exception_cnt, &key); key 708 samples/bpf/xdp_redirect_cpu_kern.c u32 key = 0; key 710 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&cpumap_kthread_cnt, &key); key 176 samples/bpf/xdp_redirect_cpu_user.c static bool map_collect_percpu(int fd, __u32 key, struct record *rec) key 186 samples/bpf/xdp_redirect_cpu_user.c if ((bpf_map_lookup_elem(fd, &key, values)) != 0) { key 188 samples/bpf/xdp_redirect_cpu_user.c "ERR: bpf_map_lookup_elem failed key:0x%X\n", key); key 503 samples/bpf/xdp_redirect_cpu_user.c __u32 key = 0; key 525 samples/bpf/xdp_redirect_cpu_user.c ret = bpf_map_lookup_elem(cpus_count_map_fd, &key, &curr_cpus_count); key 532 samples/bpf/xdp_redirect_cpu_user.c ret = bpf_map_update_elem(cpus_count_map_fd, &key, key 24 samples/bpf/xdp_redirect_kern.c __type(key, int); key 34 samples/bpf/xdp_redirect_kern.c __type(key, u32); key 64 samples/bpf/xdp_redirect_kern.c u32 key = 0; key 75 samples/bpf/xdp_redirect_kern.c value = bpf_map_lookup_elem(&rxcnt, &key); key 34 samples/bpf/xdp_redirect_map_kern.c __type(key, u32); key 64 samples/bpf/xdp_redirect_map_kern.c u32 key = 0; key 75 samples/bpf/xdp_redirect_map_kern.c value = bpf_map_lookup_elem(&rxcnt, &key); key 72 samples/bpf/xdp_redirect_map_user.c __u32 key = 0; key 76 samples/bpf/xdp_redirect_map_user.c assert(bpf_map_lookup_elem(rxcnt_map_fd, &key, values) == 0); key 109 samples/bpf/xdp_redirect_map_user.c int ret, opt, key = 0; key 209 samples/bpf/xdp_redirect_map_user.c ret = bpf_map_update_elem(tx_port_map_fd, &key, &ifindex_out, 0); key 72 samples/bpf/xdp_redirect_user.c __u32 key = 0; key 76 samples/bpf/xdp_redirect_user.c assert(bpf_map_lookup_elem(rxcnt_map_fd, &key, values) == 0); key 112 samples/bpf/xdp_redirect_user.c int ret, key = 0; key 210 samples/bpf/xdp_redirect_user.c ret = bpf_map_update_elem(tx_port_map_fd, &key, &ifindex_out, 0); key 56 samples/bpf/xdp_router_ipv4_kern.c __type(key, u32); key 64 samples/bpf/xdp_router_ipv4_kern.c __type(key, __be32); key 72 samples/bpf/xdp_router_ipv4_kern.c __type(key, __be32); key 526 samples/bpf/xdp_router_ipv4_user.c __u32 key; key 571 samples/bpf/xdp_router_ipv4_user.c for (key = 0; key < nr_keys; key++) { key 575 samples/bpf/xdp_router_ipv4_user.c &key, values) == 0); key 577 samples/bpf/xdp_router_ipv4_user.c sum += (values[i] - prev[key][i]); key 580 samples/bpf/xdp_router_ipv4_user.c key, sum / interval); key 581 samples/bpf/xdp_router_ipv4_user.c memcpy(prev[key], values, sizeof(values)); key 29 samples/bpf/xdp_rxq_info_kern.c __type(key, int); key 42 samples/bpf/xdp_rxq_info_kern.c __type(key, u32); key 52 samples/bpf/xdp_rxq_info_kern.c __type(key, u32); key 82 samples/bpf/xdp_rxq_info_kern.c u32 key = 0; key 85 samples/bpf/xdp_rxq_info_kern.c rec = bpf_map_lookup_elem(&stats_global_map, &key); key 95 samples/bpf/xdp_rxq_info_kern.c config = bpf_map_lookup_elem(&config_map, &key); key 109 samples/bpf/xdp_rxq_info_kern.c key = ctx->rx_queue_index; key 110 samples/bpf/xdp_rxq_info_kern.c if (key >= MAX_RXQs) key 111 samples/bpf/xdp_rxq_info_kern.c key = MAX_RXQs; key 112 samples/bpf/xdp_rxq_info_kern.c rxq_rec = bpf_map_lookup_elem(&rx_queue_index_map, &key); key 116 samples/bpf/xdp_rxq_info_kern.c if (key == MAX_RXQs) key 262 samples/bpf/xdp_rxq_info_user.c static bool map_collect_percpu(int fd, __u32 key, struct record *rec) key 271 samples/bpf/xdp_rxq_info_user.c if ((bpf_map_lookup_elem(fd, &key, values)) != 0) { key 273 samples/bpf/xdp_rxq_info_user.c "ERR: bpf_map_lookup_elem failed key:0x%X\n", key); key 474 samples/bpf/xdp_rxq_info_user.c __u32 key = 0; key 584 samples/bpf/xdp_rxq_info_user.c err = bpf_map_update_elem(map_fd, &key, &cfg, 0); key 24 samples/bpf/xdp_tx_iptunnel_kern.c __type(key, __u32); key 31 samples/bpf/xdp_tx_iptunnel_kern.c __type(key, struct vip); key 83 samples/vfs/test-fsmount.c const char *key, const void *val, int aux) key 85 samples/vfs/test-fsmount.c return syscall(__NR_fsconfig, fsfd, cmd, key, val, aux); key 97 samples/vfs/test-fsmount.c #define E_fsconfig(fd, cmd, key, val, aux) \ key 99 samples/vfs/test-fsmount.c if (fsconfig(fd, cmd, key, val, aux) == -1) \ key 100 samples/vfs/test-fsmount.c mount_error(fd, key ?: "create"); \ key 84 scripts/gcc-plugins/arm_ssp_per_task_plugin.c if (!strcmp(argv[i].key, "disable")) key 90 scripts/gcc-plugins/arm_ssp_per_task_plugin.c plugin_name, argv[i].key); key 94 scripts/gcc-plugins/arm_ssp_per_task_plugin.c if (!strcmp(argv[i].key, "tso")) { key 99 scripts/gcc-plugins/arm_ssp_per_task_plugin.c if (!strcmp(argv[i].key, "offset")) { key 104 scripts/gcc-plugins/arm_ssp_per_task_plugin.c plugin_name, argv[i].key); key 607 scripts/gcc-plugins/latent_entropy_plugin.c if (!(strcmp(argv[i].key, "disable"))) { key 611 scripts/gcc-plugins/latent_entropy_plugin.c error(G_("unknown option '-fplugin-arg-%s-%s'"), plugin_name, argv[i].key); key 960 scripts/gcc-plugins/randomize_layout_plugin.c if (!strcmp(argv[i].key, "disable")) { key 964 scripts/gcc-plugins/randomize_layout_plugin.c if (!strcmp(argv[i].key, "performance-mode")) { key 968 scripts/gcc-plugins/randomize_layout_plugin.c error(G_("unknown option '-fplugin-arg-%s-%s'"), plugin_name, argv[i].key); key 121 scripts/gcc-plugins/sancov_plugin.c if (!strcmp(argv[i].key, "no-sancov")) { key 125 scripts/gcc-plugins/sancov_plugin.c error(G_("unknown option '-fplugin-arg-%s-%s'"), plugin_name, argv[i].key); key 380 scripts/gcc-plugins/stackleak_plugin.c if (!strcmp(argv[i].key, "disable")) key 383 scripts/gcc-plugins/stackleak_plugin.c if (!strcmp(argv[i].key, "track-min-size")) { key 386 scripts/gcc-plugins/stackleak_plugin.c plugin_name, argv[i].key); key 393 scripts/gcc-plugins/stackleak_plugin.c plugin_name, argv[i].key, argv[i].value); key 398 scripts/gcc-plugins/stackleak_plugin.c plugin_name, argv[i].key); key 237 scripts/gcc-plugins/structleak_plugin.c if (!strcmp(argv[i].key, "disable")) { key 241 scripts/gcc-plugins/structleak_plugin.c if (!strcmp(argv[i].key, "verbose")) { key 245 scripts/gcc-plugins/structleak_plugin.c if (!strcmp(argv[i].key, "byref")) { key 249 scripts/gcc-plugins/structleak_plugin.c if (!strcmp(argv[i].key, "byref-all")) { key 253 scripts/gcc-plugins/structleak_plugin.c error(G_("unknown option '-fplugin-arg-%s-%s'"), plugin_name, argv[i].key); key 108 scripts/kconfig/lxdialog/checklist.c int key = 0, button = 0, choice = 0, scroll = 0, max_choice; key 195 scripts/kconfig/lxdialog/checklist.c while (key != KEY_ESC) { key 196 scripts/kconfig/lxdialog/checklist.c key = wgetch(dialog); key 200 scripts/kconfig/lxdialog/checklist.c if (toupper(key) == toupper(item_str()[0])) key 204 scripts/kconfig/lxdialog/checklist.c if (i < max_choice || key == KEY_UP || key == KEY_DOWN || key 205 scripts/kconfig/lxdialog/checklist.c key == '+' || key == '-') { key 206 scripts/kconfig/lxdialog/checklist.c if (key == KEY_UP || key == '-') { key 231 scripts/kconfig/lxdialog/checklist.c } else if (key == KEY_DOWN || key == '+') { key 273 scripts/kconfig/lxdialog/checklist.c switch (key) { key 293 scripts/kconfig/lxdialog/checklist.c button = ((key == KEY_LEFT ? --button : ++button) < 0) key 301 scripts/kconfig/lxdialog/checklist.c key = KEY_ESC; key 304 scripts/kconfig/lxdialog/checklist.c key = on_key_esc(dialog); key 318 scripts/kconfig/lxdialog/checklist.c return key; /* ESC pressed */ key 35 scripts/kconfig/lxdialog/inputbox.c int input_x = 0, key = 0, button = -1; key 106 scripts/kconfig/lxdialog/inputbox.c while (key != KEY_ESC) { key 107 scripts/kconfig/lxdialog/inputbox.c key = wgetch(dialog); key 110 scripts/kconfig/lxdialog/inputbox.c switch (key) { key 185 scripts/kconfig/lxdialog/inputbox.c if (key < 0x100 && isprint(key)) { key 191 scripts/kconfig/lxdialog/inputbox.c instr[pos] = key; key 193 scripts/kconfig/lxdialog/inputbox.c instr[len] = key; key 221 scripts/kconfig/lxdialog/inputbox.c switch (key) { key 275 scripts/kconfig/lxdialog/inputbox.c key = KEY_ESC; key 278 scripts/kconfig/lxdialog/inputbox.c key = on_key_esc(dialog); key 176 scripts/kconfig/lxdialog/menubox.c int key = 0, button = 0, scroll = 0, choice = 0; key 269 scripts/kconfig/lxdialog/menubox.c while (key != KEY_ESC) { key 270 scripts/kconfig/lxdialog/menubox.c key = wgetch(menu); key 272 scripts/kconfig/lxdialog/menubox.c if (key < 256 && isalpha(key)) key 273 scripts/kconfig/lxdialog/menubox.c key = tolower(key); key 275 scripts/kconfig/lxdialog/menubox.c if (strchr("ynmh", key)) key 281 scripts/kconfig/lxdialog/menubox.c if (key == tolower(item_str()[j])) key 288 scripts/kconfig/lxdialog/menubox.c if (key == tolower(item_str()[j])) key 295 scripts/kconfig/lxdialog/menubox.c key == KEY_UP || key == KEY_DOWN || key 296 scripts/kconfig/lxdialog/menubox.c key == '-' || key == '+' || key 297 scripts/kconfig/lxdialog/menubox.c key == KEY_PPAGE || key == KEY_NPAGE)) { key 301 scripts/kconfig/lxdialog/menubox.c if (key == KEY_UP || key == '-') { key 310 scripts/kconfig/lxdialog/menubox.c } else if (key == KEY_DOWN || key == '+') { key 323 scripts/kconfig/lxdialog/menubox.c } else if (key == KEY_PPAGE) { key 335 scripts/kconfig/lxdialog/menubox.c } else if (key == KEY_NPAGE) { key 360 scripts/kconfig/lxdialog/menubox.c switch (key) { key 364 scripts/kconfig/lxdialog/menubox.c button = ((key == KEY_LEFT ? --button : ++button) < 0) key 386 scripts/kconfig/lxdialog/menubox.c switch (key) { key 409 scripts/kconfig/lxdialog/menubox.c key = KEY_ESC; key 412 scripts/kconfig/lxdialog/menubox.c key = on_key_esc(menu); key 423 scripts/kconfig/lxdialog/menubox.c return key; /* ESC pressed */ key 47 scripts/kconfig/lxdialog/textbox.c int i, x, y, cur_x, cur_y, key = 0; key 129 scripts/kconfig/lxdialog/textbox.c key = wgetch(dialog); key 130 scripts/kconfig/lxdialog/textbox.c switch (key) { key 206 scripts/kconfig/lxdialog/textbox.c if (key == '0') key 238 scripts/kconfig/lxdialog/textbox.c if (key == keys[i]) { key 260 scripts/kconfig/lxdialog/textbox.c return key; key 549 scripts/kconfig/lxdialog/util.c int key; key 555 scripts/kconfig/lxdialog/util.c key = wgetch(win); key 562 scripts/kconfig/lxdialog/util.c if (key == KEY_ESC && key2 == ERR) key 564 scripts/kconfig/lxdialog/util.c else if (key != ERR && key != KEY_ESC && key2 == ERR) key 565 scripts/kconfig/lxdialog/util.c ungetch(key); key 31 scripts/kconfig/lxdialog/yesno.c int i, x, y, key = 0, button = 0; key 65 scripts/kconfig/lxdialog/yesno.c while (key != KEY_ESC) { key 66 scripts/kconfig/lxdialog/yesno.c key = wgetch(dialog); key 67 scripts/kconfig/lxdialog/yesno.c switch (key) { key 80 scripts/kconfig/lxdialog/yesno.c button = ((key == KEY_LEFT ? --button : ++button) < 0) ? 1 : (button > 1 ? 0 : button); key 90 scripts/kconfig/lxdialog/yesno.c key = on_key_esc(dialog); key 100 scripts/kconfig/lxdialog/yesno.c return key; /* ESC pressed */ key 374 scripts/kconfig/mconf.c int key = '0' + (pos->index % JUMP_NB) + 1; key 376 scripts/kconfig/mconf.c sprintf(header, "(%c)", key); key 377 scripts/kconfig/mconf.c data->keys[k] = key; key 288 scripts/kconfig/nconf.c typedef void (*function_key_handler_t)(int *key, struct menu *menu); key 289 scripts/kconfig/nconf.c static void handle_f1(int *key, struct menu *current_item); key 290 scripts/kconfig/nconf.c static void handle_f2(int *key, struct menu *current_item); key 291 scripts/kconfig/nconf.c static void handle_f3(int *key, struct menu *current_item); key 292 scripts/kconfig/nconf.c static void handle_f4(int *key, struct menu *current_item); key 293 scripts/kconfig/nconf.c static void handle_f5(int *key, struct menu *current_item); key 294 scripts/kconfig/nconf.c static void handle_f6(int *key, struct menu *current_item); key 295 scripts/kconfig/nconf.c static void handle_f7(int *key, struct menu *current_item); key 296 scripts/kconfig/nconf.c static void handle_f8(int *key, struct menu *current_item); key 297 scripts/kconfig/nconf.c static void handle_f9(int *key, struct menu *current_item); key 302 scripts/kconfig/nconf.c function_key key; key 311 scripts/kconfig/nconf.c .key = F_HELP, key 317 scripts/kconfig/nconf.c .key = F_SYMBOL, key 323 scripts/kconfig/nconf.c .key = F_INSTS, key 329 scripts/kconfig/nconf.c .key = F_CONF, key 335 scripts/kconfig/nconf.c .key = F_BACK, key 341 scripts/kconfig/nconf.c .key = F_SAVE, key 347 scripts/kconfig/nconf.c .key = F_LOAD, key 353 scripts/kconfig/nconf.c .key = F_SEARCH, key 359 scripts/kconfig/nconf.c .key = F_EXIT, key 387 scripts/kconfig/nconf.c static void handle_f1(int *key, struct menu *current_item) key 395 scripts/kconfig/nconf.c static void handle_f2(int *key, struct menu *current_item) key 402 scripts/kconfig/nconf.c static void handle_f3(int *key, struct menu *current_item) key 411 scripts/kconfig/nconf.c static void handle_f4(int *key, struct menu *current_item) key 427 scripts/kconfig/nconf.c static void handle_f5(int *key, struct menu *current_item) key 429 scripts/kconfig/nconf.c *key = KEY_LEFT; key 434 scripts/kconfig/nconf.c static void handle_f6(int *key, struct menu *current_item) key 441 scripts/kconfig/nconf.c static void handle_f7(int *key, struct menu *current_item) key 448 scripts/kconfig/nconf.c static void handle_f8(int *key, struct menu *current_item) key 455 scripts/kconfig/nconf.c static void handle_f9(int *key, struct menu *current_item) key 462 scripts/kconfig/nconf.c static int process_special_keys(int *key, struct menu *menu) key 466 scripts/kconfig/nconf.c if (*key == KEY_RESIZE) { key 472 scripts/kconfig/nconf.c if (*key == KEY_F(function_keys[i].key) || key 473 scripts/kconfig/nconf.c *key == '0' + function_keys[i].key){ key 474 scripts/kconfig/nconf.c function_keys[i].handler(key, menu); key 1021 scripts/kconfig/nconf.c static int do_match(int key, struct match_state *state, int *ans) key 1023 scripts/kconfig/nconf.c char c = (char) key; key 1026 scripts/kconfig/nconf.c if (key == '/' || (state->in_search && key == 27)) { key 1043 scripts/kconfig/nconf.c } else if (key == KEY_DOWN) { key 1047 scripts/kconfig/nconf.c } else if (key == KEY_UP) { key 1051 scripts/kconfig/nconf.c } else if (key == KEY_BACKSPACE || key == 8 || key == 127) { key 56 scripts/kconfig/qconf.cc QList<int> ConfigSettings::readSizes(const QString& key, bool *ok) key 60 scripts/kconfig/qconf.cc if (contains(key)) key 62 scripts/kconfig/qconf.cc QStringList entryList = value(key).toStringList(); key 79 scripts/kconfig/qconf.cc bool ConfigSettings::writeSizes(const QString& key, const QList<int>& value) key 86 scripts/kconfig/qconf.cc setValue(key, stringList); key 286 scripts/kconfig/qconf.cc switch (e->key()) { key 714 scripts/kconfig/qconf.cc if (ev->key() == Qt::Key_Escape && mode != fullMode && mode != listMode) { key 726 scripts/kconfig/qconf.cc switch (ev->key()) { key 28 scripts/kconfig/qconf.h QList<int> readSizes(const QString& key, bool *ok); key 29 scripts/kconfig/qconf.h bool writeSizes(const QString& key, const QList<int>& value); key 664 security/apparmor/apparmorfs.c const char *key; key 675 security/apparmor/apparmorfs.c key = query + strnlen(query, query_len) + 1; key 676 security/apparmor/apparmorfs.c if (key + 1 >= query + query_len) key 678 security/apparmor/apparmorfs.c if (key + strnlen(key, query + query_len - key) >= query + query_len) key 706 security/apparmor/apparmorfs.c data = rhashtable_lookup_fast(profile->data, &key, key 87 security/apparmor/include/policy.h char *key; key 191 security/apparmor/policy.c kzfree(data->key); key 652 security/apparmor/policy_unpack.c const char * const *key = data; key 654 security/apparmor/policy_unpack.c return jhash(*key, strlen(*key), seed); key 660 security/apparmor/policy_unpack.c const char * const *key = arg->key; key 662 security/apparmor/policy_unpack.c return strcmp(data->key, *key); key 678 security/apparmor/policy_unpack.c char *key = NULL; key 877 security/apparmor/policy_unpack.c params.key_offset = offsetof(struct aa_data, key); key 887 security/apparmor/policy_unpack.c while (unpack_strdup(e, &key, NULL)) { key 890 security/apparmor/policy_unpack.c kzfree(key); key 894 security/apparmor/policy_unpack.c data->key = key; key 898 security/apparmor/policy_unpack.c kzfree(data->key); key 23 security/integrity/digsig.c static struct key *keyring[INTEGRITY_KEYRING_MAX]; key 42 security/integrity/digsig.c static struct key *integrity_keyring_from_id(const unsigned int id) key 64 security/integrity/digsig.c struct key *keyring; key 88 security/integrity/digsig.c struct key *keyring; key 150 security/integrity/digsig.c key_ref_t key; key 156 security/integrity/digsig.c key = key_create_or_update(make_key_ref(keyring[id], 1), "asymmetric", key 159 security/integrity/digsig.c if (IS_ERR(key)) { key 160 security/integrity/digsig.c rc = PTR_ERR(key); key 164 security/integrity/digsig.c key_ref_to_ptr(key)->description); key 165 security/integrity/digsig.c key_ref_put(key); key 24 security/integrity/digsig_asymmetric.c static struct key *request_asymmetric_key(struct key *keyring, uint32_t keyid) key 26 security/integrity/digsig_asymmetric.c struct key *key; key 33 security/integrity/digsig_asymmetric.c key = get_ima_blacklist_keyring(); key 34 security/integrity/digsig_asymmetric.c if (key) { key 37 security/integrity/digsig_asymmetric.c kref = keyring_search(make_key_ref(key, 1), key 52 security/integrity/digsig_asymmetric.c key = ERR_CAST(kref); key 54 security/integrity/digsig_asymmetric.c key = key_ref_to_ptr(kref); key 56 security/integrity/digsig_asymmetric.c key = request_key(&key_type_asymmetric, name, NULL); key 59 security/integrity/digsig_asymmetric.c if (IS_ERR(key)) { key 61 security/integrity/digsig_asymmetric.c name, PTR_ERR(key)); key 62 security/integrity/digsig_asymmetric.c switch (PTR_ERR(key)) { key 69 security/integrity/digsig_asymmetric.c return key; key 73 security/integrity/digsig_asymmetric.c pr_debug("%s() = 0 [%x]\n", __func__, key_serial(key)); key 75 security/integrity/digsig_asymmetric.c return key; key 78 security/integrity/digsig_asymmetric.c int asymmetric_verify(struct key *keyring, const char *sig, key 83 security/integrity/digsig_asymmetric.c struct key *key; key 97 security/integrity/digsig_asymmetric.c key = request_asymmetric_key(keyring, be32_to_cpu(hdr->keyid)); key 98 security/integrity/digsig_asymmetric.c if (IS_ERR(key)) key 99 security/integrity/digsig_asymmetric.c return PTR_ERR(key); key 117 security/integrity/digsig_asymmetric.c ret = verify_signature(key, &pks); key 118 security/integrity/digsig_asymmetric.c key_put(key); key 52 security/integrity/evm/evm_crypto.c int evm_set_key(void *key, size_t keylen) key 62 security/integrity/evm/evm_crypto.c memcpy(evmkey, key, keylen); key 355 security/integrity/evm/evm_crypto.c struct key *evm_key; key 136 security/integrity/ima/ima_modsig.c int ima_modsig_verify(struct key *keyring, const struct modsig *modsig) key 19 security/integrity/ima/ima_mok.c struct key *ima_blacklist_keyring; key 840 security/integrity/ima/ima_policy.c static void ima_log_string_op(struct audit_buffer *ab, char *key, char *value, key 847 security/integrity/ima/ima_policy.c audit_log_format(ab, "%s>", key); key 849 security/integrity/ima/ima_policy.c audit_log_format(ab, "%s<", key); key 851 security/integrity/ima/ima_policy.c audit_log_format(ab, "%s=", key); key 854 security/integrity/ima/ima_policy.c static void ima_log_string(struct audit_buffer *ab, char *key, char *value) key 856 security/integrity/ima/ima_policy.c ima_log_string_op(ab, key, value, NULL); key 54 security/integrity/ima/ima_queue.c unsigned int key; key 57 security/integrity/ima/ima_queue.c key = ima_hash_key(digest_value); key 59 security/integrity/ima/ima_queue.c hlist_for_each_entry_rcu(qe, &ima_htable.queue[key], hnext) { key 98 security/integrity/ima/ima_queue.c unsigned int key; key 112 security/integrity/ima/ima_queue.c key = ima_hash_key(entry->digest); key 113 security/integrity/ima/ima_queue.c hlist_add_head_rcu(&qe->hnext, &ima_htable.queue[key]); key 193 security/integrity/integrity.h int asymmetric_verify(struct key *keyring, const char *sig, key 196 security/integrity/integrity.h static inline int asymmetric_verify(struct key *keyring, const char *sig, key 204 security/integrity/integrity.h int ima_modsig_verify(struct key *keyring, const struct modsig *modsig); key 206 security/integrity/integrity.h static inline int ima_modsig_verify(struct key *keyring, key 100 security/keys/big_key.c static int big_key_crypt(enum big_key_op op, struct big_key_buf *buf, size_t datalen, u8 *key) key 122 security/keys/big_key.c if (crypto_aead_setkey(big_key_aead, key, ENC_KEY_SIZE)) { key 307 security/keys/big_key.c void big_key_revoke(struct key *key) key 309 security/keys/big_key.c struct path *path = (struct path *)&key->payload.data[big_key_path]; key 312 security/keys/big_key.c key_payload_reserve(key, 0); key 313 security/keys/big_key.c if (key_is_positive(key) && key 314 security/keys/big_key.c (size_t)key->payload.data[big_key_len] > BIG_KEY_FILE_THRESHOLD) key 321 security/keys/big_key.c void big_key_destroy(struct key *key) key 323 security/keys/big_key.c size_t datalen = (size_t)key->payload.data[big_key_len]; key 326 security/keys/big_key.c struct path *path = (struct path *)&key->payload.data[big_key_path]; key 332 security/keys/big_key.c kzfree(key->payload.data[big_key_data]); key 333 security/keys/big_key.c key->payload.data[big_key_data] = NULL; key 339 security/keys/big_key.c void big_key_describe(const struct key *key, struct seq_file *m) key 341 security/keys/big_key.c size_t datalen = (size_t)key->payload.data[big_key_len]; key 343 security/keys/big_key.c seq_puts(m, key->description); key 345 security/keys/big_key.c if (key_is_positive(key)) key 355 security/keys/big_key.c long big_key_read(const struct key *key, char *buffer, size_t buflen) key 357 security/keys/big_key.c size_t datalen = (size_t)key->payload.data[big_key_len]; key 365 security/keys/big_key.c struct path *path = (struct path *)&key->payload.data[big_key_path]; key 367 security/keys/big_key.c u8 *enckey = (u8 *)key->payload.data[big_key_data]; key 403 security/keys/big_key.c memcpy(buffer, key->payload.data[big_key_data], datalen); key 19 security/keys/dh.c struct key *key; key 30 security/keys/dh.c key = key_ref_to_ptr(key_ref); key 33 security/keys/dh.c if (key->type == &key_type_user) { key 34 security/keys/dh.c down_read(&key->sem); key 35 security/keys/dh.c status = key_validate(key); key 40 security/keys/dh.c payload = user_key_payload_locked(key); key 51 security/keys/dh.c up_read(&key->sem); key 54 security/keys/dh.c key_put(key); key 61 security/keys/dh.c kzfree(dh->key); key 298 security/keys/dh.c dlen = dh_data_from_key(pcopy.private, &dh_inputs.key); key 301 security/keys/encrypted-keys/encrypted.c static struct key *request_user_key(const char *master_desc, const u8 **master_key, key 305 security/keys/encrypted-keys/encrypted.c struct key *ukey; key 339 security/keys/encrypted-keys/encrypted.c static int calc_hmac(u8 *digest, const u8 *key, unsigned int keylen, key 352 security/keys/encrypted-keys/encrypted.c err = crypto_shash_setkey(tfm, key, keylen); key 389 security/keys/encrypted-keys/encrypted.c static struct skcipher_request *init_skcipher_req(const u8 *key, key 403 security/keys/encrypted-keys/encrypted.c ret = crypto_skcipher_setkey(tfm, key, key_len); key 422 security/keys/encrypted-keys/encrypted.c static struct key *request_master_key(struct encrypted_key_payload *epayload, key 425 security/keys/encrypted-keys/encrypted.c struct key *mkey = ERR_PTR(-EINVAL); key 607 security/keys/encrypted-keys/encrypted.c static struct encrypted_key_payload *encrypted_key_alloc(struct key *key, key 651 security/keys/encrypted-keys/encrypted.c ret = key_payload_reserve(key, payload_datalen + datablob_len key 670 security/keys/encrypted-keys/encrypted.c struct key *mkey; key 793 security/keys/encrypted-keys/encrypted.c static int encrypted_instantiate(struct key *key, key 818 security/keys/encrypted-keys/encrypted.c epayload = encrypted_key_alloc(key, format, master_desc, key 824 security/keys/encrypted-keys/encrypted.c ret = encrypted_init(epayload, key->description, format, master_desc, key 831 security/keys/encrypted-keys/encrypted.c rcu_assign_keypointer(key, epayload); key 854 security/keys/encrypted-keys/encrypted.c static int encrypted_update(struct key *key, struct key_preparsed_payload *prep) key 856 security/keys/encrypted-keys/encrypted.c struct encrypted_key_payload *epayload = key->payload.data[0]; key 864 security/keys/encrypted-keys/encrypted.c if (key_is_negative(key)) key 883 security/keys/encrypted-keys/encrypted.c new_epayload = encrypted_key_alloc(key, epayload->format, key 897 security/keys/encrypted-keys/encrypted.c rcu_assign_keypointer(key, new_epayload); key 912 security/keys/encrypted-keys/encrypted.c static long encrypted_read(const struct key *key, char *buffer, key 916 security/keys/encrypted-keys/encrypted.c struct key *mkey; key 924 security/keys/encrypted-keys/encrypted.c epayload = dereference_key_locked(key); key 974 security/keys/encrypted-keys/encrypted.c static void encrypted_destroy(struct key *key) key 976 security/keys/encrypted-keys/encrypted.c kzfree(key->payload.data[0]); key 8 security/keys/encrypted-keys/encrypted.h extern struct key *request_trusted_key(const char *trusted_desc, key 11 security/keys/encrypted-keys/encrypted.h static inline struct key *request_trusted_key(const char *trusted_desc, key 27 security/keys/encrypted-keys/masterkey_trusted.c struct key *request_trusted_key(const char *trusted_desc, key 31 security/keys/encrypted-keys/masterkey_trusted.c struct key *tkey; key 39 security/keys/encrypted-keys/masterkey_trusted.c *master_key = tpayload->key; key 125 security/keys/gc.c struct key *key = key 126 security/keys/gc.c list_entry(keys->next, struct key, graveyard_link); key 127 security/keys/gc.c short state = key->state; key 129 security/keys/gc.c list_del(&key->graveyard_link); key 131 security/keys/gc.c kdebug("- %u", key->serial); key 132 security/keys/gc.c key_check(key); key 135 security/keys/gc.c if (state == KEY_IS_POSITIVE && key->type->destroy) key 136 security/keys/gc.c key->type->destroy(key); key 138 security/keys/gc.c security_key_free(key); key 141 security/keys/gc.c if (test_bit(KEY_FLAG_IN_QUOTA, &key->flags)) { key 142 security/keys/gc.c spin_lock(&key->user->lock); key 143 security/keys/gc.c key->user->qnkeys--; key 144 security/keys/gc.c key->user->qnbytes -= key->quotalen; key 145 security/keys/gc.c spin_unlock(&key->user->lock); key 148 security/keys/gc.c atomic_dec(&key->user->nkeys); key 150 security/keys/gc.c atomic_dec(&key->user->nikeys); key 152 security/keys/gc.c key_user_put(key->user); key 153 security/keys/gc.c key_put_tag(key->domain_tag); key 154 security/keys/gc.c kfree(key->description); key 156 security/keys/gc.c memzero_explicit(key, sizeof(*key)); key 157 security/keys/gc.c kmem_cache_free(key_jar, key); key 181 security/keys/gc.c struct key *key; key 213 security/keys/gc.c key = rb_entry(cursor, struct key, serial_node); key 216 security/keys/gc.c if (refcount_read(&key->usage) == 0) key 220 security/keys/gc.c if (key->type == key_gc_dead_keytype) { key 222 security/keys/gc.c set_bit(KEY_FLAG_DEAD, &key->flags); key 223 security/keys/gc.c key->perm = 0; key 225 security/keys/gc.c } else if (key->type == &key_type_keyring && key 226 security/keys/gc.c key->restrict_link) { key 232 security/keys/gc.c if (key->expiry > limit && key->expiry < new_timer) { key 234 security/keys/gc.c key_serial(key), key->expiry - limit); key 235 security/keys/gc.c new_timer = key->expiry; key 240 security/keys/gc.c if (key->type == key_gc_dead_keytype) key 245 security/keys/gc.c if (key->type == &key_type_keyring) key 250 security/keys/gc.c if (key->type == key_gc_dead_keytype) key 325 security/keys/gc.c kdebug("unrefd key %d", key->serial); key 326 security/keys/gc.c rb_erase(&key->serial_node, &key_serial_tree); key 329 security/keys/gc.c list_add_tail(&key->graveyard_link, &graveyard); key 338 security/keys/gc.c keyring_restriction_gc(key, key_gc_dead_keytype); key 348 security/keys/gc.c keyring_gc(key, limit); key 356 security/keys/gc.c kdebug("destroy key %d", key->serial); key 357 security/keys/gc.c down_write(&key->sem); key 358 security/keys/gc.c key->type = &key_type_dead; key 360 security/keys/gc.c key_gc_dead_keytype->destroy(key); key 361 security/keys/gc.c memset(&key->payload, KEY_DESTROY, sizeof(key->payload)); key 362 security/keys/gc.c up_write(&key->sem); key 94 security/keys/internal.h extern int __key_link_lock(struct key *keyring, key 96 security/keys/internal.h extern int __key_move_lock(struct key *l_keyring, struct key *u_keyring, key 98 security/keys/internal.h extern int __key_link_begin(struct key *keyring, key 101 security/keys/internal.h extern int __key_link_check_live_key(struct key *keyring, struct key *key); key 102 security/keys/internal.h extern void __key_link(struct key *key, struct assoc_array_edit **_edit); key 103 security/keys/internal.h extern void __key_link_end(struct key *keyring, key 110 security/keys/internal.h extern struct key *keyring_search_instkey(struct key *keyring, key 113 security/keys/internal.h extern int iterate_over_keyring(const struct key *keyring, key 114 security/keys/internal.h int (*func)(const struct key *key, void *data), key 139 security/keys/internal.h extern bool key_default_cmp(const struct key *key, key 147 security/keys/internal.h extern struct key *find_keyring_by_name(const char *name, bool uid_keyring); key 149 security/keys/internal.h extern int look_up_user_keyrings(struct key **, struct key **); key 150 security/keys/internal.h extern struct key *get_user_session_keyring_rcu(const struct cred *); key 153 security/keys/internal.h extern int install_session_keyring_to_cred(struct cred *, struct key *); key 155 security/keys/internal.h extern struct key *request_key_and_link(struct key_type *type, key 161 security/keys/internal.h struct key *dest_keyring, key 164 security/keys/internal.h extern bool lookup_user_key_possessed(const struct key *key, key 175 security/keys/internal.h extern void keyring_gc(struct key *keyring, time64_t limit); key 176 security/keys/internal.h extern void keyring_restriction_gc(struct key *keyring, key 195 security/keys/internal.h extern struct key *request_key_auth_new(struct key *target, key 199 security/keys/internal.h struct key *dest_keyring); key 201 security/keys/internal.h extern struct key *key_get_instantiation_authkey(key_serial_t target_id); key 206 security/keys/internal.h static inline bool key_is_dead(const struct key *key, time64_t limit) key 209 security/keys/internal.h key->flags & ((1 << KEY_FLAG_DEAD) | key 211 security/keys/internal.h (key->expiry > 0 && key->expiry <= limit) || key 212 security/keys/internal.h key->domain_tag->removed; key 340 security/keys/internal.h extern void __key_check(const struct key *); key 342 security/keys/internal.h static inline void key_check(const struct key *key) key 344 security/keys/internal.h if (key && (IS_ERR(key) || key->magic != KEY_DEBUG_MAGIC)) key 345 security/keys/internal.h __key_check(key); key 350 security/keys/internal.h #define key_check(key) do {} while(0) key 38 security/keys/key.c void __key_check(const struct key *key) key 41 security/keys/key.c key, key->magic, KEY_DEBUG_MAGIC); key 133 security/keys/key.c static inline void key_alloc_serial(struct key *key) key 136 security/keys/key.c struct key *xkey; key 141 security/keys/key.c get_random_bytes(&key->serial, sizeof(key->serial)); key 143 security/keys/key.c key->serial >>= 1; /* negative numbers are not permitted */ key 144 security/keys/key.c } while (key->serial < 3); key 154 security/keys/key.c xkey = rb_entry(parent, struct key, serial_node); key 156 security/keys/key.c if (key->serial < xkey->serial) key 158 security/keys/key.c else if (key->serial > xkey->serial) key 165 security/keys/key.c rb_link_node(&key->serial_node, parent, p); key 166 security/keys/key.c rb_insert_color(&key->serial_node, &key_serial_tree); key 175 security/keys/key.c key->serial++; key 176 security/keys/key.c if (key->serial < 3) { key 177 security/keys/key.c key->serial = 3; key 185 security/keys/key.c xkey = rb_entry(parent, struct key, serial_node); key 186 security/keys/key.c if (key->serial < xkey->serial) key 224 security/keys/key.c struct key *key_alloc(struct key_type *type, const char *desc, key 230 security/keys/key.c struct key *key; key 234 security/keys/key.c key = ERR_PTR(-EINVAL); key 241 security/keys/key.c key = ERR_PTR(ret); key 276 security/keys/key.c key = kmem_cache_zalloc(key_jar, GFP_KERNEL); key 277 security/keys/key.c if (!key) key 280 security/keys/key.c key->index_key.desc_len = desclen; key 281 security/keys/key.c key->index_key.description = kmemdup(desc, desclen + 1, GFP_KERNEL); key 282 security/keys/key.c if (!key->index_key.description) key 284 security/keys/key.c key->index_key.type = type; key 285 security/keys/key.c key_set_index_key(&key->index_key); key 287 security/keys/key.c refcount_set(&key->usage, 1); key 288 security/keys/key.c init_rwsem(&key->sem); key 289 security/keys/key.c lockdep_set_class(&key->sem, &type->lock_class); key 290 security/keys/key.c key->user = user; key 291 security/keys/key.c key->quotalen = quotalen; key 292 security/keys/key.c key->datalen = type->def_datalen; key 293 security/keys/key.c key->uid = uid; key 294 security/keys/key.c key->gid = gid; key 295 security/keys/key.c key->perm = perm; key 296 security/keys/key.c key->restrict_link = restrict_link; key 297 security/keys/key.c key->last_used_at = ktime_get_real_seconds(); key 300 security/keys/key.c key->flags |= 1 << KEY_FLAG_IN_QUOTA; key 302 security/keys/key.c key->flags |= 1 << KEY_FLAG_BUILTIN; key 304 security/keys/key.c key->flags |= 1 << KEY_FLAG_UID_KEYRING; key 307 security/keys/key.c key->magic = KEY_DEBUG_MAGIC; key 311 security/keys/key.c ret = security_key_alloc(key, cred, flags); key 316 security/keys/key.c refcount_inc(&key->domain_tag->usage); key 318 security/keys/key.c key_alloc_serial(key); key 321 security/keys/key.c return key; key 324 security/keys/key.c kfree(key->description); key 325 security/keys/key.c kmem_cache_free(key_jar, key); key 333 security/keys/key.c key = ERR_PTR(ret); key 337 security/keys/key.c kmem_cache_free(key_jar, key); key 347 security/keys/key.c key = ERR_PTR(-ENOMEM); key 353 security/keys/key.c key = ERR_PTR(-EDQUOT); key 369 security/keys/key.c int key_payload_reserve(struct key *key, size_t datalen) key 371 security/keys/key.c int delta = (int)datalen - key->datalen; key 374 security/keys/key.c key_check(key); key 377 security/keys/key.c if (delta != 0 && test_bit(KEY_FLAG_IN_QUOTA, &key->flags)) { key 378 security/keys/key.c unsigned maxbytes = uid_eq(key->user->uid, GLOBAL_ROOT_UID) ? key 381 security/keys/key.c spin_lock(&key->user->lock); key 384 security/keys/key.c (key->user->qnbytes + delta > maxbytes || key 385 security/keys/key.c key->user->qnbytes + delta < key->user->qnbytes)) { key 389 security/keys/key.c key->user->qnbytes += delta; key 390 security/keys/key.c key->quotalen += delta; key 392 security/keys/key.c spin_unlock(&key->user->lock); key 397 security/keys/key.c key->datalen = datalen; key 406 security/keys/key.c static void mark_key_instantiated(struct key *key, int reject_error) key 411 security/keys/key.c smp_store_release(&key->state, key 421 security/keys/key.c static int __key_instantiate_and_link(struct key *key, key 423 security/keys/key.c struct key *keyring, key 424 security/keys/key.c struct key *authkey, key 429 security/keys/key.c key_check(key); key 438 security/keys/key.c if (key->state == KEY_IS_UNINSTANTIATED) { key 440 security/keys/key.c ret = key->type->instantiate(key, prep); key 444 security/keys/key.c atomic_inc(&key->user->nikeys); key 445 security/keys/key.c mark_key_instantiated(key, 0); key 447 security/keys/key.c if (test_and_clear_bit(KEY_FLAG_USER_CONSTRUCT, &key->flags)) key 453 security/keys/key.c set_bit(KEY_FLAG_KEEP, &key->flags); key 455 security/keys/key.c __key_link(key, _edit); key 463 security/keys/key.c key->expiry = prep->expiry; key 473 security/keys/key.c wake_up_bit(&key->flags, KEY_FLAG_USER_CONSTRUCT); key 494 security/keys/key.c int key_instantiate_and_link(struct key *key, key 497 security/keys/key.c struct key *keyring, key 498 security/keys/key.c struct key *authkey) key 507 security/keys/key.c prep.quotalen = key->type->def_datalen; key 509 security/keys/key.c if (key->type->preparse) { key 510 security/keys/key.c ret = key->type->preparse(&prep); key 516 security/keys/key.c ret = __key_link_lock(keyring, &key->index_key); key 520 security/keys/key.c ret = __key_link_begin(keyring, &key->index_key, &edit); key 527 security/keys/key.c ret = keyres->check(keyring, key->type, &prep.payload, key 528 security/keys/key.c keyres->key); key 534 security/keys/key.c ret = __key_instantiate_and_link(key, &prep, keyring, authkey, &edit); key 538 security/keys/key.c __key_link_end(keyring, &key->index_key, edit); key 541 security/keys/key.c if (key->type->preparse) key 542 security/keys/key.c key->type->free_preparse(&prep); key 569 security/keys/key.c int key_reject_and_link(struct key *key, key 572 security/keys/key.c struct key *keyring, key 573 security/keys/key.c struct key *authkey) key 578 security/keys/key.c key_check(key); key 588 security/keys/key.c link_ret = __key_link_lock(keyring, &key->index_key); key 590 security/keys/key.c link_ret = __key_link_begin(keyring, &key->index_key, &edit); key 592 security/keys/key.c __key_link_end(keyring, &key->index_key, edit); key 599 security/keys/key.c if (key->state == KEY_IS_UNINSTANTIATED) { key 601 security/keys/key.c atomic_inc(&key->user->nikeys); key 602 security/keys/key.c mark_key_instantiated(key, -error); key 603 security/keys/key.c key->expiry = ktime_get_real_seconds() + timeout; key 604 security/keys/key.c key_schedule_gc(key->expiry + key_gc_delay); key 606 security/keys/key.c if (test_and_clear_bit(KEY_FLAG_USER_CONSTRUCT, &key->flags)) key 613 security/keys/key.c __key_link(key, &edit); key 623 security/keys/key.c __key_link_end(keyring, &key->index_key, edit); key 627 security/keys/key.c wake_up_bit(&key->flags, KEY_FLAG_USER_CONSTRUCT); key 641 security/keys/key.c void key_put(struct key *key) key 643 security/keys/key.c if (key) { key 644 security/keys/key.c key_check(key); key 646 security/keys/key.c if (refcount_dec_and_test(&key->usage)) key 655 security/keys/key.c struct key *key_lookup(key_serial_t id) key 658 security/keys/key.c struct key *key; key 665 security/keys/key.c key = rb_entry(n, struct key, serial_node); key 667 security/keys/key.c if (id < key->serial) key 669 security/keys/key.c else if (id > key->serial) key 676 security/keys/key.c key = ERR_PTR(-ENOKEY); key 683 security/keys/key.c if (!refcount_inc_not_zero(&key->usage)) key 688 security/keys/key.c return key; key 717 security/keys/key.c void key_set_timeout(struct key *key, unsigned timeout) key 722 security/keys/key.c down_write(&key->sem); key 727 security/keys/key.c key->expiry = expiry; key 728 security/keys/key.c key_schedule_gc(key->expiry + key_gc_delay); key 730 security/keys/key.c up_write(&key->sem); key 751 security/keys/key.c struct key *key = key_ref_to_ptr(key_ref); key 760 security/keys/key.c if (!key->type->update) key 763 security/keys/key.c down_write(&key->sem); key 765 security/keys/key.c ret = key->type->update(key, prep); key 768 security/keys/key.c mark_key_instantiated(key, 0); key 770 security/keys/key.c up_write(&key->sem); key 778 security/keys/key.c key_put(key); key 822 security/keys/key.c struct key *keyring, *key = NULL; key 885 security/keys/key.c &prep.payload, restrict_link->key); key 924 security/keys/key.c key = key_alloc(index_key.type, index_key.description, key 926 security/keys/key.c if (IS_ERR(key)) { key 927 security/keys/key.c key_ref = ERR_CAST(key); key 932 security/keys/key.c ret = __key_instantiate_and_link(key, &prep, keyring, NULL, &edit); key 934 security/keys/key.c key_put(key); key 939 security/keys/key.c key_ref = make_key_ref(key, is_key_possessed(keyring_ref)); key 957 security/keys/key.c key = key_ref_to_ptr(key_ref); key 958 security/keys/key.c if (test_bit(KEY_FLAG_USER_CONSTRUCT, &key->flags)) { key 959 security/keys/key.c ret = wait_for_key_construction(key, true); key 988 security/keys/key.c struct key *key = key_ref_to_ptr(key_ref); key 991 security/keys/key.c key_check(key); key 999 security/keys/key.c if (!key->type->update) key 1005 security/keys/key.c prep.quotalen = key->type->def_datalen; key 1007 security/keys/key.c if (key->type->preparse) { key 1008 security/keys/key.c ret = key->type->preparse(&prep); key 1013 security/keys/key.c down_write(&key->sem); key 1015 security/keys/key.c ret = key->type->update(key, &prep); key 1018 security/keys/key.c mark_key_instantiated(key, 0); key 1020 security/keys/key.c up_write(&key->sem); key 1023 security/keys/key.c if (key->type->preparse) key 1024 security/keys/key.c key->type->free_preparse(&prep); key 1038 security/keys/key.c void key_revoke(struct key *key) key 1042 security/keys/key.c key_check(key); key 1049 security/keys/key.c down_write_nested(&key->sem, 1); key 1050 security/keys/key.c if (!test_and_set_bit(KEY_FLAG_REVOKED, &key->flags) && key 1051 security/keys/key.c key->type->revoke) key 1052 security/keys/key.c key->type->revoke(key); key 1056 security/keys/key.c if (key->revoked_at == 0 || key->revoked_at > time) { key 1057 security/keys/key.c key->revoked_at = time; key 1058 security/keys/key.c key_schedule_gc(key->revoked_at + key_gc_delay); key 1061 security/keys/key.c up_write(&key->sem); key 1072 security/keys/key.c void key_invalidate(struct key *key) key 1074 security/keys/key.c kenter("%d", key_serial(key)); key 1076 security/keys/key.c key_check(key); key 1078 security/keys/key.c if (!test_bit(KEY_FLAG_INVALIDATED, &key->flags)) { key 1079 security/keys/key.c down_write_nested(&key->sem, 1); key 1080 security/keys/key.c if (!test_and_set_bit(KEY_FLAG_INVALIDATED, &key->flags)) key 1082 security/keys/key.c up_write(&key->sem); key 1097 security/keys/key.c int generic_key_instantiate(struct key *key, struct key_preparsed_payload *prep) key 1103 security/keys/key.c ret = key_payload_reserve(key, prep->quotalen); key 1105 security/keys/key.c rcu_assign_keypointer(key, prep->payload.data[0]); key 1106 security/keys/key.c key->payload.data[1] = prep->payload.data[1]; key 1107 security/keys/key.c key->payload.data[2] = prep->payload.data[2]; key 1108 security/keys/key.c key->payload.data[3] = prep->payload.data[3]; key 1180 security/keys/key.c key_jar = kmem_cache_create("key_jar", sizeof(struct key), key 171 security/keys/keyctl.c struct key *key; key 220 security/keys/keyctl.c key = request_key_and_link(ktype, description, NULL, callout_info, key 223 security/keys/keyctl.c if (IS_ERR(key)) { key 224 security/keys/keyctl.c ret = PTR_ERR(key); key 229 security/keys/keyctl.c ret = wait_for_key_construction(key, 1); key 233 security/keys/keyctl.c ret = key->serial; key 236 security/keys/keyctl.c key_put(key); key 380 security/keys/keyctl.c struct key *key; key 395 security/keys/keyctl.c key = key_ref_to_ptr(key_ref); key 397 security/keys/keyctl.c if (test_bit(KEY_FLAG_KEEP, &key->flags)) key 400 security/keys/keyctl.c key_revoke(key); key 421 security/keys/keyctl.c struct key *key; key 445 security/keys/keyctl.c key = key_ref_to_ptr(key_ref); key 447 security/keys/keyctl.c if (test_bit(KEY_FLAG_KEEP, &key->flags)) key 450 security/keys/keyctl.c key_invalidate(key); key 468 security/keys/keyctl.c struct key *keyring; key 552 security/keys/keyctl.c struct key *keyring, *key; key 568 security/keys/keyctl.c key = key_ref_to_ptr(key_ref); key 570 security/keys/keyctl.c test_bit(KEY_FLAG_KEEP, &key->flags)) key 573 security/keys/keyctl.c ret = key_unlink(keyring, key); key 645 security/keys/keyctl.c struct key *key, *instkey; key 672 security/keys/keyctl.c key = key_ref_to_ptr(key_ref); key 673 security/keys/keyctl.c desclen = strlen(key->description); key 679 security/keys/keyctl.c key->type->name, key 680 security/keys/keyctl.c from_kuid_munged(current_user_ns(), key->uid), key 681 security/keys/keyctl.c from_kgid_munged(current_user_ns(), key->gid), key 682 security/keys/keyctl.c key->perm); key 691 security/keys/keyctl.c copy_to_user(buffer + infolen, key->description, key 800 security/keys/keyctl.c static long __keyctl_read_key(struct key *key, char *buffer, size_t buflen) key 804 security/keys/keyctl.c down_read(&key->sem); key 805 security/keys/keyctl.c ret = key_validate(key); key 807 security/keys/keyctl.c ret = key->type->read(key, buffer, buflen); key 808 security/keys/keyctl.c up_read(&key->sem); key 824 security/keys/keyctl.c struct key *key; key 837 security/keys/keyctl.c key = key_ref_to_ptr(key_ref); key 839 security/keys/keyctl.c ret = key_read_state(key); key 861 security/keys/keyctl.c if (!key->type->read) { key 868 security/keys/keyctl.c ret = __keyctl_read_key(key, NULL, 0); key 897 security/keys/keyctl.c ret = __keyctl_read_key(key, key_data, key_data_len); key 926 security/keys/keyctl.c key_put(key); key 949 security/keys/keyctl.c struct key *key; key 974 security/keys/keyctl.c key = key_ref_to_ptr(key_ref); key 978 security/keys/keyctl.c down_write(&key->sem); key 982 security/keys/keyctl.c if (user != (uid_t) -1 && !uid_eq(key->uid, uid)) key 987 security/keys/keyctl.c if (group != (gid_t) -1 && !gid_eq(gid, key->gid) && !in_group_p(gid)) key 992 security/keys/keyctl.c if (user != (uid_t) -1 && !uid_eq(uid, key->uid)) { key 999 security/keys/keyctl.c if (test_bit(KEY_FLAG_IN_QUOTA, &key->flags)) { key 1007 security/keys/keyctl.c newowner->qnbytes + key->quotalen > maxbytes || key 1008 security/keys/keyctl.c newowner->qnbytes + key->quotalen < key 1013 security/keys/keyctl.c newowner->qnbytes += key->quotalen; key 1016 security/keys/keyctl.c spin_lock(&key->user->lock); key 1017 security/keys/keyctl.c key->user->qnkeys--; key 1018 security/keys/keyctl.c key->user->qnbytes -= key->quotalen; key 1019 security/keys/keyctl.c spin_unlock(&key->user->lock); key 1022 security/keys/keyctl.c atomic_dec(&key->user->nkeys); key 1025 security/keys/keyctl.c if (key->state != KEY_IS_UNINSTANTIATED) { key 1026 security/keys/keyctl.c atomic_dec(&key->user->nikeys); key 1030 security/keys/keyctl.c zapowner = key->user; key 1031 security/keys/keyctl.c key->user = newowner; key 1032 security/keys/keyctl.c key->uid = uid; key 1037 security/keys/keyctl.c key->gid = gid; key 1042 security/keys/keyctl.c up_write(&key->sem); key 1043 security/keys/keyctl.c key_put(key); key 1065 security/keys/keyctl.c struct key *key; key 1080 security/keys/keyctl.c key = key_ref_to_ptr(key_ref); key 1084 security/keys/keyctl.c down_write(&key->sem); key 1087 security/keys/keyctl.c if (capable(CAP_SYS_ADMIN) || uid_eq(key->uid, current_fsuid())) { key 1088 security/keys/keyctl.c key->perm = perm; key 1092 security/keys/keyctl.c up_write(&key->sem); key 1093 security/keys/keyctl.c key_put(key); key 1104 security/keys/keyctl.c struct key **_dest_keyring) key 1139 security/keys/keyctl.c static int keyctl_change_reqkey_auth(struct key *key) key 1148 security/keys/keyctl.c new->request_key_auth = key_get(key); key 1168 security/keys/keyctl.c struct key *instkey, *dest_keyring; key 1330 security/keys/keyctl.c struct key *instkey, *dest_keyring; key 1449 security/keys/keyctl.c struct key *key, *instkey; key 1475 security/keys/keyctl.c key = key_ref_to_ptr(key_ref); key 1477 security/keys/keyctl.c if (test_bit(KEY_FLAG_KEEP, &key->flags)) key 1480 security/keys/keyctl.c key_set_timeout(key, timeout); key 1481 security/keys/keyctl.c key_put(key); key 1506 security/keys/keyctl.c struct key *authkey; key 1553 security/keys/keyctl.c struct key *key, *instkey; key 1575 security/keys/keyctl.c key = key_ref_to_ptr(key_ref); key 1576 security/keys/keyctl.c ret = security_key_getsecurity(key, &context); key 20 security/keys/keyctl_pkey.c key_put(params->key); key 101 security/keys/keyctl_pkey.c params->key = key_ref_to_ptr(key_ref); key 103 security/keys/keyctl_pkey.c if (!params->key->type->asym_query) key 132 security/keys/keyctl_pkey.c ret = params->key->type->asym_query(params, &info); key 175 security/keys/keyctl_pkey.c ret = params.key->type->asym_query(¶ms, &res); key 221 security/keys/keyctl_pkey.c if (!params.key->type->asym_eds_op) key 249 security/keys/keyctl_pkey.c ret = params.key->type->asym_eds_op(¶ms, in, out); key 297 security/keys/keyctl_pkey.c if (!params.key->type->asym_verify_signature) key 313 security/keys/keyctl_pkey.c ret = params.key->type->asym_verify_signature(¶ms, in, in2); key 40 security/keys/keyring.c static inline struct key *keyring_ptr_to_key(const struct assoc_array_ptr *x) key 43 security/keys/keyring.c return (struct key *)((unsigned long)object & ~KEYRING_PTR_SUBTYPE); key 45 security/keys/keyring.c static inline void *keyring_key_to_ptr(struct key *key) key 47 security/keys/keyring.c if (key->type == &key_type_keyring) key 48 security/keys/keyring.c return (void *)((unsigned long)key | KEYRING_PTR_SUBTYPE); key 49 security/keys/keyring.c return key; key 76 security/keys/keyring.c static int keyring_instantiate(struct key *keyring, key 78 security/keys/keyring.c static void keyring_revoke(struct key *keyring); key 79 security/keys/keyring.c static void keyring_destroy(struct key *keyring); key 80 security/keys/keyring.c static void keyring_describe(const struct key *keyring, struct seq_file *m); key 81 security/keys/keyring.c static long keyring_read(const struct key *keyring, key 107 security/keys/keyring.c static void keyring_publish_name(struct key *keyring) key 140 security/keys/keyring.c static int keyring_instantiate(struct key *keyring, key 305 security/keys/keyring.c const struct key *key = keyring_ptr_to_key(object); key 306 security/keys/keyring.c return keyring_get_key_chunk(&key->index_key, level); key 312 security/keys/keyring.c const struct key *key = keyring_ptr_to_key(object); key 314 security/keys/keyring.c return key->index_key.type == index_key->type && key 315 security/keys/keyring.c key->index_key.domain_tag == index_key->domain_tag && key 316 security/keys/keyring.c key->index_key.desc_len == index_key->desc_len && key 317 security/keys/keyring.c memcmp(key->index_key.description, index_key->description, key 327 security/keys/keyring.c const struct key *key_a = keyring_ptr_to_key(object); key 412 security/keys/keyring.c static void keyring_destroy(struct key *keyring) key 427 security/keys/keyring.c key_put(keyres->key); key 437 security/keys/keyring.c static void keyring_describe(const struct key *keyring, struct seq_file *m) key 461 security/keys/keyring.c const struct key *key = keyring_ptr_to_key(object); key 464 security/keys/keyring.c key->type->name, key->serial, ctx->count, ctx->buflen); key 469 security/keys/keyring.c *ctx->buffer++ = key->serial; key 470 security/keys/keyring.c ctx->count += sizeof(key->serial); key 481 security/keys/keyring.c static long keyring_read(const struct key *keyring, key 517 security/keys/keyring.c struct key *keyring_alloc(const char *description, kuid_t uid, kgid_t gid, key 521 security/keys/keyring.c struct key *dest) key 523 security/keys/keyring.c struct key *keyring; key 554 security/keys/keyring.c int restrict_link_reject(struct key *keyring, key 557 security/keys/keyring.c struct key *restriction_key) key 565 security/keys/keyring.c bool key_default_cmp(const struct key *key, key 568 security/keys/keyring.c return strcmp(key->description, match_data->raw_data) == 0; key 577 security/keys/keyring.c const struct key *key = keyring_ptr_to_key(object); key 578 security/keys/keyring.c unsigned long kflags = READ_ONCE(key->flags); key 579 security/keys/keyring.c short state = READ_ONCE(key->state); key 581 security/keys/keyring.c kenter("{%d}", key->serial); key 584 security/keys/keyring.c if (key->type != ctx->index_key.type) { key 591 security/keys/keyring.c time64_t expiry = READ_ONCE(key->expiry); key 609 security/keys/keyring.c if (!ctx->match_data.cmp(key, &ctx->match_data)) { key 616 security/keys/keyring.c key_task_permission(make_key_ref(key, ctx->possessed), key 633 security/keys/keyring.c ctx->result = make_key_ref(key, ctx->possessed); key 646 security/keys/keyring.c static int search_keyring(struct key *keyring, struct keyring_search_context *ctx) key 663 security/keys/keyring.c static bool search_nested_keyrings(struct key *keyring, key 667 security/keys/keyring.c struct key *keyring; key 675 security/keys/keyring.c struct key *key; key 781 security/keys/keyring.c key = keyring_ptr_to_key(ptr); key 793 security/keys/keyring.c key_task_permission(make_key_ref(key, ctx->possessed), key 804 security/keys/keyring.c keyring = key; key 853 security/keys/keyring.c key = key_ref_to_ptr(ctx->result); key 854 security/keys/keyring.c key_check(key); key 856 security/keys/keyring.c key->last_used_at = ctx->now; key 902 security/keys/keyring.c struct key *keyring; key 952 security/keys/keyring.c key_ref_t key; key 964 security/keys/keyring.c key = keyring_search_rcu(keyring, &ctx); key 969 security/keys/keyring.c return key; key 997 security/keys/keyring.c static bool keyring_detect_restriction_cycle(const struct key *dest_keyring, key 1000 security/keys/keyring.c while (keyres && keyres->key && key 1001 security/keys/keyring.c keyres->key->type == &key_type_keyring) { key 1002 security/keys/keyring.c if (keyres->key == dest_keyring) key 1005 security/keys/keyring.c keyres = keyres->key->restrict_link; key 1024 security/keys/keyring.c struct key *keyring; key 1070 security/keys/keyring.c key_put(restrict_link->key); key 1099 security/keys/keyring.c struct key *keyring, *key; key 1117 security/keys/keyring.c key = keyring_ptr_to_key(object); key 1118 security/keys/keyring.c if (key->flags & ((1 << KEY_FLAG_INVALIDATED) | key 1123 security/keys/keyring.c __key_get(key); key 1124 security/keys/keyring.c kleave(" = {%d}", key->serial); key 1125 security/keys/keyring.c return make_key_ref(key, is_key_possessed(keyring_ref)); key 1139 security/keys/keyring.c struct key *find_keyring_by_name(const char *name, bool uid_keyring) key 1142 security/keys/keyring.c struct key *keyring; key 1191 security/keys/keyring.c const struct key *key = keyring_ptr_to_key(object); key 1193 security/keys/keyring.c kenter("{%d}", key->serial); key 1197 security/keys/keyring.c if (key != ctx->match_data.raw_data) key 1211 security/keys/keyring.c static int keyring_detect_cycle(struct key *A, struct key *B) key 1234 security/keys/keyring.c int __key_link_lock(struct key *keyring, key 1256 security/keys/keyring.c int __key_move_lock(struct key *l_keyring, struct key *u_keyring, key 1290 security/keys/keyring.c int __key_link_begin(struct key *keyring, key 1348 security/keys/keyring.c int __key_link_check_live_key(struct key *keyring, struct key *key) key 1350 security/keys/keyring.c if (key->type == &key_type_keyring) key 1353 security/keys/keyring.c return keyring_detect_cycle(keyring, key); key 1365 security/keys/keyring.c void __key_link(struct key *key, struct assoc_array_edit **_edit) key 1367 security/keys/keyring.c __key_get(key); key 1368 security/keys/keyring.c assoc_array_insert_set_object(*_edit, keyring_key_to_ptr(key)); key 1378 security/keys/keyring.c void __key_link_end(struct key *keyring, key 1403 security/keys/keyring.c static int __key_link_check_restriction(struct key *keyring, struct key *key) key 1407 security/keys/keyring.c return keyring->restrict_link->check(keyring, key->type, &key->payload, key 1408 security/keys/keyring.c keyring->restrict_link->key); key 1431 security/keys/keyring.c int key_link(struct key *keyring, struct key *key) key 1439 security/keys/keyring.c key_check(key); key 1441 security/keys/keyring.c ret = __key_link_lock(keyring, &key->index_key); key 1445 security/keys/keyring.c ret = __key_link_begin(keyring, &key->index_key, &edit); key 1450 security/keys/keyring.c ret = __key_link_check_restriction(keyring, key); key 1452 security/keys/keyring.c ret = __key_link_check_live_key(keyring, key); key 1454 security/keys/keyring.c __key_link(key, &edit); key 1457 security/keys/keyring.c __key_link_end(keyring, &key->index_key, edit); key 1467 security/keys/keyring.c static int __key_unlink_lock(struct key *keyring) key 1480 security/keys/keyring.c static int __key_unlink_begin(struct key *keyring, struct key *key, key 1488 security/keys/keyring.c &key->index_key); key 1502 security/keys/keyring.c static void __key_unlink(struct key *keyring, struct key *key, key 1513 security/keys/keyring.c static void __key_unlink_end(struct key *keyring, key 1514 security/keys/keyring.c struct key *key, key 1540 security/keys/keyring.c int key_unlink(struct key *keyring, struct key *key) key 1546 security/keys/keyring.c key_check(key); key 1552 security/keys/keyring.c ret = __key_unlink_begin(keyring, key, &edit); key 1554 security/keys/keyring.c __key_unlink(keyring, key, &edit); key 1555 security/keys/keyring.c __key_unlink_end(keyring, key, edit); key 1585 security/keys/keyring.c int key_move(struct key *key, key 1586 security/keys/keyring.c struct key *from_keyring, key 1587 security/keys/keyring.c struct key *to_keyring, key 1593 security/keys/keyring.c kenter("%d,%d,%d", key->serial, from_keyring->serial, to_keyring->serial); key 1598 security/keys/keyring.c key_check(key); key 1602 security/keys/keyring.c ret = __key_move_lock(from_keyring, to_keyring, &key->index_key); key 1605 security/keys/keyring.c ret = __key_unlink_begin(from_keyring, key, &from_edit); key 1608 security/keys/keyring.c ret = __key_link_begin(to_keyring, &key->index_key, &to_edit); key 1616 security/keys/keyring.c ret = __key_link_check_restriction(to_keyring, key); key 1619 security/keys/keyring.c ret = __key_link_check_live_key(to_keyring, key); key 1623 security/keys/keyring.c __key_unlink(from_keyring, key, &from_edit); key 1624 security/keys/keyring.c __key_link(key, &to_edit); key 1626 security/keys/keyring.c __key_link_end(to_keyring, &key->index_key, to_edit); key 1627 security/keys/keyring.c __key_unlink_end(from_keyring, key, from_edit); key 1642 security/keys/keyring.c int keyring_clear(struct key *keyring) key 1672 security/keys/keyring.c static void keyring_revoke(struct key *keyring) key 1686 security/keys/keyring.c struct key *key = keyring_ptr_to_key(object); key 1689 security/keys/keyring.c if (key_is_dead(key, *limit)) key 1691 security/keys/keyring.c key_get(key); key 1697 security/keys/keyring.c const struct key *key = keyring_ptr_to_key(object); key 1700 security/keys/keyring.c key_check(key); key 1701 security/keys/keyring.c return key_is_dead(key, *limit); key 1710 security/keys/keyring.c void keyring_gc(struct key *keyring, time64_t limit) key 1755 security/keys/keyring.c void keyring_restriction_gc(struct key *keyring, struct key_type *dead_type) key 1781 security/keys/keyring.c key_put(keyres->key); key 1782 security/keys/keyring.c keyres->key = NULL; key 29 security/keys/permission.c struct key *key; key 33 security/keys/permission.c key = key_ref_to_ptr(key_ref); key 36 security/keys/permission.c if (uid_eq(key->uid, cred->fsuid)) { key 37 security/keys/permission.c kperm = key->perm >> 16; key 43 security/keys/permission.c if (gid_valid(key->gid) && key->perm & KEY_GRP_ALL) { key 44 security/keys/permission.c if (gid_eq(key->gid, cred->fsgid)) { key 45 security/keys/permission.c kperm = key->perm >> 8; key 49 security/keys/permission.c ret = groups_search(cred->group_info, key->gid); key 51 security/keys/permission.c kperm = key->perm >> 8; key 57 security/keys/permission.c kperm = key->perm; key 65 security/keys/permission.c kperm |= key->perm >> 24; key 85 security/keys/permission.c int key_validate(const struct key *key) key 87 security/keys/permission.c unsigned long flags = READ_ONCE(key->flags); key 88 security/keys/permission.c time64_t expiry = READ_ONCE(key->expiry); key 22 security/keys/persistent.c struct key *reg = keyring_alloc(".persistent_register", key 43 security/keys/persistent.c struct key *persistent; key 77 security/keys/persistent.c struct key *persistent; key 70 security/keys/proc.c struct key *key = rb_entry(n, struct key, serial_node); key 71 security/keys/proc.c if (kuid_has_mapping(user_ns, key->user->uid)) key 78 security/keys/proc.c static struct key *find_ge_key(struct seq_file *p, key_serial_t id) key 82 security/keys/proc.c struct key *minkey = NULL; key 85 security/keys/proc.c struct key *key = rb_entry(n, struct key, serial_node); key 86 security/keys/proc.c if (id < key->serial) { key 87 security/keys/proc.c if (!minkey || minkey->serial > key->serial) key 88 security/keys/proc.c minkey = key; key 90 security/keys/proc.c } else if (id > key->serial) { key 93 security/keys/proc.c minkey = key; key 96 security/keys/proc.c key = NULL; key 108 security/keys/proc.c minkey = rb_entry(n, struct key, serial_node); key 116 security/keys/proc.c struct key *key; key 122 security/keys/proc.c key = find_ge_key(p, pos); key 123 security/keys/proc.c if (!key) key 125 security/keys/proc.c *_pos = key->serial; key 126 security/keys/proc.c return &key->serial_node; key 131 security/keys/proc.c struct key *key = rb_entry(n, struct key, serial_node); key 132 security/keys/proc.c return key->serial; key 156 security/keys/proc.c struct key *key = rb_entry(_p, struct key, serial_node); key 166 security/keys/proc.c .index_key = key->index_key, key 169 security/keys/proc.c .match_data.raw_data = key, key 175 security/keys/proc.c key_ref = make_key_ref(key, 0); key 180 security/keys/proc.c if (key->perm & KEY_POS_VIEW) { key 186 security/keys/proc.c key_ref = make_key_ref(key, 1); key 200 security/keys/proc.c expiry = READ_ONCE(key->expiry); key 220 security/keys/proc.c state = key_read_state(key); key 225 security/keys/proc.c flags = READ_ONCE(key->flags); key 227 security/keys/proc.c key->serial, key 235 security/keys/proc.c refcount_read(&key->usage), key 237 security/keys/proc.c key->perm, key 238 security/keys/proc.c from_kuid_munged(seq_user_ns(m), key->uid), key 239 security/keys/proc.c from_kgid_munged(seq_user_ns(m), key->gid), key 240 security/keys/proc.c key->type->name); key 244 security/keys/proc.c if (key->type->describe) key 245 security/keys/proc.c key->type->describe(key, m); key 38 security/keys/process_keys.c static struct key *get_user_register(struct user_namespace *user_ns) key 40 security/keys/process_keys.c struct key *reg_keyring = READ_ONCE(user_ns->user_keyring_register); key 74 security/keys/process_keys.c int look_up_user_keyrings(struct key **_user_keyring, key 75 security/keys/process_keys.c struct key **_user_session_keyring) key 79 security/keys/process_keys.c struct key *reg_keyring, *uid_keyring, *session_keyring; key 185 security/keys/process_keys.c struct key *get_user_session_keyring_rcu(const struct cred *cred) key 187 security/keys/process_keys.c struct key *reg_keyring = READ_ONCE(cred->user_ns->user_keyring_register); key 223 security/keys/process_keys.c struct key *keyring; key 270 security/keys/process_keys.c struct key *keyring; key 317 security/keys/process_keys.c int install_session_keyring_to_cred(struct cred *cred, struct key *keyring) key 320 security/keys/process_keys.c struct key *old; key 356 security/keys/process_keys.c static int install_session_keyring(struct key *keyring) key 424 security/keys/process_keys.c struct key *user_session; key 587 security/keys/process_keys.c bool lookup_user_key_possessed(const struct key *key, key 590 security/keys/process_keys.c return key == match_data->raw_data; key 621 security/keys/process_keys.c struct key *key, *user_session; key 643 security/keys/process_keys.c key = ctx.cred->thread_keyring; key 644 security/keys/process_keys.c __key_get(key); key 645 security/keys/process_keys.c key_ref = make_key_ref(key, 1); key 661 security/keys/process_keys.c key = ctx.cred->process_keyring; key 662 security/keys/process_keys.c __key_get(key); key 663 security/keys/process_keys.c key_ref = make_key_ref(key, 1); key 691 security/keys/process_keys.c key = ctx.cred->session_keyring; key 692 security/keys/process_keys.c __key_get(key); key 693 security/keys/process_keys.c key_ref = make_key_ref(key, 1); key 697 security/keys/process_keys.c ret = look_up_user_keyrings(&key, NULL); key 700 security/keys/process_keys.c key_ref = make_key_ref(key, 1); key 704 security/keys/process_keys.c ret = look_up_user_keyrings(NULL, &key); key 707 security/keys/process_keys.c key_ref = make_key_ref(key, 1); key 716 security/keys/process_keys.c key = ctx.cred->request_key_auth; key 717 security/keys/process_keys.c if (!key) key 720 security/keys/process_keys.c __key_get(key); key 721 security/keys/process_keys.c key_ref = make_key_ref(key, 1); key 732 security/keys/process_keys.c key = NULL; key 735 security/keys/process_keys.c key = rka->dest_keyring; key 736 security/keys/process_keys.c __key_get(key); key 739 security/keys/process_keys.c if (!key) key 741 security/keys/process_keys.c key_ref = make_key_ref(key, 1); key 749 security/keys/process_keys.c key = key_lookup(id); key 750 security/keys/process_keys.c if (IS_ERR(key)) { key 751 security/keys/process_keys.c key_ref = ERR_CAST(key); key 755 security/keys/process_keys.c key_ref = make_key_ref(key, 0); key 758 security/keys/process_keys.c ctx.index_key = key->index_key; key 759 security/keys/process_keys.c ctx.match_data.raw_data = key; key 767 security/keys/process_keys.c key_put(key); key 782 security/keys/process_keys.c ret = wait_for_key_construction(key, true); key 793 security/keys/process_keys.c ret = key_validate(key); key 800 security/keys/process_keys.c key_read_state(key) == KEY_IS_UNINSTANTIATED) key 808 security/keys/process_keys.c key->last_used_at = ktime_get_real_seconds(); key 842 security/keys/process_keys.c struct key *keyring; key 22 security/keys/request_key.c static struct key *check_cached_key(struct keyring_search_context *ctx) key 25 security/keys/request_key.c struct key *key = current->cached_requested_key; key 27 security/keys/request_key.c if (key && key 28 security/keys/request_key.c ctx->match_data.cmp(key, &ctx->match_data) && key 29 security/keys/request_key.c !(key->flags & ((1 << KEY_FLAG_INVALIDATED) | key 31 security/keys/request_key.c return key_get(key); key 36 security/keys/request_key.c static void cache_requested_key(struct key *key) key 42 security/keys/request_key.c t->cached_requested_key = key_get(key); key 56 security/keys/request_key.c void complete_request_key(struct key *authkey, int error) key 59 security/keys/request_key.c struct key *key = rka->target_key; key 61 security/keys/request_key.c kenter("%d{%d},%d", authkey->serial, key->serial, error); key 64 security/keys/request_key.c key_negate_and_link(key, key_negative_timeout, NULL, authkey); key 79 security/keys/request_key.c struct key *keyring = info->data; key 89 security/keys/request_key.c struct key *keyring = info->data; key 97 security/keys/request_key.c struct key *session_keyring, int wait) key 115 security/keys/request_key.c static int call_sbin_request_key(struct key *authkey, void *aux) key 121 security/keys/request_key.c struct key *key = rka->target_key, *keyring, *session, *user_session; key 127 security/keys/request_key.c kenter("{%d},{%d},%s", key->serial, authkey->serial, rka->op); key 134 security/keys/request_key.c sprintf(desc, "_req.%u", key->serial); key 156 security/keys/request_key.c sprintf(key_str, "%d", key->serial); key 198 security/keys/request_key.c if (test_bit(KEY_FLAG_USER_CONSTRUCT, &key->flags) || key 199 security/keys/request_key.c key_validate(key) < 0) key 223 security/keys/request_key.c static int construct_key(struct key *key, const void *callout_info, key 225 security/keys/request_key.c struct key *dest_keyring) key 228 security/keys/request_key.c struct key *authkey; key 231 security/keys/request_key.c kenter("%d,%p,%zu,%p", key->serial, callout_info, callout_len, aux); key 234 security/keys/request_key.c authkey = request_key_auth_new(key, "create", callout_info, callout_len, key 241 security/keys/request_key.c if (key->type->request_key) key 242 security/keys/request_key.c actor = key->type->request_key; key 262 security/keys/request_key.c static int construct_get_dest_keyring(struct key **_dest_keyring) key 266 security/keys/request_key.c struct key *dest_keyring = *_dest_keyring, *authkey; key 367 security/keys/request_key.c struct key *dest_keyring, key 370 security/keys/request_key.c struct key **_key) key 373 security/keys/request_key.c struct key *key; key 392 security/keys/request_key.c key = key_alloc(ctx->index_key.type, ctx->index_key.description, key 395 security/keys/request_key.c if (IS_ERR(key)) key 398 security/keys/request_key.c set_bit(KEY_FLAG_USER_CONSTRUCT, &key->flags); key 421 security/keys/request_key.c __key_link(key, &edit); key 427 security/keys/request_key.c *_key = key; key 428 security/keys/request_key.c kleave(" = 0 [%d]", key_serial(key)); key 434 security/keys/request_key.c key_put(key); key 436 security/keys/request_key.c key = key_ref_to_ptr(key_ref); key 438 security/keys/request_key.c ret = __key_link_check_live_key(dest_keyring, key); key 440 security/keys/request_key.c __key_link(key, &edit); key 446 security/keys/request_key.c *_key = key; key 447 security/keys/request_key.c kleave(" = -EINPROGRESS [%d]", key_serial(key)); key 452 security/keys/request_key.c key_put(key); key 460 security/keys/request_key.c key_put(key); key 466 security/keys/request_key.c kleave(" = %ld", PTR_ERR(key)); key 467 security/keys/request_key.c return PTR_ERR(key); key 473 security/keys/request_key.c static struct key *construct_key_and_link(struct keyring_search_context *ctx, key 477 security/keys/request_key.c struct key *dest_keyring, key 481 security/keys/request_key.c struct key *key; key 499 security/keys/request_key.c ret = construct_alloc_key(ctx, dest_keyring, flags, user, &key); key 503 security/keys/request_key.c ret = construct_key(key, callout_info, callout_len, aux, key 516 security/keys/request_key.c kleave(" = key %d", key_serial(key)); key 517 security/keys/request_key.c return key; key 520 security/keys/request_key.c key_negate_and_link(key, key_negative_timeout, NULL, NULL); key 521 security/keys/request_key.c key_put(key); key 558 security/keys/request_key.c struct key *request_key_and_link(struct key_type *type, key 564 security/keys/request_key.c struct key *dest_keyring, key 580 security/keys/request_key.c struct key *key; key 591 security/keys/request_key.c key = ERR_PTR(ret); key 596 security/keys/request_key.c key = check_cached_key(&ctx); key 597 security/keys/request_key.c if (key) key 611 security/keys/request_key.c key = ERR_PTR(ret); key 616 security/keys/request_key.c key = key_ref_to_ptr(key_ref); key 618 security/keys/request_key.c ret = key_link(dest_keyring, key); key 620 security/keys/request_key.c key_put(key); key 621 security/keys/request_key.c key = ERR_PTR(ret); key 627 security/keys/request_key.c cache_requested_key(key); key 629 security/keys/request_key.c key = ERR_CAST(key_ref); key 633 security/keys/request_key.c key = ERR_PTR(-ENOKEY); key 637 security/keys/request_key.c key = construct_key_and_link(&ctx, callout_info, callout_len, key 645 security/keys/request_key.c kleave(" = %p", key); key 646 security/keys/request_key.c return key; key 660 security/keys/request_key.c int wait_for_key_construction(struct key *key, bool intr) key 664 security/keys/request_key.c ret = wait_on_bit(&key->flags, KEY_FLAG_USER_CONSTRUCT, key 668 security/keys/request_key.c ret = key_read_state(key); key 671 security/keys/request_key.c return key_validate(key); key 690 security/keys/request_key.c struct key *request_key_tag(struct key_type *type, key 695 security/keys/request_key.c struct key *key; key 701 security/keys/request_key.c key = request_key_and_link(type, description, domain_tag, key 704 security/keys/request_key.c if (!IS_ERR(key)) { key 705 security/keys/request_key.c ret = wait_for_key_construction(key, false); key 707 security/keys/request_key.c key_put(key); key 711 security/keys/request_key.c return key; key 730 security/keys/request_key.c struct key *request_key_with_auxdata(struct key_type *type, key 737 security/keys/request_key.c struct key *key; key 740 security/keys/request_key.c key = request_key_and_link(type, description, domain_tag, key 743 security/keys/request_key.c if (!IS_ERR(key)) { key 744 security/keys/request_key.c ret = wait_for_key_construction(key, false); key 746 security/keys/request_key.c key_put(key); key 750 security/keys/request_key.c return key; key 766 security/keys/request_key.c struct key *request_key_rcu(struct key_type *type, key 782 security/keys/request_key.c struct key *key; key 787 security/keys/request_key.c key = check_cached_key(&ctx); key 788 security/keys/request_key.c if (key) key 789 security/keys/request_key.c return key; key 794 security/keys/request_key.c key = ERR_CAST(key_ref); key 796 security/keys/request_key.c key = ERR_PTR(-ENOKEY); key 798 security/keys/request_key.c key = key_ref_to_ptr(key_ref); key 799 security/keys/request_key.c cache_requested_key(key); key 802 security/keys/request_key.c kleave(" = %p", key); key 803 security/keys/request_key.c return key; key 20 security/keys/request_key_auth.c static int request_key_auth_instantiate(struct key *, key 22 security/keys/request_key_auth.c static void request_key_auth_describe(const struct key *, struct seq_file *); key 23 security/keys/request_key_auth.c static void request_key_auth_revoke(struct key *); key 24 security/keys/request_key_auth.c static void request_key_auth_destroy(struct key *); key 25 security/keys/request_key_auth.c static long request_key_auth_read(const struct key *, char *, size_t); key 54 security/keys/request_key_auth.c static int request_key_auth_instantiate(struct key *key, key 57 security/keys/request_key_auth.c rcu_assign_keypointer(key, (struct request_key_auth *)prep->data); key 64 security/keys/request_key_auth.c static void request_key_auth_describe(const struct key *key, key 67 security/keys/request_key_auth.c struct request_key_auth *rka = dereference_key_rcu(key); key 73 security/keys/request_key_auth.c seq_puts(m, key->description); key 74 security/keys/request_key_auth.c if (key_is_positive(key)) key 82 security/keys/request_key_auth.c static long request_key_auth_read(const struct key *key, key 85 security/keys/request_key_auth.c struct request_key_auth *rka = dereference_key_locked(key); key 134 security/keys/request_key_auth.c static void request_key_auth_revoke(struct key *key) key 136 security/keys/request_key_auth.c struct request_key_auth *rka = dereference_key_locked(key); key 138 security/keys/request_key_auth.c kenter("{%d}", key->serial); key 139 security/keys/request_key_auth.c rcu_assign_keypointer(key, NULL); key 146 security/keys/request_key_auth.c static void request_key_auth_destroy(struct key *key) key 148 security/keys/request_key_auth.c struct request_key_auth *rka = rcu_access_pointer(key->payload.rcu_data0); key 150 security/keys/request_key_auth.c kenter("{%d}", key->serial); key 152 security/keys/request_key_auth.c rcu_assign_keypointer(key, NULL); key 161 security/keys/request_key_auth.c struct key *request_key_auth_new(struct key *target, const char *op, key 163 security/keys/request_key_auth.c struct key *dest_keyring) key 167 security/keys/request_key_auth.c struct key *authkey = NULL; key 246 security/keys/request_key_auth.c struct key *key_get_instantiation_authkey(key_serial_t target_id) key 259 security/keys/request_key_auth.c struct key *authkey; key 75 security/keys/trusted.c static int TSS_rawhmac(unsigned char *digest, const unsigned char *key, key 90 security/keys/trusted.c ret = crypto_shash_setkey(hmacalg, key, keylen); key 122 security/keys/trusted.c int TSS_authhmac(unsigned char *digest, const unsigned char *key, key 165 security/keys/trusted.c ret = TSS_rawhmac(digest, key, keylen, SHA1_DIGEST_SIZE, key 180 security/keys/trusted.c const unsigned char *key, key 245 security/keys/trusted.c ret = TSS_rawhmac(testhmac, key, keylen, SHA1_DIGEST_SIZE, paramdigest, key 399 security/keys/trusted.c const unsigned char *key, uint16_t type, uint32_t handle) key 426 security/keys/trusted.c return TSS_rawhmac(s->secret, key, SHA1_DIGEST_SIZE, TPM_NONCE_SIZE, key 681 security/keys/trusted.c p->key[p->key_len] = p->migratable; key 684 security/keys/trusted.c p->key, p->key_len + 1, p->blob, &p->blob_len, key 707 security/keys/trusted.c o->blobauth, p->key, &p->key_len); key 712 security/keys/trusted.c p->migratable = p->key[--p->key_len]; key 943 security/keys/trusted.c static struct trusted_key_payload *trusted_payload_alloc(struct key *key) key 948 security/keys/trusted.c ret = key_payload_reserve(key, sizeof *p); key 966 security/keys/trusted.c static int trusted_instantiate(struct key *key, key 996 security/keys/trusted.c payload = trusted_payload_alloc(key); key 1029 security/keys/trusted.c ret = tpm_get_random(chip, payload->key, key_len); key 1051 security/keys/trusted.c rcu_assign_keypointer(key, payload); key 1068 security/keys/trusted.c static int trusted_update(struct key *key, struct key_preparsed_payload *prep) key 1077 security/keys/trusted.c if (key_is_negative(key)) key 1079 security/keys/trusted.c p = key->payload.data[0]; key 1093 security/keys/trusted.c new_p = trusted_payload_alloc(key); key 1117 security/keys/trusted.c memcpy(new_p->key, p->key, p->key_len); key 1135 security/keys/trusted.c rcu_assign_keypointer(key, new_p); key 1147 security/keys/trusted.c static long trusted_read(const struct key *key, char *buffer, key 1154 security/keys/trusted.c p = dereference_key_locked(key); key 1169 security/keys/trusted.c static void trusted_destroy(struct key *key) key 1171 security/keys/trusted.c kzfree(key->payload.data[0]); key 101 security/keys/user_defined.c int user_update(struct key *key, struct key_preparsed_payload *prep) key 107 security/keys/user_defined.c ret = key_payload_reserve(key, prep->datalen); key 112 security/keys/user_defined.c key->expiry = prep->expiry; key 113 security/keys/user_defined.c if (key_is_positive(key)) key 114 security/keys/user_defined.c zap = dereference_key_locked(key); key 115 security/keys/user_defined.c rcu_assign_keypointer(key, prep->payload.data[0]); key 128 security/keys/user_defined.c void user_revoke(struct key *key) key 130 security/keys/user_defined.c struct user_key_payload *upayload = user_key_payload_locked(key); key 133 security/keys/user_defined.c key_payload_reserve(key, 0); key 136 security/keys/user_defined.c rcu_assign_keypointer(key, NULL); key 146 security/keys/user_defined.c void user_destroy(struct key *key) key 148 security/keys/user_defined.c struct user_key_payload *upayload = key->payload.data[0]; key 158 security/keys/user_defined.c void user_describe(const struct key *key, struct seq_file *m) key 160 security/keys/user_defined.c seq_puts(m, key->description); key 161 security/keys/user_defined.c if (key_is_positive(key)) key 162 security/keys/user_defined.c seq_printf(m, ": %u", key->datalen); key 171 security/keys/user_defined.c long user_read(const struct key *key, char *buffer, size_t buflen) key 176 security/keys/user_defined.c upayload = user_key_payload_locked(key); key 401 security/lsm_audit.c audit_log_format(ab, " key_serial=%u", a->u.key_struct.key); key 2323 security/security.c int security_key_alloc(struct key *key, const struct cred *cred, key 2326 security/security.c return call_int_hook(key_alloc, 0, key, cred, flags); key 2329 security/security.c void security_key_free(struct key *key) key 2331 security/security.c call_void_hook(key_free, key); key 2340 security/security.c int security_key_getsecurity(struct key *key, char **_buffer) key 2343 security/security.c return call_int_hook(key_getsecurity, 0, key, _buffer); key 5937 security/selinux/hooks.c ad.u.ipc_id = ipc_perms->key; key 5960 security/selinux/hooks.c ad.u.ipc_id = msq->key; key 5977 security/selinux/hooks.c ad.u.ipc_id = msq->key; key 6041 security/selinux/hooks.c ad.u.ipc_id = msq->key; key 6075 security/selinux/hooks.c ad.u.ipc_id = msq->key; key 6099 security/selinux/hooks.c ad.u.ipc_id = shp->key; key 6116 security/selinux/hooks.c ad.u.ipc_id = shp->key; key 6184 security/selinux/hooks.c ad.u.ipc_id = sma->key; key 6201 security/selinux/hooks.c ad.u.ipc_id = sma->key; key 6549 security/selinux/hooks.c static int selinux_key_alloc(struct key *k, const struct cred *cred, key 6569 security/selinux/hooks.c static void selinux_key_free(struct key *k) key 6581 security/selinux/hooks.c struct key *key; key 6593 security/selinux/hooks.c key = key_ref_to_ptr(key_ref); key 6594 security/selinux/hooks.c ksec = key->security; key 6600 security/selinux/hooks.c static int selinux_key_getsecurity(struct key *key, char **_buffer) key 6602 security/selinux/hooks.c struct key_security_struct *ksec = key->security; key 71 security/selinux/ss/avtab.c struct avtab_key *key, struct avtab_datum *datum) key 78 security/selinux/ss/avtab.c newnode->key = *key; key 80 security/selinux/ss/avtab.c if (key->specified & AVTAB_XPERMS) { key 106 security/selinux/ss/avtab.c static int avtab_insert(struct avtab *h, struct avtab_key *key, struct avtab_datum *datum) key 110 security/selinux/ss/avtab.c u16 specified = key->specified & ~(AVTAB_ENABLED|AVTAB_ENABLED_OLD); key 115 security/selinux/ss/avtab.c hvalue = avtab_hash(key, h->mask); key 119 security/selinux/ss/avtab.c if (key->source_type == cur->key.source_type && key 120 security/selinux/ss/avtab.c key->target_type == cur->key.target_type && key 121 security/selinux/ss/avtab.c key->target_class == cur->key.target_class && key 122 security/selinux/ss/avtab.c (specified & cur->key.specified)) { key 128 security/selinux/ss/avtab.c if (key->source_type < cur->key.source_type) key 130 security/selinux/ss/avtab.c if (key->source_type == cur->key.source_type && key 131 security/selinux/ss/avtab.c key->target_type < cur->key.target_type) key 133 security/selinux/ss/avtab.c if (key->source_type == cur->key.source_type && key 134 security/selinux/ss/avtab.c key->target_type == cur->key.target_type && key 135 security/selinux/ss/avtab.c key->target_class < cur->key.target_class) key 139 security/selinux/ss/avtab.c newnode = avtab_insert_node(h, hvalue, prev, cur, key, datum); key 151 security/selinux/ss/avtab.c avtab_insert_nonunique(struct avtab *h, struct avtab_key *key, struct avtab_datum *datum) key 155 security/selinux/ss/avtab.c u16 specified = key->specified & ~(AVTAB_ENABLED|AVTAB_ENABLED_OLD); key 159 security/selinux/ss/avtab.c hvalue = avtab_hash(key, h->mask); key 163 security/selinux/ss/avtab.c if (key->source_type == cur->key.source_type && key 164 security/selinux/ss/avtab.c key->target_type == cur->key.target_type && key 165 security/selinux/ss/avtab.c key->target_class == cur->key.target_class && key 166 security/selinux/ss/avtab.c (specified & cur->key.specified)) key 168 security/selinux/ss/avtab.c if (key->source_type < cur->key.source_type) key 170 security/selinux/ss/avtab.c if (key->source_type == cur->key.source_type && key 171 security/selinux/ss/avtab.c key->target_type < cur->key.target_type) key 173 security/selinux/ss/avtab.c if (key->source_type == cur->key.source_type && key 174 security/selinux/ss/avtab.c key->target_type == cur->key.target_type && key 175 security/selinux/ss/avtab.c key->target_class < cur->key.target_class) key 178 security/selinux/ss/avtab.c return avtab_insert_node(h, hvalue, prev, cur, key, datum); key 181 security/selinux/ss/avtab.c struct avtab_datum *avtab_search(struct avtab *h, struct avtab_key *key) key 185 security/selinux/ss/avtab.c u16 specified = key->specified & ~(AVTAB_ENABLED|AVTAB_ENABLED_OLD); key 190 security/selinux/ss/avtab.c hvalue = avtab_hash(key, h->mask); key 193 security/selinux/ss/avtab.c if (key->source_type == cur->key.source_type && key 194 security/selinux/ss/avtab.c key->target_type == cur->key.target_type && key 195 security/selinux/ss/avtab.c key->target_class == cur->key.target_class && key 196 security/selinux/ss/avtab.c (specified & cur->key.specified)) key 199 security/selinux/ss/avtab.c if (key->source_type < cur->key.source_type) key 201 security/selinux/ss/avtab.c if (key->source_type == cur->key.source_type && key 202 security/selinux/ss/avtab.c key->target_type < cur->key.target_type) key 204 security/selinux/ss/avtab.c if (key->source_type == cur->key.source_type && key 205 security/selinux/ss/avtab.c key->target_type == cur->key.target_type && key 206 security/selinux/ss/avtab.c key->target_class < cur->key.target_class) key 217 security/selinux/ss/avtab.c avtab_search_node(struct avtab *h, struct avtab_key *key) key 221 security/selinux/ss/avtab.c u16 specified = key->specified & ~(AVTAB_ENABLED|AVTAB_ENABLED_OLD); key 226 security/selinux/ss/avtab.c hvalue = avtab_hash(key, h->mask); key 229 security/selinux/ss/avtab.c if (key->source_type == cur->key.source_type && key 230 security/selinux/ss/avtab.c key->target_type == cur->key.target_type && key 231 security/selinux/ss/avtab.c key->target_class == cur->key.target_class && key 232 security/selinux/ss/avtab.c (specified & cur->key.specified)) key 235 security/selinux/ss/avtab.c if (key->source_type < cur->key.source_type) key 237 security/selinux/ss/avtab.c if (key->source_type == cur->key.source_type && key 238 security/selinux/ss/avtab.c key->target_type < cur->key.target_type) key 240 security/selinux/ss/avtab.c if (key->source_type == cur->key.source_type && key 241 security/selinux/ss/avtab.c key->target_type == cur->key.target_type && key 242 security/selinux/ss/avtab.c key->target_class < cur->key.target_class) key 258 security/selinux/ss/avtab.c if (node->key.source_type == cur->key.source_type && key 259 security/selinux/ss/avtab.c node->key.target_type == cur->key.target_type && key 260 security/selinux/ss/avtab.c node->key.target_class == cur->key.target_class && key 261 security/selinux/ss/avtab.c (specified & cur->key.specified)) key 264 security/selinux/ss/avtab.c if (node->key.source_type < cur->key.source_type) key 266 security/selinux/ss/avtab.c if (node->key.source_type == cur->key.source_type && key 267 security/selinux/ss/avtab.c node->key.target_type < cur->key.target_type) key 269 security/selinux/ss/avtab.c if (node->key.source_type == cur->key.source_type && key 270 security/selinux/ss/avtab.c node->key.target_type == cur->key.target_type && key 271 security/selinux/ss/avtab.c node->key.target_class < cur->key.target_class) key 290 security/selinux/ss/avtab.c if (temp->key.specified & AVTAB_XPERMS) key 395 security/selinux/ss/avtab.c struct avtab_key key; key 402 security/selinux/ss/avtab.c memset(&key, 0, sizeof(struct avtab_key)); key 425 security/selinux/ss/avtab.c key.source_type = (u16)val; key 426 security/selinux/ss/avtab.c if (key.source_type != val) { key 431 security/selinux/ss/avtab.c key.target_type = (u16)val; key 432 security/selinux/ss/avtab.c if (key.target_type != val) { key 437 security/selinux/ss/avtab.c key.target_class = (u16)val; key 438 security/selinux/ss/avtab.c if (key.target_class != val) { key 462 security/selinux/ss/avtab.c key.specified = spec_order[i] | enabled; key 464 security/selinux/ss/avtab.c rc = insertf(a, &key, &datum, p); key 485 security/selinux/ss/avtab.c key.source_type = le16_to_cpu(buf16[items++]); key 486 security/selinux/ss/avtab.c key.target_type = le16_to_cpu(buf16[items++]); key 487 security/selinux/ss/avtab.c key.target_class = le16_to_cpu(buf16[items++]); key 488 security/selinux/ss/avtab.c key.specified = le16_to_cpu(buf16[items++]); key 490 security/selinux/ss/avtab.c if (!policydb_type_isvalid(pol, key.source_type) || key 491 security/selinux/ss/avtab.c !policydb_type_isvalid(pol, key.target_type) || key 492 security/selinux/ss/avtab.c !policydb_class_isvalid(pol, key.target_class)) { key 499 security/selinux/ss/avtab.c if (key.specified & spec_order[i]) key 508 security/selinux/ss/avtab.c (key.specified & AVTAB_XPERMS)) { key 513 security/selinux/ss/avtab.c } else if (key.specified & AVTAB_XPERMS) { key 541 security/selinux/ss/avtab.c if ((key.specified & AVTAB_TYPE) && key 546 security/selinux/ss/avtab.c return insertf(a, &key, &datum, p); key 606 security/selinux/ss/avtab.c buf16[0] = cpu_to_le16(cur->key.source_type); key 607 security/selinux/ss/avtab.c buf16[1] = cpu_to_le16(cur->key.target_type); key 608 security/selinux/ss/avtab.c buf16[2] = cpu_to_le16(cur->key.target_class); key 609 security/selinux/ss/avtab.c buf16[3] = cpu_to_le16(cur->key.specified); key 614 security/selinux/ss/avtab.c if (cur->key.specified & AVTAB_XPERMS) { key 78 security/selinux/ss/avtab.h struct avtab_key key; key 106 security/selinux/ss/avtab.h struct avtab_node *avtab_insert_nonunique(struct avtab *h, struct avtab_key *key, key 109 security/selinux/ss/avtab.h struct avtab_node *avtab_search_node(struct avtab *h, struct avtab_key *key); key 101 security/selinux/ss/conditional.c cur->node->key.specified &= ~AVTAB_ENABLED; key 103 security/selinux/ss/conditional.c cur->node->key.specified |= AVTAB_ENABLED; key 109 security/selinux/ss/conditional.c cur->node->key.specified &= ~AVTAB_ENABLED; key 111 security/selinux/ss/conditional.c cur->node->key.specified |= AVTAB_ENABLED; key 185 security/selinux/ss/conditional.c int cond_destroy_bool(void *key, void *datum, void *p) key 187 security/selinux/ss/conditional.c kfree(key); key 192 security/selinux/ss/conditional.c int cond_index_bool(void *key, void *datum, void *datap) key 203 security/selinux/ss/conditional.c p->sym_val_to_name[SYM_BOOLS][booldatum->value - 1] = key; key 218 security/selinux/ss/conditional.c char *key = NULL; key 244 security/selinux/ss/conditional.c key = kmalloc(len + 1, GFP_KERNEL); key 245 security/selinux/ss/conditional.c if (!key) key 247 security/selinux/ss/conditional.c rc = next_entry(key, fp, len); key 250 security/selinux/ss/conditional.c key[len] = '\0'; key 251 security/selinux/ss/conditional.c rc = hashtab_insert(h, key, booldatum); key 257 security/selinux/ss/conditional.c cond_destroy_bool(key, booldatum, NULL); key 491 security/selinux/ss/conditional.c char *key = vkey; key 499 security/selinux/ss/conditional.c len = strlen(key); key 506 security/selinux/ss/conditional.c rc = put_entry(key, 1, len, fp); key 613 security/selinux/ss/conditional.c void cond_compute_xperms(struct avtab *ctab, struct avtab_key *key, key 618 security/selinux/ss/conditional.c if (!ctab || !key || !xpermd) key 621 security/selinux/ss/conditional.c for (node = avtab_search_node(ctab, key); node; key 622 security/selinux/ss/conditional.c node = avtab_search_node_next(node, key->specified)) { key 623 security/selinux/ss/conditional.c if (node->key.specified & AVTAB_ENABLED) key 632 security/selinux/ss/conditional.c void cond_compute_av(struct avtab *ctab, struct avtab_key *key, key 637 security/selinux/ss/conditional.c if (!ctab || !key || !avd) key 640 security/selinux/ss/conditional.c for (node = avtab_search_node(ctab, key); node; key 641 security/selinux/ss/conditional.c node = avtab_search_node_next(node, key->specified)) { key 643 security/selinux/ss/conditional.c (node->key.specified & (AVTAB_ALLOWED|AVTAB_ENABLED))) key 646 security/selinux/ss/conditional.c (node->key.specified & (AVTAB_AUDITDENY|AVTAB_ENABLED))) key 654 security/selinux/ss/conditional.c (node->key.specified & (AVTAB_AUDITALLOW|AVTAB_ENABLED))) key 656 security/selinux/ss/conditional.c if (xperms && (node->key.specified & AVTAB_ENABLED) && key 657 security/selinux/ss/conditional.c (node->key.specified & AVTAB_XPERMS)) key 65 security/selinux/ss/conditional.h int cond_destroy_bool(void *key, void *datum, void *p); key 67 security/selinux/ss/conditional.h int cond_index_bool(void *key, void *datum, void *datap); key 71 security/selinux/ss/conditional.h int cond_write_bool(void *key, void *datum, void *ptr); key 74 security/selinux/ss/conditional.h void cond_compute_av(struct avtab *ctab, struct avtab_key *key, key 76 security/selinux/ss/conditional.h void cond_compute_xperms(struct avtab *ctab, struct avtab_key *key, key 15 security/selinux/ss/hashtab.c struct hashtab *hashtab_create(u32 (*hash_value)(struct hashtab *h, const void *key), key 42 security/selinux/ss/hashtab.c int hashtab_insert(struct hashtab *h, void *key, void *datum) key 52 security/selinux/ss/hashtab.c hvalue = h->hash_value(h, key); key 55 security/selinux/ss/hashtab.c while (cur && h->keycmp(h, key, cur->key) > 0) { key 60 security/selinux/ss/hashtab.c if (cur && (h->keycmp(h, key, cur->key) == 0)) key 66 security/selinux/ss/hashtab.c newnode->key = key; key 80 security/selinux/ss/hashtab.c void *hashtab_search(struct hashtab *h, const void *key) key 88 security/selinux/ss/hashtab.c hvalue = h->hash_value(h, key); key 90 security/selinux/ss/hashtab.c while (cur && h->keycmp(h, key, cur->key) > 0) key 93 security/selinux/ss/hashtab.c if (!cur || (h->keycmp(h, key, cur->key) != 0)) key 137 security/selinux/ss/hashtab.c ret = apply(cur->key, cur->datum, args); key 17 security/selinux/ss/hashtab.h void *key; key 26 security/selinux/ss/hashtab.h u32 (*hash_value)(struct hashtab *h, const void *key); key 43 security/selinux/ss/hashtab.h struct hashtab *hashtab_create(u32 (*hash_value)(struct hashtab *h, const void *key), key 185 security/selinux/ss/policydb.c static int perm_destroy(void *key, void *datum, void *p) key 187 security/selinux/ss/policydb.c kfree(key); key 192 security/selinux/ss/policydb.c static int common_destroy(void *key, void *datum, void *p) key 196 security/selinux/ss/policydb.c kfree(key); key 219 security/selinux/ss/policydb.c static int cls_destroy(void *key, void *datum, void *p) key 225 security/selinux/ss/policydb.c kfree(key); key 261 security/selinux/ss/policydb.c static int role_destroy(void *key, void *datum, void *p) key 265 security/selinux/ss/policydb.c kfree(key); key 275 security/selinux/ss/policydb.c static int type_destroy(void *key, void *datum, void *p) key 277 security/selinux/ss/policydb.c kfree(key); key 282 security/selinux/ss/policydb.c static int user_destroy(void *key, void *datum, void *p) key 286 security/selinux/ss/policydb.c kfree(key); key 298 security/selinux/ss/policydb.c static int sens_destroy(void *key, void *datum, void *p) key 302 security/selinux/ss/policydb.c kfree(key); key 313 security/selinux/ss/policydb.c static int cat_destroy(void *key, void *datum, void *p) key 315 security/selinux/ss/policydb.c kfree(key); key 320 security/selinux/ss/policydb.c static int (*destroy_f[SYM_NUM]) (void *key, void *datum, void *datap) = key 332 security/selinux/ss/policydb.c static int filenametr_destroy(void *key, void *datum, void *p) key 334 security/selinux/ss/policydb.c struct filename_trans *ft = key; key 337 security/selinux/ss/policydb.c kfree(key); key 343 security/selinux/ss/policydb.c static int range_tr_destroy(void *key, void *datum, void *p) key 347 security/selinux/ss/policydb.c kfree(key); key 373 security/selinux/ss/policydb.c char *key = NULL; key 387 security/selinux/ss/policydb.c key = kstrdup(OBJECT_R, GFP_KERNEL); key 388 security/selinux/ss/policydb.c if (!key) key 391 security/selinux/ss/policydb.c rc = hashtab_insert(p->p_roles.table, key, role); key 397 security/selinux/ss/policydb.c kfree(key); key 441 security/selinux/ss/policydb.c const struct range_trans *key = k; key 443 security/selinux/ss/policydb.c return (key->source_type + (key->target_type << 3) + key 444 security/selinux/ss/policydb.c (key->target_class << 5)) & (h->size - 1); key 530 security/selinux/ss/policydb.c static int common_index(void *key, void *datum, void *datap) key 540 security/selinux/ss/policydb.c p->sym_val_to_name[SYM_COMMONS][comdatum->value - 1] = key; key 545 security/selinux/ss/policydb.c static int class_index(void *key, void *datum, void *datap) key 555 security/selinux/ss/policydb.c p->sym_val_to_name[SYM_CLASSES][cladatum->value - 1] = key; key 560 security/selinux/ss/policydb.c static int role_index(void *key, void *datum, void *datap) key 572 security/selinux/ss/policydb.c p->sym_val_to_name[SYM_ROLES][role->value - 1] = key; key 577 security/selinux/ss/policydb.c static int type_index(void *key, void *datum, void *datap) key 590 security/selinux/ss/policydb.c p->sym_val_to_name[SYM_TYPES][typdatum->value - 1] = key; key 597 security/selinux/ss/policydb.c static int user_index(void *key, void *datum, void *datap) key 609 security/selinux/ss/policydb.c p->sym_val_to_name[SYM_USERS][usrdatum->value - 1] = key; key 614 security/selinux/ss/policydb.c static int sens_index(void *key, void *datum, void *datap) key 627 security/selinux/ss/policydb.c p->sym_val_to_name[SYM_LEVELS][levdatum->level->sens - 1] = key; key 633 security/selinux/ss/policydb.c static int cat_index(void *key, void *datum, void *datap) key 645 security/selinux/ss/policydb.c p->sym_val_to_name[SYM_CATS][catdatum->value - 1] = key; key 651 security/selinux/ss/policydb.c static int (*index_f[SYM_NUM]) (void *key, void *datum, void *datap) = key 1084 security/selinux/ss/policydb.c char *key = NULL; key 1101 security/selinux/ss/policydb.c rc = str_read(&key, GFP_KERNEL, fp, len); key 1105 security/selinux/ss/policydb.c rc = hashtab_insert(h, key, perdatum); key 1111 security/selinux/ss/policydb.c perm_destroy(key, perdatum, NULL); key 1117 security/selinux/ss/policydb.c char *key = NULL; key 1140 security/selinux/ss/policydb.c rc = str_read(&key, GFP_KERNEL, fp, len); key 1150 security/selinux/ss/policydb.c rc = hashtab_insert(h, key, comdatum); key 1155 security/selinux/ss/policydb.c common_destroy(key, comdatum, NULL); key 1282 security/selinux/ss/policydb.c char *key = NULL; key 1308 security/selinux/ss/policydb.c rc = str_read(&key, GFP_KERNEL, fp, len); key 1364 security/selinux/ss/policydb.c rc = hashtab_insert(h, key, cladatum); key 1370 security/selinux/ss/policydb.c cls_destroy(key, cladatum, NULL); key 1376 security/selinux/ss/policydb.c char *key = NULL; key 1398 security/selinux/ss/policydb.c rc = str_read(&key, GFP_KERNEL, fp, len); key 1410 security/selinux/ss/policydb.c if (strcmp(key, OBJECT_R) == 0) { key 1421 security/selinux/ss/policydb.c rc = hashtab_insert(h, key, role); key 1426 security/selinux/ss/policydb.c role_destroy(key, role, NULL); key 1432 security/selinux/ss/policydb.c char *key = NULL; key 1464 security/selinux/ss/policydb.c rc = str_read(&key, GFP_KERNEL, fp, len); key 1468 security/selinux/ss/policydb.c rc = hashtab_insert(h, key, typdatum); key 1473 security/selinux/ss/policydb.c type_destroy(key, typdatum, NULL); key 1506 security/selinux/ss/policydb.c char *key = NULL; key 1528 security/selinux/ss/policydb.c rc = str_read(&key, GFP_KERNEL, fp, len); key 1545 security/selinux/ss/policydb.c rc = hashtab_insert(h, key, usrdatum); key 1550 security/selinux/ss/policydb.c user_destroy(key, usrdatum, NULL); key 1556 security/selinux/ss/policydb.c char *key = NULL; key 1573 security/selinux/ss/policydb.c rc = str_read(&key, GFP_ATOMIC, fp, len); key 1586 security/selinux/ss/policydb.c rc = hashtab_insert(h, key, levdatum); key 1591 security/selinux/ss/policydb.c sens_destroy(key, levdatum, NULL); key 1597 security/selinux/ss/policydb.c char *key = NULL; key 1615 security/selinux/ss/policydb.c rc = str_read(&key, GFP_ATOMIC, fp, len); key 1619 security/selinux/ss/policydb.c rc = hashtab_insert(h, key, catdatum); key 1624 security/selinux/ss/policydb.c cat_destroy(key, catdatum, NULL); key 1640 security/selinux/ss/policydb.c static int user_bounds_sanity_check(void *key, void *datum, void *datap) key 1654 security/selinux/ss/policydb.c (char *) key); key 1676 security/selinux/ss/policydb.c static int role_bounds_sanity_check(void *key, void *datum, void *datap) key 1690 security/selinux/ss/policydb.c (char *) key); key 1712 security/selinux/ss/policydb.c static int type_bounds_sanity_check(void *key, void *datum, void *datap) key 1723 security/selinux/ss/policydb.c (char *) key); key 1733 security/selinux/ss/policydb.c (char *) key, key 2597 security/selinux/ss/policydb.c char *key = vkey; key 2605 security/selinux/ss/policydb.c len = strlen(key); key 2612 security/selinux/ss/policydb.c rc = put_entry(key, 1, len, fp); key 2625 security/selinux/ss/policydb.c char *key = vkey; key 2633 security/selinux/ss/policydb.c len = strlen(key); key 2641 security/selinux/ss/policydb.c rc = put_entry(key, 1, len, fp); key 2738 security/selinux/ss/policydb.c char *key = vkey; key 2744 security/selinux/ss/policydb.c len = strlen(key); key 2751 security/selinux/ss/policydb.c rc = put_entry(key, 1, len, fp); key 2760 security/selinux/ss/policydb.c char *key = vkey; key 2768 security/selinux/ss/policydb.c len = strlen(key); key 2777 security/selinux/ss/policydb.c rc = put_entry(key, 1, len, fp); key 2855 security/selinux/ss/policydb.c char *key = vkey; key 2866 security/selinux/ss/policydb.c len = strlen(key); key 2889 security/selinux/ss/policydb.c rc = put_entry(key, 1, len, fp); key 2943 security/selinux/ss/policydb.c char *key = vkey; key 2952 security/selinux/ss/policydb.c len = strlen(key); key 2965 security/selinux/ss/policydb.c rc = put_entry(key, 1, len, fp); key 2982 security/selinux/ss/policydb.c char *key = vkey; key 2991 security/selinux/ss/policydb.c len = strlen(key); key 3014 security/selinux/ss/policydb.c rc = put_entry(key, 1, len, fp); key 3023 security/selinux/ss/policydb.c char *key = vkey; key 3032 security/selinux/ss/policydb.c len = strlen(key); key 3043 security/selinux/ss/policydb.c rc = put_entry(key, 1, len, fp); key 3062 security/selinux/ss/policydb.c static int (*write_f[SYM_NUM]) (void *key, void *datum, key 3257 security/selinux/ss/policydb.c static int hashtab_cnt(void *key, void *data, void *ptr) key 3265 security/selinux/ss/policydb.c static int range_write_helper(void *key, void *data, void *ptr) key 3268 security/selinux/ss/policydb.c struct range_trans *rt = key; key 3321 security/selinux/ss/policydb.c static int filename_write_helper(void *key, void *data, void *ptr) key 3324 security/selinux/ss/policydb.c struct filename_trans *ft = key; key 605 security/selinux/ss/services.c if (node->key.specified & AVTAB_XPERMS_ALLOWED) key 661 security/selinux/ss/services.c if (node->key.specified == AVTAB_ALLOWED) key 663 security/selinux/ss/services.c else if (node->key.specified == AVTAB_AUDITALLOW) key 665 security/selinux/ss/services.c else if (node->key.specified == AVTAB_AUDITDENY) key 667 security/selinux/ss/services.c else if (xperms && (node->key.specified & AVTAB_XPERMS)) key 960 security/selinux/ss/services.c if (node->key.specified == AVTAB_XPERMS_ALLOWED) { key 971 security/selinux/ss/services.c } else if (node->key.specified == AVTAB_XPERMS_AUDITALLOW) { key 982 security/selinux/ss/services.c } else if (node->key.specified == AVTAB_XPERMS_DONTAUDIT) { key 1759 security/selinux/ss/services.c if (node->key.specified & AVTAB_ENABLED) { key 12 security/selinux/ss/symtab.c static unsigned int symhash(struct hashtab *h, const void *key) key 19 security/selinux/ss/symtab.c keyp = key; key 4206 security/smack/smack_lsm.c static int smack_key_alloc(struct key *key, const struct cred *cred, key 4211 security/smack/smack_lsm.c key->security = skp; key 4221 security/smack/smack_lsm.c static void smack_key_free(struct key *key) key 4223 security/smack/smack_lsm.c key->security = NULL; key 4238 security/smack/smack_lsm.c struct key *keyp; key 4270 security/smack/smack_lsm.c ad.a.u.key_struct.key = keyp->serial; key 4291 security/smack/smack_lsm.c static int smack_key_getsecurity(struct key *key, char **_buffer) key 4293 security/smack/smack_lsm.c struct smack_known *skp = key->security; key 4297 security/smack/smack_lsm.c if (key->security == NULL) { key 134 security/tomoyo/securityfs_if.c const int key = ((u8 *) file_inode(file)->i_private) key 136 security/tomoyo/securityfs_if.c return tomoyo_open_control(key, file); key 224 security/tomoyo/securityfs_if.c struct dentry *parent, const u8 key) key 226 security/tomoyo/securityfs_if.c securityfs_create_file(name, mode, parent, ((u8 *) NULL) + key, key 92 sound/core/jack.c for (i = 0; i < ARRAY_SIZE(jack->key); i++) { key 98 sound/core/jack.c if (!jack->key[i]) key 99 sound/core/jack.c jack->key[i] = BTN_0 + i; key 101 sound/core/jack.c input_set_capability(jack->input_dev, EV_KEY, jack->key[i]); key 320 sound/core/jack.c int key = fls(SND_JACK_BTN_0) - fls(type); key 324 sound/core/jack.c if (!keytype || key >= ARRAY_SIZE(jack->key)) key 328 sound/core/jack.c jack->key[key] = keytype; key 358 sound/core/jack.c for (i = 0; i < ARRAY_SIZE(jack->key); i++) { key 362 sound/core/jack.c input_report_key(jack->input_dev, jack->key[i], key 296 sound/drivers/opl3/opl3_midi.c int key = note; key 562 sound/drivers/opl3/opl3_midi.c vp->note = key; key 570 sound/drivers/opl3/opl3_midi.c vp2->note = key; key 194 sound/drivers/opl3/opl3_synth.c if (!memcmp(inst.key, FM_KEY_SBI, 4) || key 195 sound/drivers/opl3/opl3_synth.c !memcmp(inst.key, FM_KEY_2OP, 4)) key 197 sound/drivers/opl3/opl3_synth.c else if (!memcmp(inst.key, FM_KEY_4OP, 4)) key 306 sound/drivers/opl3/opl3_synth.c unsigned int key = (prog + bank) % OPL3_PATCH_HASH_SIZE; key 309 sound/drivers/opl3/opl3_synth.c for (patch = opl3->patch_table[key]; patch; patch = patch->next) { key 321 sound/drivers/opl3/opl3_synth.c patch->next = opl3->patch_table[key]; key 322 sound/drivers/opl3/opl3_synth.c opl3->patch_table[key] = patch; key 31 sound/firewire/dice/dice-presonus.c int key, val, model_id; key 36 sound/firewire/dice/dice-presonus.c while (fw_csr_iterator_next(&it, &key, &val)) { key 37 sound/firewire/dice/dice-presonus.c if (key == CSR_MODEL) { key 73 sound/firewire/dice/dice-tcelectronic.c int key, val, model_id; key 78 sound/firewire/dice/dice-tcelectronic.c while (fw_csr_iterator_next(&it, &key, &val)) { key 79 sound/firewire/dice/dice-tcelectronic.c if (key == CSR_MODEL) { key 34 sound/firewire/dice/dice.c int key, val, vendor = -1, model = -1; key 44 sound/firewire/dice/dice.c while (fw_csr_iterator_next(&it, &key, &val)) { key 45 sound/firewire/dice/dice.c switch (key) { key 610 sound/firewire/isight.c int key, value; key 613 sound/firewire/isight.c while (fw_csr_iterator_next(&i, &key, &value)) key 614 sound/firewire/isight.c if (key == CSR_OFFSET) key 32 sound/firewire/motu/motu.c int key, val; key 36 sound/firewire/motu/motu.c while (fw_csr_iterator_next(&it, &key, &val)) { key 37 sound/firewire/motu/motu.c switch (key) { key 128 sound/firewire/oxfw/oxfw.c int key, val; key 165 sound/firewire/oxfw/oxfw.c while (fw_csr_iterator_next(&it, &key, &val)) { key 166 sound/firewire/oxfw/oxfw.c if (key == CSR_VENDOR) key 168 sound/firewire/oxfw/oxfw.c else if (key == CSR_MODEL) key 289 sound/hda/hdac_stream.c int key = (substream->pcm->device << 16) | (substream->number << 2) | key 297 sound/hda/hdac_stream.c if (azx_dev->assigned_key == key) { key 308 sound/hda/hdac_stream.c res->assigned_key = key; key 1200 sound/pci/asihpi/hpi.h u16 hpi_adapter_enable_capability(u16 adapter_index, u16 capability, u32 key); key 425 sound/pci/hda/hda_jack.c snd_jack_set_key(jack->jack, map->type, map->key); key 48 sound/pci/hda/hda_jack.h int key; key 564 sound/pci/hda/hda_local.h const char *snd_hda_get_hint(struct hda_codec *codec, const char *key); key 565 sound/pci/hda/hda_local.h int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key); key 566 sound/pci/hda/hda_local.h int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp); key 569 sound/pci/hda/hda_local.h const char *snd_hda_get_hint(struct hda_codec *codec, const char *key) key 575 sound/pci/hda/hda_local.h int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key) key 581 sound/pci/hda/hda_local.h int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp) key 25 sound/pci/hda/hda_sysfs.c const char *key; key 276 sound/pci/hda/hda_sysfs.c "%s = %s\n", hint->key, hint->val); key 282 sound/pci/hda/hda_sysfs.c static struct hda_hint *get_hint(struct hda_codec *codec, const char *key) key 288 sound/pci/hda/hda_sysfs.c if (!strcmp(hint->key, key)) key 311 sound/pci/hda/hda_sysfs.c char *key, *val; key 320 sound/pci/hda/hda_sysfs.c key = kstrndup_noeol(buf, 1024); key 321 sound/pci/hda/hda_sysfs.c if (!key) key 324 sound/pci/hda/hda_sysfs.c val = strchr(key, '='); key 326 sound/pci/hda/hda_sysfs.c kfree(key); key 331 sound/pci/hda/hda_sysfs.c remove_trail_spaces(key); key 334 sound/pci/hda/hda_sysfs.c hint = get_hint(codec, key); key 337 sound/pci/hda/hda_sysfs.c kfree(hint->key); key 338 sound/pci/hda/hda_sysfs.c hint->key = key; key 348 sound/pci/hda/hda_sysfs.c hint->key = key; key 356 sound/pci/hda/hda_sysfs.c kfree(key); key 421 sound/pci/hda/hda_sysfs.c const char *snd_hda_get_hint(struct hda_codec *codec, const char *key) key 423 sound/pci/hda/hda_sysfs.c struct hda_hint *hint = get_hint(codec, key); key 437 sound/pci/hda/hda_sysfs.c int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key) key 443 sound/pci/hda/hda_sysfs.c p = snd_hda_get_hint(codec, key); key 473 sound/pci/hda/hda_sysfs.c int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp) key 480 sound/pci/hda/hda_sysfs.c p = snd_hda_get_hint(codec, key); key 794 sound/pci/hda/hda_sysfs.c kfree(hint->key); /* we don't need to free hint->val */ key 530 sound/pci/hda/patch_sigmatel.c static inline bool get_int_hint(struct hda_codec *codec, const char *key, key 533 sound/pci/hda/patch_sigmatel.c return !snd_hda_get_int_hint(codec, key, valp); key 28 sound/synth/emux/emux_hwdep.c if (patch.key == GUS_PATCH) key 49 sound/synth/emux/emux_synth.c int i, key, nvoices; key 63 sound/synth/emux/emux_synth.c key = note; /* remember the original note */ key 77 sound/synth/emux/emux_synth.c terminate_note1(emu, key, chan, 0); key 98 sound/synth/emux/emux_synth.c vp->key = key; key 165 sound/synth/emux/emux_synth.c vp->chan == chan && vp->key == note) { key 242 sound/synth/emux/emux_synth.c vp->chan == chan && vp->key == note) { key 374 sound/synth/emux/emux_synth.c vp->key == note) key 54 sound/synth/emux/soundfont.c int bank, int preset, int key); key 58 sound/synth/emux/soundfont.c static int get_index(int bank, int instr, int key); key 133 sound/synth/emux/soundfont.c if (patch.key != SNDRV_OSS_SOUNDFONT_PATCH) { key 134 sound/synth/emux/soundfont.c snd_printk(KERN_ERR "The wrong kind of patch %x\n", patch.key); key 1255 sound/synth/emux/soundfont.c search_first_zone(struct snd_sf_list *sflist, int bank, int preset, int key) key 1260 sound/synth/emux/soundfont.c if ((index = get_index(bank, preset, key)) < 0) key 1288 sound/synth/emux/soundfont.c int key = zp->v.fixkey; key 1294 sound/synth/emux/soundfont.c if (key < 0) key 1295 sound/synth/emux/soundfont.c key = *notep; key 1296 sound/synth/emux/soundfont.c nvoices = search_zones(sflist, &key, vel, key 1300 sound/synth/emux/soundfont.c *notep = key; key 1319 sound/synth/emux/soundfont.c get_index(int bank, int instr, int key) key 1323 sound/synth/emux/soundfont.c index = key + SF_MAX_INSTRUMENTS; key 294 tools/bpf/bpftool/common.c char *get_fdinfo(int fd, const char *key) key 312 tools/bpf/bpftool/common.c if (!strstr(line, key)) key 142 tools/bpf/bpftool/main.h char *get_fdinfo(int fd, const char *key); key 150 tools/bpf/bpftool/map.c struct bpf_map_info *map_info, void *key, key 161 tools/bpf/bpftool/map.c ret = btf_dumper_type(d, map_info->btf_key_type_id, key); key 207 tools/bpf/bpftool/map.c static void print_entry_json(struct bpf_map_info *info, unsigned char *key, key 214 tools/bpf/bpftool/map.c print_hex_data_json(key, info->key_size); key 225 tools/bpf/bpftool/map.c do_dump_btf(&d, info, key, value); key 234 tools/bpf/bpftool/map.c print_hex_data_json(key, info->key_size); key 258 tools/bpf/bpftool/map.c do_dump_btf(&d, info, key, value); key 265 tools/bpf/bpftool/map.c static void print_entry_error(struct bpf_map_info *info, unsigned char *key, key 275 tools/bpf/bpftool/map.c fprint_hex(stdout, key, info->key_size, " "); key 284 tools/bpf/bpftool/map.c static void print_entry_plain(struct bpf_map_info *info, unsigned char *key, key 296 tools/bpf/bpftool/map.c fprint_hex(stdout, key, info->key_size, " "); key 315 tools/bpf/bpftool/map.c fprint_hex(stdout, key, info->key_size, " "); key 373 tools/bpf/bpftool/map.c void *key, void *value, __u32 key_size, __u32 value_size, key 377 tools/bpf/bpftool/map.c if (!key && !value) key 379 tools/bpf/bpftool/map.c p_err("did not find %s", key ? "key" : "value"); key 384 tools/bpf/bpftool/map.c if (!key) { key 392 tools/bpf/bpftool/map.c argv = parse_bytes(argv + 1, "key", key, key_size); key 458 tools/bpf/bpftool/map.c return parse_elem(argv, info, key, NULL, key_size, value_size, key 474 tools/bpf/bpftool/map.c return parse_elem(argv + 1, info, key, value, key_size, key 709 tools/bpf/bpftool/map.c static int dump_map_elem(int fd, void *key, void *value, key 716 tools/bpf/bpftool/map.c if (!bpf_map_lookup_elem(fd, key, value)) { key 718 tools/bpf/bpftool/map.c print_entry_json(map_info, key, value, btf); key 727 tools/bpf/bpftool/map.c do_dump_btf(&d, map_info, key, value); key 729 tools/bpf/bpftool/map.c print_entry_plain(map_info, key, value); key 746 tools/bpf/bpftool/map.c print_hex_data_json(key, map_info->key_size); key 761 tools/bpf/bpftool/map.c print_entry_error(map_info, key, key 771 tools/bpf/bpftool/map.c void *key, *value, *prev_key; key 786 tools/bpf/bpftool/map.c key = malloc(info.key_size); key 788 tools/bpf/bpftool/map.c if (!key || !value) { key 821 tools/bpf/bpftool/map.c err = bpf_map_get_next_key(fd, prev_key, key); key 827 tools/bpf/bpftool/map.c num_elems += dump_map_elem(fd, key, value, &info, btf, btf_wtr); key 828 tools/bpf/bpftool/map.c prev_key = key; key 842 tools/bpf/bpftool/map.c free(key); key 850 tools/bpf/bpftool/map.c static int alloc_key_value(struct bpf_map_info *info, void **key, void **value) key 852 tools/bpf/bpftool/map.c *key = NULL; key 856 tools/bpf/bpftool/map.c *key = malloc(info->key_size); key 857 tools/bpf/bpftool/map.c if (!*key) { key 867 tools/bpf/bpftool/map.c free(*key); key 868 tools/bpf/bpftool/map.c *key = NULL; key 882 tools/bpf/bpftool/map.c void *key, *value; key 892 tools/bpf/bpftool/map.c err = alloc_key_value(&info, &key, &value); key 896 tools/bpf/bpftool/map.c err = parse_elem(argv, &info, key, value, info.key_size, key 901 tools/bpf/bpftool/map.c err = bpf_map_update_elem(fd, key, value, flags); key 910 tools/bpf/bpftool/map.c free(key); key 919 tools/bpf/bpftool/map.c static void print_key_value(struct bpf_map_info *info, void *key, key 933 tools/bpf/bpftool/map.c print_entry_json(info, key, value, btf); key 943 tools/bpf/bpftool/map.c print_entry_plain(info, key, value); key 951 tools/bpf/bpftool/map.c do_dump_btf(&d, info, key, value); key 955 tools/bpf/bpftool/map.c print_entry_plain(info, key, value); key 964 tools/bpf/bpftool/map.c void *key, *value; key 975 tools/bpf/bpftool/map.c err = alloc_key_value(&info, &key, &value); key 979 tools/bpf/bpftool/map.c err = parse_elem(argv, &info, key, NULL, info.key_size, 0, NULL, NULL); key 983 tools/bpf/bpftool/map.c err = bpf_map_lookup_elem(fd, key, value); key 990 tools/bpf/bpftool/map.c fprint_hex(stdout, key, info.key_size, " "); key 1001 tools/bpf/bpftool/map.c print_key_value(&info, key, value); key 1004 tools/bpf/bpftool/map.c free(key); key 1015 tools/bpf/bpftool/map.c void *key, *nextkey; key 1026 tools/bpf/bpftool/map.c key = malloc(info.key_size); key 1028 tools/bpf/bpftool/map.c if (!key || !nextkey) { key 1035 tools/bpf/bpftool/map.c err = parse_elem(argv, &info, key, NULL, info.key_size, 0, key 1040 tools/bpf/bpftool/map.c free(key); key 1041 tools/bpf/bpftool/map.c key = NULL; key 1044 tools/bpf/bpftool/map.c err = bpf_map_get_next_key(fd, key, nextkey); key 1052 tools/bpf/bpftool/map.c if (key) { key 1054 tools/bpf/bpftool/map.c print_hex_data_json(key, info.key_size); key 1062 tools/bpf/bpftool/map.c if (key) { key 1064 tools/bpf/bpftool/map.c fprint_hex(stdout, key, info.key_size, " "); key 1076 tools/bpf/bpftool/map.c free(key); key 1086 tools/bpf/bpftool/map.c void *key; key 1097 tools/bpf/bpftool/map.c key = malloc(info.key_size); key 1098 tools/bpf/bpftool/map.c if (!key) { key 1104 tools/bpf/bpftool/map.c err = parse_elem(argv, &info, key, NULL, info.key_size, 0, NULL, NULL); key 1108 tools/bpf/bpftool/map.c err = bpf_map_delete_elem(fd, key); key 1113 tools/bpf/bpftool/map.c free(key); key 1226 tools/bpf/bpftool/map.c void *key, *value; key 1237 tools/bpf/bpftool/map.c err = alloc_key_value(&info, &key, &value); key 1241 tools/bpf/bpftool/map.c err = bpf_map_lookup_and_delete_elem(fd, key, value); key 1255 tools/bpf/bpftool/map.c print_key_value(&info, key, value); key 1258 tools/bpf/bpftool/map.c free(key); key 35 tools/bpf/bpftool/map_perf_ring.c int key; key 71 tools/bpf/bpftool/xlated_dumper.c unsigned long key) key 74 tools/bpf/bpftool/xlated_dumper.c .address = key, key 31 tools/bpf/bpftool/xlated_dumper.h struct kernel_sym *kernel_syms_search(struct dump_data *dd, unsigned long key); key 107 tools/hv/hv_kvp_daemon.c char key[HV_KVP_EXCHANGE_MAX_KEY_SIZE]; key 267 tools/hv/hv_kvp_daemon.c static int kvp_key_delete(int pool, const __u8 *key, int key_size) key 283 tools/hv/hv_kvp_daemon.c if (memcmp(key, record[i].key, key_size)) key 298 tools/hv/hv_kvp_daemon.c strcpy(record[j].key, record[k].key); key 310 tools/hv/hv_kvp_daemon.c static int kvp_key_add_or_modify(int pool, const __u8 *key, int key_size, key 332 tools/hv/hv_kvp_daemon.c if (memcmp(key, record[i].key, key_size)) key 357 tools/hv/hv_kvp_daemon.c memcpy(record[i].key, key, key_size); key 364 tools/hv/hv_kvp_daemon.c static int kvp_get_value(int pool, const __u8 *key, int key_size, __u8 *value, key 384 tools/hv/hv_kvp_daemon.c if (memcmp(key, record[i].key, key_size)) key 396 tools/hv/hv_kvp_daemon.c static int kvp_pool_enumerate(int pool, int index, __u8 *key, int key_size, key 411 tools/hv/hv_kvp_daemon.c memcpy(key, record[index].key, key_size); key 1523 tools/hv/hv_kvp_daemon.c hv_msg->body.kvp_set.data.key, key 1532 tools/hv/hv_kvp_daemon.c hv_msg->body.kvp_set.data.key, key 1541 tools/hv/hv_kvp_daemon.c hv_msg->body.kvp_delete.key, key 1561 tools/hv/hv_kvp_daemon.c hv_msg->body.kvp_enum_data.data.key, key 1569 tools/hv/hv_kvp_daemon.c key_name = (char *)hv_msg->body.kvp_enum_data.data.key; key 57 tools/include/linux/hashtable.h #define hash_add(hashtable, node, key) \ key 58 tools/include/linux/hashtable.h hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))]) key 132 tools/include/linux/hashtable.h #define hash_for_each_possible(name, obj, member, key) \ key 133 tools/include/linux/hashtable.h hlist_for_each_entry(obj, &name[hash_min(key, HASH_BITS(name))], member) key 144 tools/include/linux/hashtable.h #define hash_for_each_possible_safe(name, obj, tmp, member, key) \ key 146 tools/include/linux/hashtable.h &name[hash_min(key, HASH_BITS(name))], member) key 70 tools/include/linux/jhash.h static inline u32 jhash(const void *key, u32 length, u32 initval) key 73 tools/include/linux/jhash.h const u8 *k = key; key 391 tools/include/uapi/linux/bpf.h __aligned_u64 key; key 224 tools/include/uapi/linux/pkt_cls.h __u32 key; key 73 tools/include/uapi/linux/tls.h unsigned char key[TLS_CIPHER_AES_GCM_128_KEY_SIZE]; key 357 tools/lib/bpf/bpf.c int bpf_map_update_elem(int fd, const void *key, const void *value, key 364 tools/lib/bpf/bpf.c attr.key = ptr_to_u64(key); key 371 tools/lib/bpf/bpf.c int bpf_map_lookup_elem(int fd, const void *key, void *value) key 377 tools/lib/bpf/bpf.c attr.key = ptr_to_u64(key); key 383 tools/lib/bpf/bpf.c int bpf_map_lookup_elem_flags(int fd, const void *key, void *value, __u64 flags) key 389 tools/lib/bpf/bpf.c attr.key = ptr_to_u64(key); key 396 tools/lib/bpf/bpf.c int bpf_map_lookup_and_delete_elem(int fd, const void *key, void *value) key 402 tools/lib/bpf/bpf.c attr.key = ptr_to_u64(key); key 408 tools/lib/bpf/bpf.c int bpf_map_delete_elem(int fd, const void *key) key 414 tools/lib/bpf/bpf.c attr.key = ptr_to_u64(key); key 419 tools/lib/bpf/bpf.c int bpf_map_get_next_key(int fd, const void *key, void *next_key) key 425 tools/lib/bpf/bpf.c attr.key = ptr_to_u64(key); key 112 tools/lib/bpf/bpf.h LIBBPF_API int bpf_map_update_elem(int fd, const void *key, const void *value, key 115 tools/lib/bpf/bpf.h LIBBPF_API int bpf_map_lookup_elem(int fd, const void *key, void *value); key 116 tools/lib/bpf/bpf.h LIBBPF_API int bpf_map_lookup_elem_flags(int fd, const void *key, void *value, key 118 tools/lib/bpf/bpf.h LIBBPF_API int bpf_map_lookup_and_delete_elem(int fd, const void *key, key 120 tools/lib/bpf/bpf.h LIBBPF_API int bpf_map_delete_elem(int fd, const void *key); key 121 tools/lib/bpf/bpf.h LIBBPF_API int bpf_map_get_next_key(int fd, const void *key, void *next_key); key 701 tools/lib/bpf/btf.c const struct btf_member *key, *value; key 734 tools/lib/bpf/btf.c key = btf_members(container_type); key 735 tools/lib/bpf/btf.c value = key + 1; key 737 tools/lib/bpf/btf.c key_size = btf__resolve_size(btf, key->type); key 761 tools/lib/bpf/btf.c *key_type_id = key->type; key 1370 tools/lib/bpf/btf.c static size_t btf_dedup_identity_hash_fn(const void *key, void *ctx) key 1372 tools/lib/bpf/btf.c return (size_t)key; key 1375 tools/lib/bpf/btf.c static size_t btf_dedup_collision_hash_fn(const void *key, void *ctx) key 88 tools/lib/bpf/btf_dump.c static size_t str_hash_fn(const void *key, void *ctx) key 90 tools/lib/bpf/btf_dump.c const char *s = key; key 106 tools/lib/bpf/hashmap.c h = hash_bits(map->hash_fn(cur->key, map->ctx), new_cap_bits); key 119 tools/lib/bpf/hashmap.c const void *key, size_t hash, key 131 tools/lib/bpf/hashmap.c if (map->equal_fn(cur->key, key, map->ctx)) { key 142 tools/lib/bpf/hashmap.c int hashmap__insert(struct hashmap *map, const void *key, void *value, key 155 tools/lib/bpf/hashmap.c h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); key 157 tools/lib/bpf/hashmap.c hashmap_find_entry(map, key, h, NULL, &entry)) { key 159 tools/lib/bpf/hashmap.c *old_key = entry->key; key 164 tools/lib/bpf/hashmap.c entry->key = key; key 179 tools/lib/bpf/hashmap.c h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); key 186 tools/lib/bpf/hashmap.c entry->key = key; key 194 tools/lib/bpf/hashmap.c bool hashmap__find(const struct hashmap *map, const void *key, void **value) key 199 tools/lib/bpf/hashmap.c h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); key 200 tools/lib/bpf/hashmap.c if (!hashmap_find_entry(map, key, h, NULL, &entry)) key 208 tools/lib/bpf/hashmap.c bool hashmap__delete(struct hashmap *map, const void *key, key 214 tools/lib/bpf/hashmap.c h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); key 215 tools/lib/bpf/hashmap.c if (!hashmap_find_entry(map, key, h, &pprev, &entry)) key 219 tools/lib/bpf/hashmap.c *old_key = entry->key; key 26 tools/lib/bpf/hashmap.h typedef size_t (*hashmap_hash_fn)(const void *key, void *ctx); key 30 tools/lib/bpf/hashmap.h const void *key; key 95 tools/lib/bpf/hashmap.h int hashmap__insert(struct hashmap *map, const void *key, void *value, key 100 tools/lib/bpf/hashmap.h const void *key, void *value) key 102 tools/lib/bpf/hashmap.h return hashmap__insert(map, key, value, HASHMAP_ADD, NULL, NULL); key 106 tools/lib/bpf/hashmap.h const void *key, void *value, key 109 tools/lib/bpf/hashmap.h return hashmap__insert(map, key, value, HASHMAP_SET, key 114 tools/lib/bpf/hashmap.h const void *key, void *value, key 117 tools/lib/bpf/hashmap.h return hashmap__insert(map, key, value, HASHMAP_UPDATE, key 122 tools/lib/bpf/hashmap.h const void *key, void *value) key 124 tools/lib/bpf/hashmap.h return hashmap__insert(map, key, value, HASHMAP_APPEND, NULL, NULL); key 127 tools/lib/bpf/hashmap.h bool hashmap__delete(struct hashmap *map, const void *key, key 130 tools/lib/bpf/hashmap.h bool hashmap__find(const struct hashmap *map, const void *key, void **value); key 168 tools/lib/bpf/hashmap.h if (map->equal_fn(cur->key, (_key), map->ctx)) key 176 tools/lib/bpf/hashmap.h if (map->equal_fn(cur->key, (_key), map->ctx)) key 2941 tools/lib/bpf/libbpf.c static size_t bpf_core_hash_fn(const void *key, void *ctx) key 2943 tools/lib/bpf/libbpf.c return (size_t)key; key 31 tools/lib/lockdep/include/liblockdep/common.h struct lock_class_key *key; key 41 tools/lib/lockdep/include/liblockdep/common.h struct lock_class_key *key, int subclass); key 48 tools/lib/lockdep/include/liblockdep/common.h void lockdep_register_key(struct lock_class_key *key); key 49 tools/lib/lockdep/include/liblockdep/common.h void lockdep_unregister_key(struct lock_class_key *key); key 53 tools/lib/lockdep/include/liblockdep/common.h { .name = (_name), .key = (void *)(_key), } key 10 tools/lib/lockdep/include/liblockdep/mutex.h struct lock_class_key key; key 24 tools/lib/lockdep/include/liblockdep/mutex.h struct lock_class_key *key, key 27 tools/lib/lockdep/include/liblockdep/mutex.h lockdep_init_map(&lock->dep_map, name, key, 0); key 33 tools/lib/lockdep/include/liblockdep/mutex.h lockdep_register_key(&(mutex)->key); \ key 34 tools/lib/lockdep/include/liblockdep/mutex.h __mutex_init((mutex), #mutex, &(mutex)->key, (mutexattr)); \ key 58 tools/lib/lockdep/include/liblockdep/mutex.h lockdep_unregister_key(&lock->key); key 23 tools/lib/lockdep/include/liblockdep/rwlock.h struct lock_class_key *key, key 26 tools/lib/lockdep/include/liblockdep/rwlock.h lockdep_init_map(&lock->dep_map, name, key, 0); key 32 tools/lib/lockdep/preload.c struct lock_class_key key; key 200 tools/lib/lockdep/preload.c lockdep_init_map(&l->dep_map, l->name, &l->key, 0); key 202 tools/lib/traceevent/event-parse.c struct tep_cmdline key; key 210 tools/lib/traceevent/event-parse.c key.pid = pid; key 212 tools/lib/traceevent/event-parse.c comm = bsearch(&key, tep->cmdlines, tep->cmdline_count, key 231 tools/lib/traceevent/event-parse.c struct tep_cmdline key; key 239 tools/lib/traceevent/event-parse.c key.pid = pid; key 241 tools/lib/traceevent/event-parse.c comm = bsearch(&key, tep->cmdlines, tep->cmdline_count, key 259 tools/lib/traceevent/event-parse.c struct tep_cmdline key; key 267 tools/lib/traceevent/event-parse.c key.pid = pid; key 269 tools/lib/traceevent/event-parse.c cmdline = bsearch(&key, tep->cmdlines, tep->cmdline_count, key 294 tools/lib/traceevent/event-parse.c key.comm = strdup(comm); key 295 tools/lib/traceevent/event-parse.c if (!key.comm) { key 302 tools/lib/traceevent/event-parse.c tep->cmdlines[0] = key; key 308 tools/lib/traceevent/event-parse.c cmdline = bsearch(&key, tep->cmdlines, tep->cmdline_count - 1, key 319 tools/lib/traceevent/event-parse.c if (key.pid > tep->cmdlines[tep->cmdline_count - 1].pid) { key 320 tools/lib/traceevent/event-parse.c tep->cmdlines[tep->cmdline_count++] = key; key 326 tools/lib/traceevent/event-parse.c *cmdline = key; key 486 tools/lib/traceevent/event-parse.c struct func_map key; key 491 tools/lib/traceevent/event-parse.c key.addr = addr; key 493 tools/lib/traceevent/event-parse.c func = bsearch(&key, tep->func_map, tep->func_count, key 732 tools/lib/traceevent/event-parse.c struct printk_map key; key 737 tools/lib/traceevent/event-parse.c key.addr = addr; key 739 tools/lib/traceevent/event-parse.c printk = bsearch(&key, tep->printk_map, tep->printk_count, key 3541 tools/lib/traceevent/event-parse.c struct tep_event key; key 3542 tools/lib/traceevent/event-parse.c struct tep_event *pkey = &key; key 3548 tools/lib/traceevent/event-parse.c key.id = id; key 114 tools/lib/traceevent/parse-filter.c struct tep_filter_type key; key 116 tools/lib/traceevent/parse-filter.c key.event_id = id; key 118 tools/lib/traceevent/parse-filter.c filter_type = bsearch(&key, filter->event_filters, key 39 tools/perf/arch/powerpc/util/kvm-stat.c struct event_key *key) key 41 tools/perf/arch/powerpc/util/kvm-stat.c key->info = 0; key 42 tools/perf/arch/powerpc/util/kvm-stat.c key->key = perf_evsel__intval(evsel, sample, "req"); key 62 tools/perf/arch/powerpc/util/kvm-stat.c struct event_key *key __maybe_unused) key 68 tools/perf/arch/powerpc/util/kvm-stat.c struct perf_sample *sample, struct event_key *key) key 71 tools/perf/arch/powerpc/util/kvm-stat.c hcall_event_get_key(evsel, sample, key); key 78 tools/perf/arch/powerpc/util/kvm-stat.c struct event_key *key, key 81 tools/perf/arch/powerpc/util/kvm-stat.c const char *hcall_reason = get_hcall_exit_reason(key->key); key 29 tools/perf/arch/s390/util/kvm-stat.c struct event_key *key) key 34 tools/perf/arch/s390/util/kvm-stat.c key->key = icpt_insn_decoder(insn); key 35 tools/perf/arch/s390/util/kvm-stat.c key->exit_reasons = sie_icpt_insn_codes; key 40 tools/perf/arch/s390/util/kvm-stat.c struct event_key *key) key 42 tools/perf/arch/s390/util/kvm-stat.c key->key = perf_evsel__intval(evsel, sample, "order_code"); key 43 tools/perf/arch/s390/util/kvm-stat.c key->exit_reasons = sie_sigp_order_codes; key 48 tools/perf/arch/s390/util/kvm-stat.c struct event_key *key) key 50 tools/perf/arch/s390/util/kvm-stat.c key->key = perf_evsel__intval(evsel, sample, "code"); key 51 tools/perf/arch/s390/util/kvm-stat.c key->exit_reasons = sie_diagnose_codes; key 56 tools/perf/arch/s390/util/kvm-stat.c struct event_key *key) key 58 tools/perf/arch/s390/util/kvm-stat.c key->key = perf_evsel__intval(evsel, sample, "code"); key 59 tools/perf/arch/s390/util/kvm-stat.c key->exit_reasons = sie_icpt_prog_codes; key 32 tools/perf/arch/x86/util/kvm-stat.c struct event_key *key) key 34 tools/perf/arch/x86/util/kvm-stat.c key->key = perf_evsel__intval(evsel, sample, "gpa"); key 35 tools/perf/arch/x86/util/kvm-stat.c key->info = perf_evsel__intval(evsel, sample, "type"); key 43 tools/perf/arch/x86/util/kvm-stat.c struct perf_sample *sample, struct event_key *key) key 52 tools/perf/arch/x86/util/kvm-stat.c mmio_event_get_key(evsel, sample, key); key 60 tools/perf/arch/x86/util/kvm-stat.c struct event_key *key) key 69 tools/perf/arch/x86/util/kvm-stat.c mmio_event_get_key(evsel, sample, key); key 77 tools/perf/arch/x86/util/kvm-stat.c struct event_key *key, key 81 tools/perf/arch/x86/util/kvm-stat.c (unsigned long)key->key, key 82 tools/perf/arch/x86/util/kvm-stat.c key->info == KVM_TRACE_MMIO_WRITE ? "W" : "R"); key 95 tools/perf/arch/x86/util/kvm-stat.c struct event_key *key) key 97 tools/perf/arch/x86/util/kvm-stat.c key->key = perf_evsel__intval(evsel, sample, "port"); key 98 tools/perf/arch/x86/util/kvm-stat.c key->info = perf_evsel__intval(evsel, sample, "rw"); key 103 tools/perf/arch/x86/util/kvm-stat.c struct event_key *key) key 106 tools/perf/arch/x86/util/kvm-stat.c ioport_event_get_key(evsel, sample, key); key 115 tools/perf/arch/x86/util/kvm-stat.c struct event_key *key __maybe_unused) key 121 tools/perf/arch/x86/util/kvm-stat.c struct event_key *key, key 125 tools/perf/arch/x86/util/kvm-stat.c (unsigned long long)key->key, key 126 tools/perf/arch/x86/util/kvm-stat.c key->info ? "POUT" : "PIN"); key 314 tools/perf/builtin-annotate.c int key = K_RIGHT; key 330 tools/perf/builtin-annotate.c if (key == K_LEFT) key 357 tools/perf/builtin-annotate.c key = hist_entry__tui_annotate(he, evsel, NULL, &ann->opts); key 359 tools/perf/builtin-annotate.c switch (key) { key 2360 tools/perf/builtin-c2c.c int key = -1; key 2389 tools/perf/builtin-c2c.c key = hist_browser__run(browser, "? - help", true); key 2391 tools/perf/builtin-c2c.c switch (key) { key 2441 tools/perf/builtin-c2c.c int key = -1; key 2458 tools/perf/builtin-c2c.c key = hist_browser__run(browser, "? - help", true); key 2460 tools/perf/builtin-c2c.c switch (key) { key 216 tools/perf/builtin-kmem.c struct alloc_stat key = { .ptr = ptr, .call_site = call_site }; key 224 tools/perf/builtin-kmem.c cmp = sort_fn(&key, data); key 403 tools/perf/builtin-kmem.c struct alloc_func key, *caller; key 410 tools/perf/builtin-kmem.c key.start = key.end = node->ip; key 411 tools/perf/builtin-kmem.c caller = bsearch(&key, alloc_func_list, nr_alloc_funcs, key 412 tools/perf/builtin-kmem.c sizeof(key), callcmp); key 723 tools/perf/builtin-kmem.c struct gfp_flag key = { key 728 tools/perf/builtin-kmem.c gfp = bsearch(&key, gfps, nr_gfps, sizeof(*gfps), gfpcmp); key 747 tools/perf/builtin-kmem.c struct gfp_flag key = { key 751 tools/perf/builtin-kmem.c if (bsearch(&key, gfps, nr_gfps, sizeof(*gfps), gfpcmp)) key 68 tools/perf/builtin-kvm.c struct event_key *key) key 70 tools/perf/builtin-kvm.c key->info = 0; key 71 tools/perf/builtin-kvm.c key->key = perf_evsel__intval(evsel, sample, kvm_exit_reason); key 80 tools/perf/builtin-kvm.c struct perf_sample *sample, struct event_key *key) key 83 tools/perf/builtin-kvm.c exit_event_get_key(evsel, sample, key); key 97 tools/perf/builtin-kvm.c struct event_key *key __maybe_unused) key 118 tools/perf/builtin-kvm.c struct event_key *key, key 121 tools/perf/builtin-kvm.c const char *exit_reason = get_exit_reason(kvm, key->exit_reasons, key 122 tools/perf/builtin-kvm.c key->key); key 180 tools/perf/builtin-kvm.c static int kvm_events_hash_fn(u64 key) key 182 tools/perf/builtin-kvm.c return key & (EVENTS_CACHE_SIZE - 1); key 210 tools/perf/builtin-kvm.c static struct kvm_event *kvm_alloc_init_event(struct event_key *key) key 220 tools/perf/builtin-kvm.c event->key = *key; key 226 tools/perf/builtin-kvm.c struct event_key *key) key 231 tools/perf/builtin-kvm.c BUG_ON(key->key == INVALID_KEY); key 233 tools/perf/builtin-kvm.c head = &kvm->kvm_events_cache[kvm_events_hash_fn(key->key)]; key 235 tools/perf/builtin-kvm.c if (event->key.key == key->key && event->key.info == key->info) key 239 tools/perf/builtin-kvm.c event = kvm_alloc_init_event(key); key 249 tools/perf/builtin-kvm.c struct event_key *key, u64 timestamp) key 253 tools/perf/builtin-kvm.c if (key->key != INVALID_KEY) key 254 tools/perf/builtin-kvm.c event = find_create_kvm_event(kvm, key); key 297 tools/perf/builtin-kvm.c struct event_key *key) key 308 tools/perf/builtin-kvm.c child_ops->get_key(evsel, sample, key); key 318 tools/perf/builtin-kvm.c struct event_key *key, key 323 tools/perf/builtin-kvm.c if (key->key != INVALID_KEY) key 324 tools/perf/builtin-kvm.c event = find_create_kvm_event(kvm, key); key 344 tools/perf/builtin-kvm.c struct event_key *key, key 369 tools/perf/builtin-kvm.c if (!event && key->key == INVALID_KEY) key 373 tools/perf/builtin-kvm.c event = find_create_kvm_event(kvm, key); key 392 tools/perf/builtin-kvm.c kvm->events_ops->decode_key(kvm, &event->key, decode); key 432 tools/perf/builtin-kvm.c struct event_key key = { .key = INVALID_KEY, key 444 tools/perf/builtin-kvm.c if (kvm->events_ops->is_begin_event(evsel, sample, &key)) key 445 tools/perf/builtin-kvm.c return handle_begin_event(kvm, vcpu_record, &key, sample->time); key 447 tools/perf/builtin-kvm.c if (is_child_event(kvm, evsel, sample, &key)) key 448 tools/perf/builtin-kvm.c return handle_child_event(kvm, vcpu_record, &key, sample); key 450 tools/perf/builtin-kvm.c if (kvm->events_ops->is_end_event(evsel, sample, &key)) key 451 tools/perf/builtin-kvm.c return handle_end_event(kvm, vcpu_record, &key, sample); key 498 tools/perf/builtin-kvm.c kvm->compare = keys[i].key; key 637 tools/perf/builtin-kvm.c kvm->events_ops->decode_key(kvm, &event->key, decode); key 43 tools/perf/builtin-lock.c #define __lockhashfn(key) hash_long((unsigned long)key, LOCKHASH_BITS) key 44 tools/perf/builtin-lock.c #define lockhashentry(key) (lockhash_table + __lockhashfn((key))) key 242 tools/perf/builtin-lock.c int (*key)(struct lock_stat*, struct lock_stat*); key 272 tools/perf/builtin-lock.c compare = keys[i].key; key 1324 tools/perf/builtin-report.c callchain_param.key = CCKEY_ADDRESS; key 964 tools/perf/builtin-sched.c struct work_atoms key = { .thread = thread }; key 972 tools/perf/builtin-sched.c cmp = thread_lat_cmp(sort_list, &key, atoms); key 2882 tools/perf/builtin-trace.c int key = trace->ev_qualifier_ids.entries[i]; key 2885 tools/perf/builtin-trace.c trace__init_bpf_map_syscall_args(trace, key, &value); key 2886 tools/perf/builtin-trace.c trace__init_syscall_bpf_progs(trace, key); key 2889 tools/perf/builtin-trace.c err = bpf_map_update_elem(fd, &key, &value, BPF_EXIST); key 2903 tools/perf/builtin-trace.c int err = 0, key; key 2905 tools/perf/builtin-trace.c for (key = 0; key < trace->sctbl->syscalls.nr_entries; ++key) { key 2907 tools/perf/builtin-trace.c trace__init_bpf_map_syscall_args(trace, key, &value); key 2909 tools/perf/builtin-trace.c err = bpf_map_update_elem(fd, &key, &value, BPF_ANY); key 3019 tools/perf/builtin-trace.c int err = 0, key; key 3021 tools/perf/builtin-trace.c for (key = 0; key < trace->sctbl->syscalls.nr_entries; ++key) { key 3024 tools/perf/builtin-trace.c if (!trace__syscall_enabled(trace, key)) key 3027 tools/perf/builtin-trace.c trace__init_syscall_bpf_progs(trace, key); key 3030 tools/perf/builtin-trace.c prog_fd = trace__bpf_prog_sys_enter_fd(trace, key); key 3031 tools/perf/builtin-trace.c err = bpf_map_update_elem(map_enter_fd, &key, &prog_fd, BPF_ANY); key 3034 tools/perf/builtin-trace.c prog_fd = trace__bpf_prog_sys_exit_fd(trace, key); key 3035 tools/perf/builtin-trace.c err = bpf_map_update_elem(map_exit_fd, &key, &prog_fd, BPF_ANY); key 3068 tools/perf/builtin-trace.c for (key = 0; key < trace->sctbl->syscalls.nr_entries; ++key) { key 3069 tools/perf/builtin-trace.c struct syscall *sc = trace__syscall_info(trace, NULL, key); key 3098 tools/perf/builtin-trace.c err = bpf_map_update_elem(map_enter_fd, &key, &prog_fd, BPF_ANY); key 86 tools/perf/examples/bpf/augmented_raw_syscalls.c int key = 0; key 87 tools/perf/examples/bpf/augmented_raw_syscalls.c return bpf_map_lookup_elem(&augmented_args_tmp, &key); key 29 tools/perf/include/bpf/bpf.h type_key key; \ key 45 tools/perf/include/bpf/bpf.h static int (*bpf_map_update_elem)(struct bpf_map *map, void *key, void *value, u64 flags) = (void *)BPF_FUNC_map_update_elem; key 46 tools/perf/include/bpf/bpf.h static void *(*bpf_map_lookup_elem)(struct bpf_map *map, void *key) = (void *)BPF_FUNC_map_lookup_elem; key 15 tools/perf/tests/bpf-script-example.c static void *(*bpf_map_lookup_elem)(void *map, void *key) = key 17 tools/perf/tests/bpf-script-example.c static void *(*bpf_map_update_elem)(void *map, void *key, void *value, int flags) = key 15 tools/perf/tests/bpf-script-test-relocation.c static void *(*bpf_map_lookup_elem)(void *map, void *key) = key 17 tools/perf/tests/bpf-script-test-relocation.c static void *(*bpf_map_update_elem)(void *map, void *key, void *value, int flags) = key 40 tools/perf/tests/bpf-script-test-relocation.c int key = 0; key 47 tools/perf/tests/bpf-script-test-relocation.c bpf_map_update_elem(&this_is_a_global_val, &key, &value, 0); key 215 tools/perf/ui/browser.c int key = 0, err; key 226 tools/perf/ui/browser.c while ((key = ui__question_window("Warning!", text, key 233 tools/perf/ui/browser.c return key; key 238 tools/perf/ui/browser.c int key; key 240 tools/perf/ui/browser.c while ((key = ui__help_window(text)) == K_RESIZE) key 243 tools/perf/ui/browser.c return key; key 248 tools/perf/ui/browser.c int key; key 250 tools/perf/ui/browser.c while ((key = ui__dialog_yesno(text)) == K_RESIZE) key 253 tools/perf/ui/browser.c return key == K_ENTER || toupper(key) == 'Y'; key 388 tools/perf/ui/browser.c int err, key; key 400 tools/perf/ui/browser.c key = ui__getch(delay_secs); key 402 tools/perf/ui/browser.c if (key == K_RESIZE) { key 411 tools/perf/ui/browser.c if (key == K_DOWN || key == K_UP || key 412 tools/perf/ui/browser.c (browser->columns && (key == K_LEFT || key == K_RIGHT)) || key 413 tools/perf/ui/browser.c key == K_PGDN || key == K_PGUP || key 414 tools/perf/ui/browser.c key == K_HOME || key == K_END || key 415 tools/perf/ui/browser.c key == ' ') { key 419 tools/perf/ui/browser.c return key; key 422 tools/perf/ui/browser.c switch (key) { key 492 tools/perf/ui/browser.c return key; key 671 tools/perf/ui/browsers/annotate.c int key; key 687 tools/perf/ui/browsers/annotate.c key = ui_browser__run(&browser->b, delay_secs); key 700 tools/perf/ui/browsers/annotate.c switch (key) { key 852 tools/perf/ui/browsers/annotate.c switch_percent_type(browser->opts, key == 'b'); key 870 tools/perf/ui/browsers/annotate.c return key; key 34 tools/perf/ui/browsers/header.c int key; key 47 tools/perf/ui/browsers/header.c key = ui_browser__run(menu, 0); key 49 tools/perf/ui/browsers/header.c switch (key) { key 69 tools/perf/ui/browsers/header.c key = -1; key 79 tools/perf/ui/browsers/header.c return key; key 629 tools/perf/ui/browsers/hists.c int key; key 643 tools/perf/ui/browsers/hists.c key = ui_browser__run(&browser->b, delay_secs); key 645 tools/perf/ui/browsers/hists.c switch (key) { key 718 tools/perf/ui/browsers/hists.c return key; key 2839 tools/perf/ui/browsers/hists.c int key = -1; key 2914 tools/perf/ui/browsers/hists.c key = hist_browser__run(browser, helpline, key 2922 tools/perf/ui/browsers/hists.c switch (key) { key 2990 tools/perf/ui/browsers/hists.c key = do_switch_data(browser, actions); key 2991 tools/perf/ui/browsers/hists.c if (key == K_SWITCH_INPUT_DATA) key 3050 tools/perf/ui/browsers/hists.c if (key == K_ESC && key 3197 tools/perf/ui/browsers/hists.c key = act->fn(browser, act); key 3198 tools/perf/ui/browsers/hists.c } while (key == 1); key 3200 tools/perf/ui/browsers/hists.c if (key == K_SWITCH_INPUT_DATA) key 3208 tools/perf/ui/browsers/hists.c return key; key 3279 tools/perf/ui/browsers/hists.c int key; key 3286 tools/perf/ui/browsers/hists.c key = ui_browser__run(&menu->b, delay_secs); key 3288 tools/perf/ui/browsers/hists.c switch (key) { key 3313 tools/perf/ui/browsers/hists.c key = perf_evsel__hists_browse(pos, nr_events, help, key 3320 tools/perf/ui/browsers/hists.c switch (key) { key 3358 tools/perf/ui/browsers/hists.c return key; key 77 tools/perf/ui/browsers/map.c int key; key 85 tools/perf/ui/browsers/map.c key = ui_browser__run(&browser->b, 0); key 87 tools/perf/ui/browsers/map.c switch (key) { key 102 tools/perf/ui/browsers/map.c return key; key 136 tools/perf/ui/browsers/scripts.c int key = ui_browser__input_window("perf script command", key 139 tools/perf/ui/browsers/scripts.c if (key != K_ENTER) { key 60 tools/perf/ui/tui/setup.c int err, key; key 83 tools/perf/ui/tui/setup.c key = SLang_getkey(); key 84 tools/perf/ui/tui/setup.c if (key != K_ESC) key 85 tools/perf/ui/tui/setup.c return key; key 95 tools/perf/ui/tui/setup.c SLang_ungetkey(key); key 28 tools/perf/ui/tui/util.c int key; key 34 tools/perf/ui/tui/util.c key = ui_browser__run(menu, 0); key 36 tools/perf/ui/tui/util.c switch (key) { key 39 tools/perf/ui/tui/util.c key = menu->index; key 45 tools/perf/ui/tui/util.c key = -1; key 55 tools/perf/ui/tui/util.c return key; key 74 tools/perf/ui/tui/util.c int x, y, len, key; key 128 tools/perf/ui/tui/util.c key = ui__getch(delay_secs); key 129 tools/perf/ui/tui/util.c while (key != K_TIMER && key != K_ENTER && key != K_ESC) { key 132 tools/perf/ui/tui/util.c if (key == K_BKSPC) { key 140 tools/perf/ui/tui/util.c buf[len] = key; key 142 tools/perf/ui/tui/util.c SLsmg_write_char(key); key 151 tools/perf/ui/tui/util.c key = K_ENTER; key 155 tools/perf/ui/tui/util.c key = ui__getch(delay_secs); key 160 tools/perf/ui/tui/util.c return key; key 245 tools/perf/ui/tui/util.c int key; key 247 tools/perf/ui/tui/util.c key = ui__question_window(title, s, "Press any key...", 0); key 249 tools/perf/ui/tui/util.c return key; key 1448 tools/perf/util/auxtrace.c int auxtrace_cache__add(struct auxtrace_cache *c, u32 key, key 1454 tools/perf/util/auxtrace.c entry->key = key; key 1455 tools/perf/util/auxtrace.c hlist_add_head(&entry->hash, &c->hashtable[hash_32(key, c->bits)]); key 1460 tools/perf/util/auxtrace.c void *auxtrace_cache__lookup(struct auxtrace_cache *c, u32 key) key 1468 tools/perf/util/auxtrace.c hlist = &c->hashtable[hash_32(key, c->bits)]; key 1470 tools/perf/util/auxtrace.c if (entry->key == key) key 482 tools/perf/util/auxtrace.h u32 key; key 490 tools/perf/util/auxtrace.h int auxtrace_cache__add(struct auxtrace_cache *c, u32 key, key 492 tools/perf/util/auxtrace.h void *auxtrace_cache__lookup(struct auxtrace_cache *c, u32 key); key 187 tools/perf/util/bpf-loader.c const char *key; key 193 tools/perf/util/bpf-loader.c .key = "exec", key 199 tools/perf/util/bpf-loader.c .key = "module", key 205 tools/perf/util/bpf-loader.c .key = "inlines", key 211 tools/perf/util/bpf-loader.c .key = "force", key 219 tools/perf/util/bpf-loader.c do_prog_config(const char *key, const char *value, key 224 tools/perf/util/bpf-loader.c pr_debug("config bpf program: %s=%s\n", key, value); key 226 tools/perf/util/bpf-loader.c if (strcmp(key, bpf_prog_config_terms[i].key) == 0) key 230 tools/perf/util/bpf-loader.c key, value); key 1411 tools/perf/util/bpf-loader.c unsigned int key, events; key 1445 tools/perf/util/bpf-loader.c key = *((unsigned int *)pkey); key 1446 tools/perf/util/bpf-loader.c if (key >= events) { key 1448 tools/perf/util/bpf-loader.c key, name); key 1451 tools/perf/util/bpf-loader.c evt_fd = xyarray__entry(xy, key, 0); key 31 tools/perf/util/bpf_map.c void *prev_key = NULL, *key, *value; key 42 tools/perf/util/bpf_map.c key = malloc(def->key_size); key 43 tools/perf/util/bpf_map.c if (key == NULL) key 50 tools/perf/util/bpf_map.c while ((err = bpf_map_get_next_key(fd, prev_key, key) == 0)) { key 51 tools/perf/util/bpf_map.c int intkey = *(int *)key; key 53 tools/perf/util/bpf_map.c if (!bpf_map_lookup_elem(fd, key, value)) { key 61 tools/perf/util/bpf_map.c prev_key = key; key 69 tools/perf/util/bpf_map.c free(key); key 40 tools/perf/util/callchain.c .key = CCKEY_FUNCTION, \ key 106 tools/perf/util/callchain.c callchain_param.key = CCKEY_FUNCTION; key 110 tools/perf/util/callchain.c callchain_param.key = CCKEY_ADDRESS; key 114 tools/perf/util/callchain.c callchain_param.key = CCKEY_SRCLINE; key 715 tools/perf/util/callchain.c switch (callchain_param.key) { key 1150 tools/perf/util/callchain.c bool show_addr = callchain_param.key == CCKEY_ADDRESS; key 1151 tools/perf/util/callchain.c bool show_srcline = show_addr || callchain_param.key == CCKEY_SRCLINE; key 109 tools/perf/util/callchain.h enum chain_key key; key 589 tools/perf/util/config.c char *ptr, *key; key 600 tools/perf/util/config.c key = ptr = strdup(var); key 601 tools/perf/util/config.c if (!key) { key 641 tools/perf/util/config.c free(key); key 728 tools/perf/util/config.c char key[BUFSIZ]; key 739 tools/perf/util/config.c scnprintf(key, sizeof(key), "%s.%s", key 741 tools/perf/util/config.c ret = fn(key, value, data); key 744 tools/perf/util/config.c key, value); key 17 tools/perf/util/kvm-stat.h u64 key; key 31 tools/perf/util/kvm-stat.h struct event_key key; key 44 tools/perf/util/kvm-stat.h key_cmp_fun key; key 52 tools/perf/util/kvm-stat.h struct event_key *key); key 59 tools/perf/util/kvm-stat.h struct event_key *key); key 61 tools/perf/util/kvm-stat.h struct perf_sample *sample, struct event_key *key); key 63 tools/perf/util/kvm-stat.h void (*decode_key)(struct perf_kvm_stat *kvm, struct event_key *key, key 116 tools/perf/util/kvm-stat.h struct event_key *key); key 119 tools/perf/util/kvm-stat.h struct event_key *key); key 122 tools/perf/util/kvm-stat.h struct event_key *key); key 124 tools/perf/util/kvm-stat.h struct event_key *key, key 1984 tools/perf/util/machine.c if (!map || callchain_param.key == CCKEY_FUNCTION) key 1990 tools/perf/util/machine.c bool show_addr = callchain_param.key == CCKEY_ADDRESS; key 40 tools/perf/util/pstack.c void pstack__remove(struct pstack *pstack, void *key) key 45 tools/perf/util/pstack.c if (pstack->entries[i] == key) { key 54 tools/perf/util/pstack.c pr_err("%s: %p not on the pstack!\n", __func__, key); key 57 tools/perf/util/pstack.c void pstack__push(struct pstack *pstack, void *key) key 63 tools/perf/util/pstack.c pstack->entries[pstack->top++] = key; key 11 tools/perf/util/pstack.h void pstack__remove(struct pstack *pstack, void *key); key 12 tools/perf/util/pstack.h void pstack__push(struct pstack *pstack, void *key); key 137 tools/perf/util/scripting-engines/trace-event-python.c static void pydict_set_item_string_decref(PyObject *dict, const char *key, PyObject *val) key 139 tools/perf/util/scripting-engines/trace-event-python.c PyDict_SetItemString(dict, key, val); key 1835 tools/perf/util/sort.c #define MK_SORT_ENTRY_CHK(key) \ key 1836 tools/perf/util/sort.c bool perf_hpp__is_ ## key ## _entry(struct perf_hpp_fmt *fmt) \ key 1844 tools/perf/util/sort.c return hse->se == &sort_ ## key ; \ key 46 tools/perf/util/syscalltbl.c const char *key = vkey; key 49 tools/perf/util/syscalltbl.c return strcmp(key, entry->name); key 8 tools/testing/radix-tree/linux/lockdep.h struct lock_class_key *key) key 25 tools/testing/selftests/bpf/bpf_helpers.h static void *(*bpf_map_lookup_elem)(void *map, const void *key) = key 27 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_map_update_elem)(void *map, const void *key, const void *value, key 30 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_map_delete_elem)(void *map, const void *key) = key 62 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_redirect_map)(void *map, int key, int flags) = key 74 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_skb_get_tunnel_key)(void *ctx, void *key, int size, int flags) = key 76 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_skb_set_tunnel_key)(void *ctx, void *key, int size, int flags) = key 98 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_sk_redirect_map)(void *ctx, void *map, int key, int flags) = key 100 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_sk_redirect_hash)(void *ctx, void *map, void *key, int flags) = key 102 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_sock_map_update)(void *map, void *key, void *value, key 105 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_sock_hash_update)(void *map, void *key, void *value, key 116 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_msg_redirect_map)(void *ctx, void *map, int key, int flags) = key 119 tools/testing/selftests/bpf/bpf_helpers.h void *map, void *key, int flags) = key 138 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_sk_select_reuseport)(void *ctx, void *map, void *key, __u32 flags) = key 269 tools/testing/selftests/bpf/bpf_helpers.h type_key key; \ key 57 tools/testing/selftests/bpf/get_cgroup_id_user.c __u32 key = 0, pid; key 90 tools/testing/selftests/bpf/get_cgroup_id_user.c bpf_map_update_elem(pidmap_fd, &key, &pid, 0); key 130 tools/testing/selftests/bpf/get_cgroup_id_user.c err = bpf_map_lookup_elem(cgidmap_fd, &key, &kcgid); key 503 tools/testing/selftests/bpf/prog_tests/flow_dissector.c __u32 key = (__u32)(tests[i].keys.sport) << 16 | key 516 tools/testing/selftests/bpf/prog_tests/flow_dissector.c err = bpf_map_lookup_elem(keys_fd, &key, &flow_keys); key 522 tools/testing/selftests/bpf/prog_tests/flow_dissector.c err = bpf_map_delete_elem(keys_fd, &key); key 15 tools/testing/selftests/bpf/prog_tests/global_data.c uint32_t key; key 32 tools/testing/selftests/bpf/prog_tests/global_data.c err = bpf_map_lookup_elem(map_fd, &tests[i].key, &num); key 50 tools/testing/selftests/bpf/prog_tests/global_data.c uint32_t key; key 61 tools/testing/selftests/bpf/prog_tests/global_data.c err = bpf_map_lookup_elem(map_fd, &tests[i].key, str); key 85 tools/testing/selftests/bpf/prog_tests/global_data.c uint32_t key; key 95 tools/testing/selftests/bpf/prog_tests/global_data.c err = bpf_map_lookup_elem(map_fd, &tests[i].key, &val); key 7 tools/testing/selftests/bpf/prog_tests/l4lb_all.c struct vip key = {.protocol = 6}; key 39 tools/testing/selftests/bpf/prog_tests/l4lb_all.c bpf_map_update_elem(map_fd, &key, &value, 0); key 7 tools/testing/selftests/bpf/prog_tests/map_lock.c int vars[17], i, j, rnd, key = 0; key 10 tools/testing/selftests/bpf/prog_tests/map_lock.c err = bpf_map_lookup_elem_flags(map_fd, &key, vars, BPF_F_LOCK); key 39 tools/testing/selftests/bpf/prog_tests/map_lock.c int err = 0, key = 0, i; key 54 tools/testing/selftests/bpf/prog_tests/map_lock.c bpf_map_update_elem(map_fd[0], &key, vars, BPF_F_LOCK); key 19 tools/testing/selftests/bpf/prog_tests/send_signal.c __u32 key = 0, duration = 0; key 112 tools/testing/selftests/bpf/prog_tests/send_signal.c key = 0; key 114 tools/testing/selftests/bpf/prog_tests/send_signal.c bpf_map_update_elem(info_map_fd, &key, &val, 0); key 10 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c __u32 key, previous_key, val, duration = 0; key 59 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c key = 0; key 61 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c bpf_map_update_elem(control_map_fd, &key, &val, 0); key 82 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c err = bpf_map_get_next_key(stackmap_fd, NULL, &key); key 90 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c err = bpf_map_lookup_elem(stackmap_fd, &key, id_offs); key 103 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c previous_key = key; key 104 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c } while (bpf_map_get_next_key(stackmap_fd, &previous_key, &key) == 0); key 28 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c __u32 key, previous_key, val, duration = 0; key 94 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c key = 0; key 96 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c bpf_map_update_elem(control_map_fd, &key, &val, 0); key 117 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c err = bpf_map_get_next_key(stackmap_fd, NULL, &key); key 125 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c err = bpf_map_lookup_elem(stackmap_fd, &key, id_offs); key 138 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c previous_key = key; key 139 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c } while (bpf_map_get_next_key(stackmap_fd, &previous_key, &key) == 0); key 10 tools/testing/selftests/bpf/prog_tests/stacktrace_map.c __u32 key, val, duration = 0; key 48 tools/testing/selftests/bpf/prog_tests/stacktrace_map.c key = 0; key 50 tools/testing/selftests/bpf/prog_tests/stacktrace_map.c bpf_map_update_elem(control_map_fd, &key, &val, 0); key 9 tools/testing/selftests/bpf/prog_tests/stacktrace_map_raw_tp.c __u32 key, val, duration = 0; key 44 tools/testing/selftests/bpf/prog_tests/stacktrace_map_raw_tp.c key = 0; key 46 tools/testing/selftests/bpf/prog_tests/stacktrace_map_raw_tp.c bpf_map_update_elem(control_map_fd, &key, &val, 0); key 8 tools/testing/selftests/bpf/prog_tests/xdp_noinline.c struct vip key = {.protocol = 6}; key 40 tools/testing/selftests/bpf/prog_tests/xdp_noinline.c bpf_map_update_elem(map_fd, &key, &value, 0); key 70 tools/testing/selftests/bpf/progs/bpf_flow.c __type(key, __u32); key 77 tools/testing/selftests/bpf/progs/bpf_flow.c __u32 key = (__u32)(keys->sport) << 16 | keys->dport; key 81 tools/testing/selftests/bpf/progs/bpf_flow.c bpf_map_update_elem(&last_dissection, &key, &val, BPF_ANY); key 10 tools/testing/selftests/bpf/progs/get_cgroup_id_kern.c __type(key, __u32); key 17 tools/testing/selftests/bpf/progs/get_cgroup_id_kern.c __type(key, __u32); key 25 tools/testing/selftests/bpf/progs/get_cgroup_id_kern.c __u32 key = 0, *expected_pid; key 28 tools/testing/selftests/bpf/progs/get_cgroup_id_kern.c expected_pid = bpf_map_lookup_elem(&pidmap, &key); key 32 tools/testing/selftests/bpf/progs/get_cgroup_id_kern.c val = bpf_map_lookup_elem(&cg_ids, &key); key 15 tools/testing/selftests/bpf/progs/netcnt_prog.c __type(key, struct bpf_cgroup_storage_key); key 21 tools/testing/selftests/bpf/progs/netcnt_prog.c __type(key, struct bpf_cgroup_storage_key); key 73 tools/testing/selftests/bpf/progs/pyperf.h int key; key 75 tools/testing/selftests/bpf/progs/pyperf.h bpf_probe_read(&key, sizeof(key), (void*)(long)pidData->tls_key_addr); key 77 tools/testing/selftests/bpf/progs/pyperf.h tls_base + 0x310 + key * 0x10 + 0x08); key 116 tools/testing/selftests/bpf/progs/pyperf.h __type(key, int); key 123 tools/testing/selftests/bpf/progs/pyperf.h __type(key, int); key 130 tools/testing/selftests/bpf/progs/pyperf.h __type(key, Symbol); key 137 tools/testing/selftests/bpf/progs/pyperf.h __type(key, int); key 23 tools/testing/selftests/bpf/progs/sample_map_ret0.c __u32 key = 0; key 26 tools/testing/selftests/bpf/progs/sample_map_ret0.c value = bpf_map_lookup_elem(&htab, &key); key 18 tools/testing/selftests/bpf/progs/socket_cookie_prog.c __type(key, int); key 31 tools/testing/selftests/bpf/progs/sockmap_verdict_prog.c __type(key, int); key 20 tools/testing/selftests/bpf/progs/sockopt_inherit.c __type(key, int); key 27 tools/testing/selftests/bpf/progs/sockopt_inherit.c __type(key, int); key 34 tools/testing/selftests/bpf/progs/sockopt_inherit.c __type(key, int); key 76 tools/testing/selftests/bpf/progs/strobemeta.h const char* key; key 231 tools/testing/selftests/bpf/progs/strobemeta.h __type(key, uint32_t); key 238 tools/testing/selftests/bpf/progs/strobemeta.h __type(key, pid_t); key 422 tools/testing/selftests/bpf/progs/strobemeta.h map.entries[i].key); key 11 tools/testing/selftests/bpf/progs/test_attach_probe.c __type(key, int); key 18 tools/testing/selftests/bpf/progs/test_attach_probe.c const int key = 0, value = 1; key 20 tools/testing/selftests/bpf/progs/test_attach_probe.c bpf_map_update_elem(&results_map, &key, &value, 0); key 27 tools/testing/selftests/bpf/progs/test_attach_probe.c const int key = 1, value = 2; key 29 tools/testing/selftests/bpf/progs/test_attach_probe.c bpf_map_update_elem(&results_map, &key, &value, 0); key 36 tools/testing/selftests/bpf/progs/test_attach_probe.c const int key = 2, value = 3; key 38 tools/testing/selftests/bpf/progs/test_attach_probe.c bpf_map_update_elem(&results_map, &key, &value, 0); key 45 tools/testing/selftests/bpf/progs/test_attach_probe.c const int key = 3, value = 4; key 47 tools/testing/selftests/bpf/progs/test_attach_probe.c bpf_map_update_elem(&results_map, &key, &value, 0); key 31 tools/testing/selftests/bpf/progs/test_btf_haskv.c int key = 0; key 36 tools/testing/selftests/bpf/progs/test_btf_haskv.c counts = bpf_map_lookup_elem(&btf_map, &key); key 26 tools/testing/selftests/bpf/progs/test_btf_newkv.c __type(key, int); key 39 tools/testing/selftests/bpf/progs/test_btf_newkv.c int key = 0; key 44 tools/testing/selftests/bpf/progs/test_btf_newkv.c counts = bpf_map_lookup_elem(&btf_map, &key); key 51 tools/testing/selftests/bpf/progs/test_btf_newkv.c counts = bpf_map_lookup_elem(&btf_map_legacy, &key); key 29 tools/testing/selftests/bpf/progs/test_btf_nokv.c int key = 0; key 34 tools/testing/selftests/bpf/progs/test_btf_nokv.c counts = bpf_map_lookup_elem(&btf_map, &key); key 28 tools/testing/selftests/bpf/progs/test_get_stack_rawtp.c __type(key, __u32); key 53 tools/testing/selftests/bpf/progs/test_get_stack_rawtp.c __type(key, __u32); key 63 tools/testing/selftests/bpf/progs/test_get_stack_rawtp.c __u32 key = 0; key 65 tools/testing/selftests/bpf/progs/test_get_stack_rawtp.c data = bpf_map_lookup_elem(&stackdata_map, &key); key 82 tools/testing/selftests/bpf/progs/test_get_stack_rawtp.c raw_data = bpf_map_lookup_elem(&rawdata_map, &key); key 13 tools/testing/selftests/bpf/progs/test_global_data.c __type(key, __u32); key 20 tools/testing/selftests/bpf/progs/test_global_data.c __type(key, __u32); key 33 tools/testing/selftests/bpf/progs/test_global_data.c __type(key, __u32); key 67 tools/testing/selftests/bpf/progs/test_global_data.c __u32 key = num; \ key 68 tools/testing/selftests/bpf/progs/test_global_data.c bpf_map_update_elem(&result_##map, &key, var, 0); \ key 36 tools/testing/selftests/bpf/progs/test_jhash.h u32 jhash(const void *key, u32 length, u32 initval) key 39 tools/testing/selftests/bpf/progs/test_jhash.h const unsigned char *k = key; key 59 tools/testing/selftests/bpf/progs/test_l4lb.c static inline u32 jhash(const void *key, u32 length, u32 initval) key 62 tools/testing/selftests/bpf/progs/test_l4lb.c const unsigned char *k = key; key 175 tools/testing/selftests/bpf/progs/test_l4lb.c __type(key, struct vip); key 182 tools/testing/selftests/bpf/progs/test_l4lb.c __type(key, __u32); key 189 tools/testing/selftests/bpf/progs/test_l4lb.c __type(key, __u32); key 196 tools/testing/selftests/bpf/progs/test_l4lb.c __type(key, __u32); key 203 tools/testing/selftests/bpf/progs/test_l4lb.c __type(key, __u32); key 223 tools/testing/selftests/bpf/progs/test_l4lb.c __u32 key = RING_SIZE * vip_info->vip_num + hash; key 226 tools/testing/selftests/bpf/progs/test_l4lb.c real_pos = bpf_map_lookup_elem(&ch_rings, &key); key 229 tools/testing/selftests/bpf/progs/test_l4lb.c key = *real_pos; key 230 tools/testing/selftests/bpf/progs/test_l4lb.c *real = bpf_map_lookup_elem(&reals, &key); key 55 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c static u32 jhash(const void *key, u32 length, u32 initval) key 58 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c const unsigned char *k = key; key 171 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c __type(key, struct vip); key 178 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c __type(key, __u32); key 185 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c __type(key, __u32); key 192 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c __type(key, __u32); key 199 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c __type(key, __u32); key 219 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c __u32 key = RING_SIZE * vip_info->vip_num + hash % RING_SIZE; key 226 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c real_pos = bpf_map_lookup_elem(&ch_rings, &key); key 229 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c key = *real_pos; key 230 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c *real = bpf_map_lookup_elem(&reals, &key); key 31 tools/testing/selftests/bpf/progs/test_map_in_map.c int key = 0; key 34 tools/testing/selftests/bpf/progs/test_map_in_map.c map = bpf_map_lookup_elem(&mim_array, &key); key 38 tools/testing/selftests/bpf/progs/test_map_in_map.c bpf_map_update_elem(map, &key, &value, 0); key 39 tools/testing/selftests/bpf/progs/test_map_in_map.c value_p = bpf_map_lookup_elem(map, &key); key 43 tools/testing/selftests/bpf/progs/test_map_in_map.c map = bpf_map_lookup_elem(&mim_hash, &key); key 47 tools/testing/selftests/bpf/progs/test_map_in_map.c bpf_map_update_elem(map, &key, &value, 0); key 17 tools/testing/selftests/bpf/progs/test_map_lock.c __type(key, __u32); key 29 tools/testing/selftests/bpf/progs/test_map_lock.c __type(key, int); key 38 tools/testing/selftests/bpf/progs/test_map_lock.c int key = 0, err = 1, i; key 41 tools/testing/selftests/bpf/progs/test_map_lock.c val = bpf_map_lookup_elem(&hash_map, &key); key 51 tools/testing/selftests/bpf/progs/test_map_lock.c q = bpf_map_lookup_elem(&array_map, &key); key 19 tools/testing/selftests/bpf/progs/test_obj_id.c __type(key, __u32); key 26 tools/testing/selftests/bpf/progs/test_obj_id.c __u32 key = 0; key 29 tools/testing/selftests/bpf/progs/test_obj_id.c value = bpf_map_lookup_elem(&test_map_id, &key); key 34 tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c __type(key, __u32); key 41 tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c __type(key, __u32); key 48 tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c __type(key, __u32); key 55 tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c __type(key, __u32); key 10 tools/testing/selftests/bpf/progs/test_send_signal_kern.c __type(key, __u32); key 17 tools/testing/selftests/bpf/progs/test_send_signal_kern.c __type(key, __u32); key 25 tools/testing/selftests/bpf/progs/test_send_signal_kern.c __u32 key = 0, pid, sig; key 28 tools/testing/selftests/bpf/progs/test_send_signal_kern.c status_val = bpf_map_lookup_elem(&status_map, &key); key 32 tools/testing/selftests/bpf/progs/test_send_signal_kern.c info_val = bpf_map_lookup_elem(&info_map, &key); key 33 tools/testing/selftests/bpf/progs/test_sock_fields_kern.c __type(key, __u32); key 40 tools/testing/selftests/bpf/progs/test_sock_fields_kern.c __type(key, __u32); key 47 tools/testing/selftests/bpf/progs/test_sock_fields_kern.c __type(key, __u32); key 54 tools/testing/selftests/bpf/progs/test_sock_fields_kern.c __type(key, __u32); key 66 tools/testing/selftests/bpf/progs/test_sock_fields_kern.c __type(key, int); key 73 tools/testing/selftests/bpf/progs/test_sock_fields_kern.c __type(key, int); key 16 tools/testing/selftests/bpf/progs/test_spin_lock.c __type(key, int); key 27 tools/testing/selftests/bpf/progs/test_spin_lock.c __type(key, struct bpf_cgroup_storage_key); key 42 tools/testing/selftests/bpf/progs/test_spin_lock.c __type(key, int); key 56 tools/testing/selftests/bpf/progs/test_spin_lock.c int key = 0; key 59 tools/testing/selftests/bpf/progs/test_spin_lock.c val = bpf_map_lookup_elem(&hmap, &key); key 61 tools/testing/selftests/bpf/progs/test_spin_lock.c bpf_map_update_elem(&hmap, &key, &zero, 0); key 62 tools/testing/selftests/bpf/progs/test_spin_lock.c val = bpf_map_lookup_elem(&hmap, &key); key 79 tools/testing/selftests/bpf/progs/test_spin_lock.c q = bpf_map_lookup_elem(&vqueue, &key); key 14 tools/testing/selftests/bpf/progs/test_stacktrace_build_id.c __type(key, __u32); key 21 tools/testing/selftests/bpf/progs/test_stacktrace_build_id.c __type(key, __u32); key 38 tools/testing/selftests/bpf/progs/test_stacktrace_build_id.c __type(key, __u32); key 55 tools/testing/selftests/bpf/progs/test_stacktrace_build_id.c __u32 key = 0, val = 0, *value_p; key 58 tools/testing/selftests/bpf/progs/test_stacktrace_build_id.c value_p = bpf_map_lookup_elem(&control_map, &key); key 63 tools/testing/selftests/bpf/progs/test_stacktrace_build_id.c key = bpf_get_stackid(args, &stackmap, BPF_F_USER_STACK); key 64 tools/testing/selftests/bpf/progs/test_stacktrace_build_id.c if ((int)key >= 0) { key 65 tools/testing/selftests/bpf/progs/test_stacktrace_build_id.c bpf_map_update_elem(&stackid_hmap, &key, &val, 0); key 66 tools/testing/selftests/bpf/progs/test_stacktrace_build_id.c stack_p = bpf_map_lookup_elem(&stack_amap, &key); key 14 tools/testing/selftests/bpf/progs/test_stacktrace_map.c __type(key, __u32); key 21 tools/testing/selftests/bpf/progs/test_stacktrace_map.c __type(key, __u32); key 37 tools/testing/selftests/bpf/progs/test_stacktrace_map.c __type(key, __u32); key 57 tools/testing/selftests/bpf/progs/test_stacktrace_map.c __u32 key = 0, val = 0, *value_p; key 60 tools/testing/selftests/bpf/progs/test_stacktrace_map.c value_p = bpf_map_lookup_elem(&control_map, &key); key 65 tools/testing/selftests/bpf/progs/test_stacktrace_map.c key = bpf_get_stackid(ctx, &stackmap, 0); key 66 tools/testing/selftests/bpf/progs/test_stacktrace_map.c if ((int)key >= 0) { key 67 tools/testing/selftests/bpf/progs/test_stacktrace_map.c bpf_map_update_elem(&stackid_hmap, &key, &val, 0); key 68 tools/testing/selftests/bpf/progs/test_stacktrace_map.c stack_p = bpf_map_lookup_elem(&stack_amap, &key); key 29 tools/testing/selftests/bpf/progs/test_tc_edt.c int key = 0; key 30 tools/testing/selftests/bpf/progs/test_tc_edt.c uint64_t *last_tstamp = bpf_map_lookup_elem(&flow_map, &key); key 45 tools/testing/selftests/bpf/progs/test_tc_edt.c if (bpf_map_update_elem(&flow_map, &key, &tstamp, BPF_ANY)) key 58 tools/testing/selftests/bpf/progs/test_tc_edt.c if (bpf_map_update_elem(&flow_map, &key, &next_tstamp, BPF_EXIST)) key 57 tools/testing/selftests/bpf/progs/test_tcp_check_syncookie_kern.c __u32 key = 0; key 144 tools/testing/selftests/bpf/progs/test_tcp_check_syncookie_kern.c bpf_map_update_elem(&results, &key, &cookie, 0); key 154 tools/testing/selftests/bpf/progs/test_tcp_estats.c __type(key, __u32); key 240 tools/testing/selftests/bpf/progs/test_tcp_estats.c __u32 key = bpf_get_prandom_u32(); key 244 tools/testing/selftests/bpf/progs/test_tcp_estats.c bpf_map_update_elem(&ev_record_map, &key, &ev, BPF_ANY); key 20 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c __type(key, __u32); key 27 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c __type(key, __u32); key 33 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c __u32 key = 0; key 36 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c gp = bpf_map_lookup_elem(&global_map, &key); key 41 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c bpf_map_update_elem(&global_map, &key, &g, key 46 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c bpf_map_update_elem(&global_map, &key, &g, key 78 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c __u32 key = 0; key 81 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c gp = bpf_map_lookup_elem(&global_map, &key); key 87 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c bpf_map_update_elem(&global_map, &key, &g, key 105 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c __u32 key = 1; key 107 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c bpf_map_update_elem(&sockopt_results, &key, &v, key 118 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c __u32 key = 0; key 121 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c gp = bpf_map_lookup_elem(&global_map, &key); key 134 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c bpf_map_update_elem(&global_map, &key, &g, key 143 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c __u32 key = 0; key 145 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c bpf_map_update_elem(&sockopt_results, &key, &v, BPF_ANY); key 20 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c __type(key, __u32); key 64 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c __u32 key = 0; key 76 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c gp = bpf_map_lookup_elem(&global_map, &key); key 82 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c bpf_map_update_elem(&global_map, &key, &g, key 50 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 52 tools/testing/selftests/bpf/progs/test_tunnel_kern.c __builtin_memset(&key, 0x0, sizeof(key)); key 53 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.remote_ipv4 = 0xac100164; /* 172.16.1.100 */ key 54 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_id = 2; key 55 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_tos = 0; key 56 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_ttl = 64; key 58 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), key 72 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 75 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), 0); key 81 tools/testing/selftests/bpf/progs/test_tunnel_kern.c bpf_trace_printk(fmt, sizeof(fmt), key.tunnel_id, key.remote_ipv4); key 88 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 91 tools/testing/selftests/bpf/progs/test_tunnel_kern.c __builtin_memset(&key, 0x0, sizeof(key)); key 92 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.remote_ipv6[3] = bpf_htonl(0x11); /* ::11 */ key 93 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_id = 2; key 94 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_tos = 0; key 95 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_ttl = 64; key 96 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_label = 0xabcde; key 98 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), key 113 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 116 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), key 124 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_id, key.remote_ipv6[3], key.tunnel_label); key 132 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 136 tools/testing/selftests/bpf/progs/test_tunnel_kern.c __builtin_memset(&key, 0x0, sizeof(key)); key 137 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.remote_ipv4 = 0xac100164; /* 172.16.1.100 */ key 138 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_id = 2; key 139 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_tos = 0; key 140 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_ttl = 64; key 142 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), key 176 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 181 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), 0); key 194 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_id, key.remote_ipv4, md.version); key 216 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 220 tools/testing/selftests/bpf/progs/test_tunnel_kern.c __builtin_memset(&key, 0x0, sizeof(key)); key 221 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.remote_ipv6[3] = bpf_htonl(0x11); key 222 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_id = 2; key 223 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_tos = 0; key 224 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_ttl = 64; key 226 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), key 261 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 266 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), key 280 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_id, key.remote_ipv4, md.version); key 303 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 306 tools/testing/selftests/bpf/progs/test_tunnel_kern.c __builtin_memset(&key, 0x0, sizeof(key)); key 307 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.remote_ipv4 = 0xac100164; /* 172.16.1.100 */ key 308 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_id = 2; key 309 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_tos = 0; key 310 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_ttl = 64; key 312 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), key 333 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 337 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), 0); key 350 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_id, key.remote_ipv4, md.gbp); key 358 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 361 tools/testing/selftests/bpf/progs/test_tunnel_kern.c __builtin_memset(&key, 0x0, sizeof(key)); key 362 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.remote_ipv6[3] = bpf_htonl(0x11); /* ::11 */ key 363 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_id = 22; key 364 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_tos = 0; key 365 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_ttl = 64; key 367 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), key 381 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 384 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), key 392 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_id, key.remote_ipv6[3], key.tunnel_label); key 401 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 404 tools/testing/selftests/bpf/progs/test_tunnel_kern.c __builtin_memset(&key, 0x0, sizeof(key)); key 405 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.remote_ipv4 = 0xac100164; /* 172.16.1.100 */ key 406 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_id = 2; key 407 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_tos = 0; key 408 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_ttl = 64; key 419 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), key 439 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 443 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), 0); key 456 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_id, key.remote_ipv4, gopt.opt_class); key 463 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 467 tools/testing/selftests/bpf/progs/test_tunnel_kern.c __builtin_memset(&key, 0x0, sizeof(key)); key 468 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.remote_ipv6[3] = bpf_htonl(0x11); /* ::11 */ key 469 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_id = 22; key 470 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_tos = 0; key 471 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_ttl = 64; key 473 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), key 502 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 506 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), key 520 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_id, key.remote_ipv4, gopt.opt_class); key 528 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key = {}; key 541 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_ttl = 64; key 543 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.remote_ipv4 = 0xac100164; /* 172.16.1.100 */ key 549 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.remote_ipv4 = 0xac100164; /* 172.16.1.100 */ key 551 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.remote_ipv4 = 0xac100165; /* 172.16.1.101 */ key 556 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), 0); key 569 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 572 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), 0); key 578 tools/testing/selftests/bpf/progs/test_tunnel_kern.c bpf_trace_printk(fmt, sizeof(fmt), key.remote_ipv4); key 585 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key = {}; key 598 tools/testing/selftests/bpf/progs/test_tunnel_kern.c __builtin_memset(&key, 0x0, sizeof(key)); key 599 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.remote_ipv6[3] = bpf_htonl(0x11); /* ::11 */ key 600 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_ttl = 64; key 602 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), key 616 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 619 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), key 626 tools/testing/selftests/bpf/progs/test_tunnel_kern.c bpf_trace_printk(fmt, sizeof(fmt), bpf_htonl(key.remote_ipv6[0]), key 627 tools/testing/selftests/bpf/progs/test_tunnel_kern.c bpf_htonl(key.remote_ipv6[3])); key 634 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key = {}; key 647 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.remote_ipv6[0] = bpf_htonl(0x2401db00); key 648 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.tunnel_ttl = 64; key 651 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.remote_ipv6[3] = bpf_htonl(1); key 659 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.remote_ipv6[3] = bpf_htonl(1); key 661 tools/testing/selftests/bpf/progs/test_tunnel_kern.c key.remote_ipv6[3] = bpf_htonl(2); key 668 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), key 682 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct bpf_tunnel_key key; key 685 tools/testing/selftests/bpf/progs/test_tunnel_kern.c ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), key 692 tools/testing/selftests/bpf/progs/test_tunnel_kern.c bpf_trace_printk(fmt, sizeof(fmt), bpf_htonl(key.remote_ipv6[0]), key 693 tools/testing/selftests/bpf/progs/test_tunnel_kern.c bpf_htonl(key.remote_ipv6[3])); key 28 tools/testing/selftests/bpf/progs/test_xdp.c __type(key, __u32); key 35 tools/testing/selftests/bpf/progs/test_xdp.c __type(key, struct vip); key 24 tools/testing/selftests/bpf/progs/test_xdp_loop.c __type(key, __u32); key 31 tools/testing/selftests/bpf/progs/test_xdp_loop.c __type(key, struct vip); key 53 tools/testing/selftests/bpf/progs/test_xdp_noinline.c u32 jhash(const void *key, u32 length, u32 initval) key 56 tools/testing/selftests/bpf/progs/test_xdp_noinline.c const unsigned char *k = key; key 170 tools/testing/selftests/bpf/progs/test_xdp_noinline.c __type(key, struct vip_definition); key 178 tools/testing/selftests/bpf/progs/test_xdp_noinline.c __type(key, struct flow_key); key 185 tools/testing/selftests/bpf/progs/test_xdp_noinline.c __type(key, __u32); key 192 tools/testing/selftests/bpf/progs/test_xdp_noinline.c __type(key, __u32); key 199 tools/testing/selftests/bpf/progs/test_xdp_noinline.c __type(key, __u32); key 206 tools/testing/selftests/bpf/progs/test_xdp_noinline.c __type(key, __u32); key 555 tools/testing/selftests/bpf/progs/test_xdp_noinline.c __u32 *real_pos, hash, key; key 568 tools/testing/selftests/bpf/progs/test_xdp_noinline.c key = 2 * vip_info->vip_num + hash % 2; key 569 tools/testing/selftests/bpf/progs/test_xdp_noinline.c real_pos = bpf_map_lookup_elem(&ch_rings, &key); key 572 tools/testing/selftests/bpf/progs/test_xdp_noinline.c key = *real_pos; key 573 tools/testing/selftests/bpf/progs/test_xdp_noinline.c *real = bpf_map_lookup_elem(&reals, &key); key 594 tools/testing/selftests/bpf/progs/test_xdp_noinline.c new_dst_lru.pos = key; key 608 tools/testing/selftests/bpf/progs/test_xdp_noinline.c __u32 key; key 619 tools/testing/selftests/bpf/progs/test_xdp_noinline.c key = dst_lru->pos; key 620 tools/testing/selftests/bpf/progs/test_xdp_noinline.c *real = bpf_map_lookup_elem(&reals, &key); key 23 tools/testing/selftests/bpf/progs/xdping_kern.c __type(key, __u32); key 4762 tools/testing/selftests/bpf/test_btf.c unsigned int key, nr_read_elems; key 4830 tools/testing/selftests/bpf/test_btf.c for (key = 0; key < test->max_entries; key++) { key 4831 tools/testing/selftests/bpf/test_btf.c set_pprint_mapv(mapv_kind, mapv, key, num_cpus, rounded_value_size); key 4832 tools/testing/selftests/bpf/test_btf.c bpf_map_update_elem(map_fd, &key, mapv, 0); key 292 tools/testing/selftests/bpf/test_cgroup_attach.c int cg1 = 0, cg2 = 0, cg3 = 0, cg4 = 0, cg5 = 0, key = 0; key 363 tools/testing/selftests/bpf/test_cgroup_attach.c assert(bpf_map_lookup_elem(map_fd, &key, &value) == 0); key 398 tools/testing/selftests/bpf/test_cgroup_attach.c assert(bpf_map_update_elem(map_fd, &key, &value, 0) == 0); key 400 tools/testing/selftests/bpf/test_cgroup_attach.c assert(bpf_map_lookup_elem(map_fd, &key, &value) == 0); key 414 tools/testing/selftests/bpf/test_cgroup_attach.c assert(bpf_map_update_elem(map_fd, &key, &value, 0) == 0); key 416 tools/testing/selftests/bpf/test_cgroup_attach.c assert(bpf_map_lookup_elem(map_fd, &key, &value) == 0); key 425 tools/testing/selftests/bpf/test_cgroup_attach.c assert(bpf_map_update_elem(map_fd, &key, &value, 0) == 0); key 427 tools/testing/selftests/bpf/test_cgroup_attach.c assert(bpf_map_lookup_elem(map_fd, &key, &value) == 0); key 41 tools/testing/selftests/bpf/test_cgroup_storage.c struct bpf_cgroup_storage_key key; key 53 tools/testing/selftests/bpf/test_cgroup_storage.c map_fd = bpf_create_map(BPF_MAP_TYPE_CGROUP_STORAGE, sizeof(key), key 61 tools/testing/selftests/bpf/test_cgroup_storage.c sizeof(key), sizeof(value), 0, 0); key 100 tools/testing/selftests/bpf/test_cgroup_storage.c if (bpf_map_get_next_key(map_fd, NULL, &key)) { key 105 tools/testing/selftests/bpf/test_cgroup_storage.c if (bpf_map_lookup_elem(map_fd, &key, &value)) { key 113 tools/testing/selftests/bpf/test_cgroup_storage.c if (bpf_map_update_elem(percpu_map_fd, &key, percpu_value, 0)) { key 124 tools/testing/selftests/bpf/test_cgroup_storage.c if (bpf_map_lookup_elem(map_fd, &key, &value)) { key 136 tools/testing/selftests/bpf/test_cgroup_storage.c if (bpf_map_update_elem(map_fd, &key, &value, 0)) { key 147 tools/testing/selftests/bpf/test_cgroup_storage.c if (bpf_map_lookup_elem(map_fd, &key, &value)) { key 162 tools/testing/selftests/bpf/test_cgroup_storage.c if (bpf_map_lookup_elem(percpu_map_fd, &key, percpu_value)) { key 102 tools/testing/selftests/bpf/test_hashmap.c long k = (long)entry->key; key 145 tools/testing/selftests/bpf/test_hashmap.c long k = (long)entry->key; key 170 tools/testing/selftests/bpf/test_hashmap.c k = entry->key; key 205 tools/testing/selftests/bpf/test_hashmap.c k = entry->key; key 237 tools/testing/selftests/bpf/test_hashmap.c (long)entry->key, (long)entry->value); key 244 tools/testing/selftests/bpf/test_hashmap.c (long)entry->key, (long)entry->value); key 34 tools/testing/selftests/bpf/test_lpm_map.c uint8_t key[]; key 38 tools/testing/selftests/bpf/test_lpm_map.c const uint8_t *key, key 42 tools/testing/selftests/bpf/test_lpm_map.c const uint8_t *key, key 51 tools/testing/selftests/bpf/test_lpm_map.c node = tlpm_match(list, key, n_bits); key 53 tools/testing/selftests/bpf/test_lpm_map.c memcpy(node->key, key, n); key 64 tools/testing/selftests/bpf/test_lpm_map.c memcpy(node->key, key, n); key 82 tools/testing/selftests/bpf/test_lpm_map.c const uint8_t *key, key 96 tools/testing/selftests/bpf/test_lpm_map.c if ((key[i / 8] & (1 << (7 - i % 8))) != key 97 tools/testing/selftests/bpf/test_lpm_map.c (list->key[i / 8] & (1 << (7 - i % 8)))) key 111 tools/testing/selftests/bpf/test_lpm_map.c const uint8_t *key, key 114 tools/testing/selftests/bpf/test_lpm_map.c struct tlpm_node *best = tlpm_match(list, key, n_bits); key 188 tools/testing/selftests/bpf/test_lpm_map.c l2 = tlpm_add(l2, t1->key, t1->n_bits); key 191 tools/testing/selftests/bpf/test_lpm_map.c uint8_t key[] = { rand() % 0xff, rand() % 0xff }; key 193 tools/testing/selftests/bpf/test_lpm_map.c t1 = tlpm_match(l1, key, 16); key 194 tools/testing/selftests/bpf/test_lpm_map.c t2 = tlpm_match(l2, key, 16); key 200 tools/testing/selftests/bpf/test_lpm_map.c assert((t1->key[j / 8] & (1 << (7 - j % 8))) == key 201 tools/testing/selftests/bpf/test_lpm_map.c (t2->key[j / 8] & (1 << (7 - j % 8)))); key 213 tools/testing/selftests/bpf/test_lpm_map.c struct bpf_lpm_trie_key *key; key 233 tools/testing/selftests/bpf/test_lpm_map.c key = alloca(sizeof(*key) + keysize); key 234 tools/testing/selftests/bpf/test_lpm_map.c memset(key, 0, sizeof(*key) + keysize); key 237 tools/testing/selftests/bpf/test_lpm_map.c sizeof(*key) + keysize, key 250 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = value[keysize]; key 251 tools/testing/selftests/bpf/test_lpm_map.c memcpy(key->data, value, keysize); key 252 tools/testing/selftests/bpf/test_lpm_map.c r = bpf_map_update_elem(map, key, value, 0); key 262 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 8 * keysize; key 263 tools/testing/selftests/bpf/test_lpm_map.c memcpy(key->data, data, keysize); key 264 tools/testing/selftests/bpf/test_lpm_map.c r = bpf_map_lookup_elem(map, key, value); key 272 tools/testing/selftests/bpf/test_lpm_map.c assert((t->key[j / 8] & (1 << (7 - j % 8))) == key 286 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = list->n_bits; key 287 tools/testing/selftests/bpf/test_lpm_map.c memcpy(key->data, list->key, keysize); key 288 tools/testing/selftests/bpf/test_lpm_map.c r = bpf_map_delete_elem(map, key); key 290 tools/testing/selftests/bpf/test_lpm_map.c list = tlpm_delete(list, list->key, list->n_bits); key 299 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 8 * keysize; key 300 tools/testing/selftests/bpf/test_lpm_map.c memcpy(key->data, data, keysize); key 301 tools/testing/selftests/bpf/test_lpm_map.c r = bpf_map_lookup_elem(map, key, value); key 309 tools/testing/selftests/bpf/test_lpm_map.c assert((t->key[j / 8] & (1 << (7 - j % 8))) == key 426 tools/testing/selftests/bpf/test_lpm_map.c struct bpf_lpm_trie_key *key; key 431 tools/testing/selftests/bpf/test_lpm_map.c key_size = sizeof(*key) + sizeof(__u32); key 432 tools/testing/selftests/bpf/test_lpm_map.c key = alloca(key_size); key 452 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 16; key 453 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.168.0.0", key->data); key 454 tools/testing/selftests/bpf/test_lpm_map.c assert(bpf_map_update_elem(map_fd, key, &value, 0) == 0); key 457 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 24; key 458 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.168.0.0", key->data); key 459 tools/testing/selftests/bpf/test_lpm_map.c assert(bpf_map_update_elem(map_fd, key, &value, 0) == 0); key 462 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 24; key 463 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.168.128.0", key->data); key 464 tools/testing/selftests/bpf/test_lpm_map.c assert(bpf_map_update_elem(map_fd, key, &value, 0) == 0); key 467 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 24; key 468 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.168.1.0", key->data); key 469 tools/testing/selftests/bpf/test_lpm_map.c assert(bpf_map_update_elem(map_fd, key, &value, 0) == 0); key 472 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 32; key 473 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "10.0.0.1", key->data); key 474 tools/testing/selftests/bpf/test_lpm_map.c assert(bpf_map_lookup_elem(map_fd, key, &value) == -1 && key 477 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 30; // unused prefix so far key 478 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.255.0.0", key->data); key 479 tools/testing/selftests/bpf/test_lpm_map.c assert(bpf_map_delete_elem(map_fd, key) == -1 && key 482 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 16; // same prefix as the root node key 483 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.255.0.0", key->data); key 484 tools/testing/selftests/bpf/test_lpm_map.c assert(bpf_map_delete_elem(map_fd, key) == -1 && key 488 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 32; key 489 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.168.0.1", key->data); key 490 tools/testing/selftests/bpf/test_lpm_map.c assert(bpf_map_lookup_elem(map_fd, key, &value) == 0); key 494 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 24; key 495 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.168.0.0", key->data); key 496 tools/testing/selftests/bpf/test_lpm_map.c assert(bpf_map_delete_elem(map_fd, key) == 0); key 498 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 32; key 499 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.168.0.1", key->data); key 500 tools/testing/selftests/bpf/test_lpm_map.c assert(bpf_map_lookup_elem(map_fd, key, &value) == 0); key 504 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 24; key 505 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.168.1.0", key->data); key 506 tools/testing/selftests/bpf/test_lpm_map.c assert(bpf_map_delete_elem(map_fd, key) == 0); key 508 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 32; key 509 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.168.1.1", key->data); key 510 tools/testing/selftests/bpf/test_lpm_map.c assert(bpf_map_lookup_elem(map_fd, key, &value) == 0); key 514 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 16; key 515 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.168.0.0", key->data); key 516 tools/testing/selftests/bpf/test_lpm_map.c assert(bpf_map_delete_elem(map_fd, key) == 0); key 518 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 32; key 519 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.168.128.1", key->data); key 520 tools/testing/selftests/bpf/test_lpm_map.c assert(bpf_map_lookup_elem(map_fd, key, &value) == 0); key 524 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 24; key 525 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.168.128.0", key->data); key 526 tools/testing/selftests/bpf/test_lpm_map.c assert(bpf_map_delete_elem(map_fd, key) == 0); key 528 tools/testing/selftests/bpf/test_lpm_map.c key->prefixlen = 32; key 529 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.168.128.1", key->data); key 530 tools/testing/selftests/bpf/test_lpm_map.c assert(bpf_map_lookup_elem(map_fd, key, &value) == -1 && key 699 tools/testing/selftests/bpf/test_lpm_map.c } key[MAX_TEST_KEYS]; key 716 tools/testing/selftests/bpf/test_lpm_map.c key_p->prefixlen = info->key[j].prefixlen; key 717 tools/testing/selftests/bpf/test_lpm_map.c memcpy(key_p->data, &info->key[j].data, sizeof(__u32)); key 744 tools/testing/selftests/bpf/test_lpm_map.c info->key[0].prefixlen = 16; key 745 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.168.0.0", &info->key[0].data); key 746 tools/testing/selftests/bpf/test_lpm_map.c info->key[1].prefixlen = 24; key 747 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.168.0.0", &info->key[1].data); key 748 tools/testing/selftests/bpf/test_lpm_map.c info->key[2].prefixlen = 24; key 749 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.168.128.0", &info->key[2].data); key 750 tools/testing/selftests/bpf/test_lpm_map.c info->key[3].prefixlen = 24; key 751 tools/testing/selftests/bpf/test_lpm_map.c inet_pton(AF_INET, "192.168.1.0", &info->key[3].data); key 42 tools/testing/selftests/bpf/test_lru_map.c static int bpf_map_lookup_elem_with_ref_bit(int fd, unsigned long long key, key 50 tools/testing/selftests/bpf/test_lru_map.c BPF_LD_IMM64(BPF_REG_3, key), key 161 tools/testing/selftests/bpf/test_lru_map.c unsigned long long key, value[nr_cpus]; key 183 tools/testing/selftests/bpf/test_lru_map.c key = 1; key 184 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); key 185 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(expected_map_fd, &key, value, key 189 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST) == -1 key 193 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_update_elem(lru_map_fd, &key, value, -1) == -1 && key 199 tools/testing/selftests/bpf/test_lru_map.c key = 2; key 200 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -1 && key 204 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -1 && key 208 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); key 213 tools/testing/selftests/bpf/test_lru_map.c key = 3; key 214 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -1 && key 220 tools/testing/selftests/bpf/test_lru_map.c key = 1; key 221 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_lookup_elem_with_ref_bit(lru_map_fd, key, value)); key 224 tools/testing/selftests/bpf/test_lru_map.c key = 3; key 225 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); key 226 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(expected_map_fd, &key, value, key 230 tools/testing/selftests/bpf/test_lru_map.c key = 2; key 231 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -1 && key 250 tools/testing/selftests/bpf/test_lru_map.c unsigned long long key, end_key, value[nr_cpus]; key 279 tools/testing/selftests/bpf/test_lru_map.c for (key = 1; key < end_key; key++) key 280 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, key 285 tools/testing/selftests/bpf/test_lru_map.c for (key = 1; key < end_key; key++) { key 286 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_lookup_elem_with_ref_bit(lru_map_fd, key, value)); key 287 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(expected_map_fd, &key, value, key 295 tools/testing/selftests/bpf/test_lru_map.c key = 1 + tgt_free; key 296 tools/testing/selftests/bpf/test_lru_map.c end_key = key + tgt_free; key 297 tools/testing/selftests/bpf/test_lru_map.c for (; key < end_key; key++) { key 298 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, key 300 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(expected_map_fd, &key, value, key 326 tools/testing/selftests/bpf/test_lru_map.c unsigned long long key, value[nr_cpus]; key 356 tools/testing/selftests/bpf/test_lru_map.c for (key = 1; key < end_key; key++) key 357 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, key 371 tools/testing/selftests/bpf/test_lru_map.c key = 1; key 373 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, key 375 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_delete_elem(lru_map_fd, &key)); key 377 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_update_elem(lru_map_fd, &key, value, key 386 tools/testing/selftests/bpf/test_lru_map.c for (key = 1; key < end_key; key++) { key 387 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -1 && key 389 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, key 391 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_lookup_elem_with_ref_bit(lru_map_fd, key, value)); key 393 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(expected_map_fd, &key, value, key 401 tools/testing/selftests/bpf/test_lru_map.c for (key = 1 + tgt_free; key < end_key; key++) key 405 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, key 409 tools/testing/selftests/bpf/test_lru_map.c end_key = key + tgt_free; key 410 tools/testing/selftests/bpf/test_lru_map.c for (; key < end_key; key++) { key 411 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, key 413 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(expected_map_fd, &key, value, key 434 tools/testing/selftests/bpf/test_lru_map.c unsigned long long key, end_key, value[nr_cpus]; key 463 tools/testing/selftests/bpf/test_lru_map.c for (key = 1; key < end_key; key++) key 464 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, key 469 tools/testing/selftests/bpf/test_lru_map.c for (key = 1; key < end_key; key++) { key 470 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_lookup_elem_with_ref_bit(lru_map_fd, key, value)); key 471 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(expected_map_fd, &key, value, key 478 tools/testing/selftests/bpf/test_lru_map.c key = 2 * tgt_free + 1; key 479 tools/testing/selftests/bpf/test_lru_map.c end_key = key + batch_size; key 480 tools/testing/selftests/bpf/test_lru_map.c for (; key < end_key; key++) { key 481 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, key 483 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(expected_map_fd, &key, value, key 499 tools/testing/selftests/bpf/test_lru_map.c unsigned long long key, value[nr_cpus]; key 521 tools/testing/selftests/bpf/test_lru_map.c for (key = 1; key <= 2 * tgt_free; key++) key 522 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, key 525 tools/testing/selftests/bpf/test_lru_map.c key = 1; key 526 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); key 528 tools/testing/selftests/bpf/test_lru_map.c for (key = 1; key <= tgt_free; key++) { key 529 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_lookup_elem_with_ref_bit(lru_map_fd, key, value)); key 530 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(expected_map_fd, &key, value, key 534 tools/testing/selftests/bpf/test_lru_map.c for (; key <= 2 * tgt_free; key++) { key 535 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_delete_elem(lru_map_fd, &key)); key 536 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_delete_elem(lru_map_fd, &key)); key 539 tools/testing/selftests/bpf/test_lru_map.c end_key = key + 2 * tgt_free; key 540 tools/testing/selftests/bpf/test_lru_map.c for (; key < end_key; key++) { key 541 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, key 543 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(expected_map_fd, &key, value, key 557 tools/testing/selftests/bpf/test_lru_map.c unsigned long long key, value[nr_cpus]; key 563 tools/testing/selftests/bpf/test_lru_map.c key = last_key + 1; key 564 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(map_fd, &key, value, BPF_NOEXIST)); key 565 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_lookup_elem_with_ref_bit(map_fd, key, value)); key 575 tools/testing/selftests/bpf/test_lru_map.c unsigned long long key, value[nr_cpus]; key 589 tools/testing/selftests/bpf/test_lru_map.c key = 0; key 590 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(map_fd, &key, value, BPF_NOEXIST)); key 597 tools/testing/selftests/bpf/test_lru_map.c do_test_lru_sanity5(key, map_fd); key 601 tools/testing/selftests/bpf/test_lru_map.c key); key 608 tools/testing/selftests/bpf/test_lru_map.c key++; key 614 tools/testing/selftests/bpf/test_lru_map.c assert(key > 0); key 623 tools/testing/selftests/bpf/test_lru_map.c unsigned long long key, value[nr_cpus]; key 643 tools/testing/selftests/bpf/test_lru_map.c for (key = 1; key <= tgt_free; key++) { key 644 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, key 646 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(expected_map_fd, &key, value, key 650 tools/testing/selftests/bpf/test_lru_map.c for (; key <= tgt_free * 2; key++) { key 659 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, key 663 tools/testing/selftests/bpf/test_lru_map.c for (; key <= tgt_free * 3; key++) { key 664 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, key 666 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(expected_map_fd, &key, value, key 689 tools/testing/selftests/bpf/test_lru_map.c unsigned long long key, value[nr_cpus]; key 711 tools/testing/selftests/bpf/test_lru_map.c key = 1; key 712 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); key 713 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(expected_map_fd, &key, value, key 717 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST) == -1 key 724 tools/testing/selftests/bpf/test_lru_map.c key = 2; key 725 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -1 && key 729 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -1 && key 733 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); key 738 tools/testing/selftests/bpf/test_lru_map.c key = 3; key 739 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -1 && key 745 tools/testing/selftests/bpf/test_lru_map.c key = 1; key 746 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_lookup_elem_with_ref_bit(lru_map_fd, key, value)); key 752 tools/testing/selftests/bpf/test_lru_map.c key = 2; key 753 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_lookup_elem(lru_map_fd, &key, value)); key 756 tools/testing/selftests/bpf/test_lru_map.c key = 3; key 757 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); key 758 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(expected_map_fd, &key, value, key 762 tools/testing/selftests/bpf/test_lru_map.c key = 2; key 763 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -1 && key 785 tools/testing/selftests/bpf/test_lru_map.c unsigned long long key, value[nr_cpus]; key 807 tools/testing/selftests/bpf/test_lru_map.c key = 1; key 808 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); key 811 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST) == -1 key 818 tools/testing/selftests/bpf/test_lru_map.c key = 2; key 819 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -1 && key 823 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -1 && key 827 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); key 828 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(expected_map_fd, &key, value, key 834 tools/testing/selftests/bpf/test_lru_map.c key = 3; key 835 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -1 && key 841 tools/testing/selftests/bpf/test_lru_map.c key = 1; key 842 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_lookup_elem(lru_map_fd, &key, value)); key 848 tools/testing/selftests/bpf/test_lru_map.c key = 2; key 849 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_lookup_elem_with_ref_bit(lru_map_fd, key, value)); key 852 tools/testing/selftests/bpf/test_lru_map.c key = 3; key 853 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); key 854 tools/testing/selftests/bpf/test_lru_map.c assert(!bpf_map_update_elem(expected_map_fd, &key, value, key 858 tools/testing/selftests/bpf/test_lru_map.c key = 1; key 859 tools/testing/selftests/bpf/test_lru_map.c assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -1 && key 39 tools/testing/selftests/bpf/test_maps.c long long key, next_key, first_key, value; key 42 tools/testing/selftests/bpf/test_maps.c fd = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(key), sizeof(value), key 49 tools/testing/selftests/bpf/test_maps.c key = 1; key 52 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); key 56 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == -1 && key 61 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, -1) == -1 && key 65 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, &value) == 0 && value == 1234); key 67 tools/testing/selftests/bpf/test_maps.c key = 2; key 69 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); key 72 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) == -1 && key 77 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == 0); key 82 tools/testing/selftests/bpf/test_maps.c key = 0; key 83 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == -1 && key 87 tools/testing/selftests/bpf/test_maps.c key = 1; key 88 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) == 0); key 89 tools/testing/selftests/bpf/test_maps.c key = 2; key 90 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); key 91 tools/testing/selftests/bpf/test_maps.c key = 3; key 92 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == -1 && key 96 tools/testing/selftests/bpf/test_maps.c key = 0; key 97 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); key 102 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_get_next_key(fd, &key, &next_key) == 0 && key 111 tools/testing/selftests/bpf/test_maps.c key = 1; key 112 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_delete_elem(fd, &key) == 0); key 113 tools/testing/selftests/bpf/test_maps.c key = 2; key 114 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_delete_elem(fd, &key) == 0); key 115 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); key 117 tools/testing/selftests/bpf/test_maps.c key = 0; key 121 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_get_next_key(fd, &key, &next_key) == -1 && key 151 tools/testing/selftests/bpf/test_maps.c long long key, next_key, first_key; key 155 tools/testing/selftests/bpf/test_maps.c fd = bpf_create_map(BPF_MAP_TYPE_PERCPU_HASH, sizeof(key), key 165 tools/testing/selftests/bpf/test_maps.c key = 1; key 167 tools/testing/selftests/bpf/test_maps.c assert(!(expected_key_mask & key)); key 168 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, value, BPF_ANY) == 0); key 169 tools/testing/selftests/bpf/test_maps.c expected_key_mask |= key; key 172 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, value, BPF_NOEXIST) == -1 && key 177 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, value, -1) == -1 && key 184 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, value) == 0 && key 187 tools/testing/selftests/bpf/test_maps.c key = 2; key 189 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, value) == -1 && errno == ENOENT); key 192 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, value, BPF_EXIST) == -1 && key 197 tools/testing/selftests/bpf/test_maps.c assert(!(expected_key_mask & key)); key 198 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, value, BPF_NOEXIST) == 0); key 199 tools/testing/selftests/bpf/test_maps.c expected_key_mask |= key; key 204 tools/testing/selftests/bpf/test_maps.c key = 0; key 205 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, value, BPF_NOEXIST) == -1 && key 209 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); key 214 tools/testing/selftests/bpf/test_maps.c while (!bpf_map_get_next_key(fd, &key, &next_key)) { key 227 tools/testing/selftests/bpf/test_maps.c key = next_key; key 232 tools/testing/selftests/bpf/test_maps.c key = 1; key 233 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, value, BPF_EXIST) == 0); key 236 tools/testing/selftests/bpf/test_maps.c key = 1; key 237 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_delete_elem(fd, &key) == 0); key 238 tools/testing/selftests/bpf/test_maps.c key = 2; key 239 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_delete_elem(fd, &key) == 0); key 240 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); key 242 tools/testing/selftests/bpf/test_maps.c key = 0; key 246 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_get_next_key(fd, &key, &next_key) == -1 && key 255 tools/testing/selftests/bpf/test_maps.c long long key, value; key 257 tools/testing/selftests/bpf/test_maps.c fd = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(key), sizeof(value), key 264 tools/testing/selftests/bpf/test_maps.c key = i; value = key; key 265 tools/testing/selftests/bpf/test_maps.c ret = bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST); key 277 tools/testing/selftests/bpf/test_maps.c long long key, value, next_key; key 282 tools/testing/selftests/bpf/test_maps.c for (i = 0; bpf_map_get_next_key(fd, !i ? NULL : &key, key 284 tools/testing/selftests/bpf/test_maps.c key = next_key; key 285 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, &value) == 0); key 290 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_get_next_key(fd, NULL, &key) == 0); key 292 tools/testing/selftests/bpf/test_maps.c next_key_valid = bpf_map_get_next_key(fd, &key, &next_key) == 0; key 293 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, &value) == 0); key 295 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) == 0); key 296 tools/testing/selftests/bpf/test_maps.c key = next_key; key 301 tools/testing/selftests/bpf/test_maps.c for (i = 0; bpf_map_get_next_key(fd, !i ? NULL : &key, key 303 tools/testing/selftests/bpf/test_maps.c key = next_key; key 304 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, &value) == 0); key 305 tools/testing/selftests/bpf/test_maps.c assert(value - 1 == key); key 315 tools/testing/selftests/bpf/test_maps.c long long key, next_first, next_second; key 324 tools/testing/selftests/bpf/test_maps.c void *key_ptr = !i ? NULL : &key; key 337 tools/testing/selftests/bpf/test_maps.c key = next_first; key 347 tools/testing/selftests/bpf/test_maps.c int key, next_key, fd; key 350 tools/testing/selftests/bpf/test_maps.c fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(key), sizeof(value), key 357 tools/testing/selftests/bpf/test_maps.c key = 1; key 360 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); key 363 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == -1 && key 367 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, &value) == 0 && value == 1234); key 369 tools/testing/selftests/bpf/test_maps.c key = 0; key 371 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, &value) == 0 && value == 0); key 376 tools/testing/selftests/bpf/test_maps.c key = 2; key 377 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) == -1 && key 381 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); key 386 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_get_next_key(fd, &key, &next_key) == 0 && key 394 tools/testing/selftests/bpf/test_maps.c key = 1; key 395 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_delete_elem(fd, &key) == -1 && errno == EINVAL); key 404 tools/testing/selftests/bpf/test_maps.c int key, next_key, fd, i; key 406 tools/testing/selftests/bpf/test_maps.c fd = bpf_create_map(BPF_MAP_TYPE_PERCPU_ARRAY, sizeof(key), key 416 tools/testing/selftests/bpf/test_maps.c key = 1; key 418 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, values, BPF_ANY) == 0); key 421 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, values, BPF_NOEXIST) == -1 && key 425 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, values) == 0 && key 428 tools/testing/selftests/bpf/test_maps.c key = 0; key 430 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, values) == 0 && key 435 tools/testing/selftests/bpf/test_maps.c key = 2; key 436 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, values, BPF_EXIST) == -1 && key 440 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, values) == -1 && errno == ENOENT); key 445 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_get_next_key(fd, &key, &next_key) == 0 && key 453 tools/testing/selftests/bpf/test_maps.c key = 1; key 454 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_delete_elem(fd, &key) == -1 && errno == EINVAL); key 467 tools/testing/selftests/bpf/test_maps.c int key, fd, i; key 469 tools/testing/selftests/bpf/test_maps.c fd = bpf_create_map(BPF_MAP_TYPE_PERCPU_ARRAY, sizeof(key), key 480 tools/testing/selftests/bpf/test_maps.c for (key = 0; key < nr_keys; key++) key 481 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, values, BPF_ANY) == 0); key 483 tools/testing/selftests/bpf/test_maps.c for (key = 0; key < nr_keys; key++) { key 487 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, values) == 0); key 499 tools/testing/selftests/bpf/test_maps.c __u32 key, value; key 501 tools/testing/selftests/bpf/test_maps.c fd = bpf_create_map(BPF_MAP_TYPE_DEVMAP, sizeof(key), sizeof(value), key 514 tools/testing/selftests/bpf/test_maps.c __u32 key, value; key 516 tools/testing/selftests/bpf/test_maps.c fd = bpf_create_map(BPF_MAP_TYPE_DEVMAP_HASH, sizeof(key), sizeof(value), key 661 tools/testing/selftests/bpf/test_maps.c __u32 key, value; key 730 tools/testing/selftests/bpf/test_maps.c sizeof(key), sizeof(value), key 1238 tools/testing/selftests/bpf/test_maps.c } key; key 1241 tools/testing/selftests/bpf/test_maps.c fd = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(key), sizeof(value), key 1249 tools/testing/selftests/bpf/test_maps.c key = (struct bigkey) { .c = i }; key 1252 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == 0); key 1255 tools/testing/selftests/bpf/test_maps.c key.c = -1; key 1256 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == -1 && key 1260 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_get_next_key(fd, NULL, &key) == 0); key 1261 tools/testing/selftests/bpf/test_maps.c key.c = -1; key 1263 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_get_next_key(fd, &key, &key) == 0); key 1264 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_get_next_key(fd, &key, &key) == -1 && errno == ENOENT); key 1266 tools/testing/selftests/bpf/test_maps.c key.c = 0; key 1267 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, &value) == 0 && value == 0); key 1268 tools/testing/selftests/bpf/test_maps.c key.a = 1; key 1269 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); key 1324 tools/testing/selftests/bpf/test_maps.c int i, key, value; key 1327 tools/testing/selftests/bpf/test_maps.c key = value = i; key 1330 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, key 1332 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, key 1335 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_delete_elem(fd, &key) == 0); key 1342 tools/testing/selftests/bpf/test_maps.c int i, fd, key = 0, value = 0; key 1345 tools/testing/selftests/bpf/test_maps.c fd = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(key), sizeof(value), key 1363 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == -1 && key 1367 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_get_next_key(fd, NULL, &key) == 0); key 1368 tools/testing/selftests/bpf/test_maps.c key = -1; key 1370 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_get_next_key(fd, &key, &key) == 0); key 1371 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_get_next_key(fd, &key, &key) == -1 && errno == ENOENT); key 1375 tools/testing/selftests/bpf/test_maps.c key = MAP_SIZE - i - 1; key 1377 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, &value) == 0 && key 1378 tools/testing/selftests/bpf/test_maps.c value == key); key 1386 tools/testing/selftests/bpf/test_maps.c key = -1; key 1387 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_get_next_key(fd, NULL, &key) == -1 && errno == ENOENT); key 1388 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_get_next_key(fd, &key, &key) == -1 && errno == ENOENT); key 1393 tools/testing/selftests/bpf/test_maps.c int fd, key = 0, value = 0; key 1395 tools/testing/selftests/bpf/test_maps.c fd = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(key), sizeof(value), key 1403 tools/testing/selftests/bpf/test_maps.c key = 1; key 1406 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == -1 && key 1410 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); key 1411 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_get_next_key(fd, &key, &value) == -1 && errno == ENOENT); key 1416 tools/testing/selftests/bpf/test_maps.c int fd, key = 0, value = 0; key 1418 tools/testing/selftests/bpf/test_maps.c fd = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(key), sizeof(value), key 1426 tools/testing/selftests/bpf/test_maps.c key = 1; key 1429 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); key 1432 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == EPERM); key 1433 tools/testing/selftests/bpf/test_maps.c assert(bpf_map_get_next_key(fd, &key, &value) == -1 && errno == EPERM); key 37 tools/testing/selftests/bpf/test_netcnt.c struct bpf_cgroup_storage_key key; key 107 tools/testing/selftests/bpf/test_netcnt.c if (bpf_map_get_next_key(map_fd, NULL, &key)) { key 112 tools/testing/selftests/bpf/test_netcnt.c if (bpf_map_lookup_elem(map_fd, &key, &netcnt)) { key 117 tools/testing/selftests/bpf/test_netcnt.c if (bpf_map_lookup_elem(percpu_map_fd, &key, &percpu_netcnt[0])) { key 217 tools/testing/selftests/bpf/test_progs.c __u32 key, next_key; key 222 tools/testing/selftests/bpf/test_progs.c err = bpf_map_get_next_key(map1_fd, NULL, &key); key 225 tools/testing/selftests/bpf/test_progs.c err = bpf_map_lookup_elem(map2_fd, &key, val_buf); key 229 tools/testing/selftests/bpf/test_progs.c while (bpf_map_get_next_key(map1_fd, &key, &next_key) == 0) { key 234 tools/testing/selftests/bpf/test_progs.c key = next_key; key 244 tools/testing/selftests/bpf/test_progs.c __u32 key, next_key, *cur_key_p, *next_key_p; key 251 tools/testing/selftests/bpf/test_progs.c next_key_p = &key; key 265 tools/testing/selftests/bpf/test_progs.c key = *next_key_p; key 266 tools/testing/selftests/bpf/test_progs.c cur_key_p = &key; key 422 tools/testing/selftests/bpf/test_progs.c static error_t parse_arg(int key, char *arg, struct argp_state *state) key 426 tools/testing/selftests/bpf/test_progs.c switch (key) { key 795 tools/testing/selftests/bpf/test_sockmap.c int i, key, next_key, err, tx_prog_fd = -1, zero = 0; key 1078 tools/testing/selftests/bpf/test_sockmap.c key = next_key = 0; key 1079 tools/testing/selftests/bpf/test_sockmap.c bpf_map_update_elem(map_fd[i], &key, &zero, BPF_ANY); key 1080 tools/testing/selftests/bpf/test_sockmap.c while (bpf_map_get_next_key(map_fd[i], &key, &next_key) == 0) { key 1081 tools/testing/selftests/bpf/test_sockmap.c bpf_map_update_elem(map_fd[i], &key, &zero, BPF_ANY); key 1082 tools/testing/selftests/bpf/test_sockmap.c key = next_key; key 55 tools/testing/selftests/bpf/test_sockmap_kern.h __type(key, int); key 62 tools/testing/selftests/bpf/test_sockmap_kern.h __type(key, int); key 69 tools/testing/selftests/bpf/test_sockmap_kern.h __type(key, int); key 76 tools/testing/selftests/bpf/test_sockmap_kern.h __type(key, int); key 83 tools/testing/selftests/bpf/test_sockmap_kern.h __type(key, int); key 127 tools/testing/selftests/bpf/test_sockmap_kern.h int op, err = 0, index, key, ret; key 270 tools/testing/selftests/bpf/test_sockmap_kern.h int zero = 0, one = 1, two = 2, three = 3, four = 4, five = 5, key = 0; key 298 tools/testing/selftests/bpf/test_sockmap_kern.h key = 2; key 302 tools/testing/selftests/bpf/test_sockmap_kern.h return bpf_msg_redirect_map(msg, &sock_map_redir, key, flags); key 304 tools/testing/selftests/bpf/test_sockmap_kern.h return bpf_msg_redirect_hash(msg, &sock_map_redir, &key, flags); key 314 tools/testing/selftests/bpf/test_sockmap_kern.h int err1 = 0, err2 = 0, key = 0; key 373 tools/testing/selftests/bpf/test_sockmap_kern.h key = 2; key 379 tools/testing/selftests/bpf/test_sockmap_kern.h err = bpf_msg_redirect_map(msg, &sock_map_redir, key, flags); key 381 tools/testing/selftests/bpf/test_sockmap_kern.h err = bpf_msg_redirect_hash(msg, &sock_map_redir, &key, flags); key 123 tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c __u32 key = 0; key 130 tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c if (bpf_map_update_elem(results_fd, &key, &value, 0) < 0) { key 155 tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c if (bpf_map_lookup_elem(results_fd, &key, &value) < 0) { key 59 tools/testing/selftests/bpf/test_tcpbpf_user.c __u32 key = 0; key 64 tools/testing/selftests/bpf/test_tcpbpf_user.c rv = bpf_map_lookup_elem(sock_map_fd, &key, &res); key 67 tools/testing/selftests/bpf/test_tcpbpf_user.c key = 1; key 69 tools/testing/selftests/bpf/test_tcpbpf_user.c rv = bpf_map_lookup_elem(sock_map_fd, &key, &res); key 99 tools/testing/selftests/bpf/test_tcpbpf_user.c __u32 key = 0; key 137 tools/testing/selftests/bpf/test_tcpbpf_user.c rv = bpf_map_lookup_elem(map_fd, &key, &g); key 83 tools/testing/selftests/bpf/test_tcpnotify_user.c __u32 key = 0; key 145 tools/testing/selftests/bpf/test_tcpnotify_user.c rv = bpf_map_lookup_elem(bpf_map__fd(global_map), &key, &g); key 48 tools/testing/selftests/bpf/trace_helpers.c struct ksym *ksym_search(long key) key 60 tools/testing/selftests/bpf/trace_helpers.c result = key - syms[mid].addr; key 69 tools/testing/selftests/bpf/trace_helpers.c if (start >= 1 && syms[start - 1].addr < key && key 70 tools/testing/selftests/bpf/trace_helpers.c key < syms[start].addr) key 13 tools/testing/selftests/bpf/trace_helpers.h struct ksym *ksym_search(long key); key 146 tools/testing/selftests/cgroup/cgroup_util.c long cg_read_key_long(const char *cgroup, const char *control, const char *key) key 154 tools/testing/selftests/cgroup/cgroup_util.c ptr = strstr(buf, key); key 158 tools/testing/selftests/cgroup/cgroup_util.c return atol(ptr + strlen(key)); key 31 tools/testing/selftests/cgroup/cgroup_util.h long cg_read_key_long(const char *cgroup, const char *control, const char *key); key 27 tools/testing/selftests/ipc/msgque.c key_t key; key 53 tools/testing/selftests/ipc/msgque.c id = msgget(msgque->key, msgque->mode | IPC_CREAT | IPC_EXCL); key 204 tools/testing/selftests/ipc/msgque.c msgque.key = ftok(argv[0], 822155650); key 205 tools/testing/selftests/ipc/msgque.c if (msgque.key == -1) { key 210 tools/testing/selftests/ipc/msgque.c msgque.msq_id = msgget(msgque.key, IPC_CREAT | IPC_EXCL | 0666); key 123 tools/testing/selftests/networking/timestamping/txtimestamp.c uint32_t key, int payload_len) key 130 tools/testing/selftests/networking/timestamping/txtimestamp.c key, payload_len); key 87 tools/testing/selftests/pidfd/pidfd_open_test.c static pid_t get_pid_from_fdinfo_file(int pidfd, const char *key, size_t keylen) key 105 tools/testing/selftests/pidfd/pidfd_open_test.c if (strncmp(line, key, keylen)) key 129 tools/usb/usbip/src/usbip_network.h uint32_t key[4]; key 358 virt/kvm/arm/arm.c #define __ptrauth_save_key(regs, key) \ key 360 virt/kvm/arm/arm.c regs[key ## KEYLO_EL1] = read_sysreg_s(SYS_ ## key ## KEYLO_EL1); \ key 361 virt/kvm/arm/arm.c regs[key ## KEYHI_EL1] = read_sysreg_s(SYS_ ## key ## KEYHI_EL1); \ key 364 virt/kvm/arm/arm.c #define __ptrauth_save_key(regs, key) do { } while (0) key 658 virt/kvm/arm/vgic/vgic-mmio.c static int match_region(const void *key, const void *elt) key 660 virt/kvm/arm/vgic/vgic-mmio.c const unsigned int offset = (unsigned long)key; key 185 virt/kvm/eventfd.c irqfd_wakeup(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) key 189 virt/kvm/eventfd.c __poll_t flags = key_to_poll(key); key 3833 virt/kvm/kvm_main.c struct kvm_io_range *range, key; key 3836 virt/kvm/kvm_main.c key = (struct kvm_io_range) { key 3841 virt/kvm/kvm_main.c range = bsearch(&key, bus->range, bus->dev_count, key 3848 virt/kvm/kvm_main.c while (off > 0 && kvm_io_bus_cmp(&key, &bus->range[off-1]) == 0)