Home
last modified time | relevance | path

Searched refs:key1 (Results 1 – 25 of 93) sorted by relevance

1234

/openbmc/linux/drivers/input/keyboard/
H A Dep93xx_keypad.c75 int key1; member
88 int keycode, key1, key2; in ep93xx_keypad_irq_handler() local
93 key1 = keypad->keycodes[keycode]; in ep93xx_keypad_irq_handler()
99 if (keypad->key1 && key1 != keypad->key1 && key2 != keypad->key1) in ep93xx_keypad_irq_handler()
105 input_report_key(input_dev, key1, 1); in ep93xx_keypad_irq_handler()
108 keypad->key1 = key1; in ep93xx_keypad_irq_handler()
112 if (keypad->key1 && key1 != keypad->key1) in ep93xx_keypad_irq_handler()
115 if (keypad->key2 && key1 != keypad->key2) in ep93xx_keypad_irq_handler()
118 input_report_key(input_dev, key1, 1); in ep93xx_keypad_irq_handler()
120 keypad->key1 = key1; in ep93xx_keypad_irq_handler()
[all …]
/openbmc/linux/tools/testing/selftests/alsa/
H A Dconf.c343 static int conf_get_by_keys(snd_config_t *root, const char *key1, in conf_get_by_keys() argument
348 if (key1) { in conf_get_by_keys()
349 ret = snd_config_search(root, key1, &root); in conf_get_by_keys()
366 ret = conf_get_by_keys(root, key1, key2, &root); in conf_get_subtree()
382 ret = conf_get_by_keys(root, key1, key2, &cfg); in conf_get_count()
403 ret = conf_get_by_keys(root, key1, key2, &cfg); in conf_get_string()
409 ksft_exit_fail_msg("key '%s'.'%s' is not a string\n", key1, key2); in conf_get_string()
421 ret = conf_get_by_keys(root, key1, key2, &cfg); in conf_get_long()
438 ret = conf_get_by_keys(root, key1, key2, &cfg); in conf_get_bool()
445 ksft_exit_fail_msg("key '%s'.'%s' is not an bool\n", key1, key2); in conf_get_bool()
[all …]
H A Dalsa-local.h19 snd_config_t *conf_get_subtree(snd_config_t *root, const char *key1, const char *key2);
20 int conf_get_count(snd_config_t *root, const char *key1, const char *key2);
21 const char *conf_get_string(snd_config_t *root, const char *key1, const char *key2, const char *def…
22 long conf_get_long(snd_config_t *root, const char *key1, const char *key2, long def);
23 int conf_get_bool(snd_config_t *root, const char *key1, const char *key2, int def);
24 void conf_get_string_array(snd_config_t *root, const char *key1, const char *key2,
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_btree.h169 const union xfs_btree_key *key1,
584 const union xfs_btree_key *key1,
600 const union xfs_btree_key *key1, in xfs_btree_keycmp_lt() argument
609 const union xfs_btree_key *key1, in xfs_btree_keycmp_gt() argument
618 const union xfs_btree_key *key1, in xfs_btree_keycmp_eq() argument
627 const union xfs_btree_key *key1, in xfs_btree_keycmp_le() argument
636 const union xfs_btree_key *key1, in xfs_btree_keycmp_ge() argument
645 const union xfs_btree_key *key1, in xfs_btree_keycmp_ne() argument
655 const union xfs_btree_key *key1, in xfs_btree_masked_keycmp_lt() argument
665 const union xfs_btree_key *key1, in xfs_btree_masked_keycmp_gt() argument
[all …]
/openbmc/linux/fs/befs/
H A Dbtree.c712 befs_compare_strings(const void *key1, int keylen1, in befs_compare_strings() argument
716 int result = strncmp(key1, key2, len); in befs_compare_strings()
727 return *(int32_t *) key1 - *(int32_t *) key2;
731 btree_compare_uint32(cont void *key1, int keylen1,
734 if (*(u_int32_t *) key1 == *(u_int32_t *) key2)
744 if (*(int64_t *) key1 == *(int64_t *) key2)
746 else if (*(int64_t *) key1 > *(int64_t *) key2)
753 btree_compare_uint64(cont void *key1, int keylen1,
756 if (*(u_int64_t *) key1 == *(u_int64_t *) key2)
767 float result = *(float *) key1 - *(float *) key2;
[all …]
/openbmc/linux/arch/arm/crypto/
H A Daes-ce-core.S27 enc_round q0, \key1
32 dec_round q0, \key1
37 enc_round q0, \key1
43 dec_round q0, \key1
49 enc_round q0, \key1
50 enc_round q1, \key1
51 enc_round q2, \key1
52 enc_round q3, \key1
60 dec_round q0, \key1
61 dec_round q1, \key1
[all …]
/openbmc/linux/fs/ubifs/
H A Dkey.h479 const union ubifs_key *key1, in keys_cmp() argument
482 if (key1->u32[0] < key2->u32[0]) in keys_cmp()
484 if (key1->u32[0] > key2->u32[0]) in keys_cmp()
486 if (key1->u32[1] < key2->u32[1]) in keys_cmp()
488 if (key1->u32[1] > key2->u32[1]) in keys_cmp()
504 const union ubifs_key *key1, in keys_eq() argument
507 if (key1->u32[0] != key2->u32[0]) in keys_eq()
509 if (key1->u32[1] != key2->u32[1]) in keys_eq()
H A Dtnc_misc.c369 const union ubifs_key *key1, *key2; in read_znode() local
371 key1 = &znode->zbranch[i].key; in read_znode()
374 cmp = keys_cmp(c, key1, key2); in read_znode()
379 } else if (cmp == 0 && !is_hash_key(c, key1)) { in read_znode()
463 union ubifs_key key1, *key = &zbr->key; in ubifs_tnc_read_node() local
485 key_read(c, node + UBIFS_KEY_OFFSET, &key1); in ubifs_tnc_read_node()
486 if (!keys_eq(c, key, &key1)) { in ubifs_tnc_read_node()
490 dbg_tnck(&key1, "but found node's key "); in ubifs_tnc_read_node()
H A Dtnc.c1730 union ubifs_key key1; in validate_data_node() local
1760 if (!keys_eq(c, &zbr->key, &key1)) { in validate_data_node()
2036 union ubifs_key *key, *key1; in correct_parent_keys() local
2044 while (keys_cmp(c, key, key1) < 0) { in correct_parent_keys()
2045 key_copy(c, key, key1); in correct_parent_keys()
2177 key1 = &znode->zbranch[0].key; in tnc_insert()
2180 key1 = &znode->zbranch[n].key; in tnc_insert()
2905 union ubifs_key key1, key2; in ubifs_tnc_remove_ino() local
2915 lowest_xent_key(c, &key1, inum); in ubifs_tnc_remove_ino()
2955 key_read(c, &xent->key, &key1); in ubifs_tnc_remove_ino()
[all …]
/openbmc/u-boot/fs/ubifs/
H A Dkey.h472 const union ubifs_key *key1, in keys_cmp() argument
475 if (key1->u32[0] < key2->u32[0]) in keys_cmp()
477 if (key1->u32[0] > key2->u32[0]) in keys_cmp()
479 if (key1->u32[1] < key2->u32[1]) in keys_cmp()
481 if (key1->u32[1] > key2->u32[1]) in keys_cmp()
497 const union ubifs_key *key1, in keys_eq() argument
500 if (key1->u32[0] != key2->u32[0]) in keys_eq()
502 if (key1->u32[1] != key2->u32[1]) in keys_eq()
H A Dtnc_misc.c357 const union ubifs_key *key1, *key2; in read_znode() local
359 key1 = &znode->zbranch[i].key; in read_znode()
362 cmp = keys_cmp(c, key1, key2); in read_znode()
367 } else if (cmp == 0 && !is_hash_key(c, key1)) { in read_znode()
452 union ubifs_key key1, *key = &zbr->key; in ubifs_tnc_read_node() local
474 key_read(c, node + UBIFS_KEY_OFFSET, &key1); in ubifs_tnc_read_node()
475 if (!keys_eq(c, key, &key1)) { in ubifs_tnc_read_node()
479 dbg_tnck(&key1, "but found node's key "); in ubifs_tnc_read_node()
H A Dtnc.c1680 union ubifs_key key1; in validate_data_node() local
1704 if (!keys_eq(c, &zbr->key, &key1)) { in validate_data_node()
1875 union ubifs_key *key, *key1; in correct_parent_keys() local
1883 while (keys_cmp(c, key, key1) < 0) { in correct_parent_keys()
1884 key_copy(c, key, key1); in correct_parent_keys()
2015 key1 = &znode->zbranch[0].key; in tnc_insert()
2018 key1 = &znode->zbranch[n].key; in tnc_insert()
2669 union ubifs_key key1, key2; in ubifs_tnc_remove_ino() local
2679 lowest_xent_key(c, &key1, inum); in ubifs_tnc_remove_ino()
2714 key_read(c, &xent->key, &key1); in ubifs_tnc_remove_ino()
[all …]
/openbmc/linux/net/mptcp/
H A Dcrypto_test.c37 u64 key1, key2; in mptcp_crypto_test_basic() local
43 key1 = be64_to_cpu(*((__be64 *)&tests[i].key[0])); in mptcp_crypto_test_basic()
51 mptcp_crypto_hmac_sha(key1, key2, msg, 8, hmac); in mptcp_crypto_test_basic()
H A Dcrypto.c44 void mptcp_crypto_hmac_sha(u64 key1, u64 key2, u8 *msg, int len, void *hmac) in mptcp_crypto_hmac_sha() argument
54 put_unaligned_be64(key1, key1be); in mptcp_crypto_hmac_sha()
/openbmc/linux/tools/testing/selftests/hid/tests/
H A Dtest_gamepad.py70 key1 = libevdev.evbit(uhdev.buttons_map[b1])
76 expected_event0 = libevdev.InputEvent(key1, 1)
83 assert evdev.value[key1] == 1
88 expected_event = libevdev.InputEvent(key1, 0)
92 assert evdev.value[key1] == 0
101 assert evdev.value[key1] == 0
/openbmc/qemu/tests/unit/
H A Dtest-crypto-xts.c34 unsigned char key1[32]; member
348 AES_set_encrypt_key(data->key1, data->keylen / 2 * 8, &aesdata.enc); in test_xts()
349 AES_set_decrypt_key(data->key1, data->keylen / 2 * 8, &aesdata.dec); in test_xts()
384 AES_set_encrypt_key(data->key1, data->keylen / 2 * 8, &aesdata.enc); in test_xts_split()
385 AES_set_decrypt_key(data->key1, data->keylen / 2 * 8, &aesdata.dec); in test_xts_split()
429 AES_set_encrypt_key(data->key1, data->keylen / 2 * 8, &aesdata.enc); in test_xts_unaligned()
430 AES_set_decrypt_key(data->key1, data->keylen / 2 * 8, &aesdata.dec); in test_xts_unaligned()
/openbmc/linux/kernel/futex/
H A Drequeue.c268 struct futex_hash_bucket *hb2, union futex_key *key1, in futex_proxy_trylock_atomic() argument
290 top_waiter = futex_top_waiter(hb1, key1); in futex_proxy_trylock_atomic()
367 union futex_key key1 = FUTEX_KEY_INIT, key2 = FUTEX_KEY_INIT; in futex_requeue() local
427 ret = get_futex_key(uaddr1, flags & FLAGS_SHARED, &key1, FUTEX_READ); in futex_requeue()
439 if (requeue_pi && futex_match(&key1, &key2)) in futex_requeue()
442 hb1 = futex_hash(&key1); in futex_requeue()
484 ret = futex_proxy_trylock_atomic(uaddr2, hb1, hb2, &key1, in futex_requeue()
574 if (!futex_match(&this->key, &key1)) in futex_requeue()
H A Dfutex.h135 static inline int futex_match(union futex_key *key1, union futex_key *key2) in futex_match() argument
137 return (key1 && key2 in futex_match()
138 && key1->both.word == key2->both.word in futex_match()
139 && key1->both.ptr == key2->both.ptr in futex_match()
140 && key1->both.offset == key2->both.offset); in futex_match()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtimer_mim.c10 int err, prog_fd, key1 = 1; in timer_mim() local
38 err = bpf_map__delete_elem(timer_skel->maps.outer_arr, &key1, sizeof(key1), 0); in timer_mim()
/openbmc/linux/drivers/crypto/vmx/
H A Daesp8-ppc.pl2501 lvx v30,$x10,$key1
2502 addi $key1,$key1,0x20
2503 lvx v31,$x00,$key1
2510 lvx v30,$x10,$key1
2511 addi $key1,$key1,0x20
2514 lvx v31,$x00,$key1
2519 lvx v26,$x10,$key1
2521 lvx v27,$x20,$key1
2524 lvx v28,$x30,$key1
3154 addi $key1,$key1,0x20
[all …]
H A Daesp8-ppc.h28 const struct aes_key *key1, const struct aes_key *key2, u8 *iv);
30 const struct aes_key *key1, const struct aes_key *key2, u8 *iv);
/openbmc/linux/security/selinux/ss/
H A Dsymtab.c26 static int symcmp(const void *key1, const void *key2) in symcmp() argument
30 keyp1 = key1; in symcmp()
/openbmc/linux/arch/arm64/crypto/
H A Daes-glue.c117 struct crypto_aes_ctx key1; member
122 struct crypto_aes_ctx key1; member
170 ret = aes_expandkey(&ctx->key1, in_key, key_len); in essiv_cbc_set_key()
411 int err, rounds = 6 + ctx->key1.key_length / 4; in essiv_cbc_encrypt()
421 ctx->key1.key_enc, rounds, blocks, in essiv_cbc_encrypt()
433 int err, rounds = 6 + ctx->key1.key_length / 4; in essiv_cbc_decrypt()
443 ctx->key1.key_dec, rounds, blocks, in essiv_cbc_decrypt()
584 ctx->key1.key_enc, rounds, nbytes, in xts_encrypt()
606 ctx->key1.key_enc, rounds, walk.nbytes, in xts_encrypt()
656 ctx->key1.key_dec, rounds, nbytes, in xts_decrypt()
[all …]
/openbmc/linux/crypto/
H A Dxcbc.c58 u8 key1[XCBC_BLOCKSIZE]; in crypto_xcbc_digest_setkey() local
59 int bs = sizeof(key1); in crypto_xcbc_digest_setkey()
66 crypto_cipher_encrypt_one(ctx->child, key1, (u8 *)ks); in crypto_xcbc_digest_setkey()
68 return crypto_cipher_setkey(ctx->child, key1, bs); in crypto_xcbc_digest_setkey()
/openbmc/linux/drivers/infiniband/sw/rxe/
H A Drxe_verbs.h16 static inline int pkey_match(u16 key1, u16 key2) in pkey_match() argument
18 return (((key1 & 0x7fff) != 0) && in pkey_match()
19 ((key1 & 0x7fff) == (key2 & 0x7fff)) && in pkey_match()
20 ((key1 & 0x8000) || (key2 & 0x8000))) ? 1 : 0; in pkey_match()

1234