/titanic_44/usr/src/cmd/msgfmt/ |
H A D | gnu_hash.c | 93 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_44/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_hash.c | 67 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_44/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor_ioctl.c | 852 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 D | tavor_misc.c | 1836 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_44/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon_ioctl.c | 828 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 D | hermon_misc.c | 1906 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_44/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) 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_44/usr/src/cmd/rcm_daemon/common/ |
H A D | swap_rcm.c | 579 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_44/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_sctp.c | 547 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_44/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) in get_msg() argument 265 if (msg_index >= tbl_size) { in get_msg()
|
/titanic_44/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_ib.c | 316 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_44/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) in get_msg() argument 399 if (msg_index >= tbl_size) { in get_msg()
|
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | genunix.c | 1629 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()
|