/openbmc/linux/arch/x86/kvm/mmu/ |
H 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() 82 if (iter->level == iter->min_level) in try_step_down() 96 iter->pt_path[iter->level - 1] = child_pt; in try_step_down() 97 iter->gfn = gfn_round_for_level(iter->next_last_level_gfn, iter->level); in try_step_down() 121 iter->next_last_level_gfn = iter->gfn; in try_step_side() 135 if (iter->level == iter->root_level) in try_step_up() [all …]
|
H A D | tdp_mmu.c | 554 handle_changed_spte(kvm, iter->as_id, iter->gfn, iter->old_spte, in tdp_mmu_set_spte_atomic() 627 iter->old_spte = tdp_mmu_set_spte(kvm, iter->as_id, iter->sptep, in tdp_mmu_iter_set_spte() 629 iter->gfn, iter->level); in tdp_mmu_iter_set_spte() 810 !is_last_spte(iter.old_spte, iter.level)) in tdp_mmu_zap_leafs() 976 !is_last_spte(iter->old_spte, iter->level)) in tdp_mmu_map_handle_target_level() 996 trace_kvm_mmu_set_spte(iter->level, iter->gfn, in tdp_mmu_map_handle_target_level() 1199 trace_kvm_tdp_mmu_spte_changed(iter->as_id, iter->gfn, iter->level, in age_gfn_range() 1621 trace_kvm_tdp_mmu_spte_changed(iter.as_id, iter.gfn, iter.level, in clear_dirty_pt_masked() 1673 if (is_last_spte(iter.old_spte, iter.level)) in zap_collapsible_spte_range() 1683 if (iter.gfn < start || iter.gfn >= end) in zap_collapsible_spte_range() [all …]
|
/openbmc/linux/fs/udf/ |
H A D | directory.c | 115 iter->name = iter->namebuf; in udf_copy_fi() 135 if (iter->loffset + ralen > (iter->elen >> iter->dir->i_blkbits)) in udf_readahead_dir() 136 ralen = (iter->elen >> iter->dir->i_blkbits) - iter->loffset; in udf_readahead_dir() 177 err = udf_next_aext(iter->dir, &iter->epos, &iter->eloc, in udf_fiiter_advance_blk() 202 if (!iter->bh[0] && iter->elen) { in udf_fiiter_load_bhs() 240 iter->bh[0] = iter->bh[1] = NULL; in udf_fiiter_load_bhs() 270 &iter->eloc, &iter->elen, &iter->loffset, &etype); in udf_fiiter_init() 305 iter->bh[0] = iter->bh[1]; in udf_fiiter_advance() 428 iter->name == iter->namebuf ? iter->name : NULL); in udf_fiiter_write_fi() 453 udf_write_aext(iter->dir, &iter->epos, &iter->eloc, iter->elen, 1); in udf_fiiter_update_elen() [all …]
|
/openbmc/linux/lib/ |
H 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 …]
|
/openbmc/linux/fs/iomap/ |
H 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 …]
|
H 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 …]
|
/openbmc/linux/arch/arm64/kvm/vgic/ |
H 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 …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_displayid.c | 78 memset(iter, 0, sizeof(*iter)); in displayid_iter_edid_begin() 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() 105 if (!iter->drm_edid) in __displayid_iter_next() 108 if (iter->section) { in __displayid_iter_next() 129 iter->section = drm_find_displayid_extension(iter->drm_edid, in __displayid_iter_next() 142 base = displayid_get_header(iter->section, iter->length, in __displayid_iter_next() 143 iter->idx); in __displayid_iter_next() [all …]
|
H 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 …]
|
/openbmc/linux/block/ |
H 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 …]
|
/openbmc/linux/net/netlabel/ |
H 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 …]
|
/openbmc/linux/include/linux/ |
H 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 …]
|
H 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 …]
|
/openbmc/linux/arch/x86/kvm/ |
H A D | mtrr.c | 495 if (!(start >= iter->end || end <= iter->start)) { in match_var_range() 503 iter->partial_map |= iter->start_max < start; in match_var_range() 506 iter->start_max = max(iter->start_max, end); in match_var_range() 518 if (match_var_range(iter, iter->range)) in __mtrr_lookup_var_next() 522 iter->partial_map |= iter->start_max < iter->end; in __mtrr_lookup_var_next() 530 iter->start_max = iter->start; in mtrr_lookup_var_start() 540 if (fixed_mtrr_range_end_addr(iter->seg, iter->index) >= iter->end) { in mtrr_lookup_fixed_next() 546 iter->index++; in mtrr_lookup_fixed_next() 554 iter->seg++; in mtrr_lookup_fixed_next() 590 iter->mem_type = iter->mtrr_state->fixed_ranges[iter->index]; in mtrr_lookup_okay() [all …]
|
/openbmc/linux/drivers/gpu/drm/etnaviv/ |
H 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 …]
|
/openbmc/linux/kernel/ |
H A D | kallsyms.c | 630 &iter->value, &iter->type, in get_ksymbol_mod() 631 iter->name, iter->module_name, in get_ksymbol_mod() 634 iter->pos_mod_end = iter->pos; in get_ksymbol_mod() 649 &iter->value, &iter->type, in get_ksymbol_ftrace_mod() 650 iter->name, iter->module_name, in get_ksymbol_ftrace_mod() 653 iter->pos_ftrace_mod_end = iter->pos; in get_ksymbol_ftrace_mod() 667 &iter->value, &iter->type, in get_ksymbol_bpf() 670 iter->pos_bpf_end = iter->pos; in get_ksymbol_bpf() 687 &iter->value, &iter->type, in get_ksymbol_kprobe() 753 iter->nameoff += get_ksymbol_core(iter); in update_iter() [all …]
|
H A D | ucount.c | 236 for (iter = ucounts; iter; iter = tns->ucounts) { in inc_ucount() 238 tns = iter->ns; in inc_ucount() 245 bad = iter; in inc_ucount() 246 for (iter = ucounts; iter != bad; iter = iter->ns->ucounts) in inc_ucount() 256 for (iter = ucounts; iter; iter = iter->ns->ucounts) { in dec_ucount() 269 for (iter = ucounts; iter; iter = iter->ns->ucounts) { in inc_rlimit_ucounts() 284 for (iter = ucounts; iter; iter = iter->ns->ucounts) { in dec_rlimit_ucounts() 297 for (iter = ucounts; iter != last; iter = next) { in do_dec_rlimit_put_ucounts() 302 put_ucounts(iter); in do_dec_rlimit_put_ucounts() 319 for (iter = ucounts; iter; iter = iter->ns->ucounts) { in inc_rlimit_get_ucounts() [all …]
|
/openbmc/linux/drivers/gpu/drm/panfrost/ |
H 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 …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | iters_state_safety.c | 36 struct bpf_iter_num iter; in create_and_destroy() local 59 struct bpf_iter_num iter; in create_and_forget_to_destroy_fail() local 80 struct bpf_iter_num iter; in destroy_without_creating_fail() local 97 struct bpf_iter_num iter; in compromise_iter_w_direct_write_fail() local 124 struct bpf_iter_num iter; in compromise_iter_w_direct_write_and_skip_destroy_fail() local 149 struct bpf_iter_num iter; in compromise_iter_w_helper_write_fail() local 178 struct bpf_iter_num iter; in subprog_with_iter() local 202 struct bpf_iter_num iter; in valid_stack_reuse() local 236 struct bpf_iter_num iter; in double_create_fail() local 264 struct bpf_iter_num iter; in double_destroy_fail() local [all …]
|
H A 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() 62 if (!iter->pos_mod_end || iter->pos_mod_end > iter->pos) in dump_ksym() 64 else if (!iter->pos_ftrace_mod_end || iter->pos_ftrace_mod_end > iter->pos) in dump_ksym() [all …]
|
/openbmc/linux/kernel/trace/ |
H A D | trace_output.c | 304 entry = iter->ent; in trace_raw_output_prep() 323 trace_check_vprintf(iter, trace_event_format(iter, fmt), ap); in trace_event_printf() 554 unsigned long long abs_ts = iter->ts - iter->array_buffer->time_start; in lat_print_timestamp() 571 ns2usecs(iter->ts), in lat_print_timestamp() 633 trace_print_time(s, iter, iter->ts); in trace_print_context() 649 next_ts = iter->ts; in trace_print_lat_context() 652 entry = iter->ent; in trace_print_lat_context() 879 if (!iter->fmt_size) in print_fields() 888 pos, iter->fmt); in print_fields() 987 trace_seq_printf(&iter->seq, "type: %d\n", iter->ent->type); in trace_nop_print() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H 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 …]
|
/openbmc/qemu/trace/ |
H A D | control.c | 85 TraceEventIter iter; in trace_event_name() local 98 iter->event = 0; in trace_event_iter_init_all() 99 iter->group = 0; in trace_event_iter_init_all() 100 iter->group_id = -1; in trace_event_iter_init_all() 101 iter->pattern = NULL; in trace_event_iter_init_all() 119 event_groups[iter->group].events[iter->event] != NULL) { in trace_event_iter_next() 120 TraceEvent *ev = event_groups[iter->group].events[iter->event]; in trace_event_iter_next() 122 iter->event++; in trace_event_iter_next() 123 if (event_groups[iter->group].events[iter->event] == NULL) { in trace_event_iter_next() 143 TraceEventIter iter; in trace_list_events() local [all …]
|
/openbmc/linux/tools/testing/radix-tree/ |
H 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 …]
|
/openbmc/linux/drivers/net/can/spi/mcp251xfd/ |
H 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 …]
|