• Home
  • Raw
  • Download

Lines Matching refs:size

190 	u32 size;  in bpf_percpu_cgroup_storage_copy()  local
203 size = round_up(_map->value_size, 8); in bpf_percpu_cgroup_storage_copy()
206 per_cpu_ptr(storage->percpu_buf, cpu), size); in bpf_percpu_cgroup_storage_copy()
207 off += size; in bpf_percpu_cgroup_storage_copy()
219 u32 size; in bpf_percpu_cgroup_storage_update() local
237 size = round_up(_map->value_size, 8); in bpf_percpu_cgroup_storage_update()
240 value + off, size); in bpf_percpu_cgroup_storage_update()
241 off += size; in bpf_percpu_cgroup_storage_update()
368 u32 offset, size; in cgroup_storage_check_btf() local
389 size = sizeof_field(struct bpf_cgroup_storage_key, cgroup_inode_id); in cgroup_storage_check_btf()
390 if (!btf_member_is_reg_int(btf, key_type, m, 0, size)) in cgroup_storage_check_btf()
398 size = sizeof_field(struct bpf_cgroup_storage_key, attach_type); in cgroup_storage_check_btf()
399 if (!btf_member_is_reg_int(btf, key_type, m, offset, size)) in cgroup_storage_check_btf()
482 size_t size; in bpf_cgroup_storage_calculate_size() local
485 size = sizeof(struct bpf_storage_buffer) + map->value_size; in bpf_cgroup_storage_calculate_size()
486 *pages = round_up(sizeof(struct bpf_cgroup_storage) + size, in bpf_cgroup_storage_calculate_size()
489 size = map->value_size; in bpf_cgroup_storage_calculate_size()
490 *pages = round_up(round_up(size, 8) * num_possible_cpus(), in bpf_cgroup_storage_calculate_size()
494 return size; in bpf_cgroup_storage_calculate_size()
503 size_t size; in bpf_cgroup_storage_alloc() local
510 size = bpf_cgroup_storage_calculate_size(map, &pages); in bpf_cgroup_storage_alloc()
523 storage->buf = kmalloc_node(size, flags, map->numa_node); in bpf_cgroup_storage_alloc()
528 storage->percpu_buf = __alloc_percpu_gfp(size, 8, flags); in bpf_cgroup_storage_alloc()