Home
last modified time | relevance | path

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

12

/linux/scripts/coccinelle/api/
H A Dkfree_mismatch.cocci27 kmalloc_array_node\|kcalloc_node\)(...)@kok
39 kmalloc_array\|kmalloc_array_node\|kcalloc_node\)(...)@kok
70 * kcalloc_node\)(...)@a
84 kcalloc_node\)(...)@a
H A Dkvmalloc.cocci36 * kmalloc_array\|kmalloc_array_node\|kcalloc_node\)
46 * kmalloc_array\|kmalloc_array_node\|kcalloc_node\)
58 * kmalloc_array\|kmalloc_array_node\|kcalloc_node\)
/linux/drivers/infiniband/hw/hfi1/
H A Dexp_rcv.c44 kcalloc_node(ngroups, sizeof(*rcd->groups), in hfi1_alloc_ctxt_rcv_groups()
H A Dnetdev_rx.c194 rx->rxq = kcalloc_node(rx->num_rx_q, sizeof(*rx->rxq), in hfi1_netdev_rxq_init()
H A Dinit.c137 dd->rcd = kcalloc_node(dd->num_rcv_contexts, sizeof(*dd->rcd), in hfi1_create_kctxts()
415 kcalloc_node(rcd->egrbufs.count, in hfi1_create_ctxtdata()
421 kcalloc_node(rcd->egrbufs.count, in hfi1_create_ctxtdata()
H A Dpio.c813 sc->sr = kcalloc_node(sc->sr_size, in sc_alloc()
1977 dd->kernel_send_context = kcalloc_node(dd->num_send_contexts, in init_pervl_scs()
H A Dipoib_tx.c697 priv->txqs = kcalloc_node(dev->num_tx_queues, in hfi1_ipoib_txreq_init()
/linux/drivers/dma/idxd/
H A Dinit.c186 idxd->wqs = kcalloc_node(idxd->max_wqs, sizeof(struct idxd_wq *), in idxd_setup_wqs()
292 idxd->engines = kcalloc_node(idxd->max_engines, sizeof(struct idxd_engine *), in idxd_setup_engines()
356 idxd->groups = kcalloc_node(idxd->max_groups, sizeof(struct idxd_group *), in idxd_setup_groups()
850 kcalloc_node(idxd->max_groups, in idxd_device_config_save()
873 kcalloc_node(idxd->max_engines, in idxd_device_config_save()
911 kcalloc_node(idxd->max_wqs, sizeof(struct idxd_wq *), in idxd_device_config_save()
H A Ddevice.c58 wq->hw_descs = kcalloc_node(num, sizeof(struct dsa_hw_desc *), in alloc_hw_descs()
91 wq->descs = kcalloc_node(num, sizeof(struct idxd_desc *), in alloc_descs()
/linux/drivers/usb/host/
H A Dxhci-mem.c639 stream_info->stream_rings = kcalloc_node( in xhci_alloc_stream_info()
1666 xhci->scratchpad->sp_buffers = kcalloc_node(num_sp, sizeof(void *), in scratchpad_alloc()
2079 port_cap->psi = kcalloc_node(port_cap->psi_count, in xhci_add_in_port()
2161 rhub->ports = kcalloc_node(rhub->num_ports, sizeof(*rhub->ports), in xhci_create_rhub_port_array()
2194 xhci->hw_ports = kcalloc_node(xhci->max_ports, sizeof(*xhci->hw_ports), in xhci_setup_port_arrays()
2207 xhci->rh_bw = kcalloc_node(xhci->max_ports, sizeof(*xhci->rh_bw), flags, dev_to_node(dev)); in xhci_setup_port_arrays()
2234 xhci->port_caps = kcalloc_node(cap_count, sizeof(*xhci->port_caps), in xhci_setup_port_arrays()
2489 xhci->interrupters = kcalloc_node(xhci->max_interrupters, sizeof(*xhci->interrupters), in xhci_mem_init()
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_isr.c280 irqs = kcalloc_node(msix_num_entries, sizeof(*irqs), in adf_isr_alloc_msix_vectors_data()
/linux/drivers/ntb/hw/amd/
H A Dntb_hw_amd.c731 ndev->vec = kcalloc_node(msix_max, sizeof(*ndev->vec), in ndev_init_isr()
736 ndev->msix = kcalloc_node(msix_max, sizeof(*ndev->msix), in ndev_init_isr()
/linux/block/
H A Dblk-mq.c3550 tags->rqs = kcalloc_node(nr_tags, sizeof(struct request *), in blk_mq_alloc_rq_map()
3556 tags->static_rqs = kcalloc_node(nr_tags, sizeof(struct request *), in blk_mq_alloc_rq_map()
4543 new_hctxs = kcalloc_node(set->nr_hw_queues, in __blk_mq_realloc_hw_ctxs()
4790 new_tags = kcalloc_node(new_nr_hw_queues, sizeof(struct blk_mq_tags *), in blk_mq_realloc_tag_set_tags()
4881 set->tags = kcalloc_node(set->nr_hw_queues, in blk_mq_alloc_tag_set()
4888 set->map[i].mq_map = kcalloc_node(nr_cpu_ids, in blk_mq_alloc_tag_set()
/linux/net/sunrpc/xprtrdma/
H A Dfrwr_ops.c129 sg = kcalloc_node(depth, sizeof(*sg), XPRTRDMA_GFP_FLAGS, in frwr_mr_init()
/linux/net/sunrpc/
H A Dsvc.c643 rqstp->rq_pages = kcalloc_node(rqstp->rq_maxpages + 1, in svc_init_buffer()
709 rqstp->rq_bvec = kcalloc_node(rqstp->rq_maxpages, in svc_prepare_thread()
/linux/drivers/nvme/target/
H A Dzns.c407 d.zbitmap = kcalloc_node(BITS_TO_LONGS(nr_zones), sizeof(*(d.zbitmap)), in nvmet_bdev_zone_mgmt_emulate_all()
/linux/include/linux/
H A Dslab.h1079 #define kcalloc_node(_n, _size, _flags, _node) \ macro
/linux/lib/tests/
H A Dfortify_kunit.c239 kcalloc_node(1, alloc_size, gfp, NUMA_NO_NODE), \
242 kcalloc_node(alloc_size, 1, gfp, NUMA_NO_NODE), \
/linux/kernel/events/
H A Dring_buffer.c731 rb->aux_pages = kcalloc_node(nr_pages, sizeof(void *), GFP_KERNEL, in rb_alloc_aux()
/linux/drivers/ntb/hw/intel/
H A Dntb_hw_gen1.c382 ndev->vec = kcalloc_node(msix_max, sizeof(*ndev->vec), in ndev_init_isr()
387 ndev->msix = kcalloc_node(msix_max, sizeof(*ndev->msix), in ndev_init_isr()
/linux/drivers/ntb/
H A Dntb_transport.c1331 nt->mw_vec = kcalloc_node(mw_count, sizeof(*nt->mw_vec), in ntb_transport_probe()
1378 nt->qp_vec = kcalloc_node(qp_count, sizeof(*nt->qp_vec), in ntb_transport_probe()
/linux/fs/fuse/
H A Dvirtio_fs.c955 fs->mq_map = kcalloc_node(nr_cpu_ids, sizeof(*fs->mq_map), GFP_KERNEL, in virtio_fs_setup_vqs()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_main.c6285 priv->txq2sq = kcalloc_node(num_txqs, sizeof(*priv->txq2sq), GFP_KERNEL, node); in mlx5e_priv_init()
6289 priv->txq2sq_stats = kcalloc_node(num_txqs, sizeof(*priv->txq2sq_stats), GFP_KERNEL, node); in mlx5e_priv_init()
6293 priv->tx_rates = kcalloc_node(num_txqs, sizeof(*priv->tx_rates), GFP_KERNEL, node); in mlx5e_priv_init()
6298 kcalloc_node(nch, sizeof(*priv->channel_stats), GFP_KERNEL, node); in mlx5e_priv_init()
/linux/drivers/net/vmxnet3/
H A Dvmxnet3_drv.c644 tq->buf_info = kcalloc_node(tq->tx_ring.size, sizeof(tq->buf_info[0]), in vmxnet3_tq_create()
2306 bi = kcalloc_node(rq->rx_ring[0].size + rq->rx_ring[1].size, in vmxnet3_rq_create()
/linux/drivers/nvme/host/
H A Dpci.c3464 dev->queues = kcalloc_node(dev->nr_allocated_queues, in nvme_pci_alloc_dev()

12