Lines Matching defs:tp
124 struct tuple *tp;
128 while ((tp = tl->tuples) != 0) {
129 tl->tuples = tp->next;
130 free(tp->data);
131 free(tp);
195 struct tuple *tp;
205 tp = find_tuple_in_list(last_tl, CIS_LONGLINK_A);
206 if (tp == 0) {
208 tp = find_tuple_in_list(last_tl, CIS_LONGLINK_C);
210 if (tp && tp->length == 4) {
211 offs = tpl32(tp->data);
249 struct tuple *tp, *last_tp = 0;
272 tp = xmalloc(sizeof(*tp));
273 tp->code = code;
283 tp->length = length;
288 length = tp->length = 0;
293 tp->data = xmalloc(length);
294 if (read(fd, tp->data, length) != length) {
307 tp->code = CIS_NULL;
310 tl->tuples = tp;
312 last_tp->next = tp;
313 last_tp = tp;
346 struct tuple *tp;
348 for (tp = tl->tuples; tp; tp = tp->next)
349 if (tp->code == code)
351 return (tp);
360 struct tuple_info *tp;
362 for (tp = tuple_info; tp->name; tp++)
363 if (tp->code == code)
364 return (tp);
371 struct tuple_info *tp;
373 tp = get_tuple_info(code);
374 if (tp)
375 return (tp->name);