Home
last modified time | relevance | path

Searched refs:keys (Results 1 - 25 of 2420) sorted by relevance

12345678910>>...97

/kernel/linux/linux-5.10/drivers/input/keyboard/
H A Dipaq-micro-keys.c43 struct ipaq_micro_keys *keys = data; in micro_key_receive() local
50 input_report_key(keys->input, keys->codes[key], down); in micro_key_receive()
51 input_sync(keys->input); in micro_key_receive()
55 static void micro_key_start(struct ipaq_micro_keys *keys) in micro_key_start() argument
57 spin_lock(&keys->micro->lock); in micro_key_start()
58 keys->micro->key = micro_key_receive; in micro_key_start()
59 keys->micro->key_data = keys; in micro_key_start()
60 spin_unlock(&keys in micro_key_start()
63 micro_key_stop(struct ipaq_micro_keys *keys) micro_key_stop() argument
73 struct ipaq_micro_keys *keys = input_get_drvdata(input); micro_key_open() local
82 struct ipaq_micro_keys *keys = input_get_drvdata(input); micro_key_close() local
89 struct ipaq_micro_keys *keys; micro_key_probe() local
132 struct ipaq_micro_keys *keys = dev_get_drvdata(dev); micro_key_suspend() local
141 struct ipaq_micro_keys *keys = dev_get_drvdata(dev); micro_key_resume() local
[all...]
H A Dmtk-pmic-keys.c78 struct mtk_pmic_keys *keys; member
89 struct mtk_pmic_keys_info keys[MTK_PMIC_MAX_KEY_COUNT]; member
98 static void mtk_pmic_keys_lp_reset_setup(struct mtk_pmic_keys *keys, in mtk_pmic_keys_lp_reset_setup() argument
104 ret = of_property_read_u32(keys->dev->of_node, in mtk_pmic_keys_lp_reset_setup()
109 regmap_update_bits(keys->regmap, pmic_rst_reg, in mtk_pmic_keys_lp_reset_setup()
113 ret = of_property_read_u32(keys->dev->of_node, in mtk_pmic_keys_lp_reset_setup()
120 regmap_update_bits(keys->regmap, pmic_rst_reg, in mtk_pmic_keys_lp_reset_setup()
123 regmap_update_bits(keys->regmap, pmic_rst_reg, in mtk_pmic_keys_lp_reset_setup()
128 regmap_update_bits(keys->regmap, pmic_rst_reg, in mtk_pmic_keys_lp_reset_setup()
131 regmap_update_bits(keys in mtk_pmic_keys_lp_reset_setup()
168 mtk_pmic_key_setup(struct mtk_pmic_keys *keys, struct mtk_pmic_keys_info *info) mtk_pmic_key_setup() argument
198 struct mtk_pmic_keys *keys = dev_get_drvdata(dev); mtk_pmic_keys_suspend() local
211 struct mtk_pmic_keys *keys = dev_get_drvdata(dev); mtk_pmic_keys_resume() local
244 struct mtk_pmic_keys *keys; mtk_pmic_keys_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/input/keyboard/
H A Dipaq-micro-keys.c43 struct ipaq_micro_keys *keys = data; in micro_key_receive() local
50 input_report_key(keys->input, keys->codes[key], down); in micro_key_receive()
51 input_sync(keys->input); in micro_key_receive()
55 static void micro_key_start(struct ipaq_micro_keys *keys) in micro_key_start() argument
57 spin_lock(&keys->micro->lock); in micro_key_start()
58 keys->micro->key = micro_key_receive; in micro_key_start()
59 keys->micro->key_data = keys; in micro_key_start()
60 spin_unlock(&keys in micro_key_start()
63 micro_key_stop(struct ipaq_micro_keys *keys) micro_key_stop() argument
73 struct ipaq_micro_keys *keys = input_get_drvdata(input); micro_key_open() local
82 struct ipaq_micro_keys *keys = input_get_drvdata(input); micro_key_close() local
89 struct ipaq_micro_keys *keys; micro_key_probe() local
132 struct ipaq_micro_keys *keys = dev_get_drvdata(dev); micro_key_suspend() local
141 struct ipaq_micro_keys *keys = dev_get_drvdata(dev); micro_key_resume() local
[all...]
H A Dmtk-pmic-keys.c121 struct mtk_pmic_keys *keys; member
133 struct mtk_pmic_keys_info keys[MTK_PMIC_MAX_KEY_COUNT]; member
142 static void mtk_pmic_keys_lp_reset_setup(struct mtk_pmic_keys *keys, in mtk_pmic_keys_lp_reset_setup() argument
150 kregs_home = keys->keys[MTK_PMIC_HOMEKEY_INDEX].regs; in mtk_pmic_keys_lp_reset_setup()
151 kregs_pwr = keys->keys[MTK_PMIC_PWRKEY_INDEX].regs; in mtk_pmic_keys_lp_reset_setup()
153 error = of_property_read_u32(keys->dev->of_node, "power-off-time-sec", in mtk_pmic_keys_lp_reset_setup()
161 error = of_property_read_u32(keys->dev->of_node, in mtk_pmic_keys_lp_reset_setup()
185 regmap_update_bits(keys in mtk_pmic_keys_lp_reset_setup()
208 mtk_pmic_key_setup(struct mtk_pmic_keys *keys, struct mtk_pmic_keys_info *info) mtk_pmic_key_setup() argument
250 struct mtk_pmic_keys *keys = dev_get_drvdata(dev); mtk_pmic_keys_suspend() local
266 struct mtk_pmic_keys *keys = dev_get_drvdata(dev); mtk_pmic_keys_resume() local
313 struct mtk_pmic_keys *keys; mtk_pmic_keys_probe() local
[all...]
/foundation/arkui/ace_engine/test/unittest/core/base/
H A Dshort_cuts_test_ng.cpp93 std::vector<ModifierKey> keys; in HWTEST_F() local
94 keys.push_back(ModifierKey::SHIFT); in HWTEST_F()
95 ViewAbstract::SetKeyboardShortcut(VALUE_TAB, std::move(keys), callback); in HWTEST_F()
102 keys.push_back(ModifierKey::ALT); in HWTEST_F()
103 ViewAbstract::SetKeyboardShortcut(VALUE_TAB, std::move(keys), callback); in HWTEST_F()
110 keys.push_back(ModifierKey::CTRL); in HWTEST_F()
111 ViewAbstract::SetKeyboardShortcut(VALUE_TAB, std::move(keys), callback); in HWTEST_F()
113 keys.clear(); in HWTEST_F()
135 std::vector<ModifierKey> keys; in HWTEST_F() local
136 ViewAbstract::SetKeyboardShortcut(VALUE_TAB, std::move(keys), callbac in HWTEST_F()
160 std::vector<ModifierKey> keys; HWTEST_F() local
194 std::vector<ModifierKey> keys; HWTEST_F() local
228 std::vector<ModifierKey> keys; HWTEST_F() local
253 std::vector<ModifierKey> keys; HWTEST_F() local
287 std::vector<ModifierKey> keys; HWTEST_F() local
321 std::vector<ModifierKey> keys; HWTEST_F() local
363 std::vector<ModifierKey> keys; HWTEST_F() local
388 std::vector<ModifierKey> keys; HWTEST_F() local
422 std::vector<ModifierKey> keys; HWTEST_F() local
456 std::vector<ModifierKey> keys; HWTEST_F() local
498 std::vector<ModifierKey> keys; HWTEST_F() local
523 std::vector<ModifierKey> keys; HWTEST_F() local
557 std::vector<ModifierKey> keys; HWTEST_F() local
591 std::vector<ModifierKey> keys; HWTEST_F() local
633 std::vector<ModifierKey> keys; HWTEST_F() local
658 std::vector<ModifierKey> keys; HWTEST_F() local
692 std::vector<ModifierKey> keys; HWTEST_F() local
726 std::vector<ModifierKey> keys; HWTEST_F() local
768 std::vector<ModifierKey> keys; HWTEST_F() local
793 std::vector<ModifierKey> keys; HWTEST_F() local
827 std::vector<ModifierKey> keys; HWTEST_F() local
861 std::vector<ModifierKey> keys; HWTEST_F() local
903 std::vector<ModifierKey> keys; HWTEST_F() local
928 std::vector<ModifierKey> keys; HWTEST_F() local
962 std::vector<ModifierKey> keys; HWTEST_F() local
996 std::vector<ModifierKey> keys; HWTEST_F() local
1038 std::vector<ModifierKey> keys; HWTEST_F() local
1063 std::vector<ModifierKey> keys; HWTEST_F() local
1097 std::vector<ModifierKey> keys; HWTEST_F() local
1131 std::vector<ModifierKey> keys; HWTEST_F() local
1173 std::vector<ModifierKey> keys; HWTEST_F() local
1198 std::vector<ModifierKey> keys; HWTEST_F() local
1232 std::vector<ModifierKey> keys; HWTEST_F() local
1266 std::vector<ModifierKey> keys; HWTEST_F() local
1308 std::vector<ModifierKey> keys; HWTEST_F() local
1333 std::vector<ModifierKey> keys; HWTEST_F() local
1367 std::vector<ModifierKey> keys; HWTEST_F() local
1401 std::vector<ModifierKey> keys; HWTEST_F() local
[all...]
H A Dshort_cuts_little_test_ng.cpp88 std::vector<ModifierKey> keys; in HWTEST_F() local
89 ViewAbstract::SetKeyboardShortcut(VALUE_LITTLE_A, std::move(keys), callback); in HWTEST_F()
91 keys.clear(); in HWTEST_F()
113 std::vector<ModifierKey> keys; in HWTEST_F() local
114 keys.push_back(ModifierKey::ALT); in HWTEST_F()
115 ViewAbstract::SetKeyboardShortcut(VALUE_LITTLE_A, std::move(keys), callback); in HWTEST_F()
122 keys.push_back(ModifierKey::CTRL); in HWTEST_F()
123 ViewAbstract::SetKeyboardShortcut(VALUE_LITTLE_A, std::move(keys), callback); in HWTEST_F()
125 keys.clear(); in HWTEST_F()
147 std::vector<ModifierKey> keys; in HWTEST_F() local
181 std::vector<ModifierKey> keys; HWTEST_F() local
223 std::vector<ModifierKey> keys; HWTEST_F() local
248 std::vector<ModifierKey> keys; HWTEST_F() local
274 std::vector<ModifierKey> keys; HWTEST_F() local
300 std::vector<ModifierKey> keys; HWTEST_F() local
326 std::vector<ModifierKey> keys; HWTEST_F() local
351 std::vector<ModifierKey> keys; HWTEST_F() local
377 std::vector<ModifierKey> keys; HWTEST_F() local
403 std::vector<ModifierKey> keys; HWTEST_F() local
429 std::vector<ModifierKey> keys; HWTEST_F() local
454 std::vector<ModifierKey> keys; HWTEST_F() local
480 std::vector<ModifierKey> keys; HWTEST_F() local
506 std::vector<ModifierKey> keys; HWTEST_F() local
532 std::vector<ModifierKey> keys; HWTEST_F() local
557 std::vector<ModifierKey> keys; HWTEST_F() local
583 std::vector<ModifierKey> keys; HWTEST_F() local
609 std::vector<ModifierKey> keys; HWTEST_F() local
635 std::vector<ModifierKey> keys; HWTEST_F() local
660 std::vector<ModifierKey> keys; HWTEST_F() local
686 std::vector<ModifierKey> keys; HWTEST_F() local
712 std::vector<ModifierKey> keys; HWTEST_F() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dbpf_flow.c75 static __always_inline int export_flow_keys(struct bpf_flow_keys *keys, in export_flow_keys() argument
78 __u32 key = (__u32)(keys->sport) << 16 | keys->dport; in export_flow_keys()
81 memcpy(&val, keys, sizeof(val)); in export_flow_keys()
118 struct bpf_flow_keys *keys = skb->flow_keys; in parse_eth_proto() local
137 return export_flow_keys(keys, BPF_DROP); in parse_eth_proto()
140 return export_flow_keys(keys, BPF_DROP); in parse_eth_proto()
146 struct bpf_flow_keys *keys = skb->flow_keys; in _dissect() local
148 if (keys->n_proto == bpf_htons(ETH_P_IP)) { in _dissect()
161 return parse_eth_proto(skb, keys in _dissect()
167 struct bpf_flow_keys *keys = skb->flow_keys; parse_ip_proto() local
258 struct bpf_flow_keys *keys = skb->flow_keys; parse_ipv6_proto() local
278 struct bpf_flow_keys *keys = skb->flow_keys; IP() local
326 struct bpf_flow_keys *keys = skb->flow_keys; IPV6() local
348 struct bpf_flow_keys *keys = skb->flow_keys; IPV6OP() local
366 struct bpf_flow_keys *keys = skb->flow_keys; IPV6FR() local
394 struct bpf_flow_keys *keys = skb->flow_keys; MPLS() local
406 struct bpf_flow_keys *keys = skb->flow_keys; VLAN() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dbpf_flow.c74 static __always_inline int export_flow_keys(struct bpf_flow_keys *keys, in export_flow_keys() argument
77 __u32 key = (__u32)(keys->sport) << 16 | keys->dport; in export_flow_keys()
80 memcpy(&val, keys, sizeof(val)); in export_flow_keys()
117 struct bpf_flow_keys *keys = skb->flow_keys; in parse_eth_proto() local
136 return export_flow_keys(keys, BPF_DROP); in parse_eth_proto()
139 return export_flow_keys(keys, BPF_DROP); in parse_eth_proto()
145 struct bpf_flow_keys *keys = skb->flow_keys; in _dissect() local
147 return parse_eth_proto(skb, keys->n_proto); in _dissect()
153 struct bpf_flow_keys *keys in parse_ip_proto() local
244 struct bpf_flow_keys *keys = skb->flow_keys; parse_ipv6_proto() local
264 struct bpf_flow_keys *keys = skb->flow_keys; IP() local
312 struct bpf_flow_keys *keys = skb->flow_keys; IPV6() local
334 struct bpf_flow_keys *keys = skb->flow_keys; IPV6OP() local
352 struct bpf_flow_keys *keys = skb->flow_keys; IPV6FR() local
378 struct bpf_flow_keys *keys = skb->flow_keys; MPLS() local
390 struct bpf_flow_keys *keys = skb->flow_keys; VLAN() local
[all...]
/kernel/linux/linux-6.6/arch/arm64/include/asm/
H A Dpointer_auth.h33 * We give each process its own keys, which are shared by all threads. The keys
57 static __always_inline void ptrauth_keys_init_kernel(struct ptrauth_keys_kernel *keys) in ptrauth_keys_init_kernel() argument
60 get_random_bytes(&keys->apia, sizeof(keys->apia)); in ptrauth_keys_init_kernel()
63 static __always_inline void ptrauth_keys_switch_kernel(struct ptrauth_keys_kernel *keys) in ptrauth_keys_switch_kernel() argument
68 __ptrauth_key_install_nosync(APIA, keys->apia); in ptrauth_keys_switch_kernel()
74 static inline void ptrauth_keys_install_user(struct ptrauth_keys_user *keys) in ptrauth_keys_install_user() argument
77 __ptrauth_key_install_nosync(APIB, keys->apib); in ptrauth_keys_install_user()
78 __ptrauth_key_install_nosync(APDA, keys in ptrauth_keys_install_user()
86 ptrauth_keys_init_user(struct ptrauth_keys_user *keys) ptrauth_keys_init_user() argument
[all...]
/foundation/filemanagement/app_file_service/utils/src/b_json/
H A Db_report_entity.cpp67 static void ParseSplitsItem(const vector<string> &splits, const unordered_map<string, int> &keys, in ParseSplitsItem() argument
72 if (i <= splitsLen - keys.size()) { in ParseSplitsItem()
82 const unordered_map<string, int> &keys) in ParseReportInfo()
90 ParseSplitsItem(splits, keys, residue, path); in ParseReportInfo()
91 if (residue.size() != keys.size() - 1) { in ParseReportInfo()
95 if (keys.find(INFO_ENCODE_FLAG) != keys.end()) { in ParseReportInfo()
96 fileStat.encodeFlag = residue[keys.find(INFO_ENCODE_FLAG)->second] == "1" ? true : false; in ParseReportInfo()
102 if (keys.find(INFO_MODE) != keys in ParseReportInfo()
80 ParseReportInfo(struct ReportFileInfo &fileStat, const vector<string> &splits, const unordered_map<string, int> &keys) ParseReportInfo() argument
133 DealLine(unordered_map<string, int> &keys, int &num, const string &line, unordered_map<string, struct ReportFileInfo> &infos) DealLine() argument
166 StorageDealLine(unordered_map<string, int> &keys, int &num, const string &line) StorageDealLine() argument
204 unordered_map<string, int> keys; GetReportInfos() local
231 static unordered_map<string, int> keys; GetStorageReportInfos() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dtcp_fastopen_backup_key.c5 * New keys are 'rotated' in two steps:
7 * 2) Make new key the primary by swapping the backup and primary keys
51 static void get_keys(int fd, uint32_t *keys) in get_keys() argument
57 if (getsockopt(fd, SOL_TCP, TCP_FASTOPEN_KEY, keys, &len)) in get_keys()
64 if (sscanf(buf, "%x-%x-%x-%x,%x-%x-%x-%x", keys, keys + 1, keys + 2, in get_keys()
65 keys + 3, keys + 4, keys in get_keys()
69 set_keys(int fd, uint32_t *keys) set_keys() argument
98 uint32_t keys[8]; build_rcv_fd() local
217 uint32_t keys[8]; rotate_key() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dtcp_fastopen_backup_key.c5 * New keys are 'rotated' in two steps:
7 * 2) Make new key the primary by swapping the backup and primary keys
49 static void get_keys(int fd, uint32_t *keys) in get_keys() argument
55 if (getsockopt(fd, SOL_TCP, TCP_FASTOPEN_KEY, keys, &len)) in get_keys()
62 if (sscanf(buf, "%x-%x-%x-%x,%x-%x-%x-%x", keys, keys + 1, keys + 2, in get_keys()
63 keys + 3, keys + 4, keys in get_keys()
67 set_keys(int fd, uint32_t *keys) set_keys() argument
96 uint32_t keys[8]; build_rcv_fd() local
215 uint32_t keys[8]; rotate_key() local
[all...]
/kernel/linux/linux-5.10/arch/arm64/include/asm/
H A Dpointer_auth.h22 * We give each process its own keys, which are shared by all threads. The keys
37 static inline void ptrauth_keys_init_user(struct ptrauth_keys_user *keys) in ptrauth_keys_init_user() argument
40 get_random_bytes(&keys->apia, sizeof(keys->apia)); in ptrauth_keys_init_user()
41 get_random_bytes(&keys->apib, sizeof(keys->apib)); in ptrauth_keys_init_user()
42 get_random_bytes(&keys->apda, sizeof(keys->apda)); in ptrauth_keys_init_user()
43 get_random_bytes(&keys in ptrauth_keys_init_user()
57 ptrauth_keys_init_kernel(struct ptrauth_keys_kernel *keys) ptrauth_keys_init_kernel() argument
63 ptrauth_keys_switch_kernel(struct ptrauth_keys_kernel *keys) ptrauth_keys_switch_kernel() argument
[all...]
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_json/
H A Db_report_entity_test.cpp162 unordered_map<string, int> keys; in HWTEST_F() local
163 auto err = ParseReportInfo(fileStat, splits, keys); in HWTEST_F()
168 keys.emplace(INFO_MODE, 0); in HWTEST_F()
169 keys.emplace(INFO_DIR, 1); in HWTEST_F()
170 keys.emplace(INFO_SIZE, 2); in HWTEST_F()
171 keys.emplace(INFO_MTIME, 3); in HWTEST_F()
172 keys.emplace(INFO_HASH, 4); in HWTEST_F()
173 keys.emplace(INFO_IS_INCREMENTAL, 5); in HWTEST_F()
174 err = ParseReportInfo(fileStat, splits, keys); in HWTEST_F()
179 keys in HWTEST_F()
207 unordered_map<string, int> keys; HWTEST_F() local
249 unordered_map<string, int> keys; HWTEST_F() local
274 unordered_map<string, int> keys; HWTEST_F() local
298 unordered_map<string, int> keys; HWTEST_F() local
322 unordered_map<string, int> keys; HWTEST_F() local
346 unordered_map<string, int> keys; HWTEST_F() local
385 unordered_map<string, int> keys; HWTEST_F() local
[all...]
/kernel/linux/linux-6.6/arch/arm64/kernel/
H A Dpointer_auth.c13 struct ptrauth_keys_user *keys = &tsk->thread.keys_user; in ptrauth_prctl_reset_keys() local
25 ptrauth_keys_init_user(keys); in ptrauth_prctl_reset_keys()
37 get_random_bytes(&keys->apia, sizeof(keys->apia)); in ptrauth_prctl_reset_keys()
39 get_random_bytes(&keys->apib, sizeof(keys->apib)); in ptrauth_prctl_reset_keys()
41 get_random_bytes(&keys->apda, sizeof(keys->apda)); in ptrauth_prctl_reset_keys()
43 get_random_bytes(&keys->apdb, sizeof(keys in ptrauth_prctl_reset_keys()
67 ptrauth_set_enabled_keys(struct task_struct *tsk, unsigned long keys, unsigned long enabled) ptrauth_set_enabled_keys() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/map_tests/
H A Darray_map_batch_ops.c12 static void map_batch_update(int map_fd, __u32 max_entries, int *keys, in map_batch_update() argument
22 keys[i] = i; in map_batch_update()
26 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update()
31 int *keys, int *values) in map_batch_verify()
37 CHECK(keys[i] + 1 != values[i], "key/value checking", in map_batch_verify()
38 "error: i %d key %d value %d\n", i, keys[i], values[i]); in map_batch_verify()
43 "error: keys array at index %d missing\n", i); in map_batch_verify()
55 int map_fd, *keys, *values, *visited; in test_array_map_batch_ops() local
71 keys = malloc(max_entries * sizeof(int)); in test_array_map_batch_ops()
74 CHECK(!keys || !value in test_array_map_batch_ops()
30 map_batch_verify(int *visited, __u32 max_entries, int *keys, int *values) map_batch_verify() argument
[all...]
H A Dhtab_map_batch_ops.c13 static void map_batch_update(int map_fd, __u32 max_entries, int *keys, in map_batch_update() argument
28 keys[i] = i + 1; in map_batch_update()
36 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update()
41 int *keys, void *values, bool is_pcpu) in map_batch_verify()
55 CHECK(keys[i] + 1 + j != bpf_percpu(v[i], j), in map_batch_verify()
58 i, j, keys[i], bpf_percpu(v[i], j)); in map_batch_verify()
61 CHECK(keys[i] + 1 != ((int *)values)[i], in map_batch_verify()
63 "error: i %d key %d value %d\n", i, keys[i], in map_batch_verify()
72 "error: keys array at index %d missing\n", i); in map_batch_verify()
80 int map_fd, *keys, *visite in __test_map_lookup_and_delete_batch() local
40 map_batch_verify(int *visited, __u32 max_entries, int *keys, void *values, bool is_pcpu) map_batch_verify() argument
[all...]
/kernel/linux/linux-5.10/arch/arm64/kernel/
H A Dpointer_auth.c13 struct ptrauth_keys_user *keys = &tsk->thread.keys_user; in ptrauth_prctl_reset_keys() local
25 ptrauth_keys_init_user(keys); in ptrauth_prctl_reset_keys()
37 get_random_bytes(&keys->apia, sizeof(keys->apia)); in ptrauth_prctl_reset_keys()
39 get_random_bytes(&keys->apib, sizeof(keys->apib)); in ptrauth_prctl_reset_keys()
41 get_random_bytes(&keys->apda, sizeof(keys->apda)); in ptrauth_prctl_reset_keys()
43 get_random_bytes(&keys->apdb, sizeof(keys in ptrauth_prctl_reset_keys()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/
H A Dhtab_map_batch_ops.c14 static void map_batch_update(int map_fd, __u32 max_entries, int *keys, in map_batch_update() argument
29 keys[i] = i + 1; in map_batch_update()
37 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update()
42 int *keys, void *values, bool is_pcpu) in map_batch_verify()
56 CHECK(keys[i] + 1 + j != bpf_percpu(v[i], j), in map_batch_verify()
59 i, j, keys[i], bpf_percpu(v[i], j)); in map_batch_verify()
62 CHECK(keys[i] + 1 != ((int *)values)[i], in map_batch_verify()
64 "error: i %d key %d value %d\n", i, keys[i], in map_batch_verify()
73 "error: keys array at index %d missing\n", i); in map_batch_verify()
81 int map_fd, *keys, *visite in __test_map_lookup_and_delete_batch() local
41 map_batch_verify(int *visited, __u32 max_entries, int *keys, void *values, bool is_pcpu) map_batch_verify() argument
[all...]
H A Darray_map_batch_ops.c15 static void map_batch_update(int map_fd, __u32 max_entries, int *keys, in map_batch_update() argument
26 keys[i] = i; in map_batch_update()
36 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update()
40 static void map_batch_verify(int *visited, __u32 max_entries, int *keys, in map_batch_verify() argument
52 CHECK(keys[i] + j + 1 != value, in map_batch_verify()
55 j, keys[i], value); in map_batch_verify()
58 CHECK(keys[i] + 1 != values[i], "key/value checking", in map_batch_verify()
59 "error: i %d key %d value %lld\n", i, keys[i], in map_batch_verify()
66 "error: keys array at index %d missing\n", i); in map_batch_verify()
72 int map_fd, *keys, *visite in __test_map_lookup_and_update_batch() local
[all...]
H A Dlpm_trie_map_batch_ops.c23 struct test_lpm_key *keys, int *values) in map_batch_update()
34 keys[i].prefix = 32; in map_batch_update()
36 inet_pton(AF_INET, buff, &keys[i].ipv4); in map_batch_update()
40 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update()
45 struct test_lpm_key *keys, int *values) in map_batch_verify()
53 inet_ntop(AF_INET, &keys[i].ipv4, buff, 32); in map_batch_verify()
62 "error: keys array at index %d missing\n", i); in map_batch_verify()
69 struct test_lpm_key *keys, key; in test_lpm_trie_map_batch_ops() local
86 keys = malloc(max_entries * sizeof(struct test_lpm_key)); in test_lpm_trie_map_batch_ops()
89 CHECK(!keys || !value in test_lpm_trie_map_batch_ops()
22 map_batch_update(int map_fd, __u32 max_entries, struct test_lpm_key *keys, int *values) map_batch_update() argument
44 map_batch_verify(int *visited, __u32 max_entries, struct test_lpm_key *keys, int *values) map_batch_verify() argument
[all...]
/kernel/linux/linux-5.10/drivers/input/misc/
H A Ddm355evm_keys.c102 struct dm355evm_keys *keys = _keys; in dm355evm_keys_irq() local
115 dev_dbg(keys->dev, "input high err %d\n", in dm355evm_keys_irq()
123 dev_dbg(keys->dev, "input low err %d\n", in dm355evm_keys_irq()
152 ke = sparse_keymap_entry_from_scancode(keys->input, event); in dm355evm_keys_irq()
154 dev_dbg(keys->dev, in dm355evm_keys_irq()
159 input_report_key(keys->input, keycode, 1); in dm355evm_keys_irq()
160 input_sync(keys->input); in dm355evm_keys_irq()
161 input_report_key(keys->input, keycode, 0); in dm355evm_keys_irq()
162 input_sync(keys->input); in dm355evm_keys_irq()
172 struct dm355evm_keys *keys; in dm355evm_keys_probe() local
[all...]
/kernel/linux/linux-5.10/drivers/md/bcache/
H A Dbtree.c18 * as keys are inserted we only sort the pages that have not yet been written.
52 * Check for bad keys in replay
115 if (b->level && b->keys.nsets) in bch_btree_init_next()
116 bch_btree_sort(&b->keys, &b->c->sort); in bch_btree_init_next()
118 bch_btree_sort_lazy(&b->keys, &b->c->sort); in bch_btree_init_next()
121 bch_bset_init_next(&b->keys, write_block(b), in bch_btree_init_next()
164 iter->b = &b->keys; in bch_btree_node_read_done()
171 b->written < btree_blocks(b) && i->seq == b->keys.set[0].data->seq; in bch_btree_node_read_done()
199 if (i != b->keys.set[0].data && !i->keys) in bch_btree_node_read_done()
1284 unsigned int keys = 0, good_keys = 0; btree_gc_mark_node() local
1327 unsigned int keys; global() member
1338 unsigned int i, nodes = 0, keys = 0, blocks; btree_gc_coalesce() local
1509 struct keylist keys; btree_gc_rewrite_node() local
2236 unsigned int keys = 0; btree_split() local
2438 struct keylist *keys; global() member
2456 bch_btree_insert(struct cache_set *c, struct keylist *keys, atomic_t *journal_ref, struct bkey *replace_key) bch_btree_insert() argument
[all...]
/kernel/linux/linux-6.6/drivers/md/bcache/
H A Dbtree.c18 * as keys are inserted we only sort the pages that have not yet been written.
52 * Check for bad keys in replay
115 if (b->level && b->keys.nsets) in bch_btree_init_next()
116 bch_btree_sort(&b->keys, &b->c->sort); in bch_btree_init_next()
118 bch_btree_sort_lazy(&b->keys, &b->c->sort); in bch_btree_init_next()
121 bch_bset_init_next(&b->keys, write_block(b), in bch_btree_init_next()
164 iter->b = &b->keys; in bch_btree_node_read_done()
171 b->written < btree_blocks(b) && i->seq == b->keys.set[0].data->seq; in bch_btree_node_read_done()
199 if (i != b->keys.set[0].data && !i->keys) in bch_btree_node_read_done()
1305 unsigned int keys = 0, good_keys = 0; btree_gc_mark_node() local
1348 unsigned int keys; global() member
1359 unsigned int i, nodes = 0, keys = 0, blocks; btree_gc_coalesce() local
1530 struct keylist keys; btree_gc_rewrite_node() local
2257 unsigned int keys = 0; btree_split() local
2459 struct keylist *keys; global() member
2477 bch_btree_insert(struct cache_set *c, struct keylist *keys, atomic_t *journal_ref, struct bkey *replace_key) bch_btree_insert() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/
H A Denic_clsf.c15 * @keys: flow_keys of ipv4 5tuple
21 int enic_addfltr_5t(struct enic *enic, struct flow_keys *keys, u16 rq) in enic_addfltr_5t() argument
26 switch (keys->basic.ip_proto) { in enic_addfltr_5t()
38 data.u.ipv4.src_addr = ntohl(keys->addrs.v4addrs.src); in enic_addfltr_5t()
39 data.u.ipv4.dst_addr = ntohl(keys->addrs.v4addrs.dst); in enic_addfltr_5t()
40 data.u.ipv4.src_port = ntohs(keys->ports.src); in enic_addfltr_5t()
41 data.u.ipv4.dst_port = ntohs(keys->ports.dst); in enic_addfltr_5t()
162 if (tpos->keys.addrs.v4addrs.src == k->addrs.v4addrs.src && in htbl_key_search()
163 tpos->keys.addrs.v4addrs.dst == k->addrs.v4addrs.dst && in htbl_key_search()
164 tpos->keys in htbl_key_search()
174 struct flow_keys keys; enic_rx_flow_steer() local
[all...]

Completed in 14 milliseconds

12345678910>>...97