way 142 arch/arc/include/asm/entry-arcv2.h ; Saving pt_regs->sp correctly requires some extra work due to the way way 20 arch/arc/include/asm/tlb-mmu1.h ; Calculate set index for 2-way MMU way 38 arch/arc/include/asm/tlb-mmu1.h or.nz r0,r0,1 ; set way bit way 45 arch/arc/include/asm/tlb-mmu1.h ; Faster than hack #1 in non-thrash case, but hard-coded for 2-way MMU way 82 arch/arc/mm/cache.c unsigned int pad:24, way:2, lsz:2, sz:4; way 84 arch/arc/mm/cache.c unsigned int sz:4, lsz:2, way:2, pad:24; way 895 arch/arc/mm/tlb.c #define SET_WAY_TO_IDX(mmu, set, way) ((set) * mmu->ways + (way)) way 922 arch/arc/mm/tlb.c int is_valid, way; way 926 arch/arc/mm/tlb.c for (way = 0, is_valid = 0; way < n_ways; way++) { way 928 arch/arc/mm/tlb.c SET_WAY_TO_IDX(mmu, set, way)); way 930 arch/arc/mm/tlb.c pd0[way] = read_aux_reg(ARC_REG_TLBPD0); way 931 arch/arc/mm/tlb.c is_valid |= pd0[way] & _PAGE_PRESENT; way 932 arch/arc/mm/tlb.c pd0[way] &= PAGE_MASK; way 940 arch/arc/mm/tlb.c for (way = 0; way < n_ways - 1; way++) { way 944 arch/arc/mm/tlb.c if (!pd0[way]) way 947 arch/arc/mm/tlb.c for (n = way + 1; n < n_ways; n++) { way 948 arch/arc/mm/tlb.c if (pd0[way] != pd0[n]) way 953 arch/arc/mm/tlb.c pd0[way], set, way, n); way 959 arch/arc/mm/tlb.c pd0[way] = 0; way 961 arch/arc/mm/tlb.c SET_WAY_TO_IDX(mmu, set, way)); way 44 arch/arm/mm/cache-xsc3l2.c int set, way; way 49 arch/arm/mm/cache-xsc3l2.c for (way = 0; way < CACHE_WAY_PER_SET; way++) { way 50 arch/arm/mm/cache-xsc3l2.c set_way = (way << 29) | (set << 5); way 154 arch/arm/mm/cache-xsc3l2.c int set, way; way 159 arch/arm/mm/cache-xsc3l2.c for (way = 0; way < CACHE_WAY_PER_SET; way++) { way 160 arch/arm/mm/cache-xsc3l2.c set_way = (way << 29) | (set << 5); way 290 arch/ia64/include/asm/pal.h way : 8, /* 23-16 way in the set way 303 arch/ia64/include/asm/pal.h way : 8, /* 23-16 way in the set way 326 arch/ia64/include/asm/pal.h #define pclid_read_way pclid_info_read.way way 335 arch/ia64/include/asm/pal.h #define pclid_write_way pclid_info_write.way way 505 arch/ia64/include/asm/pal.h way : 5, /* Way in which the way 640 arch/ia64/include/asm/pal.h way : 6, /* Way of structure */ way 725 arch/ia64/include/asm/pal.h #define pmci_cache_way pme_cache.way way 321 arch/mips/cavium-octeon/executive/cvmx-l2c.c uint64_t way; way 327 arch/mips/cavium-octeon/executive/cvmx-l2c.c for (way = 0; way < assoc; way++) { way 328 arch/mips/cavium-octeon/executive/cvmx-l2c.c CVMX_CACHE_LTGL2I(index | (way << shift), 0); way 337 arch/mips/cavium-octeon/executive/cvmx-l2c.c if (way >= assoc) { way 347 arch/mips/cavium-octeon/executive/cvmx-l2c.c return way; way 321 arch/mips/mm/cerr-sb1.c unsigned short way; way 330 arch/mips/mm/cerr-sb1.c for (way = 0; way < 4; way++) { way 344 arch/mips/mm/cerr-sb1.c : "r" ((way << 13) | addr)); way 347 arch/mips/mm/cerr-sb1.c if (way == 0) { way 377 arch/mips/mm/cerr-sb1.c way, va, valid, taghi, taglo); way 399 arch/mips/mm/cerr-sb1.c : "r" ((way << 13) | addr | (offset << 3))); way 477 arch/mips/mm/cerr-sb1.c int valid, way; way 485 arch/mips/mm/cerr-sb1.c for (way = 0; way < 4; way++) { way 498 arch/mips/mm/cerr-sb1.c : "r" ((way << 13) | addr)); way 502 arch/mips/mm/cerr-sb1.c if (way == 0) { way 515 arch/mips/mm/cerr-sb1.c way, pa, dc_state_str(state), state, taghi, taglo); way 549 arch/mips/mm/cerr-sb1.c : "r" ((way << 13) | addr | (offset << 3))); way 48 arch/nios2/mm/tlb.c unsigned int way; way 56 arch/nios2/mm/tlb.c for (way = 0; way < cpuinfo.tlb_num_ways; way++) { way 61 arch/nios2/mm/tlb.c tlbmisc = TLBMISC_RD | (way << TLBMISC_WAY_SHIFT); way 74 arch/nios2/mm/tlb.c (way << TLBMISC_WAY_SHIFT); way 127 arch/nios2/mm/tlb.c unsigned int way; way 137 arch/nios2/mm/tlb.c for (way = 0; way < cpuinfo.tlb_num_ways; way++) { way 141 arch/nios2/mm/tlb.c tlbmisc = TLBMISC_RD | (way << TLBMISC_WAY_SHIFT); way 149 arch/nios2/mm/tlb.c way, (pid_misc >> TLBMISC_PID_SHIFT)); way 151 arch/nios2/mm/tlb.c tlbmisc = TLBMISC_WE | (way << TLBMISC_WAY_SHIFT); way 170 arch/nios2/mm/tlb.c unsigned int way; way 181 arch/nios2/mm/tlb.c for (way = 0; way < cpuinfo.tlb_num_ways; way++) { way 186 arch/nios2/mm/tlb.c WRCTL(CTL_TLBMISC, TLBMISC_RD | (way << TLBMISC_WAY_SHIFT)); way 193 arch/nios2/mm/tlb.c way, way 221 arch/nios2/mm/tlb.c unsigned int way; way 230 arch/nios2/mm/tlb.c for (way = 0; way < cpuinfo.tlb_num_ways; way++) { way 234 arch/nios2/mm/tlb.c tlbmisc = TLBMISC_RD | (way << TLBMISC_WAY_SHIFT); way 241 arch/nios2/mm/tlb.c tlbmisc = TLBMISC_WE | (way << TLBMISC_WAY_SHIFT); way 270 arch/nios2/mm/tlb.c unsigned int way; way 283 arch/nios2/mm/tlb.c for (way = 0; way < cpuinfo.tlb_num_ways; way++) way 29 arch/sh/mm/cache-debugfs.c unsigned int waysize, way; way 66 arch/sh/mm/cache-debugfs.c for (way = 0; way < cache->ways; way++) { way 71 arch/sh/mm/cache-debugfs.c seq_printf(file, "Way %d\n", way); way 28 arch/sh/mm/cache-sh2.c int way; way 29 arch/sh/mm/cache-sh2.c for (way = 0; way < 4; way++) { way 30 arch/sh/mm/cache-sh2.c unsigned long data = __raw_readl(addr | (way << 12)); way 33 arch/sh/mm/cache-sh2.c __raw_writel(data, addr | (way << 12)); way 26 arch/sh/mm/cache-sh2a.c static void sh2a_flush_oc_line(unsigned long v, int way) way 28 arch/sh/mm/cache-sh2a.c unsigned long addr = (v & 0x000007f0) | (way << 11); way 76 arch/sh/mm/cache-sh2a.c int way; way 77 arch/sh/mm/cache-sh2a.c for (way = 0; way < nr_ways; way++) { way 79 arch/sh/mm/cache-sh2a.c sh2a_flush_oc_line(v, way); way 106 arch/sh/mm/cache-sh2a.c int way; way 108 arch/sh/mm/cache-sh2a.c for (way = 0; way < nr_ways; way++) way 109 arch/sh/mm/cache-sh2a.c sh2a_flush_oc_line(v, way); way 6 arch/x86/boot/code16gcc.h # This is done this way instead via asm() to make sure gcc does not reorder way 130 arch/xtensa/include/asm/tlbflush.h static inline void write_dtlb_entry (pte_t entry, int way) way 133 arch/xtensa/include/asm/tlbflush.h : : "r" (way), "r" (entry) ); way 136 arch/xtensa/include/asm/tlbflush.h static inline void write_itlb_entry (pte_t entry, int way) way 139 arch/xtensa/include/asm/tlbflush.h : : "r" (way), "r" (entry) ); way 176 arch/xtensa/include/asm/tlbflush.h static inline unsigned long read_dtlb_virtual (int way) way 179 arch/xtensa/include/asm/tlbflush.h __asm__ __volatile__("rdtlb0 %0, %1\n\t" : "=a" (tmp), "+a" (way)); way 183 arch/xtensa/include/asm/tlbflush.h static inline unsigned long read_dtlb_translation (int way) way 186 arch/xtensa/include/asm/tlbflush.h __asm__ __volatile__("rdtlb1 %0, %1\n\t" : "=a" (tmp), "+a" (way)); way 190 arch/xtensa/include/asm/tlbflush.h static inline unsigned long read_itlb_virtual (int way) way 193 arch/xtensa/include/asm/tlbflush.h __asm__ __volatile__("ritlb0 %0, %1\n\t" : "=a" (tmp), "+a" (way)); way 197 arch/xtensa/include/asm/tlbflush.h static inline unsigned long read_itlb_translation (int way) way 200 arch/xtensa/include/asm/tlbflush.h __asm__ __volatile__("ritlb1 %0, %1\n\t" : "=a" (tmp), "+a" (way)); way 319 drivers/edac/i5100_edac.c unsigned way[2]; way 817 drivers/edac/i5100_edac.c priv->mir[0].way[1] = i5100_mir_way1(w); way 818 drivers/edac/i5100_edac.c priv->mir[0].way[0] = i5100_mir_way0(w); way 822 drivers/edac/i5100_edac.c priv->mir[1].way[1] = i5100_mir_way1(w); way 823 drivers/edac/i5100_edac.c priv->mir[1].way[0] = i5100_mir_way0(w); way 954 drivers/net/dsa/sja1105/sja1105_main.c static inline int sja1105et_fdb_index(int bin, int way) way 956 drivers/net/dsa/sja1105/sja1105_main.c return bin * SJA1105ET_FDB_BIN_SIZE + way; way 964 drivers/net/dsa/sja1105/sja1105_main.c int way; way 966 drivers/net/dsa/sja1105/sja1105_main.c for (way = 0; way < SJA1105ET_FDB_BIN_SIZE; way++) { way 968 drivers/net/dsa/sja1105/sja1105_main.c int index = sja1105et_fdb_index(bin, way); way 976 drivers/net/dsa/sja1105/sja1105_main.c *last_unused = way; way 984 drivers/net/dsa/sja1105/sja1105_main.c return way; way 998 drivers/net/dsa/sja1105/sja1105_main.c int bin, way, rc; way 1002 drivers/net/dsa/sja1105/sja1105_main.c way = sja1105et_is_fdb_entry_in_bin(priv, bin, addr, vid, way 1004 drivers/net/dsa/sja1105/sja1105_main.c if (way >= 0) { way 1013 drivers/net/dsa/sja1105/sja1105_main.c int index = sja1105et_fdb_index(bin, way); way 1023 drivers/net/dsa/sja1105/sja1105_main.c way = last_unused; way 1031 drivers/net/dsa/sja1105/sja1105_main.c get_random_bytes(&way, sizeof(u8)); way 1032 drivers/net/dsa/sja1105/sja1105_main.c way %= SJA1105ET_FDB_BIN_SIZE; way 1034 drivers/net/dsa/sja1105/sja1105_main.c bin, addr, way); way 1040 drivers/net/dsa/sja1105/sja1105_main.c l2_lookup.index = sja1105et_fdb_index(bin, way); way 1056 drivers/net/dsa/sja1105/sja1105_main.c int index, bin, way, rc; way 1060 drivers/net/dsa/sja1105/sja1105_main.c way = sja1105et_is_fdb_entry_in_bin(priv, bin, addr, vid, way 1062 drivers/net/dsa/sja1105/sja1105_main.c if (way < 0) way 1064 drivers/net/dsa/sja1105/sja1105_main.c index = sja1105et_fdb_index(bin, way); way 359 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c void mvpp2_cls_lookup_read(struct mvpp2 *priv, int lkpid, int way, way 364 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c val = (way << MVPP2_CLS_LKP_INDEX_WAY_OFFS) | lkpid; way 366 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c le->way = way; way 377 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c val = (le->way << MVPP2_CLS_LKP_INDEX_WAY_OFFS) | le->lkpid; way 478 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c le.way = 0; way 923 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c le.way = 0; way 926 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c le.way = 1; way 961 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c le.way = 0; way 258 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h u32 way; way 297 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h void mvpp2_cls_lookup_read(struct mvpp2 *priv, int lkpid, int way,