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()
172 t->compressSpec = 'S'; in s_AddOverlay()
194 tOverlay *t = CurrentOverlay->tail; in OverlaySetId() local
196 if (t->id) in OverlaySetId()
202 t->id = id; in OverlaySetId()
214 tOverlay *t = CurrentOverlay->tail; in OverlaySetGroup() local
216 if (t->group) in OverlaySetGroup()
222 t->group = group; in OverlaySetGroup()
234 tOverlay *t = CurrentOverlay->tail; in OverlaySetAddress() local
236 if (t->afters.tail || t->address) in OverlaySetAddress()
242 t->address = address; in OverlaySetAddress()
254 tAfter *t = Alloc(sizeof(tAfter)); in NewAfter() local
257 list->tail->next = t; in NewAfter()
259 list->head = t; in NewAfter()
260 list->tail = t; in NewAfter()
262 return t; in NewAfter()
268 tAfter *t = list->head; in GetAfter() local
270 while (t) in GetAfter()
272 if (isSame(t->name, name)) in GetAfter()
274 return t; in GetAfter()
276 t = t->next; in GetAfter()
290 tAfter *t = NewAfter(list); in AddAfter() local
291 t->name = name; in AddAfter()
314 tObject *t = Alloc(sizeof(tObject)); in NewObject() local
317 list->tail->next = t; in NewObject()
319 list->head = t; in NewObject()
320 list->tail = t; in NewObject()
322 return t; in NewObject()
328 tObject *t = list->head; in GetObject() local
330 while (t) in GetObject()
332 if (isSame(t->objectName, objectName) && isSame(t->sectionName, sectionName)) in GetObject()
334 return t; in GetObject()
336 t = t->next; in GetObject()
344 tObject *t = NewObject(list); in AddObject() local
345 t->objectName = objectName; in AddObject()
346 t->sectionName = NULL; in AddObject()
347 t->objectType = objectType; in AddObject()
354 tObject *t = list->head; in SetObjectSection() local
358 while (t) in SetObjectSection()
360 if (!t->sectionName) in SetObjectSection()
364 if (!isNeedSection(t) && sectionName[0] == '*') in SetObjectSection()
370 debug_printf("t->objectName=[%s]\n", t->objectName); in SetObjectSection()
372 if (GetObject(list, t->objectName, sectionName)) in SetObjectSection()
374 char *s = Alloc(strlen(t->objectName) + strlen(sectionName) + 80); in SetObjectSection()
375 sprintf(s, "OBJECT '%s (%s)' already existed. Ignored.", t->objectName, in SetObjectSection()
381 t->sectionName = strdup(sectionName); in SetObjectSection()
383 t = t->next; in SetObjectSection()
464 tStatic *t = &Static; in StaticSetTargetName() local
466 if (t->targetName) in StaticSetTargetName()
470 t->targetName = strdup(staticTargetName); in StaticSetTargetName()
476 tStatic *t = &Static; in StaticSetName() local
478 if (t->name) in StaticSetName()
490 t->name = staticName; in StaticSetName()
502 tStatic *t = &Static; in StaticSetAddress() local
504 if (t->address) in StaticSetAddress()
510 t->address = address; in StaticSetAddress()
574 tStatic *t = &Static; in StaticSetStackSize() local
576 if (t->stacksize) in StaticSetStackSize()
582 t->stacksize = stacksize; in StaticSetStackSize()
590 tStatic *t = &Static; in StaticSetStackSizeIrq() local
592 if (t->stacksize_irq) in StaticSetStackSizeIrq()
598 t->stacksize_irq = stacksize_irq; in StaticSetStackSizeIrq()
613 tProperty* t = &Property; \
615 if ( t->member ) \
621 t->member = val; \
634 tAfter *t = list->head; in SET_PROPERTY() local
636 while (t) in SET_PROPERTY()
638 if (!isSame(t->name, Static.name) && !GetOverlay(&OverlayList, t->name) in SET_PROPERTY()
639 && !GetOverlay(&AutoloadList, t->name)) in SET_PROPERTY()
641 fprintf(stderr, "No such static/autoload/overlay %s referred in overlay %s", t->name, in SET_PROPERTY()
645 t = t->next; in SET_PROPERTY()
653 tOverlay *t = list->head; in s_CheckOverlay() local
655 while (t) in s_CheckOverlay()
657 if (t->address) in s_CheckOverlay()
659 if (t->afters.tail) in s_CheckOverlay()
661 fprintf(stderr, "Set both of 'Address' and 'After' in overlay %s", t->name); in s_CheckOverlay()
667 if (t->afters.tail) in s_CheckOverlay()
669 if (!CheckAfters(t->name, &t->afters)) in s_CheckOverlay()
676 fprintf(stderr, "No addressing commands 'Address'/ 'After' in overlay %s", t->name); in s_CheckOverlay()
680 t = t->next; in s_CheckOverlay()
692 tStatic *t = &Static; in CheckStatic() local
694 if (!t->address) in CheckStatic()
696 fprintf(stderr, "No addressing commands 'After' in static %s", t->name); in CheckStatic()
700 if (!t->stacksize_irq) in CheckStatic()
702 t->stacksize_irq = DEFAULT_IRQSTACKSIZE; in CheckStatic()
711 tProperty *t = &Property; in CheckProperty() local
715 if (!t->overlaydefs) in CheckProperty()
717 t->overlaydefs = strdup(DEFAULT_OVERLAYDEFS); in CheckProperty()
719 if (t->overlaydefs[0] == '%') in CheckProperty()
721 char *name = Alloc(strlen(target) + strlen(t->overlaydefs + 1) + 1); in CheckProperty()
723 strcat(name, t->overlaydefs + 1); in CheckProperty()
724 Free(&t->overlaydefs); in CheckProperty()
725 t->overlaydefs = name; in CheckProperty()
728 if (!t->overlaytable) in CheckProperty()
730 t->overlaytable = strdup(DEFAULT_OVERLAYTABLE); in CheckProperty()
732 if (t->overlaytable[0] == '%') in CheckProperty()
734 char *name = Alloc(strlen(target) + strlen(t->overlaytable + 1) + 1); in CheckProperty()
736 strcat(name, t->overlaytable + 1); in CheckProperty()
737 Free(&t->overlaytable); in CheckProperty()
738 t->overlaytable = name; in CheckProperty()
741 if (!t->suffix) in CheckProperty()
743 t->suffix = strdup(DEFAULT_SUFFIX); in CheckProperty()
761 tAfter *t = list->head; in DumpAfters() local
763 while (t) in DumpAfters()
765 printf(" After : %s\n", t->name); in DumpAfters()
766 t = t->next; in DumpAfters()
773 tObject *t = list->head; in DumpObjects() local
775 while (t) in DumpObjects()
777 printf(" Object : %s %s\n", t->objectName, t->sectionName); in DumpObjects()
778 t = t->next; in DumpObjects()
785 tOverlay *t = AutoloadList.head; in DumpAutoload() local
787 while (t) in DumpAutoload()
789 printf("Autoload : %s\n", t->name); in DumpAutoload()
790 printf(" Address : %08lx\n", t->address); in DumpAutoload()
791 DumpAfters(&t->afters); in DumpAutoload()
792 DumpObjects(&t->objects); in DumpAutoload()
794 t = t->next; in DumpAutoload()
801 tOverlay *t = OverlayList.head; in DumpOverlay() local
803 while (t) in DumpOverlay()
805 printf("Overlay : %s\n", t->name); in DumpOverlay()
806 printf(" Address : %08lx\n", t->address); in DumpOverlay()
807 DumpAfters(&t->afters); in DumpOverlay()
808 DumpObjects(&t->objects); in DumpOverlay()
810 t = t->next; in DumpOverlay()
817 tStatic *t = &Static; in DumpStatic() local
819 printf("Static : %s\n", t->name); in DumpStatic()
820 printf(" Address : %08lx\n", t->address); in DumpStatic()
821 DumpObjects(&t->objects); in DumpStatic()
822 printf(" StackSize : %08lx\n", t->stacksize); in DumpStatic()
829 tProperty *t = &Property; in DumpProperty() local
832 printf(" OverlayDefs : %s\n", t->overlaydefs); in DumpProperty()
833 printf(" OverlayTable : %s\n", t->overlaytable); in DumpProperty()
834 printf(" Suffix : %s\n", t->suffix); in DumpProperty()