Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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.h614 uint32_t max_index; member
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/drivers/net/wireless/ath/
Dspectral_common.h60 u8 max_index; member
106 s8 max_index; member
118 s8 max_index; member
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/fs/nls/
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()
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_pool.c35 .max_index = RXE_MAX_SRQ_INDEX,
43 .max_index = RXE_MAX_QP_INDEX,
56 .max_index = RXE_MAX_MR_INDEX,
63 .max_index = RXE_MAX_MW_INDEX,
97 pool->max_index = max; in rxe_pool_init_index()
141 rxe_type_info[type].max_index, in rxe_pool_init()
188 u32 range = pool->max_index - pool->min_index + 1; in alloc_index()
Drxe_pool.h41 u32 max_index; member
81 u32 max_index; member
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/ntfs/
Dsuper.c1584 pgoff_t index, max_index; in load_and_init_attrdef() local
1604 max_index = i_size >> PAGE_SHIFT; in load_and_init_attrdef()
1606 while (index < max_index) { in load_and_init_attrdef()
1649 pgoff_t index, max_index; in load_and_init_upcase() local
1673 max_index = i_size >> PAGE_SHIFT; in load_and_init_upcase()
1675 while (index < max_index) { in load_and_init_upcase()
2450 pgoff_t index, max_index; in get_nr_free_clusters() local
2460 max_index = (((vol->nr_clusters + 7) >> 3) + PAGE_SIZE - 1) >> in get_nr_free_clusters()
2464 max_index, PAGE_SIZE / 4); in get_nr_free_clusters()
2465 for (index = 0; index < max_index; index++) { in get_nr_free_clusters()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Dspectral.c534 static u8 ath11k_spectral_get_max_exp(s8 max_index, u8 max_magnitude, in ath11k_spectral_get_max_exp() argument
543 if (dc_pos <= max_index || -dc_pos >= max_index) in ath11k_spectral_get_max_exp()
547 if (bins[dc_pos + max_index] == (max_magnitude >> max_exp)) in ath11k_spectral_get_max_exp()
552 if (bins[dc_pos + max_index] != (max_magnitude >> max_exp)) in ath11k_spectral_get_max_exp()
643 fft_sample->max_index = FIELD_GET(SPECTRAL_FFT_REPORT_INFO0_PEAK_SIGNED_IDX, in ath11k_spectral_process_fft()
659 fft_sample->max_exp = ath11k_spectral_get_max_exp(fft_sample->max_index, in ath11k_spectral_process_fft()
/kernel/linux/linux-5.10/drivers/staging/qlge/
Dqlge_dbg.c605 u32 max_index; in ql_get_mac_protocol_registers() local
612 max_index = MAC_ADDR_MAX_CAM_ENTRIES; in ql_get_mac_protocol_registers()
616 max_index = MAC_ADDR_MAX_CAM_WCOUNT; in ql_get_mac_protocol_registers()
621 max_index = MAC_ADDR_MAX_CAM_WCOUNT; in ql_get_mac_protocol_registers()
625 max_index = MAC_ADDR_MAX_FC_MAC_ENTRIES; in ql_get_mac_protocol_registers()
629 max_index = MAC_ADDR_MAX_MGMT_MAC_ENTRIES; in ql_get_mac_protocol_registers()
633 max_index = MAC_ADDR_MAX_MGMT_VLAN_ENTRIES; in ql_get_mac_protocol_registers()
637 max_index = MAC_ADDR_MAX_MGMT_V4_ENTRIES; in ql_get_mac_protocol_registers()
641 max_index = MAC_ADDR_MAX_MGMT_V6_ENTRIES; in ql_get_mac_protocol_registers()
645 max_index = MAC_ADDR_MAX_MGMT_TU_DP_ENTRIES; in ql_get_mac_protocol_registers()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
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()
Dcore_hwmon.c706 int index, max_index, sensor_index; in mlxsw_hwmon_gearbox_init() local
723 max_index = mlxsw_hwmon->module_sensor_max + gbox_num; in mlxsw_hwmon_gearbox_init()
724 while (index < max_index) { in mlxsw_hwmon_gearbox_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp.h152 unsigned int max_index; member
Dnfp_nsp_eth.c181 table->max_index = max(table->max_index, table->ports[i].index); in nfp_eth_calc_port_geometry()
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
Dcxd2841er.c1674 int min_index, max_index, index; in cxd2841er_dvbs_read_snr() local
1694 max_index = ARRAY_SIZE(s_cn_data) - 1; in cxd2841er_dvbs_read_snr()
1697 max_index = ARRAY_SIZE(s2_cn_data) - 1; in cxd2841er_dvbs_read_snr()
1703 if (value <= cn_data[max_index].value) { in cxd2841er_dvbs_read_snr()
1704 res = cn_data[max_index].cnr_x1000; in cxd2841er_dvbs_read_snr()
1707 while ((max_index - min_index) > 1) { in cxd2841er_dvbs_read_snr()
1708 index = (max_index + min_index) / 2; in cxd2841er_dvbs_read_snr()
1713 max_index = index; in cxd2841er_dvbs_read_snr()
1716 if ((max_index - min_index) <= 1) { in cxd2841er_dvbs_read_snr()
1717 if (value == cn_data[max_index].value) { in cxd2841er_dvbs_read_snr()
[all …]
/kernel/linux/linux-5.10/lib/
Dobjagg.c761 int max_index = -1; in objagg_tmp_graph_node_max_weight() local
771 max_index = i; in objagg_tmp_graph_node_max_weight()
774 return max_index; in objagg_tmp_graph_node_max_weight()
Dxarray.c429 static unsigned long max_index(void *entry) in max_index() function
577 while (max > max_index(head)) { in xas_expand()
1318 if (xas->xa_index > max_index(entry)) in xas_find_marked()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/vfio/pci/
Dvfio_pci.c797 int max_index; member
1264 devs.max_index = count; in vfio_pci_ioctl()
2279 if (devs->cur_index == devs->max_index) in vfio_pci_get_unused_devs()
2309 if (devs->cur_index == devs->max_index) in vfio_pci_try_zap_and_vma_lock_cb()
2368 devs.max_index = i; in vfio_pci_try_bus_reset()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/modules/color/
Dcolor_gamma.c668 uint32_t max_index) in calculate_mapped_value() argument
681 if ((point->left_index < 0) || (point->left_index > max_index)) { in calculate_mapped_value()
686 if ((point->right_index < 0) || (point->right_index > max_index)) { in calculate_mapped_value()
/kernel/linux/linux-5.10/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()

12