/opensolaris-onvv-gate/usr/src/cmd/msgfmt/ |
H A D | gnu_hash.c | 93 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 D | dapl_hash.c | 67 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 D | ilb_alg_hash.c | 206 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 D | hermon_ioctl.c | 828 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 D | hermon_misc.c | 1906 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 D | tavor_ioctl.c | 852 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 D | tavor_misc.c | 1836 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 D | swap_rcm.c | 579 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 D | snoop_sctp.c | 547 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 D | cfga_usb.c | 263 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 D | uwba.c | 1236 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 D | cfga_ib.c | 303 * 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 D | cfga_sata.c | 397 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 D | genunix.c | 1623 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) {
|