/linux-master/tools/lib/bpf/ |
H A D | hashmap.h | 53 * - 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) \ 135 hashmap_cast_ptr(old_key), \ 141 #define hashmap__set(map, key, value, old_key, old_value) \ 142 hashmap__insert((map), (key), (value), HASHMAP_SET, (old_key), (old_value)) 144 #define hashmap__update(map, key, value, old_key, old_value) \ 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 [all...] |
H A D | hashmap.c | 156 long *old_key, long *old_value) 162 if (old_key) 163 *old_key = 0; 170 if (old_key) 171 *old_key = entry->key; 221 long *old_key, long *old_value) 230 if (old_key) 231 *old_key = entry->key; 154 hashmap_insert(struct hashmap *map, long key, long value, enum hashmap_insert_strategy strategy, long *old_key, long *old_value) argument 220 hashmap_delete(struct hashmap *map, long key, long *old_key, long *old_value) argument
|
/linux-master/tools/perf/util/ |
H A D | hashmap.h | 53 * - 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) \ 135 hashmap_cast_ptr(old_key), \ 141 #define hashmap__set(map, key, value, old_key, old_value) \ 142 hashmap__insert((map), (key), (value), HASHMAP_SET, (old_key), (old_value)) 144 #define hashmap__update(map, key, value, old_key, old_value) \ 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 [all...] |
H A D | expr.c | 102 char *old_key = NULL; local 105 ret = hashmap__set(ids, id, data_ptr, &old_key, &old_data); 108 free(old_key); 119 char *old_key = NULL; local 134 ret = hashmap__set(ids1, cur->key, cur->value, &old_key, &old_data); 135 free(old_key); 165 char *old_key = NULL; local 175 ret = hashmap__set(ctx->ids, id, data_ptr, &old_key, &old_data); 178 free(old_key); 186 char *old_key local 284 char *old_key = NULL; local [all...] |
H A D | hashmap.c | 156 long *old_key, long *old_value) 162 if (old_key) 163 *old_key = 0; 170 if (old_key) 171 *old_key = entry->key; 221 long *old_key, long *old_value) 230 if (old_key) 231 *old_key = entry->key; 154 hashmap_insert(struct hashmap *map, long key, long value, enum hashmap_insert_strategy strategy, long *old_key, long *old_value) argument 220 hashmap_delete(struct hashmap *map, long key, long *old_key, long *old_value) argument
|
/linux-master/include/uapi/linux/ |
H A D | pr.h | 40 __u64 old_key; member in struct:pr_registration 47 __u64 old_key; member in struct:pr_preempt
|
/linux-master/include/linux/ |
H A D | pr.h | 20 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-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | hashmap.c | 262 const char *key, *value, *old_key, *old_value; local 279 err = hashmap__insert(map, "a", "apple", HASHMAP_SET, &old_key, &old_value); 282 CHECK_STR("hashmap__update", old_key, "a"); 289 err = hashmap__set(map, "b", "breadfruit", &old_key, &old_value); 292 CHECK_STR("hashmap__set", old_key, "b"); 295 err = hashmap__update(map, "b", "blueberry", &old_key, &old_value); 298 CHECK_STR("hashmap__update", old_key, "b"); 305 if (CHECK(!hashmap__delete(map, "c", &old_key, &old_value), 308 CHECK_STR("hashmap__delete", old_key, "c");
|
/linux-master/net/mac80211/ |
H A D | key.c | 848 struct ieee80211_key *old_key = NULL; local 864 old_key = wiphy_dereference(sdata->local->hw.wiphy, 873 (old_key && old_key->conf.cipher != key->conf.cipher)) { 890 old_key = wiphy_dereference(sdata->local->hw.wiphy, 894 old_key = wiphy_dereference(sdata->local->hw.wiphy, 896 if (!old_key) 897 old_key = wiphy_dereference(sdata->local->hw.wiphy, 903 if (old_key && old_key [all...] |
/linux-master/drivers/md/ |
H A D | dm.c | 3171 u64 old_key; member in struct:dm_pr 3230 ret = ops->pr_register(dev->bdev, pr->old_key, pr->new_key, pr->flags); 3243 static int dm_pr_register(struct block_device *bdev, u64 old_key, u64 new_key, argument 3247 .old_key = old_key, 3269 pr.old_key = new_key; 3289 pr->ret = ops->pr_reserve(dev->bdev, pr->old_key, pr->type, pr->flags); 3300 .old_key = key, 3332 pr->ret = ops->pr_release(dev->bdev, pr->old_key, pr->type); 3342 .old_key 3374 dm_pr_preempt(struct block_device *bdev, u64 old_key, u64 new_key, enum pr_type type, bool abort) argument [all...] |
/linux-master/block/ |
H A D | ioctl.c | 298 return ops->pr_register(bdev, reg.old_key, reg.new_key, reg.flags); 352 return ops->pr_preempt(bdev, p.old_key, p.new_key, p.type, abort);
|
/linux-master/net/bluetooth/ |
H A D | hci_core.c | 1338 struct link_key *key, *old_key; local 1341 old_key = hci_find_link_key(hdev, bdaddr); 1342 if (old_key) { 1343 old_key_type = old_key->type; 1344 key = old_key; 1385 struct smp_ltk *key, *old_key; local 1388 old_key = hci_find_ltk(hdev, bdaddr, addr_type, role); 1389 if (old_key) 1390 key = old_key;
|
/linux-master/drivers/scsi/ |
H A D | sd.c | 1978 static int sd_pr_register(struct block_device *bdev, u64 old_key, u64 new_key, argument 1984 old_key, new_key, 0, 2003 static int sd_pr_preempt(struct block_device *bdev, u64 old_key, u64 new_key, argument 2006 return sd_pr_out_command(bdev, abort ? 0x05 : 0x04, old_key, new_key,
|