Home
last modified time | relevance | path

Searched refs:last_index (Results 1 – 25 of 27) sorted by relevance

12

/linux/drivers/iommu/iommufd/
H A Dpages.c138 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 Ddouble_span.h36 unsigned long first_index, unsigned long last_index);
47 last_index) \ argument
49 first_index, last_index); \
H A Ddevice.c1517 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 Dcheck_buffer_fill.c67 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 ! in check_buffer_overflow_by_byte()
[all...]
/linux/drivers/cpufreq/
H A Dcpufreq_stats.c20 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 Dpstack.c42 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 Dtag_check.c137 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 Dgarbage.c458 unsigned long *last_index, in __unix_walk_scc() argument
473 vertex->index = *last_index; in __unix_walk_scc()
474 vertex->scc_index = *last_index; in __unix_walk_scc()
475 (*last_index)++; in __unix_walk_scc()
557 unsigned long last_index = UNIX_VERTEX_INDEX_START; in unix_walk_scc() local
569 cyclic_sccs += __unix_walk_scc(vertex, &last_index, hitlist); in unix_walk_scc()
/linux/net/netfilter/
H A Dnf_conntrack_proto_tcp.c793 (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 Dnf_conntrack_tcp.h23 u_int8_t last_index; /* Index of the last packet */ member
/linux/drivers/dma/
H A Dof-dma.c259 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/drivers/infiniband/hw/hfi1/
H A Dtid_rdma.h81 u8 last_index; member
H A Dtid_rdma.c351 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 Dctree.h478 u64 last_index; member
H A Ddelayed-inode.c1694 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 Dtree-log.c4006 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 Dfree-space-cache.c370 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 Drelocation.c2912 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 Dinode.c6249 u64 last_index; in btrfs_opendir() local
6252 ret = btrfs_get_dir_last_index(BTRFS_I(inode), &last_index); in btrfs_opendir()
6259 private->last_index = last_index; in btrfs_opendir()
6275 &private->last_index); in btrfs_dir_llseek()
6337 put = btrfs_readdir_get_delayed_items(BTRFS_I(inode), private->last_index, in btrfs_real_readdir()
6356 if (found_key.offset > private->last_index) in btrfs_real_readdir()
H A Dsend.c5176 const pgoff_t last_index = ((end - 1) >> PAGE_SHIFT); in put_file_data() local
5194 last_index + 1 - index); in put_file_data()
5207 last_index + 1 - index); in put_file_data()
/linux/drivers/nvme/host/
H A Dcore.c2901 u64 *transition_time, unsigned *last_index) in nvme_apst_get_transition_time() argument
2904 if (*last_index == 1) in nvme_apst_get_transition_time()
2906 *last_index = 1; in nvme_apst_get_transition_time()
2912 if (*last_index <= 2) in nvme_apst_get_transition_time()
2914 *last_index = 2; in nvme_apst_get_transition_time()
/linux/lib/
H A Dtest_maple_tree.c2204 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 Dlpfc_debugfs.c4260 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 Den_tc.c150 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()
/linux/drivers/net/ethernet/emulex/benet/
H A Dbe_main.c2753 struct be_tx_obj *txo, u16 last_index) in be_tx_compl_process() argument
2781 } while (frag_index != last_index); in be_tx_compl_process()

12