Searched refs:last_index (Results 1 - 25 of 40) sorted by relevance

12

/linux-master/drivers/iommu/iommufd/
H A Ddouble_span.h36 unsigned long first_index, unsigned long last_index);
47 last_index) \
49 first_index, last_index); \
H A Dpages.c46 * ULONG_MAX so last_index + 1 cannot overflow.
134 unsigned long first_index, unsigned long last_index)
142 first_index, last_index);
152 iter->last_hole == iter->spans[0].last_index) {
183 unsigned long last_index,
186 unsigned long npages = last_index - start_index + 1;
240 unsigned long last_index)
245 iopt_area_index_to_iova_last(area, last_index) -
372 * reaches last_index, the function will return. The caller should use
378 unsigned long last_index)
131 interval_tree_double_span_iter_first( struct interval_tree_double_span_iter *iter, struct rb_root_cached *itree1, struct rb_root_cached *itree2, unsigned long first_index, unsigned long last_index) argument
181 iopt_pages_err_unpin(struct iopt_pages *pages, unsigned long start_index, unsigned long last_index, struct page **page_list) argument
237 iopt_area_unmap_domain_range(struct iopt_area *area, struct iommu_domain *domain, unsigned long start_index, unsigned long last_index) argument
375 batch_from_domain(struct pfn_batch *batch, struct iommu_domain *domain, struct iopt_area *area, unsigned long start_index, unsigned long last_index) argument
402 raw_pages_from_domain(struct iommu_domain *domain, struct iopt_area *area, unsigned long start_index, unsigned long last_index, struct page **out_pages) argument
426 batch_from_domain_continue(struct pfn_batch *batch, struct iommu_domain *domain, struct iopt_area *area, unsigned long start_index, unsigned long last_index) argument
519 batch_from_xarray(struct pfn_batch *batch, struct xarray *xa, unsigned long start_index, unsigned long last_index) argument
540 batch_from_xarray_clear(struct pfn_batch *batch, struct xarray *xa, unsigned long start_index, unsigned long last_index) argument
563 clear_xarray(struct xarray *xa, unsigned long start_index, unsigned long last_index) argument
575 pages_to_xarray(struct xarray *xa, unsigned long start_index, unsigned long last_index, struct page **pages) argument
736 pfn_reader_user_pin(struct pfn_reader_user *user, struct iopt_pages *pages, unsigned long start_index, unsigned long last_index) argument
942 unsigned long last_index; member in struct:pfn_reader
1062 pfn_reader_init(struct pfn_reader *pfns, struct iopt_pages *pages, unsigned long start_index, unsigned long last_index) argument
1121 pfn_reader_first(struct pfn_reader *pfns, struct iopt_pages *pages, unsigned long start_index, unsigned long last_index) argument
1197 iopt_area_unpin_domain(struct pfn_batch *batch, struct iopt_area *area, struct iopt_pages *pages, struct iommu_domain *domain, unsigned long start_index, unsigned long last_index, unsigned long *unmapped_end_index, unsigned long real_last_index) argument
1257 __iopt_area_unfill_domain(struct iopt_area *area, struct iopt_pages *pages, struct iommu_domain *domain, unsigned long last_index) argument
1542 iopt_pages_unfill_xarray(struct iopt_pages *pages, unsigned long start_index, unsigned long last_index) argument
1590 iopt_pages_fill_from_xarray(struct iopt_pages *pages, unsigned long start_index, unsigned long last_index, struct page **out_pages) argument
1610 iopt_pages_fill_from_domain(struct iopt_pages *pages, unsigned long start_index, unsigned long last_index, struct page **out_pages) argument
1632 iopt_pages_fill_from_mm(struct iopt_pages *pages, struct pfn_reader_user *user, unsigned long start_index, unsigned long last_index, struct page **out_pages) argument
1671 iopt_pages_fill_xarray(struct iopt_pages *pages, unsigned long start_index, unsigned long last_index, struct page **out_pages) argument
1743 iopt_pages_rw_slow(struct iopt_pages *pages, unsigned long start_index, unsigned long last_index, unsigned long offset, void *data, unsigned long length, unsigned int flags) argument
1835 unsigned long last_index = (start_byte + length - 1) / PAGE_SIZE; local
1915 iopt_area_add_access(struct iopt_area *area, unsigned long start_index, unsigned long last_index, struct page **out_pages, unsigned int flags) argument
1971 iopt_area_remove_access(struct iopt_area *area, unsigned long start_index, unsigned long last_index) argument
[all...]
H A Ddevice.c1063 unsigned long last_index = iopt_area_iova_to_index(area, last); local
1078 rc = iopt_area_add_access(area, index, last_index, out_pages,
1082 out_pages += last_index - index + 1;
/linux-master/include/linux/
H A Dinterval_tree.h53 unsigned long last_index; member in struct:interval_tree_span_iter
70 unsigned long last_index);
82 #define interval_tree_for_each_span(span, itree, first_index, last_index) \
84 first_index, last_index); \
/linux-master/lib/
H A Dinterval_tree.c37 state->last_index);
46 unsigned long last_index)
49 iter->last_index = last_index;
52 interval_tree_iter_first(itree, first_index, last_index);
56 iter->last_hole = last_index;
74 if (iter->last_used >= last_index) {
75 iter->last_used = last_index;
92 if (iter->last_used >= iter->last_index) {
93 iter->last_used = iter->last_index;
43 interval_tree_span_iter_first(struct interval_tree_span_iter *iter, struct rb_root_cached *itree, unsigned long first_index, unsigned long last_index) argument
[all...]
/linux-master/tools/perf/util/
H A Dpstack.c42 unsigned short i = pstack->top, last_index = pstack->top - 1; local
46 if (i < last_index)
49 (last_index - i) * sizeof(void *));
/linux-master/include/linux/netfilter/
H A Dnf_conntrack_tcp.h23 u_int8_t last_index; /* Index of the last packet */ member in struct:ip_ct_tcp
/linux-master/drivers/cpufreq/
H A Dcpufreq_stats.c20 unsigned int last_index; member in struct:cpufreq_stats
35 stats->time_in_state[stats->last_index] += cur_time - time;
79 if (i == stats->last_index) {
91 if (i == stats->last_index)
252 stats->last_index = freq_table_get_index(stats, policy->cur);
277 old_index = stats->last_index;
286 stats->last_index = new_index;
/linux-master/tools/testing/selftests/arm64/mte/
H A Dcheck_buffer_fill.c67 int i, j, item, last_index; local
81 last_index = 0;
86 last_index = j;
104 if (cur_mte_cxt.fault_valid == true || last_index != -underflow_range) {
128 for (j = last_index ; j < 0 ; j++) {
137 if (!cur_mte_cxt.fault_valid || (last_index != (-1))) {
162 int i, j, item, last_index; local
181 for (j = 0, last_index = 0 ; (j < (sizes[i] + overflow_range)) &&
184 last_index = j;
205 (last_index !
[all...]
/linux-master/fs/verity/
H A Dread_metadata.c22 pgoff_t index, last_index; local
30 last_index = (end_offset - 1) >> PAGE_SHIFT;
38 for (index = offset >> PAGE_SHIFT; index <= last_index; index++) {
40 min_t(unsigned long, last_index - index + 1,
/linux-master/kernel/trace/
H A Dtrace_printk.c269 int last_index; local
288 last_index = start_index;
291 if (*pos < last_index + start_index)
292 return __start___tracepoint_str + (*pos - last_index);
294 start_index += last_index;
/linux-master/fs/ocfs2/
H A Dmmap.c55 pgoff_t last_index; local
60 last_index = (size - 1) >> PAGE_SHIFT;
90 if (page->index == last_index)
/linux-master/tools/testing/radix-tree/
H A Dtag_check.c137 unsigned long last_index = 0; local
146 while (last_index < item->index) {
147 assert(thrash_state[last_index] != NODE_TAGGED);
148 last_index++;
150 assert(thrash_state[last_index] == NODE_TAGGED);
151 last_index++;
/linux-master/drivers/acpi/
H A Dacpi_processor.c820 int last_index = 0; local
857 if (last_index >= ACPI_PROCESSOR_MAX_POWER - 1) {
903 last_index = 1;
906 cx.index = last_index + 1;
964 memcpy(&info->states[++last_index], &cx, sizeof(cx));
967 acpi_handle_info(handle, "Found %d idle states\n", last_index);
969 info->count = last_index;
/linux-master/drivers/accessibility/speakup/
H A Dspeakup_soft.c335 static int last_index; variable
348 last_index = supplied_index;
371 rv = last_index;
372 last_index = 0;
/linux-master/fs/btrfs/
H A Ddelayed-inode.h147 u64 last_index,
H A Ddefrag.c1172 unsigned long last_index = (start + len - 1) >> PAGE_SHIFT; local
1178 ASSERT(last_index - first_index + 1 <= nr_pages);
1190 for (i = start_index - first_index; i <= last_index - first_index; i++) {
1210 u64 last_index = (start + len - 1) >> PAGE_SHIFT; local
1212 unsigned int nr_pages = last_index - start_index + 1;
1237 (last_index << PAGE_SHIFT) + PAGE_SIZE - 1,
1265 (last_index << PAGE_SHIFT) + PAGE_SIZE - 1,
H A Dctree.h448 u64 last_index; member in struct:btrfs_file_private
/linux-master/net/netfilter/
H A Dnf_conntrack_proto_tcp.c754 (ct->proto.tcp.last_index == TCP_FIN_SET ||
755 ct->proto.tcp.last_index == TCP_RST_SET)) {
769 index, dir, ct->proto.tcp.last_index, timeout);
774 ct->proto.tcp.last_index = index;
897 ct->proto.tcp.last_index = TCP_NONE_SET;
1015 && ct->proto.tcp.last_index == TCP_RST_SET)) {
1044 && ct->proto.tcp.last_index == TCP_SYN_SET
1070 ct->proto.tcp.last_index = index;
1151 ct->proto.tcp.last_index == TCP_SYN_SET &&
1176 * last_index, last_ac
[all...]
/linux-master/drivers/dma/
H A Dof-dma.c259 static atomic_t last_index; local
281 start = atomic_inc_return(&last_index);
/linux-master/drivers/staging/media/atomisp/pci/runtime/debug/src/
H A Dia_css_debug.c687 /* Remember last_index because we only want to print new entries */
688 static int last_index;
693 if (sp_index < last_index) {
695 last_index = 0;
698 if (last_index == 0) {
707 if ((last_index + SH_CSS_SP_DBG_TRACE_DEPTH) < sp_index) {
710 last_index = sp_index - SH_CSS_SP_DBG_TRACE_DEPTH;
713 for (n = last_index; n < sp_index; n++) {
727 last_index = sp_index;
/linux-master/mm/
H A Dfilemap.c2474 pgoff_t last_index)
2480 page_cache_async_ra(&ractl, folio, last_index - folio->index);
2491 pgoff_t last_index; local
2495 /* "last_index" is the index of the page beyond the end of the read */
2496 last_index = DIV_ROUND_UP(iocb->ki_pos + count, PAGE_SIZE);
2501 filemap_get_read_batch(mapping, index, last_index - 1, fbatch);
2506 last_index - index);
2507 filemap_get_read_batch(mapping, index, last_index - 1, fbatch);
2521 err = filemap_readahead(iocb, filp, mapping, folio, last_index);
4142 * @last_index
2472 filemap_readahead(struct kiocb *iocb, struct file *file, struct address_space *mapping, struct folio *folio, pgoff_t last_index) argument
4150 filemap_cachestat(struct address_space *mapping, pgoff_t first_index, pgoff_t last_index, struct cachestat *cs) argument
4285 pgoff_t first_index, last_index; local
[all...]
H A Dmemory.c3672 pgoff_t last_index,
3678 vma_interval_tree_foreach(vma, root, first_index, last_index) {
3682 zea = min(last_index, vea);
3707 pgoff_t last_index; local
3712 last_index = folio_next_index(folio) - 1;
3721 last_index, &details);
3742 pgoff_t last_index = start + nr - 1; local
3745 if (last_index < first_index)
3746 last_index = ULONG_MAX;
3751 last_index,
3670 unmap_mapping_range_tree(struct rb_root_cached *root, pgoff_t first_index, pgoff_t last_index, struct zap_details *details) argument
[all...]
/linux-master/drivers/infiniband/hw/hfi1/
H A Dtid_rdma.h81 u8 last_index; member in struct:tid_flow_state
/linux-master/fs/ufs/
H A Dballoc.c248 pgoff_t index, cur_index, last_index; local
261 last_index = end >> (PAGE_SHIFT - inode->i_blkbits);
284 if (unlikely(index == last_index))

Completed in 374 milliseconds

12