Lines Matching refs:tp
126 struct tuple *tp;
130 while ((tp = tl->tuples) != 0) {
131 tl->tuples = tp->next;
132 free(tp->data);
133 free(tp);
197 struct tuple *tp;
207 tp = find_tuple_in_list(last_tl, CIS_LONGLINK_A);
208 if (tp == NULL) {
210 tp = find_tuple_in_list(last_tl, CIS_LONGLINK_C);
213 if (tp == NULL || tp->length != 4)
216 offs = (uint32_t)tpl32(tp->data);
252 struct tuple *tp, *last_tp = 0;
277 tp = xmalloc(sizeof(*tp));
278 tp->code = code;
312 tp->length = length;
315 tp->data = xmalloc(length);
316 if (read(fd, tp->data, length) != length)
321 last_tp->next = tp;
323 tl->tuples = tp;
324 tp->next = NULL;
326 last_tp = tp;
363 struct tuple *tp;
365 for (tp = tl->tuples; tp; tp = tp->next)
366 if (tp->code == code)
368 return (tp);
377 struct tuple_info *tp;
379 for (tp = tuple_info; tp->name; tp++)
380 if (tp->code == code)
381 return (tp);
388 struct tuple_info *tp;
390 tp = get_tuple_info(code);
391 if (tp)
392 return (tp->name);