Home
last modified time | relevance | path

Searched refs:ways (Results 1 - 25 of 90) sorted by relevance

1234

/kernel/linux/linux-5.10/arch/mips/mm/
H A Dc-r4k.c266 unsigned long ws_end = current_cpu_data.icache.ways << in tx49_blast_icache32()
299 unsigned long ws_end = current_cpu_data.icache.ways << in tx49_blast_icache32_page_indexed()
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()
1169 c->icache.ways = 1; in probe_pcache()
1174 c->dcache.ways in probe_pcache()
[all...]
H A Dc-octeon.c181 c->icache.ways = 1 + ((config1 >> 16) & 7); in probe_octeon()
184 c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon()
185 c->icache.waybit = ffs(icache_size / c->icache.ways) - 1; in probe_octeon()
191 c->dcache.ways = 64; in probe_octeon()
193 c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_octeon()
194 c->dcache.waybit = ffs(dcache_size / c->dcache.ways) - 1; in probe_octeon()
201 c->icache.ways = 37; in probe_octeon()
203 icache_size = c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon()
206 c->dcache.ways = 32; in probe_octeon()
208 dcache_size = c->dcache.sets * c->dcache.ways * in probe_octeon()
[all...]
H A Dc-tx39.c302 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()
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()
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()
/kernel/linux/linux-6.6/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()
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 Dc-r4k.c233 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 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()
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()
/kernel/linux/linux-5.10/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 in cpu_probe()
[all...]
/kernel/linux/linux-6.6/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 in cpu_probe()
[all...]
/kernel/linux/linux-5.10/arch/sh/mm/
H A Dcache-sh7705.c32 unsigned long ways, waysize, addrstart; in cache_wback_all() local
34 ways = current_cpu_data.dcache.ways; in cache_wback_all()
57 } while (--ways); in cache_wback_all()
81 unsigned long ways, waysize, addrstart; in __flush_dcache_page() local
102 ways = current_cpu_data.dcache.ways; in __flush_dcache_page()
124 } 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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/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)
/kernel/linux/linux-6.6/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)
/kernel/linux/linux-5.10/arch/powerpc/sysdev/
H A Dfsl_85xx_l2ctlr.c63 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()
/kernel/linux/linux-5.10/arch/arc/mm/
H A Dtlb.c64 * map into same set, there would be contention for the 2 ways causing severe
68 * much higher associativity. u-D-TLB is 8 ways, u-I-TLB is 4 ways.
239 int num_tlb = mmu->sets * mmu->ways; in local_flush_tlb_all()
711 unsigned int ver:8, ways:4, sets:4, u_itlb:8, u_dtlb:8; in read_decode_mmu_bcr() member
713 unsigned int u_dtlb:8, u_itlb:8, sets:4, ways:4, ver:8; in read_decode_mmu_bcr()
719 unsigned int ver:8, ways:4, sets:4, res:3, sasid:1, pg_sz:4, in read_decode_mmu_bcr() member
723 ways:4, ver:8; in read_decode_mmu_bcr()
746 mmu->ways = 1 << mmu2->ways; in read_decode_mmu_bcr()
[all...]
/kernel/linux/linux-5.10/arch/nds32/kernel/
H A Dsetup.c104 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()
/kernel/linux/linux-6.6/drivers/cxl/
H A Dcxl.h86 static inline int eiw_to_ways(u8 eiw, unsigned int *ways) in eiw_to_ways() argument
90 *ways = 1 << eiw; in eiw_to_ways()
93 *ways = 3 << (eiw - 8); in eiw_to_ways()
111 static inline int ways_to_eiw(unsigned int ways, u8 *eiw) in ways_to_eiw() argument
113 if (ways > 16) in ways_to_eiw()
115 if (is_power_of_2(ways)) { in ways_to_eiw()
116 *eiw = ilog2(ways); in ways_to_eiw()
119 if (ways % 3) in ways_to_eiw()
121 ways /= 3; in ways_to_eiw()
122 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 ! in __cxl_parse_cfmws()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc_hash.c474 /* Check all the 4 ways for a free slot. */ in rvu_npc_exact_alloc_mem_table_entry()
476 for (i = 0; i < table->mem_table.ways; i++) { in rvu_npc_exact_alloc_mem_table_entry()
771 * @ways: MEM table ways.
784 static int rvu_npc_exact_add_to_list(struct rvu *rvu, enum npc_exact_opc_type opc_type, u8 ways, in rvu_npc_exact_add_to_list() argument
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()
868 * @ways
872 rvu_npc_exact_mem_table_write(struct rvu *rvu, int blkaddr, u8 ways, u32 index, u64 mdata) rvu_npc_exact_mem_table_write() argument
899 rvu_npc_exact_dealloc_table_entry(struct rvu *rvu, enum npc_exact_opc_type opc_type, u8 ways, u32 index) rvu_npc_exact_dealloc_table_entry() argument
973 rvu_npc_exact_alloc_table_entry(struct rvu *rvu, char *mac, u16 chan, u8 ctype, u32 *index, u8 *ways, enum npc_exact_opc_type *opc_type) rvu_npc_exact_alloc_table_entry() argument
1328 u8 ways; rvu_npc_exact_add_table_entry() local
[all...]
/kernel/linux/linux-6.6/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))
693 * time of lookup matching multiple ways.
705 int set, n_ways = mmu->ways; in do_tlb_overlap_fault()
708 BUG_ON(mmu->ways > in do_tlb_overlap_fault()
[all...]
/kernel/linux/linux-5.10/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()

Completed in 16 milliseconds

1234