Home
last modified time | relevance | path

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

/titanic_41/usr/src/cmd/msgfmt/
H A Dgnu_hash.c93 find_prime(unsigned int tbl_size) in find_prime() argument
99 if (tbl_size == 1) in find_prime()
101 else if (tbl_size == 2) in find_prime()
104 n = 4 * tbl_size / 3; in find_prime()
/titanic_41/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()
/titanic_41/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_ioctl.c852 uint_t tbl_size; in tavor_ioctl_ports() local
905 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_gidtbl); in tavor_ioctl_ports()
906 sgid_tbl = (ib_gid_t *)kmem_zalloc(tbl_size * sizeof (ib_gid_t), in tavor_ioctl_ports()
908 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_pkeytbl); in tavor_ioctl_ports()
909 pkey_tbl = (ib_pkey_t *)kmem_zalloc(tbl_size * sizeof (ib_pkey_t), in tavor_ioctl_ports()
951 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_gidtbl); in tavor_ioctl_ports()
952 kmem_free(sgid_tbl, tbl_size * sizeof (ib_gid_t)); in tavor_ioctl_ports()
953 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_pkeytbl); in tavor_ioctl_ports()
954 kmem_free(pkey_tbl, tbl_size * sizeof (ib_pkey_t)); in tavor_ioctl_ports()
995 uint_t tbl_size, loopmax, max_usec; in tavor_ioctl_loopback() local
[all …]
H A Dtavor_misc.c1836 uint_t sgid_max, pkey_max, tbl_size; in tavor_port_query() local
1891 tbl_size = state->ts_cfg_profile->cp_log_max_gidtbl; in tavor_port_query()
1892 pi->p_sgid_tbl_sz = (1 << tbl_size); in tavor_port_query()
1893 tbl_size = state->ts_cfg_profile->cp_log_max_pkeytbl; in tavor_port_query()
1894 pi->p_pkey_tbl_sz = (1 << tbl_size); in tavor_port_query()
/titanic_41/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()
870 sgid_tbl = (ib_gid_t *)kmem_zalloc(tbl_size * sizeof (ib_gid_t), in hermon_ioctl_ports()
872 tbl_size = (1 << state->hs_cfg_profile->cp_log_max_pkeytbl); in hermon_ioctl_ports()
873 pkey_tbl = (ib_pkey_t *)kmem_zalloc(tbl_size * sizeof (ib_pkey_t), 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()
914 tbl_size = (1 << state->hs_cfg_profile->cp_log_max_pkeytbl); 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
[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()
/titanic_41/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()
/titanic_41/usr/src/cmd/rcm_daemon/common/
H A Dswap_rcm.c579 size_t tbl_size; in sys_swaptbl() local
584 tbl_size = sizeof (int) + n * sizeof (swapent_t) + n * MAXPATHLEN; in sys_swaptbl()
585 if ((swt = (swaptbl_t *)malloc(tbl_size)) == NULL) in sys_swaptbl()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_sctp.c547 const dispatch_t *tbl, int tbl_size, int flags) in interpret_params() argument
597 dp = lookup_dispatch(ptype, tbl, tbl_size); in interpret_params()
/titanic_41/usr/src/lib/cfgadm_plugins/usb/common/
H A Dcfga_usb.c263 get_msg(uint_t msg_index, msgcvt_t *msg_tbl, uint_t tbl_size) in get_msg() argument
265 if (msg_index >= tbl_size) { in get_msg()
/titanic_41/usr/src/lib/cfgadm_plugins/ib/common/
H A Dcfga_ib.c316 ib_get_msg(uint_t msg_index, msgcvt_t *msg_tbl, uint_t tbl_size) in ib_get_msg() argument
318 if (msg_index >= tbl_size) { in ib_get_msg()
/titanic_41/usr/src/lib/cfgadm_plugins/sata/common/
H A Dcfga_sata.c397 get_msg(uint_t msg_index, msgcvt_t *msg_tbl, uint_t tbl_size) in get_msg() argument
399 if (msg_index >= tbl_size) { in get_msg()
/titanic_41/usr/src/cmd/mdb/common/modules/genunix/
H A Dgenunix.c1629 size_t tbl_size; in class() local
1636 tbl_size = (size_t)g_sclass.st_size; in class()
1637 num_classes = tbl_size / (sizeof (sclass_t)); in class()
1638 class_tbl = mdb_alloc(tbl_size, UM_SLEEP | UM_GC); in class()
1640 if (mdb_readsym(class_tbl, tbl_size, "sclass") == -1) { in class()