/linux-6.3-rc2/tools/perf/util/ |
A D | hashmap.h | 141 long *old_key, long *old_value); 143 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ argument 145 hashmap_cast_ptr(old_key), \ 151 #define hashmap__set(map, key, value, old_key, old_value) \ argument 152 hashmap__insert((map), (key), (value), HASHMAP_SET, (old_key), (old_value)) 154 #define hashmap__update(map, key, value, old_key, old_value) \ argument 155 hashmap__insert((map), (key), (value), HASHMAP_UPDATE, (old_key), (old_value)) 160 bool hashmap_delete(struct hashmap *map, long key, long *old_key, long *old_value); 162 #define hashmap__delete(map, key, old_key, old_value) \ argument 164 hashmap_cast_ptr(old_key), \
|
A D | expr.c | 98 char *old_key = NULL; in ids__insert() local 104 free(old_key); in ids__insert() 115 char *old_key = NULL; in ids__union() local 131 free(old_key); in ids__union() 161 char *old_key = NULL; in expr__add_id_val_source_count() local 174 free(old_key); in expr__add_id_val_source_count() 182 char *old_key = NULL; in expr__add_ref() local 213 free(old_key); in expr__add_ref() 280 char *old_key = NULL; in expr__del_id() local 282 hashmap__delete(ctx->ids, id, &old_key, &old_val); in expr__del_id() [all …]
|
A D | hashmap.c | 156 long *old_key, long *old_value) in hashmap_insert() argument 162 if (old_key) in hashmap_insert() 163 *old_key = 0; in hashmap_insert() 170 if (old_key) in hashmap_insert() 171 *old_key = entry->key; in hashmap_insert() 221 long *old_key, long *old_value) in hashmap_delete() argument 230 if (old_key) in hashmap_delete() 231 *old_key = entry->key; in hashmap_delete()
|
/linux-6.3-rc2/tools/lib/bpf/ |
A D | hashmap.h | 141 long *old_key, long *old_value); 143 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ argument 145 hashmap_cast_ptr(old_key), \ 151 #define hashmap__set(map, key, value, old_key, old_value) \ argument 152 hashmap__insert((map), (key), (value), HASHMAP_SET, (old_key), (old_value)) 154 #define hashmap__update(map, key, value, old_key, old_value) \ argument 155 hashmap__insert((map), (key), (value), HASHMAP_UPDATE, (old_key), (old_value)) 160 bool hashmap_delete(struct hashmap *map, long key, long *old_key, long *old_value); 162 #define hashmap__delete(map, key, old_key, old_value) \ argument 164 hashmap_cast_ptr(old_key), \
|
A D | hashmap.c | 156 long *old_key, long *old_value) in hashmap_insert() argument 162 if (old_key) in hashmap_insert() 163 *old_key = 0; in hashmap_insert() 170 if (old_key) in hashmap_insert() 171 *old_key = entry->key; in hashmap_insert() 221 long *old_key, long *old_value) in hashmap_delete() argument 230 if (old_key) in hashmap_delete() 231 *old_key = entry->key; in hashmap_delete()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | hashmap.c | 262 const char *key, *value, *old_key, *old_value; in test_hashmap_ptr_iface() local 279 err = hashmap__insert(map, "a", "apple", HASHMAP_SET, &old_key, &old_value); in test_hashmap_ptr_iface() 282 CHECK_STR("hashmap__update", old_key, "a"); in test_hashmap_ptr_iface() 289 err = hashmap__set(map, "b", "breadfruit", &old_key, &old_value); in test_hashmap_ptr_iface() 292 CHECK_STR("hashmap__set", old_key, "b"); in test_hashmap_ptr_iface() 295 err = hashmap__update(map, "b", "blueberry", &old_key, &old_value); in test_hashmap_ptr_iface() 298 CHECK_STR("hashmap__update", old_key, "b"); in test_hashmap_ptr_iface() 305 if (CHECK(!hashmap__delete(map, "c", &old_key, &old_value), in test_hashmap_ptr_iface() 308 CHECK_STR("hashmap__delete", old_key, "c"); in test_hashmap_ptr_iface()
|
/linux-6.3-rc2/include/linux/ |
A D | pr.h | 8 int (*pr_register)(struct block_device *bdev, u64 old_key, u64 new_key, 14 int (*pr_preempt)(struct block_device *bdev, u64 old_key, u64 new_key,
|
/linux-6.3-rc2/include/uapi/linux/ |
A D | pr.h | 40 __u64 old_key; member 47 __u64 old_key; member
|
/linux-6.3-rc2/Documentation/block/ |
A D | pr.rst | 64 is non-null. If no existing reservation exists old_key must be zero, 65 if an existing reservation should be replaced old_key must contain 69 in old_key. 92 old_key and replaces it with a new reservation of type for the 100 any outstanding command sent over a connection identified by old_key.
|
/linux-6.3-rc2/net/mac80211/ |
A D | key.c | 844 struct ieee80211_key *old_key = NULL; in ieee80211_key_link() local 860 old_key = key_mtx_dereference(sdata->local, sta->ptk[idx]); in ieee80211_key_link() 867 (old_key && old_key->conf.cipher != key->conf.cipher)) in ieee80211_key_link() 882 old_key = key_mtx_dereference(sdata->local, link_sta->gtk[idx]); in ieee80211_key_link() 885 old_key = key_mtx_dereference(sdata->local, in ieee80211_key_link() 887 if (!old_key) in ieee80211_key_link() 888 old_key = key_mtx_dereference(sdata->local, in ieee80211_key_link() 894 if (old_key && old_key->conf.cipher != key->conf.cipher) in ieee80211_key_link() 902 if (ieee80211_key_identical(sdata, old_key, key)) { in ieee80211_key_link() 920 ret = ieee80211_key_replace(sdata, link, sta, pairwise, old_key, key); in ieee80211_key_link() [all …]
|
/linux-6.3-rc2/drivers/md/ |
A D | dm.c | 3110 u64 old_key; member 3167 ret = ops->pr_register(dev->bdev, pr->old_key, pr->new_key, pr->flags); in __dm_pr_register() 3184 .old_key = old_key, in dm_pr_register() 3206 pr.old_key = new_key; in dm_pr_register() 3226 pr->ret = ops->pr_reserve(dev->bdev, pr->old_key, pr->type, pr->flags); in __dm_pr_reserve() 3237 .old_key = key, in dm_pr_reserve() 3269 pr->ret = ops->pr_release(dev->bdev, pr->old_key, pr->type); in __dm_pr_release() 3279 .old_key = key, in dm_pr_release() 3303 pr->ret = ops->pr_preempt(dev->bdev, pr->old_key, pr->new_key, pr->type, in __dm_pr_preempt() 3311 static int dm_pr_preempt(struct block_device *bdev, u64 old_key, u64 new_key, in dm_pr_preempt() argument [all …]
|
/linux-6.3-rc2/block/ |
A D | ioctl.c | 272 return ops->pr_register(bdev, reg.old_key, reg.new_key, reg.flags); in blkdev_pr_register() 326 return ops->pr_preempt(bdev, p.old_key, p.new_key, p.type, abort); in blkdev_pr_preempt()
|
/linux-6.3-rc2/net/bluetooth/ |
A D | hci_core.c | 1306 struct link_key *key, *old_key; in hci_add_link_key() local 1309 old_key = hci_find_link_key(hdev, bdaddr); in hci_add_link_key() 1310 if (old_key) { in hci_add_link_key() 1311 old_key_type = old_key->type; in hci_add_link_key() 1312 key = old_key; in hci_add_link_key() 1353 struct smp_ltk *key, *old_key; in hci_add_ltk() local 1356 old_key = hci_find_ltk(hdev, bdaddr, addr_type, role); in hci_add_ltk() 1357 if (old_key) in hci_add_ltk() 1358 key = old_key; in hci_add_ltk()
|
/linux-6.3-rc2/drivers/scsi/ |
A D | sd.c | 1783 static int sd_pr_register(struct block_device *bdev, u64 old_key, u64 new_key, in sd_pr_register() argument 1789 old_key, new_key, 0, in sd_pr_register() 1806 static int sd_pr_preempt(struct block_device *bdev, u64 old_key, u64 new_key, in sd_pr_preempt() argument 1809 return sd_pr_command(bdev, abort ? 0x05 : 0x04, old_key, new_key, in sd_pr_preempt()
|