/linux/arch/mips/mm/ |
H A D | c-octeon.c | 184 c->icache.ways = 1 + ((config1 >> 16) & 7); in probe_octeon() 187 c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon() 188 c->icache.waybit = ffs(icache_size / c->icache.ways) - 1; in probe_octeon() 194 c->dcache.ways = 64; in probe_octeon() 196 c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_octeon() 197 c->dcache.waybit = ffs(dcache_size / c->dcache.ways) - 1; in probe_octeon() 204 c->icache.ways = 37; in probe_octeon() 206 icache_size = c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon() 209 c->dcache.ways = 32; in probe_octeon() 211 dcache_size = c->dcache.sets * c->dcache.ways * in probe_octeon() [all...] |
H A D | c-r4k.c | 233 unsigned long ws_end = current_cpu_data.icache.ways << in tx49_blast_icache32() 1010 c->icache.ways = 2; in probe_pcache() 1015 c->dcache.ways = 2; in probe_pcache() 1024 c->icache.ways = 2; in probe_pcache() 1029 c->dcache.ways = 2; in probe_pcache() 1038 c->icache.ways = 4; in probe_pcache() 1043 c->dcache.ways = 4; in probe_pcache() 1059 c->icache.ways = 1; in probe_pcache() 1064 c->dcache.ways = 1; in probe_pcache() 1076 c->icache.ways in probe_pcache() [all...] |
H A D | sc-mips.c | 170 c->scache.ways = assoc + 1; in mips_sc_probe_cm3() 220 c->scache.ways = tmp + 1; in mips_sc_probe() 227 * According to config2 it would be 5-ways, but that is in mips_sc_probe() 232 c->scache.ways = 4; in mips_sc_probe() 236 * According to config2 it would be 5-ways and 512-sets, in mips_sc_probe() 242 c->scache.ways = 4; in mips_sc_probe()
|
H A D | sc-rm7k.c | 238 c->scache.ways = 4; in rm7k_sc_init() 239 c->scache.waybit= __ffs(scache_size / c->scache.ways); in rm7k_sc_init() 240 c->scache.waysize = scache_size / c->scache.ways; in rm7k_sc_init() 241 c->scache.sets = scache_size / (c->scache.linesz * c->scache.ways); in rm7k_sc_init() 268 c->tcache.ways = 1; in rm7k_sc_init()
|
/linux/arch/sh/kernel/cpu/sh4/ |
H A D | probe.c | 38 boot_cpu_data.icache.ways = 1; in cpu_probe() 47 boot_cpu_data.dcache.ways = 1; in cpu_probe() 67 boot_cpu_data.icache.ways = 4; in cpu_probe() 68 boot_cpu_data.dcache.ways = 4; in cpu_probe() 171 boot_cpu_data.icache.ways = 2; in cpu_probe() 172 boot_cpu_data.dcache.ways = 2; in cpu_probe() 176 boot_cpu_data.icache.ways = 2; in cpu_probe() 177 boot_cpu_data.dcache.ways = 2; in cpu_probe() 192 boot_cpu_data.icache.ways = 2; in cpu_probe() 193 boot_cpu_data.dcache.ways in cpu_probe() [all...] |
/linux/tools/perf/pmu-events/arch/arm64/arm/cortex-a73/ |
H A D | cache.json | 54 "PublicDescription": "Number of ways read in the instruction cache - Tag RAM", 57 "BriefDescription": "Number of ways read in the instruction cache - Tag RAM" 60 "PublicDescription": "Number of ways read in the instruction cache - Data RAM", 63 "BriefDescription": "Number of ways read in the instruction cache - Data RAM" 66 "PublicDescription": "Number of ways read in the instruction BTAC RAM", 69 "BriefDescription": "Number of ways read in the instruction BTAC RAM"
|
/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm2836.dtsi | 58 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set 61 i-cache-sets = <512>; // 32KiB(size)/32(line-size)=1024ways/2-way set 72 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set 75 i-cache-sets = <512>; // 32KiB(size)/32(line-size)=1024ways/2-way set 86 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set 89 i-cache-sets = <512>; // 32KiB(size)/32(line-size)=1024ways/2-way set 100 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set 103 i-cache-sets = <512>; // 32KiB(size)/32(line-size)=1024ways/2-way set 118 cache-sets = <1024>; // 512KiB(size)/64(line-size)=8192ways/8-way set
|
H A D | bcm2835.dtsi | 29 d-cache-sets = <256>; // 16KiB(size)/16(line-size)=1024ways/4-way set 32 i-cache-sets = <256>; // 16KiB(size)/16(line-size)=1024ways/4-way set
|
/linux/arch/openrisc/kernel/ |
H A D | cacheinfo.c | 24 this_leaf->ways_of_associativity = cache->ways; in ci_leaf_init() 45 cpuinfo->dcache.ways = 1 << (dccfgr & SPR_DCCFGR_NCW); in init_cache_level() 49 cpuinfo->dcache.sets * cpuinfo->dcache.ways * cpuinfo->dcache.block_size; in init_cache_level() 54 cpuinfo->dcache.sets, cpuinfo->dcache.ways); in init_cache_level() 60 cpuinfo->icache.ways = 1 << (iccfgr & SPR_ICCFGR_NCW); in init_cache_level() 64 cpuinfo->icache.sets * cpuinfo->icache.ways * cpuinfo->icache.block_size; in init_cache_level() 69 cpuinfo->icache.sets, cpuinfo->icache.ways); in init_cache_level()
|
/linux/arch/sh/mm/ |
H A D | cache-sh7705.c | 33 unsigned long ways, waysize, addrstart; in cache_wback_all() local 35 ways = current_cpu_data.dcache.ways; in cache_wback_all() 58 } while (--ways); in cache_wback_all() 82 unsigned long ways, waysize, addrstart; in __flush_dcache_page() local 103 ways = current_cpu_data.dcache.ways; in __flush_dcache_page() 125 } while (--ways); in __flush_dcache_page()
|
H A D | tlb-sh3.c | 58 int i, ways = MMU_NTLB_WAYS; in local_flush_tlb_one() local 71 ways = 1; /* we already know the way .. */ in local_flush_tlb_one() 74 for (i = 0; i < ways; i++) in local_flush_tlb_one()
|
H A D | cache-sh2a.c | 41 /* Set associative bit to hit all ways */ in sh2a_invalidate_line() 60 nr_ways = current_cpu_data.dcache.ways; in sh2a__flush_wback_region() 107 int nr_ways = current_cpu_data.dcache.ways; in sh2a__flush_purge_region()
|
/linux/tools/perf/pmu-events/arch/arm64/arm/cortex-a75/ |
H A D | cache.json | 111 "PublicDescription": "Number of ways read in the instruction cache - Tag RAM", 114 "BriefDescription": "Number of ways read in the instruction cache - Tag RAM" 117 "PublicDescription": "Number of ways read in the instruction cache - Data RAM", 120 "BriefDescription": "Number of ways read in the instruction cache - Data RAM" 123 "PublicDescription": "Number of ways read in the instruction BTAC RAM", 126 "BriefDescription": "Number of ways read in the instruction BTAC RAM"
|
/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-l2c.h | 188 * the cache 'ways' that a core can evict from. 197 * @mask: The partitioning of the ways expressed as a binary 204 * @note If any ways are blocked for all cores and the HW blocks, then 205 * those ways will never have any cache lines evicted from them. 207 * ways regardless of the partitioning. 215 * the cache 'ways' that a core can evict from. 223 * @mask: The partitioning of the ways expressed as a binary 230 * @note If any ways are blocked for all cores and the HW blocks, then 231 * those ways will never have any cache lines evicted from them. 233 * ways regardles [all...] |
/linux/arch/sh/kernel/cpu/ |
H A D | init.c | 126 unsigned long ways, waysize, addrstart; in cache_init() local 144 ways = 1; in cache_init() 147 ways = current_cpu_data.dcache.ways; in cache_init() 159 } while (--ways); in cache_init() 170 if (current_cpu_data.dcache.ways > 1) in cache_init() 200 CSHAPE((desc).way_size * (desc).ways, ilog2((desc).linesz), (desc).ways)
|
/linux/arch/arm64/boot/dts/arm/ |
H A D | morello.dtsi | 37 /* 4 ways set associative */ 50 /* 8 ways set associative */ 64 /* 4 ways set associative */ 77 /* 8 ways set associative */ 91 /* 4 ways set associative */ 104 /* 8 ways set associative */ 118 /* 4 ways set associative */ 131 /* 8 ways set associative */
|
/linux/arch/arm64/boot/dts/broadcom/ |
H A D | bcm2712.dtsi | 61 d-cache-sets = <256>; // 64KiB(size)/64(line-size)=1024ways/4-way set 64 i-cache-sets = <256>; // 64KiB(size)/64(line-size)=1024ways/4-way set 71 cache-sets = <1024>; //512KiB(size)/64(line-size)=8192ways/8-way set 85 d-cache-sets = <256>; // 64KiB(size)/64(line-size)=1024ways/4-way set 88 i-cache-sets = <256>; // 64KiB(size)/64(line-size)=1024ways/4-way set 95 cache-sets = <1024>; //512KiB(size)/64(line-size)=8192ways/8-way set 109 d-cache-sets = <256>; // 64KiB(size)/64(line-size)=1024ways/4-way set 112 i-cache-sets = <256>; // 64KiB(size)/64(line-size)=1024ways/4-way set 119 cache-sets = <1024>; //512KiB(size)/64(line-size)=8192ways/8-way set 133 d-cache-sets = <256>; // 64KiB(size)/64(line-size)=1024ways/ [all...] |
/linux/arch/arm/include/asm/ |
H A D | shmparam.h | 6 * This should be the size of the virtually indexed cache/ways, 8 * every size/ways bytes.
|
/linux/arch/powerpc/kvm/ |
H A D | e500_mmu.c | 42 if (unlikely(vcpu_e500->gtlb_nv[0] >= vcpu_e500->gtlb_params[0].ways)) in gtlb0_get_next_victim() 48 static int tlb0_set_base(gva_t addr, int sets, int ways) in tlb0_set_base() argument 53 set_base *= ways; in tlb0_set_base() 61 vcpu_e500->gtlb_params[0].ways); in gtlb0_set_base() 70 esel &= vcpu_e500->gtlb_params[0].ways - 1; in get_tlb_esel() 89 size = vcpu_e500->gtlb_params[0].ways; in kvmppc_e500_tlb_index() 358 esel &= vcpu_e500->gtlb_params[tlbsel].ways - 1; in kvmppc_e500_emul_tlbsx() 836 vcpu_e500->gtlb_params[0].ways = params.tlb_ways[0]; in kvm_vcpu_ioctl_config_tlb() 839 vcpu_e500->gtlb_params[1].ways = params.tlb_sizes[1]; in kvm_vcpu_ioctl_config_tlb() 876 vcpu->arch.tlbcfg[0] |= params[0].ways << TLBnCFG_ASSOC_SHIF in vcpu_mmu_init() [all...] |
H A D | e500_mmu_host.c | 730 host_tlb_params[0].ways = (mfspr(SPRN_TLB0CFG) & TLBnCFG_ASSOC) >> in e500_mmu_host_init() 732 host_tlb_params[1].ways = host_tlb_params[1].entries; in e500_mmu_host_init() 735 !is_power_of_2(host_tlb_params[0].ways) || in e500_mmu_host_init() 736 host_tlb_params[0].entries < host_tlb_params[0].ways || in e500_mmu_host_init() 737 host_tlb_params[0].ways == 0) { in e500_mmu_host_init() 738 pr_err("%s: bad tlb0 host config: %u entries %u ways\n", in e500_mmu_host_init() 740 host_tlb_params[0].ways); in e500_mmu_host_init() 745 host_tlb_params[0].entries / host_tlb_params[0].ways; in e500_mmu_host_init()
|
/linux/arch/arm/mm/ |
H A D | cache-l2x0.c | 42 static u32 l2x0_way_mask; /* Bitmask of active ways */ 784 unsigned way_size_bits, ways; in __l2c_init() local 811 /* Determine the number of ways */ in __l2c_init() 817 ways = 16; in __l2c_init() 819 ways = 8; in __l2c_init() 824 ways = (aux >> 13) & 0xf; in __l2c_init() 828 ways = (aux >> 13) & 0xf; in __l2c_init() 829 ways = 2 << ((ways + 1) >> 2); in __l2c_init() 833 /* Assume unknown chips have 8 ways */ in __l2c_init() [all...] |
/linux/arch/sh/include/asm/ |
H A D | cache.h | 27 unsigned int ways; /* Number of cache ways */ member
|
/linux/arch/sh/kernel/cpu/sh2/ |
H A D | probe.c | 34 boot_cpu_data.dcache.ways = 4; in cpu_probe() 56 boot_cpu_data.dcache.ways = 1; in cpu_probe()
|
/linux/arch/loongarch/mm/ |
H A D | cache.c | 54 for (j = 0; j < cdesc->ways; j++) { in flush_cache_leaf() 59 addr -= cdesc->ways; in flush_cache_leaf() 109 cdesc->ways = ((cfg1 & CPUCFG_CACHE_WAYS_M) >> CPUCFG_CACHE_WAYS) + 1; \
|
/linux/Documentation/process/ |
H A D | cve.rst | 9 in inappropriate ways and for inappropriate reasons. Because of this, 98 As the Linux kernel can be used in many different ways, with many 99 different ways of accessing it by external users, or no access at all,
|