Lines Matching defs:tpp
149 tpi_provinfo_t **tpp;
168 for (tpp = &tpi_provinfo_table[TPI_HASH(key)]; *tpp != NULL;
169 tpp = &(*tpp)->tpi_next) {
170 if ((*tpp)->tpi_keylen == keylen &&
171 bcmp((*tpp)->tpi_key, key, keylen) == 0) {
173 return (*tpp);
180 *tpp = kmem_zalloc(sizeof (tpi_provinfo_t), KM_SLEEP);
181 (*tpp)->tpi_key = kmem_alloc(keylen, KM_SLEEP);
182 bcopy(key, (*tpp)->tpi_key, keylen);
183 (*tpp)->tpi_keylen = keylen;
184 mutex_init(&(*tpp)->tpi_lock, NULL, MUTEX_DEFAULT, NULL);
187 return (*tpp);