Home
last modified time | relevance | path

Searched refs:max_index (Results 1 – 25 of 26) sorted by relevance

12

/linux/drivers/scsi/isci/
H A Dport_config.c169 if (port_agent->phy_valid_port_range[0].max_index != 0 || in sci_port_configuration_agent_validate_ports()
170 port_agent->phy_valid_port_range[1].max_index != 1 || in sci_port_configuration_agent_validate_ports()
171 port_agent->phy_valid_port_range[2].max_index != 2 || in sci_port_configuration_agent_validate_ports()
172 port_agent->phy_valid_port_range[3].max_index != 3) in sci_port_configuration_agent_validate_ports()
280 port_agent->phy_valid_port_range[phy_index].max_index = phy_index; in sci_mpc_agent_validate_phy_configuration()
308 port_agent->phy_valid_port_range[phy_index].max_index = phy_index; in sci_mpc_agent_validate_phy_configuration()
457 port_agent->phy_valid_port_range[phy_index].max_index = phy_index; in sci_apc_agent_validate_phy_configuration()
460 port_agent->phy_valid_port_range[phy_index].max_index = phy_index; in sci_apc_agent_validate_phy_configuration()
507 port_index <= port_agent->phy_valid_port_range[iphy->phy_index].max_index; in sci_apc_agent_configure_ports()
723 port_agent->phy_valid_port_range[index].max_index = 0; in sci_port_configuration_agent_construct()
H A Dhost.h120 u8 max_index; member
/linux/drivers/net/wireless/ath/ath9k/
H A Dar9003_paprd.c426 int max_index, scale_factor; in create_pa_curve() local
441 max_index = 0; in create_pa_curve()
457 max_index++; in create_pa_curve()
473 x_est[max_index] = in create_pa_curve()
477 Y[max_index] = in create_pa_curve()
485 theta[max_index] = in create_pa_curve()
503 for (i = 0; i <= max_index; i++) in create_pa_curve()
526 for (i = 0; i <= max_index; i++) in create_pa_curve()
534 if (y_est[max_index] == 0) in create_pa_curve()
538 x_est[max_index] - ((1 << scale_factor) * y_est[max_index] + in create_pa_curve()
[all …]
H A Dcommon-spectral.c49 u8 max_index; in ath_cmn_max_idx_verify_ht20_fft() local
63 max_index = spectral_max_index_ht20(mag_info->all_bins); in ath_cmn_max_idx_verify_ht20_fft()
72 if (bytes_read < SPECTRAL_HT20_SAMPLE_LEN && max_index < 1) in ath_cmn_max_idx_verify_ht20_fft()
75 if ((sample[max_index] & 0xf8) != ((max_magnitude >> max_exp) & 0xf8)) in ath_cmn_max_idx_verify_ht20_fft()
146 u8 max_index, bitmap_w, max_exp; in ath_cmn_process_ht20_fft() local
161 max_index = spectral_max_index_ht20(mag_info->all_bins); in ath_cmn_process_ht20_fft()
162 fft_sample_20.max_index = max_index; in ath_cmn_process_ht20_fft()
177 max_index); in ath_cmn_process_ht20_fft()
179 if ((fft_sample_20.data[max_index] & 0xf8) != in ath_cmn_process_ht20_fft()
195 if (max_index == dc_pos) { in ath_cmn_process_ht20_fft()
[all …]
/linux/drivers/net/wireless/ath/
H A Dspectral_common.h59 u8 max_index; member
105 s8 max_index; member
117 s8 max_index; member
/linux/fs/nls/
H A Dnls_euc-jp.c307 int index, min_index, max_index; in euc2sjisibm_jisx0212() local
311 max_index = ARRAY_SIZE(euc2sjisibm_jisx0212_map) - 1; in euc2sjisibm_jisx0212()
314 while (min_index <= max_index) { in euc2sjisibm_jisx0212()
315 index = (min_index + max_index) / 2; in euc2sjisibm_jisx0212()
317 max_index = index - 1; in euc2sjisibm_jisx0212()
/linux/drivers/input/misc/
H A Dcs40l50-vibra.c54 u32 max_index; member
102 .max_index = CS40L50_RAM_INDEX_END,
107 .max_index = CS40L50_ROM_INDEX_END,
112 .max_index = CS40L50_RTH_INDEX_END,
162 u32 base_index, max_index; in cs40l50_effect_index_set() local
165 max_index = vib->dsp.banks[effect->type].max_index; in cs40l50_effect_index_set()
184 if (effect->index > max_index || effect->index < base_index) { in cs40l50_effect_index_set()
/linux/drivers/net/wireless/ath/ath10k/
H A Dspectral.c24 static uint8_t get_max_exp(s8 max_index, u16 max_magnitude, size_t bin_len, in get_max_exp() argument
33 if (dc_pos < max_index || -dc_pos >= max_index) in get_max_exp()
37 if (data[dc_pos + max_index] == (max_magnitude >> max_exp)) in get_max_exp()
42 if (data[dc_pos + max_index] != (max_magnitude >> max_exp)) in get_max_exp()
119 fft_sample->max_index = MS(reg0, SEARCH_FFT_REPORT_REG0_PEAK_SIDX); in ath10k_spectral_process_fft()
144 fft_sample->max_exp = get_max_exp(fft_sample->max_index, peak_mag, in ath10k_spectral_process_fft()
/linux/arch/x86/virt/svm/
H A Dsev.c90 u64 max_index; member
323 desc->max_index = segment_size / sizeof(*desc->rmp_entry); in alloc_rmp_segment_desc()
409 unsigned int i, max_index; in setup_segmented_rmptable() local
428 max_index = 0; in setup_segmented_rmptable()
437 max_index = i; in setup_segmented_rmptable()
479 rst_max_index = max_index + 1; in setup_segmented_rmptable()
693 if (unlikely(segment_index >= desc->max_index)) in get_raw_rmpentry()
696 segment_index = array_index_nospec(segment_index, desc->max_index); in get_raw_rmpentry()
/linux/drivers/net/wireless/ath/ath11k/
H A Dspectral.c530 static u8 ath11k_spectral_get_max_exp(s8 max_index, u8 max_magnitude, in ath11k_spectral_get_max_exp() argument
539 if (dc_pos <= max_index || -dc_pos >= max_index) in ath11k_spectral_get_max_exp()
543 if (bins[dc_pos + max_index] == (max_magnitude >> max_exp)) in ath11k_spectral_get_max_exp()
548 if (bins[dc_pos + max_index] != (max_magnitude >> max_exp)) in ath11k_spectral_get_max_exp()
656 fft_sample->max_index = FIELD_GET(SPECTRAL_FFT_REPORT_INFO0_PEAK_SIGNED_IDX, in ath11k_spectral_process_fft()
683 fft_sample->max_exp = ath11k_spectral_get_max_exp(fft_sample->max_index, in ath11k_spectral_process_fft()
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Ditem.h208 u16 max_index, be_index; in __mlxsw_item_bit_array_offset() local
220 max_index = (item->size.bytes << 3) / item->element_size - 1; in __mlxsw_item_bit_array_offset()
221 if (WARN_ONCE(index > max_index, in __mlxsw_item_bit_array_offset()
223 max_index)) in __mlxsw_item_bit_array_offset()
225 be_index = max_index - index; in __mlxsw_item_bit_array_offset()
H A Dcore_hwmon.c739 int index, max_index, sensor_index; in mlxsw_hwmon_gearbox_init() local
757 max_index = mlxsw_hwmon_dev->module_sensor_max + gbox_num; in mlxsw_hwmon_gearbox_init()
758 while (index < max_index) { in mlxsw_hwmon_gearbox_init()
/linux/lib/
H A Dobjagg.c764 int max_index = -1; in objagg_tmp_graph_node_max_weight() local
774 max_index = i; in objagg_tmp_graph_node_max_weight()
777 return max_index; in objagg_tmp_graph_node_max_weight()
H A Dxarray.c433 static unsigned long max_index(void *entry) in max_index() function
586 while (max > max_index(head)) { in xas_expand()
1480 if (xas->xa_index > max_index(entry)) in xas_find_marked()
/linux/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dnfp_nsp_eth.c204 table->max_index = max(table->max_index, table->ports[i].index); in nfp_eth_calc_port_geometry()
H A Dnfp_nsp.h207 unsigned int max_index; member
/linux/drivers/platform/x86/intel/speed_select_if/
H A Disst_tpmi_core.c308 int max_index; member
538 if (!in_range(pkg_id, 0, topology_max_packages()) || pkg_id > isst_common.max_index) in get_instance()
1685 if (isst_common.max_index < pkg) in tpmi_sst_dev_add()
1686 isst_common.max_index = pkg; in tpmi_sst_dev_add()
/linux/drivers/md/
H A Ddm-clone-metadata.c662 unsigned long max_index = min(cmd->nr_regions, (word + 1) * BITS_PER_LONG); in __update_metadata_word() local
664 while (index < max_index) { in __update_metadata_word()
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_main.c453 min_size = NFP_MAC_STATS_SIZE * (pf->eth_tbl->max_index + 1); in nfp_net_pci_map_mem()
/linux/drivers/scsi/
H A Dpmcraid.c4096 pmcraid_release_cmd_blocks(struct pmcraid_instance *pinstance, int max_index) in pmcraid_release_cmd_blocks() argument
4099 for (i = 0; i < max_index; i++) { in pmcraid_release_cmd_blocks()
4121 int max_index in pmcraid_release_control_blocks() argument
4129 for (i = 0; i < max_index; i++) { in pmcraid_release_control_blocks()
H A Dadvansys.c6198 int max_index; in AscGetSynPeriodIndex() local
6203 max_index = (int)asc_dvc->max_sdtr_index; in AscGetSynPeriodIndex()
6205 if ((syn_time <= period_table[max_index])) { in AscGetSynPeriodIndex()
6206 for (i = min_index; i < (max_index - 1); i++) { in AscGetSynPeriodIndex()
6211 return (uchar)max_index; in AscGetSynPeriodIndex()
6213 return (uchar)(max_index + 1); in AscGetSynPeriodIndex()
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dmain.c509 reprs = nfp_reprs_alloc(eth_tbl->max_index + 1); in nfp_flower_spawn_phy_reprs()
/linux/drivers/scsi/libfc/
H A Dfc_exch.c222 unsigned int max_index) in fc_exch_name_lookup() argument
226 if (op < max_index) in fc_exch_name_lookup()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
H A Dphy_lcn.c5048 s32 max_index = 0; in wlc_lcnphy_get_receive_power() local
5052 max_index = 36; in wlc_lcnphy_get_receive_power()
5058 while ((*gain_index <= (s32) max_index) in wlc_lcnphy_get_receive_power()
/linux/kernel/bpf/
H A Dverifier.c20218 u64 min_index, max_index; in indirect_jump_min_max_index() local
20227 if (check_add_overflow(reg->umax_value, reg->off, &max_index) || in indirect_jump_min_max_index()
20228 (max_index > (u64) U32_MAX * size)) { in indirect_jump_min_max_index()
20235 max_index /= size; in indirect_jump_min_max_index()
20237 if (max_index >= map->max_entries) { in indirect_jump_min_max_index()
20239 regno, min_index, max_index, map->max_entries); in indirect_jump_min_max_index()
20244 *pmax_index = max_index; in indirect_jump_min_max_index()
20254 u32 min_index, max_index; in check_indirect_jump() local
20274 err = indirect_jump_min_max_index(env, insn->dst_reg, map, &min_index, &max_index); in check_indirect_jump()
20279 if (!env->gotox_tmp_buf || env->gotox_tmp_buf->cnt < max_index - min_index + 1) { in check_indirect_jump()
[all …]

12