Home
last modified time | relevance | path

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

12

/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()
122 end_index = (endbyte >> PAGE_SHIFT); in generic_fadvise()
137 if (end_index == 0) in generic_fadvise()
140 end_index--; in generic_fadvise()
143 if (end_index >= start_index) { in generic_fadvise()
157 mapping_try_invalidate(mapping, start_index, end_index, in generic_fadvise()
168 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/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/iommu/generic_pt/
H A Dpt_iter.h156 pts->end_index = pt_range_to_end_index(pts); in _pt_iter_first()
157 PT_WARN_ON(pts->index > pts->end_index); in _pt_iter_first()
162 if (pts->index >= pts->end_index) in _pt_iter_load()
469 unsigned int end_index) in pt_range_slice() argument
480 log2_mul(end_index, pt_table_item_lg2sz(pts)) - 1, table_lg2sz); in pt_range_slice()
H A Dpt_defs.h153 unsigned short end_index; member
/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()
/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()
H A Dnetdev.h202 u16 end_index; member
/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/drivers/iommu/iommufd/
H A Dpages.c1792 unsigned long end_index) in iopt_area_unfill_partial_domain() argument
1794 if (end_index != iopt_area_index(area)) in iopt_area_unfill_partial_domain()
1795 __iopt_area_unfill_domain(area, pages, domain, end_index - 1); in iopt_area_unfill_partial_domain()
1952 unsigned long end_index; in iopt_area_fill_domains() local
1955 end_index = done_first_end_index; in iopt_area_fill_domains()
1957 end_index = done_all_end_index; in iopt_area_fill_domains()
1965 if (end_index != iopt_area_index(area)) in iopt_area_fill_domains()
1968 end_index - 1); in iopt_area_fill_domains()
1971 end_index); in iopt_area_fill_domains()
2027 unsigned long end_index) in iopt_pages_unpin_xarray() argument
[all …]
/linux/fs/btrfs/
H A Dcompression.c292 const pgoff_t end_index = (cb->start + cb->len - 1) >> PAGE_SHIFT; in end_compressed_writeback() local
302 while (index <= end_index) { in end_compressed_writeback()
303 ret = filemap_get_folios(inode->i_mapping, &index, end_index, in end_compressed_writeback()
415 pgoff_t end_index; in add_ra_bio_pages() local
447 end_index = (i_size_read(inode) - 1) >> PAGE_SHIFT; in add_ra_bio_pages()
454 if (pg_index > end_index) in add_ra_bio_pages()
527 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()
1813 const pgoff_t end_index = i_size >> PAGE_SHIFT; in extent_writepage() local
1821 if (folio->index > end_index || in extent_writepage()
1822 (folio->index == end_index && !pg_offset)) { in extent_writepage()
1828 if (folio_contains(folio, end_index)) in extent_writepage()
[all …]
/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.c1900 cursor->end_index = min_t(u32, COUNTS_PER_BLOCK, slab->block_count); in reset_search_cursor()
1927 cursor->index = cursor->end_index; in advance_search_cursor()
1931 cursor->end_index = slab->block_count; in advance_search_cursor()
1933 cursor->end_index += COUNTS_PER_BLOCK; in advance_search_cursor()
2055 slab_block_number end_index = slab->search_cursor.end_index; in find_free_block() local
2057 u8 *end_counter = &slab->counters[end_index]; in find_free_block()
2063 zero_index = find_zero_byte_in_word(next_counter, next_index, end_index); in find_free_block()
2064 if (zero_index < end_index) { in find_free_block()
2086 zero_index = find_zero_byte_in_word(next_counter, next_index, end_index); in find_free_block()
2087 if (zero_index < end_index) { in find_free_block()
[all …]
H A Dslab-depot.h189 slab_block_number end_index; member
/linux/fs/nfs/
H A Dinternal.h883 pgoff_t end_index = (i_size - 1) >> folio_shift(folio); in nfs_folio_length() local
884 if (index < end_index) in nfs_folio_length()
886 if (index == end_index) in nfs_folio_length()
/linux/fs/hugetlbfs/
H A Dinode.c247 unsigned long end_index; in hugetlbfs_read_iter() local
260 end_index = (isize - 1) >> huge_page_shift(h); in hugetlbfs_read_iter()
261 if (index > end_index) in hugetlbfs_read_iter()
263 if (index == end_index) { in hugetlbfs_read_iter()
/linux/fs/
H A Ddax.c1204 pgoff_t end_index = wbc->range_end >> PAGE_SHIFT; in dax_writeback_mapping_range() local
1215 trace_dax_writeback_range(inode, xas.xa_index, end_index); in dax_writeback_mapping_range()
1217 tag_pages_for_writeback(mapping, xas.xa_index, end_index); in dax_writeback_mapping_range()
1220 xas_for_each_marked(&xas, entry, end_index, PAGECACHE_TAG_TOWRITE) { in dax_writeback_mapping_range()
1235 trace_dax_writeback_range_done(inode, xas.xa_index, end_index); in dax_writeback_mapping_range()
/linux/fs/squashfs/
H A Dfile.c399 int start_index = folio->index & ~mask, end_index = start_index | mask; in squashfs_copy_cache() local
407 for (i = start_index; i <= end_index && bytes > 0; i++, in squashfs_copy_cache()

12