Home
last modified time | relevance | path

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

123

/linux/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.c320 pgoff_t end_index; /* The last page we want to read */ in do_page_cache_ra() local
325 end_index = (isize - 1) >> PAGE_SHIFT; in do_page_cache_ra()
326 if (index > end_index) in do_page_cache_ra()
329 if (nr_to_read > end_index - index) in do_page_cache_ra()
330 nr_to_read = end_index - index + 1; in do_page_cache_ra()
/linux/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/include/trace/events/
H A Dfs_dax.h150 TP_PROTO(struct inode *inode, pgoff_t start_index, pgoff_t end_index),
151 TP_ARGS(inode, start_index, end_index),
155 __field(pgoff_t, end_index)
162 __entry->end_index = end_index;
169 __entry->end_index
175 TP_PROTO(struct inode *inode, pgoff_t start_index, pgoff_t end_index),\
176 TP_ARGS(inode, start_index, end_index))
/linux/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
372 return fid_family->end_index - fid_family->start_index + 1; in mlxsw_sp_fid_family_num_fids()
941 nr_fids = fid_family->end_index - fid_family->start_index + 1; in mlxsw_sp_fid_8021d_index_alloc()
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,
[all …]
/linux/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/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/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Dlag.h134 #define mlx5_ldev_for_each_reverse(i, start_index, end_index, ldev) \ argument
135 for (int tmp = start_index, tmp1 = end_index; \
/linux/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/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/drivers/iommu/iommufd/
H A Dpages.c1496 unsigned long end_index) in iopt_area_unfill_partial_domain() argument
1498 if (end_index != iopt_area_index(area)) in iopt_area_unfill_partial_domain()
1499 __iopt_area_unfill_domain(area, pages, domain, end_index - 1); in iopt_area_unfill_partial_domain()
1639 unsigned long end_index; in iopt_area_fill_domains() local
1642 end_index = done_first_end_index; in iopt_area_fill_domains()
1644 end_index = done_all_end_index; in iopt_area_fill_domains()
1652 if (end_index != iopt_area_index(area)) in iopt_area_fill_domains()
1655 end_index - 1); in iopt_area_fill_domains()
1658 end_index); in iopt_area_fill_domains()
1706 unsigned long end_index) in iopt_pages_unpin_xarray() argument
[all …]
/linux/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/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/fs/ubifs/
H A Dfile.c600 pgoff_t end_index; in populate_page() local
605 end_index = (i_size - 1) >> PAGE_SHIFT; in populate_page()
606 if (!i_size || folio->index > end_index) { in populate_page()
665 if (end_index == folio->index) { in populate_page()
699 pgoff_t offset = folio1->index, end_index; in ubifs_do_bulk_read() local
760 end_index = ((isize - 1) >> PAGE_SHIFT); in ubifs_do_bulk_read()
766 if (page_offset > end_index) in ubifs_do_bulk_read()
/linux/fs/btrfs/
H A Dcompression.c296 const pgoff_t end_index = (cb->start + cb->len - 1) >> PAGE_SHIFT; in end_compressed_writeback() local
306 while (index <= end_index) { in end_compressed_writeback()
307 ret = filemap_get_folios(inode->i_mapping, &index, end_index, in end_compressed_writeback()
431 pgoff_t end_index; in add_ra_bio_pages() local
463 end_index = (i_size_read(inode) - 1) >> PAGE_SHIFT; in add_ra_bio_pages()
470 if (pg_index > end_index) in add_ra_bio_pages()
543 if (folio_contains(folio, end_index)) { in add_ra_bio_pages()
H A Dextent_io.c271 pgoff_t end_index = end >> PAGE_SHIFT; in __process_folios_contig() local
276 while (index <= end_index) { in __process_folios_contig()
280 end_index, &fbatch); in __process_folios_contig()
309 pgoff_t end_index = end >> PAGE_SHIFT; in lock_delalloc_folios() local
314 while (index <= end_index) { in lock_delalloc_folios()
318 end_index, &fbatch); in lock_delalloc_folios()
1798 const pgoff_t end_index = i_size >> PAGE_SHIFT; in extent_writepage() local
1806 if (folio->index > end_index || in extent_writepage()
1807 (folio->index == end_index && !pg_offset)) { in extent_writepage()
1813 if (folio_contains(folio, end_index)) in extent_writepage()
[all …]
/linux/fs/btrfs/tests/
H A Dextent-io-tests.c27 pgoff_t 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/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/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()
2080 zero_index = find_zero_byte_in_word(next_counter, next_index, end_index); in find_free_block()
2081 if (zero_index < end_index) { in find_free_block()
[all …]
/linux/drivers/gpu/drm/amd/display/modules/color/
H A Dcolor_gamma.c369 uint32_t begin_index, end_index; in precompute_de_pq() local
377 end_index = begin_index + 12 * NUM_PTS_IN_REGION; in precompute_de_pq()
382 for (; i <= end_index; i++) { in precompute_de_pq()
1186 uint32_t begin_index, end_index; in build_degamma() local
1198 end_index = begin_index + 12 * NUM_PTS_IN_REGION; in build_degamma()
1207 while (i != end_index) { in build_degamma()
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dppatomctrl.c923 uint16_t end_index, uint32_t *efuse) in atomctrl_read_efuse() argument
930 if ((end_index - start_index) == 31) in atomctrl_read_efuse()
933 mask = (1 << ((end_index - start_index) + 1)) - 1; in atomctrl_read_efuse()
939 ((end_index - start_index) + 1); in atomctrl_read_efuse()

123