Home
last modified time | relevance | path

Searched refs:sets (Results 1 - 25 of 167) sorted by relevance

1234567

/kernel/linux/linux-5.10/arch/riscv/kernel/
H A Dcacheinfo.c69 unsigned int sets, unsigned int line_size) in ci_leaf_init()
74 this_leaf->number_of_sets = sets; in ci_leaf_init()
81 if (sets == 1) in ci_leaf_init()
88 if (sets > 0 && size > 0 && line_size > 0) in ci_leaf_init()
89 this_leaf->ways_of_associativity = (size / sets) / line_size; in ci_leaf_init()
95 unsigned int size, sets, line_size; in fill_cacheinfo() local
99 !of_property_read_u32(node, "cache-sets", &sets)) { in fill_cacheinfo()
100 ci_leaf_init((*this_leaf)++, CACHE_TYPE_UNIFIED, level, size, sets, line_size); in fill_cacheinfo()
104 !of_property_read_u32(node, "i-cache-sets", in fill_cacheinfo()
67 ci_leaf_init(struct cacheinfo *this_leaf, enum cache_type type, unsigned int level, unsigned int size, unsigned int sets, unsigned int line_size) ci_leaf_init() argument
[all...]
/kernel/linux/linux-5.10/arch/mips/mm/
H A Dc-octeon.c180 c->icache.sets = 64 << ((config1 >> 22) & 7); in probe_octeon()
184 c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon()
188 c->dcache.sets = 2; /* CN5XXX has two Dcache sets */ in probe_octeon()
190 c->dcache.sets = 1; /* CN3XXX has one Dcache set */ in probe_octeon()
193 c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_octeon()
200 c->icache.sets = 8; in probe_octeon()
203 icache_size = c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon()
207 c->dcache.sets = 8; in probe_octeon()
208 dcache_size = c->dcache.sets * in probe_octeon()
[all...]
H A Dsc-mips.c153 unsigned long sets, line_sz, assoc; in mips_sc_probe_cm3() local
158 sets = cfg & CM_GCR_L2_CONFIG_SET_SIZE; in mips_sc_probe_cm3()
159 sets >>= __ffs(CM_GCR_L2_CONFIG_SET_SIZE); in mips_sc_probe_cm3()
160 if (sets) in mips_sc_probe_cm3()
161 c->scache.sets = 64 << sets; in mips_sc_probe_cm3()
171 c->scache.waysize = c->scache.sets * c->scache.linesz; in mips_sc_probe_cm3()
214 c->scache.sets = 64 << tmp; in mips_sc_probe()
236 * According to config2 it would be 5-ways and 512-sets, in mips_sc_probe()
241 c->scache.sets in mips_sc_probe()
[all...]
H A Dc-r4k.c1283 c->icache.sets = 64 << ((config1 >> 22) & 7); in probe_pcache()
1285 icache_size = c->icache.sets * in probe_pcache()
1295 c->dcache.sets = 64 << ((config1 >> 13) & 7); in probe_pcache()
1297 dcache_size = c->dcache.sets * in probe_pcache()
1310 c->icache.sets = 16; in probe_pcache()
1313 icache_size = c->icache.sets * c->icache.ways * c->icache.linesz; in probe_pcache()
1317 c->dcache.sets = 8; in probe_pcache()
1318 dcache_size = c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_pcache()
1340 c->icache.sets = 32 << (((config1 >> 22) + 1) & 7); in probe_pcache()
1343 icache_size = c->icache.sets * in probe_pcache()
[all...]
/kernel/linux/linux-6.6/arch/mips/mm/
H A Dc-octeon.c183 c->icache.sets = 64 << ((config1 >> 22) & 7); in probe_octeon()
187 c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon()
191 c->dcache.sets = 2; /* CN5XXX has two Dcache sets */ in probe_octeon()
193 c->dcache.sets = 1; /* CN3XXX has one Dcache set */ in probe_octeon()
196 c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_octeon()
203 c->icache.sets = 8; in probe_octeon()
206 icache_size = c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon()
210 c->dcache.sets = 8; in probe_octeon()
211 dcache_size = c->dcache.sets * in probe_octeon()
[all...]
H A Dsc-mips.c153 unsigned long sets, line_sz, assoc; in mips_sc_probe_cm3() local
158 sets = cfg & CM_GCR_L2_CONFIG_SET_SIZE; in mips_sc_probe_cm3()
159 sets >>= __ffs(CM_GCR_L2_CONFIG_SET_SIZE); in mips_sc_probe_cm3()
160 if (sets) in mips_sc_probe_cm3()
161 c->scache.sets = 64 << sets; in mips_sc_probe_cm3()
171 c->scache.waysize = c->scache.sets * c->scache.linesz; in mips_sc_probe_cm3()
214 c->scache.sets = 64 << tmp; in mips_sc_probe()
236 * According to config2 it would be 5-ways and 512-sets, in mips_sc_probe()
241 c->scache.sets in mips_sc_probe()
[all...]
H A Dc-r4k.c1129 c->icache.sets = 64 << ((config1 >> 22) & 7); in probe_pcache()
1131 icache_size = c->icache.sets * in probe_pcache()
1141 c->dcache.sets = 64 << ((config1 >> 13) & 7); in probe_pcache()
1143 dcache_size = c->dcache.sets * in probe_pcache()
1156 c->icache.sets = 16; in probe_pcache()
1159 icache_size = c->icache.sets * c->icache.ways * c->icache.linesz; in probe_pcache()
1163 c->dcache.sets = 8; in probe_pcache()
1164 dcache_size = c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_pcache()
1186 c->icache.sets = 32 << (((config1 >> 22) + 1) & 7); in probe_pcache()
1189 icache_size = c->icache.sets * in probe_pcache()
[all...]
/kernel/linux/linux-5.10/net/ethtool/
H A Dstrset.c96 struct strset_info sets[ETH_SS_COUNT]; member
128 per_dev = data->sets[id].per_dev; in strset_include()
129 if (!per_dev && !data->sets[id].strings) in strset_include()
203 if (data->sets[i].free_strings) { in strset_cleanup_data()
204 kfree(data->sets[i].strings); in strset_cleanup_data()
205 data->sets[i].strings = NULL; in strset_cleanup_data()
206 data->sets[i].free_strings = false; in strset_cleanup_data()
261 memcpy(&data->sets, &info_template, sizeof(data->sets)); in strset_prepare_data()
266 data->sets[ in strset_prepare_data()
[all...]
/kernel/linux/linux-6.6/net/ethtool/
H A Dstrset.c121 struct strset_info sets[ETH_SS_COUNT]; member
153 per_dev = data->sets[id].per_dev; in strset_include()
154 if (!per_dev && !data->sets[id].strings) in strset_include()
228 if (data->sets[i].free_strings) { in strset_cleanup_data()
229 kfree(data->sets[i].strings); in strset_cleanup_data()
230 data->sets[i].strings = NULL; in strset_cleanup_data()
231 data->sets[i].free_strings = false; in strset_cleanup_data()
286 memcpy(&data->sets, &info_template, sizeof(data->sets)); in strset_prepare_data()
291 data->sets[ in strset_prepare_data()
[all...]
/kernel/linux/linux-6.6/arch/powerpc/kernel/
H A Dsetup_64.c551 u32 bsize, u32 sets) in init_cache_info()
554 info->sets = sets; in init_cache_info()
563 if (sets == 0) in init_cache_info()
566 info->assoc = size / (sets * lsize); in init_cache_info()
575 "i-cache-sets", in parse_cache_info()
581 "d-cache-sets", in parse_cache_info()
587 u32 size, lsize, bsize, sets; in parse_cache_info() local
591 sets = -1u; in parse_cache_info()
598 sets in parse_cache_info()
550 init_cache_info(struct ppc_cache_info *info, u32 size, u32 lsize, u32 bsize, u32 sets) init_cache_info() argument
[all...]
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
H A Ds3c2410.c1027 struct s3c2410_nand_set *sets; in s3c24xx_nand_probe_dt() local
1045 sets = devm_kcalloc(&pdev->dev, pdata->nr_sets, sizeof(*sets), in s3c24xx_nand_probe_dt()
1047 if (!sets) in s3c24xx_nand_probe_dt()
1050 pdata->sets = sets; in s3c24xx_nand_probe_dt()
1053 sets->name = (char *)child->name; in s3c24xx_nand_probe_dt()
1054 sets->of_node = child; in s3c24xx_nand_probe_dt()
1055 sets->nr_chips = 1; in s3c24xx_nand_probe_dt()
1059 sets in s3c24xx_nand_probe_dt()
1086 struct s3c2410_nand_set *sets; s3c24xx_nand_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/
H A Ds3c2410.c971 struct s3c2410_nand_set *sets; in s3c24xx_nand_probe_dt() local
989 sets = devm_kcalloc(&pdev->dev, pdata->nr_sets, sizeof(*sets), in s3c24xx_nand_probe_dt()
991 if (!sets) in s3c24xx_nand_probe_dt()
994 pdata->sets = sets; in s3c24xx_nand_probe_dt()
997 sets->name = (char *)child->name; in s3c24xx_nand_probe_dt()
998 sets->of_node = child; in s3c24xx_nand_probe_dt()
999 sets->nr_chips = 1; in s3c24xx_nand_probe_dt()
1003 sets in s3c24xx_nand_probe_dt()
1030 struct s3c2410_nand_set *sets; s3c24xx_nand_probe() local
[all...]
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh4/
H A Dprobe.c37 boot_cpu_data.icache.sets = 256; in cpu_probe()
46 boot_cpu_data.dcache.sets = 512; in cpu_probe()
205 boot_cpu_data.icache.sets = (size >> 6); in cpu_probe()
213 boot_cpu_data.dcache.sets = (size >> 6); in cpu_probe()
251 boot_cpu_data.scache.sets = size / in cpu_probe()
256 (boot_cpu_data.scache.sets * in cpu_probe()
/kernel/linux/linux-6.6/arch/sh/kernel/cpu/sh4/
H A Dprobe.c37 boot_cpu_data.icache.sets = 256; in cpu_probe()
46 boot_cpu_data.dcache.sets = 512; in cpu_probe()
205 boot_cpu_data.icache.sets = (size >> 6); in cpu_probe()
213 boot_cpu_data.dcache.sets = (size >> 6); in cpu_probe()
251 boot_cpu_data.scache.sets = size / in cpu_probe()
256 (boot_cpu_data.scache.sets * in cpu_probe()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
H A Dsetup_64.c502 u32 bsize, u32 sets) in init_cache_info()
505 info->sets = sets; in init_cache_info()
514 if (sets == 0) in init_cache_info()
517 info->assoc = size / (sets * lsize); in init_cache_info()
526 "i-cache-sets", in parse_cache_info()
532 "d-cache-sets", in parse_cache_info()
538 u32 size, lsize, bsize, sets; in parse_cache_info() local
542 sets = -1u; in parse_cache_info()
549 sets in parse_cache_info()
501 init_cache_info(struct ppc_cache_info *info, u32 size, u32 lsize, u32 bsize, u32 sets) init_cache_info() argument
[all...]
/kernel/linux/linux-5.10/arch/arc/mm/
H A Dtlb.c185 * This also sets up PD0 (vaddr, ASID..) for final commit in tlb_entry_insert()
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
722 unsigned int u_dtlb:4, u_itlb:4, pg_sz:4, sasid:1, res:3, sets:4, in read_decode_mmu_bcr()
745 mmu->sets = 1 << mmu2->sets; in read_decode_mmu_bcr()
752 mmu->sets = 1 << mmu3->sets; in read_decode_mmu_bcr()
[all...]
/kernel/linux/linux-5.10/arch/sparc/mm/
H A Dleon_mm.c247 unsigned int ssize, sets; in leon_flush_needed() local
255 sets = (cregs.dccr & LEON3_XCCR_SETS_MASK) >> 24; in leon_flush_needed()
260 sets > 3 ? "unknown" : setStr[sets], ssize); in leon_flush_needed()
261 if ((ssize <= (PAGE_SIZE / 1024)) && (sets == 0)) { in leon_flush_needed()
/kernel/linux/linux-6.6/arch/sparc/mm/
H A Dleon_mm.c247 unsigned int ssize, sets; in leon_flush_needed() local
255 sets = (cregs.dccr & LEON3_XCCR_SETS_MASK) >> 24; in leon_flush_needed()
260 sets > 3 ? "unknown" : setStr[sets], ssize); in leon_flush_needed()
261 if ((ssize <= (PAGE_SIZE / 1024)) && (sets == 0)) { in leon_flush_needed()
/kernel/linux/linux-5.10/arch/nds32/kernel/
H A Dsetup.c106 L1_cache_info[ICACHE].sets = CACHE_SET(ICACHE); in dump_cpu_info()
109 L1_cache_info[ICACHE].sets / 1024; in dump_cpu_info()
111 L1_cache_info[ICACHE].sets, L1_cache_info[ICACHE].ways, in dump_cpu_info()
115 L1_cache_info[DCACHE].sets = CACHE_SET(DCACHE); in dump_cpu_info()
118 L1_cache_info[DCACHE].sets / 1024; in dump_cpu_info()
120 L1_cache_info[DCACHE].sets, L1_cache_info[DCACHE].ways, in dump_cpu_info()
305 /* paging_init() sets up the MMU and marks all pages as reserved */ in setup_arch()
/kernel/linux/linux-6.6/arch/s390/kernel/
H A Dperf_cpum_cf.c32 /* Maximum number of counter sets */
89 unsigned int sets; /* # Counter set saved in memory */ member
100 * of counter sets. Extract this information at device driver initialization.
160 /* Disable counter sets on dedicated CPU */
322 /* Counter sets are stored as data stream in a page sized memory buffer and
332 * All counter sets are followed by a 64 byte trailer.
337 * - the time stamp the counter sets have been collected
341 * The counter sets are saved when the process is prepared to be executed on a
343 * The difference of both counter sets are calculated and stored in the event
474 * Note that the counter sets ma
1243 unsigned int sets; /* Counter set bit mask */ global() member
1455 cfset_needspace(unsigned int sets) cfset_needspace() argument
[all...]
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh3/
H A Dprobe.c62 boot_cpu_data.dcache.sets = 128; in cpu_probe()
69 boot_cpu_data.dcache.sets = 256; in cpu_probe()
93 boot_cpu_data.dcache.sets = 512; in cpu_probe()
/kernel/linux/linux-6.6/arch/sh/kernel/cpu/sh3/
H A Dprobe.c62 boot_cpu_data.dcache.sets = 128; in cpu_probe()
69 boot_cpu_data.dcache.sets = 256; in cpu_probe()
93 boot_cpu_data.dcache.sets = 512; in cpu_probe()
/kernel/linux/linux-5.10/arch/sh/mm/
H A Dcache.c250 c->alias_mask = ((c->sets - 1) << c->entry_shift) & ~(PAGE_SIZE - 1); in compute_alias()
261 boot_cpu_data.icache.sets, in emit_cache_params()
269 boot_cpu_data.dcache.sets, in emit_cache_params()
282 boot_cpu_data.scache.sets, in emit_cache_params()
336 (boot_cpu_data.dcache.sets == 512)) { in cpu_cache_init()
/kernel/linux/linux-6.6/arch/sh/mm/
H A Dcache.c258 c->alias_mask = ((c->sets - 1) << c->entry_shift) & ~(PAGE_SIZE - 1); in compute_alias()
269 boot_cpu_data.icache.sets, in emit_cache_params()
277 boot_cpu_data.dcache.sets, in emit_cache_params()
290 boot_cpu_data.scache.sets, in emit_cache_params()
344 (boot_cpu_data.dcache.sets == 512)) { in cpu_cache_init()
/kernel/linux/linux-5.10/arch/mips/loongson64/
H A Dsmp.c518 " addiu %[sets], %[sets], -1 \n" in loongson3_type1_play_dead()
519 " bnez %[sets], 1b \n" in loongson3_type1_play_dead()
528 [sets] "r" (cpu_data[smp_processor_id()].dcache.sets)); in loongson3_type1_play_dead()
580 " addiu %[sets], %[sets], -1 \n" in loongson3_type2_play_dead()
581 " bnez %[sets], 1b \n" in loongson3_type2_play_dead()
590 [sets] "r" (cpu_data[smp_processor_id()].dcache.sets)); in loongson3_type2_play_dead()
[all...]

Completed in 19 milliseconds

1234567