| /linux/drivers/gpu/drm/vc4/ |
| H A D | vc4_validate.c | 270 uint32_t max_index = *(uint32_t *)(untrusted + 9); in validate_indexed_prim_list() local 281 if (max_index > shader_state->max_index) in validate_indexed_prim_list() 282 shader_state->max_index = max_index; in validate_indexed_prim_list() 305 uint32_t max_index; in validate_gl_array_primitive() local 319 max_index = length + base_index - 1; in validate_gl_array_primitive() 321 if (max_index > shader_state->max_index) in validate_gl_array_primitive() 322 shader_state->max_index = max_index; in validate_gl_array_primitive() 338 exec->shader_state[i].max_index = 0; in validate_gl_shader_state() 915 uint32_t max_index; in validate_gl_shader_rec() local 928 max_index = ((vbo->base.size - offset - attr_size) / in validate_gl_shader_rec() [all …]
|
| /linux/drivers/net/wireless/ath/ |
| H A D | spectral_common.h | 59 u8 max_index; member 105 s8 max_index; member 117 s8 max_index; member
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | ar9003_paprd.c | 426 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 D | common-spectral.c | 49 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/fs/nls/ |
| H A D | nls_euc-jp.c | 307 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 D | cs40l50-vibra.c | 54 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 D | spectral.c | 24 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 D | sev.c | 90 u64 max_index; member 317 desc->max_index = segment_size / sizeof(*desc->rmp_entry); in alloc_rmp_segment_desc() 403 unsigned int i, max_index; in setup_segmented_rmptable() local 422 max_index = 0; in setup_segmented_rmptable() 431 max_index = i; in setup_segmented_rmptable() 473 rst_max_index = max_index + 1; in setup_segmented_rmptable() 724 if (unlikely(segment_index >= desc->max_index)) in get_raw_rmpentry() 727 segment_index = array_index_nospec(segment_index, desc->max_index); in get_raw_rmpentry()
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | item.h | 208 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 D | core_hwmon.c | 739 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 D | objagg.c | 764 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()
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | cxd2841er.c | 1670 int min_index, max_index, index; in cxd2841er_dvbs_read_snr() local 1690 max_index = ARRAY_SIZE(s_cn_data) - 1; in cxd2841er_dvbs_read_snr() 1693 max_index = ARRAY_SIZE(s2_cn_data) - 1; in cxd2841er_dvbs_read_snr() 1699 if (value <= cn_data[max_index].value) { in cxd2841er_dvbs_read_snr() 1700 res = cn_data[max_index].cnr_x1000; in cxd2841er_dvbs_read_snr() 1703 while ((max_index - min_index) > 1) { in cxd2841er_dvbs_read_snr() 1704 index = (max_index + min_index) / 2; in cxd2841er_dvbs_read_snr() 1709 max_index = index; in cxd2841er_dvbs_read_snr() 1712 if ((max_index - min_index) <= 1) { in cxd2841er_dvbs_read_snr() 1713 if (value == cn_data[max_index].value) { in cxd2841er_dvbs_read_snr() [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | at91-sama5d2_adc.c | 475 unsigned int max_index; member 716 .max_index = AT91_SAMA5D2_MAX_CHAN_IDX, 738 .max_index = AT91_SAMA7G5_MAX_CHAN_IDX, 1285 st->soc_info.platform->max_index + 1); in at91_adc_current_chan_is_touch() 1619 st->soc_info.platform->max_index + 1) { in at91_adc_touch_data_handler() 2133 st->soc_info.platform->max_index + 1)) in at91_adc_update_scan_mode() 2140 st->soc_info.platform->max_index + 1)) in at91_adc_update_scan_mode()
|
| /linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
| H A D | nfp_nsp.h | 207 unsigned int max_index; member
|
| H A D | nfp_nsp_eth.c | 204 table->max_index = max(table->max_index, table->ports[i].index); in nfp_eth_calc_port_geometry()
|
| /linux/drivers/platform/x86/intel/speed_select_if/ |
| H A D | isst_tpmi_core.c | 308 int max_index; member 545 if (!in_range(pkg_id, 0, topology_max_packages()) || pkg_id > isst_common.max_index) in get_instance() 1762 if (isst_common.max_index < pkg) in tpmi_sst_dev_add() 1763 isst_common.max_index = pkg; in tpmi_sst_dev_add()
|
| /linux/drivers/scsi/isci/ |
| H A D | host.h | 120 u8 max_index; member
|
| /linux/drivers/md/ |
| H A D | dm-clone-metadata.c | 662 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 D | nfp_net_main.c | 452 min_size = NFP_MAC_STATS_SIZE * (pf->eth_tbl->max_index + 1); in nfp_net_pci_map_mem()
|
| /linux/drivers/scsi/ |
| H A D | pmcraid.c | 4096 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()
|
| /linux/fs/btrfs/ |
| H A D | block-group.c | 619 int index, int max_index, in sample_block_group_extent_item() argument 632 ASSERT(index <= max_index); in sample_block_group_extent_item() 633 ASSERT(max_index > 0); in sample_block_group_extent_item() 645 search_offset = index * div_u64(block_group->length, max_index); in sample_block_group_extent_item()
|
| /linux/drivers/net/ethernet/netronome/nfp/flower/ |
| H A D | main.c | 509 reprs = nfp_reprs_alloc(eth_tbl->max_index + 1); in nfp_flower_spawn_phy_reprs()
|
| /linux/drivers/scsi/megaraid/ |
| H A D | megaraid_sas_base.c | 1867 for (i = 0; i < megasas_mgmt_info.max_index; i++) { in megasas_lookup_instance() 7575 megasas_mgmt_info.instance[megasas_mgmt_info.max_index] = instance; in megasas_probe_one() 7576 megasas_mgmt_info.max_index++; in megasas_probe_one() 7613 megasas_mgmt_info.max_index--; in megasas_probe_one() 7614 megasas_mgmt_info.instance[megasas_mgmt_info.max_index] = NULL; in megasas_probe_one() 8019 for (i = 0; i < megasas_mgmt_info.max_index; i++) { in megasas_detach_one() 8208 for (i = 0; i < megasas_mgmt_info.max_index; i++) { in megasas_set_crash_dump_params_ioctl()
|
| /linux/drivers/scsi/libfc/ |
| H A D | fc_exch.c | 222 unsigned int max_index) in fc_exch_name_lookup() argument 226 if (op < max_index) in fc_exch_name_lookup()
|
| /linux/kernel/bpf/ |
| H A D | verifier.c | 17985 u64 max_index = reg_umax(reg); in indirect_jump_min_max_index() local 17992 if (max_index > (u64) U32_MAX * size) { in indirect_jump_min_max_index() 17998 max_index /= size; in indirect_jump_min_max_index() 18000 if (max_index >= map->max_entries) { in indirect_jump_min_max_index() 18002 regno, min_index, max_index, map->max_entries); in indirect_jump_min_max_index() 18007 *pmax_index = max_index; in indirect_jump_min_max_index() 18017 u32 min_index, max_index; in check_indirect_jump() local 18037 err = indirect_jump_min_max_index(env, insn->dst_reg, map, &min_index, &max_index); in check_indirect_jump() 18042 if (!env->gotox_tmp_buf || env->gotox_tmp_buf->cnt < max_index - min_index + 1) { in check_indirect_jump() 18044 max_index - min_index + 1); in check_indirect_jump() [all …]
|