Lines Matching refs:t

74     tOverlay *t = Alloc(sizeof(tOverlay));  in NewOverlay()  local
77 list->tail->next = t; in NewOverlay()
79 list->head = t; in NewOverlay()
80 list->tail = t; in NewOverlay()
82 return t; in NewOverlay()
87 tOverlay *t = list->head; in GetOverlay() local
89 while (t) in GetOverlay()
91 if (isSame(t->name, overlayName)) in GetOverlay()
93 return t; in GetOverlay()
95 t = t->next; in GetOverlay()
113 tOverlay *t = NewOverlay(list); in s_AddOverlay() local
115 t->id = GetNextOverlayID(); in s_AddOverlay()
117 t->name = overlayName; in s_AddOverlay()
118 t->compressSpec = 'S'; in s_AddOverlay()
150 tOverlay *t = CurrentOverlay->tail; in OverlaySetId() local
152 if (t->id) in OverlaySetId()
158 t->id = id; in OverlaySetId()
170 tOverlay *t = CurrentOverlay->tail; in OverlaySetGroup() local
172 if (t->group) in OverlaySetGroup()
178 t->group = group; in OverlaySetGroup()
190 tOverlay *t = CurrentOverlay->tail; in OverlaySetAddress() local
192 if (t->afters.tail || t->address) in OverlaySetAddress()
198 t->address = address; in OverlaySetAddress()
210 tAfter *t = Alloc(sizeof(tAfter)); in NewAfter() local
213 list->tail->next = t; in NewAfter()
215 list->head = t; in NewAfter()
216 list->tail = t; in NewAfter()
218 return t; in NewAfter()
224 tAfter *t = list->head; in GetAfter() local
226 while (t) in GetAfter()
228 if (isSame(t->name, name)) in GetAfter()
230 return t; in GetAfter()
232 t = t->next; in GetAfter()
246 tAfter *t = NewAfter(list); in AddAfter() local
247 t->name = name; in AddAfter()
270 tObject *t = Alloc(sizeof(tObject)); in NewObject() local
273 list->tail->next = t; in NewObject()
275 list->head = t; in NewObject()
276 list->tail = t; in NewObject()
278 return t; in NewObject()
284 tObject *t = list->head; in GetObject() local
286 while (t) in GetObject()
288 if (isSame(t->objectName, objectName) && isSame(t->sectionName, sectionName)) in GetObject()
290 return t; in GetObject()
292 t = t->next; in GetObject()
300 tObject *t = NewObject(list); in AddObject() local
301 t->objectName = objectName; in AddObject()
302 t->sectionName = NULL; in AddObject()
303 t->objectType = objectType; in AddObject()
310 tObject *t = list->head; in SetObjectSection() local
314 while (t) in SetObjectSection()
316 if (!t->sectionName) in SetObjectSection()
320 if (!isNeedSection(t) && sectionName[0] == '*') in SetObjectSection()
326 debug_printf("t->objectName=[%s]\n", t->objectName); in SetObjectSection()
328 if (GetObject(list, t->objectName, sectionName)) in SetObjectSection()
330 char *s = Alloc(strlen(t->objectName) + strlen(sectionName) + 80); in SetObjectSection()
331 sprintf(s, "OBJECT '%s (%s)' already existed. Ignored.", t->objectName, in SetObjectSection()
337 t->sectionName = strdup(sectionName); in SetObjectSection()
339 t = t->next; in SetObjectSection()
420 tStatic *t = &Static; in StaticSetName() local
422 if (t->name) in StaticSetName()
435 t->name = staticName; in StaticSetName()
447 tStatic *t = &Static; in StaticSetAddress() local
449 if (t->address) in StaticSetAddress()
455 t->address = address; in StaticSetAddress()
519 tStatic *t = &Static; in StaticSetStackSize() local
521 if (t->stacksize) in StaticSetStackSize()
527 t->stacksize = stacksize; in StaticSetStackSize()
535 tStatic *t = &Static; in StaticSetStackSizeIrq() local
537 if (t->stacksize_irq) in StaticSetStackSizeIrq()
543 t->stacksize_irq = stacksize_irq; in StaticSetStackSizeIrq()
558 tProperty* t = &Property; \
560 if ( t->member ) \
566 t->member = val; \
583 tAfter *t = list->head; in SET_PROPERTY() local
585 while (t) in SET_PROPERTY()
587 if (!isSame(t->name, Static.name) && !GetOverlay(&OverlayList, t->name) in SET_PROPERTY()
588 && !GetOverlay(&AutoloadList, t->name) in SET_PROPERTY()
589 && !GetOverlay(&LtdoverlayList, t->name) in SET_PROPERTY()
590 && !GetOverlay(&LtdautoloadList, t->name)) in SET_PROPERTY()
592 …tderr, "No such static/autoload/overlay/ltdautoload/ltdoverlay %s referred in overlay %s", t->name, in SET_PROPERTY()
596 t = t->next; in SET_PROPERTY()
604 tOverlay *t = list->head; in s_CheckOverlay() local
606 while (t) in s_CheckOverlay()
608 if (t->address) in s_CheckOverlay()
610 if (t->afters.tail) in s_CheckOverlay()
612 fprintf(stderr, "Set both of 'Address' and 'After' in overlay %s", t->name); in s_CheckOverlay()
618 if (t->afters.tail) in s_CheckOverlay()
620 if (!CheckAfters(t->name, &t->afters)) in s_CheckOverlay()
627 fprintf(stderr, "No addressing commands 'Address'/ 'After' in overlay %s", t->name); in s_CheckOverlay()
631 t = t->next; in s_CheckOverlay()
643 tStatic *t = &Static; in CheckStatic() local
645 if (!t->address) in CheckStatic()
647 fprintf(stderr, "No addressing commands 'After' in static %s", t->name); in CheckStatic()
651 if (!t->stacksize_irq) in CheckStatic()
653 t->stacksize_irq = DEFAULT_IRQSTACKSIZE; in CheckStatic()
662 tProperty *t = &Property; in CheckProperty() local
665 if (!t->overlaydefs) in CheckProperty()
667 t->overlaydefs = strdup(DEFAULT_OVERLAYDEFS); in CheckProperty()
669 if (t->overlaydefs[0] == '%') in CheckProperty()
671 char *name = Alloc(strlen(Static.name) + strlen(t->overlaydefs + 1) + 1); in CheckProperty()
673 strcat(name, t->overlaydefs + 1); in CheckProperty()
674 Free(&t->overlaydefs); in CheckProperty()
675 t->overlaydefs = name; in CheckProperty()
678 if (!t->overlaytable) in CheckProperty()
680 t->overlaytable = strdup(DEFAULT_OVERLAYTABLE); in CheckProperty()
682 if (t->overlaytable[0] == '%') in CheckProperty()
684 char *name = Alloc(strlen(Static.name) + strlen(t->overlaytable + 1) + 1); in CheckProperty()
686 strcat(name, t->overlaytable + 1); in CheckProperty()
687 Free(&t->overlaytable); in CheckProperty()
688 t->overlaytable = name; in CheckProperty()
691 if (!t->ltdoverlaydefs) in CheckProperty()
693 t->ltdoverlaydefs = strdup(DEFAULT_LTDOVERLAYDEFS); in CheckProperty()
695 if (t->ltdoverlaydefs[0] == '%') in CheckProperty()
697 char *name = Alloc(strlen(Static.name) + strlen(t->ltdoverlaydefs + 1) + 1); in CheckProperty()
699 strcat(name, t->ltdoverlaydefs + 1); in CheckProperty()
700 Free(&t->ltdoverlaydefs); in CheckProperty()
701 t->ltdoverlaydefs = name; in CheckProperty()
704 if (!t->ltdoverlaytable) in CheckProperty()
706 t->ltdoverlaytable = strdup(DEFAULT_LTDOVERLAYTABLE); in CheckProperty()
708 if (t->ltdoverlaytable[0] == '%') in CheckProperty()
710 char *name = Alloc(strlen(Static.name) + strlen(t->ltdoverlaytable + 1) + 1); in CheckProperty()
712 strcat(name, t->ltdoverlaytable + 1); in CheckProperty()
713 Free(&t->ltdoverlaytable); in CheckProperty()
714 t->ltdoverlaytable = name; in CheckProperty()
717 if (!t->suffix) in CheckProperty()
719 t->suffix = strdup(DEFAULT_SUFFIX); in CheckProperty()
722 if (!t->flxsuffix) in CheckProperty()
724 t->flxsuffix = strdup(DEFAULT_FLXSUFFIX); in CheckProperty()
727 if (!t->ltdsuffix) in CheckProperty()
729 t->ltdsuffix = strdup(DEFAULT_LTDSUFFIX); in CheckProperty()
747 tAfter *t = list->head; in DumpAfters() local
749 while (t) in DumpAfters()
751 printf(" After : %s\n", t->name); in DumpAfters()
752 t = t->next; in DumpAfters()
759 tObject *t = list->head; in DumpObjects() local
761 while (t) in DumpObjects()
763 printf(" Object : %s %s\n", t->objectName, t->sectionName); in DumpObjects()
764 t = t->next; in DumpObjects()
771 tOverlay *t = AutoloadList.head; in DumpAutoload() local
773 while (t) in DumpAutoload()
775 printf("Autoload : %s\n", t->name); in DumpAutoload()
776 printf(" Address : %08lx\n", t->address); in DumpAutoload()
777 DumpAfters(&t->afters); in DumpAutoload()
778 DumpObjects(&t->objects); in DumpAutoload()
780 t = t->next; in DumpAutoload()
787 tOverlay *t = OverlayList.head; in DumpOverlay() local
789 while (t) in DumpOverlay()
791 printf("Overlay : %s\n", t->name); in DumpOverlay()
792 printf(" Address : %08lx\n", t->address); in DumpOverlay()
793 DumpAfters(&t->afters); in DumpOverlay()
794 DumpObjects(&t->objects); in DumpOverlay()
796 t = t->next; in DumpOverlay()
803 tOverlay *t = LtdautoloadList.head; in DumpLtdautoload() local
805 while (t) in DumpLtdautoload()
807 printf("Ltdautoload : %s\n", t->name); in DumpLtdautoload()
808 printf(" Address : %08lx\n", t->address); in DumpLtdautoload()
809 DumpAfters(&t->afters); in DumpLtdautoload()
810 DumpObjects(&t->objects); in DumpLtdautoload()
812 t = t->next; in DumpLtdautoload()
819 tOverlay *t = LtdoverlayList.head; in DumpLtdoverlay() local
821 while (t) in DumpLtdoverlay()
823 printf("Ltdoverlay : %s\n", t->name); in DumpLtdoverlay()
824 printf(" Address : %08lx\n", t->address); in DumpLtdoverlay()
825 DumpAfters(&t->afters); in DumpLtdoverlay()
826 DumpObjects(&t->objects); in DumpLtdoverlay()
828 t = t->next; in DumpLtdoverlay()
835 tStatic *t = &Static; in DumpStatic() local
837 printf("Static : %s\n", t->name); in DumpStatic()
838 printf(" Address : %08lx\n", t->address); in DumpStatic()
839 DumpObjects(&t->objects); in DumpStatic()
840 printf(" StackSize : %08lx\n", t->stacksize); in DumpStatic()
847 tProperty *t = &Property; in DumpProperty() local
850 printf(" OverlayDefs : %s\n", t->overlaydefs); in DumpProperty()
851 printf(" OverlayTable : %s\n", t->overlaytable); in DumpProperty()
852 printf(" LtdoverlayDefs : %s\n", t->ltdoverlaydefs); in DumpProperty()
853 printf(" LtdoverlayTable : %s\n", t->ltdoverlaytable); in DumpProperty()
854 printf(" Suffix : %s\n", t->suffix); in DumpProperty()
855 printf(" Flxsuffix : %s\n", t->flxsuffix); in DumpProperty()
856 printf(" Ltdsuffix : %s\n", t->ltdsuffix); in DumpProperty()