Searched refs:end_index (Results 1 - 25 of 51) sorted by relevance

123

/linux-master/mm/
H A Dfadvise.c38 pgoff_t end_index; local
99 end_index = endbyte >> PAGE_SHIFT;
102 nrpages = end_index - start_index + 1;
123 end_index = (endbyte >> PAGE_SHIFT);
125 * The page at end_index will be inclusively discarded according
127 * end_index means we will skip the last page. But if endbyte
134 * is unsigned, so the end_index >= start_index
138 if (end_index == 0)
141 end_index--;
144 if (end_index >
[all...]
H A Dreadahead.c287 pgoff_t end_index; /* The last page we want to read */ local
292 end_index = (isize - 1) >> PAGE_SHIFT;
293 if (index > end_index)
296 if (nr_to_read > end_index - index)
297 nr_to_read = end_index - index + 1;
/linux-master/fs/squashfs/
H A Dfile_direct.c32 loff_t end_index = start_index | mask; local
38 if (end_index > file_end)
39 end_index = file_end;
41 pages = end_index - start_index + 1;
48 for (i = 0, n = start_index; n <= end_index; n++) {
89 if (page[pages - 1]->index == end_index && bytes) {
H A Dfile.c389 int start_index = page->index & ~mask, end_index = start_index | mask; local
397 for (i = start_index; i <= end_index && bytes > 0; i++,
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum1_kvdl.c34 unsigned int end_index; member in struct:mlxsw_sp1_kvdl_part_info
48 .end_index = MLXSW_SP1_KVDL_##id##_END, \
97 kvdl_index <= part->info.end_index)
124 nr_entries = (info->end_index - info->start_index + 1) /
200 part->info.end_index = size - 1;
202 part->info.start_index = part_prev->info.end_index + 1;
203 part->info.end_index = part->info.start_index + size - 1;
223 resource_size = info->end_index - info->start_index + 1;
284 nr_entries = (info->end_index -
H A Dspectrum_pgt.c12 u16 end_index; /* Exclusive. */ member in struct:mlxsw_sp_pgt
34 mlxsw_sp->pgt->end_index, GFP_KERNEL);
323 pgt->end_index = MLXSW_CORE_RES_GET(mlxsw_sp->core, PGT_SIZE);
H A Dspectrum_policer.c17 u16 end_index; /* Exclusive */ member in struct:mlxsw_sp_policer_family
93 family->end_index = MLXSW_CORE_RES_GET(core, MAX_GLOBAL_POLICERS);
123 family->end_index, GFP_KERNEL);
326 if (WARN_ON(family->start_index >= family->end_index)) {
H A Dspectrum_fid.c133 u16 end_index; member in struct:mlxsw_sp_fid_family
372 return fid_family->end_index - fid_family->start_index + 1;
941 nr_fids = fid_family->end_index - fid_family->start_index + 1;
1864 .end_index = MLXSW_SP_FID_8021Q_END,
1877 .end_index = MLXSW_SP_FID_8021D_END,
1889 .end_index = MLXSW_SP_FID_DUMMY,
1898 .end_index = MLXSW_SP_RFID_END,
1916 .end_index = MLXSW_SP_FID_8021Q_END,
1929 .end_index = MLXSW_SP_FID_8021D_END,
1941 .end_index
[all...]
/linux-master/arch/sparc/kernel/
H A Dcpumap.c44 int end_index; /* Index of last node of a level in a cpuinfo tree */ member in struct:cpuinfo_level
133 lv->start_index = lv->end_index = lv->num_nodes = 0;
166 tree_level[CPUINFO_LVL_NODE].end_index = n;
171 tree_level[CPUINFO_LVL_CORE].end_index = n - 1;
175 tree_level[CPUINFO_LVL_PROC].end_index = n - 1;
276 if (n <= new_tree->level[level].end_index) {
/linux-master/include/trace/events/
H A Dfs_dax.h228 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-master/fs/isofs/
H A Dcompress.c314 pgoff_t index = page->index, end_index; local
316 end_index = (inode->i_size + PAGE_SIZE - 1) >> PAGE_SHIFT;
321 if (index >= end_index) {
332 end_index - (index & ~(zisofs_pages_per_cblock - 1)));
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dfs_tracepoint.h106 __field(u32, end_index)
117 __entry->end_index = fg->start_index + fg->max_ftes;
139 __entry->start_index, __entry->end_index,
/linux-master/drivers/gpu/drm/amd/display/dc/dml/dcn321/
H A Ddcn321_fpu.c265 unsigned int end_index = 0; local
272 end_index = ++i;
275 end_index = ++i;
278 if (start_index != end_index) {
279 for (int j = start_index; j < end_index; j++) {
280 for (int k = start_index; k < end_index; k++) {
288 end_index = 0;
/linux-master/drivers/iommu/iommufd/
H A Dpages.c1312 unsigned long end_index)
1314 if (end_index != iopt_area_index(area))
1315 __iopt_area_unfill_domain(area, pages, domain, end_index - 1);
1455 unsigned long end_index; local
1458 end_index = done_first_end_index;
1460 end_index = done_all_end_index;
1468 if (end_index != iopt_area_index(area))
1471 end_index - 1);
1474 end_index);
1522 unsigned long end_index)
1309 iopt_area_unfill_partial_domain(struct iopt_area *area, struct iopt_pages *pages, struct iommu_domain *domain, unsigned long end_index) argument
1519 iopt_pages_unpin_xarray(struct pfn_batch *batch, struct iopt_pages *pages, unsigned long start_index, unsigned long end_index) argument
[all...]
/linux-master/drivers/net/wireless/microchip/wilc1000/
H A Dwlan.c287 u8 end_index; local
300 q->end_index = AC_BUFFER_SIZE - 1;
304 end_index = q->end_index;
305 q->cnt[q->buffer[end_index]] -= factors[q->buffer[end_index]];
307 q->sum += (factors[q_num] - factors[q->buffer[end_index]]);
309 q->buffer[end_index] = q_num;
310 if (end_index > 0)
311 q->end_index
[all...]
H A Dnetdev.h201 u16 end_index; member in struct:wilc_tx_queue_status
/linux-master/fs/bcachefs/
H A Dfs-io-pagecache.c274 pgoff_t end_index = (end - 1) >> PAGE_SECTORS_SHIFT; local
284 &index, end_index, &fbatch)) {
318 pgoff_t end_index = (end - 1) >> PAGE_SECTORS_SHIFT; local
329 &index, end_index, &fbatch)) {
676 pgoff_t end_index = end_offset >> PAGE_SHIFT; local
685 &index, end_index, &fbatch)) {
/linux-master/fs/nfs/
H A Dinternal.h803 pgoff_t end_index = (i_size - 1) >> PAGE_SHIFT; local
804 if (index < end_index)
806 if (index == end_index)
821 pgoff_t end_index = (i_size - 1) >> folio_shift(folio); local
822 if (index < end_index)
824 if (index == end_index)
/linux-master/fs/btrfs/
H A Dcompression.c286 unsigned long end_index = (cb->start + cb->len - 1) >> PAGE_SHIFT; local
296 while (index <= end_index) {
297 ret = filemap_get_folios(inode->i_mapping, &index, end_index,
416 unsigned long end_index; local
444 end_index = (i_size_read(inode) - 1) >> PAGE_SHIFT;
451 if (pg_index > end_index)
517 if (page->index == end_index) {
H A Dextent_io.c170 unsigned long end_index = end >> PAGE_SHIFT; local
173 while (index <= end_index) {
211 pgoff_t end_index = end >> PAGE_SHIFT; local
217 while (index <= end_index) {
221 end_index, &fbatch);
238 unsigned long end_index = end >> PAGE_SHIFT; local
241 if (index == locked_page->index && end_index == index)
256 pgoff_t end_index = end >> PAGE_SHIFT; local
261 if (index == locked_page->index && index == end_index)
265 while (index <= end_index) {
638 pgoff_t end_index = i_size >> folio_shift(folio); local
1444 unsigned long end_index = i_size >> PAGE_SHIFT; local
[all...]
/linux-master/fs/ubifs/
H A Dfile.c607 pgoff_t end_index; local
614 end_index = (i_size - 1) >> PAGE_SHIFT;
615 if (!i_size || folio->index > end_index) {
676 if (end_index == folio->index) {
714 pgoff_t offset = folio1->index, end_index; local
775 end_index = ((isize - 1) >> PAGE_SHIFT);
781 if (page_offset > end_index)
/linux-master/drivers/md/dm-vdo/
H A Dslab-depot.h182 slab_block_number end_index; member in struct:search_cursor
H A Dslab-depot.c1898 cursor->end_index = min_t(u32, COUNTS_PER_BLOCK, slab->block_count);
1924 cursor->index = cursor->end_index;
1928 cursor->end_index = slab->block_count;
1930 cursor->end_index += COUNTS_PER_BLOCK;
2051 slab_block_number end_index = slab->search_cursor.end_index; local
2053 u8 *end_counter = &slab->counters[end_index];
2059 zero_index = find_zero_byte_in_word(next_counter, next_index, end_index);
2060 if (zero_index < end_index) {
2082 zero_index = find_zero_byte_in_word(next_counter, next_index, end_index);
2832 tail_block_offset_t end_index = (tail - 1) % journal->size; local
[all...]
/linux-master/fs/ocfs2/
H A Daops.c1029 unsigned long start, target_index, end_index, index; local
1052 end_index = ((last_byte - 1) >> PAGE_SHIFT) + 1;
1053 if ((start + wc->w_num_pages) > end_index)
1054 wc->w_num_pages = end_index - start;
1059 end_index = (user_pos + user_len - 1) >> PAGE_SHIFT;
1064 if (index >= target_index && index <= end_index &&
1084 } else if (index >= target_index && index <= end_index &&
/linux-master/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dppatomctrl.h318 uint16_t end_index, uint32_t *efuse);

Completed in 405 milliseconds

123