/linux-4.4.14/scripts/coccinelle/api/alloc/ |
D | alloc_cast.cocci | 6 //# 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/ |
D | eno.cocci | 20 …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/ |
D | nobootmem.c | 347 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()
|
D | bootmem.c | 742 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()
|
D | mempool.c | 192 pool = kzalloc_node(sizeof(*pool), gfp_mask, node_id); in mempool_create_node()
|
D | sparse.c | 70 section = kzalloc_node(array_size, GFP_KERNEL, nid); in sparse_index_alloc()
|
D | memblock.c | 1269 return kzalloc_node(size, GFP_NOWAIT, nid); in memblock_virt_alloc_internal()
|
D | memcontrol.c | 4142 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()
|
D | vmalloc.c | 1346 area = kzalloc_node(sizeof(*area), gfp_mask & GFP_RECLAIM_MASK, node); in __get_vm_area_node()
|
D | slab.c | 891 alc_ptr = kzalloc_node(memsize, gfp, node); in alloc_alien_cache()
|
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/ |
D | linux-mem.c | 50 ret = kzalloc_node(size, flags | __GFP_NOWARN, in libcfs_kvzalloc_cpt()
|
/linux-4.4.14/block/ |
D | blk-mq-cpumap.c | 94 map = kzalloc_node(sizeof(*map) * nr_cpu_ids, GFP_KERNEL, in blk_mq_make_queue_map()
|
D | blk-flush.c | 509 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()
|
D | blk-mq-tag.c | 568 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()
|
D | deadline-iosched.c | 349 dd = kzalloc_node(sizeof(*dd), GFP_KERNEL, q->node); in deadline_init_queue()
|
D | blk-throttle.c | 331 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()
|
D | blk-mq.c | 1473 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()
|
D | genhd.c | 1094 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()
|
D | elevator.c | 158 eq = kzalloc_node(sizeof(*eq), GFP_KERNEL, q->node); in elevator_alloc()
|
D | blk-cgroup.c | 98 blkg = kzalloc_node(sizeof(*blkg), gfp_mask, q->node); in blkg_alloc()
|
D | cfq-iosched.c | 1616 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/ |
D | adf_drv.c | 219 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/ |
D | adf_drv.c | 229 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()
|
D | adf_isr.c | 241 entries = kzalloc_node(msix_num_entries * sizeof(*entries), in adf_isr_alloc_msix_entry_table()
|
/linux-4.4.14/drivers/crypto/qat/qat_common/ |
D | adf_transport.c | 429 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()
|
D | adf_admin.c | 240 admin = kzalloc_node(sizeof(*accel_dev->admin), GFP_KERNEL, in adf_init_admin_comms()
|
D | qat_crypto.c | 181 inst = kzalloc_node(sizeof(*inst), GFP_KERNEL, in qat_crypto_create_instances()
|
D | qat_algs.c | 681 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/ |
D | nrs_fifo.c | 83 head = kzalloc_node(sizeof(*head), GFP_NOFS, in nrs_fifo_start()
|
D | ptlrpcd.c | 526 pc->pc_partners = kzalloc_node(size, GFP_NOFS, in ptlrpcd_partners() 839 pd = kzalloc_node(size, GFP_NOFS, in ptlrpcd_init()
|
D | service.c | 77 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()
|
D | nrs.c | 747 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()
|
D | client.c | 834 set = kzalloc_node(sizeof(*set), GFP_NOFS, in ptlrpc_prep_set()
|
/linux-4.4.14/arch/x86/kernel/cpu/ |
D | perf_event_intel_ds.c | 281 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()
|
D | perf_event_amd.c | 350 nb = kzalloc_node(sizeof(struct amd_nb), GFP_KERNEL, cpu_to_node(cpu)); in amd_alloc_nb()
|
D | perf_event_amd_uncore.c | 289 return kzalloc_node(sizeof(struct amd_uncore), GFP_KERNEL, in amd_uncore_alloc()
|
D | perf_event_intel_bts.c | 95 buf = kzalloc_node(offsetof(struct bts_buffer, buf[nbuf]), GFP_KERNEL, node); in bts_buffer_setup_aux()
|
D | perf_event_intel_rapl.c | 603 pmu = kzalloc_node(sizeof(*pmu), GFP_KERNEL, cpu_to_node(cpu)); in rapl_cpu_prepare()
|
D | perf_event_intel_pt.c | 877 buf = kzalloc_node(offsetof(struct pt_buffer, topa_index[nr_pages]), in pt_buffer_setup_aux()
|
D | perf_event_intel_uncore.c | 312 box = kzalloc_node(size, GFP_KERNEL, node); in uncore_alloc_box()
|
D | perf_event_intel.c | 2756 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/ |
D | ide-probe.c | 1256 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/ |
D | en_cq.c | 55 cq = kzalloc_node(sizeof(*cq), GFP_KERNEL, node); in mlx4_en_create_cq()
|
D | en_tx.c | 57 ring = kzalloc_node(sizeof(*ring), GFP_KERNEL, node); in mlx4_en_create_tx_ring()
|
D | en_rx.c | 361 ring = kzalloc_node(sizeof(*ring), GFP_KERNEL, node); in mlx4_en_create_rx_ring()
|
/linux-4.4.14/drivers/ntb/ |
D | ntb_transport.c | 369 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/ |
D | acpi.c | 350 info = kzalloc_node(sizeof(*info), GFP_KERNEL, node); in pci_acpi_scan_root()
|
/linux-4.4.14/include/linux/ |
D | slab.h | 611 static inline void *kzalloc_node(size_t size, gfp_t flags, int node) in kzalloc_node() function
|
D | genhd.h | 418 return kzalloc_node(sizeof(struct partition_meta_info), in alloc_part_info()
|
/linux-4.4.14/kernel/ |
D | smpboot.c | 177 td = kzalloc_node(sizeof(*td), GFP_KERNEL, cpu_to_node(cpu)); in __smpboot_create_thread()
|
D | workqueue.c | 1643 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/ |
D | ib.c | 140 rds_ibdev = kzalloc_node(sizeof(struct rds_ib_device), GFP_KERNEL, in rds_ib_add_one()
|
D | ib_rdma.c | 380 ibmr = kzalloc_node(sizeof(*ibmr), GFP_KERNEL, rdsibdev_to_node(rds_ibdev)); in rds_ib_alloc_fmr()
|
/linux-4.4.14/net/sched/ |
D | sch_generic.c | 585 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/ |
D | iommu.c | 62 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/ |
D | sysctl_net_core.c | 129 cur = kzalloc_node(len, GFP_KERNEL, in flow_limit_cpu_sysctl()
|
D | flow.c | 399 fcp->hash_table = kzalloc_node(sz, GFP_KERNEL, cpu_to_node(cpu)); in flow_cache_cpu_prepare()
|
D | pktgen.c | 3645 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()
|
D | dev.c | 2017 new_map = kzalloc_node(XPS_MAP_SIZE(alloc_len), GFP_KERNEL, in expand_xps_map()
|
/linux-4.4.14/arch/powerpc/platforms/powernv/ |
D | pci.c | 659 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/ |
D | qib_init.c | 174 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/ |
D | uv_nmi.c | 713 uv_hub_nmi_list[nid] = kzalloc_node(size, in uv_nmi_setup()
|
D | tlb_uv.c | 1988 hmaster->cpumask = kzalloc_node(sz, GFP_KERNEL, hmaster->osnode); in make_per_hub_cpumask()
|
/linux-4.4.14/kernel/irq/ |
D | irqdomain.c | 104 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()
|
D | irqdesc.c | 149 desc = kzalloc_node(sizeof(*desc), gfp, node); in alloc_desc()
|
/linux-4.4.14/lib/ |
D | genalloc.c | 190 chunk = kzalloc_node(nbytes, GFP_KERNEL, nid); in gen_pool_add_virt()
|
/linux-4.4.14/drivers/ntb/hw/intel/ |
D | ntb_hw_intel.c | 441 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/ |
D | en_main.c | 331 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/ |
D | ring_buffer.c | 500 rb->aux_pages = kzalloc_node(nr_pages * sizeof(void *), GFP_KERNEL, node); in rb_alloc_aux()
|
D | core.c | 9306 hlist = kzalloc_node(sizeof(*hlist), GFP_KERNEL, cpu_to_node(cpu)); in perf_event_init_cpu()
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
D | pio.c | 685 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()
|
D | file_ops.c | 1267 uctxt->tidusemap = kzalloc_node(uctxt->tidmapcnt * in setup_ctxt()
|
/linux-4.4.14/arch/x86/kernel/apic/ |
D | vector.c | 79 data = kzalloc_node(sizeof(*data), GFP_KERNEL, node); in alloc_apic_chip_data()
|
D | io_apic.c | 382 entry = kzalloc_node(sizeof(struct irq_pin_list), GFP_ATOMIC, node); in __add_pin_to_irq_node()
|
/linux-4.4.14/drivers/block/ |
D | null_blk.c | 651 nullb = kzalloc_node(sizeof(*nullb), GFP_KERNEL, home_node); in null_add_dev()
|
/linux-4.4.14/kernel/sched/ |
D | rt.c | 202 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()
|
D | core.c | 6157 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()
|
D | fair.c | 8130 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/ |
D | pci.c | 2252 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/ |
D | ixgbe_lib.c | 828 q_vector = kzalloc_node(size, GFP_KERNEL, node); in ixgbe_alloc_q_vector()
|
/linux-4.4.14/kernel/trace/ |
D | ring_buffer.c | 1152 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/ |
D | iommu.c | 485 window = kzalloc_node(sizeof(*window), GFP_KERNEL, iommu->nid); in cell_iommu_setup_window()
|
/linux-4.4.14/net/sunrpc/ |
D | svc.c | 590 rqstp = kzalloc_node(sizeof(*rqstp), GFP_KERNEL, node); in svc_rqst_alloc()
|
/linux-4.4.14/drivers/md/ |
D | dm-stats.c | 150 p = kzalloc_node(alloc_size, GFP_KERNEL | __GFP_NORETRY | __GFP_NOMEMALLOC | __GFP_NOWARN, node); in dm_kvzalloc()
|
/linux-4.4.14/drivers/block/mtip32xx/ |
D | mtip32xx.c | 3214 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/ |
D | scsi_lib.c | 2065 cmd->sense_buffer = kzalloc_node(SCSI_SENSE_BUFFERSIZE, GFP_KERNEL, in scsi_init_request()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/ |
D | sge.c | 709 s = kzalloc_node(nelem * sw_size, GFP_KERNEL, node); in alloc_ring()
|