Lines Matching refs:intisa
74 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_insnbuf_size() local
75 return intisa->insnbuf_size; in xtensa_insnbuf_size()
130 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_insnbuf_to_chars() local
138 if (intisa->is_big_endian) in xtensa_insnbuf_to_chars()
190 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_insnbuf_from_chars() local
196 insn_size = (intisa->length_decode_fn) (cp); in xtensa_insnbuf_from_chars()
207 if (intisa->is_big_endian) in xtensa_insnbuf_from_chars()
334 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_isa_free() local
342 if (intisa->opname_lookup_table) in xtensa_isa_free()
344 free (intisa->opname_lookup_table); in xtensa_isa_free()
345 intisa->opname_lookup_table = 0; in xtensa_isa_free()
348 if (intisa->state_lookup_table) in xtensa_isa_free()
350 free (intisa->state_lookup_table); in xtensa_isa_free()
351 intisa->state_lookup_table = 0; in xtensa_isa_free()
354 if (intisa->sysreg_lookup_table) in xtensa_isa_free()
356 free (intisa->sysreg_lookup_table); in xtensa_isa_free()
357 intisa->sysreg_lookup_table = 0; in xtensa_isa_free()
361 if (intisa->sysreg_table[n]) in xtensa_isa_free()
363 free (intisa->sysreg_table[n]); in xtensa_isa_free()
364 intisa->sysreg_table[n] = 0; in xtensa_isa_free()
368 if (intisa->interface_lookup_table) in xtensa_isa_free()
370 free (intisa->interface_lookup_table); in xtensa_isa_free()
371 intisa->interface_lookup_table = 0; in xtensa_isa_free()
374 if (intisa->funcUnit_lookup_table) in xtensa_isa_free()
376 free (intisa->funcUnit_lookup_table); in xtensa_isa_free()
377 intisa->funcUnit_lookup_table = 0; in xtensa_isa_free()
395 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_isa_maxlength() local
396 return intisa->insn_size; in xtensa_isa_maxlength()
403 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_isa_length_from_chars() local
404 return (intisa->length_decode_fn) (cp); in xtensa_isa_length_from_chars()
441 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_isa_num_formats() local
442 return intisa->num_formats; in xtensa_isa_num_formats()
449 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_isa_num_opcodes() local
450 return intisa->num_opcodes; in xtensa_isa_num_opcodes()
457 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_isa_num_regfiles() local
458 return intisa->num_regfiles; in xtensa_isa_num_regfiles()
465 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_isa_num_states() local
466 return intisa->num_states; in xtensa_isa_num_states()
473 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_isa_num_sysregs() local
474 return intisa->num_sysregs; in xtensa_isa_num_sysregs()
481 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_isa_num_interfaces() local
482 return intisa->num_interfaces; in xtensa_isa_num_interfaces()
489 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_isa_num_funcUnits() local
490 return intisa->num_funcUnits; in xtensa_isa_num_funcUnits()
523 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_format_name() local
524 CHECK_FORMAT (intisa, fmt, NULL); in xtensa_format_name()
525 return intisa->formats[fmt].name; in xtensa_format_name()
532 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_format_lookup() local
542 for (fmt = 0; fmt < intisa->num_formats; fmt++) in xtensa_format_lookup()
544 if (strcasecmp (fmtname, intisa->formats[fmt].name) == 0) in xtensa_format_lookup()
557 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_format_decode() local
560 fmt = (intisa->format_decode_fn) (insn); in xtensa_format_decode()
573 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_format_encode() local
574 CHECK_FORMAT (intisa, fmt, -1); in xtensa_format_encode()
575 (*intisa->formats[fmt].encode_fn) (insn); in xtensa_format_encode()
583 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_format_length() local
584 CHECK_FORMAT (intisa, fmt, XTENSA_UNDEFINED); in xtensa_format_length()
585 return intisa->formats[fmt].length; in xtensa_format_length()
592 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_format_num_slots() local
593 CHECK_FORMAT (intisa, fmt, XTENSA_UNDEFINED); in xtensa_format_num_slots()
594 return intisa->formats[fmt].num_slots; in xtensa_format_num_slots()
601 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_format_slot_nop_opcode() local
604 CHECK_FORMAT (intisa, fmt, XTENSA_UNDEFINED); in xtensa_format_slot_nop_opcode()
605 CHECK_SLOT (intisa, fmt, slot, XTENSA_UNDEFINED); in xtensa_format_slot_nop_opcode()
607 slot_id = intisa->formats[fmt].slot_id[slot]; in xtensa_format_slot_nop_opcode()
608 return xtensa_opcode_lookup (isa, intisa->slots[slot_id].nop_name); in xtensa_format_slot_nop_opcode()
616 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_format_get_slot() local
619 CHECK_FORMAT (intisa, fmt, -1); in xtensa_format_get_slot()
620 CHECK_SLOT (intisa, fmt, slot, -1); in xtensa_format_get_slot()
622 slot_id = intisa->formats[fmt].slot_id[slot]; in xtensa_format_get_slot()
623 (*intisa->slots[slot_id].get_fn) (insn, slotbuf); in xtensa_format_get_slot()
632 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_format_set_slot() local
635 CHECK_FORMAT (intisa, fmt, -1); in xtensa_format_set_slot()
636 CHECK_SLOT (intisa, fmt, slot, -1); in xtensa_format_set_slot()
638 slot_id = intisa->formats[fmt].slot_id[slot]; in xtensa_format_set_slot()
639 (*intisa->slots[slot_id].set_fn) (insn, slotbuf); in xtensa_format_set_slot()
662 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_opcode_lookup() local
672 if (intisa->num_opcodes != 0) in xtensa_opcode_lookup()
675 result = bsearch (&entry, intisa->opname_lookup_table, in xtensa_opcode_lookup()
676 intisa->num_opcodes, sizeof (xtensa_lookup_entry), in xtensa_opcode_lookup()
695 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_opcode_decode() local
699 CHECK_FORMAT (intisa, fmt, XTENSA_UNDEFINED); in xtensa_opcode_decode()
700 CHECK_SLOT (intisa, fmt, slot, XTENSA_UNDEFINED); in xtensa_opcode_decode()
702 slot_id = intisa->formats[fmt].slot_id[slot]; in xtensa_opcode_decode()
704 opc = (intisa->slots[slot_id].opcode_decode_fn) (slotbuf); in xtensa_opcode_decode()
718 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_opcode_encode() local
722 CHECK_FORMAT (intisa, fmt, -1); in xtensa_opcode_encode()
723 CHECK_SLOT (intisa, fmt, slot, -1); in xtensa_opcode_encode()
724 CHECK_OPCODE (intisa, opc, -1); in xtensa_opcode_encode()
726 slot_id = intisa->formats[fmt].slot_id[slot]; in xtensa_opcode_encode()
727 encode_fn = intisa->opcodes[opc].encode_fns[slot_id]; in xtensa_opcode_encode()
733 intisa->opcodes[opc].name, slot, intisa->formats[fmt].name); in xtensa_opcode_encode()
744 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_opcode_name() local
745 CHECK_OPCODE (intisa, opc, NULL); in xtensa_opcode_name()
746 return intisa->opcodes[opc].name; in xtensa_opcode_name()
753 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_opcode_is_branch() local
754 CHECK_OPCODE (intisa, opc, XTENSA_UNDEFINED); in xtensa_opcode_is_branch()
755 if ((intisa->opcodes[opc].flags & XTENSA_OPCODE_IS_BRANCH) != 0) in xtensa_opcode_is_branch()
764 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_opcode_is_jump() local
765 CHECK_OPCODE (intisa, opc, XTENSA_UNDEFINED); in xtensa_opcode_is_jump()
766 if ((intisa->opcodes[opc].flags & XTENSA_OPCODE_IS_JUMP) != 0) in xtensa_opcode_is_jump()
775 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_opcode_is_loop() local
776 CHECK_OPCODE (intisa, opc, XTENSA_UNDEFINED); in xtensa_opcode_is_loop()
777 if ((intisa->opcodes[opc].flags & XTENSA_OPCODE_IS_LOOP) != 0) in xtensa_opcode_is_loop()
786 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_opcode_is_call() local
787 CHECK_OPCODE (intisa, opc, XTENSA_UNDEFINED); in xtensa_opcode_is_call()
788 if ((intisa->opcodes[opc].flags & XTENSA_OPCODE_IS_CALL) != 0) in xtensa_opcode_is_call()
797 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_opcode_num_operands() local
800 CHECK_OPCODE (intisa, opc, XTENSA_UNDEFINED); in xtensa_opcode_num_operands()
801 iclass_id = intisa->opcodes[opc].iclass_id; in xtensa_opcode_num_operands()
802 return intisa->iclasses[iclass_id].num_operands; in xtensa_opcode_num_operands()
809 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_opcode_num_stateOperands() local
812 CHECK_OPCODE (intisa, opc, XTENSA_UNDEFINED); in xtensa_opcode_num_stateOperands()
813 iclass_id = intisa->opcodes[opc].iclass_id; in xtensa_opcode_num_stateOperands()
814 return intisa->iclasses[iclass_id].num_stateOperands; in xtensa_opcode_num_stateOperands()
821 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_opcode_num_interfaceOperands() local
824 CHECK_OPCODE (intisa, opc, XTENSA_UNDEFINED); in xtensa_opcode_num_interfaceOperands()
825 iclass_id = intisa->opcodes[opc].iclass_id; in xtensa_opcode_num_interfaceOperands()
826 return intisa->iclasses[iclass_id].num_interfaceOperands; in xtensa_opcode_num_interfaceOperands()
833 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_opcode_num_funcUnit_uses() local
834 CHECK_OPCODE (intisa, opc, XTENSA_UNDEFINED); in xtensa_opcode_num_funcUnit_uses()
835 return intisa->opcodes[opc].num_funcUnit_uses; in xtensa_opcode_num_funcUnit_uses()
842 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_opcode_funcUnit_use() local
843 CHECK_OPCODE (intisa, opc, NULL); in xtensa_opcode_funcUnit_use()
844 if (u < 0 || u >= intisa->opcodes[opc].num_funcUnit_uses) in xtensa_opcode_funcUnit_use()
848 "opcode \"%s\" has %d", u, intisa->opcodes[opc].name, in xtensa_opcode_funcUnit_use()
849 intisa->opcodes[opc].num_funcUnit_uses); in xtensa_opcode_funcUnit_use()
852 return &intisa->opcodes[opc].funcUnit_uses[u]; in xtensa_opcode_funcUnit_use()
874 get_operand (xtensa_isa_internal *intisa, xtensa_opcode opc, int opnd) in get_operand() argument
879 CHECK_OPCODE (intisa, opc, NULL); in get_operand()
880 iclass_id = intisa->opcodes[opc].iclass_id; in get_operand()
881 iclass = &intisa->iclasses[iclass_id]; in get_operand()
882 CHECK_OPERAND (intisa, opc, iclass, opnd, NULL); in get_operand()
884 return &intisa->operands[operand_id]; in get_operand()
891 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_operand_name() local
894 intop = get_operand (intisa, opc, opnd); in xtensa_operand_name()
903 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_operand_is_visible() local
908 CHECK_OPCODE (intisa, opc, XTENSA_UNDEFINED); in xtensa_operand_is_visible()
909 iclass_id = intisa->opcodes[opc].iclass_id; in xtensa_operand_is_visible()
910 iclass = &intisa->iclasses[iclass_id]; in xtensa_operand_is_visible()
911 CHECK_OPERAND (intisa, opc, iclass, opnd, XTENSA_UNDEFINED); in xtensa_operand_is_visible()
918 intop = &intisa->operands[operand_id]; in xtensa_operand_is_visible()
929 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_operand_inout() local
934 CHECK_OPCODE (intisa, opc, 0); in xtensa_operand_inout()
935 iclass_id = intisa->opcodes[opc].iclass_id; in xtensa_operand_inout()
936 iclass = &intisa->iclasses[iclass_id]; in xtensa_operand_inout()
937 CHECK_OPERAND (intisa, opc, iclass, opnd, 0); in xtensa_operand_inout()
953 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_operand_get_field() local
958 intop = get_operand (intisa, opc, opnd); in xtensa_operand_get_field()
961 CHECK_FORMAT (intisa, fmt, -1); in xtensa_operand_get_field()
962 CHECK_SLOT (intisa, fmt, slot, -1); in xtensa_operand_get_field()
964 slot_id = intisa->formats[fmt].slot_id[slot]; in xtensa_operand_get_field()
971 get_fn = intisa->slots[slot_id].get_field_fns[intop->field_id]; in xtensa_operand_get_field()
977 intop->name, slot, intisa->formats[fmt].name); in xtensa_operand_get_field()
990 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_operand_set_field() local
995 intop = get_operand (intisa, opc, opnd); in xtensa_operand_set_field()
998 CHECK_FORMAT (intisa, fmt, -1); in xtensa_operand_set_field()
999 CHECK_SLOT (intisa, fmt, slot, -1); in xtensa_operand_set_field()
1001 slot_id = intisa->formats[fmt].slot_id[slot]; in xtensa_operand_set_field()
1008 set_fn = intisa->slots[slot_id].set_field_fns[intop->field_id]; in xtensa_operand_set_field()
1014 intop->name, slot, intisa->formats[fmt].name); in xtensa_operand_set_field()
1026 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_operand_encode() local
1030 intop = get_operand (intisa, opc, opnd); in xtensa_operand_encode()
1058 for (slot_id = 0; slot_id < intisa->num_slots; slot_id++) in xtensa_operand_encode()
1061 intisa->slots[slot_id].get_field_fns[intop->field_id]; in xtensa_operand_encode()
1063 intisa->slots[slot_id].set_field_fns[intop->field_id]; in xtensa_operand_encode()
1100 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_operand_decode() local
1103 intop = get_operand (intisa, opc, opnd); in xtensa_operand_decode()
1123 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_operand_is_register() local
1126 intop = get_operand (intisa, opc, opnd); in xtensa_operand_is_register()
1138 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_operand_regfile() local
1141 intop = get_operand (intisa, opc, opnd); in xtensa_operand_regfile()
1151 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_operand_num_regs() local
1154 intop = get_operand (intisa, opc, opnd); in xtensa_operand_num_regs()
1164 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_operand_is_known_reg() local
1167 intop = get_operand (intisa, opc, opnd); in xtensa_operand_is_known_reg()
1179 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_operand_is_PCrelative() local
1182 intop = get_operand (intisa, opc, opnd); in xtensa_operand_is_PCrelative()
1195 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_operand_do_reloc() local
1198 intop = get_operand (intisa, opc, opnd); in xtensa_operand_do_reloc()
1227 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_operand_undo_reloc() local
1230 intop = get_operand (intisa, opc, opnd); in xtensa_operand_undo_reloc()
1275 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_stateOperand_state() local
1279 CHECK_OPCODE (intisa, opc, XTENSA_UNDEFINED); in xtensa_stateOperand_state()
1280 iclass_id = intisa->opcodes[opc].iclass_id; in xtensa_stateOperand_state()
1281 iclass = &intisa->iclasses[iclass_id]; in xtensa_stateOperand_state()
1282 CHECK_STATE_OPERAND (intisa, opc, iclass, stOp, XTENSA_UNDEFINED); in xtensa_stateOperand_state()
1290 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_stateOperand_inout() local
1294 CHECK_OPCODE (intisa, opc, 0); in xtensa_stateOperand_inout()
1295 iclass_id = intisa->opcodes[opc].iclass_id; in xtensa_stateOperand_inout()
1296 iclass = &intisa->iclasses[iclass_id]; in xtensa_stateOperand_inout()
1297 CHECK_STATE_OPERAND (intisa, opc, iclass, stOp, 0); in xtensa_stateOperand_inout()
1324 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_interfaceOperand_interface() local
1328 CHECK_OPCODE (intisa, opc, XTENSA_UNDEFINED); in xtensa_interfaceOperand_interface()
1329 iclass_id = intisa->opcodes[opc].iclass_id; in xtensa_interfaceOperand_interface()
1330 iclass = &intisa->iclasses[iclass_id]; in xtensa_interfaceOperand_interface()
1331 CHECK_INTERFACE_OPERAND (intisa, opc, iclass, ifOp, XTENSA_UNDEFINED); in xtensa_interfaceOperand_interface()
1354 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_regfile_lookup() local
1365 for (n = 0; n < intisa->num_regfiles; n++) in xtensa_regfile_lookup()
1367 if (!filename_cmp (intisa->regfiles[n].name, name)) in xtensa_regfile_lookup()
1380 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_regfile_lookup_shortname() local
1391 for (n = 0; n < intisa->num_regfiles; n++) in xtensa_regfile_lookup_shortname()
1395 if (intisa->regfiles[n].parent != n) in xtensa_regfile_lookup_shortname()
1397 if (!filename_cmp (intisa->regfiles[n].shortname, shortname)) in xtensa_regfile_lookup_shortname()
1411 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_regfile_name() local
1412 CHECK_REGFILE (intisa, rf, NULL); in xtensa_regfile_name()
1413 return intisa->regfiles[rf].name; in xtensa_regfile_name()
1420 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_regfile_shortname() local
1421 CHECK_REGFILE (intisa, rf, NULL); in xtensa_regfile_shortname()
1422 return intisa->regfiles[rf].shortname; in xtensa_regfile_shortname()
1429 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_regfile_view_parent() local
1430 CHECK_REGFILE (intisa, rf, XTENSA_UNDEFINED); in xtensa_regfile_view_parent()
1431 return intisa->regfiles[rf].parent; in xtensa_regfile_view_parent()
1438 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_regfile_num_bits() local
1439 CHECK_REGFILE (intisa, rf, XTENSA_UNDEFINED); in xtensa_regfile_num_bits()
1440 return intisa->regfiles[rf].num_bits; in xtensa_regfile_num_bits()
1447 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_regfile_num_entries() local
1448 CHECK_REGFILE (intisa, rf, XTENSA_UNDEFINED); in xtensa_regfile_num_entries()
1449 return intisa->regfiles[rf].num_entries; in xtensa_regfile_num_entries()
1471 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_state_lookup() local
1481 if (intisa->num_states != 0) in xtensa_state_lookup()
1484 result = bsearch (&entry, intisa->state_lookup_table, intisa->num_states, in xtensa_state_lookup()
1502 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_state_name() local
1503 CHECK_STATE (intisa, st, NULL); in xtensa_state_name()
1504 return intisa->states[st].name; in xtensa_state_name()
1511 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_state_num_bits() local
1512 CHECK_STATE (intisa, st, XTENSA_UNDEFINED); in xtensa_state_num_bits()
1513 return intisa->states[st].num_bits; in xtensa_state_num_bits()
1520 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_state_is_exported() local
1521 CHECK_STATE (intisa, st, XTENSA_UNDEFINED); in xtensa_state_is_exported()
1522 if ((intisa->states[st].flags & XTENSA_STATE_IS_EXPORTED) != 0) in xtensa_state_is_exported()
1531 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_state_is_shared_or() local
1532 CHECK_STATE (intisa, st, XTENSA_UNDEFINED); in xtensa_state_is_shared_or()
1533 if ((intisa->states[st].flags & XTENSA_STATE_IS_SHARED_OR) != 0) in xtensa_state_is_shared_or()
1557 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_sysreg_lookup() local
1562 if (num < 0 || num > intisa->max_sysreg_num[is_user] in xtensa_sysreg_lookup()
1563 || intisa->sysreg_table[is_user][num] == XTENSA_UNDEFINED) in xtensa_sysreg_lookup()
1570 return intisa->sysreg_table[is_user][num]; in xtensa_sysreg_lookup()
1577 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_sysreg_lookup_name() local
1587 if (intisa->num_sysregs != 0) in xtensa_sysreg_lookup_name()
1590 result = bsearch (&entry, intisa->sysreg_lookup_table, in xtensa_sysreg_lookup_name()
1591 intisa->num_sysregs, sizeof (xtensa_lookup_entry), in xtensa_sysreg_lookup_name()
1609 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_sysreg_name() local
1610 CHECK_SYSREG (intisa, sysreg, NULL); in xtensa_sysreg_name()
1611 return intisa->sysregs[sysreg].name; in xtensa_sysreg_name()
1618 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_sysreg_number() local
1619 CHECK_SYSREG (intisa, sysreg, XTENSA_UNDEFINED); in xtensa_sysreg_number()
1620 return intisa->sysregs[sysreg].number; in xtensa_sysreg_number()
1627 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_sysreg_is_user() local
1628 CHECK_SYSREG (intisa, sysreg, XTENSA_UNDEFINED); in xtensa_sysreg_is_user()
1629 if (intisa->sysregs[sysreg].is_user) in xtensa_sysreg_is_user()
1653 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_interface_lookup() local
1663 if (intisa->num_interfaces != 0) in xtensa_interface_lookup()
1666 result = bsearch (&entry, intisa->interface_lookup_table, in xtensa_interface_lookup()
1667 intisa->num_interfaces, sizeof (xtensa_lookup_entry), in xtensa_interface_lookup()
1685 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_interface_name() local
1686 CHECK_INTERFACE (intisa, intf, NULL); in xtensa_interface_name()
1687 return intisa->interfaces[intf].name; in xtensa_interface_name()
1694 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_interface_num_bits() local
1695 CHECK_INTERFACE (intisa, intf, XTENSA_UNDEFINED); in xtensa_interface_num_bits()
1696 return intisa->interfaces[intf].num_bits; in xtensa_interface_num_bits()
1703 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_interface_inout() local
1704 CHECK_INTERFACE (intisa, intf, 0); in xtensa_interface_inout()
1705 return intisa->interfaces[intf].inout; in xtensa_interface_inout()
1712 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_interface_has_side_effect() local
1713 CHECK_INTERFACE (intisa, intf, XTENSA_UNDEFINED); in xtensa_interface_has_side_effect()
1714 if ((intisa->interfaces[intf].flags & XTENSA_INTERFACE_HAS_SIDE_EFFECT) != 0) in xtensa_interface_has_side_effect()
1723 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_interface_class_id() local
1724 CHECK_INTERFACE (intisa, intf, XTENSA_UNDEFINED); in xtensa_interface_class_id()
1725 return intisa->interfaces[intf].class_id; in xtensa_interface_class_id()
1747 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_funcUnit_lookup() local
1757 if (intisa->num_funcUnits != 0) in xtensa_funcUnit_lookup()
1760 result = bsearch (&entry, intisa->funcUnit_lookup_table, in xtensa_funcUnit_lookup()
1761 intisa->num_funcUnits, sizeof (xtensa_lookup_entry), in xtensa_funcUnit_lookup()
1780 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_funcUnit_name() local
1781 CHECK_FUNCUNIT (intisa, fun, NULL); in xtensa_funcUnit_name()
1782 return intisa->funcUnits[fun].name; in xtensa_funcUnit_name()
1789 xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; in xtensa_funcUnit_num_copies() local
1790 CHECK_FUNCUNIT (intisa, fun, XTENSA_UNDEFINED); in xtensa_funcUnit_num_copies()
1791 return intisa->funcUnits[fun].num_copies; in xtensa_funcUnit_num_copies()