/linux/arch/mips/mm/ |
A D | c-octeon.c | 180 c->icache.ways = 1 + ((config1 >> 16) & 7); in probe_octeon() 183 c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon() 190 c->dcache.ways = 64; in probe_octeon() 200 c->icache.ways = 37; in probe_octeon() 205 c->dcache.ways = 32; in probe_octeon() 214 c->icache.ways = 39; in probe_octeon() 219 c->dcache.ways = 32; in probe_octeon() 231 c->icache.waysize = icache_size / c->icache.ways; in probe_octeon() 232 c->dcache.waysize = dcache_size / c->dcache.ways; in probe_octeon() 243 c->icache.ways, c->icache.sets, c->icache.linesz); in probe_octeon() [all …]
|
A D | c-r4k.c | 1121 c->icache.ways = 2; in probe_pcache() 1126 c->dcache.ways = 2; in probe_pcache() 1135 c->icache.ways = 2; in probe_pcache() 1140 c->dcache.ways = 2; in probe_pcache() 1149 c->icache.ways = 4; in probe_pcache() 1154 c->dcache.ways = 4; in probe_pcache() 1170 c->icache.ways = 1; in probe_pcache() 1175 c->dcache.ways = 1; in probe_pcache() 1187 c->icache.ways = 2; in probe_pcache() 1590 c->scache.ways = 1; in probe_scache() [all …]
|
A D | c-tx39.c | 302 current_cpu_data.icache.ways = 1; in tx39_probe_cache() 303 current_cpu_data.dcache.ways = 1; in tx39_probe_cache() 308 current_cpu_data.icache.ways = 2; in tx39_probe_cache() 309 current_cpu_data.dcache.ways = 2; in tx39_probe_cache() 315 current_cpu_data.icache.ways = 1; in tx39_probe_cache() 316 current_cpu_data.dcache.ways = 1; in tx39_probe_cache() 383 (dcache_size / current_cpu_data.dcache.ways) - 1, in tx39_cache_init() 392 current_cpu_data.icache.waysize = icache_size / current_cpu_data.icache.ways; in tx39_cache_init() 393 current_cpu_data.dcache.waysize = dcache_size / current_cpu_data.dcache.ways; in tx39_cache_init()
|
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()
|
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() 232 c->scache.ways = 4; in mips_sc_probe() 242 c->scache.ways = 4; in mips_sc_probe()
|
/linux/arch/sh/kernel/cpu/sh4/ |
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 = 2; in cpu_probe() [all …]
|
/linux/arch/sh/mm/ |
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()
|
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()
|
A D | cache-sh4.c | 78 for (i = 0; i < cpu_data->icache.ways; i++) { in sh4_flush_icache_range() 156 current_cpu_data.dcache.ways; in flush_dcache_all() 324 way_count = dcache->ways; in __flush_cache_one()
|
A D | cache-sh2a.c | 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()
|
A D | cache.c | 260 boot_cpu_data.icache.ways, in emit_cache_params() 268 boot_cpu_data.dcache.ways, in emit_cache_params() 281 boot_cpu_data.scache.ways, in emit_cache_params()
|
/linux/arch/sh/kernel/cpu/ |
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)
|
A D | proc.c | 70 cache_size = info.ways * info.sets * info.linesz; in show_cacheinfo() 73 type, cache_size >> 10, info.ways); in show_cacheinfo()
|
/linux/arch/nds32/kernel/ |
A D | setup.c | 104 L1_cache_info[ICACHE].ways = CACHE_WAY(ICACHE); in dump_cpu_info() 108 L1_cache_info[ICACHE].ways * L1_cache_info[ICACHE].line_size * in dump_cpu_info() 111 L1_cache_info[ICACHE].sets, L1_cache_info[ICACHE].ways, in dump_cpu_info() 113 L1_cache_info[DCACHE].ways = CACHE_WAY(DCACHE); in dump_cpu_info() 117 L1_cache_info[DCACHE].ways * L1_cache_info[DCACHE].line_size * in dump_cpu_info() 120 L1_cache_info[DCACHE].sets, L1_cache_info[DCACHE].ways, in dump_cpu_info() 132 L1_cache_info[ICACHE].ways; in dump_cpu_info() 138 L1_cache_info[DCACHE].ways; in dump_cpu_info()
|
/linux/arch/powerpc/sysdev/ |
A D | fsl_85xx_l2ctlr.c | 63 unsigned char ways; in mpc85xx_l2ctlr_of_probe() local 84 ways = LOCK_WAYS_FULL * sram_params.sram_size / l2cache_size; in mpc85xx_l2ctlr_of_probe() 85 if (rem || (ways & (ways - 1))) { in mpc85xx_l2ctlr_of_probe() 112 switch (ways) { in mpc85xx_l2ctlr_of_probe()
|
/linux/arch/arc/mm/ |
A D | tlb.c | 137 int num_tlb = mmu->sets * mmu->ways; in local_flush_tlb_all() 569 unsigned int ver:8, ways:4, sets:4, res:3, sasid:1, pg_sz:4, in read_decode_mmu_bcr() member 573 ways:4, ver:8; in read_decode_mmu_bcr() 595 mmu->ways = 1 << mmu3->ways; in read_decode_mmu_bcr() 604 mmu->ways = mmu4->n_ways * 2; in read_decode_mmu_bcr() 626 p_mmu->sets * p_mmu->ways, p_mmu->sets, p_mmu->ways, in arc_mmu_mumbojumbo() 707 #define SET_WAY_TO_IDX(mmu, set, way) ((set) * mmu->ways + (way)) 724 int set, n_ways = mmu->ways; in do_tlb_overlap_fault() 727 BUG_ON(mmu->ways > 4); in do_tlb_overlap_fault()
|
/linux/arch/powerpc/kvm/ |
A D | e500_mmu.c | 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_SHIFT; in vcpu_mmu_init() 908 vcpu_e500->gtlb_params[0].ways = KVM_E500_TLB0_WAY_NUM; in kvmppc_e500_tlb_init() [all …]
|
A D | e500_mmu_host.c | 774 host_tlb_params[0].ways = (mfspr(SPRN_TLB0CFG) & TLBnCFG_ASSOC) >> in e500_mmu_host_init() 776 host_tlb_params[1].ways = host_tlb_params[1].entries; in e500_mmu_host_init() 779 !is_power_of_2(host_tlb_params[0].ways) || in e500_mmu_host_init() 780 host_tlb_params[0].entries < host_tlb_params[0].ways || in e500_mmu_host_init() 781 host_tlb_params[0].ways == 0) { in e500_mmu_host_init() 784 host_tlb_params[0].ways); in e500_mmu_host_init() 789 host_tlb_params[0].entries / host_tlb_params[0].ways; in e500_mmu_host_init()
|
/linux/arch/sh/kernel/cpu/sh2/ |
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/Documentation/devicetree/bindings/nios2/ |
A D | nios2.txt | 23 - altr,tlb-num-ways: Specifies the number of set-associativity ways in the TLB. 52 altr,tlb-num-ways = <16>;
|
/linux/arch/mips/kernel/ |
A D | cacheinfo.c | 14 leaf->ways_of_associativity = c->cache.ways; \ 16 c->cache.ways; \
|
/linux/arch/arm/mm/ |
A D | cache-l2x0.c | 784 unsigned way_size_bits, ways; in __l2c_init() local 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() 834 ways = 8; in __l2c_init() 838 l2x0_way_mask = (1 << ways) - 1; in __l2c_init() 850 l2x0_size = ways * (data->way_size_0 << way_size_bits); in __l2c_init() 885 data->type, ways, l2x0_size >> 10); in __l2c_init()
|
/linux/arch/mips/include/asm/ |
A D | r4kcache.h | 203 unsigned long ws_end = current_cpu_data.desc.ways << \ 230 unsigned long ws_end = current_cpu_data.desc.ways << \ 319 unsigned long ws_end = current_cpu_data.desc.ways << \
|
/linux/arch/nds32/include/asm/ |
A D | cache_info.h | 5 unsigned char ways; member
|
/linux/arch/sh/include/asm/ |
A D | cache.h | 21 unsigned int ways; /* Number of cache ways */ member
|