Lines Matching refs:tlbs
222 struct _ti_lookbufs *tlbs; in _t_register_lookevent() local
258 tlbs = &tiptr->ti_lookbufs; in _t_register_lookevent()
265 while (tlbs->tl_next != NULL) { in _t_register_lookevent()
267 tlbs = tlbs->tl_next; in _t_register_lookevent()
274 if ((tlbs->tl_next = malloc(sizeof (struct _ti_lookbufs))) == in _t_register_lookevent()
277 tlbs = tlbs->tl_next; in _t_register_lookevent()
283 if ((tlbs->tl_lookcbuf = malloc(cbuf_size)) == NULL) { in _t_register_lookevent()
285 free(tlbs); in _t_register_lookevent()
289 ((tlbs->tl_lookdbuf = malloc(dbuf_size)) == NULL)) { in _t_register_lookevent()
291 free(tlbs->tl_lookcbuf); in _t_register_lookevent()
292 free(tlbs); in _t_register_lookevent()
297 (void) memcpy(tlbs->tl_lookcbuf, cptr, csize); in _t_register_lookevent()
299 (void) memcpy(tlbs->tl_lookdbuf, dptr, dsize); in _t_register_lookevent()
300 tlbs->tl_lookdlen = dsize; in _t_register_lookevent()
301 tlbs->tl_lookclen = csize; in _t_register_lookevent()
302 tlbs->tl_next = NULL; in _t_register_lookevent()
1228 struct _ti_lookbufs *tlbs, *prev_tlbs, *head_tlbs; in _t_free_lookbufs() local
1255 tlbs = head_tlbs->tl_next; in _t_free_lookbufs()
1258 while (tlbs != NULL) { in _t_free_lookbufs()
1259 if (tlbs->tl_lookdbuf != NULL) in _t_free_lookbufs()
1260 free(tlbs->tl_lookdbuf); in _t_free_lookbufs()
1261 free(tlbs->tl_lookcbuf); in _t_free_lookbufs()
1262 prev_tlbs = tlbs; in _t_free_lookbufs()
1263 tlbs = tlbs->tl_next; in _t_free_lookbufs()
1278 struct _ti_lookbufs *tlbs, *next_tlbs; in _t_free_looklist_head() local
1280 tlbs = &tiptr->ti_lookbufs; in _t_free_looklist_head()
1282 if (tlbs->tl_next) { in _t_free_looklist_head()
1286 if (tlbs->tl_lookdbuf != NULL) in _t_free_looklist_head()
1287 free(tlbs->tl_lookdbuf); in _t_free_looklist_head()
1288 free(tlbs->tl_lookcbuf); in _t_free_looklist_head()
1292 next_tlbs = tlbs->tl_next; in _t_free_looklist_head()
1293 tlbs->tl_next = next_tlbs->tl_next; in _t_free_looklist_head()
1294 tlbs->tl_lookcbuf = next_tlbs->tl_lookcbuf; in _t_free_looklist_head()
1295 tlbs->tl_lookclen = next_tlbs->tl_lookclen; in _t_free_looklist_head()
1296 tlbs->tl_lookdbuf = next_tlbs->tl_lookdbuf; in _t_free_looklist_head()
1297 tlbs->tl_lookdlen = next_tlbs->tl_lookdlen; in _t_free_looklist_head()
1322 struct _ti_lookbufs *tlbs, *prev_tlbs; in _t_flush_lookevents() local
1333 tlbs = tiptr->ti_lookbufs.tl_next; in _t_flush_lookevents()
1335 while (tlbs != NULL) { in _t_flush_lookevents()
1336 if (tlbs->tl_lookdbuf != NULL) in _t_flush_lookevents()
1337 free(tlbs->tl_lookdbuf); in _t_flush_lookevents()
1338 free(tlbs->tl_lookcbuf); in _t_flush_lookevents()
1339 prev_tlbs = tlbs; in _t_flush_lookevents()
1340 tlbs = tlbs->tl_next; in _t_flush_lookevents()