| /linux/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()
|
| /linux/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()
|
| /linux/kernel/ |
| H A D | umh.c | 502 kernel_cap_t new_cap, *cap; in proc_cap_handler() local 532 new_cap.val = (u32)cap_array[0]; in proc_cap_handler() 533 new_cap.val += (u64)cap_array[1] << 32; in proc_cap_handler() 540 *cap = cap_intersect(*cap, new_cap); in proc_cap_handler()
|
| /linux/tools/testing/selftests/vDSO/ |
| H A D | vdso_test_getrandom.c | 63 size_t new_cap; in vgetrandom_get_state() local 75 new_cap = vgrnd.cap + num; in vgetrandom_get_state() 76 new_states = reallocarray(vgrnd.states, new_cap, sizeof(*vgrnd.states)); in vgetrandom_get_state() 79 vgrnd.cap = new_cap; in vgetrandom_get_state()
|
| /linux/fs/ceph/ |
| H A D | caps.c | 655 struct ceph_cap **new_cap) in ceph_add_cap() argument 675 cap = *new_cap; in ceph_add_cap() 676 *new_cap = NULL; in ceph_add_cap() 4072 struct ceph_cap *cap, *tcap, *new_cap = NULL; in handle_cap_export() local 4141 tcap = new_cap; in handle_cap_export() 4143 t_issue_seq - 1, t_mseq, (u64)-1, flag, &new_cap); in handle_cap_export() 4173 new_cap = ceph_get_cap(mdsc, NULL); in handle_cap_export() 4190 if (new_cap) in handle_cap_export() 4191 ceph_put_cap(mdsc, new_cap); in handle_cap_export() 4207 struct ceph_cap *cap, *ocap, *new_cap = NULL; in handle_cap_import() local [all …]
|
| H A D | inode.c | 990 struct ceph_cap *new_cap = NULL; in ceph_fill_inode() local 1029 new_cap = ceph_get_cap(mdsc, caps_reservation); in ceph_fill_inode() 1030 if (!new_cap) in ceph_fill_inode() 1302 info->cap.flags, &new_cap); in ceph_fill_inode() 1367 if (new_cap) in ceph_fill_inode() 1368 ceph_put_cap(mdsc, new_cap); in ceph_fill_inode()
|
| H A D | super.h | 1252 struct ceph_cap **new_cap);
|
| /linux/tools/bpf/bpftool/ |
| H A D | btf.c | 482 __u32 new_cap; in ptr_array_push() local 486 new_cap = (arr->cap ?: 16) * 2; in ptr_array_push() 487 tmp = realloc(arr->elems, sizeof(*arr->elems) * new_cap); in ptr_array_push() 491 arr->cap = new_cap; in ptr_array_push()
|
| /linux/rust/kernel/alloc/ |
| H A D | kvec.rs | 637 let new_cap = core::cmp::max(cap * 2, len.checked_add(additional).ok_or(AllocError)?); in reserve() localVariable 638 let layout = ArrayLayout::new(new_cap).map_err(|_| AllocError)?; in reserve()
|
| /linux/arch/arm64/kvm/ |
| H A D | arm.c | 164 u64 new_cap = cap->args[0]; in kvm_vm_ioctl_enable_cap() local 166 if (!new_cap || kvm_is_block_size_supported(new_cap)) { in kvm_vm_ioctl_enable_cap() 168 kvm->arch.mmu.split_page_chunk_size = new_cap; in kvm_vm_ioctl_enable_cap()
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_plane.c | 149 uint64_t new_cap = *cap * 2; in amdgpu_dm_plane_add_modifier() local 150 uint64_t *new_mods = kmalloc_array(new_cap, sizeof(uint64_t), GFP_KERNEL); in amdgpu_dm_plane_add_modifier() 161 *cap = new_cap; in amdgpu_dm_plane_add_modifier()
|
| /linux/drivers/pci/ |
| H A D | pci.c | 3400 struct pci_cap_saved_state *new_cap) in pci_add_saved_cap() argument 3402 hlist_add_head(&new_cap->next, &pci_dev->saved_cap_space); in pci_add_saved_cap()
|