Home
last modified time | relevance | path

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

12345678910>>...22

/openbmc/linux/arch/mips/mm/
H A Dc-octeon.c184 c->icache.ways = 1 + ((config1 >> 16) & 7); in probe_octeon()
187 c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon()
194 c->dcache.ways = 64; in probe_octeon()
204 c->icache.ways = 37; in probe_octeon()
209 c->dcache.ways = 32; in probe_octeon()
218 c->icache.ways = 39; in probe_octeon()
223 c->dcache.ways = 32; in probe_octeon()
235 c->icache.waysize = icache_size / c->icache.ways; in probe_octeon()
236 c->dcache.waysize = dcache_size / c->dcache.ways; in probe_octeon()
247 c->icache.ways, c->icache.sets, c->icache.linesz); in probe_octeon()
[all …]
H A Dc-r4k.c1010 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 = 2; in probe_pcache()
1435 c->scache.ways = 1; in probe_scache()
[all …]
H A 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()
H A Dsc-mips.c170 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()
/openbmc/linux/arch/sh/kernel/cpu/sh4/
H A Dprobe.c38 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 …]
/openbmc/u-boot/arch/arm/mach-uniphier/arm32/
H A Dcache-uniphier.c112 writel(ways, UNIPHIER_SSCOQWN); in uniphier_cache_maint_common()
128 static void uniphier_cache_maint_range(u32 start, u32 end, u32 ways, in uniphier_cache_maint_range() argument
156 uniphier_cache_maint_common(start, chunk_size, ways, in uniphier_cache_maint_range()
166 void uniphier_cache_prefetch_range(u32 start, u32 end, u32 ways) in uniphier_cache_prefetch_range() argument
168 uniphier_cache_maint_range(start, end, ways, in uniphier_cache_prefetch_range()
173 void uniphier_cache_touch_range(u32 start, u32 end, u32 ways) in uniphier_cache_touch_range() argument
175 uniphier_cache_maint_range(start, end, ways, in uniphier_cache_touch_range()
180 void uniphier_cache_touch_zero_range(u32 start, u32 end, u32 ways) in uniphier_cache_touch_zero_range() argument
182 uniphier_cache_maint_range(start, end, ways, in uniphier_cache_touch_zero_range()
187 void uniphier_cache_inv_way(u32 ways) in uniphier_cache_inv_way() argument
[all …]
H A Dcache-uniphier.h12 void uniphier_cache_prefetch_range(u32 start, u32 end, u32 ways);
13 void uniphier_cache_touch_range(u32 start, u32 end, u32 ways);
14 void uniphier_cache_touch_zero_range(u32 start, u32 end, u32 ways);
15 void uniphier_cache_inv_way(u32 ways);
/openbmc/linux/arch/sh/mm/
H A Dcache-sh7705.c33 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 Dtlb-sh3.c58 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()
/openbmc/linux/arch/sh/kernel/cpu/
H A Dinit.c126 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)
/openbmc/linux/arch/arm/boot/dts/broadcom/
H A Dbcm2836.dtsi58 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 Dbcm2837.dtsi57 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set
60 i-cache-sets = <256>; // 32KiB(size)/64(line-size)=512ways/2-way set
72 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set
75 i-cache-sets = <256>; // 32KiB(size)/64(line-size)=512ways/2-way set
87 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set
90 i-cache-sets = <256>; // 32KiB(size)/64(line-size)=512ways/2-way set
102 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set
105 i-cache-sets = <256>; // 32KiB(size)/64(line-size)=512ways/2-way set
120 cache-sets = <512>; // 512KiB(size)/64(line-size)=8192ways/16-way set
H A Dbcm2835.dtsi29 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
/openbmc/linux/drivers/cxl/
H A Dcxl.h88 static inline int eiw_to_ways(u8 eiw, unsigned int *ways) in eiw_to_ways() argument
92 *ways = 1 << eiw; in eiw_to_ways()
95 *ways = 3 << (eiw - 8); in eiw_to_ways()
113 static inline int ways_to_eiw(unsigned int ways, u8 *eiw) in ways_to_eiw() argument
115 if (ways > 16) in ways_to_eiw()
117 if (is_power_of_2(ways)) { in ways_to_eiw()
118 *eiw = ilog2(ways); in ways_to_eiw()
121 if (ways % 3) in ways_to_eiw()
123 ways /= 3; in ways_to_eiw()
124 if (!is_power_of_2(ways)) in ways_to_eiw()
[all …]
H A Dacpi.c145 unsigned int ways; in cxl_acpi_cfmws_verify() local
164 rc = eiw_to_ways(cfmws->interleave_ways, &ways); in cxl_acpi_cfmws_verify()
171 expected_len = struct_size(cfmws, interleave_targets, ways); in cxl_acpi_cfmws_verify()
208 unsigned int ways, i, ig; in __cxl_parse_cfmws() local
220 rc = eiw_to_ways(cfmws->interleave_ways, &ways); in __cxl_parse_cfmws()
226 for (i = 0; i < ways; i++) in __cxl_parse_cfmws()
251 cxlrd = cxl_root_decoder_alloc(root_port, ways, cxl_calc_hb); in __cxl_parse_cfmws()
262 cxld->interleave_ways = ways; in __cxl_parse_cfmws()
267 if (ways == 1) in __cxl_parse_cfmws()
272 if (ways != 1 && ways != 3) { in __cxl_parse_cfmws()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc_hash.c476 for (i = 0; i < table->mem_table.ways; i++) { in rvu_npc_exact_alloc_mem_table_entry()
792 WARN_ON(ways >= NPC_EXACT_TBL_MAX_WAYS); in rvu_npc_exact_add_to_list()
814 lhead = &table->lhead_mem_tbl_entry[ways]; in rvu_npc_exact_add_to_list()
832 entry->ways = ways; in rvu_npc_exact_add_to_list()
900 u8 ways, u32 index) in rvu_npc_exact_dealloc_table_entry() argument
922 __func__, ways, index); in rvu_npc_exact_dealloc_table_entry()
953 __func__, index, ways, opc_type); in rvu_npc_exact_dealloc_table_entry()
989 __func__, *ways, *index); in rvu_npc_exact_alloc_table_entry()
996 *ways = 0; in rvu_npc_exact_alloc_table_entry()
1328 u8 ways; in rvu_npc_exact_add_table_entry() local
[all …]
/openbmc/linux/arch/arc/mm/
H A Dtlb.c22 unsigned int ver, pg_sz_k, s_pg_sz_m, pae, sets, ways; member
139 int num_tlb = mmu->sets * mmu->ways; in local_flush_tlb_all()
585 mmu->ways = 1 << mmu3->ways; in arc_mmu_mumbojumbo()
594 mmu->ways = mmu4->n_ways * 2; in arc_mmu_mumbojumbo()
609 mmu->sets, mmu->ways, in arc_mmu_mumbojumbo()
688 #define SET_WAY_TO_IDX(mmu, set, way) ((set) * mmu->ways + (way))
705 int set, n_ways = mmu->ways; in do_tlb_overlap_fault()
708 BUG_ON(mmu->ways > 4); in do_tlb_overlap_fault()
/openbmc/u-boot/arch/arm/cpu/armv7m/
H A Dcache.c59 u32 ways; member
67 cache->ways = (cache_size_id & MASK_NUM_WAYS) >> NUM_WAYS_SHIFT; in get_cache_ways_sets()
185 debug("cache: ways= %d, sets= %d\n", cache.ways + 1, cache.sets + 1); in action_dcache_all()
187 for (j = cache.ways; j >= 0; j--) { in action_dcache_all()
/openbmc/linux/arch/sh/kernel/cpu/sh2/
H A Dprobe.c34 boot_cpu_data.dcache.ways = 4; in cpu_probe()
56 boot_cpu_data.dcache.ways = 1; in cpu_probe()
/openbmc/linux/arch/powerpc/kvm/
H A De500_mmu.c48 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 …]
/openbmc/linux/Documentation/devicetree/bindings/nios2/
H A Dnios2.txt23 - altr,tlb-num-ways: Specifies the number of set-associativity ways in the TLB.
52 altr,tlb-num-ways = <16>;
/openbmc/linux/arch/loongarch/mm/
H A Dcache.c54 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; \
/openbmc/linux/arch/loongarch/kernel/
H A Dcacheinfo.c76 this_leaf->ways_of_associativity = cd->ways; in populate_cache_leaves()
77 this_leaf->size = cd->linesz * cd->sets * cd->ways; in populate_cache_leaves()
/openbmc/linux/drivers/cxl/core/
H A Dtrace.c14 int ways = p->interleave_ways; in cxl_is_hpa_in_range() local
26 offset = do_div(offset, gran * ways); in cxl_is_hpa_in_range()
/openbmc/linux/arch/mips/kernel/
H A Dcacheinfo.c14 leaf->ways_of_associativity = c->cache.ways; \
16 c->cache.ways; \

12345678910>>...22