Home
last modified time | relevance | path

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

12

/freebsd/contrib/libucl/klib/
H A Dkhash.h179 #ifndef kcalloc
180 #define kcalloc(N,Z) calloc(N,Z) macro
213 return (kh_##name##_t*)kcalloc(1, sizeof(kh_##name##_t)); \
/freebsd/sys/contrib/vchiq/interface/compat/
H A Dvchi_bsd.h328 #define kcalloc(n, size, flags) mallocarray((n), (size), M_VCHI, \ macro
330 #define kzalloc(a, b) kcalloc(1, (a), (b))
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_qp.c829 dev->caps.qp0_tunnel = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_init_qp_table()
830 dev->caps.qp0_proxy = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_init_qp_table()
831 dev->caps.qp1_tunnel = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_init_qp_table()
832 dev->caps.qp1_proxy = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_init_qp_table()
H A Dmlx4_mr.c112 buddy->bits = kcalloc(buddy->max_order + 1, sizeof (long *), in mlx4_buddy_init()
114 buddy->num_free = kcalloc((buddy->max_order + 1), sizeof *buddy->num_free, in mlx4_buddy_init()
121 buddy->bits[i] = kcalloc(s, sizeof (long), GFP_KERNEL | __GFP_NOWARN); in mlx4_buddy_init()
H A Dmlx4_profile.c87 profile = kcalloc(MLX4_RES_NUM, sizeof(*profile), GFP_KERNEL); in mlx4_make_profile()
H A Dmlx4_icm.c400 table->icm = kcalloc(num_icm, sizeof *table->icm, GFP_KERNEL); in mlx4_init_icm_table()
H A Dmlx4_main.c914 dev->caps.qp0_qkey = kcalloc(dev->caps.num_ports, sizeof(u32), GFP_KERNEL); in mlx4_slave_cap()
915 dev->caps.qp0_tunnel = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_slave_cap()
916 dev->caps.qp0_proxy = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_slave_cap()
917 dev->caps.qp1_tunnel = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_slave_cap()
918 dev->caps.qp1_proxy = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_slave_cap()
2856 entries = kcalloc(nreq, sizeof *entries, GFP_KERNEL); in mlx4_enable_msi_x()
3112 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), in mlx4_enable_sriov()
H A Dmlx4_eq.c1140 priv->eq_table.eq = kcalloc(dev->caps.num_eqs - dev->caps.reserved_eqs, in mlx4_alloc_eq_table()
1159 priv->eq_table.uar_map = kcalloc(mlx4_num_eq_uar(dev), in mlx4_init_eq_table()
H A Dmlx4_alloc.c614 buf->page_list = kcalloc(buf->nbufs, sizeof(*buf->page_list), in mlx4_buf_alloc()
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dqplib_res.c717 sgid_tbl->tbl = kcalloc(max, sizeof(*sgid_tbl->tbl), GFP_KERNEL); in bnxt_qplib_alloc_sgid_tbl()
721 sgid_tbl->hw_id = kcalloc(max, sizeof(u32), GFP_KERNEL); in bnxt_qplib_alloc_sgid_tbl()
725 sgid_tbl->ctx = kcalloc(max, sizeof(void *), GFP_KERNEL); in bnxt_qplib_alloc_sgid_tbl()
729 sgid_tbl->vlan = kcalloc(max, sizeof(u8), GFP_KERNEL); in bnxt_qplib_alloc_sgid_tbl()
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_gsi.c135 gsi->tx_qps = kcalloc(num_qps, sizeof(*gsi->tx_qps), GFP_KERNEL); in mlx5_ib_gsi_create_qp()
141 gsi->outstanding_wrs = kcalloc(init_attr->cap.max_send_wr, in mlx5_ib_gsi_create_qp()
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_alloc.c81 buf->page_list = kcalloc(buf->npages, sizeof(*buf->page_list), in mlx5_buf_alloc()
H A Dmlx5_rl.c206 table->rl_entry = kcalloc(table->max_size, sizeof(struct mlx5_rl_entry), in mlx5_init_rl_table()
H A Dmlx5_eswitch.c521 mac_list = kcalloc(size, ETH_ALEN, GFP_KERNEL); in esw_update_vport_addr_list()
1076 esw->l2_table.bitmap = kcalloc(BITS_TO_LONGS(l2_table_size), in mlx5_eswitch_init()
1090 esw->vports = kcalloc(total_vports, sizeof(struct mlx5_vport), in mlx5_eswitch_init()
H A Dmlx5_fs_tcp.c222 ft->g = kcalloc(MLX5E_ACCEL_FS_TCP_NUM_GROUPS, sizeof(*ft->g), GFP_KERNEL); in accel_fs_tcp_create_groups()
H A Dmlx5_fs_core.c2088 gen_dest = kcalloc(num_dest + 1, sizeof(*dest), in mlx5_add_flow_rules()
2902 steering->fdb_sub_ns = kcalloc(FDB_NUM_CHAINS, in create_fdb_fast_path()
3036 kcalloc(total_vports, in mlx5_fs_egress_acls_init()
3080 kcalloc(total_vports, in mlx5_fs_ingress_acls_init()
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dslab.h203 kcalloc(size_t n, size_t size, gfp_t flags) in kcalloc() function
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_flow_table.c636 vlans = kcalloc(list_size, sizeof(*vlans), GFP_KERNEL); in mlx5e_vport_context_update_vlans()
1092 addr_array = kcalloc(size, ETH_ALEN, GFP_KERNEL); in mlx5e_vport_context_update_addr_list()
1510 ft->g = kcalloc(MLX5E_NUM_MAIN_GROUPS, sizeof(*ft->g), GFP_KERNEL); in mlx5e_create_main_flow_table()
1637 ft->g = kcalloc(MLX5E_NUM_VLAN_GROUPS, sizeof(*ft->g), GFP_KERNEL); in mlx5e_create_vlan_flow_table()
2025 ft->g = kcalloc(MLX5E_NUM_VXLAN_GROUPS, sizeof(*ft->g), GFP_KERNEL); in mlx5e_create_vxlan_flow_table()
2141 ft->g = kcalloc(MLX5E_NUM_INNER_RSS_GROUPS, sizeof(*ft->g), in mlx5e_create_inner_rss_flow_table()
/freebsd/sys/dev/mlxfw/
H A Dmlxfw_mfa2.c298 mfa2_file = kcalloc(1, sizeof(*mfa2_file), GFP_KERNEL); in mlxfw_mfa2_file_init()
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_cache.c624 table->data_vec = kcalloc(sz, sizeof(*table->data_vec), GFP_KERNEL); in alloc_gid_table()
788 table = kcalloc(ib_dev->phys_port_cnt, sizeof(*table), GFP_KERNEL); in _gid_table_setup_one()
/freebsd/sys/dev/irdma/
H A Dirdma_hw.c988 cqp->cqp_requests = kcalloc(sqsize, sizeof(*cqp->cqp_requests), in irdma_create_cqp()
993 cqp->scratch_array = kcalloc(sqsize, sizeof(*cqp->scratch_array), in irdma_create_cqp()
1352 rf->ceqlist = kcalloc(num_ceqs, sizeof(*rf->ceqlist), GFP_KERNEL); in irdma_setup_ceq_0()
2164 kcalloc(BITS_TO_LONGS(IRDMA_MAX_WS_NODES), in irdma_initialize_hw_rsrc()
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_main.c2098 *name = kcalloc(num_counters, sizeof(**name), GFP_KERNEL); in __mlx4_ib_alloc_diag_counters()
2102 *offset = kcalloc(num_counters, sizeof(**offset), GFP_KERNEL); in __mlx4_ib_alloc_diag_counters()
2330 ibdev->eq_table = kcalloc(dev->caps.num_comp_vectors, in mlx4_ib_alloc_eqs()
2908 dm = kcalloc(ports, sizeof(*dm), GFP_ATOMIC); in do_slave_init()
H A Dmlx4_ib_sysfs.c508 tab_attr = kcalloc(1 + len, sizeof (struct attribute *), GFP_KERNEL); in alloc_group_attrs()
/freebsd/sys/contrib/dev/broadcom/brcm80211/brcmfmac/
H A Dp2p.c796 chanspecs = kcalloc(request->n_channels, sizeof(*chanspecs), in brcmf_p2p_run_escan()
1080 default_chan_list = kcalloc(channel_cnt, sizeof(*default_chan_list), in brcmf_p2p_act_frm_search()
/freebsd/sys/dev/qat/qat_hw/qat_c4xxx/
H A Dadf_c4xxx_ras.c80 accel_dev->ras_counters = kcalloc(ADF_RAS_ERRORS, in adf_init_ras()

12