Home
last modified time | relevance | path

Searched refs:kzalloc_node (Results 1 – 87 of 87) sorted by relevance

/linux-4.4.14/scripts/coccinelle/api/alloc/
Dalloc_cast.cocci6 //# kmem_cache_alloc_node, kmalloc_node and kzalloc_node and removes
31 kmem_cache_alloc_node\|kmalloc_node\|kzalloc_node\)(...)
43 kmem_cache_alloc_node\|kmalloc_node\|kzalloc_node\)(...))
55 kmem_cache_alloc_node\|kmalloc_node\|kzalloc_node\)(...)
/linux-4.4.14/scripts/coccinelle/null/
Deno.cocci20 …lloc\|kmem_cache_alloc\|kmem_cache_zalloc\|kmem_cache_alloc_node\|kmalloc_node\|kzalloc_node\)(...)
30 …e_alloc@p1\|kmem_cache_zalloc@p1\|kmem_cache_alloc_node@p1\|kmalloc_node@p1\|kzalloc_node@p1\)(...)
/linux-4.4.14/mm/
Dnobootmem.c347 return kzalloc_node(size, GFP_NOWAIT, pgdat->node_id); in __alloc_bootmem_node_nopanic()
386 return kzalloc_node(size, GFP_NOWAIT, pgdat->node_id); in __alloc_bootmem_node()
447 return kzalloc_node(size, GFP_NOWAIT, pgdat->node_id); in __alloc_bootmem_low_node()
Dbootmem.c742 return kzalloc_node(size, GFP_NOWAIT, pgdat->node_id); in __alloc_bootmem_node_nopanic()
781 return kzalloc_node(size, GFP_NOWAIT, pgdat->node_id); in __alloc_bootmem_node()
793 return kzalloc_node(size, GFP_NOWAIT, pgdat->node_id); in __alloc_bootmem_node_high()
865 return kzalloc_node(size, GFP_NOWAIT, pgdat->node_id); in __alloc_bootmem_low_node()
Dmempool.c192 pool = kzalloc_node(sizeof(*pool), gfp_mask, node_id); in mempool_create_node()
Dsparse.c70 section = kzalloc_node(array_size, GFP_KERNEL, nid); in sparse_index_alloc()
Dmemblock.c1269 return kzalloc_node(size, GFP_NOWAIT, nid); in memblock_virt_alloc_internal()
Dmemcontrol.c4142 pn = kzalloc_node(sizeof(*pn), GFP_KERNEL, tmp); in alloc_mem_cgroup_per_zone_info()
5646 rtpn = kzalloc_node(sizeof(*rtpn), GFP_KERNEL, in mem_cgroup_init()
Dvmalloc.c1346 area = kzalloc_node(sizeof(*area), gfp_mask & GFP_RECLAIM_MASK, node); in __get_vm_area_node()
Dslab.c891 alc_ptr = kzalloc_node(memsize, gfp, node); in alloc_alien_cache()
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-mem.c50 ret = kzalloc_node(size, flags | __GFP_NOWARN, in libcfs_kvzalloc_cpt()
/linux-4.4.14/block/
Dblk-mq-cpumap.c94 map = kzalloc_node(sizeof(*map) * nr_cpu_ids, GFP_KERNEL, in blk_mq_make_queue_map()
Dblk-flush.c509 fq = kzalloc_node(sizeof(*fq), GFP_KERNEL, node); in blk_alloc_flush_queue()
518 fq->flush_rq = kzalloc_node(rq_sz, GFP_KERNEL, node); in blk_alloc_flush_queue()
Dblk-mq-tag.c568 bt->map = kzalloc_node(nr * sizeof(struct blk_align_bitmap), in bt_alloc()
629 tags = kzalloc_node(sizeof(*tags), GFP_KERNEL, node); in blk_mq_init_tags()
Ddeadline-iosched.c349 dd = kzalloc_node(sizeof(*dd), GFP_KERNEL, q->node); in deadline_init_queue()
Dblk-throttle.c331 tg = kzalloc_node(sizeof(*tg), gfp, node); in throtl_pd_alloc()
1560 td = kzalloc_node(sizeof(*td), GFP_KERNEL, q->node); in blk_throtl_init()
Dblk-mq.c1473 tags->rqs = kzalloc_node(set->queue_depth * sizeof(struct request *), in blk_mq_init_rq_map()
1559 bitmap->map = kzalloc_node(num_maps * sizeof(struct blk_align_bitmap), in blk_mq_alloc_bitmap()
2008 hctxs[i] = kzalloc_node(sizeof(struct blk_mq_hw_ctx), in blk_mq_init_allocated_queue()
Dgenhd.c1094 new_ptbl = kzalloc_node(size, GFP_KERNEL, disk->node_id); in disk_expand_part_tbl()
1265 disk = kzalloc_node(sizeof(struct gendisk), GFP_KERNEL, node_id); in alloc_disk_node()
Delevator.c158 eq = kzalloc_node(sizeof(*eq), GFP_KERNEL, q->node); in elevator_alloc()
Dblk-cgroup.c98 blkg = kzalloc_node(sizeof(*blkg), gfp_mask, q->node); in blkg_alloc()
Dcfq-iosched.c1616 cfqg = kzalloc_node(sizeof(*cfqg), gfp, node); in cfq_pd_alloc()
4509 cfqd = kzalloc_node(sizeof(*cfqd), GFP_KERNEL, q->node); in cfq_init_queue()
4533 cfqd->root_group = kzalloc_node(sizeof(*cfqd->root_group), in cfq_init_queue()
/linux-4.4.14/drivers/crypto/qat/qat_dh895xccvf/
Dadf_drv.c219 accel_dev = kzalloc_node(sizeof(*accel_dev), GFP_KERNEL, in adf_probe()
239 hw_data = kzalloc_node(sizeof(*hw_data), GFP_KERNEL, in adf_probe()
/linux-4.4.14/drivers/crypto/qat/qat_dh895xcc/
Dadf_drv.c229 accel_dev = kzalloc_node(sizeof(*accel_dev), GFP_KERNEL, in adf_probe()
248 hw_data = kzalloc_node(sizeof(*hw_data), GFP_KERNEL, in adf_probe()
Dadf_isr.c241 entries = kzalloc_node(msix_num_entries * sizeof(*entries), in adf_isr_alloc_msix_entry_table()
/linux-4.4.14/drivers/crypto/qat/qat_common/
Dadf_transport.c429 kzalloc_node(sizeof(atomic_t), in adf_init_bank()
480 etr_data = kzalloc_node(sizeof(*etr_data), GFP_KERNEL, in adf_init_etr_data()
487 etr_data->banks = kzalloc_node(size, GFP_KERNEL, in adf_init_etr_data()
Dadf_admin.c240 admin = kzalloc_node(sizeof(*accel_dev->admin), GFP_KERNEL, in adf_init_admin_comms()
Dqat_crypto.c181 inst = kzalloc_node(sizeof(*inst), GFP_KERNEL, in qat_crypto_create_instances()
Dqat_algs.c681 bufl = kzalloc_node(sz, GFP_ATOMIC, in qat_alg_sgl_to_bufl()
716 buflout = kzalloc_node(sz_out, GFP_ATOMIC, in qat_alg_sgl_to_bufl()
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
Dnrs_fifo.c83 head = kzalloc_node(sizeof(*head), GFP_NOFS, in nrs_fifo_start()
Dptlrpcd.c526 pc->pc_partners = kzalloc_node(size, GFP_NOFS, in ptlrpcd_partners()
839 pd = kzalloc_node(size, GFP_NOFS, in ptlrpcd_init()
Dservice.c77 rqbd = kzalloc_node(sizeof(*rqbd), GFP_NOFS, in ptlrpc_alloc_rqbd()
491 kzalloc_node(sizeof(struct list_head) * size, GFP_NOFS, in ptlrpc_service_part_init()
500 kzalloc_node(sizeof(__u32) * size, GFP_NOFS, in ptlrpc_service_part_init()
637 svcpt = kzalloc_node(sizeof(*svcpt), GFP_NOFS, in ptlrpc_register_service()
2396 thread = kzalloc_node(sizeof(*thread), GFP_NOFS, in ptlrpc_start_thread()
2509 kzalloc_node(hrp->hrp_nthrs * sizeof(*hrt), GFP_NOFS, in ptlrpc_hr_init()
Dnrs.c747 policy = kzalloc_node(sizeof(*policy), GFP_NOFS, in nrs_policy_register()
964 kzalloc_node(sizeof(*svcpt->scp_nrs_hp), GFP_NOFS, in nrs_svcpt_setup_locked()
Dclient.c834 set = kzalloc_node(sizeof(*set), GFP_NOFS, in ptlrpc_prep_set()
/linux-4.4.14/arch/x86/kernel/cpu/
Dperf_event_intel_ds.c281 buffer = kzalloc_node(x86_pmu.pebs_buffer_size, GFP_KERNEL, node); in alloc_pebs_buffer()
290 ibuffer = kzalloc_node(PEBS_FIXUP_SIZE, GFP_KERNEL, node); in alloc_pebs_buffer()
332 buffer = kzalloc_node(BTS_BUFFER_SIZE, GFP_KERNEL | __GFP_NOWARN, node); in alloc_bts_buffer()
367 ds = kzalloc_node(sizeof(*ds), GFP_KERNEL, node); in alloc_ds_buffer()
Dperf_event_amd.c350 nb = kzalloc_node(sizeof(struct amd_nb), GFP_KERNEL, cpu_to_node(cpu)); in amd_alloc_nb()
Dperf_event_amd_uncore.c289 return kzalloc_node(sizeof(struct amd_uncore), GFP_KERNEL, in amd_uncore_alloc()
Dperf_event_intel_bts.c95 buf = kzalloc_node(offsetof(struct bts_buffer, buf[nbuf]), GFP_KERNEL, node); in bts_buffer_setup_aux()
Dperf_event_intel_rapl.c603 pmu = kzalloc_node(sizeof(*pmu), GFP_KERNEL, cpu_to_node(cpu)); in rapl_cpu_prepare()
Dperf_event_intel_pt.c877 buf = kzalloc_node(offsetof(struct pt_buffer, topa_index[nr_pages]), in pt_buffer_setup_aux()
Dperf_event_intel_uncore.c312 box = kzalloc_node(size, GFP_KERNEL, node); in uncore_alloc_box()
Dperf_event_intel.c2756 regs = kzalloc_node(sizeof(struct intel_shared_regs), in allocate_shared_regs()
2774 c = kzalloc_node(sizeof(struct intel_excl_cntrs), in allocate_excl_cntrs()
/linux-4.4.14/drivers/ide/
Dide-probe.c1256 drive = kzalloc_node(sizeof(*drive), GFP_KERNEL, node); in ide_port_alloc_devices()
1268 drive->id = kzalloc_node(SECTOR_SIZE, GFP_KERNEL, node); in ide_port_alloc_devices()
1289 host = kzalloc_node(sizeof(*host), GFP_KERNEL, node); in ide_host_alloc()
1300 hwif = kzalloc_node(sizeof(*hwif), GFP_KERNEL, node); in ide_host_alloc()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Den_cq.c55 cq = kzalloc_node(sizeof(*cq), GFP_KERNEL, node); in mlx4_en_create_cq()
Den_tx.c57 ring = kzalloc_node(sizeof(*ring), GFP_KERNEL, node); in mlx4_en_create_tx_ring()
Den_rx.c361 ring = kzalloc_node(sizeof(*ring), GFP_KERNEL, node); in mlx4_en_create_rx_ring()
/linux-4.4.14/drivers/ntb/
Dntb_transport.c369 client_dev = kzalloc_node(sizeof(*client_dev), in ntb_transport_register_client_dev()
1026 nt = kzalloc_node(sizeof(*nt), GFP_KERNEL, node); in ntb_transport_probe()
1036 nt->mw_vec = kzalloc_node(mw_count * sizeof(*nt->mw_vec), in ntb_transport_probe()
1077 nt->qp_vec = kzalloc_node(qp_count * sizeof(*nt->qp_vec), in ntb_transport_probe()
1670 entry = kzalloc_node(sizeof(*entry), GFP_ATOMIC, node); in ntb_transport_create_queue()
1680 entry = kzalloc_node(sizeof(*entry), GFP_ATOMIC, node); in ntb_transport_create_queue()
/linux-4.4.14/arch/x86/pci/
Dacpi.c350 info = kzalloc_node(sizeof(*info), GFP_KERNEL, node); in pci_acpi_scan_root()
/linux-4.4.14/include/linux/
Dslab.h611 static inline void *kzalloc_node(size_t size, gfp_t flags, int node) in kzalloc_node() function
Dgenhd.h418 return kzalloc_node(sizeof(struct partition_meta_info), in alloc_part_info()
/linux-4.4.14/kernel/
Dsmpboot.c177 td = kzalloc_node(sizeof(*td), GFP_KERNEL, cpu_to_node(cpu)); in __smpboot_create_thread()
Dworkqueue.c1643 worker = kzalloc_node(sizeof(*worker), GFP_KERNEL, node); in alloc_worker()
3265 pool = kzalloc_node(sizeof(*pool), GFP_KERNEL, target_node); in get_unbound_pool()
/linux-4.4.14/net/rds/
Dib.c140 rds_ibdev = kzalloc_node(sizeof(struct rds_ib_device), GFP_KERNEL, in rds_ib_add_one()
Dib_rdma.c380 ibmr = kzalloc_node(sizeof(*ibmr), GFP_KERNEL, rdsibdev_to_node(rds_ibdev)); in rds_ib_alloc_fmr()
/linux-4.4.14/net/sched/
Dsch_generic.c585 p = kzalloc_node(size, GFP_KERNEL, in qdisc_alloc()
594 p = kzalloc_node(size + QDISC_ALIGNTO - 1, GFP_KERNEL, in qdisc_alloc()
/linux-4.4.14/arch/powerpc/platforms/pseries/
Diommu.c62 table_group = kzalloc_node(sizeof(struct iommu_table_group), GFP_KERNEL, in iommu_pseries_alloc_group()
67 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, node); in iommu_pseries_alloc_group()
71 tgl = kzalloc_node(sizeof(struct iommu_table_group_link), GFP_KERNEL, in iommu_pseries_alloc_group()
/linux-4.4.14/net/core/
Dsysctl_net_core.c129 cur = kzalloc_node(len, GFP_KERNEL, in flow_limit_cpu_sysctl()
Dflow.c399 fcp->hash_table = kzalloc_node(sz, GFP_KERNEL, cpu_to_node(cpu)); in flow_cache_cpu_prepare()
Dpktgen.c3645 pkt_dev = kzalloc_node(sizeof(struct pktgen_dev), GFP_KERNEL, node); in pktgen_add_device()
3723 t = kzalloc_node(sizeof(struct pktgen_thread), GFP_KERNEL, in pktgen_create_thread()
Ddev.c2017 new_map = kzalloc_node(XPS_MAP_SIZE(alloc_len), GFP_KERNEL, in expand_xps_map()
/linux-4.4.14/arch/powerpc/platforms/powernv/
Dpci.c659 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, nid); in pnv_pci_table_alloc()
674 tgl = kzalloc_node(sizeof(struct iommu_table_group_link), GFP_KERNEL, in pnv_pci_link_table_and_group()
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_init.c174 rcd = kzalloc_node(sizeof(*rcd), GFP_KERNEL, node_id); in qib_create_ctxtdata()
185 rcd->opstats = kzalloc_node(sizeof(*rcd->opstats), in qib_create_ctxtdata()
1694 kzalloc_node(chunk * sizeof(rcd->rcvegrbuf[0]), in qib_setup_eagerbufs()
/linux-4.4.14/arch/x86/platform/uv/
Duv_nmi.c713 uv_hub_nmi_list[nid] = kzalloc_node(size, in uv_nmi_setup()
Dtlb_uv.c1988 hmaster->cpumask = kzalloc_node(sz, GFP_KERNEL, hmaster->osnode); in make_per_hub_cpumask()
/linux-4.4.14/kernel/irq/
Dirqdomain.c104 domain = kzalloc_node(sizeof(*domain) + (sizeof(unsigned int) * size), in __irq_domain_add()
944 irq_data = kzalloc_node(sizeof(*irq_data), GFP_KERNEL, in irq_domain_insert_irq_data()
Dirqdesc.c149 desc = kzalloc_node(sizeof(*desc), gfp, node); in alloc_desc()
/linux-4.4.14/lib/
Dgenalloc.c190 chunk = kzalloc_node(nbytes, GFP_KERNEL, nid); in gen_pool_add_virt()
/linux-4.4.14/drivers/ntb/hw/intel/
Dntb_hw_intel.c441 ndev->vec = kzalloc_node(msix_max * sizeof(*ndev->vec), in ndev_init_isr()
446 ndev->msix = kzalloc_node(msix_max * sizeof(*ndev->msix), in ndev_init_isr()
2050 ndev = kzalloc_node(sizeof(*ndev), GFP_KERNEL, node); in intel_ntb_pci_probe()
2067 ndev = kzalloc_node(sizeof(*ndev), GFP_KERNEL, node); in intel_ntb_pci_probe()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Den_main.c331 rq->skb = kzalloc_node(wq_sz * sizeof(*rq->skb), GFP_KERNEL, in mlx5e_create_rq()
518 sq->skb = kzalloc_node(wq_sz * sizeof(*sq->skb), GFP_KERNEL, numa); in mlx5e_alloc_sq_db()
519 sq->dma_fifo = kzalloc_node(df_sz * sizeof(*sq->dma_fifo), GFP_KERNEL, in mlx5e_alloc_sq_db()
970 c = kzalloc_node(sizeof(*c), GFP_KERNEL, cpu_to_node(cpu)); in mlx5e_open_channel()
/linux-4.4.14/kernel/events/
Dring_buffer.c500 rb->aux_pages = kzalloc_node(nr_pages * sizeof(void *), GFP_KERNEL, node); in rb_alloc_aux()
Dcore.c9306 hlist = kzalloc_node(sizeof(*hlist), GFP_KERNEL, cpu_to_node(cpu)); in perf_event_init_cpu()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dpio.c685 sc = kzalloc_node(sizeof(struct send_context), GFP_KERNEL, numa); in sc_alloc()
810 sc->sr = kzalloc_node(sizeof(union pio_shadow_ring) * in sc_alloc()
Dfile_ops.c1267 uctxt->tidusemap = kzalloc_node(uctxt->tidmapcnt * in setup_ctxt()
/linux-4.4.14/arch/x86/kernel/apic/
Dvector.c79 data = kzalloc_node(sizeof(*data), GFP_KERNEL, node); in alloc_apic_chip_data()
Dio_apic.c382 entry = kzalloc_node(sizeof(struct irq_pin_list), GFP_ATOMIC, node); in __add_pin_to_irq_node()
/linux-4.4.14/drivers/block/
Dnull_blk.c651 nullb = kzalloc_node(sizeof(*nullb), GFP_KERNEL, home_node); in null_add_dev()
/linux-4.4.14/kernel/sched/
Drt.c202 rt_rq = kzalloc_node(sizeof(struct rt_rq), in alloc_rt_sched_group()
207 rt_se = kzalloc_node(sizeof(struct sched_rt_entity), in alloc_rt_sched_group()
Dcore.c6157 sg = kzalloc_node(sizeof(struct sched_group) + cpumask_size(), in build_overlap_sched_groups()
6872 sd = kzalloc_node(sizeof(struct sched_domain) + cpumask_size(), in __sdt_alloc()
6879 sg = kzalloc_node(sizeof(struct sched_group) + cpumask_size(), in __sdt_alloc()
6888 sgc = kzalloc_node(sizeof(struct sched_group_capacity) + cpumask_size(), in __sdt_alloc()
7397 per_cpu(load_balance_mask, i) = (cpumask_var_t)kzalloc_node( in sched_init()
Dfair.c8130 cfs_rq = kzalloc_node(sizeof(struct cfs_rq), in alloc_fair_sched_group()
8135 se = kzalloc_node(sizeof(struct sched_entity), in alloc_fair_sched_group()
/linux-4.4.14/drivers/nvme/host/
Dpci.c2252 ns = kzalloc_node(sizeof(*ns), GFP_KERNEL, node); in nvme_alloc_ns()
3304 dev = kzalloc_node(sizeof(*dev), GFP_KERNEL, node); in nvme_probe()
3307 dev->entry = kzalloc_node(num_possible_cpus() * sizeof(*dev->entry), in nvme_probe()
3311 dev->queues = kzalloc_node((num_possible_cpus() + 1) * sizeof(void *), in nvme_probe()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_lib.c828 q_vector = kzalloc_node(size, GFP_KERNEL, node); in ixgbe_alloc_q_vector()
/linux-4.4.14/kernel/trace/
Dring_buffer.c1152 bpage = kzalloc_node(ALIGN(sizeof(*bpage), cache_line_size()), in __rb_allocate_pages()
1212 cpu_buffer = kzalloc_node(ALIGN(sizeof(*cpu_buffer), cache_line_size()), in rb_allocate_cpu_buffer()
1228 bpage = kzalloc_node(ALIGN(sizeof(*bpage), cache_line_size()), in rb_allocate_cpu_buffer()
/linux-4.4.14/arch/powerpc/platforms/cell/
Diommu.c485 window = kzalloc_node(sizeof(*window), GFP_KERNEL, iommu->nid); in cell_iommu_setup_window()
/linux-4.4.14/net/sunrpc/
Dsvc.c590 rqstp = kzalloc_node(sizeof(*rqstp), GFP_KERNEL, node); in svc_rqst_alloc()
/linux-4.4.14/drivers/md/
Ddm-stats.c150 p = kzalloc_node(alloc_size, GFP_KERNEL | __GFP_NORETRY | __GFP_NOMEMALLOC | __GFP_NOWARN, node); in dm_kvzalloc()
/linux-4.4.14/drivers/block/mtip32xx/
Dmtip32xx.c3214 dd->port = kzalloc_node(sizeof(struct mtip_port), GFP_KERNEL, in mtip_hw_init()
4405 dd = kzalloc_node(sizeof(struct driver_data), GFP_KERNEL, my_node); in mtip_pci_probe()
/linux-4.4.14/drivers/scsi/
Dscsi_lib.c2065 cmd->sense_buffer = kzalloc_node(SCSI_SENSE_BUFFERSIZE, GFP_KERNEL, in scsi_init_request()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c709 s = kzalloc_node(nelem * sw_size, GFP_KERNEL, node); in alloc_ring()