Home
last modified time | relevance | path

Searched refs:max_idx (Results 1 – 24 of 24) sorted by relevance

/Linux-v4.19/drivers/scsi/snic/
Dsnic_trc.c40 if (trc->wr_idx == trc->max_idx) in snic_get_trc_buf()
50 if (trc->rd_idx == trc->max_idx) in snic_get_trc_buf()
111 if (trc->rd_idx == trc->max_idx) in snic_get_trc_data()
149 trc->max_idx = (tbuf_sz / SNIC_TRC_ENTRY_SZ); in snic_trc_init()
Dsnic_trc.h45 u32 max_idx; /* Max Index into trace buffer */ member
/Linux-v4.19/drivers/power/reset/
Dat91-sama5d2_shdwc.c142 int max_idx = ARRAY_SIZE(sdwc_dbc_period) - 1; in at91_shdwc_debouncer_value() local
144 unsigned long long max_period_us = DBC_PERIOD_US(sdwc_dbc_period[max_idx]); in at91_shdwc_debouncer_value()
150 return max_idx; in at91_shdwc_debouncer_value()
153 for (i = max_idx - 1; i > 0; i--) { in at91_shdwc_debouncer_value()
/Linux-v4.19/drivers/regulator/
Dlp87565-regulator.c196 int i, min_idx = LP87565_BUCK_1, max_idx = LP87565_BUCK_3; in lp87565_regulator_probe() local
207 max_idx = LP87565_BUCK_23; in lp87565_regulator_probe()
210 for (i = min_idx; i <= max_idx; i++) { in lp87565_regulator_probe()
/Linux-v4.19/ipc/
Dutil.c122 ids->max_idx = -1; in ipc_init_ids()
294 if (idx > ids->max_idx) in ipc_addid()
295 ids->max_idx = idx; in ipc_addid()
441 if (unlikely(idx == ids->max_idx)) { in ipc_rmid()
447 ids->max_idx = idx; in ipc_rmid()
Dmsg.c459 int max_idx; in msgctl_info() local
486 max_idx = ipc_get_maxidx(&msg_ids(ns)); in msgctl_info()
488 return (max_idx < 0) ? 0 : max_idx; in msgctl_info()
Dutil.h129 return ids->max_idx; in ipc_get_maxidx()
Dsem.c1297 int max_idx; in semctl_info() local
1321 max_idx = ipc_get_maxidx(&sem_ids(ns)); in semctl_info()
1325 return (max_idx < 0) ? 0 : max_idx; in semctl_info()
/Linux-v4.19/arch/ia64/kernel/
Dmca_drv.c74 int max_idx; /* Maximum index of section pointer list pool */ member
224 slidx_pool.cur_idx = (slidx_pool.cur_idx + 1)%slidx_pool.max_idx; }
351 slidx_pool.max_idx = (rec_max_size/sect_min_size) * 2 + 1; in init_record_index_pools()
353 kmalloc_array(slidx_pool.max_idx, sizeof(slidx_list_t), in init_record_index_pools()
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Diowait.h366 uint idx, uint *max_idx) in iowait_starve_find_max() argument
370 *max_idx = idx; in iowait_starve_find_max()
Dpio.c1610 uint i, n = 0, max_idx = 0; in sc_piobufavail() local
1634 iowait_starve_find_max(wait, &max_starved_cnt, n, &max_idx); in sc_piobufavail()
1651 hfi1_qp_wakeup(qps[max_idx], in sc_piobufavail()
1654 if (i != max_idx) in sc_piobufavail()
Dsdma.c1760 uint i, n = 0, seq, max_idx = 0; in sdma_desc_avail() local
1800 n, &max_idx); in sdma_desc_avail()
1811 waits[max_idx]->wakeup(waits[max_idx], SDMA_AVAIL_REASON); in sdma_desc_avail()
1814 if (i != max_idx) in sdma_desc_avail()
/Linux-v4.19/include/linux/
Dipc_namespace.h21 int max_idx; member
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ulp.c123 int max_idx, max_cp_rings; in bnxt_req_msix_vecs() local
147 max_idx = min_t(int, bp->total_irqs, max_cp_rings); in bnxt_req_msix_vecs()
148 idx = max_idx - avail_msix; in bnxt_req_msix_vecs()
Dbnxt.c2062 int i, max_idx; in bnxt_free_tx_skbs() local
2068 max_idx = bp->tx_nr_pages * TX_DESC_CNT; in bnxt_free_tx_skbs()
2073 for (j = 0; j < max_idx;) { in bnxt_free_tx_skbs()
2116 int i, max_idx, max_agg_idx; in bnxt_free_rx_skbs() local
2122 max_idx = bp->rx_nr_pages * RX_DESC_CNT; in bnxt_free_rx_skbs()
2149 for (j = 0; j < max_idx; j++) { in bnxt_free_rx_skbs()
5946 int max_idx, avail_msix; in bnxt_get_avail_msix() local
5948 max_idx = min_t(int, bp->total_irqs, max_cp); in bnxt_get_avail_msix()
5949 avail_msix = max_idx - bp->cp_nr_rings; in bnxt_get_avail_msix()
/Linux-v4.19/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dfwsignal.c1649 if (start > rfi->max_idx) in brcmf_rxreorder_get_skb_list()
1658 u8 flow_id, max_idx, cur_idx, exp_idx, end_idx; in brcmf_fws_rxreorder() local
1699 max_idx = reorder_data[BRCMF_RXREORDER_MAXIDX_OFFSET]; in brcmf_fws_rxreorder()
1701 buf_size += (max_idx + 1) * sizeof(pkt); in brcmf_fws_rxreorder()
1705 flow_id, max_idx); in brcmf_fws_rxreorder()
1715 rfi->max_idx = max_idx; in brcmf_fws_rxreorder()
1728 rfi->max_idx = reorder_data[BRCMF_RXREORDER_MAXIDX_OFFSET]; in brcmf_fws_rxreorder()
1794 if (exp_idx == ((cur_idx + 1) % (rfi->max_idx + 1))) { in brcmf_fws_rxreorder()
Dcore.h68 u8 max_idx; member
/Linux-v4.19/arch/x86/kernel/fpu/
Dxstate.c88 long xfeature_idx, max_idx; in cpu_has_xfeatures() local
103 max_idx = ARRAY_SIZE(xfeature_names)-1; in cpu_has_xfeatures()
104 xfeature_idx = min(xfeature_idx, max_idx); in cpu_has_xfeatures()
/Linux-v4.19/sound/pci/lola/
Dlola_mixer.c336 int idx, max_idx; in lola_setup_all_analog_gains() local
339 max_idx = chip->pin[dir].num_pins; in lola_setup_all_analog_gains()
340 for (idx = 0; idx < max_idx; idx++) { in lola_setup_all_analog_gains()
/Linux-v4.19/drivers/input/misc/
Dad714x.c165 int max_idx = 0; in ad714x_cal_highest_stage() local
171 max_idx = i; in ad714x_cal_highest_stage()
175 return max_idx; in ad714x_cal_highest_stage()
/Linux-v4.19/drivers/net/wireless/ath/ath5k/
Dphy.c3084 u8 pdadc_i, pdadc_n, pwr_step, pdg, max_idx, table_size; in ath5k_combine_pwr_to_pdadc_curves() local
3139 max_idx = (pdadc_n < table_size) ? pdadc_n : table_size; in ath5k_combine_pwr_to_pdadc_curves()
3142 while (pdadc_0 < max_idx && pdadc_i < 128) in ath5k_combine_pwr_to_pdadc_curves()
3146 if (pdadc_n <= max_idx) in ath5k_combine_pwr_to_pdadc_curves()
3160 (pdadc_0 - max_idx) * pwr_step; in ath5k_combine_pwr_to_pdadc_curves()
/Linux-v4.19/drivers/net/wireless/ath/ath9k/
Dar9003_calib.c844 int mp_max = -64, max_idx = 0; in ar9003_hw_detect_outlier() local
852 max_idx = i; in ar9003_hw_detect_outlier()
880 outlier_idx = max_idx; in ar9003_hw_detect_outlier()
/Linux-v4.19/mm/
Dfilemap.c2621 unsigned long max_idx; in filemap_map_pages() local
2666 max_idx = DIV_ROUND_UP(i_size_read(mapping->host), PAGE_SIZE); in filemap_map_pages()
2667 if (page->index >= max_idx) in filemap_map_pages()
/Linux-v4.19/kernel/trace/
Dtrace_events_hist.c3267 unsigned int i, save_var_idx, max_idx = data->onmax.max_var->var.idx; in onmax_print() local
3269 seq_printf(m, "\n\tmax: %10llu", tracing_map_read_var(elt, max_idx)); in onmax_print()
3293 unsigned int max_idx = data->onmax.max_var->var.idx; in onmax_save() local
3299 max_val = tracing_map_read_var(elt, max_idx); in onmax_save()
3304 tracing_map_set_var(elt, max_idx, var_val); in onmax_save()