Home
last modified time | relevance | path

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

12

/freebsd-11-stable/sys/dev/mlx5/mlx5_core/
HDmlx5_uar.c86 uuari->uars = kcalloc(uuari->num_uars, sizeof(*uuari->uars), GFP_KERNEL); in mlx5_alloc_uuars()
88 uuari->bfs = kcalloc(tot_uuars, sizeof(*uuari->bfs), GFP_KERNEL); in mlx5_alloc_uuars()
90 uuari->bitmap = kcalloc(BITS_TO_LONGS(tot_uuars), sizeof(*uuari->bitmap), in mlx5_alloc_uuars()
93 uuari->count = kcalloc(tot_uuars, sizeof(*uuari->count), GFP_KERNEL); in mlx5_alloc_uuars()
HDmlx5_alloc.c81 buf->page_list = kcalloc(buf->npages, sizeof(*buf->page_list), in mlx5_buf_alloc()
HDmlx5_eswitch.c527 mac_list = kcalloc(size, ETH_ALEN, GFP_KERNEL); in esw_update_vport_addr_list()
1107 esw->l2_table.bitmap = kcalloc(BITS_TO_LONGS(l2_table_size), in mlx5_eswitch_init()
1121 esw->vports = kcalloc(total_vports, sizeof(struct mlx5_vport), in mlx5_eswitch_init()
/freebsd-11-stable/contrib/libucl/klib/
HDkhash.h179 #ifndef kcalloc
180 #define kcalloc(N,Z) calloc(N,Z) macro
213 return (kh_##name##_t*)kcalloc(1, sizeof(kh_##name##_t)); \
/freebsd-11-stable/sys/contrib/vchiq/interface/compat/
HDvchi_bsd.h332 #define kcalloc(n, size, flags) malloc((n) * (size), M_VCHI, M_NOWAIT | M_ZERO) macro
333 #define kzalloc(a, b) kcalloc(1, (a), (b))
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/
HDmlx4_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()
HDmlx4_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()
HDmlx4_profile.c87 profile = kcalloc(MLX4_RES_NUM, sizeof(*profile), GFP_KERNEL); in mlx4_make_profile()
HDmlx4_main.c913 dev->caps.qp0_qkey = kcalloc(dev->caps.num_ports, sizeof(u32), GFP_KERNEL); in mlx4_slave_cap()
914 dev->caps.qp0_tunnel = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_slave_cap()
915 dev->caps.qp0_proxy = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_slave_cap()
916 dev->caps.qp1_tunnel = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_slave_cap()
917 dev->caps.qp1_proxy = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_slave_cap()
2850 entries = kcalloc(nreq, sizeof *entries, GFP_KERNEL); in mlx4_enable_msi_x()
3106 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), in mlx4_enable_sriov()
HDmlx4_icm.c400 table->icm = kcalloc(num_icm, sizeof *table->icm, GFP_KERNEL); in mlx4_init_icm_table()
HDmlx4_eq.c1143 priv->eq_table.eq = kcalloc(dev->caps.num_eqs - dev->caps.reserved_eqs, in mlx4_alloc_eq_table()
1162 priv->eq_table.uar_map = kcalloc(mlx4_num_eq_uar(dev), in mlx4_init_eq_table()
HDmlx4_alloc.c614 buf->page_list = kcalloc(buf->nbufs, sizeof(*buf->page_list), in mlx4_buf_alloc()
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
HDslab.h115 kcalloc(size_t n, size_t size, gfp_t flags) in kcalloc() function
/freebsd-11-stable/sys/dev/mlx5/mlx5_ib/
HDmlx5_ib_gsi.c134 gsi->tx_qps = kcalloc(num_qps, sizeof(*gsi->tx_qps), GFP_KERNEL); in mlx5_ib_gsi_create_qp()
140 gsi->outstanding_wrs = kcalloc(init_attr->cap.max_send_wr, in mlx5_ib_gsi_create_qp()
HDmlx5_ib_main.c1189 uars = kcalloc(num_uars, sizeof(*uars), GFP_KERNEL); in mlx5_ib_alloc_ucontext()
1195 uuari->bitmap = kcalloc(BITS_TO_LONGS(gross_uuars), in mlx5_ib_alloc_ucontext()
1211 uuari->count = kcalloc(gross_uuars, sizeof(*uuari->count), GFP_KERNEL); in mlx5_ib_alloc_ucontext()
3106 dev->port = kcalloc(MLX5_CAP_GEN(mdev, num_ports), sizeof(*dev->port), in mlx5_ib_add()
/freebsd-11-stable/sys/dev/mlx5/mlx5_en/
HDmlx5_en_flow_table.c476 vlans = kcalloc(list_size, sizeof(*vlans), GFP_KERNEL); in mlx5e_vport_context_update_vlans()
959 addr_array = kcalloc(size, ETH_ALEN, GFP_KERNEL); in mlx5e_vport_context_update_addr_list()
1299 ft->g = kcalloc(MLX5E_NUM_MAIN_GROUPS, sizeof(*ft->g), GFP_KERNEL); in mlx5e_create_main_flow_table()
1418 ft->g = kcalloc(MLX5E_NUM_VLAN_GROUPS, sizeof(*ft->g), GFP_KERNEL); in mlx5e_create_vlan_flow_table()
1537 ft->g = kcalloc(MLX5E_NUM_INNER_RSS_GROUPS, sizeof(*ft->g), in mlx5e_create_inner_rss_flow_table()
/freebsd-11-stable/sys/dev/mlxfw/
HDmlxfw_mfa2.c300 mfa2_file = kcalloc(1, sizeof(*mfa2_file), GFP_KERNEL); in mlxfw_mfa2_file_init()
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/
HDib_cache.c625 table->data_vec = kcalloc(sz, sizeof(*table->data_vec), GFP_KERNEL); in alloc_gid_table()
789 table = kcalloc(ib_dev->phys_port_cnt, sizeof(*table), GFP_KERNEL); in _gid_table_setup_one()
HDib_sysfs.c707 tab_attr = kcalloc(1 + len, sizeof(struct attribute *), GFP_KERNEL); in alloc_group_attrs()
HDib_uverbs_cmd.c3528 wqs_handles = kcalloc(num_wq_handles, sizeof(*wqs_handles), in ib_uverbs_ex_create_rwq_ind_table()
3538 wqs = kcalloc(num_wq_handles, sizeof(*wqs), GFP_KERNEL); in ib_uverbs_ex_create_rwq_ind_table()
/freebsd-11-stable/sys/dev/mlx4/mlx4_ib/
HDmlx4_ib_main.c2190 *name = kcalloc(num_counters, sizeof(**name), GFP_KERNEL); in __mlx4_ib_alloc_diag_counters()
2194 *offset = kcalloc(num_counters, sizeof(**offset), GFP_KERNEL); in __mlx4_ib_alloc_diag_counters()
2422 ibdev->eq_table = kcalloc(dev->caps.num_comp_vectors, in mlx4_ib_alloc_eqs()
3000 dm = kcalloc(ports, sizeof(*dm), GFP_ATOMIC); in do_slave_init()
HDmlx4_ib_sysfs.c508 tab_attr = kcalloc(1 + len, sizeof (struct attribute *), GFP_KERNEL); in alloc_group_attrs()
HDmlx4_ib_mad.c1578 tun_qp->tx_ring = kcalloc(MLX4_NUM_TUNNEL_BUFS, in mlx4_ib_alloc_pv_bufs()
2126 ctx->tun = kcalloc(dev->dev->caps.sqp_demux, in mlx4_ib_alloc_demux_ctx()
/freebsd-11-stable/sys/dev/mthca/
HDmthca_mr.c149 buddy->num_free = kcalloc((buddy->max_order + 1), sizeof *buddy->num_free, in mthca_buddy_init()
/freebsd-11-stable/sys/dev/mlx4/mlx4_en/
HDmlx4_en_netdev.c2191 priv->tx_ring = kcalloc(MAX_TX_RINGS, in mlx4_en_init_netdev()
2197 priv->tx_cq = kcalloc(sizeof(struct mlx4_en_cq *), MAX_TX_RINGS, in mlx4_en_init_netdev()

12