Lines Matching refs:moduleid

51 tls_modinfo_alloc(tls_metadata_t *tlsm, ulong_t moduleid)  in tls_modinfo_alloc()  argument
58 tls_modinfo->tls_size <= moduleid) { in tls_modinfo_alloc()
61 while (mod_slots <= moduleid) in tls_modinfo_alloc()
169 ulong_t moduleid = tlsp->tm_modid; in __tls_mod_add() local
175 modinfo = tls_modinfo_alloc(tlsm, moduleid); in __tls_mod_add()
176 (void) memcpy(&modinfo[moduleid], tlsp, sizeof (*tlsp)); in __tls_mod_add()
187 ulong_t moduleid = tlsp->tm_modid; in __tls_mod_remove() local
192 moduleid < tlsm->tls_modinfo.tls_size); in __tls_mod_remove()
194 (void) memset(&modinfo[moduleid], 0, sizeof (TLS_modinfo)); in __tls_mod_remove()
221 ulong_t moduleid; in slow_tls_get_addr() local
233 if ((moduleid = tls_index->ti_moduleid) < self->ul_ntlsent) in slow_tls_get_addr()
236 ASSERT(moduleid < tlsm->tls_modinfo.tls_size); in slow_tls_get_addr()
247 tlsent += moduleid; in slow_tls_get_addr()
249 tlsp = (TLS_modinfo *)tlsm->tls_modinfo.tls_data + moduleid; in slow_tls_get_addr()
301 ulong_t moduleid; in __tls_get_addr() local
304 if ((moduleid = tls_index->ti_moduleid) < self->ul_ntlsent && in __tls_get_addr()
305 (base = tlsent[moduleid].tls_data) != NULL) in __tls_get_addr()
322 long moduleid; in tls_setup() local
335 for (moduleid = 0; moduleid < nmods; moduleid++) { in tls_setup()
342 tlsp = (TLS_modinfo *)tlsm->tls_modinfo.tls_data + moduleid; in tls_setup()
378 long moduleid; in tls_exit() local
389 for (moduleid = nmods - 1; moduleid >= 0; --moduleid) { in tls_exit()
396 tlsp = (TLS_modinfo *)tlsm->tls_modinfo.tls_data + moduleid; in tls_exit()
404 (moduleid < self->ul_ntlsent && in tls_exit()
406 tlsent[moduleid].tls_data != NULL))) { in tls_exit()
435 ulong_t moduleid; in tls_free() local
445 for (moduleid = 0; moduleid < ntlsent; moduleid++, tlsent++) { in tls_free()