Home
last modified time | relevance | path

Searched refs:kmem_cache_zalloc (Results 1 – 25 of 190) sorted by relevance

12345678

/linux-6.6.21/scripts/coccinelle/api/alloc/
Dalloc_cast.cocci3 /// like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc.
6 //# kmalloc, kzalloc, kcalloc, kmem_cache_alloc, kmem_cache_zalloc,
34 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
57 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
80 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
97 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
Dzalloc-simple.cocci83 + x = kmem_cache_zalloc(E3,E4);
86 + x = kmem_cache_zalloc(E3,E4);
89 + x = (T)kmem_cache_zalloc(E3,E4);
290 msg="WARNING: kmem_cache_zalloc should be used for %s, instead of kmem_cache_alloc/memset" % (x)
/linux-6.6.21/scripts/coccinelle/null/
Deno.cocci21 x = \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|kmem_cache_alloc_node\|kmallo…
31 *x = \(kmalloc@p1\|kzalloc@p1\|kcalloc@p1\|kmem_cache_alloc@p1\|kmem_cache_zalloc@p1\|kmem_cache_al…
/linux-6.6.21/fs/dlm/
Dmemory.c100 r = kmem_cache_zalloc(rsb_cache, GFP_NOFS); in dlm_allocate_rsb()
115 lkb = kmem_cache_zalloc(lkb_cache, GFP_NOFS); in dlm_allocate_lkb()
/linux-6.6.21/security/selinux/ss/
Dhashtab.c55 newnode = kmem_cache_zalloc(hashtab_node_cachep, GFP_KERNEL); in __hashtab_insert()
155 tmp = kmem_cache_zalloc(hashtab_node_cachep, in hashtab_duplicate()
Debitmap.c62 new = kmem_cache_zalloc(ebitmap_node_cachep, GFP_ATOMIC); in ebitmap_cpy()
188 e_iter = kmem_cache_zalloc(ebitmap_node_cachep, GFP_ATOMIC); in ebitmap_netlbl_import()
325 new = kmem_cache_zalloc(ebitmap_node_cachep, GFP_ATOMIC); in ebitmap_set_bit()
427 tmp = kmem_cache_zalloc(ebitmap_node_cachep, GFP_KERNEL); in ebitmap_read()
/linux-6.6.21/virt/kvm/
Dasync_pf.c178 work = kmem_cache_zalloc(async_pf_cache, GFP_NOWAIT | __GFP_NOWARN); in kvm_setup_async_pf()
210 work = kmem_cache_zalloc(async_pf_cache, GFP_ATOMIC); in kvm_async_pf_wakeup_all()
/linux-6.6.21/mm/
Dmm_slot.h28 return kmem_cache_zalloc(cache, GFP_KERNEL); in mm_slot_alloc()
/linux-6.6.21/fs/jffs2/
Dmalloc.c280 xd = kmem_cache_zalloc(xattr_datum_cache, GFP_KERNEL); in jffs2_alloc_xattr_datum()
300 ref = kmem_cache_zalloc(xattr_ref_cache, GFP_KERNEL); in jffs2_alloc_xattr_ref()
/linux-6.6.21/drivers/s390/cio/
Dvfio_ccw_ops.c63 private->io_region = kmem_cache_zalloc(vfio_ccw_io_region, in vfio_ccw_mdev_init_dev()
68 private->cmd_region = kmem_cache_zalloc(vfio_ccw_cmd_region, in vfio_ccw_mdev_init_dev()
73 private->schib_region = kmem_cache_zalloc(vfio_ccw_schib_region, in vfio_ccw_mdev_init_dev()
78 private->crw_region = kmem_cache_zalloc(vfio_ccw_crw_region, in vfio_ccw_mdev_init_dev()
/linux-6.6.21/drivers/net/wireguard/
Dallowedips.c190 node = kmem_cache_zalloc(node_cache, GFP_KERNEL); in add()
205 newnode = kmem_cache_zalloc(node_cache, GFP_KERNEL); in add()
234 node = kmem_cache_zalloc(node_cache, GFP_KERNEL); in add()
/linux-6.6.21/security/selinux/
Davc.c298 xpd_node = kmem_cache_zalloc(avc_xperms_decision_cachep, in avc_xperms_decision_alloc()
305 xpd->allowed = kmem_cache_zalloc(avc_xperms_data_cachep, in avc_xperms_decision_alloc()
311 xpd->auditallow = kmem_cache_zalloc(avc_xperms_data_cachep, in avc_xperms_decision_alloc()
317 xpd->dontaudit = kmem_cache_zalloc(avc_xperms_data_cachep, in avc_xperms_decision_alloc()
346 xp_node = kmem_cache_zalloc(avc_xperms_cachep, GFP_NOWAIT | __GFP_NOWARN); in avc_xperms_alloc()
500 node = kmem_cache_zalloc(avc_node_cachep, GFP_NOWAIT | __GFP_NOWARN); in avc_alloc_node()
/linux-6.6.21/include/acpi/platform/
Daclinuxex.h67 return kmem_cache_zalloc(cache, in acpi_os_acquire_object()
/linux-6.6.21/drivers/iommu/
Dfsl_pamu_domain.c155 info = kmem_cache_zalloc(iommu_devinfo_cache, GFP_ATOMIC); in attach_device()
202 dma_domain = kmem_cache_zalloc(fsl_pamu_domain_cache, GFP_KERNEL); in fsl_pamu_domain_alloc()
/linux-6.6.21/fs/orangefs/
Dorangefs-cache.c120 new_op = kmem_cache_zalloc(op_cache, GFP_KERNEL); in op_alloc()
/linux-6.6.21/arch/powerpc/kernel/
Drtas_flash.c328 uf->flist = kmem_cache_zalloc(flash_block_cache, GFP_KERNEL); in rtas_flash_write()
339 fl->next = kmem_cache_zalloc(flash_block_cache, GFP_KERNEL); in rtas_flash_write()
348 p = kmem_cache_zalloc(flash_block_cache, GFP_KERNEL); in rtas_flash_write()
/linux-6.6.21/fs/gfs2/
Dtrans.c115 tr = kmem_cache_zalloc(gfs2_trans_cachep, GFP_NOFS); in gfs2_trans_begin()
168 bd = kmem_cache_zalloc(gfs2_bufdata_cachep, GFP_NOFS | __GFP_NOFAIL); in gfs2_alloc_bufdata()
/linux-6.6.21/fs/ecryptfs/
Dfile.c220 file_info = kmem_cache_zalloc(ecryptfs_file_info_cache, GFP_KERNEL); in ecryptfs_open()
288 file_info = kmem_cache_zalloc(ecryptfs_file_info_cache, GFP_KERNEL); in ecryptfs_dir_open()
/linux-6.6.21/drivers/md/
Ddm-uevent.c48 event = kmem_cache_zalloc(_dm_event_cache, GFP_ATOMIC); in dm_uevent_alloc()
/linux-6.6.21/fs/xfs/
Dxfs_iunlink_item.c164 iup = kmem_cache_zalloc(xfs_iunlink_cache, GFP_KERNEL | __GFP_NOFAIL); in xfs_iunlink_log_inode()
/linux-6.6.21/fs/
Dfile_table.c206 f = kmem_cache_zalloc(filp_cachep, GFP_KERNEL); in alloc_empty_file()
240 f = kmem_cache_zalloc(filp_cachep, GFP_KERNEL); in alloc_empty_file_noaccount()
/linux-6.6.21/drivers/bus/mhi/ep/
Dmain.c77 event = kmem_cache_zalloc(mhi_cntrl->ev_ring_el_cache, GFP_KERNEL | GFP_DMA); in mhi_ep_send_completion_event()
96 event = kmem_cache_zalloc(mhi_cntrl->ev_ring_el_cache, GFP_KERNEL | GFP_DMA); in mhi_ep_send_state_change_event()
114 event = kmem_cache_zalloc(mhi_cntrl->ev_ring_el_cache, GFP_KERNEL | GFP_DMA); in mhi_ep_send_ee_event()
133 event = kmem_cache_zalloc(mhi_cntrl->ev_ring_el_cache, GFP_KERNEL | GFP_DMA); in mhi_ep_send_cmd_comp_event()
455 result.buf_addr = kmem_cache_zalloc(mhi_cntrl->tre_buf_cache, GFP_KERNEL | GFP_DMA); in mhi_ep_process_ch_ring()
865 item = kmem_cache_zalloc(mhi_cntrl->ring_item_cache, GFP_ATOMIC); in mhi_ep_queue_channel_db()
/linux-6.6.21/kernel/
Duser.c200 new = kmem_cache_zalloc(uid_cachep, GFP_KERNEL); in alloc_uid()
/linux-6.6.21/drivers/gpu/drm/scheduler/
Dsched_fence.c213 fence = kmem_cache_zalloc(sched_fence_slab, GFP_KERNEL); in drm_sched_fence_alloc()
/linux-6.6.21/fs/smb/server/
Dksmbd_work.c21 struct ksmbd_work *work = kmem_cache_zalloc(work_cache, GFP_KERNEL); in ksmbd_alloc_work_struct()

12345678