Home
last modified time | relevance | path

Searched refs:ht (Results 1 – 25 of 62) sorted by relevance

123

/illumos-gate/usr/src/uts/i86pc/vm/
H A Dhtable.c111 static void htable_free(htable_t *ht);
112 static x86pte_t *x86pte_access_pagetable(htable_t *ht, uint_t index);
113 static void x86pte_release_pagetable(htable_t *ht);
114 static x86pte_t x86pte_cas(htable_t *ht, uint_t entry, x86pte_t old,
357 htable_put_reserve(htable_t *ht) in htable_put_reserve() argument
359 ht->ht_hat = NULL; /* no longer tied to a hat */ in htable_put_reserve()
360 ASSERT(ht->ht_pfn == PFN_INVALID); in htable_put_reserve()
363 ht->ht_next = htable_reserve_pool; in htable_put_reserve()
364 htable_reserve_pool = ht; in htable_put_reserve()
375 htable_t *ht = NULL; in htable_get_reserve() local
[all …]
H A Dhtable.h136 #define HTABLE_NUM_PTES(ht) (((ht)->ht_flags & HTABLE_COPIED) ? \ argument
137 (((ht)->ht_level == mmu.max_level) ? 512 : 4) : 512)
139 #define HTABLE_LAST_PAGE(ht) \ argument
140 ((ht)->ht_level == mmu.max_level ? ((uintptr_t)0UL - MMU_PAGESIZE) :\
141 ((ht)->ht_vaddr - MMU_PAGESIZE + \
142 ((uintptr_t)HTABLE_NUM_PTES(ht) << LEVEL_SHIFT((ht)->ht_level))))
150 #define HTABLE_NUM_PTES(ht) \ argument
151 (!mmu.pae_hat ? 1024 : ((ht)->ht_level == 2 ? 4 : 512))
153 #define HTABLE_LAST_PAGE(ht) ((ht)->ht_vaddr - MMU_PAGESIZE + \ argument
154 ((uintptr_t)HTABLE_NUM_PTES(ht) << LEVEL_SHIFT((ht)->ht_level)))
[all …]
H A Dhat_i86.c301 static x86pte_t hati_update_pte(htable_t *ht, uint_t entry, x86pte_t expected,
456 htable_t *ht; /* top level htable */ in hat_alloc() local
548 ht = htable_create(hat, (uintptr_t)0, TOP_LEVEL(hat), NULL); in hat_alloc()
549 hat->hat_htable = ht; in hat_alloc()
560 ht = hat->hat_htable; in hat_alloc()
562 ht = htable_create(hat, va, rp->hkr_level, in hat_alloc()
565 start = htable_va2entry(va, ht); in hat_alloc()
566 cnt = HTABLE_NUM_PTES(ht) - start; in hat_alloc()
571 cnt = htable_va2entry(rp->hkr_end_va, ht) - in hat_alloc()
576 x86pte_copy(src, ht, start, cnt); in hat_alloc()
[all …]
H A Dhment.c487 hment_walk(page_t *pp, htable_t **ht, uint_t *entry, hment_t *prev) in hment_walk() argument
495 *ht = (htable_t *)pp->p_mapping; in hment_walk()
511 *ht = hm->hm_htable; in hment_walk()
525 hment_remove(page_t *pp, htable_t *ht, uint_t entry) in hment_remove() argument
538 ASSERT(ht == (htable_t *)pp->p_mapping); in hment_remove()
552 dummy.hm_htable = ht; in hment_remove()
555 idx = HMENT_HASH(ht->ht_pfn, entry); in hment_remove()
560 "entry=0x%x hash index=0x%x", (uintptr_t)pp, (uintptr_t)ht, in hment_remove()
723 htable_t *ht; in hment_steal() local
754 ht = hm->hm_htable; in hment_steal()
[all …]
H A Dhment.h45 extern hment_t *hment_remove(page_t *, htable_t *ht, uint_t entry);
56 extern hment_t *hment_prepare(htable_t *ht, uint_t entry, page_t *);
61 extern void hment_assign(htable_t *ht, uint_t entry, page_t *, hment_t *);
H A Dhat_kdi.c82 htable_t *ht __unused; in hat_kdi_init()
90 ht = htable_create(kas.a_hat, hat_kdi_page, 0, NULL); in hat_kdi_init()
99 hat_devload(kas.a_hat, (caddr_t)hat_kdi_pte, MMU_PAGESIZE, ht->ht_pfn, in hat_kdi_init()
103 PT_INDEX_PTR(hat_kdi_pte, htable_va2entry(hat_kdi_page, ht)); in hat_kdi_init()
105 HTABLE_INC(ht->ht_valid_cnt); in hat_kdi_init()
106 htable_release(ht); in hat_kdi_init()
H A Di86_mmu.c117 htable_t *ht; in hat_kmap_init() local
146 ht = htable_create(kas.a_hat, va, 0, NULL); in hat_kmap_init()
147 if (ht == NULL) in hat_kmap_init()
149 mmu.kmap_htables[i] = ht; in hat_kmap_init()
152 MMU_PAGESIZE, ht->ht_pfn, in hat_kmap_init()
/illumos-gate/usr/src/lib/lib9p/common/
H A Dhashtable.h34 struct ht { struct
51 struct ht * htit_parent;
66 ht_rdlock(struct ht *h) in ht_rdlock()
76 ht_wrlock(struct ht *h) in ht_wrlock()
86 ht_unlock(struct ht *h) in ht_unlock()
96 void ht_init(struct ht *h, ssize_t size);
97 void ht_destroy(struct ht *h);
98 void *ht_find(struct ht *h, uint32_t hash);
99 void *ht_find_locked(struct ht *h, uint32_t hash);
100 int ht_add(struct ht *h, uint32_t hash, void *value);
[all …]
H A Dhashtable.c41 ht_init(struct ht *h, ssize_t size) in ht_init()
45 memset(h, 0, sizeof(struct ht)); in ht_init()
55 ht_destroy(struct ht *h) in ht_destroy()
74 ht_find(struct ht *h, uint32_t hash) in ht_find()
86 ht_find_locked(struct ht *h, uint32_t hash) in ht_find_locked()
102 ht_add(struct ht *h, uint32_t hash, void *value) in ht_add()
131 ht_remove(struct ht *h, uint32_t hash) in ht_remove()
144 ht_remove_locked(struct ht *h, uint32_t hash) in ht_remove_locked()
181 struct ht *h; in ht_iter_advance()
212 struct ht *h; in ht_remove_at_iter()
[all …]
/illumos-gate/usr/src/lib/libsqlite/src/
H A Dhash.c41 new->ht = 0; in sqliteHashInit()
54 if( pH->ht ) sqliteFree(pH->ht); in sqliteHashClear()
55 pH->ht = 0; in sqliteHashClear()
174 if( pH->ht ) sqliteFree(pH->ht); in rehash()
175 pH->ht = new_ht; in rehash()
213 if( pH->ht ){ in findElementGivenHash()
214 elem = pH->ht[h].chain; in findElementGivenHash()
215 count = pH->ht[h].count; in findElementGivenHash()
243 if( pH->ht[h].chain==elem ){ in removeElementGivenHash()
244 pH->ht[h].chain = elem->next; in removeElementGivenHash()
[all …]
/illumos-gate/usr/src/test/util-tests/tests/pcieadm/
H A Dpcieadmtest.ksh138 pcieadm_validate_output bridge.pci bridge-ht.out 0 \
139 show-cfgspace -f /dev/stdin ht
140 pcieadm_validate_output bridge.pci bridge-ht.out 0 \
141 show-cfgspace -f /dev/stdin ht.msi
142 pcieadm_validate_output bridge.pci bridge-ht.out 0 \
143 show-cfgspace -f /dev/stdin ht.msi.command
144 pcieadm_validate_output bridge.pci bridge-ht-p.out 1 \
145 show-cfgspace -p -o value,short -f /dev/stdin ht
146 pcieadm_validate_output bridge.pci bridge-ht.msi-p.out 1 \
147 show-cfgspace -p -o value,short -f /dev/stdin ht.msi
[all …]
H A DMakefile30 bridge-ht.out \
31 bridge-ht-p.out \
32 bridge-ht.msi-p.out \
33 bridge-ht.msi.command-p.out \
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/
H A Ddid_hash.c108 did_hash_destroy(did_hash_t *ht) in did_hash_destroy() argument
113 if (ht == NULL) in did_hash_destroy()
115 for (idx = 0; idx < ht->dph_hashlen; idx++) { in did_hash_destroy()
116 for (e = ht->dph_hash[idx]; e != NULL; ) { in did_hash_destroy()
122 topo_mod_free(ht->dph_mod, in did_hash_destroy()
123 ht->dph_hash, ht->dph_hashlen * sizeof (did_t *)); in did_hash_destroy()
124 topo_mod_free(ht->dph_mod, ht, sizeof (did_hash_t)); in did_hash_destroy()
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_ht.c89 HT_HANDLE *ht; in ht_create_table() local
101 if ((ht = (HT_HANDLE *)malloc(msize)) == 0) in ht_create_table()
105 ht->ht_table = (HT_TABLE_ENTRY *)((char *)ht + sizeof (HT_HANDLE)); 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()
108 ht->ht_key_size = key_size; in ht_create_table()
109 ht->ht_total_items = 0; in ht_create_table()
110 ht->ht_flags = flags; in ht_create_table()
111 ht->ht_hash = ht_default_hash; in ht_create_table()
112 ht->ht_callback = 0; in ht_create_table()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/features/
H A Dmath.sh139 ht=' '
201 tab="$tab$nl$ht\"\\0${R}${a}${name}\",$ht(Math_f)(uintptr_t)${F},"
233 tab="$tab$nl$ht\"\\0${R}${a}${name}\",$ht(Math_f)(uintptr_t)${F},"
294 tab="$tab$nl$ht\"\\0${R}${a}${x}\",$ht(Math_f)(uintptr_t)$f,"
297 tab="$tab$nl$ht\"\",$ht$ht(Math_f)0"
/illumos-gate/usr/src/cmd/mdb/i86pc/modules/unix/
H A Di86mmu.c545 htable_t *ht; in do_va2pa() local
582 if (mdb_vread(&ht, sizeof (htable_t *), in do_va2pa()
587 for (; ht != NULL; ht = htable.ht_next) { in do_va2pa()
589 (uintptr_t)ht) == -1) { in do_va2pa()
602 "pte=0x%llr\n", level, ht, pte); in do_va2pa()
698 htable_t *ht; in do_report_maps() local
725 if (mdb_vread(&ht, sizeof (htable_t *), in do_report_maps()
730 for (; ht != NULL; ht = htable.ht_next) { in do_report_maps()
732 (uintptr_t)ht) == -1) { in do_report_maps()
749 "hat=%p htable=%p\n", hatp, ht); in do_report_maps()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/libmlsvc/
H A Dsmb_ht.c43 HT_HANDLE *ht; in smb_ht_walk_init() local
58 ht = &hw->hw_handle; in smb_ht_walk_init()
59 if (mdb_vread(ht, sizeof (*ht), wsp->walk_addr) == -1) { in smb_ht_walk_init()
/illumos-gate/usr/src/lib/libsqlite/tool/
H A Dlemon.c3749 struct s_x1node **ht; /* Hash table for lookups */ member
3778 x1a->ht = (x1node**)&(x1a->tbl[1024]); in Strsafe_init()
3779 for(i=0; i<1024; i++) x1a->ht[i] = 0; in Strsafe_init()
3795 np = x1a->ht[h];
3813 array.ht = (x1node**)&(array.tbl[size]);
3814 for(i=0; i<size; i++) array.ht[i] = 0;
3820 if( array.ht[h] ) array.ht[h]->from = &(newnp->next);
3821 newnp->next = array.ht[h];
3823 newnp->from = &(array.ht[h]);
3824 array.ht[h] = newnp;
[all …]
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DSSrvDereg.java80 Hashtable ht = new Hashtable(); in initialize() local
84 ht, in initialize()
87 URLSignature = (Hashtable)ht.get(URL); in initialize()
H A DServiceStoreInMemory.java132 private Hashtable ht = new Hashtable(); // for collecting attributes. field in ServiceStoreInMemory.AttributeBVCollector
149 findMatchingAttributes(rec, attrTags, ht, ret); in setReturn()
922 InMemoryEvaluator(Hashtable ht, in InMemoryEvaluator() argument
925 attrLevel = ht; in InMemoryEvaluator()
1782 Hashtable ht = new Hashtable(); in deleteAttributes() local
1811 if (ht.get(rec) != null) { in deleteAttributes()
1816 ht.put(rec, rec); in deleteAttributes()
2051 Hashtable ht = new Hashtable(); in findServices() local
2055 ht.put(ServiceStore.FS_SERVICES, services); in findServices()
2060 ht.put(ServiceStore.FS_SIGTABLE, signatures); in findServices()
[all …]
H A DDATable.java375 Hashtable ht = new Hashtable(); in validateScopes() local
426 if (ht.get(str) == null) { in validateScopes()
427 ht.put(str, str); in validateScopes()
/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dfiles_common.c391 int fd, retries, ht, stat; in _nss_files_XY_hash() local
567 for (ht = 0; ht < fhp->fh_nhtab; ht++) {
568 hp = &fhp->fh_table[ht * fhp->fh_size + line];
569 hp->h_hash = fhp->fh_hash_func[ht](&xargs, 0, first,
584 for (ht = 0; ht < fhp->fh_nhtab; ht++) {
585 htab = &fhp->fh_table[ht * fhp->fh_size];
/illumos-gate/usr/src/uts/common/io/scsi/adapters/smartpqi/
H A Dsmartpqi_init.c2030 bmic_host_wellness_time_t *ht; in update_time() local
2034 ht = kmem_zalloc(sizeof (*ht), KM_SLEEP); in update_time()
2035 ht->start_tag[0] = '<'; in update_time()
2036 ht->start_tag[1] = 'H'; in update_time()
2037 ht->start_tag[2] = 'W'; in update_time()
2038 ht->start_tag[3] = '>'; in update_time()
2039 ht->time_tag[0] = 'T'; in update_time()
2040 ht->time_tag[1] = 'D'; in update_time()
2041 ht->time_length = sizeof (ht->time); in update_time()
2048 ht->time[0] = BIN2BCD(tod.tod_hour); /* Hour */ in update_time()
[all …]
/illumos-gate/usr/src/cmd/cpc/common/
H A Dcpustat.c433 hrtime_t ht, htdelta, restdelta; in gtick() local
444 ht = gethrtime(); in gtick()
492 ht += htdelta; in gtick()
494 if (ht <= htnow) in gtick()
496 ts.tv_sec = (time_t)((ht - htnow) / NSECS_PER_SEC); in gtick()
497 ts.tv_nsec = (suseconds_t)((ht - htnow) % NSECS_PER_SEC); in gtick()
564 ht += restdelta; in gtick()
565 ts.tv_sec = (time_t)((ht - htnow) / in gtick()
567 ts.tv_nsec = (suseconds_t)((ht - htnow) % in gtick()
/illumos-gate/usr/src/cmd/eqn/eqnchar.d/
H A Dascii2 |010 bs |011 ht |012 nl |013 vt |014 np |015 cr |016 so |017 si |
20 | 08 bs | 09 ht | 0a nl | 0b vt | 0c np | 0d cr | 0e so | 0f si |

123