/drivers/net/fddi/skfp/ |
D | smttimer.c | 67 u_long delta = 0 ; in smt_timer_start() local 91 delta = 0 ; in smt_timer_start() 93 if (delta + tm->tm_delta > time) { in smt_timer_start() 96 delta += tm->tm_delta ; in smt_timer_start() 101 timer->tm_delta = time - delta ; in smt_timer_start() 122 u_long delta ; in timer_done() local 128 delta = hwt_read(smc) ; in timer_done() 132 if (delta >= tm->tm_delta) { in timer_done() 134 delta -= tm->tm_delta ; in timer_done() 139 tm->tm_delta -= delta ; in timer_done() [all …]
|
/drivers/net/wireless/prism54/ |
D | isl_38xx.c | 225 const s32 delta = (le32_to_cpu(cb->driver_curr_frag[queue]) - in isl38xx_in_queue() local 231 BUG_ON(delta < 0); /* driver ptr must be ahead of device ptr */ in isl38xx_in_queue() 236 BUG_ON(delta > ISL38XX_CB_MGMT_QSIZE); in isl38xx_in_queue() 240 BUG_ON(delta > ISL38XX_CB_TX_QSIZE); in isl38xx_in_queue() 241 return delta; in isl38xx_in_queue() 245 BUG_ON(delta > ISL38XX_CB_MGMT_QSIZE); in isl38xx_in_queue() 246 return ISL38XX_CB_MGMT_QSIZE - delta; in isl38xx_in_queue() 250 BUG_ON(delta > ISL38XX_CB_RX_QSIZE); in isl38xx_in_queue() 251 return ISL38XX_CB_RX_QSIZE - delta; in isl38xx_in_queue()
|
/drivers/net/ethernet/intel/e1000e/ |
D | ptp.c | 37 static int e1000e_phc_adjfreq(struct ptp_clock_info *ptp, s32 delta) in e1000e_phc_adjfreq() argument 48 if ((delta > ptp->max_adj) || (delta <= -1000000000)) in e1000e_phc_adjfreq() 51 if (delta < 0) { in e1000e_phc_adjfreq() 53 delta = -delta; in e1000e_phc_adjfreq() 66 adjustment *= delta; in e1000e_phc_adjfreq() 88 static int e1000e_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) in e1000e_phc_adjtime() argument 95 timecounter_adjtime(&adapter->tc, delta); in e1000e_phc_adjtime()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | pllnv04.c | 51 int delta, bestdelta = INT_MAX; in getMNP_single() local 108 delta = abs(calcclk - clk); in getMNP_single() 112 if (delta < bestdelta) { in getMNP_single() 113 bestdelta = delta; in getMNP_single() 118 if (delta == 0) /* except this one */ in getMNP_single() 153 int delta, bestdelta = INT_MAX; in getMNP_double() local 204 delta = abs(calcclkout - clk); in getMNP_double() 208 if (delta < bestdelta) { in getMNP_double() 209 bestdelta = delta; in getMNP_double() 216 if (delta == 0) /* except this one */ in getMNP_double()
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | eeprom.c | 278 mt7601u_set_power_rate(struct power_per_rate *rate, s8 delta, u8 value) in mt7601u_set_power_rate() argument 287 rate->bw40 = rate->bw20 + delta; in mt7601u_set_power_rate() 291 mt7601u_save_power_rate(struct mt7601u_dev *dev, s8 delta, u32 val, int i) in mt7601u_save_power_rate() argument 297 mt7601u_set_power_rate(&t->cck[0], delta, (val >> 0) & 0xff); in mt7601u_save_power_rate() 298 mt7601u_set_power_rate(&t->cck[1], delta, (val >> 8) & 0xff); in mt7601u_save_power_rate() 303 mt7601u_set_power_rate(&t->ofdm[0], delta, (val >> 16) & 0xff); in mt7601u_save_power_rate() 304 mt7601u_set_power_rate(&t->ofdm[1], delta, (val >> 24) & 0xff); in mt7601u_save_power_rate() 307 mt7601u_set_power_rate(&t->ofdm[2], delta, (val >> 0) & 0xff); in mt7601u_save_power_rate() 308 mt7601u_set_power_rate(&t->ofdm[3], delta, (val >> 8) & 0xff); in mt7601u_save_power_rate() 309 mt7601u_set_power_rate(&t->ht[0], delta, (val >> 16) & 0xff); in mt7601u_save_power_rate() [all …]
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-ptp.c | 137 static int xgbe_adjfreq(struct ptp_clock_info *info, s32 delta) in xgbe_adjfreq() argument 147 if (delta < 0) { in xgbe_adjfreq() 149 delta = -delta; in xgbe_adjfreq() 153 adjust *= delta; in xgbe_adjfreq() 168 static int xgbe_adjtime(struct ptp_clock_info *info, s64 delta) in xgbe_adjtime() argument 176 timecounter_adjtime(&pdata->tstamp_tc, delta); in xgbe_adjtime()
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_common.c | 269 u32 delta = fm10k_read_reg(hw, addr) - stat->base_l; in fm10k_read_hw_stats_32b() local 274 return delta; in fm10k_read_hw_stats_32b() 293 u64 delta; in fm10k_read_hw_stats_48b() local 304 delta = ((u64)(count_h - stat->base_h) << 32) + count_l; in fm10k_read_hw_stats_48b() 305 delta -= stat->base_l; in fm10k_read_hw_stats_48b() 307 return delta & FM10K_48_BIT_MASK; in fm10k_read_hw_stats_48b() 318 static void fm10k_update_hw_base_48b(struct fm10k_hw_stat *stat, u64 delta) in fm10k_update_hw_base_48b() argument 320 if (!delta) in fm10k_update_hw_base_48b() 324 delta += stat->base_l; in fm10k_update_hw_base_48b() 325 stat->base_l = (u32)delta; in fm10k_update_hw_base_48b() [all …]
|
/drivers/misc/ |
D | uid_sys_stats.c | 97 int64_t delta; in compute_io_bucket_stats() local 99 delta = io_curr->read_bytes + io_dead->read_bytes - in compute_io_bucket_stats() 101 io_bucket->read_bytes += delta > 0 ? delta : 0; in compute_io_bucket_stats() 102 delta = io_curr->write_bytes + io_dead->write_bytes - in compute_io_bucket_stats() 104 io_bucket->write_bytes += delta > 0 ? delta : 0; in compute_io_bucket_stats() 105 delta = io_curr->rchar + io_dead->rchar - io_last->rchar; in compute_io_bucket_stats() 106 io_bucket->rchar += delta > 0 ? delta : 0; in compute_io_bucket_stats() 107 delta = io_curr->wchar + io_dead->wchar - io_last->wchar; in compute_io_bucket_stats() 108 io_bucket->wchar += delta > 0 ? delta : 0; in compute_io_bucket_stats() 109 delta = io_curr->fsync + io_dead->fsync - io_last->fsync; in compute_io_bucket_stats() [all …]
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | en_clock.c | 120 static int mlx4_en_phc_adjfreq(struct ptp_clock_info *ptp, s32 delta) in mlx4_en_phc_adjfreq() argument 129 if (delta < 0) { in mlx4_en_phc_adjfreq() 131 delta = -delta; in mlx4_en_phc_adjfreq() 135 adj *= delta; in mlx4_en_phc_adjfreq() 153 static int mlx4_en_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) in mlx4_en_phc_adjtime() argument 160 timecounter_adjtime(&mdev->clock, delta); in mlx4_en_phc_adjtime()
|
/drivers/clocksource/ |
D | acpi_pm.c | 154 unsigned long count, delta; in verify_pmtmr_rate() local 160 delta = (value2 - value1) & ACPI_PM_MASK; in verify_pmtmr_rate() 163 if (delta < (PMTMR_EXPECTED_RATE * 19) / 20 || in verify_pmtmr_rate() 164 delta > (PMTMR_EXPECTED_RATE * 21) / 20) { in verify_pmtmr_rate() 167 100UL * delta / PMTMR_EXPECTED_RATE); in verify_pmtmr_rate()
|
D | h8300_timer8.c | 93 static void timer8_set_next(struct timer8_priv *p, unsigned long delta) in timer8_set_next() argument 99 if (delta >= 0x10000) in timer8_set_next() 102 p->tcora = delta; in timer8_set_next() 104 if (delta > now) in timer8_set_next() 105 ctrl_outw(delta, p->mapbase + TCORA); in timer8_set_next() 200 static int timer8_clock_event_next(unsigned long delta, in timer8_clock_event_next() argument 206 timer8_set_next(p, delta - 1); in timer8_clock_event_next()
|
D | cs5535-clockevt.c | 70 static void start_timer(struct cs5535_mfgpt_timer *timer, uint16_t delta) in start_timer() argument 72 cs5535_mfgpt_write(timer, MFGPT_REG_CMP2, delta); in start_timer() 92 static int mfgpt_next_event(unsigned long delta, struct clock_event_device *evt) in mfgpt_next_event() argument 94 start_timer(cs5535_event_clock, delta); in mfgpt_next_event()
|
/drivers/gpu/drm/mgag200/ |
D | mgag200_mode.c | 112 unsigned int delta, tmpdelta, permitteddelta; in mga_g200se_set_plls() local 127 delta = 0xffffffff; in mga_g200se_set_plls() 144 if (tmpdelta < delta) { in mga_g200se_set_plls() 145 delta = tmpdelta; in mga_g200se_set_plls() 166 delta = 0xFFFFFFFF; in mga_g200se_set_plls() 187 if (tmpdelta < delta) { in mga_g200se_set_plls() 188 delta = tmpdelta; in mga_g200se_set_plls() 209 if (delta > permitteddelta) { in mga_g200se_set_plls() 231 unsigned int delta, tmpdelta; in mga_g200wb_set_plls() local 241 delta = 0xffffffff; in mga_g200wb_set_plls() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | dm.c | 1627 u8 thermal_value = 0, delta, delta_lck, delta_iqk, p = 0, i = 0; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter() local 1700 delta = (thermal_value > rtldm->thermalvalue) ? in rtl8812ae_dm_txpower_tracking_callback_thermalmeter() 1712 delta, delta_lck, delta_iqk); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter() 1727 if (delta > 0 && rtldm->txpower_track_control) { in rtl8812ae_dm_txpower_tracking_callback_thermalmeter() 1731 delta = thermal_value > rtlefuse->eeprom_thermalmeter ? in rtl8812ae_dm_txpower_tracking_callback_thermalmeter() 1735 if (delta >= TXPWR_TRACK_TABLE_SIZE) in rtl8812ae_dm_txpower_tracking_callback_thermalmeter() 1736 delta = TXPWR_TRACK_TABLE_SIZE - 1; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter() 1743 delta, delta_swing_table_idx_tup_a[delta]); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter() 1747 delta_swing_table_idx_tup_a[delta]; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter() 1750 delta_swing_table_idx_tup_a[delta]; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter() [all …]
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ptp.c | 72 static int stmmac_adjust_time(struct ptp_clock_info *ptp, s64 delta) in stmmac_adjust_time() argument 81 if (delta < 0) { in stmmac_adjust_time() 83 delta = -delta; in stmmac_adjust_time() 86 quotient = div_u64_rem(delta, 1000000000ULL, &reminder); in stmmac_adjust_time()
|
/drivers/clk/ti/ |
D | clkt_dpll.c | 295 long delta; in omap2_dpll_round_rate() local 342 delta = target_rate - new_rate; in omap2_dpll_round_rate() 343 if (delta < 0) in omap2_dpll_round_rate() 346 if (delta < prev_min_delta) { in omap2_dpll_round_rate() 347 prev_min_delta = delta; in omap2_dpll_round_rate() 355 if (delta == 0) in omap2_dpll_round_rate()
|
/drivers/input/misc/ |
D | bfin_rotary.c | 55 static void report_rotary_event(struct bfin_rot *rotary, int delta) in report_rotary_event() argument 61 delta > 0 ? rotary->up_key : rotary->down_key); in report_rotary_event() 63 input_report_rel(input, rotary->rel_code, delta); in report_rotary_event() 71 int delta; in bfin_rotary_isr() local 80 delta = readl(rotary->base + CNT_COUNTER_OFF); in bfin_rotary_isr() 81 if (delta) in bfin_rotary_isr() 82 report_rotary_event(rotary, delta); in bfin_rotary_isr()
|
/drivers/net/wireless/ath/ath9k/ |
D | dfs.c | 159 int delta = max_bin[i + 1] - max_bin[i]; in ath9k_check_chirping() local 162 if (abs(delta) < BIN_DELTA_MIN || abs(delta) > BIN_DELTA_MAX) { in ath9k_check_chirping() 164 "in sample %d\n", delta, i); in ath9k_check_chirping() 169 ddelta = delta - prev_delta; in ath9k_check_chirping() 177 i, delta, ddelta); in ath9k_check_chirping() 178 prev_delta = delta; in ath9k_check_chirping()
|
/drivers/input/keyboard/ |
D | pxa930_rotary.c | 44 int ercr, delta, key; in rotary_irq() local 49 delta = ercr - r->last_ercr; in rotary_irq() 50 if (delta == 0) in rotary_irq() 56 key = (delta > 0) ? pdata->up_key : pdata->down_key; in rotary_irq() 61 input_report_rel(r->input_dev, pdata->rel_code, delta); in rotary_irq()
|
/drivers/staging/rtl8712/ |
D | osdep_service.h | 78 u32 delta; in sleep_schedulable() local 80 delta = msecs_to_jiffies(ms);/*(ms)*/ in sleep_schedulable() 82 schedule_timeout(delta); in sleep_schedulable()
|
/drivers/pps/generators/ |
D | pps_gen_parport.c | 76 long lim, delta; in hrtimer_event() local 134 delta = timespec_to_ns(&dts); in hrtimer_event() 140 if (delta >= hrtimer_error) in hrtimer_event() 141 hrtimer_error = delta; in hrtimer_event() 143 hrtimer_error = (3 * hrtimer_error + delta) >> 2; in hrtimer_event()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | dm.c | 744 bool *internal_pa, u8 thermalvalue, u8 delta, in rtl92d_bandtype_5G() argument 777 if (delta > INDEX_MAPPING_NUM - 1) in rtl92d_bandtype_5G() 782 index_mapping_pa[offset][delta]; in rtl92d_bandtype_5G() 784 if (delta > INDEX_MAPPING_NUM - 1) in rtl92d_bandtype_5G() 788 index = index_mapping[offset][delta]; in rtl92d_bandtype_5G() 793 ((delta / 2) * 3 + (delta % 2)); in rtl92d_bandtype_5G() 810 u8 thermalvalue, delta, delta_lck, delta_iqk, delta_rxgain; in rtl92d_dm_txpower_tracking_callback_thermalmeter() local 941 delta = (thermalvalue > rtlefuse->eeprom_thermalmeter) ? in rtl92d_dm_txpower_tracking_callback_thermalmeter() 947 delta = (thermalvalue > rtlpriv->dm.thermalvalue) ? in rtl92d_dm_txpower_tracking_callback_thermalmeter() 951 delta = (thermalvalue > rtlefuse->eeprom_thermalmeter) ? in rtl92d_dm_txpower_tracking_callback_thermalmeter() [all …]
|
/drivers/char/ |
D | random.c | 799 long delta, delta2, delta3; in add_timer_randomness() local 816 delta = sample.jiffies - state->last_time; in add_timer_randomness() 819 delta2 = delta - state->last_delta; in add_timer_randomness() 820 state->last_delta = delta; in add_timer_randomness() 825 if (delta < 0) in add_timer_randomness() 826 delta = -delta; in add_timer_randomness() 831 if (delta > delta2) in add_timer_randomness() 832 delta = delta2; in add_timer_randomness() 833 if (delta > delta3) in add_timer_randomness() 834 delta = delta3; in add_timer_randomness() [all …]
|
/drivers/isdn/i4l/ |
D | isdn_audio.c | 408 delta; in isdn_audio_xlaw2adpcm() local 411 delta = (isdn_audio_alaw_to_s16[*in++] >> 2) - a; in isdn_audio_xlaw2adpcm() 413 delta = (isdn_audio_ulaw_to_s16[*in++] >> 2) - a; in isdn_audio_xlaw2adpcm() 414 if (delta < 0) { in isdn_audio_xlaw2adpcm() 416 delta = -delta; in isdn_audio_xlaw2adpcm() 418 while (--nmax && delta > d) { in isdn_audio_xlaw2adpcm() 419 delta -= d; in isdn_audio_xlaw2adpcm()
|
/drivers/clk/qcom/ |
D | clk-rcg2.c | 420 int delta = 100000; in clk_edp_pixel_set_rate() local 435 if ((src_rate < (request - delta)) || in clk_edp_pixel_set_rate() 436 (src_rate > (request + delta))) in clk_edp_pixel_set_rate() 466 int delta = 100000; in clk_edp_pixel_determine_rate() local 485 if ((req->best_parent_rate < (request - delta)) || in clk_edp_pixel_determine_rate() 486 (req->best_parent_rate > (request + delta))) in clk_edp_pixel_determine_rate() 654 int delta = 100000; in clk_pixel_determine_rate() local 661 if ((src_rate < (request - delta)) || in clk_pixel_determine_rate() 662 (src_rate > (request + delta))) in clk_pixel_determine_rate() 680 int delta = 100000; in clk_pixel_set_rate() local [all …]
|