Home
last modified time | relevance | path

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

12

/linux/drivers/iommu/iommufd/
H A Dpages.c138 unsigned long first_index, unsigned long last_index) in interval_tree_double_span_iter_first() argument
146 first_index, last_index); in interval_tree_double_span_iter_first()
156 iter->last_hole == iter->spans[0].last_index) { in interval_tree_double_span_iter_next()
187 unsigned long last_index, in iopt_pages_err_unpin() argument
190 unsigned long npages = last_index - start_index + 1; in iopt_pages_err_unpin()
244 unsigned long last_index) in iopt_area_unmap_domain_range() argument
249 iopt_area_index_to_iova_last(area, last_index) - in iopt_area_unmap_domain_range()
409 unsigned long last_index) in batch_from_domain() argument
418 while (start_index <= last_index) { in batch_from_domain()
436 unsigned long last_index, in raw_pages_from_domain() argument
[all …]
H A Ddouble_span.h36 unsigned long first_index, unsigned long last_index);
47 last_index) \ argument
49 first_index, last_index); \
H A Ddevice.c1440 unsigned long last_index = iopt_area_iova_to_index(area, last); in iommufd_access_pin_pages() local
1455 rc = iopt_area_add_access(area, index, last_index, out_pages, in iommufd_access_pin_pages()
1459 out_pages += last_index - index + 1; in iommufd_access_pin_pages()
/linux/include/trace/events/
H A Dfilemap.h64 pgoff_t last_index
67 TP_ARGS(mapping, index, last_index),
73 __field(unsigned long, last_index)
84 __entry->last_index = last_index;
92 ((((loff_t)__entry->last_index + 1) << PAGE_SHIFT) - 1)
100 pgoff_t last_index
102 TP_ARGS(mapping, index, last_index)
109 pgoff_t last_index
111 TP_ARGS(mapping, index, last_index)
/linux/tools/testing/selftests/arm64/mte/
H A 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/drivers/cpufreq/
H A 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()
252 stats->last_index = freq_table_get_index(stats, policy->cur); in cpufreq_stats_create_table()
277 old_index = stats->last_index; in cpufreq_stats_record_transition()
286 stats->last_index = new_index; in cpufreq_stats_record_transition()
/linux/tools/perf/util/
H A 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/kernel/trace/
H A 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/tools/testing/radix-tree/
H A 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/fs/verity/
H A Dread_metadata.c23 pgoff_t index, last_index; in fsverity_read_merkle_tree() local
31 last_index = (end_offset - 1) >> PAGE_SHIFT; in fsverity_read_merkle_tree()
39 for (index = offset >> PAGE_SHIFT; index <= last_index; index++) { in fsverity_read_merkle_tree()
41 min_t(unsigned long, last_index - index + 1, in fsverity_read_merkle_tree()
/linux/fs/ocfs2/
H A Dmmap.c55 pgoff_t last_index; in __ocfs2_page_mkwrite() local
60 last_index = (size - 1) >> PAGE_SHIFT; in __ocfs2_page_mkwrite()
90 if (folio->index == last_index) in __ocfs2_page_mkwrite()
/linux/net/unix/
H A Dgarbage.c411 unsigned long *last_index, in __unix_walk_scc() argument
426 vertex->index = *last_index; in __unix_walk_scc()
427 vertex->scc_index = *last_index; in __unix_walk_scc()
428 (*last_index)++; in __unix_walk_scc()
523 unsigned long last_index = UNIX_VERTEX_INDEX_START; in unix_walk_scc() local
535 cyclic_sccs += __unix_walk_scc(vertex, &last_index, hitlist); in unix_walk_scc()
/linux/net/netfilter/
H A Dnf_conntrack_proto_tcp.c754 (ct->proto.tcp.last_index == TCP_FIN_SET || in nf_tcp_handle_invalid()
755 ct->proto.tcp.last_index == TCP_RST_SET)) { in nf_tcp_handle_invalid()
769 index, dir, ct->proto.tcp.last_index, timeout); in nf_tcp_handle_invalid()
774 ct->proto.tcp.last_index = index; in nf_tcp_handle_invalid()
897 ct->proto.tcp.last_index = TCP_NONE_SET; in tcp_new()
1015 && ct->proto.tcp.last_index == TCP_RST_SET)) { in nf_conntrack_tcp_packet()
1044 && ct->proto.tcp.last_index == TCP_SYN_SET in nf_conntrack_tcp_packet()
1070 ct->proto.tcp.last_index = index; in nf_conntrack_tcp_packet()
1151 ct->proto.tcp.last_index == TCP_SYN_SET && in nf_conntrack_tcp_packet()
1187 ct->proto.tcp.last_index != TCP_SYN_SET) { in nf_conntrack_tcp_packet()
[all …]
/linux/drivers/acpi/
H A Dacpi_processor.c841 int last_index = 0; in acpi_processor_evaluate_cst() local
878 if (last_index >= ACPI_PROCESSOR_MAX_POWER - 1) { in acpi_processor_evaluate_cst()
924 last_index = 1; in acpi_processor_evaluate_cst()
927 cx.index = last_index + 1; in acpi_processor_evaluate_cst()
985 memcpy(&info->states[++last_index], &cx, sizeof(cx)); in acpi_processor_evaluate_cst()
988 acpi_handle_debug(handle, "Found %d idle states\n", last_index); in acpi_processor_evaluate_cst()
990 info->count = last_index; in acpi_processor_evaluate_cst()
/linux/drivers/accessibility/speakup/
H A Dspeakup_soft.c335 static int last_index; variable
348 last_index = supplied_index; in softsynth_write()
371 rv = last_index; in get_index()
372 last_index = 0; in get_index()
/linux/include/linux/netfilter/
H A Dnf_conntrack_tcp.h23 u_int8_t last_index; /* Index of the last packet */ member
/linux/drivers/dma/
H A 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/mm/
H A Dfilemap.c2650 pgoff_t last_index) in filemap_readahead() argument
2658 page_cache_async_ra(&ractl, folio, last_index - folio->index); in filemap_readahead()
2668 pgoff_t last_index; in filemap_get_pages() local
2674 last_index = round_up(iocb->ki_pos + count, in filemap_get_pages()
2680 filemap_get_read_batch(mapping, index, last_index - 1, fbatch); in filemap_get_pages()
2690 page_cache_sync_ra(&ractl, last_index - index); in filemap_get_pages()
2693 filemap_get_read_batch(mapping, index, last_index - 1, fbatch); in filemap_get_pages()
2704 err = filemap_readahead(iocb, filp, mapping, folio, last_index); in filemap_get_pages()
2719 trace_mm_filemap_get_pages(mapping, index, last_index - 1); in filemap_get_pages()
4559 pgoff_t first_index, pgoff_t last_index, struct cachestat *cs) in filemap_cachestat() argument
[all …]
H A Dmemory.c4192 pgoff_t last_index, in unmap_mapping_range_tree() argument
4198 vma_interval_tree_foreach(vma, root, first_index, last_index) { in unmap_mapping_range_tree()
4202 zea = min(last_index, vea); in unmap_mapping_range_tree()
4227 pgoff_t last_index; in unmap_mapping_folio() local
4232 last_index = folio_next_index(folio) - 1; in unmap_mapping_folio()
4241 last_index, &details); in unmap_mapping_folio()
4262 pgoff_t last_index = start + nr - 1; in unmap_mapping_pages() local
4265 if (last_index < first_index) in unmap_mapping_pages()
4266 last_index = ULONG_MAX; in unmap_mapping_pages()
4271 last_index, &details); in unmap_mapping_pages()
/linux/fs/btrfs/
H A Ddelayed-inode.h170 u64 last_index,
H A Ddelayed-inode.c1711 u64 last_index, in btrfs_readdir_get_delayed_items()
1732 while (item && item->index <= last_index) { in btrfs_readdir_get_delayed_items()
1739 while (item && item->index <= last_index) { in btrfs_readdir_get_delayed_items()
1709 btrfs_readdir_get_delayed_items(struct btrfs_inode * inode,u64 last_index,struct list_head * ins_list,struct list_head * del_list) btrfs_readdir_get_delayed_items() argument
H A Drelocation.c2786 const pgoff_t last_index = (cluster->end - offset) >> PAGE_SHIFT; in relocate_one_folio() local
2796 ASSERT(index <= last_index); in relocate_one_folio()
2812 index, last_index + 1 - index); in relocate_one_folio()
2822 folio, last_index + 1 - index); in relocate_one_folio()
/linux/drivers/infiniband/hw/hfi1/
H A Dtid_rdma.h81 u8 last_index; member
/linux/fs/f2fs/
H A Dcompress.c1294 unsigned int last_index = cc->cluster_size - 1; in f2fs_write_compressed_pages() local
1328 folio = page_folio(cc->rpages[last_index]); in f2fs_write_compressed_pages()
/linux/lib/
H A Dtest_maple_tree.c2169 unsigned long last_index; in next_prev_test() local
2174 last_index = 0x138e; in next_prev_test()
2178 last_index = 0x7d6; in next_prev_test()
2285 MT_BUG_ON(mt, mas.index != last_index); in next_prev_test()

12