Lines Matching refs:isa

494 static void __init riscv_parse_isa_string(const char *isa, unsigned long *bitmap)  in riscv_parse_isa_string()  argument
502 isa += 4; in riscv_parse_isa_string()
504 while (*isa) { in riscv_parse_isa_string()
505 const char *ext = isa++; in riscv_parse_isa_string()
506 const char *ext_end = isa; in riscv_parse_isa_string()
521 for (; *isa && *isa != '_'; ++isa) in riscv_parse_isa_string()
534 ++isa; in riscv_parse_isa_string()
560 for (; *isa && *isa != '_'; ++isa) in riscv_parse_isa_string()
561 if (unlikely(!isalnum(*isa))) in riscv_parse_isa_string()
564 ext_end = isa; in riscv_parse_isa_string()
608 if (!isdigit(*isa)) in riscv_parse_isa_string()
611 while (isdigit(*++isa)) in riscv_parse_isa_string()
614 if (tolower(*isa) != 'p') in riscv_parse_isa_string()
617 if (!isdigit(*++isa)) { in riscv_parse_isa_string()
618 --isa; in riscv_parse_isa_string()
622 while (isdigit(*++isa)) in riscv_parse_isa_string()
634 if (*isa == '_') in riscv_parse_isa_string()
635 ++isa; in riscv_parse_isa_string()
647 const char *isa; in riscv_fill_hwcap_from_isa_string() local
676 rc = of_property_read_string(node, "riscv,isa", &isa); in riscv_fill_hwcap_from_isa_string()
683 rc = acpi_get_riscv_isa(rhct, cpu, &isa); in riscv_fill_hwcap_from_isa_string()
690 riscv_parse_isa_string(isa, source_isa); in riscv_fill_hwcap_from_isa_string()
717 riscv_resolve_isa(source_isa, isainfo->isa, &this_hwcap, isa2hwcap); in riscv_fill_hwcap_from_isa_string()
730 bitmap_copy(riscv_isa, isainfo->isa, RISCV_ISA_EXT_MAX); in riscv_fill_hwcap_from_isa_string()
732 bitmap_and(riscv_isa, riscv_isa, isainfo->isa, RISCV_ISA_EXT_MAX); in riscv_fill_hwcap_from_isa_string()
761 set_bit(ext.subset_ext_ids[k], isavendorinfo->isa); in riscv_fill_cpu_vendor_ext()
763 set_bit(ext.id, isavendorinfo->isa); in riscv_fill_cpu_vendor_ext()
781 bitmap_copy(ext_list->all_harts_isa_bitmap.isa, in riscv_fill_vendor_ext_list()
782 ext_list->per_hart_isa_bitmap[cpu].isa, in riscv_fill_vendor_ext_list()
786 bitmap_and(ext_list->all_harts_isa_bitmap.isa, in riscv_fill_vendor_ext_list()
787 ext_list->all_harts_isa_bitmap.isa, in riscv_fill_vendor_ext_list()
788 ext_list->per_hart_isa_bitmap[cpu].isa, in riscv_fill_vendor_ext_list()
825 riscv_resolve_isa(source_isa, isainfo->isa, &this_hwcap, isa2hwcap); in riscv_fill_hwcap_from_ext_list()
840 bitmap_copy(riscv_isa, isainfo->isa, RISCV_ISA_EXT_MAX); in riscv_fill_hwcap_from_ext_list()
842 bitmap_and(riscv_isa, riscv_isa, isainfo->isa, RISCV_ISA_EXT_MAX); in riscv_fill_hwcap_from_ext_list()