Home
last modified time | relevance | path

Searched refs:tbl_size (Results 1 – 15 of 15) sorted by relevance

/illumos-gate/usr/src/cmd/msgfmt/
H A Dgnu_hash.c91 find_prime(unsigned int tbl_size) in find_prime() argument
97 if (tbl_size == 1) in find_prime()
99 else if (tbl_size == 2) in find_prime()
102 n = 4 * tbl_size / 3; in find_prime()
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_hash.c67 unsigned long tbl_size; member
107 &((p_table)->table)[DAPL_DOHASH(in_key, (p_table)->tbl_size)]; \
224 hashValue = DAPL_DOHASH(key, p_table->tbl_size); in dapli_hash_add()
374 p_table->tbl_size = table_size; in dapls_hash_create()
410 sizeof (DAPL_HASH_ELEM) * p_table->tbl_size); in dapls_hash_free()
523 hashValue = DAPL_DOHASH(key, p_table->tbl_size); in dapls_hash_remove()
565 while (p_table->iterator_bucket < p_table->tbl_size) { in dapls_hash_iterate()
576 if (p_table->iterator_bucket == p_table->tbl_size) { in dapls_hash_iterate()
609 while (p_table->iterator_bucket < p_table->tbl_size) { in dapls_hash_iterate()
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_ioctl.c726 uint_t tbl_size; in tavor_ioctl_ports() local
767 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_gidtbl); in tavor_ioctl_ports()
810 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_gidtbl); in tavor_ioctl_ports()
811 kmem_free(sgid_tbl, tbl_size * sizeof (ib_gid_t)); in tavor_ioctl_ports()
813 kmem_free(pkey_tbl, tbl_size * sizeof (ib_pkey_t)); in tavor_ioctl_ports()
847 uint_t tbl_size, loopmax, max_usec; in tavor_ioctl_loopback() local
907 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_gidtbl); in tavor_ioctl_loopback()
923 kmem_free(sgid_tbl, tbl_size * sizeof (ib_gid_t)); in tavor_ioctl_loopback()
925 kmem_free(pkey_tbl, tbl_size * sizeof (ib_pkey_t)); in tavor_ioctl_loopback()
941 kmem_free(sgid_tbl, tbl_size * sizeof (ib_gid_t)); in tavor_ioctl_loopback()
[all …]
H A Dtavor_misc.c1644 uint_t sgid_max, pkey_max, tbl_size; in tavor_port_query() local
1691 tbl_size = state->ts_cfg_profile->cp_log_max_gidtbl; in tavor_port_query()
1692 pi->p_sgid_tbl_sz = (1 << tbl_size); in tavor_port_query()
1693 tbl_size = state->ts_cfg_profile->cp_log_max_pkeytbl; in tavor_port_query()
1694 pi->p_pkey_tbl_sz = (1 << tbl_size); in tavor_port_query()
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_ioctl.c828 uint_t tbl_size; in hermon_ioctl_ports() local
869 tbl_size = (1 << state->hs_cfg_profile->cp_log_max_gidtbl); in hermon_ioctl_ports()
912 tbl_size = (1 << state->hs_cfg_profile->cp_log_max_gidtbl); in hermon_ioctl_ports()
913 kmem_free(sgid_tbl, tbl_size * sizeof (ib_gid_t)); in hermon_ioctl_ports()
915 kmem_free(pkey_tbl, tbl_size * sizeof (ib_pkey_t)); in hermon_ioctl_ports()
949 uint_t tbl_size, loopmax, max_usec; in hermon_ioctl_loopback() local
1009 tbl_size = (1 << state->hs_cfg_profile->cp_log_max_gidtbl); in hermon_ioctl_loopback()
1025 kmem_free(sgid_tbl, tbl_size * sizeof (ib_gid_t)); in hermon_ioctl_loopback()
1027 kmem_free(pkey_tbl, tbl_size * sizeof (ib_pkey_t)); in hermon_ioctl_loopback()
1044 kmem_free(sgid_tbl, tbl_size * sizeof (ib_gid_t)); in hermon_ioctl_loopback()
[all …]
H A Dhermon_misc.c1906 uint_t sgid_max, pkey_max, tbl_size; in hermon_port_query() local
1961 tbl_size = state->hs_cfg_profile->cp_log_max_gidtbl; in hermon_port_query()
1962 pi->p_sgid_tbl_sz = (1 << tbl_size); in hermon_port_query()
1963 tbl_size = state->hs_cfg_profile->cp_log_max_pkeytbl; in hermon_port_query()
1964 pi->p_pkey_tbl_sz = (1 << tbl_size); in hermon_port_query()
/illumos-gate/usr/src/uts/common/inet/ilb/
H A Dilb_alg_hash.c206 grow_tbl(hash_server_t **hash_tbl, size_t *tbl_size) in grow_tbl() argument
212 (*tbl_size + INIT_HASH_TBL_SIZE), KM_NOSLEEP)) == NULL) { in grow_tbl()
215 mem_size = *tbl_size * sizeof (hash_server_t); in grow_tbl()
219 *tbl_size += INIT_HASH_TBL_SIZE; in grow_tbl()
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Dswap_rcm.c577 size_t tbl_size; in sys_swaptbl() local
582 tbl_size = sizeof (int) + n * sizeof (swapent_t) + n * MAXPATHLEN; in sys_swaptbl()
583 if ((swt = (swaptbl_t *)malloc(tbl_size)) == NULL) in sys_swaptbl()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_sctp.c545 const dispatch_t *tbl, int tbl_size, int flags) in interpret_params() argument
595 dp = lookup_dispatch(ptype, tbl, tbl_size); in interpret_params()
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/
H A Dcfga_usb.c264 get_msg(uint_t msg_index, msgcvt_t *msg_tbl, uint_t tbl_size) in get_msg() argument
266 if (msg_index >= tbl_size) { in get_msg()
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/
H A Dcfga_ib.c317 ib_get_msg(uint_t msg_index, msgcvt_t *msg_tbl, uint_t tbl_size) in ib_get_msg() argument
319 if (msg_index >= tbl_size) { in ib_get_msg()
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/
H A Dcfga_sata.c399 get_msg(uint_t msg_index, msgcvt_t *msg_tbl, uint_t tbl_size) in get_msg() argument
401 if (msg_index >= tbl_size) { in get_msg()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dgenunix.c1833 size_t tbl_size; in class() local
1840 tbl_size = (size_t)g_sclass.st_size; in class()
1841 num_classes = tbl_size / (sizeof (sclass_t)); in class()
1842 class_tbl = mdb_alloc(tbl_size, UM_SLEEP | UM_GC); in class()
1844 if (mdb_readsym(class_tbl, tbl_size, "sclass") == -1) { in class()
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/
H A Decore_l2.c534 p_config->tbl_size = p_rss->rss_table_size_log; in ecore_sp_vport_update_rss()
548 1 << p_config->tbl_size); in ecore_sp_vport_update_rss()
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/hsi_repository/
H A Decore_hsi_eth.h840 u8 tbl_size /* rss mask (Tbl size) */; member