Home
last modified time | relevance | path

Searched refs:struct_size (Results 1 – 24 of 24) sorted by relevance

/kernel/irq/
Dgeneric-chip.c247 gc = kzalloc(struct_size(gc, chip_types, num_ct), GFP_KERNEL); in irq_alloc_generic_chip()
308 gc_sz = struct_size(gc, chip_types, num_ct); in __irq_alloc_domain_generic_chips()
309 dgc_sz = struct_size(dgc, gc, numchips); in __irq_alloc_domain_generic_chips()
Ddevres.c224 gc = devm_kzalloc(dev, struct_size(gc, chip_types, num_ct), GFP_KERNEL); in devm_irq_alloc_generic_chip()
Dirqdomain.c146 domain = kzalloc_node(struct_size(domain, revmap, size), in __irq_domain_create()
/kernel/module/
Dsysfs.c83 size[0] = ALIGN(struct_size(sect_attrs, attrs, nloaded), in add_sect_attrs()
192 notes_attrs = kzalloc(struct_size(notes_attrs, attrs, notes), in add_notes_attrs()
/kernel/bpf/
Dbtf.c2044 u32 struct_size = struct_type->size; in btf_int_check_member() local
2065 if (struct_size < bytes_offset || in btf_int_check_member()
2066 struct_size - bytes_offset < BITS_ROUNDUP_BYTES(nr_copy_bits)) { in btf_int_check_member()
2082 u32 struct_size = struct_type->size; in btf_int_check_kflag_member() local
2121 if (struct_size < bytes_offset || in btf_int_check_kflag_member()
2122 struct_size - bytes_offset < BITS_ROUNDUP_BYTES(nr_copy_bits)) { in btf_int_check_kflag_member()
2451 u32 struct_size, struct_bits_off, bytes_offset; in btf_ptr_check_member() local
2453 struct_size = struct_type->size; in btf_ptr_check_member()
2463 if (struct_size - bytes_offset < sizeof(void *)) { in btf_ptr_check_member()
2776 u32 struct_size, bytes_offset; in btf_array_check_member() local
[all …]
Dreuseport_array.c158 array = bpf_map_area_alloc(struct_size(array, ptrs, attr->max_entries), numa_node); in reuseport_array_alloc()
Dlocal_storage.c167 new = bpf_map_kmalloc_node(map, struct_size(new, data, map->value_size), in cgroup_storage_update_elem()
Dcore.c858 pack = kzalloc(struct_size(pack, bitmap, BITS_TO_LONGS(BPF_PROG_CHUNK_COUNT)), in alloc_new_pack()
/kernel/
Dgroups.c18 gi = kvmalloc(struct_size(gi, gid, gidsetsize), GFP_KERNEL_ACCOUNT); in groups_alloc()
Daudit_tree.c97 tree = kmalloc(struct_size(tree, pathname, strlen(s) + 1), GFP_KERNEL); in alloc_tree()
193 chunk = kzalloc(struct_size(chunk, owners, count), GFP_KERNEL); in alloc_chunk()
Dauditfilter.c640 data = kmalloc(struct_size(data, buf, krule->buflen), GFP_KERNEL); in audit_krule_to_data()
1095 struct_size(data, buf, data->buflen)); in audit_list_rules()
Dtracepoint.c109 struct tp_probes *p = kmalloc(struct_size(p, probes, count), in allocate_probes()
Dwatch_queue.c354 wfilter = kzalloc(struct_size(wfilter, filters, nr_filter), GFP_KERNEL); in watch_queue_set_filter()
Daudit.c1482 sig_data = kmalloc(struct_size(sig_data, ctx, len), GFP_KERNEL); in audit_receive_msg()
1495 sig_data, struct_size(sig_data, ctx, len)); in audit_receive_msg()
Dkcov.c723 remote_arg_size = struct_size(remote_arg, handles, in kcov_ioctl()
Dworkqueue.c3974 ctx = kzalloc(struct_size(ctx, pwq_tbl, nr_node_ids), GFP_KERNEL); in apply_wqattrs_prepare()
/kernel/gcov/
Dfs.c119 iter = kvmalloc(struct_size(iter, buffer, size), GFP_KERNEL); in gcov_iter_new()
/kernel/trace/
Dtrace_eprobe.c206 ep = kzalloc(struct_size(ep, tp.args, nargs), GFP_KERNEL); in alloc_event_probe()
Dtrace_events_user.c1529 size = struct_size(refs, events, count + 1); in user_events_ref_add()
Dtrace_uprobe.c344 tu = kzalloc(struct_size(tu, tp.args, nargs), GFP_KERNEL); in alloc_trace_uprobe()
Dtrace_kprobe.c267 tk = kzalloc(struct_size(tk, tp.args, nargs), GFP_KERNEL); in alloc_trace_kprobe()
Dtrace_events_synth.c500 data_offset = struct_size(entry, fields, event->n_u64); in trace_stack()
Dtrace.c2810 int max_len = PAGE_SIZE - struct_size(entry, array, 1); in trace_event_buffer_lock_reserve()
/kernel/cgroup/
Dcgroup.c5617 cgrp = kzalloc(struct_size(cgrp, ancestors, (level + 1)), GFP_KERNEL); in cgroup_create()