/Linux-v6.6/mm/ |
D | fadvise.c | 38 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()
|
D | readahead.c | 287 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()
|
/Linux-v6.6/fs/squashfs/ |
D | file_direct.c | 32 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()
|
D | file.c | 389 int start_index = page->index & ~mask, end_index = start_index | mask; in squashfs_copy_cache() local 397 for (i = start_index; i <= end_index && bytes > 0; i++, in squashfs_copy_cache()
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum1_kvdl.c | 34 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()
|
D | spectrum_policer.c | 17 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()
|
D | spectrum_pgt.c | 12 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()
|
D | spectrum_fid.c | 104 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 = MLXSW_SP_FID_DUMMY, [all …]
|
/Linux-v6.6/include/trace/events/ |
D | fs_dax.h | 228 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-v6.6/arch/sparc/kernel/ |
D | cpumap.c | 44 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-v6.6/fs/ntfs/ |
D | bitmap.c | 37 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()
|
D | mft.c | 42 unsigned long index, end_index; in map_mft_record_page() local 58 end_index = i_size >> PAGE_SHIFT; in map_mft_record_page() 61 if (unlikely(index >= end_index)) { in map_mft_record_page() 62 if (index > end_index || (i_size & ~PAGE_MASK) < ofs + in map_mft_record_page() 2094 pgoff_t index, end_index; in ntfs_mft_record_format() local 2107 end_index = i_size >> PAGE_SHIFT; in ntfs_mft_record_format() 2108 if (unlikely(index >= end_index)) { in ntfs_mft_record_format() 2109 if (unlikely(index > end_index || ofs + vol->mft_record_size >= in ntfs_mft_record_format()
|
/Linux-v6.6/fs/isofs/ |
D | compress.c | 314 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()
|
/Linux-v6.6/fs/ubifs/ |
D | file.c | 613 pgoff_t end_index; in populate_page() local 620 end_index = (i_size - 1) >> PAGE_SHIFT; in populate_page() 621 if (!i_size || page->index > end_index) { in populate_page() 678 if (end_index == page->index) { in populate_page() 719 pgoff_t offset = page1->index, end_index; in ubifs_do_bulk_read() local 780 end_index = ((isize - 1) >> PAGE_SHIFT); in ubifs_do_bulk_read() 786 if (page_offset > end_index) in ubifs_do_bulk_read() 1012 pgoff_t end_index = i_size >> PAGE_SHIFT; in ubifs_writepage() local 1021 if (page->index > end_index || (page->index == end_index && !len)) { in ubifs_writepage() 1031 if (page->index < end_index) { in ubifs_writepage()
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dml/dcn321/ |
D | dcn321_fpu.c | 265 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-v6.6/drivers/net/wireless/microchip/wilc1000/ |
D | wlan.c | 292 u8 end_index; in is_ac_q_limit() local 305 q->end_index = AC_BUFFER_SIZE - 1; in is_ac_q_limit() 309 end_index = q->end_index; in is_ac_q_limit() 310 q->cnt[q->buffer[end_index]] -= factors[q->buffer[end_index]]; in is_ac_q_limit() 312 q->sum += (factors[q_num] - factors[q->buffer[end_index]]); in is_ac_q_limit() 314 q->buffer[end_index] = q_num; in is_ac_q_limit() 315 if (end_index > 0) in is_ac_q_limit() 316 q->end_index--; in is_ac_q_limit() 318 q->end_index = AC_BUFFER_SIZE - 1; in is_ac_q_limit()
|
D | netdev.h | 193 u16 end_index; member
|
/Linux-v6.6/drivers/iommu/iommufd/ |
D | pages.c | 1312 unsigned long end_index) in iopt_area_unfill_partial_domain() argument 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() 1520 unsigned long end_index) in iopt_pages_unpin_xarray() argument [all …]
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
D | fs_tracepoint.h | 106 __field(u32, end_index) 117 __entry->end_index = fg->start_index + fg->max_ftes; 139 __entry->start_index, __entry->end_index,
|
/Linux-v6.6/fs/nfs/ |
D | internal.h | 805 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()
|
/Linux-v6.6/fs/btrfs/ |
D | compression.c | 194 unsigned long end_index = (cb->start + cb->len - 1) >> PAGE_SHIFT; in end_compressed_writeback() local 204 while (index <= end_index) { in end_compressed_writeback() 205 ret = filemap_get_folios(inode->i_mapping, &index, end_index, in end_compressed_writeback() 324 unsigned long end_index; in add_ra_bio_pages() local 352 end_index = (i_size_read(inode) - 1) >> PAGE_SHIFT; in add_ra_bio_pages() 359 if (pg_index > end_index) in add_ra_bio_pages() 425 if (page->index == end_index) { in add_ra_bio_pages()
|
D | extent_io.c | 172 unsigned long end_index = end >> PAGE_SHIFT; in extent_range_clear_dirty_for_io() local 175 while (index <= end_index) { in extent_range_clear_dirty_for_io() 212 pgoff_t end_index = end >> PAGE_SHIFT; in __process_pages_contig() local 218 while (index <= end_index) { in __process_pages_contig() 222 end_index, &fbatch); in __process_pages_contig() 239 unsigned long end_index = end >> PAGE_SHIFT; in __unlock_for_delalloc() local 242 if (index == locked_page->index && end_index == index) in __unlock_for_delalloc() 257 pgoff_t end_index = end >> PAGE_SHIFT; in lock_delalloc_pages() local 262 if (index == locked_page->index && index == end_index) in lock_delalloc_pages() 266 while (index <= end_index) { in lock_delalloc_pages() [all …]
|
/Linux-v6.6/fs/btrfs/tests/ |
D | extent-io-tests.c | 26 unsigned long end_index = end >> PAGE_SHIFT; in process_page_range() local 33 while (index <= end_index) { in process_page_range() 35 end_index, &fbatch); in process_page_range()
|
/Linux-v6.6/fs/ocfs2/ |
D | aops.c | 1031 unsigned long start, target_index, end_index, index; in ocfs2_grab_pages_for_write() local 1054 end_index = ((last_byte - 1) >> PAGE_SHIFT) + 1; in ocfs2_grab_pages_for_write() 1055 if ((start + wc->w_num_pages) > end_index) in ocfs2_grab_pages_for_write() 1056 wc->w_num_pages = end_index - start; in ocfs2_grab_pages_for_write() 1061 end_index = (user_pos + user_len - 1) >> PAGE_SHIFT; in ocfs2_grab_pages_for_write() 1066 if (index >= target_index && index <= end_index && in ocfs2_grab_pages_for_write() 1086 } else if (index >= target_index && index <= end_index && in ocfs2_grab_pages_for_write()
|
/Linux-v6.6/fs/ |
D | dax.c | 1030 pgoff_t end_index = wbc->range_end >> PAGE_SHIFT; in dax_writeback_mapping_range() local 1041 trace_dax_writeback_range(inode, xas.xa_index, end_index); in dax_writeback_mapping_range() 1043 tag_pages_for_writeback(mapping, xas.xa_index, end_index); in dax_writeback_mapping_range() 1046 xas_for_each_marked(&xas, entry, end_index, PAGECACHE_TAG_TOWRITE) { in dax_writeback_mapping_range() 1061 trace_dax_writeback_range_done(inode, xas.xa_index, end_index); in dax_writeback_mapping_range()
|