| /linux/tools/perf/util/ |
| H A D | expr.c | 95 char *old_key = NULL; in ids__insert() local 98 ret = hashmap__set(ids, id, data_ptr, &old_key, &old_data); in ids__insert() 101 free(old_key); in ids__insert() 112 char *old_key = NULL; in ids__union() local 127 ret = hashmap__set(ids1, cur->key, cur->value, &old_key, &old_data); in ids__union() 128 free(old_key); in ids__union() 158 char *old_key = NULL; in expr__add_id_val_source_count() local 168 ret = hashmap__set(ctx->ids, id, data_ptr, &old_key, &old_data); in expr__add_id_val_source_count() 175 free(old_key); in expr__add_id_val_source_count() 183 char *old_key = NULL; in expr__add_ref() local [all …]
|
| H 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()
|
| H A D | fncache.c | 50 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 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/tools/testing/selftests/bpf/prog_tests/ |
| H 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/Documentation/block/ |
| H 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/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/include/uapi/linux/ |
| H A D | pr.h | 40 __u64 old_key; member 47 __u64 old_key; member
|
| /linux/net/mac80211/ |
| H A D | key.c | 854 struct ieee80211_key *old_key = NULL; in ieee80211_key_link() local 870 old_key = wiphy_dereference(sdata->local->hw.wiphy, in ieee80211_key_link() 879 (old_key && old_key->conf.cipher != key->conf.cipher)) { in ieee80211_key_link() 896 old_key = wiphy_dereference(sdata->local->hw.wiphy, in ieee80211_key_link() 900 old_key = wiphy_dereference(sdata->local->hw.wiphy, in ieee80211_key_link() 902 if (!old_key) in ieee80211_key_link() 903 old_key = wiphy_dereference(sdata->local->hw.wiphy, in ieee80211_key_link() 909 if (old_key && old_key->conf.cipher != key->conf.cipher) { in ieee80211_key_link() 919 if (ieee80211_key_identical(sdata, old_key, key)) { in ieee80211_key_link() 940 ret = ieee80211_key_replace(sdata, link, sta, pairwise, old_key, key); in ieee80211_key_link() [all …]
|
| /linux/drivers/nvme/host/ |
| H A D | pr.c | 119 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 D | dm.c | 3459 u64 old_key; member 3518 ret = ops->pr_register(dev->bdev, pr->old_key, pr->new_key, pr->flags); in __dm_pr_register() 3531 static int dm_pr_register(struct block_device *bdev, u64 old_key, u64 new_key, in dm_pr_register() argument 3535 .old_key = old_key, in dm_pr_register() 3557 pr.old_key = new_key; in dm_pr_register() 3577 pr->ret = ops->pr_reserve(dev->bdev, pr->old_key, pr->type, pr->flags); in __dm_pr_reserve() 3588 .old_key = key, in dm_pr_reserve() 3620 pr->ret = ops->pr_release(dev->bdev, pr->old_key, pr->type); in __dm_pr_release() 3630 .old_key = key, in dm_pr_release() 3654 pr->ret = ops->pr_preempt(dev->bdev, pr->old_key, pr->new_key, pr->type, in __dm_pr_preempt() [all …]
|
| /linux/net/bluetooth/ |
| H A D | hci_core.c | 1279 struct link_key *key, *old_key; in hci_add_link_key() local 1282 old_key = hci_find_link_key(hdev, bdaddr); in hci_add_link_key() 1283 if (old_key) { in hci_add_link_key() 1284 old_key_type = old_key->type; in hci_add_link_key() 1285 key = old_key; in hci_add_link_key() 1326 struct smp_ltk *key, *old_key; in hci_add_ltk() local 1329 old_key = hci_find_ltk(hdev, bdaddr, addr_type, role); in hci_add_ltk() 1330 if (old_key) in hci_add_ltk() 1331 key = old_key; in hci_add_ltk()
|
| /linux/drivers/scsi/ |
| H A D | sd.c | 2126 static int sd_pr_register(struct block_device *bdev, u64 old_key, u64 new_key, in sd_pr_register() argument 2132 old_key, new_key, 0, in sd_pr_register() 2151 static int sd_pr_preempt(struct block_device *bdev, u64 old_key, u64 new_key, in sd_pr_preempt() argument 2154 return sd_pr_out_command(bdev, abort ? 0x05 : 0x04, old_key, new_key, in sd_pr_preempt()
|