Lines Matching refs:rec
19 __bootinfo_build(struct bi_record *rec, unsigned long tag, unsigned long size,
23 rec->tag = tag;
27 memcpy(rec->data, (char *)data, size);
30 rec->size = sizeof(struct bi_record) + size;
33 rec = (struct bi_record *)((unsigned long)rec + rec->size);
35 return rec;
39 bootinfo_init(struct bi_record *rec)
43 birec = rec;
46 rec = __bootinfo_build(rec, BI_FIRST, 0, NULL);
47 (void) __bootinfo_build(rec, BI_LAST, 0, NULL);
55 struct bi_record *rec = birec;
58 if ((rec == NULL) || (rec->tag != BI_FIRST))
62 while (rec->tag != BI_LAST)
63 rec = (struct bi_record *)((ulong)rec + rec->size);
66 rec = __bootinfo_build(rec, tag, size, data);
67 (void) __bootinfo_build(rec, BI_LAST, 0, NULL);