Home
last modified time | relevance | path

Searched refs:level (Results 1 – 25 of 729) sorted by relevance

12345678910>>...30

/arch/arm64/kernel/
Dcacheinfo.c15 #define CLIDR_CTYPE_SHIFT(level) (3 * (level - 1)) argument
16 #define CLIDR_CTYPE_MASK(level) (7 << CLIDR_CTYPE_SHIFT(level)) argument
17 #define CLIDR_CTYPE(clidr, level) \ argument
18 (((clidr) & CLIDR_CTYPE_MASK(level)) >> CLIDR_CTYPE_SHIFT(level))
29 static inline enum cache_type get_cache_type(int level) in get_cache_type() argument
33 if (level > MAX_CACHE_LEVEL) in get_cache_type()
36 return CLIDR_CTYPE(clidr, level); in get_cache_type()
40 enum cache_type type, unsigned int level) in ci_leaf_init() argument
42 this_leaf->level = level; in ci_leaf_init()
48 unsigned int ctype, level, leaves; in init_cache_level() local
[all …]
Dreturn_address.c17 unsigned int level; member
25 if (!data->level) { in save_return_addr()
29 --data->level; in save_return_addr()
35 void *return_address(unsigned int level) in return_address() argument
40 data.level = level + 2; in return_address()
48 if (!data.level) in return_address()
/arch/sparc/include/uapi/asm/
Dtraps.h101 #define BAD_TRAP_P(level) \ argument
102 ((level > SP_TRAP_WDOG && level < SP_TRAP_IRQ1) || \
103 (level > SP_TRAP_IACC && level < SP_TRAP_CPDIS) || \
104 (level > SP_TRAP_BADFL && level < SP_TRAP_CPEXP) || \
105 (level > SP_TRAP_DMM && level < SP_TRAP_IMM) || \
106 (level > SP_TRAP_IMM && level < SP_TRAP_SUNOS) || \
107 (level > SP_TRAP_LINUX && level < SP_TRAP_KBPT1))
110 #define HW_TRAP_P(level) ((level > 0) && (level < SP_TRAP_SUNOS)) argument
113 #define SW_TRAP_P(level) ((level >= SP_TRAP_SUNOS) && (level <= SP_TRAP_KBPT2)) argument
116 #define SCALL_TRAP_P(level) ((level == SP_TRAP_SUNOS) || \ argument
[all …]
/arch/sparc/kernel/
Dcpumap.c34 int level; member
52 struct cpuinfo_level level[CPUINFO_LVL_MAX]; member
96 static int cpuinfo_id(int cpu, int level) in cpuinfo_id() argument
100 switch (level) { in cpuinfo_id()
193 int n, id, cpu, prev_cpu, last_cpu, level; in build_cpuinfo_tree() local
202 memcpy(&new_tree->level, tmp_level, sizeof(tmp_level)); in build_cpuinfo_tree()
207 for (level = CPUINFO_LVL_PROC; level >= CPUINFO_LVL_ROOT; level--) { in build_cpuinfo_tree()
208 n = new_tree->level[level].start_index; in build_cpuinfo_tree()
210 level_rover[level] = n; in build_cpuinfo_tree()
213 id = cpuinfo_id(cpu, level); in build_cpuinfo_tree()
[all …]
/arch/s390/include/asm/
Ddebug.h34 unsigned long level : 3; member
48 int level; member
99 debug_entry_t *debug_event_common(debug_info_t *id, int level,
102 debug_entry_t *debug_exception_common(debug_info_t *id, int level,
132 static inline bool debug_level_enabled(debug_info_t *id, int level) in debug_level_enabled() argument
134 return level <= id->level; in debug_level_enabled()
150 static inline debug_entry_t *debug_event(debug_info_t *id, int level, in debug_event() argument
153 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) in debug_event()
155 return debug_event_common(id, level, data, length); in debug_event()
170 static inline debug_entry_t *debug_int_event(debug_info_t *id, int level, in debug_int_event() argument
[all …]
/arch/riscv/kernel/
Dcacheinfo.c27 static struct cacheinfo *get_cacheinfo(u32 level, enum cache_type type) in get_cacheinfo() argument
44 if (this_leaf->level == level && this_leaf->type == type) in get_cacheinfo()
51 uintptr_t get_cache_size(u32 level, enum cache_type type) in get_cache_size() argument
53 struct cacheinfo *this_leaf = get_cacheinfo(level, type); in get_cache_size()
58 uintptr_t get_cache_geometry(u32 level, enum cache_type type) in get_cache_geometry() argument
60 struct cacheinfo *this_leaf = get_cacheinfo(level, type); in get_cache_geometry()
68 unsigned int level, unsigned int size, in ci_leaf_init() argument
71 this_leaf->level = level; in ci_leaf_init()
93 struct device_node *node, unsigned int level) in fill_cacheinfo() argument
100 ci_leaf_init((*this_leaf)++, CACHE_TYPE_UNIFIED, level, size, sets, line_size); in fill_cacheinfo()
[all …]
/arch/x86/kvm/mmu/
Dtdp_iter.c13 iter->sptep = iter->pt_path[iter->level - 1] + in tdp_iter_refresh_sptep()
14 SHADOW_PT_INDEX(iter->gfn << PAGE_SHIFT, iter->level); in tdp_iter_refresh_sptep()
18 static gfn_t round_gfn_for_level(gfn_t gfn, int level) in round_gfn_for_level() argument
20 return gfn & -KVM_PAGES_PER_HPAGE(level); in round_gfn_for_level()
37 iter->level = root_level; in tdp_iter_start()
38 iter->pt_path[iter->level - 1] = root_pt; in tdp_iter_start()
40 iter->gfn = round_gfn_for_level(iter->next_last_level_gfn, iter->level); in tdp_iter_start()
51 u64 *spte_to_child_pt(u64 spte, int level) in spte_to_child_pt() argument
57 if (!is_shadow_present_pte(spte) || is_last_spte(spte, level)) in spte_to_child_pt()
71 if (iter->level == iter->min_level) in try_step_down()
[all …]
Dpaging_tmpl.h30 #define PT_INDEX(addr, level) PT64_INDEX(addr, level) argument
48 #define PT_INDEX(addr, level) PT32_INDEX(addr, level) argument
62 #define PT_INDEX(addr, level) PT64_INDEX(addr, level) argument
86 int level; member
141 static bool FNAME(is_rsvd_bits_set)(struct kvm_mmu *mmu, u64 gpte, int level) in FNAME()
143 return __is_rsvd_bits_set(&mmu->guest_rsvd_check, gpte, level) || in FNAME()
237 unsigned level, index; in FNAME() local
247 for (level = walker->max_level; level >= walker->level; --level) { in FNAME()
248 pte = orig_pte = walker->ptes[level - 1]; in FNAME()
249 table_gfn = walker->table_gfn[level - 1]; in FNAME()
[all …]
Dmmu_audit.c32 typedef void (*inspect_spte_fn) (struct kvm_vcpu *vcpu, u64 *sptep, int level);
35 inspect_spte_fn fn, int level) in __mmu_spte_walk() argument
42 fn(vcpu, ent + i, level); in __mmu_spte_walk()
45 !is_last_spte(ent[i], level)) { in __mmu_spte_walk()
49 __mmu_spte_walk(vcpu, child, fn, level - 1); in __mmu_spte_walk()
93 static void audit_mappings(struct kvm_vcpu *vcpu, u64 *sptep, int level) in audit_mappings() argument
103 if (level != PG_LEVEL_4K) { in audit_mappings()
105 "level = %d\n", sp, level); in audit_mappings()
110 if (!is_shadow_present_pte(*sptep) || !is_last_spte(*sptep, level)) in audit_mappings()
150 rmap_head = __gfn_to_rmap(gfn, rev_sp->role.level, slot); in inspect_spte_has_rmap()
[all …]
Dtdp_mmu.c126 int level) in page_role_for_level() argument
131 role.level = level; in page_role_for_level()
140 int level) in alloc_tdp_mmu_page() argument
148 sp->role.word = page_role_for_level(vcpu, level).word; in alloc_tdp_mmu_page()
196 u64 old_spte, u64 new_spte, int level);
203 static void handle_changed_spte_acc_track(u64 old_spte, u64 new_spte, int level) in handle_changed_spte_acc_track() argument
207 if (!is_shadow_present_pte(old_spte) || !is_last_spte(old_spte, level)) in handle_changed_spte_acc_track()
216 u64 old_spte, u64 new_spte, int level) in handle_changed_spte_dirty_log() argument
221 if (level > PG_LEVEL_4K) in handle_changed_spte_dirty_log()
246 u64 old_spte, u64 new_spte, int level) in __handle_changed_spte() argument
[all …]
Dpaging.h7 #define PT64_LVL_ADDR_MASK(level) \ argument
8 (GUEST_PT64_BASE_ADDR_MASK & ~((1ULL << (PAGE_SHIFT + (((level) - 1) \
10 #define PT64_LVL_OFFSET_MASK(level) \ argument
11 (GUEST_PT64_BASE_ADDR_MASK & ((1ULL << (PAGE_SHIFT + (((level) - 1) \
/arch/s390/kernel/
Dcache.c80 seq_printf(m, "level=%d ", cache->level); in show_cacheinfo()
91 static inline enum cache_type get_cache_type(struct cache_info *ci, int level) in get_cache_type() argument
93 if (level >= CACHE_MAX_LEVEL) in get_cache_type()
95 ci += level; in get_cache_type()
107 enum cache_type type, unsigned int level, int cpu) in ci_leaf_init() argument
115 this_leaf->level = level + 1; in ci_leaf_init()
117 this_leaf->coherency_line_size = ecag(EXTRACT_LINE_SIZE, level, ti); in ci_leaf_init()
118 this_leaf->ways_of_associativity = ecag(EXTRACT_ASSOCIATIVITY, level, ti); in ci_leaf_init()
119 this_leaf->size = ecag(EXTRACT_SIZE, level, ti); in ci_leaf_init()
131 unsigned int level = 0, leaves = 0; in init_cache_level() local
[all …]
/arch/powerpc/platforms/powernv/
Dopal-hmi.c38 static void print_core_checkstop_reason(const char *level, in print_core_checkstop_reason() argument
75 printk("%s Unknown Core check stop.\n", level); in print_core_checkstop_reason()
79 printk("%s CPU PIR: %08x\n", level, in print_core_checkstop_reason()
84 printk("%s [Unit: %-3s] %s\n", level, in print_core_checkstop_reason()
89 static void print_nx_checkstop_reason(const char *level, in print_nx_checkstop_reason() argument
126 printk("%s Unknown NX check stop.\n", level); in print_nx_checkstop_reason()
130 printk("%s NX checkstop on CHIP ID: %x\n", level, in print_nx_checkstop_reason()
135 printk("%s [Unit: %-3s] %s\n", level, in print_nx_checkstop_reason()
140 static void print_npu_checkstop_reason(const char *level, in print_npu_checkstop_reason() argument
150 printk("%s NPU checkstop on chip %x\n", level, in print_npu_checkstop_reason()
[all …]
/arch/arm64/kvm/hyp/
Dpgtable.c64 static u64 kvm_granule_shift(u32 level) in kvm_granule_shift() argument
67 return ARM64_HW_PGTABLE_LEVEL_SHIFT(level); in kvm_granule_shift()
70 static u64 kvm_granule_size(u32 level) in kvm_granule_size() argument
72 return BIT(kvm_granule_shift(level)); in kvm_granule_size()
82 static bool kvm_level_supports_block_mapping(u32 level) in kvm_level_supports_block_mapping() argument
88 return !(level == 0 || (PAGE_SIZE != SZ_4K && level == 1)); in kvm_level_supports_block_mapping()
91 static bool kvm_block_mapping_supported(u64 addr, u64 end, u64 phys, u32 level) in kvm_block_mapping_supported() argument
93 u64 granule = kvm_granule_size(level); in kvm_block_mapping_supported()
95 if (!kvm_level_supports_block_mapping(level)) in kvm_block_mapping_supported()
107 static u32 kvm_pgtable_idx(struct kvm_pgtable_walk_data *data, u32 level) in kvm_pgtable_idx() argument
[all …]
/arch/nds32/kernel/
Dcacheinfo.c9 enum cache_type type, unsigned int level) in ci_leaf_init() argument
13 this_leaf->level = level; in ci_leaf_init()
39 unsigned int level, idx; in populate_cache_leaves() local
43 for (idx = 0, level = 1; level <= this_cpu_ci->num_levels && in populate_cache_leaves()
44 idx < this_cpu_ci->num_leaves; idx++, level++) { in populate_cache_leaves()
45 ci_leaf_init(this_leaf++, CACHE_TYPE_DATA, level); in populate_cache_leaves()
46 ci_leaf_init(this_leaf++, CACHE_TYPE_INST, level); in populate_cache_leaves()
/arch/mips/include/asm/sn/
Dintr.h15 #define LOCAL_HUB_SEND_INTR(level) \ argument
16 LOCAL_HUB_S(PI_INT_PEND_MOD, (0x100 | (level)))
17 #define REMOTE_HUB_SEND_INTR(hub, level) \ argument
18 REMOTE_HUB_S((hub), PI_INT_PEND_MOD, (0x100 | (level)))
26 #define LOCAL_HUB_CLR_INTR(level) \ argument
28 LOCAL_HUB_S(PI_INT_PEND_MOD, (level)); \
32 #define REMOTE_HUB_CLR_INTR(hub, level) \ argument
36 REMOTE_HUB_S(__hub, PI_INT_PEND_MOD, (level)); \
/arch/arm/kernel/
Dreturn_address.c15 unsigned int level; member
23 if (!data->level) { in save_return_addr()
28 --data->level; in save_return_addr()
33 void *return_address(unsigned int level) in return_address() argument
38 data.level = level + 2; in return_address()
48 if (!data.level) in return_address()
/arch/arm/mach-s3c/
Dmach-rx1950.c165 { .volt = 4100, .cur = 156, .level = 100},
166 { .volt = 4050, .cur = 156, .level = 95},
167 { .volt = 4025, .cur = 141, .level = 90},
168 { .volt = 3995, .cur = 144, .level = 85},
169 { .volt = 3957, .cur = 162, .level = 80},
170 { .volt = 3931, .cur = 147, .level = 75},
171 { .volt = 3902, .cur = 147, .level = 70},
172 { .volt = 3863, .cur = 153, .level = 65},
173 { .volt = 3838, .cur = 150, .level = 60},
174 { .volt = 3800, .cur = 153, .level = 55},
[all …]
/arch/x86/include/asm/
Dkfence.h26 unsigned int level; in arch_kfence_init_pool() local
28 if (!lookup_address(addr, &level)) in arch_kfence_init_pool()
31 if (level != PG_LEVEL_4K) in arch_kfence_init_pool()
41 unsigned int level; in kfence_protect_page() local
42 pte_t *pte = lookup_address(addr, &level); in kfence_protect_page()
44 if (WARN_ON(!pte || level != PG_LEVEL_4K)) in kfence_protect_page()
/arch/s390/mm/
Ddump_pagetables.c61 int level; member
85 static void print_prot(struct seq_file *m, unsigned int pr, int level) in print_prot() argument
90 pt_dump_seq_printf(m, "%s ", level_name[level]); in print_prot()
119 static void note_page(struct ptdump_state *pt_st, unsigned long addr, int level, u64 val) in note_page() argument
132 if (level == 4 && (val & _PAGE_INVALID)) in note_page()
135 if (level != 4 && !val) in note_page()
138 if (level == -1) in note_page()
140 if (st->level == -1) { in note_page()
144 st->level = level; in note_page()
145 } else if (prot != st->current_prot || level != st->level || in note_page()
[all …]
/arch/arm64/kvm/vgic/
Dtrace.h11 TP_PROTO(unsigned long vcpu_id, __u32 irq, bool level),
12 TP_ARGS(vcpu_id, irq, level),
17 __field( bool, level )
23 __entry->level = level;
27 __entry->vcpu_id, __entry->irq, __entry->level)
/arch/powerpc/kernel/
Dcacheinfo.c122 int level; /* level not explicit in device tree */ member
144 static void cache_init(struct cache *cache, int type, int level, in cache_init() argument
148 cache->level = level; in cache_init()
154 static struct cache *new_cache(int type, int level, struct device_node *ofnode) in new_cache() argument
160 cache_init(cache, type, level, ofnode); in new_cache()
183 pr_debug("freeing L%d %s cache for %pOFP\n", cache->level, in release_cache()
355 static struct cache *cache_do_one_devnode_unified(struct device_node *node, int level) in cache_do_one_devnode_unified() argument
357 pr_debug("creating L%d ucache for %pOFP\n", level, node); in cache_do_one_devnode_unified()
359 return new_cache(cache_is_unified_d(node), level, node); in cache_do_one_devnode_unified()
363 int level) in cache_do_one_devnode_split() argument
[all …]
/arch/x86/mm/
Ddump_pagetables.c30 int level; member
179 static void printk_prot(struct seq_file *m, pgprotval_t pr, int level, bool dmsg) in printk_prot() argument
206 if (level <= 3 && pr & _PAGE_PSE) in printk_prot()
210 if ((level == 4 && pr & _PAGE_PAT) || in printk_prot()
211 ((level == 3 || level == 2) && pr & _PAGE_PAT_LARGE)) in printk_prot()
224 pt_dump_cont_printf(m, dmsg, "%s\n", level_name[level]); in printk_prot()
251 static void effective_prot(struct ptdump_state *pt_st, int level, u64 val) in effective_prot() argument
257 if (level > 0) { in effective_prot()
258 pgprotval_t higher_prot = st->prot_levels[level - 1]; in effective_prot()
266 st->prot_levels[level] = effective; in effective_prot()
[all …]
/arch/sh/boards/mach-dreamcast/
Dirq.c107 __u32 emr, esr, status, level; in systemasic_irq_demux() local
112 level = 0; in systemasic_irq_demux()
115 level = 1; in systemasic_irq_demux()
118 level = 2; in systemasic_irq_demux()
123 emr = EMR_BASE + (level << 4) + (level << 2); in systemasic_irq_demux()
124 esr = ESR_BASE + (level << 2); in systemasic_irq_demux()
133 irq = HW_EVENT_IRQ_BASE + j + (level << 5); in systemasic_irq_demux()
/arch/arm/
DKconfig.debug104 bool "Kernel low-level debugging functions (read help!)"
117 prompt "Kernel low-level debugging port"
121 bool "Kernel low-level debugging messages via Alpine UART0"
125 Say Y here if you want kernel low-level debugging support
129 bool "Kernel low-level debugging via asm9260 UART"
150 bool "Kernel low-level debugging on AT91RM9200, AT91SAM9, SAM9X60 DBGU"
154 Say Y here if you want kernel low-level debugging support
160 bool "Kernel low-level debugging on AT91SAM{9263,9G45,A5D3} DBGU"
164 Say Y here if you want kernel low-level debugging support
170 bool "Kernel low-level debugging on SAMA5D2 UART1"
[all …]

12345678910>>...30