/linux-6.3-rc2/fs/udf/ |
A D | directory.c | 119 iter->name = iter->namebuf; in udf_copy_fi() 139 if (iter->loffset + ralen > (iter->elen >> iter->dir->i_blkbits)) in udf_readahead_dir() 140 ralen = (iter->elen >> iter->dir->i_blkbits) - iter->loffset; in udf_readahead_dir() 178 if (udf_next_aext(iter->dir, &iter->epos, &iter->eloc, &iter->elen, 1) in udf_fiiter_advance_blk() 200 if (!iter->bh[0] && iter->elen) { in udf_fiiter_load_bhs() 238 iter->bh[0] = iter->bh[1] = NULL; in udf_fiiter_load_bhs() 267 &iter->eloc, &iter->elen, &iter->loffset) != in udf_fiiter_init() 302 iter->bh[0] = iter->bh[1]; in udf_fiiter_advance() 425 iter->name == iter->namebuf ? iter->name : NULL); in udf_fiiter_write_fi() 450 udf_write_aext(iter->dir, &iter->epos, &iter->eloc, iter->elen, 1); in udf_fiiter_update_elen() [all …]
|
/linux-6.3-rc2/arch/x86/kvm/mmu/ |
A D | tdp_iter.c | 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() 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() 81 if (iter->level == iter->min_level) in try_step_down() 95 iter->pt_path[iter->level - 1] = child_pt; in try_step_down() 96 iter->gfn = gfn_round_for_level(iter->next_last_level_gfn, iter->level); in try_step_down() 120 iter->next_last_level_gfn = iter->gfn; in try_step_side() 134 if (iter->level == iter->root_level) in try_step_up() [all …]
|
A D | tdp_mmu.c | 661 __handle_changed_spte(kvm, iter->as_id, iter->gfn, iter->old_spte, in tdp_mmu_set_spte_atomic() 754 iter->old_spte = __tdp_mmu_set_spte(kvm, iter->as_id, iter->sptep, in _tdp_mmu_set_spte() 756 iter->gfn, iter->level, in _tdp_mmu_set_spte() 830 WARN_ON(iter->gfn > iter->next_last_level_gfn); in tdp_mmu_iter_cond_resched() 958 !is_last_spte(iter.old_spte, iter.level)) in tdp_mmu_zap_leafs() 1081 !is_last_spte(iter->old_spte, iter->level)) in tdp_mmu_map_handle_target_level() 1101 trace_kvm_mmu_set_spte(iter->level, iter->gfn, in tdp_mmu_map_handle_target_level() 1379 !is_last_spte(iter.old_spte, iter.level) || in wrprot_gfn_range() 1756 if (is_last_spte(iter.old_spte, iter.level)) in zap_collapsible_spte_range() 1766 if (iter.gfn < start || iter.gfn >= end) in zap_collapsible_spte_range() [all …]
|
/linux-6.3-rc2/lib/ |
A D | interval_tree.c | 63 iter->last_hole = iter->nodes[1]->start - 1; in interval_tree_span_iter_first() 73 iter->last_used = iter->nodes[0]->last; in interval_tree_span_iter_first() 84 if (!iter->nodes[0] && !iter->nodes[1]) { in interval_tree_span_iter_next() 90 iter->start_used = iter->last_hole + 1; in interval_tree_span_iter_next() 91 iter->last_used = iter->nodes[0]->last; in interval_tree_span_iter_next() 92 if (iter->last_used >= iter->last_index) { in interval_tree_span_iter_next() 93 iter->last_used = iter->last_index; in interval_tree_span_iter_next() 103 iter->start_hole = iter->nodes[0]->last + 1; in interval_tree_span_iter_next() 104 iter->last_hole = iter->last_index; in interval_tree_span_iter_next() 111 iter->start_hole = iter->nodes[0]->last + 1; in interval_tree_span_iter_next() [all …]
|
/linux-6.3-rc2/fs/iomap/ |
A D | iter.c | 34 iter->pos += iter->processed; in iomap_iter_advance() 35 iter->len -= iter->processed; in iomap_iter_advance() 42 memset(&iter->iomap, 0, sizeof(iter->iomap)); in iomap_iter_advance() 43 memset(&iter->srcmap, 0, sizeof(iter->srcmap)); in iomap_iter_advance() 49 WARN_ON_ONCE(iter->iomap.offset > iter->pos); in iomap_iter_done() 51 WARN_ON_ONCE(iter->iomap.offset + iter->iomap.length <= iter->pos); in iomap_iter_done() 79 ret = ops->iomap_end(iter->inode, iter->pos, iomap_length(iter), in iomap_iter() 80 iter->processed > 0 ? iter->processed : 0, in iomap_iter() 81 iter->flags, &iter->iomap); in iomap_iter() 91 ret = ops->iomap_begin(iter->inode, iter->pos, iter->len, iter->flags, in iomap_iter() [all …]
|
A D | seek.c | 18 switch (iter->iomap.type) { in iomap_seek_hole_iter() 21 iter->pos, iter->pos + length, SEEK_HOLE); 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() 50 iter.processed = iomap_seek_hole_iter(&iter, &pos); in iomap_seek_hole() 69 iter->pos, iter->pos + length, SEEK_DATA); in iomap_seek_data_iter() 74 *hole_pos = iter->pos; in iomap_seek_data_iter() 83 struct iomap_iter iter = { in iomap_seek_data() local 94 iter.len = size - pos; in iomap_seek_data() [all …]
|
/linux-6.3-rc2/arch/arm64/kvm/vgic/ |
A D | vgic-debug.c | 45 ++iter->vcpu_id < iter->nr_cpus) 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() 60 memset(iter, 0, sizeof(*iter)); in iter_init() 78 iter->vcpu_id == iter->nr_cpus && in end_of_vgic() 80 iter->lpi_idx > iter->nr_lpis; in end_of_vgic() 89 iter = kvm->arch.vgic.iter; in vgic_debug_start() 95 iter = kmalloc(sizeof(*iter), GFP_KERNEL); in vgic_debug_start() 102 kvm->arch.vgic.iter = iter; in vgic_debug_start() 136 iter = kvm->arch.vgic.iter; in vgic_debug_stop() [all …]
|
/linux-6.3-rc2/block/ |
A D | t10-pi.c | 37 for (i = 0 ; i < iter->data_size ; i += iter->interval) { in t10_pi_generate() 40 pi->guard_tag = fn(iter->data_buf, iter->interval); 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() 86 csum = fn(iter->data_buf, iter->interval); in t10_pi_verify() 97 iter->data_buf += iter->interval; in t10_pi_verify() 98 iter->prot_buf += iter->tuple_size; in t10_pi_verify() 304 iter->data_buf += iter->interval; in ext_pi_crc64_generate() 305 iter->prot_buf += iter->tuple_size; in ext_pi_crc64_generate() 356 iter->data_buf += iter->interval; in ext_pi_crc64_verify() [all …]
|
/linux-6.3-rc2/net/netlabel/ |
A D | netlabel_addrlist.c | 52 if (iter->valid && (addr & iter->mask) == iter->addr) in netlbl_af4list_search() 53 return iter; in netlbl_af4list_search() 77 if (iter->valid && iter->addr == addr && iter->mask == mask) in netlbl_af4list_search_exact() 78 return iter; in netlbl_af4list_search_exact() 102 if (iter->valid && in netlbl_af6list_search() 103 ipv6_masked_addr_cmp(&iter->addr, &iter->mask, addr) == 0) in netlbl_af6list_search() 104 return iter; in netlbl_af6list_search() 128 if (iter->valid && in netlbl_af6list_search_exact() 131 return iter; in netlbl_af6list_search_exact() 154 iter->addr == entry->addr && iter->mask == entry->mask) in netlbl_af4list_add() [all …]
|
A D | netlabel_addrlist.h | 84 &iter->list != (head); \ 85 iter = __af4list_valid(iter->list.next, head)) 89 &iter->list != (head); \ 90 iter = __af4list_valid_rcu(iter->list.next, head)) 95 &iter->list != (head); \ 96 iter = tmp, tmp = __af4list_valid(iter->list.next, head)) 151 &iter->list != (head); \ 152 iter = __af6list_valid(iter->list.next, head)) 156 &iter->list != (head); \ 157 iter = __af6list_valid_rcu(iter->list.next, head)) [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | bvec.h | 98 #define __bvec_iter_bvec(bvec, iter) (&(bvec)[(iter).bi_idx]) argument 105 min((iter).bi_size, \ 106 __bvec_iter_bvec((bvec), (iter))->bv_len - (iter).bi_bvec_done) 109 (__bvec_iter_bvec((bvec), (iter))->bv_offset + (iter).bi_bvec_done) 147 iter->bi_size = 0; in bvec_iter_advance() 151 iter->bi_size -= bytes; in bvec_iter_advance() 159 iter->bi_idx = idx; in bvec_iter_advance() 160 iter->bi_bvec_done = bytes; in bvec_iter_advance() 175 iter->bi_idx++; in bvec_iter_advance_single() 177 iter->bi_bvec_done = done; in bvec_iter_advance_single() [all …]
|
A D | radix-tree.h | 291 iter->index = 0; in radix_tree_iter_init() 292 iter->next_index = start; in radix_tree_iter_init() 342 iter->next_index = iter->index; in radix_tree_iter_retry() 343 iter->tags = 0; in radix_tree_iter_retry() 375 return iter->next_index - iter->index; in radix_tree_chunk_size() 401 iter->tags >>= 1; in radix_tree_next_slot() 405 iter->index = __radix_tree_iter_add(iter, 1); in radix_tree_next_slot() 412 iter->tags >>= offset++; in radix_tree_next_slot() 413 iter->index = __radix_tree_iter_add(iter, offset); in radix_tree_next_slot() 422 iter->index = __radix_tree_iter_add(iter, 1); in radix_tree_next_slot() [all …]
|
/linux-6.3-rc2/kernel/ |
A D | kallsyms.c | 672 &iter->value, &iter->type, in get_ksymbol_arch() 676 iter->pos_arch_end = iter->pos; in get_ksymbol_arch() 686 &iter->value, &iter->type, in get_ksymbol_mod() 687 iter->name, iter->module_name, in get_ksymbol_mod() 690 iter->pos_mod_end = iter->pos; in get_ksymbol_mod() 705 &iter->value, &iter->type, in get_ksymbol_ftrace_mod() 706 iter->name, iter->module_name, in get_ksymbol_ftrace_mod() 723 &iter->value, &iter->type, in get_ksymbol_bpf() 726 iter->pos_bpf_end = iter->pos; in get_ksymbol_bpf() 743 &iter->value, &iter->type, in get_ksymbol_kprobe() [all …]
|
A D | ucount.c | 235 for (iter = ucounts; iter; iter = tns->ucounts) { in inc_ucount() 237 tns = iter->ns; in inc_ucount() 244 bad = iter; in inc_ucount() 245 for (iter = ucounts; iter != bad; iter = iter->ns->ucounts) in inc_ucount() 255 for (iter = ucounts; iter; iter = iter->ns->ucounts) { in dec_ucount() 268 for (iter = ucounts; iter; iter = iter->ns->ucounts) { in inc_rlimit_ucounts() 283 for (iter = ucounts; iter; iter = iter->ns->ucounts) { in dec_rlimit_ucounts() 296 for (iter = ucounts; iter != last; iter = next) { in do_dec_rlimit_put_ucounts() 301 put_ucounts(iter); in do_dec_rlimit_put_ucounts() 317 for (iter = ucounts; iter; iter = iter->ns->ucounts) { in inc_rlimit_get_ucounts() [all …]
|
/linux-6.3-rc2/arch/x86/kvm/ |
A D | mtrr.c | 497 if (!(start >= iter->end || end <= iter->start)) { in match_var_range() 505 iter->partial_map |= iter->start_max < start; in match_var_range() 508 iter->start_max = max(iter->start_max, end); in match_var_range() 520 if (match_var_range(iter, iter->range)) in __mtrr_lookup_var_next() 524 iter->partial_map |= iter->start_max < iter->end; in __mtrr_lookup_var_next() 532 iter->start_max = iter->start; in mtrr_lookup_var_start() 542 if (fixed_mtrr_range_end_addr(iter->seg, iter->index) >= iter->end) { in mtrr_lookup_fixed_next() 548 iter->index++; in mtrr_lookup_fixed_next() 556 iter->seg++; in mtrr_lookup_fixed_next() 592 iter->mem_type = iter->mtrr_state->fixed_ranges[iter->index]; in mtrr_lookup_okay() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/ |
A D | drm_displayid.c | 64 memset(iter, 0, sizeof(*iter)); in displayid_iter_edid_begin() 74 if (!iter->section) in displayid_iter_block() 77 block = (const struct displayid_block *)&iter->section[iter->idx]; in displayid_iter_block() 79 if (iter->idx + sizeof(*block) <= iter->length && in displayid_iter_block() 80 iter->idx + sizeof(*block) + block->num_bytes <= iter->length) in displayid_iter_block() 91 if (!iter->drm_edid) in __displayid_iter_next() 94 if (iter->section) { in __displayid_iter_next() 112 iter->section = drm_find_displayid_extension(iter->drm_edid, in __displayid_iter_next() 114 &iter->idx, in __displayid_iter_next() 116 if (!iter->section) { in __displayid_iter_next() [all …]
|
A D | drm_vma_manager.c | 145 struct rb_node *iter; in drm_vma_offset_lookup_locked() local 155 iter = iter->rb_right; in drm_vma_offset_lookup_locked() 160 iter = iter->rb_left; in drm_vma_offset_lookup_locked() 262 parent = *iter; in vma_node_allow() 270 iter = &(*iter)->rb_right; in vma_node_allow() 272 iter = &(*iter)->rb_left; in vma_node_allow() 375 iter = iter->rb_right; in drm_vma_node_revoke() 377 iter = iter->rb_left; in drm_vma_node_revoke() 412 iter = iter->rb_right; in drm_vma_node_is_allowed() 414 iter = iter->rb_left; in drm_vma_node_is_allowed() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/etnaviv/ |
A D | etnaviv_dump.c | 74 hdr->file_offset = cpu_to_le32(iter->data - iter->start); in etnaviv_core_dump_header() 77 iter->hdr++; in etnaviv_core_dump_header() 105 etnaviv_core_dump_header(iter, ETDUMP_BUF_MMU, iter->data + mmu_size); in etnaviv_core_dump_mmu() 115 etnaviv_core_dump_header(iter, type, iter->data + size); in etnaviv_core_dump_mem() 164 if (!iter.start) { in etnaviv_core_dump() 171 iter.hdr = iter.start; in etnaviv_core_dump() 172 iter.data = &iter.hdr[n_obj]; in etnaviv_core_dump() 174 memset(iter.hdr, 0, iter.data - iter.start); in etnaviv_core_dump() 227 etnaviv_core_dump_header(&iter, ETDUMP_BUF_BO, iter.data + in etnaviv_core_dump() 231 etnaviv_core_dump_header(&iter, ETDUMP_BUF_END, iter.data); in etnaviv_core_dump() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/panfrost/ |
A D | panfrost_dump.c | 68 hdr->file_offset = iter->data - iter->start; in panfrost_core_dump_header() 71 iter->hdr++; in panfrost_core_dump_header() 72 iter->data += hdr->file_size; in panfrost_core_dump_header() 165 if (!iter.start) { in panfrost_core_dump() 171 iter.hdr = iter.start; in panfrost_core_dump() 172 iter.data = &iter.hdr[n_obj]; in panfrost_core_dump() 174 memset(iter.hdr, 0, iter.data - iter.start); in panfrost_core_dump() 241 iter.hdr->bomap.valid = 1; in panfrost_core_dump() 243 dump_header: panfrost_core_dump_header(&iter, PANFROSTDUMP_BUF_BO, iter.data + in panfrost_core_dump() 246 panfrost_core_dump_header(&iter, PANFROSTDUMP_BUF_TRAILER, iter.data); in panfrost_core_dump() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | bpf_iter_ksym.c | 32 struct kallsym_iter *iter = ctx->ksym; in dump_ksym() local 38 if (!iter) in dump_ksym() 50 value = iter->show_value ? iter->value : 0; in dump_ksym() 54 type = iter->type; in dump_ksym() 56 if (iter->module_name[0]) { in dump_ksym() 57 type = iter->exported ? to_upper(type) : to_lower(type); in dump_ksym() 59 value, type, iter->name, iter->module_name); in dump_ksym() 63 if (!iter->pos_arch_end || iter->pos_arch_end > iter->pos) in dump_ksym() 65 else if (!iter->pos_mod_end || iter->pos_mod_end > iter->pos) in dump_ksym() 67 else if (!iter->pos_ftrace_mod_end || iter->pos_ftrace_mod_end > iter->pos) in dump_ksym() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/ |
A D | icm.h | 99 iter->icm = icm; in mlx4_icm_first() 103 iter->page_idx = 0; in mlx4_icm_first() 108 return !iter->chunk; in mlx4_icm_last() 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() 119 iter->chunk = list_entry(iter->chunk->list.next, in mlx4_icm_next() 121 iter->page_idx = 0; in mlx4_icm_next() 128 return iter->chunk->buf[iter->page_idx].dma_addr; in mlx4_icm_addr() 130 return sg_dma_address(&iter->chunk->sg[iter->page_idx]); in mlx4_icm_addr() 136 return iter->chunk->buf[iter->page_idx].size; in mlx4_icm_size() [all …]
|
/linux-6.3-rc2/drivers/net/can/spi/mcp251xfd/ |
A D | mcp251xfd-dump.c | 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() 238 iter->hdr = NULL; in mcp251xfd_dump_end() 243 struct mcp251xfd_dump_iter iter; in mcp251xfd_dump() local 268 if (!iter.start) { in mcp251xfd_dump() 274 iter.hdr = iter.start; in mcp251xfd_dump() 275 iter.data = &iter.hdr[obj_num]; in mcp251xfd_dump() 281 mcp251xfd_dump_end(priv, &iter); in mcp251xfd_dump() [all …]
|
/linux-6.3-rc2/kernel/trace/ |
A D | trace_output.c | 27 struct trace_seq *s = &iter->seq; in trace_print_bputs_msg_only() 301 entry = iter->ent; in trace_raw_output_prep() 320 trace_check_vprintf(iter, trace_event_format(iter, fmt), ap); in trace_event_printf() 551 unsigned long long abs_ts = iter->ts - iter->array_buffer->time_start; in lat_print_timestamp() 568 ns2usecs(iter->ts), in lat_print_timestamp() 630 trace_print_time(s, iter, iter->ts); in trace_print_context() 646 next_ts = iter->ts; in trace_print_lat_context() 649 entry = iter->ent; in trace_print_lat_context() 814 trace_seq_printf(&iter->seq, "type: %d\n", iter->ent->type); in trace_nop_print() 1062 end = (unsigned long *)((long)iter->ent + iter->ent_size); in trace_stack_print() [all …]
|
A D | trace_kdb.c | 20 static struct trace_iterator iter; variable 29 tr = iter.tr; in ftrace_dump_buf() 40 trace_iterator_reset(&iter); in ftrace_dump_buf() 45 iter.buffer_iter[cpu] = in ftrace_dump_buf() 52 iter.cpu_file = cpu_file; in ftrace_dump_buf() 53 iter.buffer_iter[cpu_file] = in ftrace_dump_buf() 66 print_trace_line(&iter); in ftrace_dump_buf() 67 trace_printk_seq(&iter.seq); in ftrace_dump_buf() 85 if (iter.buffer_iter[cpu]) { in ftrace_dump_buf() 87 iter.buffer_iter[cpu] = NULL; in ftrace_dump_buf() [all …]
|
/linux-6.3-rc2/tools/testing/radix-tree/ |
A D | regression3.c | 34 struct radix_tree_iter iter; in regression3_test() local 52 printv(2, "retry at %ld\n", iter.index); in regression3_test() 53 slot = radix_tree_iter_retry(&iter); 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() 75 if (!iter.index) { in regression3_test() 76 printv(2, "next at %ld\n", iter.index); in regression3_test() 77 slot = radix_tree_iter_resume(slot, &iter); in regression3_test() 85 if (!iter.index) { in regression3_test() 86 printv(2, "next at %ld\n", iter.index); in regression3_test() [all …]
|