/openbmc/linux/mm/ |
H A 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()
|
H A 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()
|
/openbmc/linux/fs/squashfs/ |
H A D | file_direct.c | 32 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, n = start_index; n <= end_index; n++) { in squashfs_readpage_block() 89 if (page[pages - 1]->index == end_index && bytes) { in squashfs_readpage_block()
|
H A 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()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A 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()
|
H A 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()
|
H A 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()
|
H A 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 …]
|
/openbmc/linux/include/trace/events/ |
H A 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))
|
/openbmc/linux/arch/sparc/kernel/ |
H A 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()
|
/openbmc/linux/fs/ntfs/ |
H A 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()
|
H A 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()
|
/openbmc/linux/fs/isofs/ |
H A 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()
|
/openbmc/linux/fs/ubifs/ |
H A D | file.c | 608 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 && !len)) { in ubifs_writepage() 1026 if (page->index < end_index) { in ubifs_writepage()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn321/ |
H A 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()
|
/openbmc/linux/drivers/net/wireless/microchip/wilc1000/ |
H A 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()
|
H A D | netdev.h | 193 u16 end_index; member
|
/openbmc/linux/drivers/iommu/iommufd/ |
H A 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() 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() argument 1524 while (start_index <= end_index) { in iopt_pages_unpin_xarray() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A 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,
|
/openbmc/linux/fs/nfs/ |
H A D | internal.h | 803 pgoff_t end_index = (i_size - 1) >> PAGE_SHIFT; in nfs_page_length() local 804 if (index < end_index) in nfs_page_length() 806 if (index == end_index) in nfs_page_length() 821 pgoff_t end_index = (i_size - 1) >> folio_shift(folio); in nfs_folio_length() local 822 if (index < end_index) in nfs_folio_length() 824 if (index == end_index) in nfs_folio_length()
|
/openbmc/linux/fs/btrfs/ |
H A 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() 426 if (page->index == end_index) { in add_ra_bio_pages()
|
H A 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 257 pgoff_t end_index = end >> PAGE_SHIFT; in lock_delalloc_pages() local 266 while (index <= end_index) { in lock_delalloc_pages() 270 end_index, &fbatch); in lock_delalloc_pages() 1417 if (page->index > end_index || in __extent_writepage() [all …]
|
/openbmc/linux/fs/btrfs/tests/ |
H A D | extent-io-tests.c | 27 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()
|
/openbmc/linux/fs/ocfs2/ |
H A D | aops.c | 1030 unsigned long start, target_index, end_index, index; in ocfs2_grab_pages_for_write() local 1053 end_index = ((last_byte - 1) >> PAGE_SHIFT) + 1; in ocfs2_grab_pages_for_write() 1054 if ((start + wc->w_num_pages) > end_index) in ocfs2_grab_pages_for_write() 1055 wc->w_num_pages = end_index - start; in ocfs2_grab_pages_for_write() 1060 end_index = (user_pos + user_len - 1) >> PAGE_SHIFT; in ocfs2_grab_pages_for_write() 1065 if (index >= target_index && index <= end_index && in ocfs2_grab_pages_for_write() 1085 } else if (index >= target_index && index <= end_index && in ocfs2_grab_pages_for_write()
|
/openbmc/linux/drivers/gpu/drm/amd/display/modules/color/ |
H A D | color_gamma.c | 265 uint32_t begin_index, end_index; in precompute_de_pq() local 273 end_index = begin_index + 12 * NUM_PTS_IN_REGION; in precompute_de_pq() 278 for (; i <= end_index; i++) { in precompute_de_pq() 1084 uint32_t begin_index, end_index; in build_degamma() local 1096 end_index = begin_index + 12 * NUM_PTS_IN_REGION; in build_degamma() 1105 while (i != end_index) { in build_degamma()
|