Home
last modified time | relevance | path

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

/linux-4.4.14/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.4.14/drivers/staging/lustre/lustre/obdclass/
Dllog.c219 int rc = 0, index = 1, last_index; in llog_process_thread() local
236 last_index = cd->lpcd_last_idx; in llog_process_thread()
238 last_index = LLOG_BITMAP_BYTES * 8 - 1; in llog_process_thread()
244 while (index <= last_index && in llog_process_thread()
248 LASSERT(index <= last_index + 1); in llog_process_thread()
249 if (index == last_index + 1) in llog_process_thread()
253 index, last_index); in llog_process_thread()
323 if (index > last_index) { in llog_process_thread()
/linux-4.4.14/kernel/trace/
Dtrace_printk.c251 int last_index; in find_next() local
270 last_index = start_index; in find_next()
273 if (*pos < last_index + start_index) in find_next()
274 return __start___tracepoint_str + (*pos - last_index); in find_next()
276 start_index += last_index; in find_next()
/linux-4.4.14/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.4.14/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.4.14/drivers/staging/speakup/
Dspeakup_soft.c266 static int last_index; variable
279 last_index = supplied_index; in softsynth_write()
302 rv = last_index; in get_index()
303 last_index = 0; in get_index()
/linux-4.4.14/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.4.14/include/linux/netfilter/
Dnf_conntrack_tcp.h22 u_int8_t last_index; /* Index of the last packet */ member
/linux-4.4.14/lib/
Dradix-tree.c889 unsigned long *first_indexp, unsigned long last_index, in radix_tree_range_tag_if_tagged() argument
900 last_index = min(last_index, radix_tree_maxindex(height)); in radix_tree_range_tag_if_tagged()
901 if (index > last_index) in radix_tree_range_tag_if_tagged()
906 *first_indexp = last_index + 1; in radix_tree_range_tag_if_tagged()
910 *first_indexp = last_index + 1; in radix_tree_range_tag_if_tagged()
965 if (index > last_index || !index) in radix_tree_range_tag_if_tagged()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dvvp_io.c704 pgoff_t last_index; in vvp_io_fault_start() local
711 last_index = cl_index(obj, size - 1); in vvp_io_fault_start()
712 if (last_index < fio->ft_index) { in vvp_io_fault_start()
715 vmpage->mapping, fio->ft_index, last_index); in vvp_io_fault_start()
1017 pgoff_t last_index = i_size_read(inode) >> PAGE_CACHE_SHIFT; in vvp_io_commit_write() local
1034 if (last_index > pg->cp_index) { in vvp_io_commit_write()
1037 } else if (last_index == pg->cp_index) { in vvp_io_commit_write()
/linux-4.4.14/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.4.14/include/linux/
Dradix-tree.h298 unsigned long *first_indexp, unsigned long last_index,
Dmm.h1082 pgoff_t last_index; /* Highest page->index to unmap */ member
/linux-4.4.14/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.4.14/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.4.14/fs/xfs/
Dxfs_aops.c954 pgoff_t end_index, last_index; in xfs_vm_writepage() local
988 last_index = (offset - 1) >> PAGE_CACHE_SHIFT; in xfs_vm_writepage()
1168 if (end_index > last_index) in xfs_vm_writepage()
1169 end_index = last_index; in xfs_vm_writepage()
/linux-4.4.14/mm/
Dfilemap.c1535 pgoff_t last_index; in do_generic_file_read() local
1544 last_index = (*ppos + iter->count + PAGE_CACHE_SIZE-1) >> PAGE_CACHE_SHIFT; in do_generic_file_read()
1559 index, last_index - index); in do_generic_file_read()
1567 index, last_index - index); in do_generic_file_read()
Dmemory.c2412 details->first_index, details->last_index) { in unmap_mapping_range_tree()
2420 zea = details->last_index; in unmap_mapping_range_tree()
2465 details.last_index = hba + hlen - 1; in unmap_mapping_range()
2466 if (details.last_index < details.first_index) in unmap_mapping_range()
2467 details.last_index = ULONG_MAX; in unmap_mapping_range()
/linux-4.4.14/fs/btrfs/
Drelocation.c3106 unsigned long last_index; local
3132 last_index = (cluster->end - offset) >> PAGE_CACHE_SHIFT;
3133 while (index <= last_index) {
3142 last_index + 1 - index);
3156 last_index + 1 - index);
Dioctl.c1257 unsigned long last_index; in btrfs_defrag_file() local
1312 last_index = min_t(u64, isize - 1, in btrfs_defrag_file()
1315 last_index = (isize - 1) >> PAGE_CACHE_SHIFT; in btrfs_defrag_file()
1334 max_to_defrag = last_index - i + 1; in btrfs_defrag_file()
1343 while (i <= last_index && defrag_count < max_to_defrag && in btrfs_defrag_file()
Dfree-space-cache.c291 unsigned long last_index; in readahead_cache() local
298 last_index = (i_size_read(inode) - 1) >> PAGE_CACHE_SHIFT; in readahead_cache()
300 page_cache_sync_readahead(inode->i_mapping, ra, NULL, 0, last_index); in readahead_cache()
Dsend.c4452 pgoff_t last_index; in fill_read_buf() local
4473 last_index = (offset + len - 1) >> PAGE_CACHE_SHIFT; in fill_read_buf()
4479 last_index - index + 1); in fill_read_buf()
4481 while (index <= last_index) { in fill_read_buf()
/linux-4.4.14/drivers/staging/lustre/lustre/osc/
Dosc_cache.c1028 pgoff_t last_index; in osc_extent_truncate() local
1044 last_index = ((trunc_chunk + 1) << ppc_bits) - 1; in osc_extent_truncate()
1045 ext->oe_end = min(last_index, ext->oe_max_end); in osc_extent_truncate()
/linux-4.4.14/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.c2052 uint16_t last_index; in lpfc_sli4_fcf_pri_list_add() local
2075 last_index = find_first_bit(phba->fcf.fcf_rr_bmask, in lpfc_sli4_fcf_pri_list_add()
2077 if (last_index >= LPFC_SLI4_FCF_TBL_INDX_MAX) { in lpfc_sli4_fcf_pri_list_add()
2081 current_fcf_pri = phba->fcf.fcf_pri[last_index].fcf_rec.priority; in lpfc_sli4_fcf_pri_list_add()
Dlpfc_sli.c16192 uint16_t last_index; in lpfc_check_next_fcf_pri_level() local
16197 last_index = find_first_bit(phba->fcf.fcf_rr_bmask, in lpfc_check_next_fcf_pri_level()
16200 "3060 Last IDX %d\n", last_index); in lpfc_check_next_fcf_pri_level()
16208 "3061 Last IDX %d\n", last_index); in lpfc_check_next_fcf_pri_level()
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
Dbe_main.c2399 struct be_tx_obj *txo, u16 last_index) in be_tx_compl_process() argument
2426 } while (frag_index != last_index); in be_tx_compl_process()