/drivers/input/keyboard/ |
H A D | gpio_keys_polled.c | 34 int threshold; member in struct:gpio_keys_button_data 77 if (bdata->count < bdata->threshold) 179 bdata->threshold = DIV_ROUND_UP(button->debounce_interval,
|
/drivers/input/misc/ |
H A D | gpio_tilt_polled.c | 37 int threshold; member in struct:gpio_tilt_polled_dev 49 if (tdev->count < tdev->threshold) { 86 tdev->count = tdev->threshold; 154 tdev->threshold = DIV_ROUND_UP(pdata->debounce_interval,
|
/drivers/watchdog/ |
H A D | intel_scu_watchdog.h | 50 u32 threshold; member in struct:intel_scu_watchdog_dev
|
H A D | intel_scu_watchdog.c | 126 static int watchdog_set_ipc(int soft_threshold, int threshold) argument 134 ipc_wbuf[1] = threshold; 174 /* set the timer to the threshold */ 175 iowrite32(watchdog_device.threshold, 218 watchdog_device.threshold = 229 pr_debug("set_heartbeat: threshold is %x (hex)\n", 230 watchdog_device.threshold); 236 watchdog_device.threshold = 237 watchdog_device.threshold / FREQ_ADJUSTMENT; 244 /* send the threshold an [all...] |
/drivers/cpuidle/governors/ |
H A D | ladder.c | 33 } threshold; member in struct:ladder_device_state 87 last_residency = last_state->threshold.promotion_time + 1; 91 last_residency > last_state->threshold.promotion_time && 95 if (last_state->stats.promotion_count >= last_state->threshold.promotion_count) { 115 last_residency < last_state->threshold.demotion_time) { 118 if (last_state->stats.demotion_count >= last_state->threshold.demotion_count) { 150 lstate->threshold.promotion_count = PROMOTION_COUNT; 151 lstate->threshold.demotion_count = DEMOTION_COUNT; 154 lstate->threshold.promotion_time = state->exit_latency; 156 lstate->threshold [all...] |
/drivers/md/persistent-data/ |
H A D | dm-btree-remove.c | 213 unsigned threshold = 2 * merge_threshold(left) + 1; local 215 if (nr_left + nr_right < threshold) { 357 unsigned threshold = merge_threshold(left) * 4 + 1; local 362 if ((nr_left + nr_center + nr_right) < threshold)
|
/drivers/net/wireless/iwlwifi/ |
H A D | iwl-5000.c | 149 s32 threshold = (s32)CELSIUS_TO_KELVIN(CT_KILL_THRESHOLD_LEGACY) - local 152 hw_params(priv).ct_kill_threshold = threshold * volt2temp_coef;
|
H A D | iwl-agn-rx.c | 249 /* the threshold ratio of actual_ack_cnt to expected_ack_cnt in percent */ 324 int threshold = priv->plcp_delta_threshold; local 326 if (threshold == IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE) { 340 if ((delta * 100 / msecs) > threshold) { 342 "plcp health threshold %u delta %d msecs %u\n", 343 threshold, delta, msecs);
|
/drivers/media/dvb/frontends/ |
H A D | dib3000mb.c | 460 u32 dds_val, threshold = 0x800000; local 467 if (dds_val < threshold) 469 else if (dds_val == threshold) 476 if (dds_val < threshold) 478 else if (dds_val == threshold)
|
/drivers/staging/iio/cdc/ |
H A D | ad7150.c | 54 * @threshold: thresholds for simple capacitance value events 55 * @thresh_sensitivity: threshold for simple capacitance offset 57 * @mag_sensitity: threshold for magnitude of capacitance offset from 60 * adaptive threshold event occurs to when the average 74 u16 threshold[2][2]; member in struct:ad7150_chip_info 180 value = chip->threshold[rising][chan]; 298 *val = chip->threshold[rising][chan]; 325 chip->threshold[rising][chan] = val; 456 * threshold events
|
/drivers/staging/ramster/cluster/ |
H A D | heartbeat.c | 65 /* Only sets a new threshold if there are no active regions. 70 static void r2hb_dead_threshold_set(unsigned int threshold) argument 72 if (threshold > R2HB_MIN_DEAD_THRESHOLD) { 74 r2hb_dead_threshold = threshold;
|
/drivers/gpu/drm/savage/ |
H A D | savage_bci.c | 41 uint32_t threshold = dev_priv->bci_threshold_hi; local 46 if (n > dev_priv->cob_size + SAVAGE_BCI_FIFO_SIZE - threshold) 54 if ((status & mask) < threshold) 61 DRM_INFO(" status=0x%08x, threshold=0x%08x\n", status, threshold);
|
/drivers/input/mouse/ |
H A D | appletouch.c | 239 * Make the threshold a module parameter 241 static int threshold = ATP_THRESHOLD; variable 242 module_param(threshold, int, 0644); 243 MODULE_PARM_DESC(threshold, "Discard any change in data from a sensor" 339 if (xy_sensors[i] < threshold) { 364 } else if (i > 0 && (xy_sensors[i - 1] - xy_sensors[i] > threshold)) { 369 * Subtracts threshold so a high sensor that just passes the 370 * threshold won't skew the calculated absolute coordinate. 375 pcum += (xy_sensors[i] - threshold) * i; 376 psum += (xy_sensors[i] - threshold); [all...] |
/drivers/media/video/uvc/ |
H A D | uvc_driver.c | 177 * continued fraction decomposition. Using 8 and 333 for n_terms and threshold 181 unsigned int n_terms, unsigned int threshold) 194 * threshold. 201 if (an[n] >= threshold) { 180 uvc_simplify_fraction(uint32_t *numerator, uint32_t *denominator, unsigned int n_terms, unsigned int threshold) argument
|
/drivers/net/wireless/b43legacy/ |
H A D | radio.c | 821 s32 threshold; local 836 threshold = (phy->nrssi[1] - phy->nrssi[0]) * 32; 837 threshold += 20 * (phy->nrssi[0] + 1); 838 threshold /= 40; 840 threshold = phy->nrssi[1] - 5; 842 threshold = clamp_val(threshold, 0, 0x3E); 844 b43legacy_phy_write(dev, 0x0020, (((u16)threshold) << 8)
|
/drivers/net/wireless/wl1251/ |
H A D | acx.c | 363 wl1251_debug(DEBUG_ACX, "acx data pd threshold"); 371 /* FIXME: threshold value not set */ 375 wl1251_warning("failed to set pd threshold: %d", ret); 475 wl1251_debug(DEBUG_ACX, "acx rts threshold"); 483 rts->threshold = rts_threshold; 487 wl1251_warning("failed to set rts threshold: %d", ret); 669 wl1251_debug(DEBUG_ACX, "acx cca threshold"); 683 wl1251_warning("failed to set cca threshold: %d", ret); 775 int wl1251_acx_low_rssi(struct wl1251 *wl, s8 threshold, u8 weight, argument 787 rssi->threshold [all...] |
/drivers/media/radio/ |
H A D | si4713-i2c.h | 208 s32 threshold; member in struct:acomp_info
|
/drivers/net/ethernet/ibm/ehea/ |
H A D | ehea_phyp.c | 253 u64 threshold = local 267 threshold); /* R12 */
|
/drivers/net/ethernet/ibm/ |
H A D | ibmveth.h | 116 u32 threshold; member in struct:ibmveth_buff_pool
|
/drivers/net/fddi/skfp/ |
H A D | pcmplc.c | 207 static void sm_ph_lem_start(struct s_smc *smc, int np, int threshold); 1229 static void sm_ph_lem_start(struct s_smc *smc, int np, int threshold) argument 1240 outpw(PLC(np,PL_LE_THRESHOLD),threshold) ; local
|
/drivers/net/wireless/rt2x00/ |
H A D | rt2x00queue.h | 442 * @threshold: Minimum number of free entries before queue is kicked by force. 468 unsigned short threshold; member in struct:data_queue 632 * rt2x00queue_threshold - Check if the queue is below threshold 637 return rt2x00queue_available(queue) < queue->threshold;
|
/drivers/net/wireless/wl12xx/ |
H A D | acx.c | 290 * If the RTS threshold is not configured or out of range, use the 296 wl1271_debug(DEBUG_ACX, "acx rts threshold: %d", rts_threshold); 305 rts->threshold = cpu_to_le16((u16)rts_threshold); 309 wl1271_warning("failed to set rts threshold: %d", ret); 448 u32 threshold = ACX_CONN_MONIT_DISABLE_VALUE; local 462 threshold = wl->conf.conn.synch_fail_thold; 467 acx->synch_fail_thold = cpu_to_le32(threshold); 548 wl1271_debug(DEBUG_ACX, "acx cca threshold"); 562 wl1271_warning("failed to set cca threshold: %d", ret); 910 wl1271_debug(DEBUG_ACX, "acx frag threshold [all...] |
/drivers/spi/ |
H A D | spi-pxa2xx.c | 161 u32 threshold; member in struct:chip_data 671 sccr1_reg |= chip->threshold; 826 u32 *threshold) 836 /* Set the threshold (in registers) to equal the same amount of data 839 * divided by (bytes/register); the tx threshold is the inverse of 845 * Whenever burst_size (in bytes) equals bits/word, the fifo threshold 847 * The threshold can only be set to 2, 4 or 8, but not 16, because 914 *threshold = (SSCR1_RxTresh(thresh_words) & SSCR1_RFT) 1149 cr1 = chip->cr1 | chip->threshold | drv_data->int_cr1; 1356 chip->threshold 823 set_dma_burst_and_threshold(struct chip_data *chip, struct spi_device *spi, u8 bits_per_word, u32 *burst_code, u32 *threshold) argument [all...] |
/drivers/staging/comedi/drivers/ |
H A D | jr3_pci.h | 197 /* This structure shows the layout for a single threshold packet inside of a 198 * load envelope. Each load envelope can contain several threshold structures. 199 * 1. data_address contains the address of the data for that threshold. This 201 * 2. threshold is the is the value at which, if data is above or below, the 203 * 3. bit_pattern contains the bits that will be set if the threshold value is 209 s32 threshold; member in struct:thresh_struct 218 * The latched bits will not be reset once the threshold which set them is 221 * 2. number_of_xx_thresholds specify how many GE/LE threshold there are.
|
H A D | quatech_daqp_cs.c | 587 int threshold; local 654 /* Now it's time to program the FIFO threshold, basically the 661 * threshold set at half the FIFO size, we have a margin of 673 * the stop count itself as the threshold, the card interrupts 679 * interrupt response) and use that as the threshold. So, if 681 * get 1000 samples, use that as the threshold, take four 685 * samples are requested, we could set the threshold to 1500 688 * Instead, it'll set the threshold at 1266 and take 64 694 * threshold (1500 = 3 * 5^3 * 2^2) and an interrupt count (54 716 * compute the FIFO threshold (i [all...] |