| /linux/fs/ntfs/ |
| H A D | bitmap.c | 18 pgoff_t index, start_index, end_index; in ntfs_trim_fs() local 49 end_index = (end_cluster + buf_clusters - 1) >> 15; in ntfs_trim_fs() 51 for (index = start_index; index < end_index; index++) { in ntfs_trim_fs() 53 index, end_index, ra); in ntfs_trim_fs() 124 pgoff_t index, end_index; in __ntfs_bitmap_set_bits_in_run() local 146 end_index = (start_bit + cnt - 1) >> (3 + PAGE_SHIFT); in __ntfs_bitmap_set_bits_in_run() 203 while (index < end_index) { in __ntfs_bitmap_set_bits_in_run()
|
| /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() 283 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() 323 pgt->end_index = MLXSW_CORE_RES_GET(mlxsw_sp->core, PGT_SIZE); in mlxsw_sp_pgt_init()
|
| /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()
|
| /linux/fs/isofs/ |
| H A D | compress.c | 316 pgoff_t index = folio->index, end_index; in zisofs_read_folio() local 318 end_index = (inode->i_size + PAGE_SIZE - 1) >> PAGE_SHIFT; in zisofs_read_folio() 323 if (index >= end_index) { in zisofs_read_folio() 333 end_index - (index & ~(zisofs_pages_per_cblock - 1))); in zisofs_read_folio()
|
| /linux/mm/ |
| H A D | readahead.c | 332 pgoff_t end_index; /* The last page we want to read */ in do_page_cache_ra() local 337 end_index = (isize - 1) >> PAGE_SHIFT; in do_page_cache_ra() 338 if (index > end_index) in do_page_cache_ra() 341 if (nr_to_read > end_index - index) { in do_page_cache_ra() 342 nr_to_read = end_index - index + 1; in do_page_cache_ra()
|
| /linux/drivers/net/wireless/microchip/wilc1000/ |
| H A D | wlan.c | 273 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 D | netdev.h | 202 u16 end_index; member
|
| /linux/fs/btrfs/ |
| H A D | compression.c | 255 const pgoff_t end_index = (cb->start + cb->len - 1) >> PAGE_SHIFT; in end_compressed_writeback() local 265 while (index <= end_index) { in end_compressed_writeback() 266 ret = filemap_get_folios(inode->i_mapping, &index, end_index, in end_compressed_writeback() 370 pgoff_t end_index; in add_ra_bio_folios() local 393 end_index = (i_size_read(inode) - 1) >> PAGE_SHIFT; in add_ra_bio_folios() 409 if (pg_index > end_index) in add_ra_bio_folios() 488 if (folio_contains(folio, end_index)) { in add_ra_bio_folios()
|
| H A D | extent_io.c | 272 pgoff_t end_index = end >> PAGE_SHIFT; in __process_folios_contig() local 277 while (index <= end_index) { in __process_folios_contig() 281 end_index, &fbatch); in __process_folios_contig() 329 pgoff_t end_index = end >> PAGE_SHIFT; in lock_delalloc_folios() local 334 while (index <= end_index) { in lock_delalloc_folios() 338 end_index, &fbatch); in lock_delalloc_folios() 2048 const pgoff_t end_index = i_size >> PAGE_SHIFT; in extent_writepage() local 2056 if (folio->index > end_index || in extent_writepage() 2057 (folio->index == end_index && !pg_offset)) { in extent_writepage() 2063 if (folio_contains(folio, end_index)) in extent_writepage() [all …]
|
| H A D | file.c | 2212 const pgoff_t end_index = (page_lockend - 1) >> PAGE_SHIFT; in check_range_has_page() local 2221 found_folios = filemap_get_folios(inode->i_mapping, &tmp, end_index, &fbatch); in check_range_has_page() 2229 if (folio_next_index(folio) > end_index) in check_range_has_page()
|
| /linux/drivers/iommu/iommufd/ |
| H A D | pages.c | 1802 unsigned long end_index) in iopt_area_unfill_partial_domain() argument 1804 if (end_index != iopt_area_index(area)) in iopt_area_unfill_partial_domain() 1805 __iopt_area_unfill_domain(area, pages, domain, end_index - 1); in iopt_area_unfill_partial_domain() 1962 unsigned long end_index; in iopt_area_fill_domains() local 1965 end_index = done_first_end_index; in iopt_area_fill_domains() 1967 end_index = done_all_end_index; in iopt_area_fill_domains() 1975 if (end_index != iopt_area_index(area)) in iopt_area_fill_domains() 1978 end_index - 1); in iopt_area_fill_domains() 1981 end_index); in iopt_area_fill_domains() 2037 unsigned long end_index) in iopt_pages_unpin_xarray() argument [all …]
|
| /linux/fs/nfs/ |
| H A D | internal.h | 886 pgoff_t end_index = (i_size - 1) >> folio_shift(folio); in nfs_folio_length() local 887 if (index < end_index) in nfs_folio_length() 889 if (index == end_index) in nfs_folio_length()
|
| H A D | write.c | 193 pgoff_t end_index; in nfs_grow_file() local 197 end_index = ((i_size - 1) >> folio_shift(folio)) << folio_order(folio); in nfs_grow_file() 198 if (i_size > 0 && folio->index < end_index) in nfs_grow_file()
|
| /linux/drivers/iommu/generic_pt/ |
| H A D | pt_defs.h | 153 unsigned short end_index; member
|
| /linux/fs/squashfs/ |
| H A D | file.c | 400 int start_index = folio->index & ~mask, end_index = start_index | mask; in squashfs_copy_cache() local 408 for (i = start_index; i <= end_index && bytes > 0; i++, in squashfs_copy_cache()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
| H A D | fw_tracer.c | 979 u32 index, start_index, end_index; in mlx5_fw_tracer_get_saved_traces_objects() local 991 end_index = (saved_traces_index - 1) & (SAVED_TRACES_NUM - 1); in mlx5_fw_tracer_get_saved_traces_objects() 995 while (index != end_index) { in mlx5_fw_tracer_get_saved_traces_objects()
|
| /linux/drivers/video/fbdev/via/ |
| H A D | hw.c | 973 int start_index, end_index, cr_index; in viafb_load_reg() local 980 end_index = reg[i].end_bit; in viafb_load_reg() 984 for (j = start_index; j <= end_index; j++) { in viafb_load_reg()
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | nandsim.c | 1312 pgoff_t index, start_index, end_index; in ns_get_pages() local 1317 end_index = (pos + count - 1) >> PAGE_SHIFT; in ns_get_pages() 1318 if (end_index - start_index + 1 > NS_MAX_HELD_PAGES) in ns_get_pages() 1321 for (index = start_index; index <= end_index; index++) { in ns_get_pages()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | rv6xx_dpm.c | 241 u32 start_index, u8 *end_index) in rv6xx_generate_steps() argument 292 *end_index = (u8)step_index - 1; in rv6xx_generate_steps() 306 u32 start_index, u32 end_index) in rv6xx_invalidate_intermediate_steps_range() argument 310 for (step_index = start_index + 1; step_index < end_index; step_index++) in rv6xx_invalidate_intermediate_steps_range()
|
| /linux/fs/iomap/ |
| H A D | buffered-io.c | 1935 pgoff_t end_index = isize >> PAGE_SHIFT; in iomap_writeback_handle_eof() local 1955 if (folio->index > end_index || in iomap_writeback_handle_eof() 1956 (folio->index == end_index && poff == 0)) in iomap_writeback_handle_eof()
|
| /linux/sound/soc/sdw_utils/ |
| H A D | soc_sdw_utils.c | 1967 * @end_index: Index of the endpoint 1974 int adr_index, int end_index) 1983 adr_end = &adr_dev->endpoints[end_index]; 1644 is_sdca_endpoint_present(struct device * dev,struct asoc_sdw_codec_info * codec_info,const struct snd_soc_acpi_link_adr * adr_link,int adr_index,int end_index) is_sdca_endpoint_present() argument
|
| /linux/drivers/md/ |
| H A D | dm-integrity.c | 4368 unsigned int end_index, end_offset; in dm_integrity_alloc_journal_scatterlist() local 4374 &end_index, &end_offset); in dm_integrity_alloc_journal_scatterlist() 4376 n_pages = (end_index - start_index + 1); in dm_integrity_alloc_journal_scatterlist() 4385 for (idx = start_index; idx <= end_index; idx++) { in dm_integrity_alloc_journal_scatterlist() 4391 if (idx == end_index) in dm_integrity_alloc_journal_scatterlist()
|
| /linux/drivers/scsi/aic7xxx/ |
| H A D | aic7xxx_core.c | 3522 u_int end_index; in ahc_sent_msg() local 3524 end_index = index + 1 + ahc->msgout_buf[index + 1]; in ahc_sent_msg() 3529 if (ahc->msgout_index > end_index) in ahc_sent_msg() 3534 index = end_index; in ahc_sent_msg()
|