Searched refs:tbl_size (Results 1 - 14 of 14) sorted by relevance

/opensolaris-onvv-gate/usr/src/cmd/msgfmt/
H A Dgnu_hash.c93 find_prime(unsigned int tbl_size) argument
99 if (tbl_size == 1)
101 else if (tbl_size == 2)
104 n = 4 * tbl_size / 3;
/opensolaris-onvv-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_hash.c67 unsigned long tbl_size; member in struct:dapl_hash_table
107 &((p_table)->table)[DAPL_DOHASH(in_key, (p_table)->tbl_size)]; \
224 hashValue = DAPL_DOHASH(key, p_table->tbl_size);
374 p_table->tbl_size = table_size;
410 sizeof (DAPL_HASH_ELEM) * p_table->tbl_size);
523 hashValue = DAPL_DOHASH(key, p_table->tbl_size);
565 while (p_table->iterator_bucket < p_table->tbl_size) {
576 if (p_table->iterator_bucket == p_table->tbl_size) {
609 while (p_table->iterator_bucket < p_table->tbl_size) {
/opensolaris-onvv-gate/usr/src/uts/common/inet/ilb/
H A Dilb_alg_hash.c206 grow_tbl(hash_server_t **hash_tbl, size_t *tbl_size) argument
212 (*tbl_size + INIT_HASH_TBL_SIZE), KM_NOSLEEP)) == NULL) {
215 mem_size = *tbl_size * sizeof (hash_server_t);
219 *tbl_size += INIT_HASH_TBL_SIZE;
/opensolaris-onvv-gate/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_ioctl.c828 uint_t tbl_size; local
869 tbl_size = (1 << state->hs_cfg_profile->cp_log_max_gidtbl);
870 sgid_tbl = (ib_gid_t *)kmem_zalloc(tbl_size * sizeof (ib_gid_t),
872 tbl_size = (1 << state->hs_cfg_profile->cp_log_max_pkeytbl);
873 pkey_tbl = (ib_pkey_t *)kmem_zalloc(tbl_size * sizeof (ib_pkey_t),
912 tbl_size = (1 << state->hs_cfg_profile->cp_log_max_gidtbl);
913 kmem_free(sgid_tbl, tbl_size * sizeof (ib_gid_t));
914 tbl_size = (1 << state->hs_cfg_profile->cp_log_max_pkeytbl);
915 kmem_free(pkey_tbl, tbl_size * sizeof (ib_pkey_t));
949 uint_t tbl_size, loopma local
[all...]
H A Dhermon_misc.c1906 uint_t sgid_max, pkey_max, tbl_size; local
1961 tbl_size = state->hs_cfg_profile->cp_log_max_gidtbl;
1962 pi->p_sgid_tbl_sz = (1 << tbl_size);
1963 tbl_size = state->hs_cfg_profile->cp_log_max_pkeytbl;
1964 pi->p_pkey_tbl_sz = (1 << tbl_size);
/opensolaris-onvv-gate/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_ioctl.c852 uint_t tbl_size; local
905 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_gidtbl);
906 sgid_tbl = (ib_gid_t *)kmem_zalloc(tbl_size * sizeof (ib_gid_t),
908 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_pkeytbl);
909 pkey_tbl = (ib_pkey_t *)kmem_zalloc(tbl_size * sizeof (ib_pkey_t),
951 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_gidtbl);
952 kmem_free(sgid_tbl, tbl_size * sizeof (ib_gid_t));
953 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_pkeytbl);
954 kmem_free(pkey_tbl, tbl_size * sizeof (ib_pkey_t));
995 uint_t tbl_size, loopma local
[all...]
H A Dtavor_misc.c1836 uint_t sgid_max, pkey_max, tbl_size; local
1891 tbl_size = state->ts_cfg_profile->cp_log_max_gidtbl;
1892 pi->p_sgid_tbl_sz = (1 << tbl_size);
1893 tbl_size = state->ts_cfg_profile->cp_log_max_pkeytbl;
1894 pi->p_pkey_tbl_sz = (1 << tbl_size);
/opensolaris-onvv-gate/usr/src/cmd/rcm_daemon/common/
H A Dswap_rcm.c579 size_t tbl_size; local
584 tbl_size = sizeof (int) + n * sizeof (swapent_t) + n * MAXPATHLEN;
585 if ((swt = (swaptbl_t *)malloc(tbl_size)) == NULL)
/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_sctp.c547 const dispatch_t *tbl, int tbl_size, int flags)
597 dp = lookup_dispatch(ptype, tbl, tbl_size);
546 interpret_params(const void *data, int datalen, char *type, const dispatch_t *tbl, int tbl_size, int flags) argument
/opensolaris-onvv-gate/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) argument
265 if (msg_index >= tbl_size) {
/opensolaris-onvv-gate/usr/src/uts/common/io/uwb/uwba/
H A Duwba.c1236 int tbl_size = sizeof (uwba_channel_table) / local
1240 for (i = 0; i < tbl_size; i++) {
/opensolaris-onvv-gate/usr/src/lib/cfgadm_plugins/ib/common/
H A Dcfga_ib.c303 * tbl_size - size of the message table
316 ib_get_msg(uint_t msg_index, msgcvt_t *msg_tbl, uint_t tbl_size) argument
318 if (msg_index >= tbl_size) {
/opensolaris-onvv-gate/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) argument
399 if (msg_index >= tbl_size) {
/opensolaris-onvv-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dgenunix.c1623 size_t tbl_size; local
1630 tbl_size = (size_t)g_sclass.st_size;
1631 num_classes = tbl_size / (sizeof (sclass_t));
1632 class_tbl = mdb_alloc(tbl_size, UM_SLEEP | UM_GC);
1634 if (mdb_readsym(class_tbl, tbl_size, "sclass") == -1) {

Completed in 233 milliseconds