| /linux/drivers/iommu/iommufd/ |
| H A D | pages.c | 138 unsigned long first_index, unsigned long last_index) in interval_tree_double_span_iter_first() argument 146 first_index, last_index); in interval_tree_double_span_iter_first() 156 iter->last_hole == iter->spans[0].last_index) { in interval_tree_double_span_iter_next() 187 unsigned long last_index, in iopt_pages_err_unpin() argument 190 unsigned long npages = last_index - start_index + 1; in iopt_pages_err_unpin() 244 unsigned long last_index) in iopt_area_unmap_domain_range() argument 249 iopt_area_index_to_iova_last(area, last_index) - in iopt_area_unmap_domain_range() 410 unsigned long last_index) in batch_from_domain() argument 419 while (start_index <= last_index) { in batch_from_domain() 437 unsigned long last_index, in raw_pages_from_domain() argument [all …]
|
| H A D | double_span.h | 36 unsigned long first_index, unsigned long last_index); 47 last_index) \ argument 49 first_index, last_index); \
|
| H A D | device.c | 1517 unsigned long last_index = iopt_area_iova_to_index(area, last); in iommufd_access_pin_pages() local 1532 rc = iopt_area_add_access(area, index, last_index, out_pages, in iommufd_access_pin_pages() 1536 out_pages += last_index - index + 1; in iommufd_access_pin_pages()
|
| /linux/tools/testing/selftests/arm64/mte/ |
| H A D | check_buffer_fill.c | 67 int i, j, item, last_index; in check_buffer_underflow_by_byte() local 81 last_index = 0; in check_buffer_underflow_by_byte() 86 last_index = j; in check_buffer_underflow_by_byte() 104 if (cur_mte_cxt.fault_valid == true || last_index != -underflow_range) { in check_buffer_underflow_by_byte() 128 for (j = last_index ; j < 0 ; j++) { in check_buffer_underflow_by_byte() 137 if (!cur_mte_cxt.fault_valid || (last_index != (-1))) { in check_buffer_underflow_by_byte() 162 int i, j, item, last_index; in check_buffer_overflow_by_byte() local 181 for (j = 0, last_index = 0 ; (j < (sizes[i] + overflow_range)) && in check_buffer_overflow_by_byte() 184 last_index = j; in check_buffer_overflow_by_byte() 205 (last_index != (sizes[i] + overflow_range - 1))) { in check_buffer_overflow_by_byte() [all …]
|
| /linux/drivers/cpufreq/ |
| H A D | cpufreq_stats.c | 20 unsigned int last_index; member 35 stats->time_in_state[stats->last_index] += cur_time - time; in cpufreq_stats_update() 79 if (i == stats->last_index) { in show_time_in_state() 91 if (i == stats->last_index) in show_time_in_state() 252 stats->last_index = freq_table_get_index(stats, policy->cur); in cpufreq_stats_create_table() 277 old_index = stats->last_index; in cpufreq_stats_record_transition() 286 stats->last_index = new_index; in cpufreq_stats_record_transition()
|
| /linux/tools/perf/util/ |
| H A D | pstack.c | 42 unsigned short i = pstack->top, last_index = pstack->top - 1; in pstack__remove() local 46 if (i < last_index) in pstack__remove() 49 (last_index - i) * sizeof(void *)); in pstack__remove()
|
| /linux/tools/testing/radix-tree/ |
| H A D | tag_check.c | 137 unsigned long last_index = 0; in gang_check() local 146 while (last_index < item->index) { in gang_check() 147 assert(thrash_state[last_index] != NODE_TAGGED); in gang_check() 148 last_index++; in gang_check() 150 assert(thrash_state[last_index] == NODE_TAGGED); in gang_check() 151 last_index++; in gang_check()
|
| /linux/net/unix/ |
| H A D | garbage.c | 454 unsigned long *last_index, in __unix_walk_scc() argument 469 vertex->index = *last_index; in __unix_walk_scc() 470 vertex->scc_index = *last_index; in __unix_walk_scc() 471 (*last_index)++; in __unix_walk_scc() 560 unsigned long last_index = UNIX_VERTEX_INDEX_START; in unix_walk_scc() local 572 cyclic_sccs += __unix_walk_scc(vertex, &last_index, hitlist); in unix_walk_scc()
|
| /linux/net/netfilter/ |
| H A D | nf_conntrack_proto_tcp.c | 793 (ct->proto.tcp.last_index == TCP_FIN_SET || in nf_tcp_handle_invalid() 794 ct->proto.tcp.last_index == TCP_RST_SET)) { in nf_tcp_handle_invalid() 810 ct->proto.tcp.last_index = index; in nf_tcp_handle_invalid() 935 ct->proto.tcp.last_index = TCP_NONE_SET; in tcp_new() 1055 && ct->proto.tcp.last_index == TCP_RST_SET)) { in nf_conntrack_tcp_packet() 1084 && ct->proto.tcp.last_index == TCP_SYN_SET in nf_conntrack_tcp_packet() 1110 ct->proto.tcp.last_index = index; in nf_conntrack_tcp_packet() 1191 ct->proto.tcp.last_index == TCP_SYN_SET && in nf_conntrack_tcp_packet() 1227 ct->proto.tcp.last_index != TCP_SYN_SET) { in nf_conntrack_tcp_packet() 1253 if (ct->proto.tcp.last_index == TCP_ACK_SET && in nf_conntrack_tcp_packet() [all …]
|
| /linux/include/linux/netfilter/ |
| H A D | nf_conntrack_tcp.h | 23 u_int8_t last_index; /* Index of the last packet */ member
|
| /linux/drivers/dma/ |
| H A D | of-dma.c | 259 static atomic_t last_index; in of_dma_request_slave_channel() local 281 start = atomic_inc_return(&last_index); in of_dma_request_slave_channel()
|
| /linux/mm/ |
| H A D | filemap.c | 2674 pgoff_t last_index) in filemap_readahead() argument 2682 page_cache_async_ra(&ractl, folio, last_index - folio->index); in filemap_readahead() 2692 pgoff_t last_index; in filemap_get_pages() local 2698 last_index = round_up(iocb->ki_pos + count, in filemap_get_pages() 2704 filemap_get_read_batch(mapping, index, last_index - 1, fbatch); in filemap_get_pages() 2714 page_cache_sync_ra(&ractl, last_index - index); in filemap_get_pages() 2717 filemap_get_read_batch(mapping, index, last_index - 1, fbatch); in filemap_get_pages() 2728 err = filemap_readahead(iocb, filp, mapping, folio, last_index); in filemap_get_pages() 2743 trace_mm_filemap_get_pages(mapping, index, last_index - 1); in filemap_get_pages() 4619 pgoff_t first_index, pgoff_t last_index, struct cachestat *cs) in filemap_cachestat() argument [all …]
|
| H A D | memory.c | 4477 pgoff_t last_index, in unmap_mapping_range_tree() argument 4483 mapping_rmap_tree_foreach(vma, mapping, first_index, last_index) { in unmap_mapping_range_tree() 4485 const pgoff_t end_idx = min(last_index, vma_last_pgoff(vma)) + 1; in unmap_mapping_range_tree() 4513 pgoff_t last_index; in unmap_mapping_folio() local 4518 last_index = folio_next_index(folio) - 1; in unmap_mapping_folio() 4527 last_index, &details); in unmap_mapping_folio() 4548 pgoff_t last_index = start + nr - 1; in unmap_mapping_pages() local 4551 if (last_index < first_index) in unmap_mapping_pages() 4552 last_index = ULONG_MAX; in unmap_mapping_pages() 4557 last_index, &details); in unmap_mapping_pages()
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | tid_rdma.h | 81 u8 last_index; member
|
| H A D | tid_rdma.c | 351 qpriv->flow_state.last_index = RXE_NUM_TID_FLOWS; in hfi1_qp_priv_init() 796 ret = kern_reserve_flow(rcd, fs->last_index); in hfi1_kern_setup_hw_flow() 800 fs->last_index = fs->index; in hfi1_kern_setup_hw_flow()
|
| /linux/fs/btrfs/ |
| H A D | ctree.h | 478 u64 last_index; member
|
| H A D | delayed-inode.c | 1694 u64 last_index, in btrfs_readdir_get_delayed_items() argument 1715 while (item && item->index <= last_index) { in btrfs_readdir_get_delayed_items() 1722 while (item && item->index <= last_index) { in btrfs_readdir_get_delayed_items()
|
| H A D | tree-log.c | 4006 u64 last_index; in flush_dir_items_batch() local 4064 last_index = batch.keys[count - 1].offset; in flush_dir_items_batch() 4065 ASSERT(last_index > inode->last_dir_index_offset, in flush_dir_items_batch() 4067 last_index, inode->last_dir_index_offset); in flush_dir_items_batch() 4073 if (WARN_ON(last_index <= inode->last_dir_index_offset)) in flush_dir_items_batch() 4076 inode->last_dir_index_offset = last_index; in flush_dir_items_batch()
|
| H A D | free-space-cache.c | 370 pgoff_t last_index; in readahead_cache() local 373 last_index = (i_size_read(inode) - 1) >> PAGE_SHIFT; in readahead_cache() 375 page_cache_sync_readahead(inode->i_mapping, &ra, NULL, 0, last_index); in readahead_cache()
|
| H A D | relocation.c | 2912 const pgoff_t last_index = (cluster->end - offset) >> PAGE_SHIFT; in relocate_one_folio() local 2922 ASSERT(index <= last_index); in relocate_one_folio() 2938 index, last_index + 1 - index); in relocate_one_folio() 2948 folio, last_index + 1 - index); in relocate_one_folio()
|
| H A D | inode.c | 6268 u64 last_index; in btrfs_opendir() local 6271 ret = btrfs_get_dir_last_index(BTRFS_I(inode), &last_index); in btrfs_opendir() 6278 private->last_index = last_index; in btrfs_opendir() 6294 &private->last_index); in btrfs_dir_llseek() 6356 put = btrfs_readdir_get_delayed_items(BTRFS_I(inode), private->last_index, in btrfs_real_readdir() 6375 if (found_key.offset > private->last_index) in btrfs_real_readdir()
|
| /linux/drivers/nvme/host/ |
| H A D | core.c | 2908 u64 *transition_time, unsigned *last_index) in nvme_apst_get_transition_time() 2911 if (*last_index == 1) in nvme_apst_get_transition_time() 2913 *last_index = 1; in nvme_apst_get_transition_time() 2919 if (*last_index <= 2) 2921 *last_index = 2; 2899 nvme_apst_get_transition_time(u64 total_latency,u64 * transition_time,unsigned * last_index) nvme_apst_get_transition_time() argument
|
| /linux/lib/ |
| H A D | test_maple_tree.c | 2204 unsigned long last_index; in next_prev_test() local 2209 last_index = 0x138e; in next_prev_test() 2213 last_index = 0x7d6; in next_prev_test() 2320 MT_BUG_ON(mt, mas.index != last_index); in next_prev_test()
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_debugfs.c | 4260 uint32_t last_index, index, count; in lpfc_idiag_queacc_read() local 4296 last_index = idiag.offset.last_rd; in lpfc_idiag_queacc_read() 4297 index = last_index; in lpfc_idiag_queacc_read()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_tc.c | 150 u32 last_index; member 3934 if (act->id == jump_state->last_id && act->hw_index == jump_state->last_index) in dec_jump_count() 3938 jump_state->last_index = act->hw_index; in dec_jump_count()
|