/openbmc/linux/fs/btrfs/ |
H A D | uuid-tree.c | 19 key->type = type; in btrfs_uuid_to_key() 34 struct btrfs_key key; in btrfs_uuid_tree_lookup() local 92 struct btrfs_key key; in btrfs_uuid_tree_add() local 135 ret, key.objectid, key.offset, type); in btrfs_uuid_tree_add() 156 struct btrfs_key key; in btrfs_uuid_tree_remove() local 296 struct btrfs_key key; in btrfs_uuid_tree_iterate() local 310 key.objectid = 0; in btrfs_uuid_tree_iterate() 311 key.type = 0; in btrfs_uuid_tree_iterate() 312 key.offset = 0; in btrfs_uuid_tree_iterate() 355 key.type, subid_cpu); in btrfs_uuid_tree_iterate() [all …]
|
H A D | orphan.c | 14 struct btrfs_key key; in btrfs_insert_orphan_item() local 17 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_insert_orphan_item() 18 key.type = BTRFS_ORPHAN_ITEM_KEY; in btrfs_insert_orphan_item() 19 key.offset = offset; in btrfs_insert_orphan_item() 25 ret = btrfs_insert_empty_item(trans, root, path, &key, 0); in btrfs_insert_orphan_item() 35 struct btrfs_key key; in btrfs_del_orphan_item() local 38 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_del_orphan_item() 39 key.type = BTRFS_ORPHAN_ITEM_KEY; in btrfs_del_orphan_item() 40 key.offset = offset; in btrfs_del_orphan_item() 46 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_orphan_item()
|
/openbmc/u-boot/fs/ubifs/ |
H A D | tnc.c | 1542 key = &zbr->key; in ubifs_tnc_get_bu_keys() 1880 key = &znode->zbranch[0].key; in correct_parent_keys() 1961 union ubifs_key *key = &zbr->key, *key1; in tnc_insert() local 2092 zbr->key = zn->zbranch[0].key; in tnc_insert() 2115 zi->zbranch[0].key = znode->zbranch[0].key; in tnc_insert() 2120 zi->zbranch[1].key = zn->zbranch[0].key; in tnc_insert() 2164 key_copy(c, key, &zbr.key); in ubifs_tnc_add() 2335 key_copy(c, key, &zbr.key); in ubifs_tnc_add_nm() 2609 key = &znode->zbranch[n].key; in ubifs_tnc_remove_range() 2627 key = &znode->zbranch[i].key; in ubifs_tnc_remove_range() [all …]
|
/openbmc/linux/fs/ubifs/ |
H A D | tnc.c | 1592 key = &zbr->key; in ubifs_tnc_get_bu_keys() 2041 key = &znode->zbranch[0].key; in correct_parent_keys() 2123 union ubifs_key *key = &zbr->key, *key1; in tnc_insert() local 2254 zbr->key = zn->zbranch[0].key; in tnc_insert() 2277 zi->zbranch[0].key = znode->zbranch[0].key; in tnc_insert() 2282 zi->zbranch[1].key = zn->zbranch[0].key; in tnc_insert() 2328 key_copy(c, key, &zbr.key); in ubifs_tnc_add() 2503 key_copy(c, key, &zbr.key); in ubifs_tnc_add_nm() 2845 key = &znode->zbranch[n].key; in ubifs_tnc_remove_range() 2863 key = &znode->zbranch[i].key; in ubifs_tnc_remove_range() [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-crypto-afsplit.c | 32 const uint8_t *key; member 42 .key = (const uint8_t *) 74 .key = (const uint8_t *) 83 .key = (const uint8_t *) 94 .key = (const uint8_t *) 141 data->key, splitkey, in test_afsplit() 146 splitkey, key, in test_afsplit() 150 actual = hex_string(key, data->blocklen); in test_afsplit() 159 memset(key, 0, data->blocklen); in test_afsplit() 167 actual = hex_string(key, data->blocklen); in test_afsplit() [all …]
|
/openbmc/linux/samples/bpf/ |
H A D | tracex3_user.c | 21 __u32 key; in clear_stats() local 24 for (key = 0; key < SLOTS; key++) in clear_stats() 25 bpf_map_update_elem(fd, &key, values, BPF_ANY); in clear_stats() 82 __u32 key; in print_hist() local 85 for (key = 0; key < SLOTS; key++) { in print_hist() 86 bpf_map_lookup_elem(fd, &key, values); in print_hist() 90 cnt[key] = value; in print_hist() 96 for (key = full_range ? 0 : 29; key < SLOTS; key++) { in print_hist() 97 int c = num_colors * cnt[key] / (max_cnt + 1); in print_hist()
|
H A D | offwaketime.bpf.c | 29 __type(key, struct key_t); 36 __type(key, u32); 48 __type(key, u32); 80 struct key_t key; in update_counts() local 82 __builtin_memset(&key.waker, 0, sizeof(key.waker)); in update_counts() 83 bpf_get_current_comm(&key.target, sizeof(key.target)); in update_counts() 85 key.wret = 0; in update_counts() 89 key.wret = woke->ret; in update_counts() 90 __builtin_memcpy(&key.waker, woke->name, sizeof(key.waker)); in update_counts() 94 val = bpf_map_lookup_elem(&counts, &key); in update_counts() [all …]
|
/openbmc/linux/fs/cachefiles/ |
H A D | key.c | 45 _enter(",%u,%*phN", keylen, keylen, key); in cachefiles_cook_key() 51 ch = key[i]; in cachefiles_cook_key() 63 memcpy(name + 1, key, keylen); in cachefiles_cook_key() 95 x = be32_to_cpu(*(__be32 *)(key + i)); in cachefiles_cook_key() 114 kend = key + keylen; in cachefiles_cook_key() 116 acc = *key++; in cachefiles_cook_key() 117 if (key < kend) { in cachefiles_cook_key() 118 acc |= *key++ << 8; in cachefiles_cook_key() 119 if (key < kend) in cachefiles_cook_key() 120 acc |= *key++ << 16; in cachefiles_cook_key() [all …]
|
/openbmc/linux/security/keys/ |
H A D | process_keys.c | 320 struct key *old; in install_session_keyring_to_cred() 587 bool lookup_user_key_possessed(const struct key *key, in lookup_user_key_possessed() argument 621 struct key *key, *user_session; in lookup_user_key() local 644 __key_get(key); in lookup_user_key() 662 __key_get(key); in lookup_user_key() 692 __key_get(key); in lookup_user_key() 717 if (!key) in lookup_user_key() 720 __key_get(key); in lookup_user_key() 732 key = NULL; in lookup_user_key() 739 if (!key) in lookup_user_key() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | lsm.c | 17 __type(key, __u32); 24 __type(key, __u32); 31 __type(key, __u32); 38 __type(key, __u32); 45 __type(key, __u32); 52 __type(key, __u32); 59 __type(key, int); 115 __u32 key = 0; in BPF_PROG() local 124 value = bpf_map_lookup_elem(&array, &key); in BPF_PROG() 127 value = bpf_map_lookup_elem(&hash, &key); in BPF_PROG() [all …]
|
H A D | test_map_in_map.c | 12 __type(key, __u32); 20 __type(key, int); 30 __type(key, __u32); 37 __type(key, __u32); 45 __type(key, __u32); 55 int key = 0; in xdp_mimtest0() local 58 map = bpf_map_lookup_elem(&mim_array, &key); in xdp_mimtest0() 62 bpf_map_update_elem(map, &key, &value, 0); in xdp_mimtest0() 63 value_p = bpf_map_lookup_elem(map, &key); in xdp_mimtest0() 67 map = bpf_map_lookup_elem(&mim_hash, &key); in xdp_mimtest0() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf_map_in_map.c | 28 int err, key = 0, val, i; in test_lookup_update() local 48 bpf_map_update_elem(outer_arr_fd, &key, &map1_fd, 0); in test_lookup_update() 49 bpf_map_update_elem(outer_hash_fd, &key, &map2_fd, 0); in test_lookup_update() 53 bpf_map_lookup_elem(map1_fd, &key, &val); in test_lookup_update() 55 bpf_map_lookup_elem(map2_fd, &key, &val); in test_lookup_update() 57 bpf_map_lookup_elem(map3_fd, &key, &val); in test_lookup_update() 61 bpf_map_update_elem(outer_arr_fd, &key, &map2_fd, 0); in test_lookup_update() 66 bpf_map_lookup_elem(map1_fd, &key, &val); in test_lookup_update() 68 bpf_map_lookup_elem(map2_fd, &key, &val); in test_lookup_update() 70 bpf_map_lookup_elem(map4_fd, &key, &val); in test_lookup_update() [all …]
|
H A D | map_init.c | 24 map_key_t key; in map_populate() local 29 for (key = 1; key <= num; key++) { in map_populate() 85 bss->inKey = key; in prog_run_insert_elem() 134 map_key_t key; in test_pcpu_map_init() local 142 key = 1; in test_pcpu_map_init() 143 err = bpf_map_delete_elem(map_fd, &key); in test_pcpu_map_init() 148 err = prog_run_insert_elem(skel, key, TEST_VALUE); in test_pcpu_map_init() 153 err = bpf_map_lookup_elem(map_fd, &key, value); in test_pcpu_map_init() 174 map_key_t key; in test_pcpu_lru_map_init() local 184 key = 3; in test_pcpu_lru_map_init() [all …]
|
/openbmc/linux/tools/bpf/bpftool/ |
H A D | map.c | 352 if (!key) { in parse_elem() 887 free(key); in map_dump() 1022 free(key); in do_update() 1112 free(key); in do_lookup() 1148 free(key); in do_getnext() 1160 if (key) { in do_getnext() 1170 if (key) { in do_getnext() 1184 free(key); in do_getnext() 1194 void *key; in do_delete() local 1221 free(key); in do_delete() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_flower.c | 180 rule_match_set(r_match->key, SYS_PORT, key); in prestera_flower_parse_meta() 185 rule_match_set(r_match->key, SYS_DEV, key); in prestera_flower_parse_meta() 249 rule_match_set(r_match->key, IP_PROTO, match.key->ip_proto); in prestera_flower_parse() 287 rule_match_set(r_match->key, IP_SRC, match.key->src); in prestera_flower_parse() 290 rule_match_set(r_match->key, IP_DST, match.key->dst); in prestera_flower_parse() 306 rule_match_set(r_match->key, L4_PORT_SRC, match.key->src); in prestera_flower_parse() 309 rule_match_set(r_match->key, L4_PORT_DST, match.key->dst); in prestera_flower_parse() 342 __be16 key = cpu_to_be16(match.key->vlan_id); in prestera_flower_parse() local 345 rule_match_set(r_match->key, VLAN_ID, key); in prestera_flower_parse() 358 rule_match_set(r_match->key, ICMP_TYPE, match.key->type); in prestera_flower_parse() [all …]
|
/openbmc/linux/drivers/pmdomain/qcom/ |
H A D | rpmpd.c | 43 __le32 key; member 59 __le32 key; member 78 .key = KEY_LEVEL, 87 .key = KEY_LEVEL, 96 .key = KEY_CORNER, 105 .key = KEY_CORNER, 132 .key = KEY_LEVEL, 141 .key = KEY_LEVEL, 150 .key = KEY_LEVEL, 159 .key = KEY_LEVEL, [all …]
|
/openbmc/linux/net/wireless/ |
H A D | lib80211_crypt_wep.c | 32 u8 key[WEP_KEY_LEN + 1]; member 110 u8 key[WEP_KEY_LEN + 3]; in lib80211_wep_encrypt() local 124 memcpy(key + 3, wep->key, wep->key_len); in lib80211_wep_encrypt() 138 arc4_setkey(&wep->tx_ctx, key, klen); in lib80211_wep_encrypt() 155 u8 key[WEP_KEY_LEN + 3]; in lib80211_wep_decrypt() local 162 key[0] = *pos++; in lib80211_wep_decrypt() 163 key[1] = *pos++; in lib80211_wep_decrypt() 164 key[2] = *pos++; in lib80211_wep_decrypt() 172 memcpy(key + 3, wep->key, wep->key_len); in lib80211_wep_decrypt() 205 memcpy(wep->key, key, len); in lib80211_wep_set_key() [all …]
|
/openbmc/u-boot/fs/btrfs/ |
H A D | chunk-map.c | 43 if (key->offset < this->logical) { in add_chunk_mapping() 49 __func__, key->offset); in add_chunk_mapping() 58 map_item->logical = key->offset; in add_chunk_mapping() 112 struct btrfs_key *key; in btrfs_chunk_map_init() local 121 key = (struct btrfs_key *) cur; in btrfs_chunk_map_init() 125 btrfs_key_to_cpu(key); in btrfs_chunk_map_init() 130 key->type); in btrfs_chunk_map_init() 134 if (add_chunk_mapping(key, chunk)) in btrfs_chunk_map_init() 147 struct btrfs_key key, *found_key; in btrfs_read_chunk_tree() local 152 key.type = BTRFS_CHUNK_ITEM_KEY; in btrfs_read_chunk_tree() [all …]
|
/openbmc/linux/scripts/ |
H A D | generate_rust_target.rs | 39 for (key, value) in rest { in fmt() 59 fn push(&mut self, key: &str, value: T); in push() 63 fn push(&mut self, key: &str, value: bool) { in push() 69 fn push(&mut self, key: &str, value: i32) { in push() 70 self.0.push((key.to_string(), Value::Number(value))); in push() 75 fn push(&mut self, key: &str, value: String) { in push() 76 self.0.push((key.to_string(), Value::String(value))); in push() 81 fn push(&mut self, key: &str, value: &str) { in push() 82 self.push(key, value.to_string()); in push() 87 fn push(&mut self, key: &str, value: Object) { in push() [all …]
|
/openbmc/bmcweb/redfish-core/include/utils/ |
H A D | json_utils.hpp | 190 if (!checkRange<Type>(*jsonPtr, key)) in unpackValueWithErrorCode() 204 if (!checkRange<Type>(*jsonPtr, key)) in unpackValueWithErrorCode() 219 if (!checkRange<Type>(*jsonPtr, key)) in unpackValueWithErrorCode() 499 std::string_view key; member 518 std::string_view key = unpackSpec.key; in readJsonHelperObject() local 524 key = key.substr(0, keysplitIndex); in readJsonHelperObject() 536 key = unpackSpec.key.substr(0, keysplitIndex + 1); in readJsonHelperObject() 549 if (!p.key.starts_with(key)) in readJsonHelperObject() 553 std::string_view thisLeftover = p.key.substr(key.size()); in readJsonHelperObject() 630 toPack[0].key = key; in packVariant() [all …]
|
/openbmc/phosphor-webui/app/common/services/ |
H A D | api-utils.js | 315 key.match( 881 path: key, 896 data: {key: key, value: content.data[key]} 1014 path: key, 1037 {key: key, value: content.data[key]} 1155 data: {key: key, value: content.data[key]} 1473 for (var key in obj) { 1475 if (obj[key] !== '') { 1476 value = obj[key]; 1548 path: key, [all …]
|
/openbmc/linux/net/openvswitch/ |
H A D | conntrack.h | 26 int ovs_ct_clear(struct sk_buff *skb, struct sw_flow_key *key); 28 void ovs_ct_fill_key(const struct sk_buff *skb, struct sw_flow_key *key, 51 const struct sw_flow_key *key, in ovs_ct_copy_action() argument 64 struct sw_flow_key *key, in ovs_ct_execute() argument 72 struct sw_flow_key *key) in ovs_ct_clear() argument 78 struct sw_flow_key *key, in ovs_ct_fill_key() argument 81 key->ct_state = 0; in ovs_ct_fill_key() 82 key->ct_zone = 0; in ovs_ct_fill_key() 83 key->ct.mark = 0; in ovs_ct_fill_key() 84 memset(&key->ct.labels, 0, sizeof(key->ct.labels)); in ovs_ct_fill_key() [all …]
|
/openbmc/linux/drivers/net/can/spi/mcp251xfd/ |
H A D | mcp251xfd-dump.c | 27 enum mcp251xfd_dump_object_ring_key key; member 110 reg->reg = cpu_to_le32(dump_ring[i].key); in mcp251xfd_dump_ring() 124 .key = MCP251XFD_DUMP_OBJECT_RING_KEY_HEAD, in mcp251xfd_dump_tef_ring() 127 .key = MCP251XFD_DUMP_OBJECT_RING_KEY_TAIL, in mcp251xfd_dump_tef_ring() 130 .key = MCP251XFD_DUMP_OBJECT_RING_KEY_BASE, in mcp251xfd_dump_tef_ring() 133 .key = MCP251XFD_DUMP_OBJECT_RING_KEY_NR, in mcp251xfd_dump_tef_ring() 157 .key = MCP251XFD_DUMP_OBJECT_RING_KEY_HEAD, in mcp251xfd_dump_rx_ring_one() 160 .key = MCP251XFD_DUMP_OBJECT_RING_KEY_TAIL, in mcp251xfd_dump_rx_ring_one() 163 .key = MCP251XFD_DUMP_OBJECT_RING_KEY_BASE, in mcp251xfd_dump_rx_ring_one() 166 .key = MCP251XFD_DUMP_OBJECT_RING_KEY_NR, in mcp251xfd_dump_rx_ring_one() [all …]
|
/openbmc/linux/include/crypto/internal/ |
H A D | chacha.h | 11 u32 key[8]; member 15 static inline int chacha_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha_setkey() argument 24 for (i = 0; i < ARRAY_SIZE(ctx->key); i++) in chacha_setkey() 25 ctx->key[i] = get_unaligned_le32(key + i * sizeof(u32)); in chacha_setkey() 31 static inline int chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha20_setkey() argument 34 return chacha_setkey(tfm, key, keysize, 20); in chacha20_setkey() 37 static inline int chacha12_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha12_setkey() argument 40 return chacha_setkey(tfm, key, keysize, 12); in chacha12_setkey()
|
/openbmc/linux/Documentation/security/ |
H A D | siphash.rst | 18 Generating a key 24 siphash_key_t key; 25 get_random_bytes(&key, sizeof(key)); 52 Hashtable key function usage:: 56 siphash_key_t key; 61 get_random_bytes(&table->key, sizeof(table->key)); 141 Generating a hsiphash key 147 hsiphash_key_t key; 148 get_random_bytes(&key, sizeof(key)); 178 hsiphash_key_t key; [all …]
|