/linux/mm/ |
A D | fadvise.c | 39 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() 137 if (end_index == 0) in generic_fadvise() 140 end_index--; in generic_fadvise() 143 if (end_index >= start_index) { in generic_fadvise() 158 start_index, end_index, in generic_fadvise() 170 end_index); in generic_fadvise()
|
A D | readahead.c | 256 pgoff_t end_index; /* The last page we want to read */ in do_page_cache_ra() local 261 end_index = (isize - 1) >> PAGE_SHIFT; in do_page_cache_ra() 262 if (index > end_index) in do_page_cache_ra() 265 if (nr_to_read > end_index - index) in do_page_cache_ra() 266 nr_to_read = end_index - index + 1; in do_page_cache_ra()
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
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() 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()
|
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()
|
A D | spectrum_fid.c | 97 u16 end_index; member 484 nr_fids = fid_family->end_index - fid_family->start_index + 1; in mlxsw_sp_fid_8021d_index_alloc() 697 .end_index = VLAN_N_VID + MLXSW_SP_FID_8021D_MAX - 1, 746 .end_index = MLXSW_SP_FID_8021Q_EMU_END, 834 .end_index = MLXSW_SP_RFID_BASE + MLXSW_SP_RFID_MAX - 1, 876 .end_index = VLAN_N_VID - 1, 1056 u16 nr_fids = tmpl->end_index - tmpl->start_index + 1; in mlxsw_sp_fid_family_register()
|
/linux/include/trace/events/ |
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))
|
/linux/arch/sparc/kernel/ |
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()
|
/linux/fs/squashfs/ |
A D | file_direct.c | 35 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()
|
A D | file.c | 388 int start_index = page->index & ~mask, end_index = start_index | mask; in squashfs_copy_cache() local 396 for (i = start_index; i <= end_index && bytes > 0; i++, in squashfs_copy_cache()
|
/linux/fs/ntfs/ |
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()
|
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() 2092 pgoff_t index, end_index; in ntfs_mft_record_format() local 2105 end_index = i_size >> PAGE_SHIFT; in ntfs_mft_record_format() 2106 if (unlikely(index >= end_index)) { in ntfs_mft_record_format() 2107 if (unlikely(index > end_index || ofs + vol->mft_record_size >= in ntfs_mft_record_format()
|
/linux/fs/isofs/ |
A D | compress.c | 310 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()
|
/linux/fs/ubifs/ |
A D | file.c | 614 pgoff_t end_index; in populate_page() local 621 end_index = (i_size - 1) >> PAGE_SHIFT; in populate_page() 622 if (!i_size || page->index > end_index) { in populate_page() 679 if (end_index == page->index) { in populate_page() 720 pgoff_t offset = page1->index, end_index; in ubifs_do_bulk_read() local 781 end_index = ((isize - 1) >> PAGE_SHIFT); in ubifs_do_bulk_read() 787 if (page_offset > end_index) in ubifs_do_bulk_read() 1011 pgoff_t end_index = i_size >> PAGE_SHIFT; in ubifs_writepage() local 1020 if (page->index > end_index || (page->index == end_index && !len)) { in ubifs_writepage() 1030 if (page->index < end_index) { in ubifs_writepage()
|
/linux/drivers/net/wireless/microchip/wilc1000/ |
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()
|
A D | netdev.h | 202 u16 end_index; member
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
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,
|
/linux/fs/ |
A D | mpage.c | 486 unsigned long end_index; in __mpage_writepage() local 588 end_index = i_size >> PAGE_SHIFT; in __mpage_writepage() 589 if (page->index >= end_index) { in __mpage_writepage() 600 if (page->index > end_index || !offset) in __mpage_writepage()
|
A D | dax.c | 972 pgoff_t end_index = wbc->range_end >> PAGE_SHIFT; in dax_writeback_mapping_range() local 983 trace_dax_writeback_range(inode, xas.xa_index, end_index); in dax_writeback_mapping_range() 985 tag_pages_for_writeback(mapping, xas.xa_index, end_index); in dax_writeback_mapping_range() 988 xas_for_each_marked(&xas, entry, end_index, PAGECACHE_TAG_TOWRITE) { in dax_writeback_mapping_range() 1003 trace_dax_writeback_range_done(inode, xas.xa_index, end_index); in dax_writeback_mapping_range()
|
/linux/fs/btrfs/ |
A D | compression.c | 341 unsigned long end_index = (cb->start + cb->len - 1) >> PAGE_SHIFT; in end_compressed_writeback() local 343 unsigned long nr_pages = end_index - index + 1; in end_compressed_writeback() 655 unsigned long end_index; in add_ra_bio_pages() local 682 end_index = (i_size_read(inode) - 1) >> PAGE_SHIFT; in add_ra_bio_pages() 689 if (pg_index > end_index) in add_ra_bio_pages() 750 if (page->index == end_index) { in add_ra_bio_pages()
|
A D | extent_io.c | 1497 unsigned long end_index = end >> PAGE_SHIFT; in extent_range_clear_dirty_for_io() local 1500 while (index <= end_index) { in extent_range_clear_dirty_for_io() 1512 unsigned long end_index = end >> PAGE_SHIFT; in extent_range_redirty_for_io() local 1515 while (index <= end_index) { in extent_range_redirty_for_io() 1869 pgoff_t end_index = end >> PAGE_SHIFT; in __process_pages_contig() local 1944 unsigned long end_index = end >> PAGE_SHIFT; in __unlock_for_delalloc() local 3097 pgoff_t end_index = i_size >> PAGE_SHIFT; in end_bio_extent_readpage() local 4078 unsigned long end_index = i_size >> PAGE_SHIFT; in __extent_writepage() local 4089 if (page->index > end_index || in __extent_writepage() 4090 (page->index == end_index && !pg_offset)) { in __extent_writepage() [all …]
|
/linux/fs/btrfs/tests/ |
A D | extent-io-tests.c | 25 unsigned long end_index = end >> PAGE_SHIFT; in process_page_range() local 26 unsigned long nr_pages = end_index - index + 1; in process_page_range()
|
/linux/fs/ocfs2/ |
A D | aops.c | 1032 unsigned long start, target_index, end_index, index; in ocfs2_grab_pages_for_write() local 1055 end_index = ((last_byte - 1) >> PAGE_SHIFT) + 1; in ocfs2_grab_pages_for_write() 1056 if ((start + wc->w_num_pages) > end_index) in ocfs2_grab_pages_for_write() 1057 wc->w_num_pages = end_index - start; in ocfs2_grab_pages_for_write() 1062 end_index = (user_pos + user_len - 1) >> PAGE_SHIFT; in ocfs2_grab_pages_for_write() 1067 if (index >= target_index && index <= end_index && in ocfs2_grab_pages_for_write() 1087 } else if (index >= target_index && index <= end_index && in ocfs2_grab_pages_for_write()
|
/linux/fs/iomap/ |
A D | buffered-io.c | 1397 pgoff_t end_index; in iomap_do_writepage() local 1431 end_index = offset >> PAGE_SHIFT; in iomap_do_writepage() 1432 if (page->index < end_index) in iomap_do_writepage() 1465 if (page->index > end_index || in iomap_do_writepage() 1466 (page->index == end_index && offset_into_page == 0)) in iomap_do_writepage()
|
/linux/fs/nfs/ |
A D | internal.h | 715 pgoff_t end_index = (i_size - 1) >> PAGE_SHIFT; in nfs_page_length() local 716 if (index < end_index) in nfs_page_length() 718 if (index == end_index) in nfs_page_length()
|
/linux/fs/hugetlbfs/ |
A D | inode.c | 329 unsigned long end_index; in hugetlbfs_read_iter() local 342 end_index = (isize - 1) >> huge_page_shift(h); in hugetlbfs_read_iter() 343 if (index > end_index) in hugetlbfs_read_iter() 345 if (index == end_index) { in hugetlbfs_read_iter()
|