/linux-6.6.21/fs/udf/ |
D | directory.c | 19 static int udf_verify_fi(struct udf_fileident_iter *iter) in udf_verify_fi() argument 23 if (iter->fi.descTag.tagIdent != cpu_to_le16(TAG_IDENT_FID)) { in udf_verify_fi() 24 udf_err(iter->dir->i_sb, in udf_verify_fi() 26 iter->dir->i_ino, (unsigned long long)iter->pos, in udf_verify_fi() 27 le16_to_cpu(iter->fi.descTag.tagIdent)); in udf_verify_fi() 30 len = udf_dir_entry_len(&iter->fi); in udf_verify_fi() 31 if (le16_to_cpu(iter->fi.lengthOfImpUse) & 3) { in udf_verify_fi() 32 udf_err(iter->dir->i_sb, in udf_verify_fi() 34 iter->dir->i_ino, (unsigned long long)iter->pos); in udf_verify_fi() 42 if (len > 1 << iter->dir->i_blkbits) { in udf_verify_fi() [all …]
|
/linux-6.6.21/arch/x86/kvm/mmu/ |
D | tdp_iter.c | 12 static void tdp_iter_refresh_sptep(struct tdp_iter *iter) in tdp_iter_refresh_sptep() argument 14 iter->sptep = iter->pt_path[iter->level - 1] + in tdp_iter_refresh_sptep() 15 SPTE_INDEX(iter->gfn << PAGE_SHIFT, iter->level); in tdp_iter_refresh_sptep() 16 iter->old_spte = kvm_tdp_mmu_read_spte(iter->sptep); in tdp_iter_refresh_sptep() 23 void tdp_iter_restart(struct tdp_iter *iter) in tdp_iter_restart() argument 25 iter->yielded = false; in tdp_iter_restart() 26 iter->yielded_gfn = iter->next_last_level_gfn; in tdp_iter_restart() 27 iter->level = iter->root_level; in tdp_iter_restart() 29 iter->gfn = gfn_round_for_level(iter->next_last_level_gfn, iter->level); in tdp_iter_restart() 30 tdp_iter_refresh_sptep(iter); in tdp_iter_restart() [all …]
|
D | tdp_mmu.c | 207 struct tdp_iter *iter) in tdp_mmu_init_child_sp() argument 212 parent_sp = sptep_to_sp(rcu_dereference(iter->sptep)); in tdp_mmu_init_child_sp() 217 tdp_mmu_init_sp(child_sp, iter->sptep, iter->gfn, role); in tdp_mmu_init_child_sp() 529 struct tdp_iter *iter, in tdp_mmu_set_spte_atomic() argument 532 u64 *sptep = rcu_dereference(iter->sptep); in tdp_mmu_set_spte_atomic() 540 WARN_ON_ONCE(iter->yielded || is_removed_spte(iter->old_spte)); in tdp_mmu_set_spte_atomic() 551 if (!try_cmpxchg64(sptep, &iter->old_spte, new_spte)) in tdp_mmu_set_spte_atomic() 554 handle_changed_spte(kvm, iter->as_id, iter->gfn, iter->old_spte, in tdp_mmu_set_spte_atomic() 555 new_spte, iter->level, true); in tdp_mmu_set_spte_atomic() 561 struct tdp_iter *iter) in tdp_mmu_zap_spte_atomic() argument [all …]
|
/linux-6.6.21/lib/ |
D | interval_tree.c | 43 void interval_tree_span_iter_first(struct interval_tree_span_iter *iter, in interval_tree_span_iter_first() argument 48 iter->first_index = first_index; in interval_tree_span_iter_first() 49 iter->last_index = last_index; in interval_tree_span_iter_first() 50 iter->nodes[0] = NULL; in interval_tree_span_iter_first() 51 iter->nodes[1] = in interval_tree_span_iter_first() 53 if (!iter->nodes[1]) { in interval_tree_span_iter_first() 55 iter->start_hole = first_index; in interval_tree_span_iter_first() 56 iter->last_hole = last_index; in interval_tree_span_iter_first() 57 iter->is_hole = 1; in interval_tree_span_iter_first() 60 if (iter->nodes[1]->start > first_index) { in interval_tree_span_iter_first() [all …]
|
/linux-6.6.21/fs/iomap/ |
D | iter.c | 22 static inline int iomap_iter_advance(struct iomap_iter *iter) in iomap_iter_advance() argument 24 bool stale = iter->iomap.flags & IOMAP_F_STALE; in iomap_iter_advance() 27 if (iter->iomap.length) { in iomap_iter_advance() 28 if (iter->processed < 0) in iomap_iter_advance() 29 return iter->processed; in iomap_iter_advance() 30 if (!iter->processed && !stale) in iomap_iter_advance() 32 if (WARN_ON_ONCE(iter->processed > iomap_length(iter))) in iomap_iter_advance() 34 iter->pos += iter->processed; in iomap_iter_advance() 35 iter->len -= iter->processed; in iomap_iter_advance() 36 if (!iter->len) in iomap_iter_advance() [all …]
|
D | seek.c | 13 static loff_t iomap_seek_hole_iter(const struct iomap_iter *iter, in iomap_seek_hole_iter() argument 16 loff_t length = iomap_length(iter); in iomap_seek_hole_iter() 18 switch (iter->iomap.type) { in iomap_seek_hole_iter() 20 *hole_pos = mapping_seek_hole_data(iter->inode->i_mapping, in iomap_seek_hole_iter() 21 iter->pos, iter->pos + length, SEEK_HOLE); in iomap_seek_hole_iter() 22 if (*hole_pos == iter->pos + length) in iomap_seek_hole_iter() 26 *hole_pos = iter->pos; in iomap_seek_hole_iter() 37 struct iomap_iter iter = { in iomap_seek_hole() local 48 iter.len = size - pos; in iomap_seek_hole() 49 while ((ret = iomap_iter(&iter, ops)) > 0) in iomap_seek_hole() [all …]
|
/linux-6.6.21/arch/arm64/kvm/vgic/ |
D | vgic-debug.c | 36 static void iter_next(struct vgic_state_iter *iter) in iter_next() argument 38 if (iter->dist_id == 0) { in iter_next() 39 iter->dist_id++; in iter_next() 43 iter->intid++; in iter_next() 44 if (iter->intid == VGIC_NR_PRIVATE_IRQS && in iter_next() 45 ++iter->vcpu_id < iter->nr_cpus) in iter_next() 46 iter->intid = 0; in iter_next() 48 if (iter->intid >= (iter->nr_spis + VGIC_NR_PRIVATE_IRQS)) { in iter_next() 49 if (iter->lpi_idx < iter->nr_lpis) in iter_next() 50 iter->intid = iter->lpi_array[iter->lpi_idx]; in iter_next() [all …]
|
/linux-6.6.21/drivers/gpu/drm/ |
D | drm_displayid.c | 76 struct displayid_iter *iter) in displayid_iter_edid_begin() argument 78 memset(iter, 0, sizeof(*iter)); in displayid_iter_edid_begin() 80 iter->drm_edid = drm_edid; in displayid_iter_edid_begin() 84 displayid_iter_block(const struct displayid_iter *iter) in displayid_iter_block() argument 88 if (!iter->section) in displayid_iter_block() 91 block = (const struct displayid_block *)&iter->section[iter->idx]; in displayid_iter_block() 93 if (iter->idx + sizeof(*block) <= iter->length && in displayid_iter_block() 94 iter->idx + sizeof(*block) + block->num_bytes <= iter->length) in displayid_iter_block() 101 __displayid_iter_next(struct displayid_iter *iter) in __displayid_iter_next() argument 105 if (!iter->drm_edid) in __displayid_iter_next() [all …]
|
D | drm_vma_manager.c | 145 struct rb_node *iter; in drm_vma_offset_lookup_locked() local 148 iter = mgr->vm_addr_space_mm.interval_tree.rb_root.rb_node; in drm_vma_offset_lookup_locked() 151 while (likely(iter)) { in drm_vma_offset_lookup_locked() 152 node = rb_entry(iter, struct drm_mm_node, rb); in drm_vma_offset_lookup_locked() 155 iter = iter->rb_right; in drm_vma_offset_lookup_locked() 160 iter = iter->rb_left; in drm_vma_offset_lookup_locked() 246 struct rb_node **iter; in vma_node_allow() local 259 iter = &node->vm_files.rb_node; in vma_node_allow() 261 while (likely(*iter)) { in vma_node_allow() 262 parent = *iter; in vma_node_allow() [all …]
|
/linux-6.6.21/block/ |
D | t10-pi.c | 32 static blk_status_t t10_pi_generate(struct blk_integrity_iter *iter, in t10_pi_generate() argument 37 for (i = 0 ; i < iter->data_size ; i += iter->interval) { in t10_pi_generate() 38 struct t10_pi_tuple *pi = iter->prot_buf; in t10_pi_generate() 40 pi->guard_tag = fn(iter->data_buf, iter->interval); in t10_pi_generate() 44 pi->ref_tag = cpu_to_be32(lower_32_bits(iter->seed)); in t10_pi_generate() 48 iter->data_buf += iter->interval; in t10_pi_generate() 49 iter->prot_buf += iter->tuple_size; in t10_pi_generate() 50 iter->seed++; in t10_pi_generate() 56 static blk_status_t t10_pi_verify(struct blk_integrity_iter *iter, in t10_pi_verify() argument 63 for (i = 0 ; i < iter->data_size ; i += iter->interval) { in t10_pi_verify() [all …]
|
/linux-6.6.21/net/netlabel/ |
D | netlabel_addrlist.c | 49 struct netlbl_af4list *iter; in netlbl_af4list_search() local 51 list_for_each_entry_rcu(iter, head, list) in netlbl_af4list_search() 52 if (iter->valid && (addr & iter->mask) == iter->addr) in netlbl_af4list_search() 53 return iter; in netlbl_af4list_search() 74 struct netlbl_af4list *iter; in netlbl_af4list_search_exact() local 76 list_for_each_entry_rcu(iter, head, list) in netlbl_af4list_search_exact() 77 if (iter->valid && iter->addr == addr && iter->mask == mask) in netlbl_af4list_search_exact() 78 return iter; in netlbl_af4list_search_exact() 99 struct netlbl_af6list *iter; in netlbl_af6list_search() local 101 list_for_each_entry_rcu(iter, head, list) in netlbl_af6list_search() [all …]
|
D | netlabel_addrlist.h | 82 #define netlbl_af4list_foreach(iter, head) \ argument 83 for (iter = __af4list_valid((head)->next, head); \ 84 &iter->list != (head); \ 85 iter = __af4list_valid(iter->list.next, head)) 87 #define netlbl_af4list_foreach_rcu(iter, head) \ argument 88 for (iter = __af4list_valid_rcu((head)->next, head); \ 89 &iter->list != (head); \ 90 iter = __af4list_valid_rcu(iter->list.next, head)) 92 #define netlbl_af4list_foreach_safe(iter, tmp, head) \ argument 93 for (iter = __af4list_valid((head)->next, head), \ [all …]
|
/linux-6.6.21/include/linux/ |
D | bvec.h | 98 #define __bvec_iter_bvec(bvec, iter) (&(bvec)[(iter).bi_idx]) argument 101 #define mp_bvec_iter_page(bvec, iter) \ argument 102 (__bvec_iter_bvec((bvec), (iter))->bv_page) 104 #define mp_bvec_iter_len(bvec, iter) \ argument 105 min((iter).bi_size, \ 106 __bvec_iter_bvec((bvec), (iter))->bv_len - (iter).bi_bvec_done) 108 #define mp_bvec_iter_offset(bvec, iter) \ argument 109 (__bvec_iter_bvec((bvec), (iter))->bv_offset + (iter).bi_bvec_done) 111 #define mp_bvec_iter_page_idx(bvec, iter) \ argument 112 (mp_bvec_iter_offset((bvec), (iter)) / PAGE_SIZE) [all …]
|
D | radix-tree.h | 233 struct radix_tree_iter *iter, void __rcu **slot); 249 const struct radix_tree_iter *iter, unsigned int tag); 264 struct radix_tree_iter *iter, gfp_t gfp, 281 radix_tree_iter_init(struct radix_tree_iter *iter, unsigned long start) in radix_tree_iter_init() argument 291 iter->index = 0; in radix_tree_iter_init() 292 iter->next_index = start; in radix_tree_iter_init() 310 struct radix_tree_iter *iter, unsigned flags); 324 struct radix_tree_iter *iter, unsigned long index) in radix_tree_iter_lookup() argument 326 radix_tree_iter_init(iter, index); in radix_tree_iter_lookup() 327 return radix_tree_next_chunk(root, iter, RADIX_TREE_ITER_CONTIG); in radix_tree_iter_lookup() [all …]
|
/linux-6.6.21/arch/x86/kvm/ |
D | mtrr.c | 471 static bool mtrr_lookup_fixed_start(struct mtrr_iter *iter) in mtrr_lookup_fixed_start() argument 475 if (!fixed_mtrr_is_enabled(iter->mtrr_state)) in mtrr_lookup_fixed_start() 478 seg = fixed_mtrr_addr_to_seg(iter->start); in mtrr_lookup_fixed_start() 482 iter->fixed = true; in mtrr_lookup_fixed_start() 483 index = fixed_mtrr_addr_seg_to_range_index(iter->start, seg); in mtrr_lookup_fixed_start() 484 iter->index = index; in mtrr_lookup_fixed_start() 485 iter->seg = seg; in mtrr_lookup_fixed_start() 489 static bool match_var_range(struct mtrr_iter *iter, in match_var_range() argument 495 if (!(start >= iter->end || end <= iter->start)) { in match_var_range() 496 iter->range = range; in match_var_range() [all …]
|
/linux-6.6.21/kernel/ |
D | kallsyms.c | 627 static int get_ksymbol_mod(struct kallsym_iter *iter) in get_ksymbol_mod() argument 629 int ret = module_get_kallsym(iter->pos - kallsyms_num_syms, in get_ksymbol_mod() 630 &iter->value, &iter->type, in get_ksymbol_mod() 631 iter->name, iter->module_name, in get_ksymbol_mod() 632 &iter->exported); in get_ksymbol_mod() 634 iter->pos_mod_end = iter->pos; in get_ksymbol_mod() 646 static int get_ksymbol_ftrace_mod(struct kallsym_iter *iter) in get_ksymbol_ftrace_mod() argument 648 int ret = ftrace_mod_get_kallsym(iter->pos - iter->pos_mod_end, in get_ksymbol_ftrace_mod() 649 &iter->value, &iter->type, in get_ksymbol_ftrace_mod() 650 iter->name, iter->module_name, in get_ksymbol_ftrace_mod() [all …]
|
D | ucount.c | 233 struct ucounts *ucounts, *iter, *bad; in inc_ucount() local 236 for (iter = ucounts; iter; iter = tns->ucounts) { in inc_ucount() 238 tns = iter->ns; in inc_ucount() 240 if (!atomic_long_inc_below(&iter->ucount[type], max)) in inc_ucount() 245 bad = iter; in inc_ucount() 246 for (iter = ucounts; iter != bad; iter = iter->ns->ucounts) in inc_ucount() 247 atomic_long_dec(&iter->ucount[type]); in inc_ucount() 255 struct ucounts *iter; in dec_ucount() local 256 for (iter = ucounts; iter; iter = iter->ns->ucounts) { in dec_ucount() 257 long dec = atomic_long_dec_if_positive(&iter->ucount[type]); in dec_ucount() [all …]
|
/linux-6.6.21/drivers/gpu/drm/etnaviv/ |
D | etnaviv_dump.c | 67 static void etnaviv_core_dump_header(struct core_dump_iterator *iter, in etnaviv_core_dump_header() argument 70 struct etnaviv_dump_object_header *hdr = iter->hdr; in etnaviv_core_dump_header() 74 hdr->file_offset = cpu_to_le32(iter->data - iter->start); in etnaviv_core_dump_header() 75 hdr->file_size = cpu_to_le32(data_end - iter->data); in etnaviv_core_dump_header() 77 iter->hdr++; in etnaviv_core_dump_header() 78 iter->data += le32_to_cpu(hdr->file_size); in etnaviv_core_dump_header() 81 static void etnaviv_core_dump_registers(struct core_dump_iterator *iter, in etnaviv_core_dump_registers() argument 84 struct etnaviv_dump_registers *reg = iter->data; in etnaviv_core_dump_registers() 97 etnaviv_core_dump_header(iter, ETDUMP_BUF_REG, reg); in etnaviv_core_dump_registers() 100 static void etnaviv_core_dump_mmu(struct core_dump_iterator *iter, in etnaviv_core_dump_mmu() argument [all …]
|
/linux-6.6.21/drivers/gpu/drm/panfrost/ |
D | panfrost_dump.c | 61 static void panfrost_core_dump_header(struct panfrost_dump_iterator *iter, in panfrost_core_dump_header() argument 64 struct panfrost_dump_object_header *hdr = iter->hdr; in panfrost_core_dump_header() 68 hdr->file_offset = iter->data - iter->start; in panfrost_core_dump_header() 69 hdr->file_size = data_end - iter->data; in panfrost_core_dump_header() 71 iter->hdr++; in panfrost_core_dump_header() 72 iter->data += hdr->file_size; in panfrost_core_dump_header() 76 panfrost_core_dump_registers(struct panfrost_dump_iterator *iter, in panfrost_core_dump_registers() argument 80 struct panfrost_dump_registers *dumpreg = iter->data; in panfrost_core_dump_registers() 100 panfrost_core_dump_header(iter, PANFROSTDUMP_BUF_REG, dumpreg); in panfrost_core_dump_registers() 106 struct panfrost_dump_iterator iter; in panfrost_core_dump() local [all …]
|
/linux-6.6.21/kernel/trace/ |
D | trace_output.c | 25 enum print_line_t trace_print_bputs_msg_only(struct trace_iterator *iter) in trace_print_bputs_msg_only() argument 27 struct trace_seq *s = &iter->seq; in trace_print_bputs_msg_only() 28 struct trace_entry *entry = iter->ent; in trace_print_bputs_msg_only() 38 enum print_line_t trace_print_bprintk_msg_only(struct trace_iterator *iter) in trace_print_bprintk_msg_only() argument 40 struct trace_seq *s = &iter->seq; in trace_print_bprintk_msg_only() 41 struct trace_entry *entry = iter->ent; in trace_print_bprintk_msg_only() 51 enum print_line_t trace_print_printk_msg_only(struct trace_iterator *iter) in trace_print_printk_msg_only() argument 53 struct trace_seq *s = &iter->seq; in trace_print_printk_msg_only() 54 struct trace_entry *entry = iter->ent; in trace_print_printk_msg_only() 295 int trace_raw_output_prep(struct trace_iterator *iter, in trace_raw_output_prep() argument [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | iters_state_safety.c | 36 struct bpf_iter_num iter; in create_and_destroy() local 48 : __imm_ptr(iter), ITER_HELPERS in create_and_destroy() 59 struct bpf_iter_num iter; in create_and_forget_to_destroy_fail() local 68 : __imm_ptr(iter), ITER_HELPERS in create_and_forget_to_destroy_fail() 80 struct bpf_iter_num iter; in destroy_without_creating_fail() local 86 : __imm_ptr(iter), ITER_HELPERS in destroy_without_creating_fail() 97 struct bpf_iter_num iter; in compromise_iter_w_direct_write_fail() local 113 : __imm_ptr(iter), ITER_HELPERS in compromise_iter_w_direct_write_fail() 124 struct bpf_iter_num iter; in compromise_iter_w_direct_write_and_skip_destroy_fail() local 138 : __imm_ptr(iter), ITER_HELPERS in compromise_iter_w_direct_write_and_skip_destroy_fail() [all …]
|
D | bpf_iter_ksym.c | 32 struct kallsym_iter *iter = ctx->ksym; in dump_ksym() local 37 if (!iter) in dump_ksym() 45 BPF_SEQ_PRINTF(seq, "0x%x\n", iter->value - last_sym_value); in dump_ksym() 49 value = iter->show_value ? iter->value : 0; in dump_ksym() 53 type = iter->type; in dump_ksym() 55 if (iter->module_name[0]) { in dump_ksym() 56 type = iter->exported ? to_upper(type) : to_lower(type); in dump_ksym() 58 value, type, iter->name, iter->module_name); in dump_ksym() 60 BPF_SEQ_PRINTF(seq, "0x%llx %c %s ", value, type, iter->name); in dump_ksym() 62 if (!iter->pos_mod_end || iter->pos_mod_end > iter->pos) in dump_ksym() [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/ |
D | icm.h | 97 struct mlx4_icm_iter *iter) in mlx4_icm_first() argument 99 iter->icm = icm; in mlx4_icm_first() 100 iter->chunk = list_empty(&icm->chunk_list) ? in mlx4_icm_first() 103 iter->page_idx = 0; in mlx4_icm_first() 106 static inline int mlx4_icm_last(struct mlx4_icm_iter *iter) in mlx4_icm_last() argument 108 return !iter->chunk; in mlx4_icm_last() 111 static inline void mlx4_icm_next(struct mlx4_icm_iter *iter) in mlx4_icm_next() argument 113 if (++iter->page_idx >= iter->chunk->nsg) { in mlx4_icm_next() 114 if (iter->chunk->list.next == &iter->icm->chunk_list) { in mlx4_icm_next() 115 iter->chunk = NULL; in mlx4_icm_next() [all …]
|
/linux-6.6.21/drivers/net/can/spi/mcp251xfd/ |
D | mcp251xfd-dump.c | 44 static void mcp251xfd_dump_header(struct mcp251xfd_dump_iter *iter, in mcp251xfd_dump_header() argument 48 struct mcp251xfd_dump_object_header *hdr = iter->hdr; in mcp251xfd_dump_header() 51 len = data_end - iter->data; in mcp251xfd_dump_header() 57 hdr->offset = cpu_to_le32(iter->data - iter->start); in mcp251xfd_dump_header() 60 iter->hdr++; in mcp251xfd_dump_header() 61 iter->data += len; in mcp251xfd_dump_header() 65 struct mcp251xfd_dump_iter *iter) in mcp251xfd_dump_registers() argument 68 struct mcp251xfd_dump_object_reg *reg = iter->data; in mcp251xfd_dump_registers() 98 mcp251xfd_dump_header(iter, MCP251XFD_DUMP_OBJECT_TYPE_REG, reg); in mcp251xfd_dump_registers() 101 static void mcp251xfd_dump_ring(struct mcp251xfd_dump_iter *iter, in mcp251xfd_dump_ring() argument [all …]
|
/linux-6.6.21/tools/testing/radix-tree/ |
D | regression3.c | 34 struct radix_tree_iter iter; in regression3_test() local 44 radix_tree_for_each_tagged(slot, &root, &iter, 0, 0) { in regression3_test() 45 printv(2, "tagged %ld %p\n", iter.index, *slot); in regression3_test() 52 printv(2, "retry at %ld\n", iter.index); in regression3_test() 53 slot = radix_tree_iter_retry(&iter); in regression3_test() 60 radix_tree_for_each_slot(slot, &root, &iter, 0) { in regression3_test() 61 printv(2, "slot %ld %p\n", iter.index, *slot); in regression3_test() 67 printv(2, "retry at %ld\n", iter.index); in regression3_test() 68 slot = radix_tree_iter_retry(&iter); in regression3_test() 73 radix_tree_for_each_slot(slot, &root, &iter, 0) { in regression3_test() [all …]
|