Home
last modified time | relevance | path

Searched refs:is_valid (Results 1 – 25 of 64) sorted by relevance

123

/linux-6.6.21/tools/power/cpupower/utils/idle_monitor/
Dnhm_idle.c69 static int *is_valid; variable
106 if (!is_valid[cpu]) in nhm_get_count_percent()
135 is_valid[cpu] = !nhm_get_count(num, &val, cpu); in nhm_start()
154 is_valid[cpu] = !nhm_get_count(num, &val, cpu); in nhm_stop()
180 is_valid = calloc(cpu_count, sizeof(int)); in intel_nhm_register()
200 free(is_valid); in intel_nhm_unregister()
Dmperf_monitor.c81 static int *is_valid; variable
138 is_valid[cpu] = !ret; in mperf_init_stats()
151 is_valid[cpu] = !ret; in mperf_measure_stats()
162 if (!is_valid[cpu]) in mperf_get_count_percent()
201 if (!is_valid[cpu]) in mperf_get_count_freq()
345 is_valid = calloc(cpu_count, sizeof(int)); in mperf_register()
364 free(is_valid); in mperf_unregister()
Dsnb_idle.c58 static int *is_valid; variable
91 if (!is_valid[cpu]) in snb_get_count_percent()
135 is_valid[cpu] = !snb_get_count(num, &val, cpu); in snb_stop()
166 is_valid = calloc(cpu_count, sizeof(int)); in snb_register()
180 free(is_valid); in snb_unregister()
Dhsw_ext_idle.c60 static int *is_valid; variable
93 if (!is_valid[cpu]) in hsw_ext_get_count_percent()
137 is_valid[cpu] = !hsw_ext_get_count(num, &val, cpu); in hsw_ext_stop()
161 is_valid = calloc(cpu_count, sizeof(int)); in hsw_ext_register()
175 free(is_valid); in hsw_ext_unregister()
/linux-6.6.21/drivers/iio/chemical/
Dvz89x.c48 bool is_valid; member
223 return data->is_valid ? 0 : -EAGAIN; in vz89x_get_measurement()
225 data->is_valid = false; in vz89x_get_measurement()
236 data->is_valid = true; in vz89x_get_measurement()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_link_encoder.c786 bool is_valid; in dcn10_link_encoder_validate_output_with_stream() local
796 is_valid = dcn10_link_encoder_validate_dvi_output( in dcn10_link_encoder_validate_output_with_stream()
803 is_valid = dcn10_link_encoder_validate_hdmi_output( in dcn10_link_encoder_validate_output_with_stream()
811 is_valid = dcn10_link_encoder_validate_dp_output( in dcn10_link_encoder_validate_output_with_stream()
815 is_valid = (stream->timing.pixel_encoding == PIXEL_ENCODING_RGB) ? true : false; in dcn10_link_encoder_validate_output_with_stream()
818 is_valid = true; in dcn10_link_encoder_validate_output_with_stream()
821 is_valid = false; in dcn10_link_encoder_validate_output_with_stream()
825 return is_valid; in dcn10_link_encoder_validate_output_with_stream()
/linux-6.6.21/drivers/bus/
Darm-cci.c268 bool is_valid; in cci_disable_port_by_cpu() local
270 is_valid = cpu_port_is_valid(&cpu_port[cpu]); in cci_disable_port_by_cpu()
271 if (is_valid && cpu_port_match(&cpu_port[cpu], mpidr)) { in cci_disable_port_by_cpu()
/linux-6.6.21/drivers/gpu/drm/bridge/adv7511/
Dadv7511_cec.c241 bool is_valid = adv7511->cec_valid_addrs & (1 << i); in adv7511_cec_adap_log_addr() local
243 if (free_idx == ADV7511_MAX_ADDRS && !is_valid) in adv7511_cec_adap_log_addr()
245 if (is_valid && adv7511->cec_addr[i] == addr) in adv7511_cec_adap_log_addr()
/linux-6.6.21/arch/arc/mm/
Dtlb.c715 int is_valid, way; in do_tlb_overlap_fault() local
719 for (way = 0, is_valid = 0; way < n_ways; way++) { in do_tlb_overlap_fault()
724 is_valid |= pd0[way] & _PAGE_PRESENT; in do_tlb_overlap_fault()
729 if (!is_valid) in do_tlb_overlap_fault()
/linux-6.6.21/drivers/scsi/isci/
Dscu_remote_node_context.h112 u32 is_valid:1; member
Dremote_node_context.c140 rnc->ssp.is_valid = false; in sci_remote_node_context_construct_buffer()
241 rnc_buffer->ssp.is_valid = true; in sci_remote_node_context_validate_context_buffer()
262 rnc_buffer->ssp.is_valid = false; in sci_remote_node_context_invalidate_context_buffer()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce/
Ddce_link_encoder.c920 bool is_valid; in dce110_link_encoder_validate_output_with_stream() local
925 is_valid = dce110_link_encoder_validate_dvi_output( in dce110_link_encoder_validate_output_with_stream()
932 is_valid = dce110_link_encoder_validate_hdmi_output( in dce110_link_encoder_validate_output_with_stream()
939 is_valid = dce110_link_encoder_validate_dp_output( in dce110_link_encoder_validate_output_with_stream()
944 is_valid = stream->timing.pixel_encoding == PIXEL_ENCODING_RGB; in dce110_link_encoder_validate_output_with_stream()
947 is_valid = true; in dce110_link_encoder_validate_output_with_stream()
950 is_valid = false; in dce110_link_encoder_validate_output_with_stream()
954 return is_valid; in dce110_link_encoder_validate_output_with_stream()
/linux-6.6.21/drivers/net/wireguard/
Dsend.c131 send = keypair && READ_ONCE(keypair->sending.is_valid) && in keep_key_fresh()
363 if (unlikely(!READ_ONCE(keypair->sending.is_valid))) in wg_packet_send_staged_packets()
392 WRITE_ONCE(keypair->sending.is_valid, false); in wg_packet_send_staged_packets()
Dcookie.h25 bool is_valid; member
Dcookie.c170 if (peer->latest_cookie.is_valid && in wg_cookie_add_mac_to_packet()
226 peer->latest_cookie.is_valid = true; in wg_cookie_message_consume()
Dnoise.h27 bool is_valid; member
Dreceive.c230 send = keypair && READ_ONCE(keypair->sending.is_valid) && in keep_key_fresh()
252 if (unlikely(!READ_ONCE(keypair->receiving.is_valid) || in decrypt_packet()
255 WRITE_ONCE(keypair->receiving.is_valid, false); in decrypt_packet()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/core/
Ddc_link_enc_cfg.c637 bool is_valid = false; in link_enc_cfg_validate() local
730 is_valid = valid_entries && valid_stream_ptrs && valid_uniqueness && valid_avail && valid_streams; in link_enc_cfg_validate()
731 ASSERT(is_valid); in link_enc_cfg_validate()
733 if (is_valid == false) { in link_enc_cfg_validate()
743 return is_valid; in link_enc_cfg_validate()
/linux-6.6.21/drivers/net/dsa/b53/
Db53_priv.h280 u8 is_valid:1; member
290 ent->is_valid = !!(fwd_entry & ARLTBL_VALID); in b53_arl_to_entry()
303 if (ent->is_valid) in b53_arl_from_entry()
/linux-6.6.21/fs/smb/client/
Dcached_dir.h22 bool is_valid:1; member
Dreaddir.c881 if (cde->is_valid || cde->is_failed) in update_cached_dirents_count()
892 if (cde->is_valid || cde->is_failed) in finished_cached_dirents_count()
897 cde->is_valid = 1; in finished_cached_dirents_count()
909 if (cde->is_valid || cde->is_failed) in add_cached_dirent()
1108 if (cfid->dirents.is_valid) { in cifs_readdir()
/linux-6.6.21/drivers/gpu/drm/i915/gt/uc/
Dguc_capture_fwif.h159 bool is_valid; member
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/dvm/
Ducode.c274 palive->is_valid, palive->ver_type, in iwl_alive_fn()
283 alive_data->valid = palive->is_valid == UCODE_VALID_OK; in iwl_alive_fn()
/linux-6.6.21/arch/s390/include/asm/
Dsclp.h33 int is_valid; member
/linux-6.6.21/fs/btrfs/
Ddev-replace.c127 dev_replace->is_valid = 0; in btrfs_init_dev_replace()
157 dev_replace->is_valid = 1; in btrfs_init_dev_replace()
357 if (!dev_replace->is_valid || in btrfs_run_dev_replace()
680 dev_replace->is_valid = 1; in btrfs_dev_replace_start()
1263 if (!dev_replace->is_valid) in btrfs_dev_replace_is_ongoing()

123