/kernel/linux/linux-5.10/net/wireless/ |
H A D | wext-spy.c | 108 * Standard Wireless Handler : set spy threshold 116 struct iw_thrspy * threshold = (struct iw_thrspy *) extra; in iw_handler_set_thrspy() local 123 spydata->spy_thr_low = threshold->low; in iw_handler_set_thrspy() 124 spydata->spy_thr_high = threshold->high; in iw_handler_set_thrspy() 135 * Standard Wireless Handler : get spy threshold 143 struct iw_thrspy * threshold = (struct iw_thrspy *) extra; in iw_handler_get_thrspy() local 150 threshold->low = spydata->spy_thr_low; in iw_handler_get_thrspy() 151 threshold->high = spydata->spy_thr_high; in iw_handler_get_thrspy() 167 struct iw_thrspy threshold; in iw_send_thrspy_event() local 173 memcpy(threshold in iw_send_thrspy_event() [all...] |
/kernel/linux/linux-6.6/net/wireless/ |
H A D | wext-spy.c | 108 * Standard Wireless Handler : set spy threshold 116 struct iw_thrspy * threshold = (struct iw_thrspy *) extra; in iw_handler_set_thrspy() local 123 spydata->spy_thr_low = threshold->low; in iw_handler_set_thrspy() 124 spydata->spy_thr_high = threshold->high; in iw_handler_set_thrspy() 135 * Standard Wireless Handler : get spy threshold 143 struct iw_thrspy * threshold = (struct iw_thrspy *) extra; in iw_handler_get_thrspy() local 150 threshold->low = spydata->spy_thr_low; in iw_handler_get_thrspy() 151 threshold->high = spydata->spy_thr_high; in iw_handler_get_thrspy() 167 struct iw_thrspy threshold; in iw_send_thrspy_event() local 173 memcpy(threshold in iw_send_thrspy_event() [all...] |
/kernel/linux/linux-5.10/drivers/soc/tegra/fuse/ |
H A D | speedo-tegra124.c | 51 int *threshold) in rev_sku_to_speedo_ids() 59 *threshold = THRESHOLD_INDEX_0; in rev_sku_to_speedo_ids() 77 *threshold = THRESHOLD_INDEX_0; in rev_sku_to_speedo_ids() 85 *threshold = THRESHOLD_INDEX_1; in rev_sku_to_speedo_ids() 93 *threshold = THRESHOLD_INDEX_1; in rev_sku_to_speedo_ids() 104 int i, threshold, cpu_speedo_0_value, soc_speedo_0_value; in tegra124_init_speedo_data() local 133 rev_sku_to_speedo_ids(sku_info, &threshold); in tegra124_init_speedo_data() 139 gpu_process_speedos[threshold][i]) in tegra124_init_speedo_data() 145 cpu_process_speedos[threshold][i]) in tegra124_init_speedo_data() 151 soc_process_speedos[threshold][ in tegra124_init_speedo_data() 50 rev_sku_to_speedo_ids(struct tegra_sku_info *sku_info, int *threshold) rev_sku_to_speedo_ids() argument [all...] |
H A D | speedo-tegra114.c | 34 int *threshold) in rev_sku_to_speedo_ids() 47 *threshold = THRESHOLD_INDEX_0; in rev_sku_to_speedo_ids() 54 *threshold = THRESHOLD_INDEX_1; in rev_sku_to_speedo_ids() 61 *threshold = THRESHOLD_INDEX_0; in rev_sku_to_speedo_ids() 77 int threshold; in tegra114_init_speedo_data() local 85 rev_sku_to_speedo_ids(sku_info, &threshold); in tegra114_init_speedo_data() 91 if (cpu_speedo_val < cpu_process_speedos[threshold][i]) in tegra114_init_speedo_data() 96 if (soc_speedo_val < soc_process_speedos[threshold][i]) in tegra114_init_speedo_data() 33 rev_sku_to_speedo_ids(struct tegra_sku_info *sku_info, int *threshold) rev_sku_to_speedo_ids() argument
|
/kernel/linux/linux-6.6/drivers/soc/tegra/fuse/ |
H A D | speedo-tegra124.c | 51 int *threshold) in rev_sku_to_speedo_ids() 59 *threshold = THRESHOLD_INDEX_0; in rev_sku_to_speedo_ids() 77 *threshold = THRESHOLD_INDEX_0; in rev_sku_to_speedo_ids() 85 *threshold = THRESHOLD_INDEX_1; in rev_sku_to_speedo_ids() 93 *threshold = THRESHOLD_INDEX_1; in rev_sku_to_speedo_ids() 104 int i, threshold, soc_speedo_0_value; in tegra124_init_speedo_data() local 124 rev_sku_to_speedo_ids(sku_info, &threshold); in tegra124_init_speedo_data() 130 gpu_process_speedos[threshold][i]) in tegra124_init_speedo_data() 136 cpu_process_speedos[threshold][i]) in tegra124_init_speedo_data() 142 soc_process_speedos[threshold][ in tegra124_init_speedo_data() 50 rev_sku_to_speedo_ids(struct tegra_sku_info *sku_info, int *threshold) rev_sku_to_speedo_ids() argument [all...] |
H A D | speedo-tegra114.c | 34 int *threshold) in rev_sku_to_speedo_ids() 47 *threshold = THRESHOLD_INDEX_0; in rev_sku_to_speedo_ids() 54 *threshold = THRESHOLD_INDEX_1; in rev_sku_to_speedo_ids() 61 *threshold = THRESHOLD_INDEX_0; in rev_sku_to_speedo_ids() 77 int threshold; in tegra114_init_speedo_data() local 85 rev_sku_to_speedo_ids(sku_info, &threshold); in tegra114_init_speedo_data() 91 if (cpu_speedo_val < cpu_process_speedos[threshold][i]) in tegra114_init_speedo_data() 96 if (soc_speedo_val < soc_process_speedos[threshold][i]) in tegra114_init_speedo_data() 33 rev_sku_to_speedo_ids(struct tegra_sku_info *sku_info, int *threshold) rev_sku_to_speedo_ids() argument
|
/kernel/linux/linux-5.10/drivers/cpuidle/governors/ |
H A D | ladder.c | 32 } threshold; member 89 last_residency > last_state->threshold.promotion_time_ns && in ladder_select_state() 93 if (last_state->stats.promotion_count >= last_state->threshold.promotion_count) { in ladder_select_state() 114 last_residency < last_state->threshold.demotion_time_ns) { in ladder_select_state() 117 if (last_state->stats.demotion_count >= last_state->threshold.demotion_count) { in ladder_select_state() 150 lstate->threshold.promotion_count = PROMOTION_COUNT; in ladder_enable_device() 151 lstate->threshold.demotion_count = DEMOTION_COUNT; in ladder_enable_device() 154 lstate->threshold.promotion_time_ns = state->exit_latency_ns; in ladder_enable_device() 156 lstate->threshold.demotion_time_ns = state->exit_latency_ns; in ladder_enable_device()
|
/kernel/linux/linux-5.10/lib/zstd/ |
H A D | entropy_common.c | 66 int threshold; in FSE_readNCount() local 82 threshold = 1 << nbBits; in FSE_readNCount() 118 int const max = (2 * threshold - 1) - remaining; in FSE_readNCount() 121 if ((bitStream & (threshold - 1)) < (U32)max) { in FSE_readNCount() 122 count = bitStream & (threshold - 1); in FSE_readNCount() 125 count = bitStream & (2 * threshold - 1); in FSE_readNCount() 126 if (count >= threshold) in FSE_readNCount() 135 while (remaining < threshold) { in FSE_readNCount() 137 threshold >>= 1; in FSE_readNCount()
|
/kernel/linux/linux-6.6/drivers/cpuidle/governors/ |
H A D | ladder.c | 32 } threshold; member 89 last_residency > last_state->threshold.promotion_time_ns && in ladder_select_state() 93 if (last_state->stats.promotion_count >= last_state->threshold.promotion_count) { in ladder_select_state() 114 last_residency < last_state->threshold.demotion_time_ns) { in ladder_select_state() 117 if (last_state->stats.demotion_count >= last_state->threshold.demotion_count) { in ladder_select_state() 150 lstate->threshold.promotion_count = PROMOTION_COUNT; in ladder_enable_device() 151 lstate->threshold.demotion_count = DEMOTION_COUNT; in ladder_enable_device() 154 lstate->threshold.promotion_time_ns = state->exit_latency_ns; in ladder_enable_device() 156 lstate->threshold.demotion_time_ns = state->exit_latency_ns; in ladder_enable_device()
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/anr/anr_1.0/ |
H A D | ia_css_anr.host.c | 40 to->threshold = from->threshold; in ia_css_anr_encode() 51 "anr_threshold", anr->threshold); in ia_css_anr_dump() 60 "config.threshold=%d\n", in ia_css_anr_debug_dtrace() 61 config->threshold); in ia_css_anr_debug_dtrace()
|
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/isp/kernels/anr/anr_1.0/ |
H A D | ia_css_anr.host.c | 40 to->threshold = from->threshold; in ia_css_anr_encode() 51 "anr_threshold", anr->threshold); in ia_css_anr_dump() 60 "config.threshold=%d\n", in ia_css_anr_debug_dtrace() 61 config->threshold); in ia_css_anr_debug_dtrace()
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
H A D | xilinx-xadc-events.c | 34 /* Temperature threshold error, we don't handle this yet */ in xadc_handle_event() 52 * lower threshold event. Userspace will have to check the in xadc_handle_event() 171 *val = xadc->threshold[offset]; in xadc_read_event_value() 203 xadc->threshold[offset] = val; in xadc_write_event_value() 217 * threshold. in xadc_write_event_value() 222 * Since we store the hysteresis as relative (to the threshold) in xadc_write_event_value() 225 * threshold changes. in xadc_write_event_value() 227 if (xadc->threshold[offset] < xadc->temp_hysteresis) in xadc_write_event_value() 228 xadc->threshold[offset + 4] = 0; in xadc_write_event_value() 230 xadc->threshold[offse in xadc_write_event_value() [all...] |
/kernel/linux/linux-6.6/drivers/iio/adc/ |
H A D | xilinx-xadc-events.c | 34 /* Temperature threshold error, we don't handle this yet */ in xadc_handle_event() 52 * lower threshold event. Userspace will have to check the in xadc_handle_event() 168 *val = xadc->threshold[offset]; in xadc_read_event_value() 202 xadc->threshold[offset] = val; in xadc_write_event_value() 216 * threshold. in xadc_write_event_value() 221 * Since we store the hysteresis as relative (to the threshold) in xadc_write_event_value() 224 * threshold changes. in xadc_write_event_value() 226 if (xadc->threshold[offset] < xadc->temp_hysteresis) in xadc_write_event_value() 227 xadc->threshold[offset + 4] = 0; in xadc_write_event_value() 229 xadc->threshold[offse in xadc_write_event_value() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/host1x/hw/ |
H A D | channel_hw.c | 50 static void submit_wait(struct host1x_job *job, u32 id, u32 threshold, in submit_wait() argument 75 threshold, in submit_wait() 92 threshold, in submit_wait() 104 host1x_class_host_wait_syncpt(id, threshold) in submit_wait() 120 u32 threshold; in submit_gathers() local 127 threshold = job_syncpt_base + cmd->wait.threshold; in submit_gathers() 129 threshold = cmd->wait.threshold; in submit_gathers() 131 submit_wait(job, cmd->wait.id, threshold, cm in submit_gathers() [all...] |
/kernel/linux/linux-6.6/lib/zstd/common/ |
H A D | entropy_common.c | 67 int threshold; in FSE_readNCount_body() local 95 threshold = 1<<nbBits; in FSE_readNCount_body() 149 int const max = (2*threshold-1) - remaining; in FSE_readNCount_body() 152 if ((bitStream & (threshold-1)) < (U32)max) { in FSE_readNCount_body() 153 count = bitStream & (threshold-1); in FSE_readNCount_body() 156 count = bitStream & (2*threshold-1); in FSE_readNCount_body() 157 if (count >= threshold) count -= max; in FSE_readNCount_body() 174 assert(threshold > 1); in FSE_readNCount_body() 175 if (remaining < threshold) { in FSE_readNCount_body() 177 * threshold updat in FSE_readNCount_body() [all...] |
/kernel/linux/linux-5.10/drivers/md/persistent-data/ |
H A D | dm-space-map-metadata.c | 21 * An edge triggered threshold. 23 struct threshold { struct 26 dm_block_t threshold; member 32 static void threshold_init(struct threshold *t) in threshold_init() 38 static void set_threshold(struct threshold *t, dm_block_t value, in set_threshold() 42 t->threshold = value; in set_threshold() 47 static bool below_threshold(struct threshold *t, dm_block_t value) in below_threshold() 49 return t->threshold_set && value <= t->threshold; in below_threshold() 52 static bool threshold_already_triggered(struct threshold *t) in threshold_already_triggered() 57 static void check_threshold(struct threshold * 178 struct threshold threshold; global() member 519 sm_metadata_register_threshold_callback(struct dm_space_map *sm, dm_block_t threshold, dm_sm_threshold_fn fn, void *context) sm_metadata_register_threshold_callback() argument [all...] |
/kernel/linux/linux-6.6/drivers/md/persistent-data/ |
H A D | dm-space-map-metadata.c | 22 * An edge triggered threshold. 24 struct threshold { struct 27 dm_block_t threshold; member 33 static void threshold_init(struct threshold *t) in threshold_init() 39 static void set_threshold(struct threshold *t, dm_block_t value, in set_threshold() 43 t->threshold = value; in set_threshold() 48 static bool below_threshold(struct threshold *t, dm_block_t value) in below_threshold() 50 return t->threshold_set && value <= t->threshold; in below_threshold() 53 static bool threshold_already_triggered(struct threshold *t) in threshold_already_triggered() 58 static void check_threshold(struct threshold * 180 struct threshold threshold; global() member 524 sm_metadata_register_threshold_callback(struct dm_space_map *sm, dm_block_t threshold, dm_sm_threshold_fn fn, void *context) sm_metadata_register_threshold_callback() argument [all...] |
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
H A D | cache.c | 386 #define FLUSH_TLB_THRESHOLD (16*1024) /* 16 KiB minimum TLB threshold */ 393 unsigned long threshold; in parisc_setup_cache_timing() local 407 threshold = L1_CACHE_ALIGN(size * alltime / rangetime); in parisc_setup_cache_timing() 408 if (threshold > cache_info.dc_size) in parisc_setup_cache_timing() 409 threshold = cache_info.dc_size; in parisc_setup_cache_timing() 410 if (threshold) in parisc_setup_cache_timing() 411 parisc_cache_flush_threshold = threshold; in parisc_setup_cache_timing() 412 printk(KERN_INFO "Cache flush threshold set to %lu KiB\n", in parisc_setup_cache_timing() 415 /* calculate TLB flush threshold */ in parisc_setup_cache_timing() 420 threshold in parisc_setup_cache_timing() [all...] |
/kernel/linux/linux-5.10/drivers/watchdog/ |
H A D | intel_scu_watchdog.c | 110 static int watchdog_set_ipc(int soft_threshold, int threshold) in watchdog_set_ipc() argument 118 ipc_wbuf[1] = threshold; in watchdog_set_ipc() 158 /* set the timer to the threshold */ in watchdog_timer_interrupt() 159 iowrite32(watchdog_device.threshold, in watchdog_timer_interrupt() 201 watchdog_device.threshold = in intel_scu_set_heartbeat() 212 pr_debug("set_heartbeat: threshold is %x (hex)\n", in intel_scu_set_heartbeat() 213 watchdog_device.threshold); in intel_scu_set_heartbeat() 219 watchdog_device.threshold = in intel_scu_set_heartbeat() 220 watchdog_device.threshold / FREQ_ADJUSTMENT; in intel_scu_set_heartbeat() 227 /* send the threshold an in intel_scu_set_heartbeat() [all...] |
/kernel/linux/linux-5.10/drivers/nvme/host/ |
H A D | hwmon.c | 22 unsigned int threshold = sensor << NVME_TEMP_THRESH_SELECT_SHIFT; in nvme_get_temp_thresh() local 27 threshold |= NVME_TEMP_THRESH_TYPE_UNDER; in nvme_get_temp_thresh() 29 ret = nvme_get_features(ctrl, NVME_FEAT_TEMP_THRESH, threshold, NULL, 0, in nvme_get_temp_thresh() 43 unsigned int threshold = sensor << NVME_TEMP_THRESH_SELECT_SHIFT; in nvme_set_temp_thresh() local 47 threshold |= clamp_val(temp, 0, NVME_TEMP_THRESH_MASK); in nvme_set_temp_thresh() 50 threshold |= NVME_TEMP_THRESH_TYPE_UNDER; in nvme_set_temp_thresh() 52 ret = nvme_set_features(ctrl, NVME_FEAT_TEMP_THRESH, threshold, NULL, 0, in nvme_set_temp_thresh()
|
/kernel/linux/linux-6.6/drivers/nvme/host/ |
H A D | hwmon.c | 22 unsigned int threshold = sensor << NVME_TEMP_THRESH_SELECT_SHIFT; in nvme_get_temp_thresh() local 27 threshold |= NVME_TEMP_THRESH_TYPE_UNDER; in nvme_get_temp_thresh() 29 ret = nvme_get_features(ctrl, NVME_FEAT_TEMP_THRESH, threshold, NULL, 0, in nvme_get_temp_thresh() 43 unsigned int threshold = sensor << NVME_TEMP_THRESH_SELECT_SHIFT; in nvme_set_temp_thresh() local 47 threshold |= clamp_val(temp, 0, NVME_TEMP_THRESH_MASK); in nvme_set_temp_thresh() 50 threshold |= NVME_TEMP_THRESH_TYPE_UNDER; in nvme_set_temp_thresh() 52 ret = nvme_set_features(ctrl, NVME_FEAT_TEMP_THRESH, threshold, NULL, 0, in nvme_set_temp_thresh()
|
/kernel/linux/linux-5.10/drivers/gpu/host1x/hw/ |
H A D | host1x01_hardware.h | 19 unsigned indx, unsigned threshold) in host1x_class_host_wait_syncpt() 22 | host1x_uclass_wait_syncpt_thresh_f(threshold); in host1x_class_host_wait_syncpt() 26 unsigned indx, unsigned threshold) in host1x_class_host_load_syncpt_base() 29 | host1x_uclass_load_syncpt_base_value_f(threshold); in host1x_class_host_load_syncpt_base() 18 host1x_class_host_wait_syncpt( unsigned indx, unsigned threshold) host1x_class_host_wait_syncpt() argument 25 host1x_class_host_load_syncpt_base( unsigned indx, unsigned threshold) host1x_class_host_load_syncpt_base() argument
|
H A D | host1x02_hardware.h | 19 unsigned indx, unsigned threshold) in host1x_class_host_wait_syncpt() 22 | host1x_uclass_wait_syncpt_thresh_f(threshold); in host1x_class_host_wait_syncpt() 26 unsigned indx, unsigned threshold) in host1x_class_host_load_syncpt_base() 29 | host1x_uclass_load_syncpt_base_value_f(threshold); in host1x_class_host_load_syncpt_base() 18 host1x_class_host_wait_syncpt( unsigned indx, unsigned threshold) host1x_class_host_wait_syncpt() argument 25 host1x_class_host_load_syncpt_base( unsigned indx, unsigned threshold) host1x_class_host_load_syncpt_base() argument
|
H A D | host1x04_hardware.h | 19 unsigned indx, unsigned threshold) in host1x_class_host_wait_syncpt() 22 | host1x_uclass_wait_syncpt_thresh_f(threshold); in host1x_class_host_wait_syncpt() 26 unsigned indx, unsigned threshold) in host1x_class_host_load_syncpt_base() 29 | host1x_uclass_load_syncpt_base_value_f(threshold); in host1x_class_host_load_syncpt_base() 18 host1x_class_host_wait_syncpt( unsigned indx, unsigned threshold) host1x_class_host_wait_syncpt() argument 25 host1x_class_host_load_syncpt_base( unsigned indx, unsigned threshold) host1x_class_host_load_syncpt_base() argument
|
H A D | host1x05_hardware.h | 19 unsigned indx, unsigned threshold) in host1x_class_host_wait_syncpt() 22 | host1x_uclass_wait_syncpt_thresh_f(threshold); in host1x_class_host_wait_syncpt() 26 unsigned indx, unsigned threshold) in host1x_class_host_load_syncpt_base() 29 | host1x_uclass_load_syncpt_base_value_f(threshold); in host1x_class_host_load_syncpt_base() 18 host1x_class_host_wait_syncpt( unsigned indx, unsigned threshold) host1x_class_host_wait_syncpt() argument 25 host1x_class_host_load_syncpt_base( unsigned indx, unsigned threshold) host1x_class_host_load_syncpt_base() argument
|