Home
last modified time | relevance | path

Searched refs:end_index (Results 1 – 25 of 28) sorted by relevance

12

/linux/fs/ntfs/
H A Dbitmap.c18 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 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()
283 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()
H A Dspectrum_pgt.c12 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 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()
/linux/fs/isofs/
H A Dcompress.c316 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 Dreadahead.c332 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 Dwlan.c273 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 Dnetdev.h202 u16 end_index; member
/linux/fs/btrfs/
H A Dcompression.c255 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 Dextent_io.c272 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 Dfile.c2212 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 Dpages.c1802 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 Dinternal.h886 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 Dwrite.c193 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 Dpt_defs.h153 unsigned short end_index; member
/linux/fs/squashfs/
H A Dfile.c400 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 Dfw_tracer.c979 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 Dhw.c973 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 Dnandsim.c1312 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 Drv6xx_dpm.c241 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 Dbuffered-io.c1935 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 Dsoc_sdw_utils.c1967 * @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 Ddm-integrity.c4368 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 Daic7xxx_core.c3522 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()

12