• Home
  • Raw
  • Download

Lines Matching refs:size

177 	u32 size;  in bpf_percpu_cgroup_storage_copy()  local
190 size = round_up(_map->value_size, 8); in bpf_percpu_cgroup_storage_copy()
193 per_cpu_ptr(storage->percpu_buf, cpu), size); in bpf_percpu_cgroup_storage_copy()
194 off += size; in bpf_percpu_cgroup_storage_copy()
207 u32 size; in bpf_percpu_cgroup_storage_update() local
225 size = round_up(_map->value_size, 8); in bpf_percpu_cgroup_storage_update()
228 value + off, size); in bpf_percpu_cgroup_storage_update()
229 off += size; in bpf_percpu_cgroup_storage_update()
339 u32 offset, size; in cgroup_storage_check_btf() local
360 size = FIELD_SIZEOF(struct bpf_cgroup_storage_key, cgroup_inode_id); in cgroup_storage_check_btf()
361 if (!btf_member_is_reg_int(btf, key_type, m, 0, size)) in cgroup_storage_check_btf()
369 size = FIELD_SIZEOF(struct bpf_cgroup_storage_key, attach_type); in cgroup_storage_check_btf()
370 if (!btf_member_is_reg_int(btf, key_type, m, offset, size)) in cgroup_storage_check_btf()
462 size_t size; in bpf_cgroup_storage_calculate_size() local
465 size = sizeof(struct bpf_storage_buffer) + map->value_size; in bpf_cgroup_storage_calculate_size()
466 *pages = round_up(sizeof(struct bpf_cgroup_storage) + size, in bpf_cgroup_storage_calculate_size()
469 size = map->value_size; in bpf_cgroup_storage_calculate_size()
470 *pages = round_up(round_up(size, 8) * num_possible_cpus(), in bpf_cgroup_storage_calculate_size()
474 return size; in bpf_cgroup_storage_calculate_size()
483 size_t size; in bpf_cgroup_storage_alloc() local
490 size = bpf_cgroup_storage_calculate_size(map, &pages); in bpf_cgroup_storage_alloc()
503 storage->buf = kmalloc_node(size, flags, map->numa_node); in bpf_cgroup_storage_alloc()
508 storage->percpu_buf = __alloc_percpu_gfp(size, 8, flags); in bpf_cgroup_storage_alloc()