Home
last modified time | relevance | path

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

/drivers/cpufreq/
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()
253 stats->last_index = freq_table_get_index(stats, policy->cur); in cpufreq_stats_create_table()
278 old_index = stats->last_index; in cpufreq_stats_record_transition()
287 stats->last_index = new_index; in cpufreq_stats_record_transition()
Dcpufreq_times.c37 unsigned int last_index; member
142 state = freqs->offset + READ_ONCE(freqs->last_index); in cpufreq_acct_update_power()
192 WRITE_ONCE(freqs->last_index, index); in cpufreq_times_create_policy()
210 WRITE_ONCE(freqs->last_index, index); in cpufreq_times_record_transition()
/drivers/char/
Dmspec.c106 int index, last_index; in mspec_close() local
114 last_index = (vdata->vm_end - vdata->vm_start) >> PAGE_SHIFT; in mspec_close()
115 for (index = 0; index < last_index; index++) { in mspec_close()
/drivers/acpi/
Dacpi_processor.c736 int last_index = 0; in acpi_processor_evaluate_cst() local
773 if (last_index >= ACPI_PROCESSOR_MAX_POWER - 1) { in acpi_processor_evaluate_cst()
819 last_index = 1; in acpi_processor_evaluate_cst()
822 cx.index = last_index + 1; in acpi_processor_evaluate_cst()
880 memcpy(&info->states[++last_index], &cx, sizeof(cx)); in acpi_processor_evaluate_cst()
883 acpi_handle_info(handle, "Found %d idle states\n", last_index); in acpi_processor_evaluate_cst()
885 info->count = last_index; in acpi_processor_evaluate_cst()
/drivers/accessibility/speakup/
Dspeakup_soft.c323 static int last_index; variable
336 last_index = supplied_index; in softsynth_write()
359 rv = last_index; in get_index()
360 last_index = 0; in get_index()
/drivers/dma/
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()
/drivers/staging/media/atomisp/pci/runtime/debug/src/
Dia_css_debug.c1528 static int last_index; in ia_css_debug_print_sp_debug_state()
1533 if (sp_index < last_index) { in ia_css_debug_print_sp_debug_state()
1535 last_index = 0; in ia_css_debug_print_sp_debug_state()
1538 if (last_index == 0) { in ia_css_debug_print_sp_debug_state()
1547 if ((last_index + SH_CSS_SP_DBG_TRACE_DEPTH) < sp_index) { in ia_css_debug_print_sp_debug_state()
1550 last_index = sp_index - SH_CSS_SP_DBG_TRACE_DEPTH; in ia_css_debug_print_sp_debug_state()
1553 for (n = last_index; n < sp_index; n++) { in ia_css_debug_print_sp_debug_state()
1567 last_index = sp_index; in ia_css_debug_print_sp_debug_state()
/drivers/infiniband/hw/hfi1/
Dtid_rdma.h81 u8 last_index; member
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()
/drivers/nvme/host/
Dcore.c2332 u64 *transition_time, unsigned *last_index) in nvme_apst_get_transition_time() argument
2335 if (*last_index == 1) in nvme_apst_get_transition_time()
2337 *last_index = 1; in nvme_apst_get_transition_time()
2343 if (*last_index <= 2) in nvme_apst_get_transition_time()
2345 *last_index = 2; in nvme_apst_get_transition_time()
/drivers/scsi/lpfc/
Dlpfc_hbadisc.c2434 uint16_t last_index; in lpfc_sli4_fcf_pri_list_add() local
2457 last_index = find_first_bit(phba->fcf.fcf_rr_bmask, in lpfc_sli4_fcf_pri_list_add()
2459 if (last_index >= LPFC_SLI4_FCF_TBL_INDX_MAX) { in lpfc_sli4_fcf_pri_list_add()
2463 current_fcf_pri = phba->fcf.fcf_pri[last_index].fcf_rec.priority; in lpfc_sli4_fcf_pri_list_add()
Dlpfc_debugfs.c4255 uint32_t last_index, index, count; in lpfc_idiag_queacc_read() local
4291 last_index = idiag.offset.last_rd; in lpfc_idiag_queacc_read()
4292 index = last_index; in lpfc_idiag_queacc_read()
Dlpfc_sli.c20400 uint16_t last_index; in lpfc_check_next_fcf_pri_level() local
20405 last_index = find_first_bit(phba->fcf.fcf_rr_bmask, in lpfc_check_next_fcf_pri_level()
20408 "3060 Last IDX %d\n", last_index); in lpfc_check_next_fcf_pri_level()
20416 "3061 Last IDX %d\n", last_index); in lpfc_check_next_fcf_pri_level()
/drivers/net/ethernet/emulex/benet/
Dbe_main.c2749 struct be_tx_obj *txo, u16 last_index) in be_tx_compl_process() argument
2777 } while (frag_index != last_index); in be_tx_compl_process()