/kernel/linux/linux-5.10/arch/arm64/kvm/ |
H A D | pmu.c | 139 u64 typer; in kvm_vcpu_pmu_enable_el0() local 143 typer = kvm_vcpu_pmu_read_evtype_direct(counter); in kvm_vcpu_pmu_enable_el0() 144 typer &= ~ARMV8_PMU_EXCLUDE_EL0; in kvm_vcpu_pmu_enable_el0() 145 kvm_vcpu_pmu_write_evtype_direct(counter, typer); in kvm_vcpu_pmu_enable_el0() 154 u64 typer; in kvm_vcpu_pmu_disable_el0() local 158 typer = kvm_vcpu_pmu_read_evtype_direct(counter); in kvm_vcpu_pmu_disable_el0() 159 typer |= ARMV8_PMU_EXCLUDE_EL0; in kvm_vcpu_pmu_disable_el0() 160 kvm_vcpu_pmu_write_evtype_direct(counter, typer); in kvm_vcpu_pmu_disable_el0()
|
/kernel/linux/linux-6.6/arch/arm64/kvm/ |
H A D | pmu.c | 145 u64 typer; in kvm_vcpu_pmu_enable_el0() local 149 typer = kvm_vcpu_pmu_read_evtype_direct(counter); in kvm_vcpu_pmu_enable_el0() 150 typer &= ~ARMV8_PMU_EXCLUDE_EL0; in kvm_vcpu_pmu_enable_el0() 151 kvm_vcpu_pmu_write_evtype_direct(counter, typer); in kvm_vcpu_pmu_enable_el0() 160 u64 typer; in kvm_vcpu_pmu_disable_el0() local 164 typer = kvm_vcpu_pmu_read_evtype_direct(counter); in kvm_vcpu_pmu_disable_el0() 165 typer |= ARMV8_PMU_EXCLUDE_EL0; in kvm_vcpu_pmu_disable_el0() 166 kvm_vcpu_pmu_write_evtype_direct(counter, typer); in kvm_vcpu_pmu_disable_el0()
|
/kernel/linux/linux-5.10/include/linux/irqchip/ |
H A D | arm-gic-v3.h | 87 #define GICD_TYPER_ID_BITS(typer) ((((typer) >> 19) & 0x1f) + 1) 88 #define GICD_TYPER_NUM_LPIS(typer) ((((typer) >> 11) & 0x1f) + 1) 89 #define GICD_TYPER_SPIS(typer) ((((typer) & 0x1f) + 1) * 32) 90 #define GICD_TYPER_ESPIS(typer) \ 91 (((typer) & GICD_TYPER_ESPI) ? GICD_TYPER_SPIS((typer) >> 27) : 0)
|
/kernel/linux/linux-6.6/include/linux/irqchip/ |
H A D | arm-gic-v3.h | 87 #define GICD_TYPER_ID_BITS(typer) ((((typer) >> 19) & 0x1f) + 1) 88 #define GICD_TYPER_NUM_LPIS(typer) ((((typer) >> 11) & 0x1f) + 1) 89 #define GICD_TYPER_SPIS(typer) ((((typer) & 0x1f) + 1) * 32) 90 #define GICD_TYPER_ESPIS(typer) \ 91 (((typer) & GICD_TYPER_ESPI) ? GICD_TYPER_SPIS((typer) >> 27) : 0)
|
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/include/aarch64/ |
H A D | gic_v3.h | 36 #define GICD_TYPER_SPIS(typer) ((((typer) & 0x1f) + 1) * 32)
|
/kernel/linux/linux-5.10/drivers/irqchip/ |
H A D | irq-gic-v3.c | 837 u64 typer; in gic_iterate_rdists() local 848 typer = gic_read_typer(ptr + GICR_TYPER); in gic_iterate_rdists() 860 if (typer & GICR_TYPER_VLPIS) in gic_iterate_rdists() 863 } while (!(typer & GICR_TYPER_LAST)); in gic_iterate_rdists() 872 u64 typer; in __gic_populate_rdist() local 884 typer = gic_read_typer(ptr + GICR_TYPER); in __gic_populate_rdist() 885 if ((typer >> 32) == aff) { in __gic_populate_rdist() 917 u64 typer = gic_read_typer(ptr + GICR_TYPER); in __gic_update_rdist_properties() local 920 if ((typer & GICR_TYPER_VLPIS) && (typer in __gic_update_rdist_properties() 1743 u32 typer; gic_init_bases() local [all...] |
H A D | irq-gic-v2m.c | 348 u32 typer; in gicv2m_init_one() local 355 typer = readl_relaxed(v2m->base + V2M_MSI_TYPER); in gicv2m_init_one() 357 v2m->spi_start = V2M_MSI_TYPER_BASE_SPI(typer); in gicv2m_init_one() 358 v2m->nr_spis = V2M_MSI_TYPER_NUM_SPI(typer); in gicv2m_init_one()
|
H A D | irq-gic-v3-its.c | 107 u64 typer; member 120 #define is_v4(its) (!!((its)->typer & GITS_TYPER_VLPIS)) 121 #define is_v4_1(its) (!!((its)->typer & GITS_TYPER_VMAPP)) 122 #define device_ids(its) (FIELD_GET(GITS_TYPER_DEVBITS, (its)->typer) + 1) 2490 svpet = FIELD_GET(GITS_TYPER_SVPET, its->typer); in compute_its_aff() 2501 if (!FIELD_GET(GITS_TYPER_SVPET, cur_its->typer)) in find_sibling_its() 2512 if (!FIELD_GET(GITS_TYPER_SVPET, its->typer)) in find_sibling_its() 2669 if (!FIELD_GET(GITS_TYPER_SVPET, its->typer)) in inherit_vpe_l1_table_from_its() 3393 sz = nr_ites * (FIELD_GET(GITS_TYPER_ITT_ENTRY_SIZE, its->typer) + 1); in its_create_device() 4613 its->typer in its_enable_quirk_cavium_22375() 4961 u64 baser, tmp, typer; its_probe_one() local [all...] |
/kernel/linux/linux-6.6/drivers/irqchip/ |
H A D | irq-gic-v3.c | 974 u64 typer; in gic_iterate_rdists() local 985 typer = gic_read_typer(ptr + GICR_TYPER); in gic_iterate_rdists() 997 if (typer & GICR_TYPER_VLPIS) in gic_iterate_rdists() 1000 } while (!(typer & GICR_TYPER_LAST)); in gic_iterate_rdists() 1009 u64 typer; in __gic_populate_rdist() local 1023 typer = gic_read_typer(ptr + GICR_TYPER); in __gic_populate_rdist() 1024 if ((typer >> 32) == aff) { in __gic_populate_rdist() 1056 u64 typer = gic_read_typer(ptr + GICR_TYPER); in __gic_update_rdist_properties() local 1060 if ((typer & GICR_TYPER_VLPIS) && (typer in __gic_update_rdist_properties() 2010 u32 typer; gic_init_bases() local [all...] |
H A D | irq-gic-v2m.c | 345 u32 typer; in gicv2m_init_one() local 352 typer = readl_relaxed(v2m->base + V2M_MSI_TYPER); in gicv2m_init_one() 354 v2m->spi_start = V2M_MSI_TYPER_BASE_SPI(typer); in gicv2m_init_one() 355 v2m->nr_spis = V2M_MSI_TYPER_NUM_SPI(typer); in gicv2m_init_one()
|
H A D | irq-gic-v3-its.c | 109 u64 typer; member 122 #define is_v4(its) (!!((its)->typer & GITS_TYPER_VLPIS)) 123 #define is_v4_1(its) (!!((its)->typer & GITS_TYPER_VMAPP)) 124 #define device_ids(its) (FIELD_GET(GITS_TYPER_DEVBITS, (its)->typer) + 1) 2506 svpet = FIELD_GET(GITS_TYPER_SVPET, its->typer); in compute_its_aff() 2517 if (!FIELD_GET(GITS_TYPER_SVPET, cur_its->typer)) in find_sibling_its() 2528 if (!FIELD_GET(GITS_TYPER_SVPET, its->typer)) in find_sibling_its() 2690 if (!FIELD_GET(GITS_TYPER_SVPET, its->typer)) in inherit_vpe_l1_table_from_its() 3433 sz = nr_ites * (FIELD_GET(GITS_TYPER_ITT_ENTRY_SIZE, its->typer) + 1); in its_create_device() 4680 its->typer in its_enable_quirk_cavium_22375() [all...] |