Home
last modified time | relevance | path

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

/Linux-v4.19/scripts/coccinelle/api/alloc/
Dalloc_cast.cocci37 pci_zalloc_consistent\|kmem_alloc\|kmem_zalloc\|kmem_zone_alloc\|
60 pci_zalloc_consistent\|kmem_alloc\|kmem_zalloc\|kmem_zone_alloc\|
83 pci_zalloc_consistent\|kmem_alloc\|kmem_zalloc\|kmem_zone_alloc\|
100 pci_zalloc_consistent\|kmem_alloc\|kmem_zalloc\|kmem_zone_alloc\|
Dzalloc-simple.cocci100 + x = kmem_zalloc(E1,E2);
103 + x = kmem_zalloc(E1,E2);
106 + x = (T)kmem_zalloc(E1,E2);
318 msg="WARNING: kmem_zalloc should be used for %s, instead of kmem_alloc/memset" % (x)
/Linux-v4.19/fs/xfs/libxfs/
Dxfs_dir2.c116 mp->m_dir_geo = kmem_zalloc(sizeof(struct xfs_da_geometry), in xfs_da_mount()
118 mp->m_attr_geo = kmem_zalloc(sizeof(struct xfs_da_geometry), in xfs_da_mount()
224 args = kmem_zalloc(sizeof(*args), KM_SLEEP | KM_NOFS); in xfs_dir_init()
261 args = kmem_zalloc(sizeof(*args), KM_SLEEP | KM_NOFS); in xfs_dir_createname()
360 args = kmem_zalloc(sizeof(*args), KM_SLEEP | KM_NOFS); in xfs_dir_lookup()
429 args = kmem_zalloc(sizeof(*args), KM_SLEEP | KM_NOFS); in xfs_dir_removename()
490 args = kmem_zalloc(sizeof(*args), KM_SLEEP | KM_NOFS); in xfs_dir_replace()
Dxfs_iext_tree.c405 struct xfs_iext_node *node = kmem_zalloc(NODE_SIZE, KM_NOFS); in xfs_iext_grow()
461 struct xfs_iext_node *new = kmem_zalloc(NODE_SIZE, KM_NOFS); in xfs_iext_split_node()
549 struct xfs_iext_leaf *new = kmem_zalloc(NODE_SIZE, KM_NOFS); in xfs_iext_split_leaf()
590 ifp->if_u1.if_root = kmem_zalloc(sizeof(struct xfs_iext_rec), KM_NOFS); in xfs_iext_alloc_root()
Dxfs_da_btree.c2464 map = kmem_zalloc(nirecs * sizeof(struct xfs_buf_map), in xfs_buf_map_from_irec()
2523 irecs = kmem_zalloc(sizeof(irec) * nfsb, in xfs_dabuf_map()
Dxfs_attr_leaf.c2175 tmp_leaf = kmem_zalloc(state->args->geo->blksize, KM_SLEEP); in xfs_attr3_leaf_unbalance()
/Linux-v4.19/fs/xfs/
Dkmem.h71 kmem_zalloc(size_t size, xfs_km_flags_t flags) in kmem_zalloc() function
Dxfs_mru_cache.c336 if (!(mru = kmem_zalloc(sizeof(*mru), KM_SLEEP))) in xfs_mru_cache_create()
341 mru->lists = kmem_zalloc(mru->grp_count * sizeof(*mru->lists), KM_SLEEP); in xfs_mru_cache_create()
Dxfs_extfree_item.c220 efip = kmem_zalloc(size, KM_SLEEP); in xfs_efi_init()
469 efdp = kmem_zalloc(size, KM_SLEEP); in xfs_efd_init()
Dxfs_log_cil.c647 new_ctx = kmem_zalloc(sizeof(*new_ctx), KM_SLEEP|KM_NOFS); in xlog_cil_push()
1158 cil = kmem_zalloc(sizeof(*cil), KM_SLEEP|KM_MAYFAIL); in xlog_cil_init()
1162 ctx = kmem_zalloc(sizeof(*ctx), KM_SLEEP|KM_MAYFAIL); in xlog_cil_init()
Dxfs_itable.c47 buf = kmem_zalloc(sizeof(*buf), KM_SLEEP | KM_MAYFAIL); in xfs_bulkstat_one_int()
562 buffer = kmem_zalloc(bcount * sizeof(*buffer), KM_SLEEP); in xfs_inumbers()
Dxfs_dquot_item.c456 qf = kmem_zalloc(sizeof(struct xfs_qoff_logitem), KM_SLEEP); in xfs_qm_qoff_logitem_init()
Dxfs_error.c211 mp->m_errortag = kmem_zalloc(sizeof(unsigned int) * XFS_ERRTAG_MAX, in xfs_errortag_init()
Dxfs_refcount_item.c205 cuip = kmem_zalloc(xfs_cui_log_item_sizeof(nextents), in xfs_cui_init()
Dxfs_rmap_item.c204 ruip = kmem_zalloc(xfs_rui_log_item_sizeof(nextents), KM_SLEEP); in xfs_rui_init()
Dxfs_extent_busy.c36 new = kmem_zalloc(sizeof(struct xfs_extent_busy), KM_SLEEP); in xfs_extent_busy_insert()
Dxfs_trans_ail.c802 ailp = kmem_zalloc(sizeof(struct xfs_ail), KM_MAYFAIL); in xfs_trans_ail_init()
Dxfs_buf.c170 bp->b_maps = kmem_zalloc(map_count * sizeof(struct xfs_buf_map), in xfs_buf_get_maps()
1790 btp = kmem_zalloc(sizeof(*btp), KM_SLEEP | KM_NOFS); in xfs_alloc_buftarg()
Dxfs_buf_item.c706 bip->bli_formats = kmem_zalloc(count * sizeof(struct xfs_buf_log_format), in xfs_buf_item_get_format()
Dxfs_mount.c199 pag = kmem_zalloc(sizeof(*pag), KM_MAYFAIL); in xfs_initialize_perag()
Dxfs_log_recover.c4243 item = kmem_zalloc(sizeof(xlog_recover_item_t), KM_SLEEP); in xlog_recover_add_item()
4370 kmem_zalloc(item->ri_total * sizeof(xfs_log_iovec_t), in xlog_recover_add_to_trans()
4505 trans = kmem_zalloc(sizeof(struct xlog_recover), KM_SLEEP); in xlog_recover_ophdr_to_trans()
5615 log->l_buf_cancel_table = kmem_zalloc(XLOG_BC_TABLE_SIZE * in xlog_do_log_recovery()
Dxfs_log.c1429 log = kmem_zalloc(sizeof(struct xlog), KM_MAYFAIL); in xlog_alloc_log()
1519 *iclogp = kmem_zalloc(sizeof(xlog_in_core_t), KM_MAYFAIL); in xlog_alloc_log()
Dxfs_qm.c649 qinf = mp->m_quotainfo = kmem_zalloc(sizeof(xfs_quotainfo_t), KM_SLEEP); in xfs_qm_init_quotainfo()
Dxfs_super.c1225 tmp_mp = kmem_zalloc(sizeof(*tmp_mp), KM_MAYFAIL); in xfs_test_remount_options()
/Linux-v4.19/fs/xfs/scrub/
Dagheader.c727 sai.entries = kmem_zalloc(sizeof(xfs_agblock_t) * agflcount, in xchk_agfl()