Home
last modified time | relevance | path

Searched refs:way (Results 1 - 25 of 76) sorted by relevance

1234

/kernel/linux/linux-5.10/arch/nios2/mm/
H A Dtlb.c47 unsigned int way; in replace_tlb_one_pid() local
50 /* remember pid/way until we return. */ in replace_tlb_one_pid()
55 for (way = 0; way < cpuinfo.tlb_num_ways; way++) { in replace_tlb_one_pid()
60 tlbmisc = TLBMISC_RD | (way << TLBMISC_WAY_SHIFT); in replace_tlb_one_pid()
73 (way << TLBMISC_WAY_SHIFT); in replace_tlb_one_pid()
126 unsigned int way; in flush_tlb_one() local
131 /* remember pid/way until we return. */ in flush_tlb_one()
136 for (way in flush_tlb_one()
169 unsigned int way; dump_tlb_line() local
220 unsigned int way; flush_tlb_pid() local
269 unsigned int way; flush_tlb_all() local
[all...]
/kernel/linux/linux-6.6/arch/nios2/mm/
H A Dtlb.c47 unsigned int way; in replace_tlb_one_pid() local
50 /* remember pid/way until we return. */ in replace_tlb_one_pid()
55 for (way = 0; way < cpuinfo.tlb_num_ways; way++) { in replace_tlb_one_pid()
60 tlbmisc = TLBMISC_RD | (way << TLBMISC_WAY_SHIFT); in replace_tlb_one_pid()
73 (way << TLBMISC_WAY_SHIFT); in replace_tlb_one_pid()
126 unsigned int way; in flush_tlb_one() local
131 /* remember pid/way until we return. */ in flush_tlb_one()
136 for (way in flush_tlb_one()
169 unsigned int way; dump_tlb_line() local
220 unsigned int way; flush_tlb_pid() local
269 unsigned int way; flush_tlb_all() local
[all...]
/kernel/linux/linux-5.10/arch/xtensa/include/asm/
H A Dtlbflush.h130 static inline void write_dtlb_entry (pte_t entry, int way) in write_dtlb_entry() argument
133 : : "r" (way), "r" (entry) ); in write_dtlb_entry()
136 static inline void write_itlb_entry (pte_t entry, int way) in write_itlb_entry() argument
139 : : "r" (way), "r" (entry) ); in write_itlb_entry()
176 static inline unsigned long read_dtlb_virtual (int way) in read_dtlb_virtual() argument
179 __asm__ __volatile__("rdtlb0 %0, %1\n\t" : "=a" (tmp), "+a" (way)); in read_dtlb_virtual()
183 static inline unsigned long read_dtlb_translation (int way) in read_dtlb_translation() argument
186 __asm__ __volatile__("rdtlb1 %0, %1\n\t" : "=a" (tmp), "+a" (way)); in read_dtlb_translation()
190 static inline unsigned long read_itlb_virtual (int way) in read_itlb_virtual() argument
193 __asm__ __volatile__("ritlb0 %0, %1\n\t" : "=a" (tmp), "+a" (way)); in read_itlb_virtual()
197 read_itlb_translation(int way) read_itlb_translation() argument
[all...]
/kernel/linux/linux-6.6/arch/xtensa/include/asm/
H A Dtlbflush.h130 static inline void write_dtlb_entry (pte_t entry, int way) in write_dtlb_entry() argument
133 : : "r" (way), "r" (entry) ); in write_dtlb_entry()
136 static inline void write_itlb_entry (pte_t entry, int way) in write_itlb_entry() argument
139 : : "r" (way), "r" (entry) ); in write_itlb_entry()
176 static inline unsigned long read_dtlb_virtual (int way) in read_dtlb_virtual() argument
179 __asm__ __volatile__("rdtlb0 %0, %1\n\t" : "=a" (tmp), "+a" (way)); in read_dtlb_virtual()
183 static inline unsigned long read_dtlb_translation (int way) in read_dtlb_translation() argument
186 __asm__ __volatile__("rdtlb1 %0, %1\n\t" : "=a" (tmp), "+a" (way)); in read_dtlb_translation()
190 static inline unsigned long read_itlb_virtual (int way) in read_itlb_virtual() argument
193 __asm__ __volatile__("ritlb0 %0, %1\n\t" : "=a" (tmp), "+a" (way)); in read_itlb_virtual()
197 read_itlb_translation(int way) read_itlb_translation() argument
[all...]
/kernel/linux/linux-5.10/arch/sh/mm/
H A Dcache-sh2a.c26 static void sh2a_flush_oc_line(unsigned long v, int way) in sh2a_flush_oc_line() argument
28 unsigned long addr = (v & 0x000007f0) | (way << 11); in sh2a_flush_oc_line()
76 int way; in sh2a__flush_wback_region() local
77 for (way = 0; way < nr_ways; way++) { in sh2a__flush_wback_region()
79 sh2a_flush_oc_line(v, way); in sh2a__flush_wback_region()
106 int way; in sh2a__flush_purge_region() local
108 for (way = 0; way < nr_way in sh2a__flush_purge_region()
[all...]
H A Dcache-sh2.c28 int way; in sh2__flush_wback_region() local
29 for (way = 0; way < 4; way++) { in sh2__flush_wback_region()
30 unsigned long data = __raw_readl(addr | (way << 12)); in sh2__flush_wback_region()
33 __raw_writel(data, addr | (way << 12)); in sh2__flush_wback_region()
H A Dcache-debugfs.c29 unsigned int waysize, way; in cache_seq_show() local
66 for (way = 0; way < cache->ways; way++) { in cache_seq_show()
71 seq_printf(file, "Way %d\n", way); in cache_seq_show()
/kernel/linux/linux-6.6/arch/sh/mm/
H A Dcache-sh2a.c26 static void sh2a_flush_oc_line(unsigned long v, int way) in sh2a_flush_oc_line() argument
28 unsigned long addr = (v & 0x000007f0) | (way << 11); in sh2a_flush_oc_line()
76 int way; in sh2a__flush_wback_region() local
77 for (way = 0; way < nr_ways; way++) { in sh2a__flush_wback_region()
79 sh2a_flush_oc_line(v, way); in sh2a__flush_wback_region()
106 int way; in sh2a__flush_purge_region() local
108 for (way = 0; way < nr_way in sh2a__flush_purge_region()
[all...]
H A Dcache-sh2.c28 int way; in sh2__flush_wback_region() local
29 for (way = 0; way < 4; way++) { in sh2__flush_wback_region()
30 unsigned long data = __raw_readl(addr | (way << 12)); in sh2__flush_wback_region()
33 __raw_writel(data, addr | (way << 12)); in sh2__flush_wback_region()
H A Dcache-debugfs.c29 unsigned int waysize, way; in cache_debugfs_show() local
66 for (way = 0; way < cache->ways; way++) { in cache_debugfs_show()
71 seq_printf(file, "Way %d\n", way); in cache_debugfs_show()
/kernel/linux/linux-5.10/arch/arm/mm/
H A Dcache-xsc3l2.c44 int set, way; in xsc3_l2_inv_all() local
49 for (way = 0; way < CACHE_WAY_PER_SET; way++) { in xsc3_l2_inv_all()
50 set_way = (way << 29) | (set << 5); in xsc3_l2_inv_all()
149 * optimize L2 flush all operation by set/way format
154 int set, way; in xsc3_l2_flush_all() local
159 for (way = 0; way < CACHE_WAY_PER_SET; way in xsc3_l2_flush_all()
[all...]
H A Dcache-v7m.S48 * dcisw: Invalidate data cache by set/way
55 * dccisw: Clean and invalidate data cache by set/way
198 ands r4, r4, r1, lsr #3 @ find maximum number on the way size
199 clz r5, r4 @ find bit position of way size increment
206 orr r11, r10, r6 @ factor way and cache number into r11
209 dccisw r11, r6 @ clean/invalidate by set/way
212 subs r4, r4, #1 @ decrement the way
H A Dcache-v7.S151 ands r4, r4, r1, lsr #3 @ find maximum number on the way size
152 clz r5, r4 @ find bit position of way size increment
158 ARM( orr r11, r10, r4, lsl r5 ) @ factor way and cache number into r11
160 THUMB( orr r11, r10, r6 ) @ factor way and cache number into r11
164 mcr p15, 0, r11, c7, c14, 2 @ clean & invalidate by set/way
167 subs r4, r4, #1 @ decrement the way
/kernel/linux/linux-6.6/arch/arm/mm/
H A Dcache-xsc3l2.c44 int set, way; in xsc3_l2_inv_all() local
49 for (way = 0; way < CACHE_WAY_PER_SET; way++) { in xsc3_l2_inv_all()
50 set_way = (way << 29) | (set << 5); in xsc3_l2_inv_all()
149 * optimize L2 flush all operation by set/way format
154 int set, way; in xsc3_l2_flush_all() local
159 for (way = 0; way < CACHE_WAY_PER_SET; way in xsc3_l2_flush_all()
[all...]
H A Dcache-v7m.S50 * dcisw: Invalidate data cache by set/way
57 * dccisw: Clean and invalidate data cache by set/way
200 ands r4, r4, r1, lsr #3 @ find maximum number on the way size
201 clz r5, r4 @ find bit position of way size increment
208 orr r11, r10, r6 @ factor way and cache number into r11
211 dccisw r11, r6 @ clean/invalidate by set/way
214 subs r4, r4, #1 @ decrement the way
H A Dcache-v7.S53 moveq r1, #1 @ r1 needs value > 0 even if only 1 way
152 ands r4, r4, r1, lsr #3 @ find maximum number on the way size
153 clz r5, r4 @ find bit position of way size increment
163 orr r5, r5, r4 @ factor way number into r5
165 mcr p15, 0, r5, c7, c14, 2 @ clean & invalidate by set/way
168 subs r4, r4, r6 @ decrement the way
/kernel/linux/linux-6.6/arch/arc/mm/
H A Dtlb.c175 * Flush the entire MM for userland. The fastest way is to move to Next ASID
204 * -Here the fastest way (if range is too large) is to move to next ASID
688 #define SET_WAY_TO_IDX(mmu, set, way) ((set) * mmu->ways + (way))
715 int is_valid, way; in do_tlb_overlap_fault() local
719 for (way = 0, is_valid = 0; way < n_ways; way++) { in do_tlb_overlap_fault()
721 SET_WAY_TO_IDX(mmu, set, way)); in do_tlb_overlap_fault()
723 pd0[way] in do_tlb_overlap_fault()
[all...]
/kernel/linux/linux-5.10/arch/arc/mm/
H A Dtlb.c62 * ARC700 MMU-v1 had a Joint-TLB for Code and Data and is 2 way set-assoc.
67 * Although J-TLB is 2 way set assoc, ARC700 caches J-TLB into uTLBS which has
275 * Flush the entire MM for userland. The fastest way is to move to Next ASID
304 * -Here the fastest way (if range is too large) is to move to next ASID
874 #define SET_WAY_TO_IDX(mmu, set, way) ((set) * mmu->ways + (way))
901 int is_valid, way; in do_tlb_overlap_fault() local
905 for (way = 0, is_valid = 0; way < n_ways; way in do_tlb_overlap_fault()
[all...]
/kernel/linux/linux-5.10/arch/mips/mm/
H A Dcerr-sb1.c321 unsigned short way; in extract_ic() local
330 for (way = 0; way < 4; way++) { in extract_ic()
344 : "r" ((way << 13) | addr)); in extract_ic()
347 if (way == 0) { in extract_ic()
377 way, va, valid, taghi, taglo); in extract_ic()
399 : "r" ((way << 13) | addr | (offset << 3))); in extract_ic()
477 int valid, way; in extract_dc() local
485 for (way in extract_dc()
[all...]
/kernel/linux/linux-6.6/arch/mips/mm/
H A Dcerr-sb1.c321 unsigned short way; in extract_ic() local
330 for (way = 0; way < 4; way++) { in extract_ic()
344 : "r" ((way << 13) | addr)); in extract_ic()
347 if (way == 0) { in extract_ic()
377 way, va, valid, taghi, taglo); in extract_ic()
399 : "r" ((way << 13) | addr | (offset << 3))); in extract_ic()
477 int valid, way; in extract_dc() local
485 for (way in extract_dc()
[all...]
/kernel/linux/linux-5.10/arch/mips/cavium-octeon/executive/
H A Dcvmx-l2c.c321 uint64_t way; in cvmx_l2c_lock_line() local
327 for (way = 0; way < assoc; way++) { in cvmx_l2c_lock_line()
328 CVMX_CACHE_LTGL2I(index | (way << shift), 0); in cvmx_l2c_lock_line()
337 if (way >= assoc) { in cvmx_l2c_lock_line()
347 return way; in cvmx_l2c_lock_line()
584 * @assoc: Association (way) of the tag to dump
831 * 0 0 16-way 2MB cache in cvmx_l2c_get_num_assoc()
832 * 0 1 12-way 1. in cvmx_l2c_get_num_assoc()
[all...]
/kernel/linux/linux-6.6/arch/mips/cavium-octeon/executive/
H A Dcvmx-l2c.c321 uint64_t way; in cvmx_l2c_lock_line() local
327 for (way = 0; way < assoc; way++) { in cvmx_l2c_lock_line()
328 CVMX_CACHE_LTGL2I(index | (way << shift), 0); in cvmx_l2c_lock_line()
337 if (way >= assoc) { in cvmx_l2c_lock_line()
347 return way; in cvmx_l2c_lock_line()
584 * @assoc: Association (way) of the tag to dump
830 * 0 0 16-way 2MB cache in cvmx_l2c_get_num_assoc()
831 * 0 1 12-way 1. in cvmx_l2c_get_num_assoc()
[all...]
/kernel/linux/linux-6.6/drivers/net/dsa/sja1105/
H A Dsja1105_main.c724 * way to perform the frame buffer partitioning. in sja1105_frame_memory_partitioning()
1110 /* This is the "new way" for a MAC driver to configure its RGMII delay lines,
1505 /* First-generation switches have a 4-way set associative TCAM that
1507 * a "bin" (grouping of 4 entries) and a "way" (an entry within a bin).
1509 * based on a hash function, and the way within that bin incrementally.
1511 static int sja1105et_fdb_index(int bin, int way) in sja1105et_fdb_index() argument
1513 return bin * SJA1105ET_FDB_BIN_SIZE + way; in sja1105et_fdb_index()
1521 int way; in sja1105et_is_fdb_entry_in_bin() local
1523 for (way = 0; way < SJA1105ET_FDB_BIN_SIZ in sja1105et_is_fdb_entry_in_bin()
1556 int bin, way, rc; sja1105et_fdb_add() local
1638 int index, bin, way, rc; sja1105et_fdb_del() local
[all...]
/kernel/linux/linux-5.10/arch/mips/dec/
H A Dint-handler.S306 move a1,t0 # cheats way of printing an arg!
310 move a1,t0 # cheats way of printing an arg!
/kernel/linux/linux-6.6/arch/mips/dec/
H A Dint-handler.S306 move a1,t0 # cheats way of printing an arg!
310 move a1,t0 # cheats way of printing an arg!

Completed in 15 milliseconds

1234