Home
last modified time | relevance | path

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

12

/drivers/gpu/drm/vc4/
Dvc4_validate.c261 uint32_t max_index = *(uint32_t *)(untrusted + 9); in validate_indexed_prim_list() local
272 if (max_index > shader_state->max_index) in validate_indexed_prim_list()
273 shader_state->max_index = max_index; in validate_indexed_prim_list()
299 uint32_t max_index; in validate_gl_array_primitive() local
313 max_index = length + base_index - 1; in validate_gl_array_primitive()
315 if (max_index > shader_state->max_index) in validate_gl_array_primitive()
316 shader_state->max_index = max_index; in validate_gl_array_primitive()
332 exec->shader_state[i].max_index = 0; in validate_gl_shader_state()
893 uint32_t max_index; in validate_gl_shader_rec() local
909 max_index = ((vbo->base.size - offset - attr_size) / in validate_gl_shader_rec()
[all …]
Dvc4_drv.h544 uint32_t max_index; member
/drivers/scsi/isci/
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()
456 port_agent->phy_valid_port_range[phy_index].max_index = phy_index; in sci_apc_agent_validate_phy_configuration()
459 port_agent->phy_valid_port_range[phy_index].max_index = phy_index; in sci_apc_agent_validate_phy_configuration()
506 port_index <= port_agent->phy_valid_port_range[iphy->phy_index].max_index; in sci_apc_agent_configure_ports()
722 port_agent->phy_valid_port_range[index].max_index = 0; in sci_port_configuration_agent_construct()
Dhost.h120 u8 max_index; member
/drivers/net/wireless/ath/ath9k/
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 …]
Dcommon-spectral.c48 u8 max_index; in ath_cmn_max_idx_verify_ht20_fft() local
62 max_index = spectral_max_index_ht20(mag_info->all_bins); in ath_cmn_max_idx_verify_ht20_fft()
71 if (bytes_read < SPECTRAL_HT20_SAMPLE_LEN && max_index < 1) in ath_cmn_max_idx_verify_ht20_fft()
74 if ((sample[max_index] & 0xf8) != ((max_magnitude >> max_exp) & 0xf8)) in ath_cmn_max_idx_verify_ht20_fft()
145 u8 max_index, bitmap_w, max_exp; in ath_cmn_process_ht20_fft() local
160 max_index = spectral_max_index_ht20(mag_info->all_bins); in ath_cmn_process_ht20_fft()
161 fft_sample_20.max_index = max_index; in ath_cmn_process_ht20_fft()
176 max_index); in ath_cmn_process_ht20_fft()
178 if ((fft_sample_20.data[max_index] & 0xf8) != in ath_cmn_process_ht20_fft()
194 if (max_index == dc_pos) { in ath_cmn_process_ht20_fft()
[all …]
/drivers/infiniband/sw/rxe/
Drxe_pool.c62 .max_index = RXE_MAX_SRQ_INDEX,
70 .max_index = RXE_MAX_QP_INDEX,
83 .max_index = RXE_MAX_MR_INDEX,
90 .max_index = RXE_MAX_MW_INDEX,
180 pool->max_index = max; in rxe_pool_init_index()
224 rxe_type_info[type].max_index, in rxe_pool_init()
271 u32 range = pool->max_index - pool->min_index + 1; in alloc_index()
Drxe_pool.h68 u32 max_index; member
109 u32 max_index; member
/drivers/net/wireless/ath/ath10k/
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()
/drivers/net/wireless/ath/
Dspectral_common.h58 u8 max_index; member
104 s8 max_index; member
/drivers/staging/qlge/
Dqlge_dbg.c610 u32 max_index; in ql_get_mac_protocol_registers() local
618 max_index = MAC_ADDR_MAX_CAM_ENTRIES; in ql_get_mac_protocol_registers()
622 max_index = MAC_ADDR_MAX_CAM_WCOUNT; in ql_get_mac_protocol_registers()
627 max_index = MAC_ADDR_MAX_CAM_WCOUNT; in ql_get_mac_protocol_registers()
631 max_index = MAC_ADDR_MAX_FC_MAC_ENTRIES; in ql_get_mac_protocol_registers()
635 max_index = MAC_ADDR_MAX_MGMT_MAC_ENTRIES; in ql_get_mac_protocol_registers()
639 max_index = MAC_ADDR_MAX_MGMT_VLAN_ENTRIES; in ql_get_mac_protocol_registers()
643 max_index = MAC_ADDR_MAX_MGMT_V4_ENTRIES; in ql_get_mac_protocol_registers()
647 max_index = MAC_ADDR_MAX_MGMT_V6_ENTRIES; in ql_get_mac_protocol_registers()
651 max_index = MAC_ADDR_MAX_MGMT_TU_DP_ENTRIES; in ql_get_mac_protocol_registers()
[all …]
/drivers/net/ethernet/mellanox/mlxsw/
Dcore_hwmon.c582 int index, max_index, sensor_index; in mlxsw_hwmon_gearbox_init() local
598 max_index = mlxsw_hwmon->module_sensor_count + gbox_num; in mlxsw_hwmon_gearbox_init()
599 while (index < max_index) { in mlxsw_hwmon_gearbox_init()
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 be_index = max_index - index; in __mlxsw_item_bit_array_offset()
/drivers/media/dvb-frontends/
Dcxd2841er.c1673 int min_index, max_index, index; in cxd2841er_dvbs_read_snr() local
1693 max_index = ARRAY_SIZE(s_cn_data) - 1; in cxd2841er_dvbs_read_snr()
1696 max_index = ARRAY_SIZE(s2_cn_data) - 1; in cxd2841er_dvbs_read_snr()
1702 if (value <= cn_data[max_index].value) { in cxd2841er_dvbs_read_snr()
1703 res = cn_data[max_index].cnr_x1000; in cxd2841er_dvbs_read_snr()
1706 while ((max_index - min_index) > 1) { in cxd2841er_dvbs_read_snr()
1707 index = (max_index + min_index) / 2; in cxd2841er_dvbs_read_snr()
1712 max_index = index; in cxd2841er_dvbs_read_snr()
1715 if ((max_index - min_index) <= 1) { in cxd2841er_dvbs_read_snr()
1716 if (value == cn_data[max_index].value) { in cxd2841er_dvbs_read_snr()
[all …]
/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp_eth.c181 table->max_index = max(table->max_index, table->ports[i].index); in nfp_eth_calc_port_geometry()
Dnfp_nsp.h152 unsigned int max_index; member
/drivers/md/
Ddm-clone-metadata.c676 unsigned long max_index = min(cmd->nr_regions, (word + 1) * BITS_PER_LONG); in __update_metadata_word() local
678 while (index < max_index) { in __update_metadata_word()
/drivers/vfio/pci/
Dvfio_pci.c1522 int max_index; member
1531 if (devs->cur_index == devs->max_index) in vfio_pci_get_unused_devs()
1587 devs.max_index = i; in vfio_pci_try_bus_reset()
/drivers/gpu/drm/amd/display/modules/color/
Dcolor_gamma.c629 uint32_t max_index) in calculate_mapped_value() argument
642 if ((point->left_index < 0) || (point->left_index > max_index)) { in calculate_mapped_value()
647 if ((point->right_index < 0) || (point->right_index > max_index)) { in calculate_mapped_value()
/drivers/net/ethernet/netronome/nfp/
Dnfp_net_main.c461 min_size = NFP_MAC_STATS_SIZE * (pf->eth_tbl->max_index + 1); in nfp_net_pci_map_mem()
/drivers/net/wireless/atmel/
Datmel.c2944 int max_index = -1; in retrieve_bss() local
2961 priv->current_BSS = max_index = i; in retrieve_bss()
2964 return max_index; in retrieve_bss()
2974 max_index = i; in retrieve_bss()
2978 return max_index; in retrieve_bss()
/drivers/net/ethernet/netronome/nfp/flower/
Dmain.c500 reprs = nfp_reprs_alloc(eth_tbl->max_index + 1); in nfp_flower_spawn_phy_reprs()
/drivers/scsi/megaraid/
Dmegaraid_sas_base.c1835 for (i = 0; i < megasas_mgmt_info.max_index; i++) { in megasas_lookup_instance()
7376 megasas_mgmt_info.instance[megasas_mgmt_info.max_index] = instance; in megasas_probe_one()
7377 megasas_mgmt_info.max_index++; in megasas_probe_one()
7412 megasas_mgmt_info.max_index--; in megasas_probe_one()
7413 megasas_mgmt_info.instance[megasas_mgmt_info.max_index] = NULL; in megasas_probe_one()
7809 for (i = 0; i < megasas_mgmt_info.max_index; i++) { in megasas_detach_one()
7991 for (i = 0; i < megasas_mgmt_info.max_index; i++) { in megasas_set_crash_dump_params_ioctl()
/drivers/scsi/
Dpmcraid.c4550 pmcraid_release_cmd_blocks(struct pmcraid_instance *pinstance, int max_index) in pmcraid_release_cmd_blocks() argument
4553 for (i = 0; i < max_index; i++) { in pmcraid_release_cmd_blocks()
4575 int max_index in pmcraid_release_control_blocks() argument
4583 for (i = 0; i < max_index; i++) { in pmcraid_release_control_blocks()
/drivers/scsi/libfc/
Dfc_exch.c221 unsigned int max_index) in fc_exch_name_lookup() argument
225 if (op < max_index) in fc_exch_name_lookup()

12