Lines Matching defs:kit
3148 struct bpf_iter_bits_kern *kit = (void *)it;
3157 kit->nr_bits = 0;
3158 kit->bits_copy = 0;
3159 kit->bit = -1;
3168 err = bpf_probe_read_kernel_common(&kit->bits_copy, nr_bytes, unsafe_ptr__ign);
3172 swap_ulong_in_u64(&kit->bits_copy, nr_words);
3174 kit->nr_bits = nr_bits;
3182 kit->bits = bpf_mem_alloc(&bpf_global_ma, nr_bytes);
3183 if (!kit->bits)
3186 err = bpf_probe_read_kernel_common(kit->bits, nr_bytes, unsafe_ptr__ign);
3188 bpf_mem_free(&bpf_global_ma, kit->bits);
3192 swap_ulong_in_u64(kit->bits, nr_words);
3194 kit->nr_bits = nr_bits;
3209 struct bpf_iter_bits_kern *kit = (void *)it;
3210 int bit = kit->bit, nr_bits = kit->nr_bits;
3216 bits = nr_bits == 64 ? &kit->bits_copy : kit->bits;
3219 kit->bit = bit;
3223 kit->bit = bit;
3224 return &kit->bit;
3235 struct bpf_iter_bits_kern *kit = (void *)it;
3237 if (kit->nr_bits <= 64)
3239 bpf_mem_free(&bpf_global_ma, kit->bits);