Home
last modified time | relevance | path

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

12345678910>>...31

/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.h35 unsigned long level : 3; member
49 int level; member
100 debug_entry_t *debug_event_common(debug_info_t *id, int level,
103 debug_entry_t *debug_exception_common(debug_info_t *id, int level,
133 static inline bool debug_level_enabled(debug_info_t *id, int level) in debug_level_enabled() argument
135 return level <= id->level; in debug_level_enabled()
151 static inline debug_entry_t *debug_event(debug_info_t *id, int level, in debug_event() argument
154 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) in debug_event()
156 return debug_event_common(id, level, data, length); in debug_event()
171 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/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/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()
31 iter->level = iter->root_level; in tdp_iter_restart()
33 iter->gfn = round_gfn_for_level(iter->next_last_level_gfn, iter->level); in tdp_iter_restart()
63 tdp_ptep_t spte_to_child_pt(u64 spte, int level) in spte_to_child_pt() argument
69 if (!is_shadow_present_pte(spte) || is_last_spte(spte, level)) in spte_to_child_pt()
83 if (iter->level == iter->min_level) in try_step_down()
92 child_pt = spte_to_child_pt(iter->old_spte, iter->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 …]
Dmmutrace.h37 __entry->gfn, role.level, \
89 TP_PROTO(u64 pte, int level),
90 TP_ARGS(pte, level),
94 __field(__u32, level)
99 __entry->level = level;
102 TP_printk("pte %llx level %u", __entry->pte, __entry->level)
334 TP_PROTO(int level, gfn_t gfn, u64 *sptep),
335 TP_ARGS(level, gfn, sptep),
341 __field(u8, level)
352 __entry->level = level;
[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 …]
/arch/arm64/boot/dts/rockchip/
Drockchip-pinconf.dtsi23 pcfg_pull_none_drv_level_0: pcfg-pull-none-drv-level-0 {
29 pcfg_pull_none_drv_level_1: pcfg-pull-none-drv-level-1 {
35 pcfg_pull_none_drv_level_2: pcfg-pull-none-drv-level-2 {
41 pcfg_pull_none_drv_level_3: pcfg-pull-none-drv-level-3 {
47 pcfg_pull_none_drv_level_4: pcfg-pull-none-drv-level-4 {
53 pcfg_pull_none_drv_level_5: pcfg-pull-none-drv-level-5 {
59 pcfg_pull_none_drv_level_6: pcfg-pull-none-drv-level-6 {
65 pcfg_pull_none_drv_level_7: pcfg-pull-none-drv-level-7 {
71 pcfg_pull_none_drv_level_8: pcfg-pull-none-drv-level-8 {
77 pcfg_pull_none_drv_level_9: pcfg-pull-none-drv-level-9 {
[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/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/arm64/kvm/hyp/
Dpgtable.c64 static bool kvm_block_mapping_supported(u64 addr, u64 end, u64 phys, u32 level) in kvm_block_mapping_supported() argument
66 u64 granule = kvm_granule_size(level); in kvm_block_mapping_supported()
68 if (!kvm_level_supports_block_mapping(level)) in kvm_block_mapping_supported()
80 static u32 kvm_pgtable_idx(struct kvm_pgtable_walk_data *data, u32 level) in kvm_pgtable_idx() argument
82 u64 shift = kvm_granule_shift(level); in kvm_pgtable_idx()
111 static bool kvm_pte_table(kvm_pte_t pte, u32 level) in kvm_pte_table() argument
113 if (level == KVM_PGTABLE_MAX_LEVELS - 1) in kvm_pte_table()
154 static kvm_pte_t kvm_init_valid_leaf_pte(u64 pa, kvm_pte_t attr, u32 level) in kvm_init_valid_leaf_pte() argument
157 u64 type = (level == KVM_PGTABLE_MAX_LEVELS - 1) ? KVM_PTE_TYPE_PAGE : in kvm_init_valid_leaf_pte()
168 u32 level, kvm_pte_t *ptep, in kvm_pgtable_visitor_cb() argument
[all …]
/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/mips/kernel/
Dcacheinfo.c11 leaf->level = c_level; \
82 int level = 1; in populate_cache_leaves() local
87 populate_cache(dcache, this_leaf, level, CACHE_TYPE_DATA); in populate_cache_leaves()
89 populate_cache(icache, this_leaf, level, CACHE_TYPE_INST); in populate_cache_leaves()
90 level++; in populate_cache_leaves()
92 populate_cache(dcache, this_leaf, level, CACHE_TYPE_UNIFIED); in populate_cache_leaves()
93 level++; in populate_cache_leaves()
99 populate_cache(vcache, this_leaf, level, CACHE_TYPE_UNIFIED); in populate_cache_leaves()
100 level++; in populate_cache_leaves()
106 populate_cache(scache, this_leaf, level, CACHE_TYPE_UNIFIED); in populate_cache_leaves()
[all …]
/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.h28 unsigned int level; in arch_kfence_init_pool() local
30 if (!lookup_address(addr, &level)) in arch_kfence_init_pool()
33 if (level != PG_LEVEL_4K) in arch_kfence_init_pool()
43 unsigned int level; in kfence_protect_page() local
44 pte_t *pte = lookup_address(addr, &level); in kfence_protect_page()
46 if (WARN_ON(!pte || level != PG_LEVEL_4K)) in kfence_protect_page()
/arch/powerpc/kernel/
Dcacheinfo.c122 int level; /* level not explicit in device tree */ member
145 static void cache_init(struct cache *cache, int type, int level, in cache_init() argument
149 cache->level = level; in cache_init()
156 static struct cache *new_cache(int type, int level, in new_cache() argument
163 cache_init(cache, type, level, ofnode, group_id); in new_cache()
186 pr_debug("freeing L%d %s cache for %pOFP\n", cache->level, in release_cache()
363 int level) in cache_do_one_devnode_unified() argument
365 pr_debug("creating L%d ucache for %pOFP\n", level, node); in cache_do_one_devnode_unified()
367 return new_cache(cache_is_unified_d(node), level, node, group_id); in cache_do_one_devnode_unified()
371 int level) in cache_do_one_devnode_split() argument
[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/s390/mm/
Ddump_pagetables.c70 int level; member
94 static void print_prot(struct seq_file *m, unsigned int pr, int level) in print_prot() argument
99 pt_dump_seq_printf(m, "%s ", level_name[level]); in print_prot()
128 static void note_page(struct ptdump_state *pt_st, unsigned long addr, int level, u64 val) in note_page() argument
141 if (level == 4 && (val & _PAGE_INVALID)) in note_page()
144 if (level != 4 && !val) in note_page()
147 if (level == -1) in note_page()
149 if (st->level == -1) { in note_page()
153 st->level = level; in note_page()
154 } else if (prot != st->current_prot || level != st->level || in note_page()
[all …]
/arch/powerpc/mm/ptdump/
Dptdump.c63 int level; member
198 static void note_page_update_state(struct pg_state *st, unsigned long addr, int level, u64 val) in note_page_update_state() argument
200 u64 flag = level >= 0 ? val & pg_level[level].mask : 0; in note_page_update_state()
203 st->level = level; in note_page_update_state()
214 static void note_page(struct ptdump_state *pt_st, unsigned long addr, int level, u64 val) in note_page() argument
216 u64 flag = level >= 0 ? val & pg_level[level].mask : 0; in note_page()
220 if (st->level == -1) { in note_page()
222 note_page_update_state(st, addr, level, val); in note_page()
230 } else if (flag != st->current_flags || level != st->level || in note_page()
239 if (pg_level[st->level].flag) in note_page()
[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 …]

12345678910>>...31