/arch/mips/pci/ |
D | pci.c | 28 unsigned int lsize; in pcibios_set_cache_line_size() local 34 lsize = cpu_dcache_line_size(); in pcibios_set_cache_line_size() 35 lsize = cpu_scache_line_size() ? : lsize; in pcibios_set_cache_line_size() 36 lsize = cpu_tcache_line_size() ? : lsize; in pcibios_set_cache_line_size() 38 BUG_ON(!lsize); in pcibios_set_cache_line_size() 40 pci_dfl_cache_line_size = lsize >> 2; in pcibios_set_cache_line_size() 42 pr_debug("PCI: pci_cache_line_size set to %d bytes\n", lsize); in pcibios_set_cache_line_size()
|
/arch/mips/include/asm/ |
D | r4kcache.h | 191 #define cache_unroll(times, insn, op, addr, lsize) do { \ argument 193 unroll(times, _cache_op, insn, op, (addr) + (i++ * (lsize))); \ 197 #define __BUILD_BLAST_CACHE(pfx, desc, indexop, hitop, lsize, extra) \ argument 198 static inline void extra##blast_##pfx##cache##lsize(void) \ 208 for (addr = start; addr < end; addr += lsize * 32) \ 210 addr | ws, lsize); \ 213 static inline void extra##blast_##pfx##cache##lsize##_page(unsigned long page) \ 219 cache_unroll(32, kernel_cache, hitop, start, lsize); \ 220 start += lsize * 32; \ 224 static inline void extra##blast_##pfx##cache##lsize##_page_indexed(unsigned long page) \ [all …]
|
D | sgiarcs.h | 280 unsigned char lsize; member 284 unsigned char lsize;
|
/arch/x86/kernel/cpu/mtrr/ |
D | cyrix.c | 93 unsigned long lbase, lsize; in cyrix_get_free_region() local 114 cyrix_get_arr(7, &lbase, &lsize, <ype); in cyrix_get_free_region() 115 if (lsize == 0) in cyrix_get_free_region() 120 cyrix_get_arr(i, &lbase, &lsize, <ype); in cyrix_get_free_region() 121 if (lsize == 0) in cyrix_get_free_region() 128 cyrix_get_arr(i, &lbase, &lsize, <ype); in cyrix_get_free_region() 129 if ((lsize == 0) && (size >= 0x40)) in cyrix_get_free_region()
|
D | mtrr.c | 228 unsigned long lbase, lsize; in mtrr_add_page() local 270 mtrr_if->get(i, &lbase, &lsize, <ype); in mtrr_add_page() 271 if (!lsize || base > lbase + lsize - 1 || in mtrr_add_page() 278 if (base < lbase || base + size - 1 > lbase + lsize - 1) { in mtrr_add_page() 280 base + size - 1 >= lbase + lsize - 1) { in mtrr_add_page() 289 lsize); in mtrr_add_page() 406 unsigned long lbase, lsize; in mtrr_del_page() local 419 mtrr_if->get(i, &lbase, &lsize, <ype); in mtrr_del_page() 420 if (lbase == base && lsize == size) { in mtrr_del_page() 434 mtrr_if->get(reg, &lbase, &lsize, <ype); in mtrr_del_page() [all …]
|
D | legacy.c | 39 unsigned long lsize; member 53 &mtrr_value[i].lsize, in mtrr_save() 64 if (mtrr_value[i].lsize) { in mtrr_restore() 66 mtrr_value[i].lsize, in mtrr_restore()
|
D | centaur.c | 29 unsigned long lbase, lsize; in centaur_get_free_region() local 40 mtrr_if->get(i, &lbase, &lsize, <ype); in centaur_get_free_region() 41 if (lsize == 0) in centaur_get_free_region()
|
D | generic.c | 779 unsigned long lbase, lsize; in generic_get_free_region() local 788 mtrr_if->get(i, &lbase, &lsize, <ype); in generic_get_free_region() 789 if (lsize == 0) in generic_get_free_region()
|
/arch/loongarch/pci/ |
D | pci.c | 46 unsigned int lsize; in pcibios_init() local 52 lsize = cpu_last_level_cache_line_size(); in pcibios_init() 54 BUG_ON(!lsize); in pcibios_init() 56 pci_dfl_cache_line_size = lsize >> 2; in pcibios_init() 58 pr_debug("PCI: pci_cache_line_size set to %d bytes\n", lsize); in pcibios_init()
|
/arch/mips/mm/ |
D | c-r3k.c | 65 unsigned long flags, status, lsize, i; in r3k_cache_lsize() local 78 for (lsize = 1; lsize < 128; lsize <<= 1) { in r3k_cache_lsize() 79 *(p + lsize); in r3k_cache_lsize() 84 for (i = 0; i < 128; i += lsize) in r3k_cache_lsize() 89 return lsize * sizeof(*p); in r3k_cache_lsize()
|
D | c-r4k.c | 1001 unsigned int lsize; in probe_pcache() local 1124 lsize = (config1 >> 19) & 7; in probe_pcache() 1125 if (lsize) in probe_pcache() 1126 c->icache.linesz = 2 << lsize; in probe_pcache() 1136 lsize = (config1 >> 10) & 7; in probe_pcache() 1137 if (lsize) in probe_pcache() 1138 c->dcache.linesz = 2 << lsize; in probe_pcache() 1178 lsize = (config1 >> 19) & 7; in probe_pcache() 1181 if (lsize == 7) in probe_pcache() 1184 c->icache.linesz = lsize ? 2 << lsize : 0; in probe_pcache() [all …]
|
D | sc-mips.c | 37 unsigned long lsize = cpu_scache_line_size(); in mips_sc_inv() local 38 unsigned long almask = ~(lsize - 1); in mips_sc_inv()
|
/arch/powerpc/kernel/ |
D | setup_64.c | 550 static void __init init_cache_info(struct ppc_cache_info *info, u32 size, u32 lsize, in init_cache_info() argument 555 info->line_size = lsize; in init_cache_info() 566 info->assoc = size / (sets * lsize); in init_cache_info() 587 u32 size, lsize, bsize, sets; in parse_cache_info() local 592 lsize = bsize = cur_cpu_spec->dcache_bsize; in parse_cache_info() 606 lsize = be32_to_cpu(*lsizep); in parse_cache_info() 623 init_cache_info(info, size, lsize, bsize, sets); in parse_cache_info()
|