Home
last modified time | relevance | path

Searched refs:tries (Results 1 – 25 of 275) sorted by relevance

1234567891011

/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_clock.c45 u32 delta_us, tries; in measure_clock() local
48 tries = MEASURE_CLOCK_RETRIES; in measure_clock()
59 } while (delta_us > MEASURE_CLOCK_DELTA_THRESHOLD_US && --tries); in measure_clock()
61 if (!tries) { in measure_clock()
68 tries = MEASURE_CLOCK_RETRIES; in measure_clock()
78 } while (delta_us > MEASURE_CLOCK_DELTA_THRESHOLD_US && --tries); in measure_clock()
80 if (!tries) { in measure_clock()
/linux/arch/arm/mach-hisi/
H A Dplatmcpm.c194 unsigned int data, tries, count; in hip04_cpu_kill() local
204 for (tries = 0; tries < count; tries++) { in hip04_cpu_kill()
216 if (tries >= count) in hip04_cpu_kill()
221 for (tries = 0; tries < count; tries++) { in hip04_cpu_kill()
227 if (tries >= count) in hip04_cpu_kill()
/linux/drivers/char/hw_random/
H A Darm_smccc_trng.c67 int tries = 0; in smccc_trng_read() local
79 tries = 0; in smccc_trng_read()
84 tries++; in smccc_trng_read()
85 if (tries >= SMCCC_TRNG_MAX_TRIES) in smccc_trng_read()
/linux/drivers/macintosh/
H A Dwindfarm_fcu_controls.c89 int tries, nr, nw; in wf_fcu_read_reg() local
94 tries = 0; in wf_fcu_read_reg()
97 if (nw > 0 || (nw < 0 && nw != -EIO) || tries >= 100) in wf_fcu_read_reg()
100 ++tries; in wf_fcu_read_reg()
107 tries = 0; in wf_fcu_read_reg()
110 if (nr > 0 || (nr < 0 && nr != -ENODEV) || tries >= 100) in wf_fcu_read_reg()
113 ++tries; in wf_fcu_read_reg()
125 int tries, nw; in wf_fcu_write_reg() local
131 tries = 0; in wf_fcu_write_reg()
134 if (nw > 0 || (nw < 0 && nw != -EIO) || tries >= 100) in wf_fcu_write_reg()
[all …]
/linux/drivers/input/touchscreen/
H A Dmainstone-wm97xx.c119 static u16 last, tries; in wm97xx_acc_pen_down() local
128 if (tries > 5) { in wm97xx_acc_pen_down()
129 tries = 0; in wm97xx_acc_pen_down()
135 tries++; in wm97xx_acc_pen_down()
156 tries = 0; in wm97xx_acc_pen_down()
/linux/drivers/rtc/
H A Drtc-cadence.c157 int tries; in cdns_rtc_set_time() local
170 for (tries = 0; tries < CDNS_RTC_MAX_REGS_TRIES; tries++) { in cdns_rtc_set_time()
221 int tries; in cdns_rtc_set_alarm() local
231 for (tries = 0; tries < CDNS_RTC_MAX_REGS_TRIES; tries++) { in cdns_rtc_set_alarm()
H A Drtc-rtd119x.c88 int tries = 0; in rtd119x_rtc_read_time() local
97 tries++; in rtd119x_rtc_read_time()
102 if (tries >= 3) in rtd119x_rtc_read_time()
105 if (tries > 1) in rtd119x_rtc_read_time()
106 dev_dbg(dev, "%s: needed %i tries\n", __func__, tries); in rtd119x_rtc_read_time()
/linux/drivers/input/joystick/
H A Dgrip_mp.c322 int flags, tries = 0, bads = 0; in dig_mode_start() local
333 while (tries < 64 && bads < 8) { /* Reset multiport and try getting a packet */ in dig_mode_start()
341 tries++; in dig_mode_start()
479 int dig_mode, initialized = 0, tries = 0; in multiport_init() local
483 while (!dig_mode && tries < 4) { in multiport_init()
485 tries++; in multiport_init()
496 for (tries = 0; tries < 4096; tries++) { in multiport_init()
/linux/drivers/ata/
H A Dpata_hpt3x2n.c383 int tries; in hpt3xn_calibrate_dpll() local
385 for (tries = 0; tries < 0x5000; tries++) { in hpt3xn_calibrate_dpll()
390 for (tries = 0; tries < 0x1000; tries++) { in hpt3xn_calibrate_dpll()
/linux/arch/arm/mach-versatile/
H A Dtc2_pm.c126 unsigned tries; in tc2_pm_wait_for_powerdown() local
131 for (tries = 0; tries < TIMEOUT_MSEC / POLL_MSEC; ++tries) { in tc2_pm_wait_for_powerdown()
/linux/drivers/net/ethernet/sun/
H A Dsunqe.c65 int tries = QEC_RESET_TRIES; in qec_global_reset() local
68 while (--tries) { in qec_global_reset()
76 if (tries) in qec_global_reset()
89 int tries; in qe_stop() local
93 tries = MACE_RESET_RETRIES; in qe_stop()
94 while (--tries) { in qe_stop()
102 if (!tries) { in qe_stop()
108 tries = QE_RESET_RETRIES; in qe_stop()
109 while (--tries) { in qe_stop()
117 if (!tries) { in qe_stop()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_suballoc.c228 unsigned int *tries) in drm_suballoc_next_hole() argument
264 if (tries[i] > 2) in drm_suballoc_next_hole()
282 ++tries[best_idx]; in drm_suballoc_next_hole()
319 unsigned int tries[DRM_SUBALLOC_MAX_QUEUES]; in drm_suballoc_new() local
343 tries[i] = 0; in drm_suballoc_new()
355 } while (drm_suballoc_next_hole(sa_manager, fences, tries)); in drm_suballoc_new()
/linux/drivers/w1/slaves/
H A Dw1_ds2430.c69 int tries = W1_F14_READ_RETRIES; in w1_f14_readblock() local
89 } while (--tries); in w1_f14_readblock()
147 int tries = W1_F14_READ_RETRIES; in w1_f14_write() local
177 if (--tries) in w1_f14_write()
H A Dw1_ds2805.c65 int tries = W1_F0D_READ_RETRIES; in w1_f0d_readblock() local
86 } while (--tries); in w1_f0d_readblock()
146 int tries = W1_F0D_READ_RETRIES; in w1_f0d_write() local
174 if (--tries) in w1_f0d_write()
H A Dw1_ds2431.c68 int tries = W1_F2D_READ_RETRIES; in w1_f2d_readblock() local
89 } while (--tries); in w1_f2d_readblock()
147 int tries = W1_F2D_READ_RETRIES; in w1_f2d_write() local
176 if (--tries) in w1_f2d_write()
/linux/drivers/mtd/ubi/
H A Deba.c901 int err, idx = vol_id2idx(ubi, vol_id), tries; in recover_peb() local
909 for (tries = 0; tries <= UBI_IO_RETRIES; tries++) { in recover_peb()
1015 int err, pnum, tries, vol_id = vol->vol_id; in ubi_eba_write_leb() local
1067 for (tries = 0; tries <= UBI_IO_RETRIES; tries++) { in ubi_eba_write_leb()
1118 int err, tries, data_size = len, vol_id = vol->vol_id; in ubi_eba_write_leb_st() local
1156 for (tries = 0; tries <= UBI_IO_RETRIES; tries++) { in ubi_eba_write_leb_st()
1196 int err, tries, vol_id = vol->vol_id; in ubi_eba_atomic_leb_change() local
1240 for (tries = 0; tries <= UBI_IO_RETRIES; tries++) { in ubi_eba_atomic_leb_change()
/linux/drivers/input/mouse/
H A Dcyapa_gen3.c652 int tries; in cyapa_gen3_write_fw_block() local
672 tries = 11; /* Programming for one block can take about 100ms. */ in cyapa_gen3_write_fw_block()
681 } while ((status[REG_BL_STATUS] & BL_STATUS_BUSY) && --tries); in cyapa_gen3_write_fw_block()
804 int tries; in cyapa_gen3_show_baseline() local
827 tries = 3; /* Try for 30 to 60 ms */ in cyapa_gen3_show_baseline()
839 } while (--tries); in cyapa_gen3_show_baseline()
841 if (tries == 0) { in cyapa_gen3_show_baseline()
912 int tries; in cyapa_gen3_set_power_mode() local
920 tries = SET_POWER_MODE_TRIES; in cyapa_gen3_set_power_mode()
921 while (tries--) { in cyapa_gen3_set_power_mode()
[all …]
/linux/drivers/i2c/busses/
H A Di2c-octeon-core.h165 int tries = 1000; in octeon_i2c_reg_write() local
171 if (--tries < 0) in octeon_i2c_reg_write()
193 int tries = 1000; in octeon_i2c_reg_read() local
199 if (--tries < 0) { in octeon_i2c_reg_read()
/linux/tools/testing/selftests/rcutorture/bin/
H A Dkvm-remote.sh163 tries=0
166 …echo Unable to download $T/binres.tgz to system $i, waiting and then retrying. $tries prior retri…
172 if test "$tries" > 5
178 tries=$((tries+1))
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfd_array.c303 int tries; in check_fd_array_cnt__referenced_btfs() local
330 for (tries = 100; tries >= 0; tries--) { in check_fd_array_cnt__referenced_btfs()
336 if (tries) in check_fd_array_cnt__referenced_btfs()
/linux/drivers/net/ethernet/freescale/
H A Dfec_mpc52xx_phy.c34 int tries = 3; in mpc52xx_fec_mdio_transfer() local
43 while (!(in_be32(&fec->ievent) & FEC_IEVENT_MII) && --tries) in mpc52xx_fec_mdio_transfer()
46 if (!tries) in mpc52xx_fec_mdio_transfer()
/linux/sound/firewire/
H A Dlib.c38 int generation, rcode, tries = 0; in snd_fw_transaction() local
57 if (rcode_is_permanent_error(rcode) || ++tries >= 3) { in snd_fw_transaction()
/linux/drivers/regulator/
H A Dtps65090-regulator.c135 int ret, tries; in tps65090_fet_enable() local
141 tries = 0; in tps65090_fet_enable()
146 if (ret != -ENOTRECOVERABLE || tries == MAX_FET_ENABLE_TRIES) in tps65090_fet_enable()
155 tries++; in tps65090_fet_enable()
158 if (tries) in tps65090_fet_enable()
160 rdev->desc->enable_reg, tries); in tps65090_fet_enable()
/linux/drivers/iio/humidity/
H A Dsi7005.c41 int tries = 50; in si7005_read_measurement() local
52 while (tries-- > 0) { in si7005_read_measurement()
60 if (tries < 0) { in si7005_read_measurement()
/linux/drivers/tty/hvc/
H A Dhvsi_lib.c183 unsigned int tries; in hvsilib_get_chars() local
200 for (tries = 1; count && tries < 2; tries++) { in hvsilib_get_chars()
223 tries--; in hvsilib_get_chars()

1234567891011