Lines Matching refs:id
219 u32 hash, id, trace_nr, trace_len; in __bpf_get_stackid() local
232 id = hash & (smap->n_buckets - 1); in __bpf_get_stackid()
233 bucket = READ_ONCE(smap->buckets[id]); in __bpf_get_stackid()
238 return id; in __bpf_get_stackid()
254 return id; in __bpf_get_stackid()
263 return id; in __bpf_get_stackid()
277 old_bucket = xchg(&smap->buckets[id], new_bucket); in __bpf_get_stackid()
280 return id; in __bpf_get_stackid()
582 u32 id = *(u32 *)key, trace_len; in bpf_stackmap_copy() local
584 if (unlikely(id >= smap->n_buckets)) in bpf_stackmap_copy()
587 bucket = xchg(&smap->buckets[id], NULL); in bpf_stackmap_copy()
595 old_bucket = xchg(&smap->buckets[id], bucket); in bpf_stackmap_copy()
606 u32 id; in stack_map_get_next_key() local
611 id = 0; in stack_map_get_next_key()
613 id = *(u32 *)key; in stack_map_get_next_key()
614 if (id >= smap->n_buckets || !smap->buckets[id]) in stack_map_get_next_key()
615 id = 0; in stack_map_get_next_key()
617 id++; in stack_map_get_next_key()
620 while (id < smap->n_buckets && !smap->buckets[id]) in stack_map_get_next_key()
621 id++; in stack_map_get_next_key()
623 if (id >= smap->n_buckets) in stack_map_get_next_key()
626 *(u32 *)next_key = id; in stack_map_get_next_key()
641 u32 id = *(u32 *)key; in stack_map_delete_elem() local
643 if (unlikely(id >= smap->n_buckets)) in stack_map_delete_elem()
646 old_bucket = xchg(&smap->buckets[id], NULL); in stack_map_delete_elem()