Lines Matching full:symbol
2 * Aic7xxx SCSI host adapter firmware assembler symbol table implementation
69 perror("Unable to create new symbol"); in symbol_create()
75 stop("Unable to strdup symbol name", EX_SOFTWARE); in symbol_create()
82 symbol_delete(symbol_t *symbol) in symbol_delete() argument
87 key.data = symbol->name; in symbol_delete()
88 key.size = strlen(symbol->name); in symbol_delete()
91 switch(symbol->type) { in symbol_delete()
95 if (symbol->info.rinfo != NULL) in symbol_delete()
96 free(symbol->info.rinfo); in symbol_delete()
99 if (symbol->info.ainfo != NULL) in symbol_delete()
100 free(symbol->info.ainfo); in symbol_delete()
106 if (symbol->info.finfo != NULL) { in symbol_delete()
107 symlist_free(&symbol->info.finfo->symrefs); in symbol_delete()
108 free(symbol->info.finfo); in symbol_delete()
113 if (symbol->info.cinfo != NULL) in symbol_delete()
114 free(symbol->info.cinfo); in symbol_delete()
117 if (symbol->info.linfo != NULL) in symbol_delete()
118 free(symbol->info.linfo); in symbol_delete()
124 free(symbol->name); in symbol_delete()
125 free(symbol); in symbol_delete()
136 perror("Symbol table creation failed"); in symtable_open()
160 * The semantics of get is to return an uninitialized symbol entry
176 perror("Symbol table get operation failed"); in symtable_get()
180 /* Symbol wasn't found, so create a new one */ in symtable_get()
215 if (strcmp(symname, curnode->symbol->name) == 0) in symlist_search()
223 symlist_add(symlist_t *symlist, symbol_t *symbol, int how) in symlist_add() argument
232 newnode->symbol = symbol; in symlist_add()
238 switch(symbol->type) { in symlist_add()
250 stop("symlist_add: Invalid symbol type for sorting", in symlist_add()
258 && (curnode->symbol->type > newnode->symbol->type in symlist_add()
259 || (curnode->symbol->type == newnode->symbol->type in symlist_add()
260 && (curnode->symbol->info.finfo->value > in symlist_add()
261 newnode->symbol->info.finfo->value)))) in symlist_add()
262 || (!field && (curnode->symbol->info.rinfo->address > in symlist_add()
263 newnode->symbol->info.rinfo->address))) { in symlist_add()
276 cursymbol = SLIST_NEXT(curnode, links)->symbol; in symlist_add()
278 && (cursymbol->type > symbol->type in symlist_add()
279 || (cursymbol->type == symbol->type in symlist_add()
281 symbol->info.finfo->value)))) in symlist_add()
284 symbol->info.rinfo->address))) { in symlist_add()
379 regnode->symbol->name); in aic_print_reg_dump_start()
389 lower_name = strdup(regnode->symbol->name); in aic_print_reg_dump_end()
391 stop("Unable to strdup symbol name", EX_SOFTWARE); in aic_print_reg_dump_end()
414 num_entries != 0 ? regnode->symbol->name : "NULL", in aic_print_reg_dump_end()
417 regnode->symbol->name, in aic_print_reg_dump_end()
418 regnode->symbol->info.rinfo->address); in aic_print_reg_dump_end()
435 regnode->symbol->name, in aic_print_reg_dump_end()
436 regnode->symbol->info.rinfo->address); in aic_print_reg_dump_end()
449 curnode->symbol->name); in aic_print_reg_dump_entry()
451 num_tabs = 3 - (strlen(curnode->symbol->name) + 5) / 8; in aic_print_reg_dump_entry()
456 curnode->symbol->info.finfo->value, in aic_print_reg_dump_entry()
457 curnode->symbol->info.finfo->mask); in aic_print_reg_dump_entry()
539 if (curnode->symbol->dont_generate_debug_code) in symtable_dump()
542 switch(curnode->symbol->type) { in symtable_dump()
553 if (curnode->symbol->count == 1) in symtable_dump()
555 fields = &curnode->symbol->info.rinfo->fields; in symtable_dump()
583 regnode = SLIST_FIRST(&curnode->symbol->info.finfo->symrefs); in symtable_dump()
584 regname = regnode->symbol->name; in symtable_dump()
596 regname = curnode->symbol->info.ainfo->parent->name; in symtable_dump()
610 switch(curnode->symbol->type) { in symtable_dump()
615 value = curnode->symbol->info.rinfo->address; in symtable_dump()
623 parent = curnode->symbol->info.ainfo->parent; in symtable_dump()
633 value = curnode->symbol->info.finfo->value; in symtable_dump()
641 stop("symtable_dump: Invalid symbol type " in symtable_dump()
646 tab_str, curnode->symbol->name, tab_str2, in symtable_dump()
658 curnode->symbol->name, in symtable_dump()
659 curnode->symbol->info.cinfo->value); in symtable_dump()
671 curnode->symbol->name, in symtable_dump()
672 curnode->symbol->info.cinfo->value); in symtable_dump()
685 curnode->symbol->name, in symtable_dump()
686 curnode->symbol->info.linfo->address); in symtable_dump()