Home
last modified time | relevance | path

Searched refs:ways (Results 1 – 25 of 39) sorted by relevance

12

/arch/mips/mm/
Dc-octeon.c199 c->icache.ways = 1 + ((config1 >> 16) & 7); in probe_octeon()
202 c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon()
203 c->icache.waybit = ffs(icache_size / c->icache.ways) - 1; in probe_octeon()
209 c->dcache.ways = 64; in probe_octeon()
211 c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_octeon()
212 c->dcache.waybit = ffs(dcache_size / c->dcache.ways) - 1; in probe_octeon()
219 c->icache.ways = 37; in probe_octeon()
221 icache_size = c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon()
224 c->dcache.ways = 32; in probe_octeon()
226 dcache_size = c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_octeon()
[all …]
Dc-r4k.c266 unsigned long ws_end = current_cpu_data.icache.ways << in tx49_blast_icache32()
297 unsigned long ws_end = current_cpu_data.icache.ways << in tx49_blast_icache32_page_indexed()
1203 c->icache.ways = 2; in probe_pcache()
1208 c->dcache.ways = 2; in probe_pcache()
1218 c->icache.ways = 2; in probe_pcache()
1223 c->dcache.ways = 2; in probe_pcache()
1232 c->icache.ways = 4; in probe_pcache()
1237 c->dcache.ways = 4; in probe_pcache()
1253 c->icache.ways = 1; in probe_pcache()
1258 c->dcache.ways = 1; in probe_pcache()
[all …]
Dc-tx39.c326 current_cpu_data.icache.ways = 1; in tx39_probe_cache()
327 current_cpu_data.dcache.ways = 1; in tx39_probe_cache()
332 current_cpu_data.icache.ways = 2; in tx39_probe_cache()
333 current_cpu_data.dcache.ways = 2; in tx39_probe_cache()
339 current_cpu_data.icache.ways = 1; in tx39_probe_cache()
340 current_cpu_data.dcache.ways = 1; in tx39_probe_cache()
409 (dcache_size / current_cpu_data.dcache.ways) - 1, in tx39_cache_init()
418 current_cpu_data.icache.waysize = icache_size / current_cpu_data.icache.ways; in tx39_cache_init()
419 current_cpu_data.dcache.waysize = dcache_size / current_cpu_data.dcache.ways; in tx39_cache_init()
Dsc-rm7k.c238 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()
Dsc-mips.c170 c->scache.ways = assoc + 1; in mips_sc_probe_cm3()
219 c->scache.ways = tmp + 1; in mips_sc_probe()
/arch/sh/kernel/cpu/sh4/
Dprobe.c41 boot_cpu_data.icache.ways = 1; in cpu_probe()
50 boot_cpu_data.dcache.ways = 1; in cpu_probe()
70 boot_cpu_data.icache.ways = 4; in cpu_probe()
71 boot_cpu_data.dcache.ways = 4; in cpu_probe()
174 boot_cpu_data.icache.ways = 2; in cpu_probe()
175 boot_cpu_data.dcache.ways = 2; in cpu_probe()
179 boot_cpu_data.icache.ways = 2; in cpu_probe()
180 boot_cpu_data.dcache.ways = 2; in cpu_probe()
195 boot_cpu_data.icache.ways = 2; in cpu_probe()
196 boot_cpu_data.dcache.ways = 2; in cpu_probe()
[all …]
/arch/sh/mm/
Dcache-sh7705.c34 unsigned long ways, waysize, addrstart; in cache_wback_all() local
36 ways = current_cpu_data.dcache.ways; in cache_wback_all()
59 } while (--ways); in cache_wback_all()
83 unsigned long ways, waysize, addrstart; in __flush_dcache_page() local
104 ways = current_cpu_data.dcache.ways; in __flush_dcache_page()
126 } while (--ways); in __flush_dcache_page()
Dtlb-sh3.c60 int i, ways = MMU_NTLB_WAYS; in local_flush_tlb_one() local
73 ways = 1; /* we already know the way .. */ in local_flush_tlb_one()
76 for (i = 0; i < ways; i++) in local_flush_tlb_one()
Dcache-sh2a.c61 nr_ways = current_cpu_data.dcache.ways; in sh2a__flush_wback_region()
108 int nr_ways = current_cpu_data.dcache.ways; in sh2a__flush_purge_region()
Dcache-sh4.c78 for (i = 0; i < cpu_data->icache.ways; i++) { in sh4_flush_icache_range()
156 current_cpu_data.dcache.ways; in flush_dcache_all()
328 way_count = dcache->ways; in __flush_cache_one()
Dcache.c261 boot_cpu_data.icache.ways, in emit_cache_params()
269 boot_cpu_data.dcache.ways, in emit_cache_params()
282 boot_cpu_data.scache.ways, in emit_cache_params()
Dcache-sh3.c47 for (j = 0; j < current_cpu_data.dcache.ways; j++) { in sh3__flush_wback_region()
/arch/sh/kernel/cpu/
Dinit.c129 unsigned long ways, waysize, addrstart; in cache_init() local
147 ways = 1; in cache_init()
150 ways = current_cpu_data.dcache.ways; in cache_init()
162 } while (--ways); in cache_init()
173 if (current_cpu_data.dcache.ways > 1) in cache_init()
203 CSHAPE((desc).way_size * (desc).ways, ilog2((desc).linesz), (desc).ways)
Dproc.c71 cache_size = info.ways * info.sets * info.linesz; in show_cacheinfo()
74 type, cache_size >> 10, info.ways); in show_cacheinfo()
/arch/powerpc/sysdev/
Dfsl_85xx_l2ctlr.c76 unsigned char ways; in mpc85xx_l2ctlr_of_probe() local
97 ways = LOCK_WAYS_FULL * sram_params.sram_size / l2cache_size; in mpc85xx_l2ctlr_of_probe()
98 if (rem || (ways & (ways - 1))) { in mpc85xx_l2ctlr_of_probe()
125 switch (ways) { in mpc85xx_l2ctlr_of_probe()
/arch/arc/mm/
Dtlb.c258 int num_tlb = mmu->sets * mmu->ways; in local_flush_tlb_all()
735 unsigned int ver:8, ways:4, sets:4, u_itlb:8, u_dtlb:8; in read_decode_mmu_bcr() member
737 unsigned int u_dtlb:8, u_itlb:8, sets:4, ways:4, ver:8; in read_decode_mmu_bcr()
743 unsigned int ver:8, ways:4, sets:4, res:3, sasid:1, pg_sz:4, in read_decode_mmu_bcr() member
747 ways:4, ver:8; in read_decode_mmu_bcr()
769 mmu->ways = 1 << mmu2->ways; in read_decode_mmu_bcr()
776 mmu->ways = 1 << mmu3->ways; in read_decode_mmu_bcr()
785 mmu->ways = mmu4->n_ways * 2; in read_decode_mmu_bcr()
807 p_mmu->sets * p_mmu->ways, p_mmu->sets, p_mmu->ways, in arc_mmu_mumbojumbo()
889 #define SET_WAY_TO_IDX(mmu, set, way) ((set) * mmu->ways + (way))
[all …]
/arch/sh/kernel/cpu/sh2/
Dprobe.c37 boot_cpu_data.dcache.ways = 4; in cpu_probe()
59 boot_cpu_data.dcache.ways = 1; in cpu_probe()
/arch/mips/kernel/
Dcacheinfo.c25 leaf->ways_of_associativity = c->cache.ways; \
27 c->cache.ways; \
/arch/sh/include/asm/
Dcache.h22 unsigned int ways; /* Number of cache ways */ member
/arch/powerpc/kvm/
De500_mmu.c45 if (unlikely(vcpu_e500->gtlb_nv[0] >= vcpu_e500->gtlb_params[0].ways)) in gtlb0_get_next_victim()
51 static int tlb0_set_base(gva_t addr, int sets, int ways) in tlb0_set_base() argument
56 set_base *= ways; in tlb0_set_base()
64 vcpu_e500->gtlb_params[0].ways); in gtlb0_set_base()
73 esel &= vcpu_e500->gtlb_params[0].ways - 1; in get_tlb_esel()
92 size = vcpu_e500->gtlb_params[0].ways; in kvmppc_e500_tlb_index()
361 esel &= vcpu_e500->gtlb_params[tlbsel].ways - 1; in kvmppc_e500_emul_tlbsx()
843 vcpu_e500->gtlb_params[0].ways = params.tlb_ways[0]; in kvm_vcpu_ioctl_config_tlb()
846 vcpu_e500->gtlb_params[1].ways = params.tlb_sizes[1]; in kvm_vcpu_ioctl_config_tlb()
883 vcpu->arch.tlbcfg[0] |= params[0].ways << TLBnCFG_ASSOC_SHIFT; in vcpu_mmu_init()
[all …]
De500_mmu_host.c784 host_tlb_params[0].ways = (mfspr(SPRN_TLB0CFG) & TLBnCFG_ASSOC) >> in e500_mmu_host_init()
786 host_tlb_params[1].ways = host_tlb_params[1].entries; in e500_mmu_host_init()
789 !is_power_of_2(host_tlb_params[0].ways) || in e500_mmu_host_init()
790 host_tlb_params[0].entries < host_tlb_params[0].ways || in e500_mmu_host_init()
791 host_tlb_params[0].ways == 0) { in e500_mmu_host_init()
794 host_tlb_params[0].ways); in e500_mmu_host_init()
799 host_tlb_params[0].entries / host_tlb_params[0].ways; in e500_mmu_host_init()
/arch/sh/kernel/cpu/sh5/
Dprobe.c42 boot_cpu_data.icache.ways = 4; in cpu_probe()
/arch/sh/kernel/cpu/sh2a/
Dprobe.c46 boot_cpu_data.dcache.ways = 4; in cpu_probe()
/arch/arm/mm/
Dcache-l2x0.c796 unsigned way_size_bits, ways; in __l2c_init() local
829 ways = 16; in __l2c_init()
831 ways = 8; in __l2c_init()
836 ways = (aux >> 13) & 0xf; in __l2c_init()
840 ways = (aux >> 13) & 0xf; in __l2c_init()
841 ways = 2 << ((ways + 1) >> 2); in __l2c_init()
846 ways = 8; in __l2c_init()
850 l2x0_way_mask = (1 << ways) - 1; in __l2c_init()
862 l2x0_size = ways * (data->way_size_0 << way_size_bits); in __l2c_init()
897 data->type, ways, l2x0_size >> 10); in __l2c_init()
/arch/mn10300/mm/
Dcache-dbg-flush-by-tag.S106 # conditionally purge this line in all ways

12