Home
last modified time | relevance | path

Searched refs:old_key (Results 1 – 14 of 14) sorted by relevance

/linux/tools/perf/util/
H A Dhashmap.h53 * - for pointer parameters (e.g. old_key) the size of the pointed
126 * through old_key and old_value to allow calling code do proper memory
131 long *old_key, long *old_value);
133 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ argument
135 hashmap_cast_ptr(old_key), \
141 #define hashmap__set(map, key, value, old_key, old_value) \ argument
142 hashmap__insert((map), (key), (value), HASHMAP_SET, (old_key), (old_value))
144 #define hashmap__update(map, key, value, old_key, old_value) \ argument
145 hashmap__insert((map), (key), (value), HASHMAP_UPDATE, (old_key), (old_value))
150 bool hashmap_delete(struct hashmap *map, long key, long *old_key, lon
152 hashmap__delete(map,key,old_key,old_value) global() argument
[all...]
H A Dhashmap.c156 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()
H A Dfncache.c50 char *old_key = NULL, *key = strdup(name); in update_fncache() local
53 hashmap__set(fncache__get(), key, res, &old_key, /*old_value*/NULL); in update_fncache()
54 free(old_key); in update_fncache()
/linux/tools/lib/bpf/
H A Dhashmap.h53 * - for pointer parameters (e.g. old_key) the size of the pointed
126 * through old_key and old_value to allow calling code do proper memory
131 long *old_key, long *old_value);
133 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ argument
135 hashmap_cast_ptr(old_key), \
141 #define hashmap__set(map, key, value, old_key, old_value) \ argument
142 hashmap__insert((map), (key), (value), HASHMAP_SET, (old_key), (old_value))
144 #define hashmap__update(map, key, value, old_key, old_value) \ argument
145 hashmap__insert((map), (key), (value), HASHMAP_UPDATE, (old_key), (old_value))
150 bool hashmap_delete(struct hashmap *map, long key, long *old_key, lon
152 hashmap__delete(map,key,old_key,old_value) global() argument
[all...]
H A Dhashmap.c156 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/tools/testing/selftests/bpf/prog_tests/
H A Dhashmap.c262 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/include/linux/
H A Dpr.h20 int (*pr_register)(struct block_device *bdev, u64 old_key, u64 new_key,
26 int (*pr_preempt)(struct block_device *bdev, u64 old_key, u64 new_key,
/linux/include/uapi/linux/
H A Dpr.h40 __u64 old_key; member
47 __u64 old_key; member
/linux/Documentation/block/
H A Dpr.rst64 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/net/mac80211/
H A Dkey.c849 struct ieee80211_key *old_key = NULL; in ieee80211_key_link() local
865 old_key = wiphy_dereference(sdata->local->hw.wiphy, in ieee80211_key_link()
874 (old_key && old_key->conf.cipher != key->conf.cipher)) { in ieee80211_key_link()
891 old_key = wiphy_dereference(sdata->local->hw.wiphy, in ieee80211_key_link()
895 old_key = wiphy_dereference(sdata->local->hw.wiphy, in ieee80211_key_link()
897 if (!old_key) in ieee80211_key_link()
898 old_key = wiphy_dereference(sdata->local->hw.wiphy, in ieee80211_key_link()
904 if (old_key && old_key in ieee80211_key_link()
[all...]
/linux/drivers/nvme/host/
H A Dpr.c119 static int nvme_pr_register(struct block_device *bdev, u64 old_key, u64 new_key, in nvme_pr_register() argument
128 data.crkey = cpu_to_le64(old_key); in nvme_pr_register()
131 cdw10 = old_key ? NVME_PR_REGISTER_ACT_REPLACE : in nvme_pr_register()
/linux/drivers/md/
H A Ddm.c3424 u64 old_key; member
3483 ret = ops->pr_register(dev->bdev, pr->old_key, pr->new_key, pr->flags); in __dm_pr_register()
3496 static int dm_pr_register(struct block_device *bdev, u64 old_key, u64 new_key, in dm_pr_register() argument
3500 .old_key = old_key, in dm_pr_register()
3522 pr.old_key = new_key; in dm_pr_register()
3542 pr->ret = ops->pr_reserve(dev->bdev, pr->old_key, pr->type, pr->flags); in __dm_pr_reserve()
3553 .old_key = key, in dm_pr_reserve()
3585 pr->ret = ops->pr_release(dev->bdev, pr->old_key, pr->type); in __dm_pr_release()
3595 .old_key in dm_pr_release()
3627 dm_pr_preempt(struct block_device * bdev,u64 old_key,u64 new_key,enum pr_type type,bool abort) dm_pr_preempt() argument
[all...]
/linux/block/
H A Dioctl.c351 return ops->pr_register(bdev, reg.old_key, reg.new_key, reg.flags); in blkdev_pr_register()
405 return ops->pr_preempt(bdev, p.old_key, p.new_key, p.type, abort); in blkdev_pr_preempt()
/linux/drivers/scsi/
H A Dsd.c2086 static int sd_pr_register(struct block_device *bdev, u64 old_key, u64 new_key, in sd_pr_register() argument
2092 old_key, new_key, 0, in sd_pr_register()
2111 static int sd_pr_preempt(struct block_device *bdev, u64 old_key, u64 new_key, in sd_pr_preempt() argument
2114 return sd_pr_out_command(bdev, abort ? 0x05 : 0x04, old_key, new_key, in sd_pr_preempt()