Home
last modified time | relevance | path

Searched full:key1 (Results 1 – 25 of 129) sorted by relevance

123456

/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()
100 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler()
102 if (keypad->key2 && key1 != keypad->key2 && key2 != keypad->key2) 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()
113 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler()
[all …]
/openbmc/phosphor-logging/test/openpower-pels/
H A Dadditional_data_test.cpp25 {"KEY1", "VALUE1"}, {"KEY2", "VALUE2"}, {"KEY3", ""}}; in TEST()
28 EXPECT_TRUE(ad.getValue("KEY1")); in TEST()
29 EXPECT_EQ(*(ad.getValue("KEY1")), "VALUE1"); in TEST()
44 std::string expected = R"({"KEY1":"VALUE1","KEY2":"VALUE2","KEY3":""})"; in TEST()
47 ad.remove("KEY1"); in TEST()
48 EXPECT_FALSE(ad.getValue("KEY1")); in TEST()
55 ad.add("KEY1", "VALUE1"); in TEST()
56 EXPECT_EQ(*(ad.getValue("KEY1")), "VALUE1"); in TEST()
61 std::map<std::string, std::string> expected{{"KEY1", "VALUE1"}, in TEST()
/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()
360 snd_config_t *conf_get_subtree(snd_config_t *root, const char *key1, const char *key2) in conf_get_subtree() argument
366 ret = conf_get_by_keys(root, key1, key2, &root); in conf_get_subtree()
370 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret)); in conf_get_subtree()
374 int conf_get_count(snd_config_t *root, const char *key1, const char *key2) in conf_get_count() argument
382 ret = conf_get_by_keys(root, key1, key2, &cfg); in conf_get_count()
386 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret)); in conf_get_count()
388 ksft_exit_fail_msg("key '%s'.'%s' is not a compound\n", key1, key2); in conf_get_count()
[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/arch/arm/crypto/
H A Daes-ce-core.S26 .macro enc_dround, key1, key2
27 enc_round q0, \key1
31 .macro dec_dround, key1, key2
32 dec_round q0, \key1
36 .macro enc_fround, key1, key2, key3
37 enc_round q0, \key1
42 .macro dec_fround, key1, key2, key3
43 dec_round q0, \key1
48 .macro enc_dround_4x, key1, key2
49 enc_round q0, \key1
[all …]
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_btree.h163 * Difference between key2 and key1 -- positive if key1 > key2,
164 * negative if key1 < key2, and zero if equal. If the @mask parameter
169 const union xfs_btree_key *key1,
188 * Given two btree keys @key1 and @key2, decide if it is impossible for
190 * @key1 < K < @key2. To determine if two btree records are
191 * immediately adjacent, @key1 should be the high key of the first
197 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
603 return cur->bc_ops->diff_two_keys(cur, key1, key2, NULL) < 0; in xfs_btree_keycmp_lt()
[all …]
/openbmc/linux/fs/befs/
H A Dbtree.c119 static int befs_compare_strings(const void *key1, int keylen1,
702 * @key1: pointer to the first key to be compared
703 * @keylen1: length in bytes of key1
707 * Returns 0 if @key1 and @key2 are equal.
708 * Returns >0 if @key1 is greater.
712 befs_compare_strings(const void *key1, int keylen1, in befs_compare_strings() argument
716 int result = strncmp(key1, key2, len); in befs_compare_strings()
725 btree_compare_int32(cont void *key1, int keylen1, const void *key2, int keylen2)
727 return *(int32_t *) key1 - *(int32_t *) key2;
731 btree_compare_uint32(cont void *key1, int keylen1,
[all …]
/openbmc/u-boot/board/k+p/kp_imx53/
H A Dkp_imx53.c26 #define KEY1 IMX_GPIO_NR(2, 26) macro
190 gpio_request(KEY1, "KEY1_GPIO"); in board_misc_setup()
191 gpio_direction_input(KEY1); in board_misc_setup()
193 if (gpio_get_value(KEY1)) in board_misc_setup()
194 env_set("key1", "off"); in board_misc_setup()
196 env_set("key1", "on"); in board_misc_setup()
/openbmc/u-boot/fs/ubifs/
H A Dkey.h465 * @key1: the first key to compare
468 * This function compares 2 keys and returns %-1 if @key1 is less than
469 * @key2, %0 if the keys are equivalent and %1 if @key1 is greater than @key2.
472 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()
490 * @key1: the first key to compare
493 * This function compares 2 keys and returns %1 if @key1 is equal to @key2 and
[all …]
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()
/openbmc/linux/fs/ubifs/
H A Dkey.h472 * @key1: the first key to compare
475 * This function compares 2 keys and returns %-1 if @key1 is less than
476 * @key2, %0 if the keys are equivalent and %1 if @key1 is greater than @key2.
479 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()
497 * @key1: the first key to compare
500 * This function compares 2 keys and returns %1 if @key1 is equal to @key2 and
[all …]
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()
/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/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Logging/
H A DCreate.interface.yaml24 "key1": "value1",
28 ["KEY1=value1", "KEY2=value2"]
60 "key1": "value1",
64 ["KEY1=value1", "KEY2=value2"]
/openbmc/linux/kernel/futex/
H A Dfutex.h130 * @key1: Pointer to key1
135 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/fs/hfs/
H A Dcatalog.c160 * struct hfs_cat_key *key1: pointer to the first key to compare
165 * int: negative if key1<key2, positive if key1>key2, and 0 if key1==key2
167 * key1 and key2 point to "valid" (struct hfs_cat_key)s.
171 int hfs_cat_keycmp(const btree_key *key1, const btree_key *key2) in hfs_cat_keycmp() argument
175 k1p = key1->cat.ParID; in hfs_cat_keycmp()
181 return hfs_strcmp(key1->cat.CName.name, key1->cat.CName.len, in hfs_cat_keycmp()
H A Dextent.c40 * struct hfs_ext_key *key1: pointer to the first key to compare
45 * int: negative if key1<key2, positive if key1>key2, and 0 if key1==key2
47 * key1 and key2 point to "valid" (struct hfs_ext_key)s.
50 int hfs_ext_keycmp(const btree_key *key1, const btree_key *key2) in hfs_ext_keycmp() argument
55 fnum1 = key1->ext.FNum; in hfs_ext_keycmp()
59 if (key1->ext.FkType != key2->ext.FkType) in hfs_ext_keycmp()
60 return key1->ext.FkType < key2->ext.FkType ? -1 : 1; in hfs_ext_keycmp()
62 block1 = key1->ext.FABN; in hfs_ext_keycmp()
/openbmc/u-boot/common/
H A Dhwconfig.c245 env_set("hwconfig", "key1:subkey1=value1,subkey2=value2;key2:value3;;;;" in main()
248 ret = hwconfig_arg("key1", &len); in main()
251 assert(hwconfig_arg_cmp("key1", "subkey1=value1,subkey2=value2")); in main()
254 ret = hwconfig_subarg("key1", "subkey1", &len); in main()
257 assert(hwconfig_subarg_cmp("key1", "subkey1", "value1")); in main()
260 ret = hwconfig_subarg("key1", "subkey2", &len); in main()
263 assert(hwconfig_subarg_cmp("key1", "subkey2", "value2")); in main()
/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()
/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.pl1958 # const AES_KEY *key1, const AES_KEY *key2, #
1966 my ($inp,$out,$len,$key1,$key2,$ivp,$rounds,$idx) = map("r$_",(3..10));
2051 ?lvsl $keyperm,0,$key1 # prepare for unaligned key
2052 lwz $rounds,240($key1)
2072 lvx $rndkey0,0,$key1
2073 lvx $rndkey1,$idx,$key1
2079 lvx $rndkey0,$idx,$key1
2088 lvx $rndkey1,$idx,$key1
2092 lvx $rndkey0,$idx,$key1
2098 lvx $rndkey1,$idx,$key1
[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/qemu/qga/
H A Dcommands-posix-ssh.c251 .value = (char *)"algo key1 comments",
341 "algo key1 comments"); in test_add_keys()
356 test_authorized_keys_equal("algo key1 comments\n" in test_add_reset_keys()
382 "algo key1 comments\n" in test_remove_keys()
384 "algo key1 comments\n" in test_remove_keys()
406 "algo key1 comments\n" in test_get_keys()
/openbmc/linux/arch/arm64/crypto/
H A Daes-glue.c117 struct crypto_aes_ctx key1; member
122 struct crypto_aes_ctx key1; member
155 ret = aes_expandkey(&ctx->key1, in_key, key_len / 2); in xts_set_key()
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()
545 int err, first, rounds = 6 + ctx->key1.key_length / 4; in xts_encrypt()
584 ctx->key1.key_enc, rounds, nbytes, in xts_encrypt()
[all …]
/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()

123456