Home
last modified time | relevance | path

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

/linux-4.1.27/tools/perf/util/
Dpstack.c40 unsigned short i = pstack->top, last_index = pstack->top - 1; in pstack__remove() local
44 if (i < last_index) in pstack__remove()
47 (last_index - i) * sizeof(void *)); in pstack__remove()
/linux-4.1.27/fs/ocfs2/
Dmmap.c69 pgoff_t last_index; in __ocfs2_page_mkwrite() local
74 last_index = (size - 1) >> PAGE_CACHE_SHIFT; in __ocfs2_page_mkwrite()
104 if (page->index == last_index) in __ocfs2_page_mkwrite()
/linux-4.1.27/drivers/cpufreq/
Dcpufreq_stats.c25 unsigned int last_index; member
38 stats->time_in_state[stats->last_index] += cur_time - stats->last_time; in cpufreq_stats_update()
213 stats->last_index = freq_table_get_index(stats, policy->cur); in __cpufreq_stats_create_table()
283 old_index = stats->last_index; in cpufreq_stat_notifier_trans()
295 stats->last_index = new_index; in cpufreq_stat_notifier_trans()
/linux-4.1.27/kernel/trace/
Dtrace_printk.c245 int last_index; in find_next() local
264 last_index = start_index; in find_next()
267 if (*pos < last_index + start_index) in find_next()
268 return __start___tracepoint_str + (*pos - last_index); in find_next()
/linux-4.1.27/drivers/staging/speakup/
Dspeakup_soft.c265 static int last_index; variable
278 last_index = supplied_index; in softsynth_write()
301 rv = last_index; in get_index()
302 last_index = 0; in get_index()
/linux-4.1.27/drivers/char/
Dmspec.c163 int index, last_index; in mspec_close() local
171 last_index = (vdata->vm_end - vdata->vm_start) >> PAGE_SHIFT; in mspec_close()
172 for (index = 0; index < last_index; index++) { in mspec_close()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dllog.c280 int rc = 0, index = 1, last_index; in llog_process_thread() local
297 last_index = cd->lpcd_last_idx; in llog_process_thread()
299 last_index = LLOG_BITMAP_BYTES * 8 - 1; in llog_process_thread()
305 while (index <= last_index && in llog_process_thread()
309 LASSERT(index <= last_index + 1); in llog_process_thread()
310 if (index == last_index + 1) in llog_process_thread()
314 index, last_index); in llog_process_thread()
392 if (index > last_index) { in llog_process_thread()
/linux-4.1.27/include/linux/netfilter/
Dnf_conntrack_tcp.h22 u_int8_t last_index; /* Index of the last packet */ member
/linux-4.1.27/lib/
Dradix-tree.c884 unsigned long *first_indexp, unsigned long last_index, in radix_tree_range_tag_if_tagged() argument
895 last_index = min(last_index, radix_tree_maxindex(height)); in radix_tree_range_tag_if_tagged()
896 if (index > last_index) in radix_tree_range_tag_if_tagged()
901 *first_indexp = last_index + 1; in radix_tree_range_tag_if_tagged()
905 *first_indexp = last_index + 1; in radix_tree_range_tag_if_tagged()
960 if (index > last_index || !index) in radix_tree_range_tag_if_tagged()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dvvp_io.c708 pgoff_t last_index; in vvp_io_fault_start() local
715 last_index = cl_index(obj, size - 1); in vvp_io_fault_start()
716 if (last_index < fio->ft_index) { in vvp_io_fault_start()
719 vmpage->mapping, fio->ft_index, last_index); in vvp_io_fault_start()
1021 pgoff_t last_index = i_size_read(inode) >> PAGE_CACHE_SHIFT; in vvp_io_commit_write() local
1038 if (last_index > pg->cp_index) { in vvp_io_commit_write()
1041 } else if (last_index == pg->cp_index) { in vvp_io_commit_write()
/linux-4.1.27/net/netfilter/
Dnf_conntrack_proto_tcp.c860 && ct->proto.tcp.last_index == TCP_RST_SET)) { in tcp_packet()
889 && ct->proto.tcp.last_index == TCP_SYN_SET in tcp_packet()
916 ct->proto.tcp.last_index = index; in tcp_packet()
991 ct->proto.tcp.last_index == TCP_SYN_SET && in tcp_packet()
1015 && ct->proto.tcp.last_index == TCP_SYN_SET) in tcp_packet()
1017 && ct->proto.tcp.last_index == TCP_ACK_SET)) in tcp_packet()
1043 ct->proto.tcp.last_index = index; in tcp_packet()
1167 ct->proto.tcp.last_index = TCP_NONE_SET; in tcp_new()
/linux-4.1.27/arch/x86/kvm/
Dmmu.c4392 unsigned long last_index, index; in kvm_mmu_slot_remove_write_access() local
4395 last_index = gfn_to_index(last_gfn, memslot->base_gfn, i); in kvm_mmu_slot_remove_write_access()
4397 for (index = 0; index <= last_index; ++index, ++rmapp) { in kvm_mmu_slot_remove_write_access()
4471 unsigned long last_index, index; in kvm_mmu_zap_collapsible_sptes() local
4476 last_index = gfn_to_index(memslot->base_gfn + memslot->npages - 1, in kvm_mmu_zap_collapsible_sptes()
4479 for (index = 0; index <= last_index; ++index, ++rmapp) { in kvm_mmu_zap_collapsible_sptes()
4503 unsigned long last_index, index; in kvm_mmu_slot_leaf_clear_dirty() local
4511 last_index = gfn_to_index(last_gfn, memslot->base_gfn, in kvm_mmu_slot_leaf_clear_dirty()
4514 for (index = 0; index <= last_index; ++index, ++rmapp) { in kvm_mmu_slot_leaf_clear_dirty()
4551 unsigned long last_index, index; in kvm_mmu_slot_largepage_remove_write_access() local
[all …]
/linux-4.1.27/include/linux/
Dradix-tree.h298 unsigned long *first_indexp, unsigned long last_index,
Dmm.h1099 pgoff_t last_index; /* Highest page->index to unmap */ member
/linux-4.1.27/fs/gfs2/
Dfile.c388 unsigned long last_index; in gfs2_page_mkwrite() local
454 last_index = (size - 1) >> PAGE_CACHE_SHIFT; in gfs2_page_mkwrite()
456 if (size == 0 || (page->index > last_index)) in gfs2_page_mkwrite()
/linux-4.1.27/fs/xfs/
Dxfs_aops.c949 pgoff_t end_index, last_index; in xfs_vm_writepage() local
983 last_index = (offset - 1) >> PAGE_CACHE_SHIFT; in xfs_vm_writepage()
1163 if (end_index > last_index) in xfs_vm_writepage()
1164 end_index = last_index; in xfs_vm_writepage()
/linux-4.1.27/fs/ufs/
Dballoc.c243 pgoff_t index, cur_index, last_index; in ufs_change_blocknr() local
258 last_index = end >> (PAGE_CACHE_SHIFT - inode->i_blkbits); in ufs_change_blocknr()
282 if (unlikely(index == last_index)) in ufs_change_blocknr()
/linux-4.1.27/mm/
Dfilemap.c1468 pgoff_t last_index; in do_generic_file_read() local
1477 last_index = (*ppos + iter->count + PAGE_CACHE_SIZE-1) >> PAGE_CACHE_SHIFT; in do_generic_file_read()
1492 index, last_index - index); in do_generic_file_read()
1500 index, last_index - index); in do_generic_file_read()
Dmemory.c2370 details->first_index, details->last_index) { in unmap_mapping_range_tree()
2378 zea = details->last_index; in unmap_mapping_range_tree()
2423 details.last_index = hba + hlen - 1; in unmap_mapping_range()
2424 if (details.last_index < details.first_index) in unmap_mapping_range()
2425 details.last_index = ULONG_MAX; in unmap_mapping_range()
/linux-4.1.27/fs/btrfs/
Drelocation.c3100 unsigned long last_index; local
3126 last_index = (cluster->end - offset) >> PAGE_CACHE_SHIFT;
3127 while (index <= last_index) {
3136 last_index + 1 - index);
3150 last_index + 1 - index);
Dioctl.c1248 unsigned long last_index; in btrfs_defrag_file() local
1303 last_index = min_t(u64, isize - 1, in btrfs_defrag_file()
1306 last_index = (isize - 1) >> PAGE_CACHE_SHIFT; in btrfs_defrag_file()
1325 max_to_defrag = last_index + 1; in btrfs_defrag_file()
1334 while (i <= last_index && defrag_count < max_to_defrag && in btrfs_defrag_file()
Dfree-space-cache.c293 unsigned long last_index; in readahead_cache() local
300 last_index = (i_size_read(inode) - 1) >> PAGE_CACHE_SHIFT; in readahead_cache()
302 page_cache_sync_readahead(inode->i_mapping, ra, NULL, 0, last_index); in readahead_cache()
Dsend.c4372 pgoff_t last_index; in fill_read_buf() local
4393 last_index = (offset + len - 1) >> PAGE_CACHE_SHIFT; in fill_read_buf()
4399 last_index - index + 1); in fill_read_buf()
4401 while (index <= last_index) { in fill_read_buf()
/linux-4.1.27/drivers/staging/lustre/lustre/osc/
Dosc_cache.c1026 pgoff_t last_index; in osc_extent_truncate() local
1043 last_index = ((trunc_chunk + 1) << ppc_bits) - 1; in osc_extent_truncate()
1044 ext->oe_end = min(last_index, ext->oe_max_end); in osc_extent_truncate()
/linux-4.1.27/drivers/scsi/lpfc/
Dlpfc_debugfs.c2482 uint32_t last_index, index, count; in lpfc_idiag_queacc_read() local
2518 last_index = idiag.offset.last_rd; in lpfc_idiag_queacc_read()
2519 index = last_index; in lpfc_idiag_queacc_read()
Dlpfc_hbadisc.c2078 uint16_t last_index; in lpfc_sli4_fcf_pri_list_add() local
2101 last_index = find_first_bit(phba->fcf.fcf_rr_bmask, in lpfc_sli4_fcf_pri_list_add()
2103 if (last_index >= LPFC_SLI4_FCF_TBL_INDX_MAX) { in lpfc_sli4_fcf_pri_list_add()
2107 current_fcf_pri = phba->fcf.fcf_pri[last_index].fcf_rec.priority; in lpfc_sli4_fcf_pri_list_add()
Dlpfc_sli.c16218 uint16_t last_index; in lpfc_check_next_fcf_pri_level() local
16223 last_index = find_first_bit(phba->fcf.fcf_rr_bmask, in lpfc_check_next_fcf_pri_level()
16226 "3060 Last IDX %d\n", last_index); in lpfc_check_next_fcf_pri_level()
16234 "3061 Last IDX %d\n", last_index); in lpfc_check_next_fcf_pri_level()
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
Dbe_main.c2157 struct be_tx_obj *txo, u16 last_index) in be_tx_compl_process() argument
2184 } while (frag_index != last_index); in be_tx_compl_process()