/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_index.cc | 57 table_size = 0; in db_index() 83 for (i = 0; i < table_size; i++) { // go through table in reset() 96 table_size = count = 0; in reset() 142 long unsigned oldsize = table_size, i; in grow() 146 table_size = get_next_hashsize(table_size); in grow() 150 fprintf(ddt, "savehash GROWING to %d\n", table_size); in grow() 153 if (table_size > CALLOC_LIMIT) { in grow() 154 table_size = oldsize; in grow() 162 calloc((unsigned int) table_size, in grow() 165 table_size = oldsize; in grow() [all …]
|
H A D | db_table.cc | 318 table_size = 0; in db_table() 353 i <= last_used && i < table_size && done < count; in reset() 363 table_size = last_used = count = 0; in reset() 432 long oldsize = table_size; in grow() 436 table_size = get_new_table_size(oldsize); in grow() 439 fprintf(stderr, "db_table GROWING to %d\n", table_size); in grow() 442 if (table_size > CALLOC_LIMIT) { in grow() 443 table_size = oldsize; in grow() 451 calloc((unsigned int) table_size, in grow() 454 table_size = oldsize; in grow() [all …]
|
H A D | db_table_c.x | 149 % long table_size; 225 % long getsize() { return table_size; }
|
/illumos-gate/usr/src/cmd/oawk/ |
H A D | b.c | 827 insert_table(ccl_chars_t *table_base, int table_size, int ns, wchar_t cs, in insert_table() argument 844 for (i = 0, table = table_base; i < table_size; i++, table++) { in insert_table() 854 table_size++; in insert_table() 855 for (; i < table_size; i++, table++) { in insert_table() 880 return (table_size); in insert_table() 896 table_size++; in insert_table() 906 if ((i + 1) >= table_size) { in insert_table() 909 return (table_size); in insert_table() 920 for (; i < table_size; i++, table++) { in insert_table() 942 saved_i = table_size - (i - saved_i - 1); in insert_table() [all …]
|
/illumos-gate/usr/src/cmd/geniconvtbl/ |
H A D | itm_util.c | 378 itm_size_t table_size; in range_table() local 404 table_size = ((sizeof (itm_tbl_hdr_t)) + in range_table() 406 table_size = ITMROUNDUP(table_size); in range_table() 408 table = malloc_vital(table_size); in range_table() 412 table->size = table_size; in range_table() 444 itm_size_t table_size; in escseq_table() local 464 table_size = ((sizeof (itm_tbl_hdr_t)) + in escseq_table() 467 table_size = ITMROUNDUP(table_size); in escseq_table() 468 table = malloc_vital(table_size); in escseq_table() 472 table->size = table_size; in escseq_table() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | pci_passthru.c | 246 int i, ptr, capptr, cap, sts, caplen, table_size; in cfginitmsi() local 316 table_size = pi->pi_msix.table_count * MSIX_TABLE_ENTRY_SIZE; in cfginitmsi() 317 pi->pi_msix.table = calloc(1, table_size); in cfginitmsi() 495 uint32_t table_size, table_offset; in init_msix_table() local 531 table_size = pi->pi_msix.table_offset - table_offset; in init_msix_table() 532 table_size += pi->pi_msix.table_count * MSIX_TABLE_ENTRY_SIZE; in init_msix_table() 533 table_size = roundup2(table_size, 4096); in init_msix_table() 544 if (table_offset + table_size != pi->pi_msix.mapped_size) in init_msix_table() 546 pi->pi_msix.mapped_addr + table_offset + table_size, in init_msix_table() 547 pi->pi_msix.mapped_size - (table_offset + table_size), in init_msix_table() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_ht.c | 87 ht_create_table(size_t table_size, size_t key_size, size_t flags) in ht_create_table() argument 93 if ((table_size == 0) || (key_size == 0)) in ht_create_table() 96 if (ht_is_power2(table_size) == 0) in ht_create_table() 99 msize = sizeof (HT_HANDLE) + (sizeof (HT_TABLE_ENTRY) * table_size); in ht_create_table() 106 ht->ht_table_size = table_size; in ht_create_table() 107 ht->ht_table_mask = table_size - 1; in ht_create_table() 117 for (i = 0; i < table_size; i++) in ht_create_table()
|
/illumos-gate/usr/src/uts/common/sys/tsol/ |
H A D | tndb.h | 312 #define TSOL_ADDR_HASH(addr, table_size) \ argument 314 % (table_size)) 316 #define TSOL_ADDR_HASH_V6(addr, table_size) \ argument 319 (addr).s6_addr8[14] ^ (addr).s6_addr8[15]) % (table_size)) 322 #define TSOL_ADDR_MASK_HASH_V6(addr, mask, table_size) \ argument 328 ((addr).s6_addr8[15] & (mask).s6_addr8[15])) & ((table_size) - 1))
|
/illumos-gate/usr/src/cmd/tic/ |
H A D | tic_parse.c | 108 unsigned int table_size = 0; /* current string_table size */ variable 766 if (table_size == 0) { in save_str() 769 table_size = 1024; in save_str() 771 table_size); in save_str() 774 while (table_size <= next_free + strlen(string)) { in save_str() 775 if ((string_table = realloc(string_table, table_size + 1024)) in save_str() 778 table_size += 1024; in save_str() 779 DEBUG(5, "Extended string table. Size now %u\n", table_size); in save_str()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/ |
H A D | cfga_rcm.c | 191 size_t table_size = 0; in sata_rcm_info_table() local 247 table_size = (2 + tuples) * (width + 1) + 2; in sata_rcm_info_table() 250 *table = calloc(table_size, sizeof (char)); in sata_rcm_info_table() 255 newtable = realloc(*table, strlen(*table) + table_size); in sata_rcm_info_table()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_rcm.c | 258 size_t table_size = 0; in ib_rcm_info_table() local 315 table_size = (2 + tuples) * (width + 1) + 2; in ib_rcm_info_table() 317 *table = malloc(table_size); in ib_rcm_info_table() 319 newtable = realloc(*table, strlen(*table) + table_size); in ib_rcm_info_table()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_rcm.c | 210 size_t table_size = 0; in usb_rcm_info_table() local 268 table_size = (2 + tuples) * (width + 1) + 2; in usb_rcm_info_table() 271 *table = calloc(table_size, sizeof (char)); in usb_rcm_info_table() 278 newtable = realloc(*table, strlen(*table) + table_size); in usb_rcm_info_table()
|
/illumos-gate/usr/src/uts/common/inet/ |
H A D | ip_ire.h | 50 #define IRE_ADDR_HASH(addr, table_size) \ argument 52 ((table_size) - 1)) 58 #define IRE_ADDR_HASH_V6(addr, table_size) \ argument 59 IRE_ADDR_HASH((addr).s6_addr32[3], table_size) 66 #define IRE_ADDR_MASK_HASH_V6(addr, mask, table_size) \ argument 76 ((addr).s6_addr8[15] & (mask).s6_addr8[15])) & ((table_size) - 1))
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_rcm.c | 260 size_t table_size = 0; in scsi_rcm_info_table() local 309 table_size = (2 + tuples) * (width + 1) + 2; in scsi_rcm_info_table() 312 *table = calloc(table_size, sizeof (char)); in scsi_rcm_info_table() 316 newtable = realloc(*table, strlen(*table) + table_size); in scsi_rcm_info_table()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/disk_label/ |
H A D | disk_label.c | 686 size_t table_size; in cmd_gpt() local 814 table_size = header->efi_gpt_SizeOfPartitionEntry * in cmd_gpt() 821 if (table_size > EFI_MIN_ARRAY_SIZE) { in cmd_gpt() 822 mdb_warn("Skipping GPT array of %#lx bytes.\n", table_size); in cmd_gpt() 826 table_size = P2ROUNDUP(table_size, sector_size); in cmd_gpt() 827 gpet = mdb_alloc(table_size, UM_SLEEP | UM_GC); in cmd_gpt() 829 if (mdb_vread(gpet, table_size, in cmd_gpt()
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip6_asp.c | 262 size_t table_size; in ip6_asp_check_for_updates() local 283 table_size = iocp->ioc_count; in ip6_asp_check_for_updates() 286 table_size = iocp->ioc_count; in ip6_asp_check_for_updates() 289 ip6_asp_replace(mp, table, table_size, B_TRUE, ipst, in ip6_asp_check_for_updates()
|
/illumos-gate/usr/src/lib/iconv_modules/common/ |
H A D | tab_lookup.c | 88 idx = bisearch(search_val, st, st->table_size); in _icv_iconv_lu() 141 idx = bisearch(search_val, st, st->table_size); in _icv_iconv_lu()
|
H A D | tab_lookup.h | 44 int table_size; /* no of lookup records */ member
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_hash.c | 352 IN DAT_COUNT table_size, in dapls_hash_create() argument 357 DAT_COUNT table_length = table_size * sizeof (DAPL_HASH_ELEM); in dapls_hash_create() 374 p_table->tbl_size = table_size; in dapls_hash_create() 386 for (i = 0; i < table_size; i++) { in dapls_hash_create()
|
/illumos-gate/usr/src/cmd/sendmail/db/lock/ |
H A D | lock.c | 183 list[i].obj, sh_obj, lt->region->table_size, 410 links, sh_obj, lt->region->table_size, __lock_lhash); 684 dbt, sh_obj, lrp->table_size, __lock_ohash, __lock_cmp); 803 lrp->table_size, __lock_ohash, __lock_cmp); 807 sh_obj, lrp->table_size, __lock_locker_hash, 860 __db_lockobj, links, sh_obj, lrp->table_size, __lock_lhash); 916 __db_lockobj, links, obj, lt->region->table_size, __lock_lhash);
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_rcm.c | 488 size_t table_size = 0; in fp_rcm_info_table() local 539 table_size = (2 + tuples) * (width + 1) + 2; in fp_rcm_info_table() 541 *table = malloc(table_size); in fp_rcm_info_table() 543 newtable = realloc(*table, strlen(*table) + table_size); in fp_rcm_info_table()
|
/illumos-gate/usr/src/lib/iconv_modules/zh/common/ |
H A D | UTF-8%zh_CN-cp935.c | 53 st->table_size = MAX_UCS_NUM; in _icv_open()
|
H A D | UTF-8%zh_TW-cp937.c | 54 st->table_size = MAX_UCS_NUM; in _icv_open()
|
H A D | zh_CN-cp935%UTF-8.c | 53 st->table_size = MAX_UCS_NUM; in _icv_open()
|
H A D | zh_TW-cp937%UTF-8.c | 54 st->table_size = MAX_UCS_NUM; in _icv_open()
|