Home
last modified time | relevance | path

Searched refs:end_index (Results 1 - 25 of 105) sorted by relevance

12345

/kernel/linux/linux-5.10/mm/
H A Dfadvise.c39 pgoff_t end_index; in generic_fadvise() local
100 end_index = endbyte >> PAGE_SHIFT; in generic_fadvise()
103 nrpages = end_index - start_index + 1; in generic_fadvise()
122 end_index = (endbyte >> PAGE_SHIFT); in generic_fadvise()
124 * The page at end_index will be inclusively discarded according in generic_fadvise()
126 * end_index means we will skip the last page. But if endbyte in generic_fadvise()
133 * is unsigned, so the end_index >= start_index in generic_fadvise()
137 if (end_index == 0) in generic_fadvise()
140 end_index--; in generic_fadvise()
143 if (end_index > in generic_fadvise()
[all...]
H A Dreadahead.c255 pgoff_t end_index; /* The last page we want to read */ in do_page_cache_ra() local
260 end_index = (isize - 1) >> PAGE_SHIFT; in do_page_cache_ra()
261 if (index > end_index) in do_page_cache_ra()
264 if (nr_to_read > end_index - index) in do_page_cache_ra()
265 nr_to_read = end_index - index + 1; in do_page_cache_ra()
/kernel/linux/linux-6.6/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()
125 * The page at end_index will be inclusively discarded according in generic_fadvise()
127 * end_index means we will skip the last page. But if endbyte in generic_fadvise()
134 * is unsigned, so the end_index >= start_index in generic_fadvise()
138 if (end_index == 0) in generic_fadvise()
141 end_index--; in generic_fadvise()
144 if (end_index > in generic_fadvise()
[all...]
H A Dreadahead.c287 pgoff_t end_index; /* The last page we want to read */ in do_page_cache_ra() local
292 end_index = (isize - 1) >> PAGE_SHIFT; in do_page_cache_ra()
293 if (index > end_index) in do_page_cache_ra()
296 if (nr_to_read > end_index - index) in do_page_cache_ra()
297 nr_to_read = end_index - index + 1; in do_page_cache_ra()
/kernel/linux/linux-6.6/fs/squashfs/
H A Dfile_direct.c32 int 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, n = start_index; n <= end_index; n++) { in squashfs_readpage_block()
89 if (page[pages - 1]->index == end_index && bytes) { in squashfs_readpage_block()
/kernel/linux/linux-5.10/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()
224 resource_size = info->end_index - info->start_index + 1; in mlxsw_sp1_kvdl_part_init()
285 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()
/kernel/linux/linux-6.6/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_pgt.c12 u16 end_index; /* Exclusive. */ member
34 mlxsw_sp->pgt->end_index, GFP_KERNEL); in mlxsw_sp_pgt_mid_alloc()
333 pgt->end_index = MLXSW_CORE_RES_GET(mlxsw_sp->core, PGT_SIZE); in mlxsw_sp_pgt_init()
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_fid.c104 u16 end_index; member
320 return fid_family->end_index - fid_family->start_index + 1; in mlxsw_sp_fid_family_num_fids()
789 nr_fids = fid_family->end_index - fid_family->start_index + 1; in mlxsw_sp_fid_8021d_index_alloc()
1430 .end_index = MLXSW_SP_FID_8021Q_END,
1445 .end_index = MLXSW_SP_FID_8021D_END,
1459 .end_index = MLXSW_SP_FID_DUMMY,
1468 .end_index = MLXSW_SP_RFID_END,
1486 .end_index = MLXSW_SP_FID_8021Q_END,
1501 .end_index = MLXSW_SP_FID_8021D_END,
1515 .end_index
[all...]
/kernel/linux/linux-5.10/fs/squashfs/
H A Dfile_direct.c35 int end_index = start_index | mask; in squashfs_readpage_block() local
41 if (end_index > file_end) in squashfs_readpage_block()
42 end_index = file_end; in squashfs_readpage_block()
44 pages = end_index - start_index + 1; in squashfs_readpage_block()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/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))
/kernel/linux/linux-6.6/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))
/kernel/linux/linux-5.10/fs/ntfs/
H A Dbitmap.c37 pgoff_t index, end_index; in __ntfs_bitmap_set_bits_in_run() local
57 end_index = (start_bit + cnt - 1) >> (3 + PAGE_SHIFT); in __ntfs_bitmap_set_bits_in_run()
106 while (index < end_index) { in __ntfs_bitmap_set_bits_in_run()
/kernel/linux/linux-6.6/fs/ntfs/
H A Dbitmap.c37 pgoff_t index, end_index; in __ntfs_bitmap_set_bits_in_run() local
57 end_index = (start_bit + cnt - 1) >> (3 + PAGE_SHIFT); in __ntfs_bitmap_set_bits_in_run()
106 while (index < end_index) { in __ntfs_bitmap_set_bits_in_run()
/kernel/linux/linux-5.10/fs/isofs/
H A Dcompress.c310 pgoff_t index = page->index, end_index; in zisofs_readpage() local
312 end_index = (inode->i_size + PAGE_SIZE - 1) >> PAGE_SHIFT; in zisofs_readpage()
317 if (index >= end_index) { in zisofs_readpage()
328 end_index - (index & ~(zisofs_pages_per_cblock - 1))); in zisofs_readpage()
/kernel/linux/linux-6.6/fs/isofs/
H A Dcompress.c314 pgoff_t index = page->index, end_index; in zisofs_read_folio() local
316 end_index = (inode->i_size + PAGE_SIZE - 1) >> PAGE_SHIFT; in zisofs_read_folio()
321 if (index >= end_index) { in zisofs_read_folio()
332 end_index - (index & ~(zisofs_pages_per_cblock - 1))); in zisofs_read_folio()
/kernel/linux/linux-5.10/fs/ubifs/
H A Dfile.c609 pgoff_t end_index; in populate_page() local
616 end_index = (i_size - 1) >> PAGE_SHIFT; in populate_page()
617 if (!i_size || page->index > end_index) { in populate_page()
674 if (end_index == page->index) { in populate_page()
715 pgoff_t offset = page1->index, end_index; in ubifs_do_bulk_read() local
776 end_index = ((isize - 1) >> PAGE_SHIFT); in ubifs_do_bulk_read()
782 if (page_offset > end_index) in ubifs_do_bulk_read()
1006 pgoff_t end_index = i_size >> PAGE_SHIFT; in ubifs_writepage() local
1015 if (page->index > end_index || (page->index == end_index in ubifs_writepage()
[all...]
/kernel/linux/linux-6.6/fs/ubifs/
H A Dfile.c608 pgoff_t end_index; in populate_page() local
615 end_index = (i_size - 1) >> PAGE_SHIFT; in populate_page()
616 if (!i_size || page->index > end_index) { in populate_page()
673 if (end_index == page->index) { in populate_page()
714 pgoff_t offset = page1->index, end_index; in ubifs_do_bulk_read() local
775 end_index = ((isize - 1) >> PAGE_SHIFT); in ubifs_do_bulk_read()
781 if (page_offset > end_index) in ubifs_do_bulk_read()
1007 pgoff_t end_index = i_size >> PAGE_SHIFT; in ubifs_writepage() local
1016 if (page->index > end_index || (page->index == end_index in ubifs_writepage()
[all...]
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/fs/nfs/
H A Dinternal.h805 pgoff_t end_index = (i_size - 1) >> PAGE_SHIFT; in nfs_page_length() local
806 if (index < end_index) in nfs_page_length()
808 if (index == end_index) in nfs_page_length()
823 pgoff_t end_index = (i_size - 1) >> folio_shift(folio); in nfs_folio_length() local
824 if (index < end_index) in nfs_folio_length()
826 if (index == end_index) in nfs_folio_length()
/kernel/linux/linux-6.6/drivers/iommu/iommufd/
H A Dpages.c1312 unsigned long end_index) in iopt_area_unfill_partial_domain()
1314 if (end_index != iopt_area_index(area)) in iopt_area_unfill_partial_domain()
1315 __iopt_area_unfill_domain(area, pages, domain, end_index - 1); in iopt_area_unfill_partial_domain()
1455 unsigned long end_index; in iopt_area_fill_domains() local
1458 end_index = done_first_end_index; in iopt_area_fill_domains()
1460 end_index = done_all_end_index; in iopt_area_fill_domains()
1468 if (end_index != iopt_area_index(area)) in iopt_area_fill_domains()
1471 end_index - 1); in iopt_area_fill_domains()
1474 end_index); in iopt_area_fill_domains()
1522 unsigned long end_index) in iopt_pages_unpin_xarray()
1309 iopt_area_unfill_partial_domain(struct iopt_area *area, struct iopt_pages *pages, struct iommu_domain *domain, unsigned long end_index) iopt_area_unfill_partial_domain() argument
1519 iopt_pages_unpin_xarray(struct pfn_batch *batch, struct iopt_pages *pages, unsigned long start_index, unsigned long end_index) iopt_pages_unpin_xarray() argument
[all...]

Completed in 21 milliseconds

12345