/illumos-gate/usr/src/tools/smatch/src/cwchash/ |
H A D | hashtable.c | 74 struct entry **newtable; in hashtable_expand() local 82 newtable = (struct entry **)malloc(sizeof(struct entry*) * newsize); in hashtable_expand() 83 if (NULL != newtable) in hashtable_expand() 85 memset(newtable, 0, newsize * sizeof(struct entry *)); in hashtable_expand() 92 e->next = newtable[index]; in hashtable_expand() 93 newtable[index] = e; in hashtable_expand() 97 h->table = newtable; in hashtable_expand() 102 newtable = (struct entry **) in hashtable_expand() 104 if (NULL == newtable) { (h->primeindex)--; return 0; } in hashtable_expand() 105 h->table = newtable; in hashtable_expand() [all …]
|
/illumos-gate/usr/src/uts/common/fs/lofs/ |
H A D | lofs_subr.c | 522 struct lobucket *oldtable, *newtable; in lgrow() local 529 if ((newtable = kmem_zalloc(newsize * sizeof (*li->li_hashtable), in lgrow() 536 kmem_free(newtable, newsize * sizeof (*li->li_hashtable)); in lgrow() 555 mutex_enter(&newtable[i].lh_lock); in lgrow() 566 tlp->lo_next = newtable[hash].lh_chain; in lgrow() 567 newtable[hash].lh_chain = tlp; in lgrow() 568 newtable[hash].lh_count++; in lgrow() 579 li->li_hashtable = newtable; in lgrow() 592 mutex_exit(&newtable[i].lh_lock); in lgrow()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/ |
H A D | cfga_rcm.c | 196 char *newtable; in sata_rcm_info_table() local 255 newtable = realloc(*table, strlen(*table) + table_size); in sata_rcm_info_table() 256 if (newtable == NULL) { in sata_rcm_info_table() 259 *table = newtable; in sata_rcm_info_table()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_rcm.c | 263 char *newtable; in ib_rcm_info_table() local 319 newtable = realloc(*table, strlen(*table) + table_size); in ib_rcm_info_table() 320 if (newtable != NULL) in ib_rcm_info_table() 321 *table = newtable; in ib_rcm_info_table()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_rcm.c | 215 char *newtable; in usb_rcm_info_table() local 278 newtable = realloc(*table, strlen(*table) + table_size); in usb_rcm_info_table() 279 if (newtable == NULL) { in usb_rcm_info_table() 284 *table = newtable; in usb_rcm_info_table()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_rcm.c | 265 char *newtable; in scsi_rcm_info_table() local 316 newtable = realloc(*table, strlen(*table) + table_size); in scsi_rcm_info_table() 317 if (newtable == NULL) in scsi_rcm_info_table() 320 *table = newtable; in scsi_rcm_info_table()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_rcm.c | 493 char *newtable; in fp_rcm_info_table() local 543 newtable = realloc(*table, strlen(*table) + table_size); in fp_rcm_info_table() 544 if (newtable != NULL) in fp_rcm_info_table() 545 *table = newtable; in fp_rcm_info_table()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/shp/common/ |
H A D | shp.c | 420 char *newtable; in pci_rcm_info_table() local 472 newtable = realloc(*table, strlen(*table) + table_size); in pci_rcm_info_table() 473 if (newtable == NULL) in pci_rcm_info_table() 476 *table = newtable; in pci_rcm_info_table()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/pci/common/ |
H A D | cfga.c | 396 char *newtable; in pci_rcm_info_table() local 447 newtable = realloc(*table, strlen(*table) + table_size); in pci_rcm_info_table() 448 if (newtable == NULL) in pci_rcm_info_table() 451 *table = newtable; in pci_rcm_info_table()
|
/illumos-gate/usr/src/uts/common/io/e1000g/ |
H A D | e1000g_main.c | 2708 struct ether_addr *newtable; in multicst_add() local 2734 newtable = kmem_alloc(new_len, KM_NOSLEEP); in multicst_add() 2735 if (newtable == NULL) { in multicst_add() 2743 bcopy(Adapter->mcast_table, newtable, old_len); in multicst_add() 2747 Adapter->mcast_table = newtable; in multicst_add() 2777 struct ether_addr *newtable; in multicst_remove() local 2801 newtable = kmem_alloc(new_len, KM_NOSLEEP); in multicst_remove() 2802 if (newtable != NULL) { in multicst_remove() 2803 bcopy(Adapter->mcast_table, newtable, new_len); in multicst_remove() 2807 Adapter->mcast_table = newtable; in multicst_remove()
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | tulip.c | 442 u16 newtable[32]; /* Max length below. */ member 754 memcpy(ee_data + 26, eeprom_fixups[i].newtable, in parse_eeprom() 755 sizeof(eeprom_fixups[i].newtable)); in parse_eeprom()
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | crypto.c | 471 crypto_minor_t **newtable; in crypto_open() local 489 newtable = kmem_zalloc(new_size, KM_SLEEP); in crypto_open() 497 kmem_free(newtable, new_size); in crypto_open() 502 bcopy(crypto_minors, newtable, in crypto_open() 515 crypto_minors = newtable; in crypto_open()
|