Home
last modified time | relevance | path

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

123

/freebsd/sys/contrib/dev/iwlwifi/pcie/
H A Dctxt-info.c102 dram->fw = kcalloc(umac_cnt + lmac_cnt, sizeof(*dram->fw), GFP_KERNEL); in iwl_pcie_init_fw_sec()
105 dram->paging = kcalloc(paging_cnt, sizeof(*dram->paging), GFP_KERNEL); in iwl_pcie_init_fw_sec()
H A Drx.c779 trans_pcie->rxq = kcalloc(trans->num_rx_queues, sizeof(struct iwl_rxq),
781 trans_pcie->rx_pool = kcalloc(RX_POOL_SIZE(trans_pcie->num_rx_bufs),
785 kcalloc(RX_POOL_SIZE(trans_pcie->num_rx_bufs),
/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/contrib/dev/iwlwifi/
H A Diwl-phy-db.c175 phy_db->calib_ch_group_papd = kcalloc(chg_id + 1, in iwl_phy_db_set_section()
189 phy_db->calib_ch_group_txp = kcalloc(chg_id + 1, in iwl_phy_db_set_section()
/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()
/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/compat/linuxkpi/common/include/linux/
H A Dslab.h124 kcalloc(size_t n, size_t size, gfp_t flags) in kcalloc() function
/freebsd/sys/dev/mlx5/mlx5_core/
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_alloc.c81 buf->page_list = kcalloc(buf->npages, sizeof(*buf->page_list), in mlx5_buf_alloc()
H A Dmlx5_eswitch.c524 mac_list = kcalloc(size, ETH_ALEN, GFP_KERNEL); in esw_update_vport_addr_list()
1098 esw->l2_table.bitmap = kcalloc(BITS_TO_LONGS(l2_table_size), in mlx5_eswitch_init()
1112 esw->vports = kcalloc(total_vports, sizeof(struct mlx5_vport), in mlx5_eswitch_init()
H A Dmlx5_fs_tcp.c226 ft->g = kcalloc(MLX5E_ACCEL_FS_TCP_NUM_GROUPS, sizeof(*ft->g), GFP_KERNEL); in accel_fs_tcp_create_groups()
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_flow_table.c660 vlans = kcalloc(list_size, sizeof(*vlans), GFP_KERNEL); in mlx5e_vport_context_update_vlans()
1119 addr_array = kcalloc(size, ETH_ALEN, GFP_KERNEL); in mlx5e_vport_context_update_addr_list()
1532 ft->g = kcalloc(MLX5E_NUM_MAIN_GROUPS, sizeof(*ft->g), GFP_KERNEL); in mlx5e_create_main_flow_table()
1657 ft->g = kcalloc(MLX5E_NUM_VLAN_GROUPS, sizeof(*ft->g), GFP_KERNEL); in mlx5e_create_vlan_flow_table()
2044 ft->g = kcalloc(MLX5E_NUM_VXLAN_GROUPS, sizeof(*ft->g), GFP_KERNEL); in mlx5e_create_vxlan_flow_table()
2158 ft->g = kcalloc(MLX5E_NUM_INNER_RSS_GROUPS, sizeof(*ft->g), in mlx5e_create_inner_rss_flow_table()
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dmhi.c274 irq = kcalloc(num_vectors, sizeof(int), GFP_KERNEL); in ath11k_mhi_get_msi()
/freebsd/sys/contrib/dev/athk/ath12k/
H A Ddp.c1348 rx_descs = kcalloc(ATH12K_MAX_SPT_ENTRIES, sizeof(*rx_descs), in ath12k_dp_cc_desc_init()
1372 tx_descs = kcalloc(ATH12K_MAX_SPT_ENTRIES, sizeof(*tx_descs), in ath12k_dp_cc_desc_init()
1420 dp->spt_info = kcalloc(dp->num_spt_pages, sizeof(struct ath12k_spt_info), in ath12k_dp_cc_init()
H A Dmhi.c267 irq = kcalloc(num_vectors, sizeof(*irq), GFP_KERNEL); in ath12k_mhi_get_msi()
/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.c975 cqp->cqp_requests = kcalloc(sqsize, sizeof(*cqp->cqp_requests), in irdma_create_cqp()
980 cqp->scratch_array = kcalloc(sqsize, sizeof(*cqp->scratch_array), in irdma_create_cqp()
1339 rf->ceqlist = kcalloc(num_ceqs, sizeof(*rf->ceqlist), GFP_KERNEL); in irdma_setup_ceq_0()
2141 kcalloc(BITS_TO_LONGS(IRDMA_MAX_WS_NODES), in irdma_initialize_hw_rsrc()

123