Home
last modified time | relevance | path

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

/linux-4.1.27/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.1.27/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.1.27/mm/
Dnobootmem.c334 return kzalloc_node(size, GFP_NOWAIT, pgdat->node_id); in __alloc_bootmem_node_nopanic()
373 return kzalloc_node(size, GFP_NOWAIT, pgdat->node_id); in __alloc_bootmem_node()
434 return kzalloc_node(size, GFP_NOWAIT, pgdat->node_id); in __alloc_bootmem_low_node()
Dbootmem.c735 return kzalloc_node(size, GFP_NOWAIT, pgdat->node_id); in __alloc_bootmem_node_nopanic()
774 return kzalloc_node(size, GFP_NOWAIT, pgdat->node_id); in __alloc_bootmem_node()
786 return kzalloc_node(size, GFP_NOWAIT, pgdat->node_id); in __alloc_bootmem_node_high()
858 return kzalloc_node(size, GFP_NOWAIT, pgdat->node_id); in __alloc_bootmem_low_node()
Dmempool.c189 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.c1166 return kzalloc_node(size, GFP_NOWAIT, nid); in memblock_virt_alloc_internal()
Dvmalloc.c1344 area = kzalloc_node(sizeof(*area), gfp_mask & GFP_RECLAIM_MASK, node); in __get_vm_area_node()
Dmemcontrol.c4349 pn = kzalloc_node(sizeof(*pn), GFP_KERNEL, tmp); in alloc_mem_cgroup_per_zone_info()
5795 rtpn = kzalloc_node(sizeof(*rtpn), GFP_KERNEL, in mem_cgroup_init()
Dslab.c890 alc_ptr = kzalloc_node(memsize, gfp, node); in alloc_alien_cache()
/linux-4.1.27/block/
Dblk-mq-cpumap.c93 map = kzalloc_node(sizeof(*map) * nr_cpu_ids, GFP_KERNEL, in blk_mq_make_queue_map()
Dblk-flush.c496 fq = kzalloc_node(sizeof(*fq), GFP_KERNEL, node); in blk_alloc_flush_queue()
505 fq->flush_rq = kzalloc_node(rq_sz, GFP_KERNEL, node); in blk_alloc_flush_queue()
Dblk-cgroup.c76 blkg = kzalloc_node(sizeof(*blkg), gfp_mask, q->node); in blkg_alloc()
100 pd = kzalloc_node(pol->pd_size, gfp_mask, q->node); in blkg_alloc()
1012 pd = kzalloc_node(pol->pd_size, GFP_KERNEL, q->node); in blkcg_activate_policy()
Dblk-mq-tag.c518 bt->map = kzalloc_node(nr * sizeof(struct blk_align_bitmap), in bt_alloc()
579 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-mq.c1449 tags->rqs = kzalloc_node(set->queue_depth * sizeof(struct request *), in blk_mq_init_rq_map()
1531 bitmap->map = kzalloc_node(num_maps * sizeof(struct blk_align_bitmap), in blk_mq_alloc_bitmap()
1948 hctxs[i] = kzalloc_node(sizeof(struct blk_mq_hw_ctx), in blk_mq_init_allocated_queue()
Dgenhd.c1091 new_ptbl = kzalloc_node(size, GFP_KERNEL, disk->node_id); in disk_expand_part_tbl()
1263 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-throttle.c1665 td = kzalloc_node(sizeof(*td), GFP_KERNEL, q->node); in blk_throtl_init()
Dcfq-iosched.c4391 cfqd = kzalloc_node(sizeof(*cfqd), GFP_KERNEL, q->node); in cfq_init_queue()
4415 cfqd->root_group = kzalloc_node(sizeof(*cfqd->root_group), in cfq_init_queue()
/linux-4.1.27/drivers/crypto/qat/qat_dh895xcc/
Dadf_admin.c111 admin = kzalloc_node(sizeof(*accel_dev->admin), GFP_KERNEL, in adf_init_admin_comms()
Dadf_drv.c238 accel_dev = kzalloc_node(sizeof(*accel_dev), GFP_KERNEL, in adf_probe()
255 hw_data = kzalloc_node(sizeof(*hw_data), GFP_KERNEL, in adf_probe()
Dadf_isr.c173 entries = kzalloc_node(msix_num_entries * sizeof(*entries), in adf_isr_alloc_msix_entry_table()
/linux-4.1.27/drivers/crypto/qat/qat_common/
Dadf_transport.c426 kzalloc_node(sizeof(atomic_t), in adf_init_bank()
477 etr_data = kzalloc_node(sizeof(*etr_data), GFP_KERNEL, in adf_init_etr_data()
484 etr_data->banks = kzalloc_node(size, GFP_KERNEL, in adf_init_etr_data()
Dqat_crypto.c169 inst = kzalloc_node(sizeof(*inst), GFP_KERNEL, in qat_crypto_create_instances()
Dqat_algs.c677 bufl = kzalloc_node(sz, GFP_ATOMIC, in qat_alg_sgl_to_bufl()
733 buflout = kzalloc_node(sz_out, GFP_ATOMIC, in qat_alg_sgl_to_bufl()
/linux-4.1.27/arch/x86/kernel/cpu/
Dperf_event_intel_ds.c259 buffer = kzalloc_node(PEBS_BUFFER_SIZE, GFP_KERNEL, node); in alloc_pebs_buffer()
268 ibuffer = kzalloc_node(PEBS_FIXUP_SIZE, GFP_KERNEL, node); in alloc_pebs_buffer()
313 buffer = kzalloc_node(BTS_BUFFER_SIZE, GFP_KERNEL | __GFP_NOWARN, node); in alloc_bts_buffer()
348 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.c98 buf = kzalloc_node(offsetof(struct bts_buffer, buf[nbuf]), GFP_KERNEL, node); in bts_buffer_setup_aux()
Dperf_event_intel_rapl.c594 pmu = kzalloc_node(sizeof(*pmu), GFP_KERNEL, cpu_to_node(cpu)); in rapl_cpu_prepare()
Dperf_event_intel_pt.c809 buf = kzalloc_node(offsetof(struct pt_buffer, topa_index[nr_pages]), in pt_buffer_setup_aux()
Dperf_event_intel_uncore.c259 box = kzalloc_node(size, GFP_KERNEL, node); in uncore_alloc_box()
Dperf_event_intel.c2533 regs = kzalloc_node(sizeof(struct intel_shared_regs), in allocate_shared_regs()
2552 c = kzalloc_node(sizeof(struct intel_excl_cntrs), in allocate_excl_cntrs()
/linux-4.1.27/arch/powerpc/platforms/pseries/
Diommu.c613 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, in pci_dma_bus_setup_pSeries()
659 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, in pci_dma_bus_setup_pSeriesLP()
686 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, in pci_dma_dev_setup_pSeries()
1108 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, in pci_dma_dev_setup_pSeriesLP()
/linux-4.1.27/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.1.27/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.c367 ring = kzalloc_node(sizeof(*ring), GFP_KERNEL, node); in mlx4_en_create_rx_ring()
/linux-4.1.27/arch/ia64/pci/
Dpci.c394 kzalloc_node(sizeof(*info->res) * info->res_num, in probe_pci_root_info()
402 kzalloc_node(sizeof(*info->res_offset) * info->res_num, in probe_pci_root_info()
/linux-4.1.27/include/linux/
Dslab.h592 static inline void *kzalloc_node(size_t size, gfp_t flags, int node) in kzalloc_node() function
Dgenhd.h405 return kzalloc_node(sizeof(struct partition_meta_info), in alloc_part_info()
/linux-4.1.27/kernel/
Dsmpboot.c176 td = kzalloc_node(sizeof(*td), GFP_KERNEL, cpu_to_node(cpu)); in __smpboot_create_thread()
Dworkqueue.c1648 worker = kzalloc_node(sizeof(*worker), GFP_KERNEL, node); in alloc_worker()
/linux-4.1.27/net/rds/
Dib.c140 rds_ibdev = kzalloc_node(sizeof(struct rds_ib_device), GFP_KERNEL, in rds_ib_add_one()
Dib_rdma.c333 ibmr = kzalloc_node(sizeof(*ibmr), GFP_KERNEL, rdsibdev_to_node(rds_ibdev)); in rds_ib_alloc_fmr()
/linux-4.1.27/net/sched/
Dsch_generic.c590 p = kzalloc_node(size, GFP_KERNEL, in qdisc_alloc()
599 p = kzalloc_node(size + QDISC_ALIGNTO - 1, GFP_KERNEL, in qdisc_alloc()
/linux-4.1.27/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.c3574 pkt_dev = kzalloc_node(sizeof(struct pktgen_dev), GFP_KERNEL, node); in pktgen_add_device()
3652 t = kzalloc_node(sizeof(struct pktgen_thread), GFP_KERNEL, in pktgen_create_thread()
Ddev.c1985 new_map = kzalloc_node(XPS_MAP_SIZE(alloc_len), GFP_KERNEL, in expand_xps_map()
/linux-4.1.27/kernel/irq/
Dirqdomain.c50 domain = kzalloc_node(sizeof(*domain) + (sizeof(unsigned int) * size), in __irq_domain_add()
833 irq_data = kzalloc_node(sizeof(*irq_data), GFP_KERNEL, child->node); in irq_domain_insert_irq_data()
Dirqdesc.c150 desc = kzalloc_node(sizeof(*desc), gfp, node); in alloc_desc()
/linux-4.1.27/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.1.27/arch/x86/pci/
Dacpi.c424 info = kzalloc_node(sizeof(*info), GFP_KERNEL, node); in pci_acpi_scan_root()
/linux-4.1.27/arch/x86/platform/uv/
Duv_nmi.c706 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.1.27/lib/
Dgenalloc.c189 chunk = kzalloc_node(nbytes, GFP_KERNEL, nid); in gen_pool_add_virt()
/linux-4.1.27/arch/x86/kernel/apic/
Dvector.c51 cfg = kzalloc_node(sizeof(*cfg), GFP_KERNEL, node); in alloc_irq_cfg()
Dio_apic.c226 return kzalloc_node(sizeof(struct irq_pin_list), GFP_KERNEL, node); in alloc_irq_pin_list()
/linux-4.1.27/drivers/block/
Dnull_blk.c504 nullb = kzalloc_node(sizeof(*nullb), GFP_KERNEL, home_node); in null_add_dev()
Dnvme-core.c2113 ns = kzalloc_node(sizeof(*ns), GFP_KERNEL, node); in nvme_alloc_ns()
2947 dev = kzalloc_node(sizeof(*dev), GFP_KERNEL, node); in nvme_probe()
2950 dev->entry = kzalloc_node(num_possible_cpus() * sizeof(*dev->entry), in nvme_probe()
2954 dev->queues = kzalloc_node((num_possible_cpus() + 1) * sizeof(void *), in nvme_probe()
/linux-4.1.27/kernel/events/
Dring_buffer.c497 rb->aux_pages = kzalloc_node(nr_pages * sizeof(void *), GFP_KERNEL, node); in rb_alloc_aux()
Dcore.c8895 hlist = kzalloc_node(sizeof(*hlist), GFP_KERNEL, cpu_to_node(cpu)); in perf_event_init_cpu()
/linux-4.1.27/kernel/sched/
Drt.c198 rt_rq = kzalloc_node(sizeof(struct rt_rq), in alloc_rt_sched_group()
203 rt_se = kzalloc_node(sizeof(struct sched_rt_entity), in alloc_rt_sched_group()
Dcore.c5900 sg = kzalloc_node(sizeof(struct sched_group) + cpumask_size(), in build_overlap_sched_groups()
6612 sd = kzalloc_node(sizeof(struct sched_domain) + cpumask_size(), in __sdt_alloc()
6619 sg = kzalloc_node(sizeof(struct sched_group) + cpumask_size(), in __sdt_alloc()
6628 sgc = kzalloc_node(sizeof(struct sched_group_capacity) + cpumask_size(), in __sdt_alloc()
7139 per_cpu(load_balance_mask, i) = (cpumask_var_t)kzalloc_node( in sched_init()
Dfair.c8084 cfs_rq = kzalloc_node(sizeof(struct cfs_rq), in alloc_fair_sched_group()
8089 se = kzalloc_node(sizeof(struct sched_entity), in alloc_fair_sched_group()
/linux-4.1.27/drivers/md/
Ddm-stats.c143 p = kzalloc_node(alloc_size, GFP_KERNEL | __GFP_NORETRY | __GFP_NOMEMALLOC | __GFP_NOWARN, node); in dm_kvzalloc()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_lib.c828 q_vector = kzalloc_node(size, GFP_KERNEL, node); in ixgbe_alloc_q_vector()
/linux-4.1.27/kernel/trace/
Dring_buffer.c1176 bpage = kzalloc_node(ALIGN(sizeof(*bpage), cache_line_size()), in __rb_allocate_pages()
1236 cpu_buffer = kzalloc_node(ALIGN(sizeof(*cpu_buffer), cache_line_size()), in rb_allocate_cpu_buffer()
1252 bpage = kzalloc_node(ALIGN(sizeof(*bpage), cache_line_size()), in rb_allocate_cpu_buffer()
/linux-4.1.27/arch/powerpc/platforms/cell/
Diommu.c480 window = kzalloc_node(sizeof(*window), GFP_KERNEL, iommu->nid); in cell_iommu_setup_window()
/linux-4.1.27/net/sunrpc/
Dsvc.c611 rqstp = kzalloc_node(sizeof(*rqstp), GFP_KERNEL, node); in svc_prepare_thread()
/linux-4.1.27/arch/powerpc/platforms/powernv/
Dpci-ioda.c1089 pe->tce32_table = kzalloc_node(sizeof(struct iommu_table), in pnv_ioda_setup_bus_PE()
1463 pe->tce32_table = kzalloc_node(sizeof(struct iommu_table), in pnv_ioda_setup_vf_PE()
/linux-4.1.27/drivers/block/mtip32xx/
Dmtip32xx.c3176 dd->port = kzalloc_node(sizeof(struct mtip_port), GFP_KERNEL, in mtip_hw_init()
4288 dd = kzalloc_node(sizeof(struct driver_data), GFP_KERNEL, my_node); in mtip_pci_probe()
/linux-4.1.27/drivers/scsi/
Dscsi_lib.c2065 cmd->sense_buffer = kzalloc_node(SCSI_SENSE_BUFFERSIZE, GFP_KERNEL, in scsi_init_request()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c711 s = kzalloc_node(nelem * sw_size, GFP_KERNEL, node); in alloc_ring()