Lines Matching refs:t
132 tOverlay *t = Alloc(sizeof(tOverlay)); in NewOverlay() local
135 list->tail->next = t; in NewOverlay()
137 list->head = t; in NewOverlay()
138 list->tail = t; in NewOverlay()
140 return t; in NewOverlay()
145 tOverlay *t = list->head; in GetOverlay() local
147 while (t) in GetOverlay()
149 if (isSame(t->name, overlayName)) in GetOverlay()
151 return t; in GetOverlay()
153 t = t->next; in GetOverlay()
169 tOverlay *t = NewOverlay(list); in s_AddOverlay() local
170 t->id = list->num++; in s_AddOverlay()
171 t->name = overlayName; in s_AddOverlay()
193 tOverlay *t = CurrentOverlay->tail; in OverlaySetId() local
195 if (t->id) in OverlaySetId()
201 t->id = id; in OverlaySetId()
213 tOverlay *t = CurrentOverlay->tail; in OverlaySetGroup() local
215 if (t->group) in OverlaySetGroup()
221 t->group = group; in OverlaySetGroup()
233 tOverlay *t = CurrentOverlay->tail; in OverlaySetAddress() local
235 if (t->afters.tail || t->address) in OverlaySetAddress()
241 t->address = address; in OverlaySetAddress()
253 tAfter *t = Alloc(sizeof(tAfter)); in NewAfter() local
256 list->tail->next = t; in NewAfter()
258 list->head = t; in NewAfter()
259 list->tail = t; in NewAfter()
261 return t; in NewAfter()
267 tAfter *t = list->head; in GetAfter() local
269 while (t) in GetAfter()
271 if (isSame(t->name, name)) in GetAfter()
273 return t; in GetAfter()
275 t = t->next; in GetAfter()
289 tAfter *t = NewAfter(list); in AddAfter() local
290 t->name = name; in AddAfter()
313 tObject *t = Alloc(sizeof(tObject)); in NewObject() local
316 list->tail->next = t; in NewObject()
318 list->head = t; in NewObject()
319 list->tail = t; in NewObject()
321 return t; in NewObject()
327 tObject *t = list->head; in GetObject() local
329 while (t) in GetObject()
331 if (isSame(t->objectName, objectName) && isSame(t->sectionName, sectionName)) in GetObject()
333 return t; in GetObject()
335 t = t->next; in GetObject()
343 tObject *t = NewObject(list); in AddObject() local
344 t->objectName = objectName; in AddObject()
345 t->sectionName = NULL; in AddObject()
346 t->objectType = objectType; in AddObject()
353 tObject *t = list->head; in SetObjectSection() local
357 while (t) in SetObjectSection()
359 if (!t->sectionName) in SetObjectSection()
363 if (!isNeedSection(t) && sectionName[0] == '*') in SetObjectSection()
369 debug_printf("t->objectName=[%s]\n", t->objectName); in SetObjectSection()
371 if (GetObject(list, t->objectName, sectionName)) in SetObjectSection()
373 char *s = Alloc(strlen(t->objectName) + strlen(sectionName) + 80); in SetObjectSection()
374 sprintf(s, "OBJECT '%s (%s)' already existed. Ignored.", t->objectName, in SetObjectSection()
380 t->sectionName = strdup(sectionName); in SetObjectSection()
382 t = t->next; in SetObjectSection()
436 tStatic *t = &Static; in StaticSetTargetName() local
438 if (t->targetName) in StaticSetTargetName()
442 t->targetName = strdup(staticTargetName); in StaticSetTargetName()
448 tStatic *t = &Static; in StaticSetName() local
450 if (t->name) in StaticSetName()
462 t->name = staticName; in StaticSetName()
474 tStatic *t = &Static; in StaticSetAddress() local
476 if (t->address) in StaticSetAddress()
482 t->address = address; in StaticSetAddress()
536 tStatic *t = &Static; in StaticSetStackSize() local
538 if (t->stacksize) in StaticSetStackSize()
544 t->stacksize = stacksize; in StaticSetStackSize()
552 tStatic *t = &Static; in StaticSetStackSizeIrq() local
554 if (t->stacksize_irq) in StaticSetStackSizeIrq()
560 t->stacksize_irq = stacksize_irq; in StaticSetStackSizeIrq()
575 tProperty* t = &Property; \
577 if ( t->member ) \
583 t->member = val; \
596 tAfter *t = list->head; in SET_PROPERTY() local
598 while (t) in SET_PROPERTY()
600 if (!isSame(t->name, Static.name) && !GetOverlay(&OverlayList, t->name) in SET_PROPERTY()
601 && !GetOverlay(&AutoloadList, t->name)) in SET_PROPERTY()
603 fprintf(stderr, "No such static/autoload/overlay %s referred in overlay %s", t->name, in SET_PROPERTY()
607 t = t->next; in SET_PROPERTY()
615 tOverlay *t = list->head; in s_CheckOverlay() local
617 while (t) in s_CheckOverlay()
619 if (t->address) in s_CheckOverlay()
621 if (t->afters.tail) in s_CheckOverlay()
623 fprintf(stderr, "Set both of 'Address' and 'After' in overlay %s", t->name); in s_CheckOverlay()
629 if (t->afters.tail) in s_CheckOverlay()
631 if (!CheckAfters(t->name, &t->afters)) in s_CheckOverlay()
638 fprintf(stderr, "No addressing commands 'Address'/ 'After' in overlay %s", t->name); in s_CheckOverlay()
642 t = t->next; in s_CheckOverlay()
654 tStatic *t = &Static; in CheckStatic() local
656 if (!t->address) in CheckStatic()
658 fprintf(stderr, "No addressing commands 'After' in static %s", t->name); in CheckStatic()
662 if (!t->stacksize_irq) in CheckStatic()
664 t->stacksize_irq = DEFAULT_IRQSTACKSIZE; in CheckStatic()
673 tProperty *t = &Property; in CheckProperty() local
677 if (!t->overlaydefs) in CheckProperty()
679 t->overlaydefs = strdup(DEFAULT_OVERLAYDEFS); in CheckProperty()
681 if (t->overlaydefs[0] == '%') in CheckProperty()
683 char *name = Alloc(strlen(target) + strlen(t->overlaydefs + 1) + 1); in CheckProperty()
685 strcat(name, t->overlaydefs + 1); in CheckProperty()
686 Free(&t->overlaydefs); in CheckProperty()
687 t->overlaydefs = name; in CheckProperty()
690 if (!t->overlaytable) in CheckProperty()
692 t->overlaytable = strdup(DEFAULT_OVERLAYTABLE); in CheckProperty()
694 if (t->overlaytable[0] == '%') in CheckProperty()
696 char *name = Alloc(strlen(target) + strlen(t->overlaytable + 1) + 1); in CheckProperty()
698 strcat(name, t->overlaytable + 1); in CheckProperty()
699 Free(&t->overlaytable); in CheckProperty()
700 t->overlaytable = name; in CheckProperty()
703 if (!t->suffix) in CheckProperty()
705 t->suffix = strdup(DEFAULT_SUFFIX); in CheckProperty()
723 tAfter *t = list->head; in DumpAfters() local
725 while (t) in DumpAfters()
727 printf(" After : %s\n", t->name); in DumpAfters()
728 t = t->next; in DumpAfters()
735 tObject *t = list->head; in DumpObjects() local
737 while (t) in DumpObjects()
739 printf(" Object : %s %s\n", t->objectName, t->sectionName); in DumpObjects()
740 t = t->next; in DumpObjects()
747 tOverlay *t = AutoloadList.head; in DumpAutoload() local
749 while (t) in DumpAutoload()
751 printf("Autoload : %s\n", t->name); in DumpAutoload()
752 printf(" Address : %08lx\n", t->address); in DumpAutoload()
753 DumpAfters(&t->afters); in DumpAutoload()
754 DumpObjects(&t->objects); in DumpAutoload()
756 t = t->next; in DumpAutoload()
763 tOverlay *t = OverlayList.head; in DumpOverlay() local
765 while (t) in DumpOverlay()
767 printf("Overlay : %s\n", t->name); in DumpOverlay()
768 printf(" Address : %08lx\n", t->address); in DumpOverlay()
769 DumpAfters(&t->afters); in DumpOverlay()
770 DumpObjects(&t->objects); in DumpOverlay()
772 t = t->next; in DumpOverlay()
779 tStatic *t = &Static; in DumpStatic() local
781 printf("Static : %s\n", t->name); in DumpStatic()
782 printf(" Address : %08lx\n", t->address); in DumpStatic()
783 DumpObjects(&t->objects); in DumpStatic()
784 printf(" StackSize : %08lx\n", t->stacksize); in DumpStatic()
791 tProperty *t = &Property; in DumpProperty() local
794 printf(" OverlayDefs : %s\n", t->overlaydefs); in DumpProperty()
795 printf(" OverlayTable : %s\n", t->overlaytable); in DumpProperty()
796 printf(" Suffix : %s\n", t->suffix); in DumpProperty()