Home
last modified time | relevance | path

Searched refs:last_index (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.1.9/tools/testing/selftests/arm64/mte/
Dcheck_buffer_fill.c67 int i, j, item, last_index; in check_buffer_underflow_by_byte() local
81 last_index = 0; in check_buffer_underflow_by_byte()
86 last_index = j; in check_buffer_underflow_by_byte()
104 if (cur_mte_cxt.fault_valid == true || last_index != -underflow_range) { in check_buffer_underflow_by_byte()
128 for (j = last_index ; j < 0 ; j++) { in check_buffer_underflow_by_byte()
137 if (!cur_mte_cxt.fault_valid || (last_index != (-1))) { in check_buffer_underflow_by_byte()
162 int i, j, item, last_index; in check_buffer_overflow_by_byte() local
181 for (j = 0, last_index = 0 ; (j < (sizes[i] + overflow_range)) && in check_buffer_overflow_by_byte()
184 last_index = j; in check_buffer_overflow_by_byte()
205 (last_index != (sizes[i] + overflow_range - 1))) { in check_buffer_overflow_by_byte()
[all …]
/linux-6.1.9/drivers/cpufreq/
Dcpufreq_stats.c20 unsigned int last_index; member
35 stats->time_in_state[stats->last_index] += cur_time - time; in cpufreq_stats_update()
79 if (i == stats->last_index) { in show_time_in_state()
91 if (i == stats->last_index) in show_time_in_state()
253 stats->last_index = freq_table_get_index(stats, policy->cur); in cpufreq_stats_create_table()
278 old_index = stats->last_index; in cpufreq_stats_record_transition()
287 stats->last_index = new_index; in cpufreq_stats_record_transition()
/linux-6.1.9/tools/perf/util/
Dpstack.c42 unsigned short i = pstack->top, last_index = pstack->top - 1; in pstack__remove() local
46 if (i < last_index) in pstack__remove()
49 (last_index - i) * sizeof(void *)); in pstack__remove()
/linux-6.1.9/kernel/trace/
Dtrace_printk.c269 int last_index; in find_next() local
288 last_index = start_index; in find_next()
291 if (*pos < last_index + start_index) in find_next()
292 return __start___tracepoint_str + (*pos - last_index); in find_next()
294 start_index += last_index; in find_next()
/linux-6.1.9/fs/verity/
Dread_metadata.c22 pgoff_t index, last_index; in fsverity_read_merkle_tree() local
30 last_index = (end_offset - 1) >> PAGE_SHIFT; in fsverity_read_merkle_tree()
38 for (index = offset >> PAGE_SHIFT; index <= last_index; index++) { in fsverity_read_merkle_tree()
40 min_t(unsigned long, last_index - index + 1, in fsverity_read_merkle_tree()
/linux-6.1.9/tools/testing/radix-tree/
Dtag_check.c137 unsigned long last_index = 0; in gang_check() local
146 while (last_index < item->index) { in gang_check()
147 assert(thrash_state[last_index] != NODE_TAGGED); in gang_check()
148 last_index++; in gang_check()
150 assert(thrash_state[last_index] == NODE_TAGGED); in gang_check()
151 last_index++; in gang_check()
/linux-6.1.9/fs/ocfs2/
Dmmap.c55 pgoff_t last_index; in __ocfs2_page_mkwrite() local
60 last_index = (size - 1) >> PAGE_SHIFT; in __ocfs2_page_mkwrite()
90 if (page->index == last_index) in __ocfs2_page_mkwrite()
/linux-6.1.9/drivers/char/
Dmspec.c106 int index, last_index; in mspec_close() local
114 last_index = (vdata->vm_end - vdata->vm_start) >> PAGE_SHIFT; in mspec_close()
115 for (index = 0; index < last_index; index++) { in mspec_close()
/linux-6.1.9/net/netfilter/
Dnf_conntrack_proto_tcp.c752 (ct->proto.tcp.last_index == TCP_FIN_SET || in nf_tcp_handle_invalid()
753 ct->proto.tcp.last_index == TCP_RST_SET)) { in nf_tcp_handle_invalid()
767 index, dir, ct->proto.tcp.last_index, timeout); in nf_tcp_handle_invalid()
772 ct->proto.tcp.last_index = index; in nf_tcp_handle_invalid()
894 ct->proto.tcp.last_index = TCP_NONE_SET; in tcp_new()
979 && ct->proto.tcp.last_index == TCP_RST_SET)) { in nf_conntrack_tcp_packet()
1008 && ct->proto.tcp.last_index == TCP_SYN_SET in nf_conntrack_tcp_packet()
1034 ct->proto.tcp.last_index = index; in nf_conntrack_tcp_packet()
1115 ct->proto.tcp.last_index == TCP_SYN_SET && in nf_conntrack_tcp_packet()
1151 ct->proto.tcp.last_index != TCP_SYN_SET) { in nf_conntrack_tcp_packet()
[all …]
/linux-6.1.9/drivers/acpi/
Dacpi_processor.c736 int last_index = 0; in acpi_processor_evaluate_cst() local
773 if (last_index >= ACPI_PROCESSOR_MAX_POWER - 1) { in acpi_processor_evaluate_cst()
819 last_index = 1; in acpi_processor_evaluate_cst()
822 cx.index = last_index + 1; in acpi_processor_evaluate_cst()
880 memcpy(&info->states[++last_index], &cx, sizeof(cx)); in acpi_processor_evaluate_cst()
883 acpi_handle_info(handle, "Found %d idle states\n", last_index); in acpi_processor_evaluate_cst()
885 info->count = last_index; in acpi_processor_evaluate_cst()
/linux-6.1.9/drivers/accessibility/speakup/
Dspeakup_soft.c326 static int last_index; variable
339 last_index = supplied_index; in softsynth_write()
362 rv = last_index; in get_index()
363 last_index = 0; in get_index()
/linux-6.1.9/include/linux/netfilter/
Dnf_conntrack_tcp.h23 u_int8_t last_index; /* Index of the last packet */ member
/linux-6.1.9/drivers/dma/
Dof-dma.c259 static atomic_t last_index; in of_dma_request_slave_channel() local
281 start = atomic_inc_return(&last_index); in of_dma_request_slave_channel()
/linux-6.1.9/drivers/staging/media/atomisp/pci/runtime/debug/src/
Dia_css_debug.c1526 static int last_index; in ia_css_debug_print_sp_debug_state()
1531 if (sp_index < last_index) { in ia_css_debug_print_sp_debug_state()
1533 last_index = 0; in ia_css_debug_print_sp_debug_state()
1536 if (last_index == 0) { in ia_css_debug_print_sp_debug_state()
1545 if ((last_index + SH_CSS_SP_DBG_TRACE_DEPTH) < sp_index) { in ia_css_debug_print_sp_debug_state()
1548 last_index = sp_index - SH_CSS_SP_DBG_TRACE_DEPTH; in ia_css_debug_print_sp_debug_state()
1551 for (n = last_index; n < sp_index; n++) { in ia_css_debug_print_sp_debug_state()
1565 last_index = sp_index; in ia_css_debug_print_sp_debug_state()
/linux-6.1.9/mm/
Dfilemap.c2551 pgoff_t last_index) in filemap_readahead() argument
2557 page_cache_async_ra(&ractl, folio, last_index - folio->index); in filemap_readahead()
2568 pgoff_t last_index; in filemap_get_pages() local
2572 last_index = DIV_ROUND_UP(iocb->ki_pos + iter->count, PAGE_SIZE); in filemap_get_pages()
2577 filemap_get_read_batch(mapping, index, last_index, fbatch); in filemap_get_pages()
2582 last_index - index); in filemap_get_pages()
2583 filemap_get_read_batch(mapping, index, last_index, fbatch); in filemap_get_pages()
2597 err = filemap_readahead(iocb, filp, mapping, folio, last_index); in filemap_get_pages()
Dmemory.c3498 pgoff_t last_index, in unmap_mapping_range_tree() argument
3504 vma_interval_tree_foreach(vma, root, first_index, last_index) { in unmap_mapping_range_tree()
3508 zea = min(last_index, vea); in unmap_mapping_range_tree()
3533 pgoff_t last_index; in unmap_mapping_folio() local
3538 last_index = folio->index + folio_nr_pages(folio) - 1; in unmap_mapping_folio()
3547 last_index, &details); in unmap_mapping_folio()
3568 pgoff_t last_index = start + nr - 1; in unmap_mapping_pages() local
3571 if (last_index < first_index) in unmap_mapping_pages()
3572 last_index = ULONG_MAX; in unmap_mapping_pages()
3577 last_index, &details); in unmap_mapping_pages()
/linux-6.1.9/fs/ufs/
Dballoc.c247 pgoff_t index, cur_index, last_index; in ufs_change_blocknr() local
262 last_index = end >> (PAGE_SHIFT - inode->i_blkbits); in ufs_change_blocknr()
286 if (unlikely(index == last_index)) in ufs_change_blocknr()
/linux-6.1.9/include/linux/
Dmsi.h251 unsigned int first_index, unsigned int last_index);
/linux-6.1.9/drivers/infiniband/hw/hfi1/
Dtid_rdma.h81 u8 last_index; member
/linux-6.1.9/kernel/irq/
Dmsi.c149 unsigned int first_index, unsigned int last_index) in msi_free_msi_descs_range() argument
157 xa_for_each_range(xa, idx, desc, first_index, last_index) { in msi_free_msi_descs_range()
/linux-6.1.9/fs/erofs/
Dzdata.c1415 pgoff_t last_index; in z_erofs_submit_queue() local
1467 if (bio && (cur != last_index + 1 || in z_erofs_submit_queue()
1500 last_index = cur; in z_erofs_submit_queue()
/linux-6.1.9/fs/btrfs/
Drelocation.c2942 const unsigned long last_index = (cluster->end - offset) >> PAGE_SHIFT; in relocate_one_page() local
2950 ASSERT(page_index <= last_index); in relocate_one_page()
2954 page_index, last_index + 1 - page_index); in relocate_one_page()
2966 last_index + 1 - page_index); in relocate_one_page()
3066 unsigned long last_index; in relocate_file_extent_cluster() local
3089 last_index = (cluster->end - offset) >> PAGE_SHIFT; in relocate_file_extent_cluster()
3091 index <= last_index && !ret; index++) in relocate_file_extent_cluster()
Dioctl.c1606 unsigned long last_index = (start + len - 1) >> PAGE_SHIFT; in defrag_one_locked_target() local
1612 ASSERT(last_index - first_index + 1 <= nr_pages); in defrag_one_locked_target()
1623 for (i = start_index - first_index; i <= last_index - first_index; i++) { in defrag_one_locked_target()
1643 u64 last_index = (start + len - 1) >> PAGE_SHIFT; in defrag_one_range() local
1645 unsigned int nr_pages = last_index - start_index + 1; in defrag_one_range()
1670 (last_index << PAGE_SHIFT) + PAGE_SIZE - 1, in defrag_one_range()
1698 (last_index << PAGE_SHIFT) + PAGE_SIZE - 1, in defrag_one_range()
/linux-6.1.9/drivers/nvme/host/
Dcore.c2443 u64 *transition_time, unsigned *last_index) in nvme_apst_get_transition_time() argument
2446 if (*last_index == 1) in nvme_apst_get_transition_time()
2448 *last_index = 1; in nvme_apst_get_transition_time()
2454 if (*last_index <= 2) in nvme_apst_get_transition_time()
2456 *last_index = 2; in nvme_apst_get_transition_time()
/linux-6.1.9/fs/f2fs/
Dcompress.c1230 unsigned int last_index = cc->cluster_size - 1; in f2fs_write_compressed_pages() local
1263 psize = (loff_t)(cc->rpages[last_index]->index + 1) << PAGE_SHIFT; in f2fs_write_compressed_pages()

12