Home
last modified time | relevance | path

Searched refs:end_index (Results 1 – 25 of 51) sorted by relevance

123

/linux-6.15/mm/
H A Dfadvise.c38 pgoff_t end_index; in generic_fadvise() local
99 end_index = endbyte >> PAGE_SHIFT; in generic_fadvise()
102 nrpages = end_index - start_index + 1; in generic_fadvise()
123 end_index = (endbyte >> PAGE_SHIFT); in generic_fadvise()
138 if (end_index == 0) in generic_fadvise()
141 end_index--; in generic_fadvise()
144 if (end_index >= start_index) { in generic_fadvise()
158 mapping_try_invalidate(mapping, start_index, end_index, in generic_fadvise()
169 end_index); in generic_fadvise()
H A Dreadahead.c315 pgoff_t end_index; /* The last page we want to read */ in do_page_cache_ra() local
320 end_index = (isize - 1) >> PAGE_SHIFT; in do_page_cache_ra()
321 if (index > end_index) in do_page_cache_ra()
324 if (nr_to_read > end_index - index) in do_page_cache_ra()
325 nr_to_read = end_index - index + 1; in do_page_cache_ra()
/linux-6.15/fs/squashfs/
H A Dfile_direct.c31 loff_t end_index = start_index | mask; in squashfs_readpage_block() local
38 if (end_index > file_end) in squashfs_readpage_block()
39 end_index = file_end; in squashfs_readpage_block()
41 pages = end_index - start_index + 1; in squashfs_readpage_block()
48 for (i = 0, index = start_index; index <= end_index; index++) { in squashfs_readpage_block()
90 if (end_index == file_end && last_page && bytes) { in squashfs_readpage_block()
/linux-6.15/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum1_kvdl.c34 unsigned int end_index; member
48 .end_index = MLXSW_SP1_KVDL_##id##_END, \
97 kvdl_index <= part->info.end_index) in mlxsw_sp1_kvdl_index_part()
124 nr_entries = (info->end_index - info->start_index + 1) / in mlxsw_sp1_kvdl_part_alloc()
200 part->info.end_index = size - 1; in mlxsw_sp1_kvdl_part_update()
202 part->info.start_index = part_prev->info.end_index + 1; in mlxsw_sp1_kvdl_part_update()
203 part->info.end_index = part->info.start_index + size - 1; in mlxsw_sp1_kvdl_part_update()
223 resource_size = info->end_index - info->start_index + 1; in mlxsw_sp1_kvdl_part_init()
284 nr_entries = (info->end_index - in mlxsw_sp1_kvdl_part_occ()
H A Dspectrum_policer.c17 u16 end_index; /* Exclusive */ member
93 family->end_index = MLXSW_CORE_RES_GET(core, MAX_GLOBAL_POLICERS); in mlxsw_sp_policer_single_rate_family_init()
123 family->end_index, GFP_KERNEL); in mlxsw_sp_policer_single_rate_index_alloc()
326 if (WARN_ON(family->start_index >= family->end_index)) { in mlxsw_sp_policer_family_register()
H A Dspectrum_pgt.c12 u16 end_index; /* Exclusive. */ member
34 mlxsw_sp->pgt->end_index, GFP_KERNEL); in mlxsw_sp_pgt_mid_alloc()
323 pgt->end_index = MLXSW_CORE_RES_GET(mlxsw_sp->core, PGT_SIZE); in mlxsw_sp_pgt_init()
H A Dspectrum_fid.c133 u16 end_index; member
1864 .end_index = MLXSW_SP_FID_8021Q_END,
1877 .end_index = MLXSW_SP_FID_8021D_END,
1889 .end_index = MLXSW_SP_FID_DUMMY,
1898 .end_index = MLXSW_SP_RFID_END,
1916 .end_index = MLXSW_SP_FID_8021Q_END,
1929 .end_index = MLXSW_SP_FID_8021D_END,
1941 .end_index = MLXSW_SP_FID_DUMMY,
1957 .end_index = MLXSW_SP_FID_8021Q_END,
1968 .end_index = MLXSW_SP_FID_8021D_END,
[all …]
/linux-6.15/include/trace/events/
H A Dfs_dax.h228 TP_PROTO(struct inode *inode, pgoff_t start_index, pgoff_t end_index),
229 TP_ARGS(inode, start_index, end_index),
233 __field(pgoff_t, end_index)
240 __entry->end_index = end_index;
247 __entry->end_index
253 TP_PROTO(struct inode *inode, pgoff_t start_index, pgoff_t end_index),\
254 TP_ARGS(inode, start_index, end_index))
/linux-6.15/arch/sparc/kernel/
H A Dcpumap.c44 int end_index; /* Index of last node of a level in a cpuinfo tree */ member
133 lv->start_index = lv->end_index = lv->num_nodes = 0; in enumerate_cpuinfo_nodes()
166 tree_level[CPUINFO_LVL_NODE].end_index = n; in enumerate_cpuinfo_nodes()
171 tree_level[CPUINFO_LVL_CORE].end_index = n - 1; in enumerate_cpuinfo_nodes()
175 tree_level[CPUINFO_LVL_PROC].end_index = n - 1; in enumerate_cpuinfo_nodes()
276 if (n <= new_tree->level[level].end_index) { in build_cpuinfo_tree()
/linux-6.15/fs/isofs/
H A Dcompress.c313 pgoff_t index = folio->index, end_index; in zisofs_read_folio() local
315 end_index = (inode->i_size + PAGE_SIZE - 1) >> PAGE_SHIFT; in zisofs_read_folio()
320 if (index >= end_index) { in zisofs_read_folio()
330 end_index - (index & ~(zisofs_pages_per_cblock - 1))); in zisofs_read_folio()
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Dlag.h133 #define mlx5_ldev_for_each_reverse(i, start_index, end_index, ldev) \ argument
134 for (int tmp = start_index, tmp1 = end_index; \
/linux-6.15/fs/xfs/libxfs/
H A Dxfs_group.c103 uint32_t end_index, in xfs_group_next_range() argument
112 if (index > end_index) in xfs_group_next_range()
H A Dxfs_group.h74 struct xfs_group *xg, uint32_t start_index, uint32_t end_index,
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dfs_tracepoint.h106 __field(u32, end_index)
117 __entry->end_index = fg->start_index + fg->max_ftes;
139 __entry->start_index, __entry->end_index,
/linux-6.15/fs/bcachefs/
H A Dfs-io-pagecache.c254 pgoff_t end_index = (end - 1) >> PAGE_SECTORS_SHIFT; in bch2_mark_pagecache_unallocated() local
264 &index, end_index, &fbatch)) { in bch2_mark_pagecache_unallocated()
298 pgoff_t end_index = (end - 1) >> PAGE_SECTORS_SHIFT; in bch2_mark_pagecache_reserved() local
309 &index, end_index, &fbatch)) { in bch2_mark_pagecache_reserved()
701 pgoff_t end_index = end_offset >> PAGE_SHIFT; in bch2_seek_pagecache_data() local
710 &index, end_index, &fbatch)) { in bch2_seek_pagecache_data()
/linux-6.15/drivers/iommu/iommufd/
H A Dpages.c1497 unsigned long end_index) in iopt_area_unfill_partial_domain() argument
1499 if (end_index != iopt_area_index(area)) in iopt_area_unfill_partial_domain()
1640 unsigned long end_index; in iopt_area_fill_domains() local
1643 end_index = done_first_end_index; in iopt_area_fill_domains()
1645 end_index = done_all_end_index; in iopt_area_fill_domains()
1653 if (end_index != iopt_area_index(area)) in iopt_area_fill_domains()
1656 end_index - 1); in iopt_area_fill_domains()
1659 end_index); in iopt_area_fill_domains()
1707 unsigned long end_index) in iopt_pages_unpin_xarray() argument
1709 while (start_index <= end_index) { in iopt_pages_unpin_xarray()
[all …]
/linux-6.15/drivers/net/wireless/microchip/wilc1000/
H A Dwlan.c273 u8 end_index; in is_ac_q_limit() local
286 q->end_index = AC_BUFFER_SIZE - 1; in is_ac_q_limit()
290 end_index = q->end_index; in is_ac_q_limit()
291 q->cnt[q->buffer[end_index]] -= factors[q->buffer[end_index]]; in is_ac_q_limit()
293 q->sum += (factors[q_num] - factors[q->buffer[end_index]]); in is_ac_q_limit()
295 q->buffer[end_index] = q_num; in is_ac_q_limit()
296 if (end_index > 0) in is_ac_q_limit()
297 q->end_index--; in is_ac_q_limit()
299 q->end_index = AC_BUFFER_SIZE - 1; in is_ac_q_limit()
/linux-6.15/drivers/gpu/drm/amd/display/dc/dml/dcn321/
H A Ddcn321_fpu.c265 unsigned int end_index = 0; in sort_entries_with_same_bw() local
272 end_index = ++i; in sort_entries_with_same_bw()
275 end_index = ++i; in sort_entries_with_same_bw()
278 if (start_index != end_index) { in sort_entries_with_same_bw()
279 for (int j = start_index; j < end_index; j++) { in sort_entries_with_same_bw()
280 for (int k = start_index; k < end_index; k++) { in sort_entries_with_same_bw()
288 end_index = 0; in sort_entries_with_same_bw()
/linux-6.15/fs/btrfs/
H A Dcompression.c286 unsigned long end_index = (cb->start + cb->len - 1) >> PAGE_SHIFT; in end_compressed_writeback() local
296 while (index <= end_index) { in end_compressed_writeback()
297 ret = filemap_get_folios(inode->i_mapping, &index, end_index, in end_compressed_writeback()
418 unsigned long end_index; in add_ra_bio_pages() local
446 end_index = (i_size_read(inode) - 1) >> PAGE_SHIFT; in add_ra_bio_pages()
453 if (pg_index > end_index) in add_ra_bio_pages()
526 if (folio->index == end_index) { in add_ra_bio_pages()
H A Dextent_io.c202 pgoff_t end_index = end >> PAGE_SHIFT; in __process_folios_contig() local
207 while (index <= end_index) { in __process_folios_contig()
211 end_index, &fbatch); in __process_folios_contig()
228 unsigned long end_index = end >> PAGE_SHIFT; in unlock_delalloc_folio() local
245 pgoff_t end_index = end >> PAGE_SHIFT; in lock_delalloc_folios() local
253 while (index <= end_index) { in lock_delalloc_folios()
257 end_index, &fbatch); in lock_delalloc_folios()
1706 unsigned long end_index = i_size >> PAGE_SHIFT; in extent_writepage() local
1714 if (folio->index > end_index || in extent_writepage()
1715 (folio->index == end_index && !pg_offset)) { in extent_writepage()
[all …]
/linux-6.15/fs/ubifs/
H A Dfile.c598 pgoff_t end_index; in populate_page() local
603 end_index = (i_size - 1) >> PAGE_SHIFT; in populate_page()
604 if (!i_size || folio->index > end_index) { in populate_page()
663 if (end_index == folio->index) { in populate_page()
697 pgoff_t offset = folio1->index, end_index; in ubifs_do_bulk_read() local
758 end_index = ((isize - 1) >> PAGE_SHIFT); in ubifs_do_bulk_read()
764 if (page_offset > end_index) in ubifs_do_bulk_read()
/linux-6.15/fs/btrfs/tests/
H A Dextent-io-tests.c27 unsigned long end_index = end >> PAGE_SHIFT; in process_page_range() local
34 while (index <= end_index) { in process_page_range()
36 end_index, &fbatch); in process_page_range()
/linux-6.15/fs/ocfs2/
H A Daops.c1007 unsigned long start, target_index, end_index, index; in ocfs2_grab_folios_for_write() local
1030 end_index = ((last_byte - 1) >> PAGE_SHIFT) + 1; in ocfs2_grab_folios_for_write()
1031 if ((start + wc->w_num_folios) > end_index) in ocfs2_grab_folios_for_write()
1032 wc->w_num_folios = end_index - start; in ocfs2_grab_folios_for_write()
1037 end_index = (user_pos + user_len - 1) >> PAGE_SHIFT; in ocfs2_grab_folios_for_write()
1042 if (index >= target_index && index <= end_index && in ocfs2_grab_folios_for_write()
1062 } else if (index >= target_index && index <= end_index && in ocfs2_grab_folios_for_write()
/linux-6.15/drivers/md/dm-vdo/
H A Dslab-depot.c1896 cursor->end_index = min_t(u32, COUNTS_PER_BLOCK, slab->block_count); in reset_search_cursor()
1922 cursor->index = cursor->end_index; in advance_search_cursor()
1926 cursor->end_index = slab->block_count; in advance_search_cursor()
1928 cursor->end_index += COUNTS_PER_BLOCK; in advance_search_cursor()
2049 slab_block_number end_index = slab->search_cursor.end_index; in find_free_block() local
2051 u8 *end_counter = &slab->counters[end_index]; in find_free_block()
2057 zero_index = find_zero_byte_in_word(next_counter, next_index, end_index); in find_free_block()
2058 if (zero_index < end_index) { in find_free_block()
2081 if (zero_index < end_index) { in find_free_block()
2908 tail_block_offset_t end_index = (tail - 1) % journal->size; in apply_journal_entries() local
[all …]
/linux-6.15/fs/nfs/
H A Dinternal.h861 pgoff_t end_index = (i_size - 1) >> folio_shift(folio); in nfs_folio_length() local
862 if (index < end_index) in nfs_folio_length()
864 if (index == end_index) in nfs_folio_length()

123