| /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/drivers/iommu/iommufd/ |
| H A D | double_span.h | 36 unsigned long first_index, unsigned long last_index); 47 last_index) \ argument 49 first_index, last_index); \
|
| /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/netfilter/ |
| H A D | nf_conntrack_proto_tcp.c | 754 (ct->proto.tcp.last_index == TCP_FIN_SET || in nf_tcp_handle_invalid() 755 ct->proto.tcp.last_index == TCP_RST_SET)) { in nf_tcp_handle_invalid() 769 index, dir, ct->proto.tcp.last_index, timeout); in nf_tcp_handle_invalid() 774 ct->proto.tcp.last_index = index; in nf_tcp_handle_invalid() 897 ct->proto.tcp.last_index = TCP_NONE_SET; in tcp_new() 1015 && ct->proto.tcp.last_index == TCP_RST_SET)) { in nf_conntrack_tcp_packet() 1044 && ct->proto.tcp.last_index == TCP_SYN_SET in nf_conntrack_tcp_packet() 1070 ct->proto.tcp.last_index = index; in nf_conntrack_tcp_packet() 1151 ct->proto.tcp.last_index == TCP_SYN_SET && in nf_conntrack_tcp_packet() 1187 ct->proto.tcp.last_index != TCP_SYN_SET) { in nf_conntrack_tcp_packet() [all …]
|
| /linux/net/unix/ |
| H A D | garbage.c | 457 unsigned long *last_index, in __unix_walk_scc() argument 472 vertex->index = *last_index; in __unix_walk_scc() 473 vertex->scc_index = *last_index; in __unix_walk_scc() 474 (*last_index)++; in __unix_walk_scc() 556 unsigned long last_index = UNIX_VERTEX_INDEX_START; in unix_walk_scc() local 568 cyclic_sccs += __unix_walk_scc(vertex, &last_index, hitlist); in unix_walk_scc()
|
| /linux/drivers/acpi/ |
| H A D | acpi_processor.c | 839 int last_index = 0; in acpi_processor_evaluate_cst() local 876 if (last_index >= ACPI_PROCESSOR_MAX_POWER - 1) { in acpi_processor_evaluate_cst() 922 last_index = 1; in acpi_processor_evaluate_cst() 925 cx.index = last_index + 1; in acpi_processor_evaluate_cst() 983 memcpy(&info->states[++last_index], &cx, sizeof(cx)); in acpi_processor_evaluate_cst() 986 acpi_handle_debug(handle, "Found %d idle states\n", last_index); in acpi_processor_evaluate_cst() 988 info->count = last_index; in acpi_processor_evaluate_cst()
|
| /linux/lib/ |
| H A D | interval_tree_test.c | 220 cur_last = mas->last > state->last_index ? in mas_cur_span() 221 state->last_index : mas->last; in mas_cur_span() 223 is_hole = mas_next_range(mas, state->last_index) ? 0 : 1; in mas_cur_span() 278 mas_span.last_index = last; in span_iteration_check()
|
| 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/accessibility/speakup/ |
| H A D | speakup_soft.c | 335 static int last_index; variable 348 last_index = supplied_index; in softsynth_write() 371 rv = last_index; in get_index() 372 last_index = 0; in get_index()
|
| /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 | 2656 pgoff_t last_index) in filemap_readahead() argument 2664 page_cache_async_ra(&ractl, folio, last_index - folio->index); in filemap_readahead() 2674 pgoff_t last_index; in filemap_get_pages() local 2680 last_index = round_up(iocb->ki_pos + count, in filemap_get_pages() 2686 filemap_get_read_batch(mapping, index, last_index - 1, fbatch); in filemap_get_pages() 2696 page_cache_sync_ra(&ractl, last_index - index); in filemap_get_pages() 2699 filemap_get_read_batch(mapping, index, last_index - 1, fbatch); in filemap_get_pages() 2710 err = filemap_readahead(iocb, filp, mapping, folio, last_index); in filemap_get_pages() 2725 trace_mm_filemap_get_pages(mapping, index, last_index - 1); in filemap_get_pages() 4570 pgoff_t first_index, pgoff_t last_index, struct cachestat *cs) in filemap_cachestat() argument [all …]
|
| H A D | memory.c | 4325 pgoff_t last_index, in unmap_mapping_range_tree() argument 4332 vma_interval_tree_foreach(vma, root, first_index, last_index) { in unmap_mapping_range_tree() 4334 const pgoff_t end_idx = min(last_index, vma_last_pgoff(vma)) + 1; in unmap_mapping_range_tree() 4361 pgoff_t last_index; in unmap_mapping_folio() local 4366 last_index = folio_next_index(folio) - 1; in unmap_mapping_folio() 4375 last_index, &details); in unmap_mapping_folio() 4396 pgoff_t last_index = start + nr - 1; in unmap_mapping_pages() local 4399 if (last_index < first_index) in unmap_mapping_pages() 4400 last_index = ULONG_MAX; in unmap_mapping_pages() 4405 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 | 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 | 4032 u64 last_index; in flush_dir_items_batch() local 4090 last_index = batch.keys[count - 1].offset; in flush_dir_items_batch() 4091 ASSERT(last_index > inode->last_dir_index_offset, in flush_dir_items_batch() 4093 last_index, inode->last_dir_index_offset); in flush_dir_items_batch() 4099 if (WARN_ON(last_index <= inode->last_dir_index_offset)) in flush_dir_items_batch() 4102 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 | 2784 const pgoff_t last_index = (cluster->end - offset) >> PAGE_SHIFT; in relocate_one_folio() local 2794 ASSERT(index <= last_index); in relocate_one_folio() 2810 index, last_index + 1 - index); in relocate_one_folio() 2820 folio, last_index + 1 - index); in relocate_one_folio()
|
| H A D | inode.c | 6246 u64 last_index; in btrfs_opendir() local 6249 ret = btrfs_get_dir_last_index(BTRFS_I(inode), &last_index); in btrfs_opendir() 6256 private->last_index = last_index; in btrfs_opendir() 6272 &private->last_index); in btrfs_dir_llseek() 6334 put = btrfs_readdir_get_delayed_items(BTRFS_I(inode), private->last_index, in btrfs_real_readdir() 6353 if (found_key.offset > private->last_index) in btrfs_real_readdir()
|
| /linux/drivers/nvme/host/ |
| H A D | core.c | 2840 u64 *transition_time, unsigned *last_index) in nvme_apst_get_transition_time() argument 2843 if (*last_index == 1) in nvme_apst_get_transition_time() 2845 *last_index = 1; in nvme_apst_get_transition_time() 2851 if (*last_index <= 2) in nvme_apst_get_transition_time() 2853 *last_index = 2; in nvme_apst_get_transition_time()
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_debugfs.c | 4288 uint32_t last_index, index, count; in lpfc_idiag_queacc_read() local 4324 last_index = idiag.offset.last_rd; in lpfc_idiag_queacc_read() 4325 index = last_index; in lpfc_idiag_queacc_read()
|
| /linux/drivers/net/ethernet/emulex/benet/ |
| H A D | be_main.c | 2753 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()
|