Home
last modified time | relevance | path

Searched refs:walker (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.12.1/arch/x86/kvm/mmu/
Dpaging_tmpl.h199 struct guest_walker *walker, in FNAME()
212 for (level = walker->max_level; level >= walker->level; --level) { in FNAME()
213 pte = orig_pte = walker->ptes[level - 1]; in FNAME()
214 table_gfn = walker->table_gfn[level - 1]; in FNAME()
215 ptep_user = walker->ptep_user[level - 1]; in FNAME()
221 if (level == walker->level && write_fault && in FNAME()
246 if (unlikely(!walker->pte_writable[level - 1])) in FNAME()
254 walker->ptes[level - 1] = pte; in FNAME()
302 static int FNAME(walk_addr_generic)(struct guest_walker *walker, in FNAME()
326 walker->level = mmu->cpu_role.base.level; in FNAME()
[all …]
/linux-6.12.1/arch/arm64/kvm/hyp/
Dpgtable.c21 struct kvm_pgtable_walker *walker; member
140 struct kvm_pgtable_walker *walker = data->walker; in kvm_pgtable_visitor_cb() local
144 return walker->cb(ctx, visit); in kvm_pgtable_visitor_cb()
147 static bool kvm_pgtable_walk_continue(const struct kvm_pgtable_walker *walker, in kvm_pgtable_walk_continue() argument
161 return !(walker->flags & KVM_PGTABLE_WALK_HANDLE_FAULT); in kvm_pgtable_walk_continue()
173 enum kvm_pgtable_walk_flags flags = data->walker->flags; in __kvm_pgtable_visit()
174 kvm_pte_t *ptep = kvm_dereference_pteref(data->walker, pteref); in __kvm_pgtable_visit()
178 .arg = data->walker->arg, in __kvm_pgtable_visit()
211 if (!kvm_pgtable_walk_continue(data->walker, ret)) in __kvm_pgtable_visit()
222 if (!kvm_pgtable_walk_continue(data->walker, ret)) in __kvm_pgtable_visit()
[all …]
/linux-6.12.1/arch/arm64/include/asm/
Dkvm_pgtable.h347 static inline kvm_pte_t *kvm_dereference_pteref(struct kvm_pgtable_walker *walker, in kvm_dereference_pteref() argument
353 static inline int kvm_pgtable_walk_begin(struct kvm_pgtable_walker *walker) in kvm_pgtable_walk_begin() argument
359 if (walker->flags & KVM_PGTABLE_WALK_SHARED) in kvm_pgtable_walk_begin()
365 static inline void kvm_pgtable_walk_end(struct kvm_pgtable_walker *walker) {} in kvm_pgtable_walk_end() argument
376 static inline kvm_pte_t *kvm_dereference_pteref(struct kvm_pgtable_walker *walker, in kvm_dereference_pteref() argument
379 return rcu_dereference_check(pteref, !(walker->flags & KVM_PGTABLE_WALK_SHARED)); in kvm_dereference_pteref()
382 static inline int kvm_pgtable_walk_begin(struct kvm_pgtable_walker *walker) in kvm_pgtable_walk_begin() argument
384 if (walker->flags & KVM_PGTABLE_WALK_SHARED) in kvm_pgtable_walk_begin()
390 static inline void kvm_pgtable_walk_end(struct kvm_pgtable_walker *walker) in kvm_pgtable_walk_end() argument
392 if (walker->flags & KVM_PGTABLE_WALK_SHARED) in kvm_pgtable_walk_end()
[all …]
/linux-6.12.1/security/landlock/
Dtask.c38 const struct landlock_hierarchy *walker; in domain_scope_le() local
44 for (walker = child->hierarchy; walker; walker = walker->parent) { in domain_scope_le()
45 if (walker == parent->hierarchy) in domain_scope_le()
/linux-6.12.1/fs/ecryptfs/
Dsuper.c137 struct ecryptfs_global_auth_tok *walker; in ecryptfs_show_options() local
140 list_for_each_entry(walker, in ecryptfs_show_options()
143 if (walker->flags & ECRYPTFS_AUTH_TOK_FNEK) in ecryptfs_show_options()
144 seq_printf(m, ",ecryptfs_fnek_sig=%s", walker->sig); in ecryptfs_show_options()
146 seq_printf(m, ",ecryptfs_sig=%s", walker->sig); in ecryptfs_show_options()
Dkeystore.c491 struct ecryptfs_global_auth_tok *walker; in ecryptfs_find_global_auth_tok_for_sig() local
497 list_for_each_entry(walker, in ecryptfs_find_global_auth_tok_for_sig()
500 if (memcmp(walker->sig, sig, ECRYPTFS_SIG_SIZE_HEX)) in ecryptfs_find_global_auth_tok_for_sig()
503 if (walker->flags & ECRYPTFS_AUTH_TOK_INVALID) { in ecryptfs_find_global_auth_tok_for_sig()
508 rc = key_validate(walker->global_auth_tok_key); in ecryptfs_find_global_auth_tok_for_sig()
515 down_write(&(walker->global_auth_tok_key->sem)); in ecryptfs_find_global_auth_tok_for_sig()
517 walker->global_auth_tok_key, auth_tok); in ecryptfs_find_global_auth_tok_for_sig()
521 (*auth_tok_key) = walker->global_auth_tok_key; in ecryptfs_find_global_auth_tok_for_sig()
528 up_write(&(walker->global_auth_tok_key->sem)); in ecryptfs_find_global_auth_tok_for_sig()
531 walker->flags |= ECRYPTFS_AUTH_TOK_INVALID; in ecryptfs_find_global_auth_tok_for_sig()
[all …]
/linux-6.12.1/security/yama/
Dyama_lsm.c278 struct task_struct *walker = child; in task_is_descendant() local
286 while (walker->pid > 0) { in task_is_descendant()
287 if (!thread_group_leader(walker)) in task_is_descendant()
288 walker = rcu_dereference(walker->group_leader); in task_is_descendant()
289 if (walker == parent) { in task_is_descendant()
293 walker = rcu_dereference(walker->real_parent); in task_is_descendant()
/linux-6.12.1/lib/
Drhashtable.c323 struct rhashtable_walker *walker; in rhashtable_rehash_table() local
342 list_for_each_entry(walker, &old_tbl->walkers, list) in rhashtable_rehash_table()
343 walker->tbl = NULL; in rhashtable_rehash_table()
682 iter->walker.tbl = in rhashtable_walk_enter()
684 list_add(&iter->walker.list, &iter->walker.tbl->walkers); in rhashtable_walk_enter()
698 if (iter->walker.tbl) in rhashtable_walk_exit()
699 list_del(&iter->walker.list); in rhashtable_walk_exit()
731 if (iter->walker.tbl) in rhashtable_walk_start_check()
732 list_del(&iter->walker.list); in rhashtable_walk_start_check()
737 if (!iter->walker.tbl) { in rhashtable_walk_start_check()
[all …]
/linux-6.12.1/arch/arm64/kvm/hyp/nvhe/
Dsetup.c252 struct kvm_pgtable_walker walker = { in fix_host_ownership() local
262 ret = kvm_pgtable_walk(&pkvm_pgtable, start, reg->size, &walker); in fix_host_ownership()
272 struct kvm_pgtable_walker walker = { in fix_hyp_pgtable_refcnt() local
279 &walker); in fix_hyp_pgtable_refcnt()
Dmm.c296 struct kvm_pgtable_walker walker = { in create_fixmap_slot() local
302 return kvm_pgtable_walk(&pkvm_pgtable, addr, PAGE_SIZE, &walker); in create_fixmap_slot()
Dmem_protect.c598 struct kvm_pgtable_walker walker = { in check_page_state_range() local
604 return kvm_pgtable_walk(pgt, addr, size, &walker); in check_page_state_range()
/linux-6.12.1/drivers/media/test-drivers/vimc/
Dvimc-scaler.c341 u8 *walker = vscaler->src_frame; in vimc_scaler_fill_src_frame() local
356 memcpy(walker, &sink_frame[index], vscaler->hw.bpp); in vimc_scaler_fill_src_frame()
357 walker += vscaler->hw.bpp; in vimc_scaler_fill_src_frame()
/linux-6.12.1/arch/arm64/kvm/
Dptdump.c136 struct kvm_pgtable_walker walker = (struct kvm_pgtable_walker) { in kvm_ptdump_guest_show() local
145 ret = kvm_pgtable_walk(mmu->pgt, 0, BIT(mmu->pgt->ia_bits), &walker); in kvm_ptdump_guest_show()
/linux-6.12.1/include/linux/
Drhashtable-types.h128 struct rhashtable_walker walker; member
/linux-6.12.1/net/sched/
Dsch_cbs.c520 static void cbs_walk(struct Qdisc *sch, struct qdisc_walker *walker) in cbs_walk() argument
522 if (!walker->stop) { in cbs_walk()
523 tc_qdisc_stats_dump(sch, 1, walker); in cbs_walk()
Dsch_tbf.c581 static void tbf_walk(struct Qdisc *sch, struct qdisc_walker *walker) in tbf_walk() argument
583 if (!walker->stop) { in tbf_walk()
584 tc_qdisc_stats_dump(sch, 1, walker); in tbf_walk()
Dsch_red.c521 static void red_walk(struct Qdisc *sch, struct qdisc_walker *walker) in red_walk() argument
523 if (!walker->stop) { in red_walk()
524 tc_qdisc_stats_dump(sch, 1, walker); in red_walk()
Dsch_sfb.c660 static void sfb_walk(struct Qdisc *sch, struct qdisc_walker *walker) in sfb_walk() argument
662 if (!walker->stop) { in sfb_walk()
663 tc_qdisc_stats_dump(sch, 1, walker); in sfb_walk()
Dsch_netem.c1276 static void netem_walk(struct Qdisc *sch, struct qdisc_walker *walker) in netem_walk() argument
1278 if (!walker->stop) { in netem_walk()
1279 if (!tc_qdisc_stats_dump(sch, 1, walker)) in netem_walk()
Dsch_ingress.c44 static void ingress_walk(struct Qdisc *sch, struct qdisc_walker *walker) in ingress_walk() argument
/linux-6.12.1/tools/testing/selftests/landlock/
Dfs_test.c178 char *walker; in mkdir_parents() local
183 walker = strdup(path); in mkdir_parents()
184 ASSERT_NE(NULL, walker); in mkdir_parents()
185 parent = walker; in mkdir_parents()
186 for (i = 1; walker[i]; i++) { in mkdir_parents()
187 if (walker[i] != '/') in mkdir_parents()
189 walker[i] = '\0'; in mkdir_parents()
196 walker[i] = '/'; in mkdir_parents()
198 free(walker); in mkdir_parents()
225 char *walker; in remove_path() local
[all …]
/linux-6.12.1/kernel/
Dseccomp.c893 struct seccomp_filter *walker; in seccomp_attach_filter() local
899 for (walker = current->seccomp.filter; walker; walker = walker->prev) in seccomp_attach_filter()
900 total_insns += walker->prog->len + 4; /* 4 instr penalty */ in seccomp_attach_filter()
/linux-6.12.1/fs/gfs2/
Dbmap.c470 u64 max_len, gfs2_metadata_walker walker) in gfs2_walk_metadata() argument
500 status = walker(mp, ptrs); in gfs2_walk_metadata()
/linux-6.12.1/Documentation/mm/
Dmultigen_lru.rst166 A page table walker iterates ``lruvec_memcg()->mm_list`` and calls
/linux-6.12.1/Documentation/filesystems/
Dpath-lookup.txt144 pointers intact, so a concurrent list walker that is currently looking at

12