/kernel/linux/linux-5.10/tools/lib/bpf/ |
H A D | hashmap.c | 105 size_t new_cap_bits, new_cap; in hashmap_grow() local 112 new_cap = 1UL << new_cap_bits; in hashmap_grow() 113 new_buckets = calloc(new_cap, sizeof(new_buckets[0])); in hashmap_grow() 122 map->cap = new_cap; in hashmap_grow()
|
H A D | btf_dump.c | 344 size_t new_cap; in btf_dump_add_emit_queue_id() local 347 new_cap = max(16, d->emit_queue_cap * 3 / 2); in btf_dump_add_emit_queue_id() 348 new_queue = libbpf_reallocarray(d->emit_queue, new_cap, sizeof(new_queue[0])); in btf_dump_add_emit_queue_id() 352 d->emit_queue_cap = new_cap; in btf_dump_add_emit_queue_id() 1086 size_t new_cap; in btf_dump_push_decl_stack_id() local 1089 new_cap = max(16, d->decl_stack_cap * 3 / 2); in btf_dump_push_decl_stack_id() 1090 new_stack = libbpf_reallocarray(d->decl_stack, new_cap, sizeof(new_stack[0])); in btf_dump_push_decl_stack_id() 1094 d->decl_stack_cap = new_cap; in btf_dump_push_decl_stack_id()
|
H A D | libbpf.c | 1299 size_t new_cap; in bpf_object__add_map() local 1305 new_cap = max((size_t)4, obj->maps_cap * 3 / 2); in bpf_object__add_map() 1306 new_maps = libbpf_reallocarray(obj->maps, new_cap, sizeof(*obj->maps)); in bpf_object__add_map() 1312 obj->maps_cap = new_cap; in bpf_object__add_map()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | hashmap.c | 105 size_t new_cap_bits, new_cap; in hashmap_grow() local 112 new_cap = 1UL << new_cap_bits; in hashmap_grow() 113 new_buckets = calloc(new_cap, sizeof(new_buckets[0])); in hashmap_grow() 122 map->cap = new_cap; in hashmap_grow()
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | hashmap.c | 105 size_t new_cap_bits, new_cap; in hashmap_grow() local 112 new_cap = 1UL << new_cap_bits; in hashmap_grow() 113 new_buckets = calloc(new_cap, sizeof(new_buckets[0])); in hashmap_grow() 122 map->cap = new_cap; in hashmap_grow()
|
H A D | btf_dump.c | 380 size_t new_cap; in btf_dump_add_emit_queue_id() local 383 new_cap = max(16, d->emit_queue_cap * 3 / 2); in btf_dump_add_emit_queue_id() 384 new_queue = libbpf_reallocarray(d->emit_queue, new_cap, sizeof(new_queue[0])); in btf_dump_add_emit_queue_id() 388 d->emit_queue_cap = new_cap; in btf_dump_add_emit_queue_id() 1209 size_t new_cap; in btf_dump_push_decl_stack_id() local 1212 new_cap = max(16, d->decl_stack_cap * 3 / 2); in btf_dump_push_decl_stack_id() 1213 new_stack = libbpf_reallocarray(d->decl_stack, new_cap, sizeof(new_stack[0])); in btf_dump_push_decl_stack_id() 1217 d->decl_stack_cap = new_cap; in btf_dump_push_decl_stack_id()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | hashmap.c | 105 size_t new_cap_bits, new_cap; in hashmap_grow() local 112 new_cap = 1UL << new_cap_bits; in hashmap_grow() 113 new_buckets = calloc(new_cap, sizeof(new_buckets[0])); in hashmap_grow() 122 map->cap = new_cap; in hashmap_grow()
|
/kernel/linux/linux-5.10/kernel/ |
H A D | umh.c | 491 kernel_cap_t new_cap; in proc_cap_handler() local 529 new_cap.cap[i] = cap_array[i]; in proc_cap_handler() 532 * Drop everything not in the new_cap (but don't add things) in proc_cap_handler() 537 usermodehelper_bset = cap_intersect(usermodehelper_bset, new_cap); in proc_cap_handler() 539 usermodehelper_inheritable = cap_intersect(usermodehelper_inheritable, new_cap); in proc_cap_handler()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | umh.c | 503 kernel_cap_t new_cap, *cap; in proc_cap_handler() local 533 new_cap.val = (u32)cap_array[0]; in proc_cap_handler() 534 new_cap.val += (u64)cap_array[1] << 32; in proc_cap_handler() 537 * Drop everything not in the new_cap (but don't add things) in proc_cap_handler() 541 *cap = cap_intersect(*cap, new_cap); in proc_cap_handler()
|
/kernel/linux/linux-5.10/fs/ceph/ |
H A D | caps.c | 634 struct ceph_cap **new_cap) in ceph_add_cap() 654 cap = *new_cap; in ceph_add_cap() 655 *new_cap = NULL; in ceph_add_cap() 3890 struct ceph_cap *cap, *tcap, *new_cap = NULL; in handle_cap_export() local 3957 tcap = new_cap; in handle_cap_export() 3959 t_seq - 1, t_mseq, (u64)-1, flag, &new_cap); in handle_cap_export() 3988 new_cap = ceph_get_cap(mdsc, NULL); in handle_cap_export() 4004 if (new_cap) in handle_cap_export() 4005 ceph_put_cap(mdsc, new_cap); in handle_cap_export() 4020 struct ceph_cap *cap, *ocap, *new_cap in handle_cap_import() local 630 ceph_add_cap(struct inode *inode, struct ceph_mds_session *session, u64 cap_id, unsigned issued, unsigned wanted, unsigned seq, unsigned mseq, u64 realmino, int flags, struct ceph_cap **new_cap) ceph_add_cap() argument [all...] |
H A D | inode.c | 754 struct ceph_cap *new_cap = NULL; in ceph_fill_inode() local 771 new_cap = ceph_get_cap(mdsc, caps_reservation); in ceph_fill_inode() 772 if (!new_cap) in ceph_fill_inode() 987 info->cap.flags, &new_cap); in ceph_fill_inode() 1049 if (new_cap) in ceph_fill_inode() 1050 ceph_put_cap(mdsc, new_cap); in ceph_fill_inode()
|
H A D | super.h | 1107 struct ceph_cap **new_cap);
|
/kernel/linux/linux-6.6/fs/ceph/ |
H A D | caps.c | 636 struct ceph_cap **new_cap) in ceph_add_cap() 654 cap = *new_cap; in ceph_add_cap() 655 *new_cap = NULL; in ceph_add_cap() 3975 struct ceph_cap *cap, *tcap, *new_cap = NULL; in handle_cap_export() local 4043 tcap = new_cap; in handle_cap_export() 4045 t_seq - 1, t_mseq, (u64)-1, flag, &new_cap); in handle_cap_export() 4075 new_cap = ceph_get_cap(mdsc, NULL); in handle_cap_export() 4092 if (new_cap) in handle_cap_export() 4093 ceph_put_cap(mdsc, new_cap); in handle_cap_export() 4108 struct ceph_cap *cap, *ocap, *new_cap in handle_cap_import() local 632 ceph_add_cap(struct inode *inode, struct ceph_mds_session *session, u64 cap_id, unsigned issued, unsigned wanted, unsigned seq, unsigned mseq, u64 realmino, int flags, struct ceph_cap **new_cap) ceph_add_cap() argument [all...] |
H A D | inode.c | 928 struct ceph_cap *new_cap = NULL; in ceph_fill_inode() local 966 new_cap = ceph_get_cap(mdsc, caps_reservation); in ceph_fill_inode() 967 if (!new_cap) in ceph_fill_inode() 1234 info->cap.flags, &new_cap); in ceph_fill_inode() 1298 if (new_cap) in ceph_fill_inode() 1299 ceph_put_cap(mdsc, new_cap); in ceph_fill_inode()
|
H A D | super.h | 1224 struct ceph_cap **new_cap);
|
/kernel/linux/linux-6.6/arch/arm64/kvm/ |
H A D | arm.c | 76 u64 new_cap; in kvm_vm_ioctl_enable_cap() local 102 new_cap = cap->args[0]; in kvm_vm_ioctl_enable_cap() 111 } else if (new_cap && !kvm_is_block_size_supported(new_cap)) { in kvm_vm_ioctl_enable_cap() 115 kvm->arch.mmu.split_page_chunk_size = new_cap; in kvm_vm_ioctl_enable_cap()
|
/kernel/linux/linux-6.6/rust/alloc/vec/ |
H A D | mod.rs | 2668 let (new_len, new_cap) = if T::IS_ZST { in into_flattened() 2681 // - `new_cap` refers to the same sized allocation as `cap` because in into_flattened() 2682 // `new_cap * size_of::<T>()` == `cap * size_of::<[T; N]>()` in into_flattened() 2684 unsafe { Vec::<T, A>::from_raw_parts_in(ptr.cast(), new_len, new_cap, alloc) } in into_flattened()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_plane.c | 148 uint64_t new_cap = *cap * 2; in add_modifier() local 149 uint64_t *new_mods = kmalloc(new_cap * sizeof(uint64_t), GFP_KERNEL); in add_modifier() 160 *cap = new_cap; in add_modifier()
|
/kernel/linux/linux-5.10/drivers/pci/ |
H A D | pci.c | 3280 struct pci_cap_saved_state *new_cap) in pci_add_saved_cap() 3282 hlist_add_head(&new_cap->next, &pci_dev->saved_cap_space); in pci_add_saved_cap() 3279 pci_add_saved_cap(struct pci_dev *pci_dev, struct pci_cap_saved_state *new_cap) pci_add_saved_cap() argument
|
/kernel/linux/linux-6.6/drivers/pci/ |
H A D | pci.c | 3455 struct pci_cap_saved_state *new_cap) in pci_add_saved_cap() 3457 hlist_add_head(&new_cap->next, &pci_dev->saved_cap_space); in pci_add_saved_cap() 3454 pci_add_saved_cap(struct pci_dev *pci_dev, struct pci_cap_saved_state *new_cap) pci_add_saved_cap() argument
|