/drivers/infiniband/hw/qib/ |
D | qib_sd7220.c | 177 int ret, pat, tries, chn; in qib_resync_ibepb() local 182 for (tries = 0; tries < (4 * IBSD_RESYNC_TRIES); ++tries) { in qib_resync_ibepb() 189 if (ret != 0xF0 && ret != 0x55 && tries == 0) in qib_resync_ibepb() 623 int tries; in epb_trans() local 630 for (tries = EPB_TRANS_TRIES; tries; --tries) { in epb_trans() 638 if (tries > 0 && o_vp) in epb_trans() 640 return tries; in epb_trans() 662 int tries, ret; in qib_sd7220_reg_mod() local 690 for (tries = EPB_TRANS_TRIES; tries; --tries) { in qib_sd7220_reg_mod() 697 if (tries > 0) { in qib_sd7220_reg_mod() [all …]
|
/drivers/rtc/ |
D | rtc-dm355evm.c | 37 int tries = 0; in dm355evm_rtc_read_time() local 48 if (tries && time.bytes[0] == status) in dm355evm_rtc_read_time() 55 if (tries && time.bytes[1] == status) in dm355evm_rtc_read_time() 62 if (tries && time.bytes[2] == status) in dm355evm_rtc_read_time() 69 if (tries && time.bytes[3] == status) in dm355evm_rtc_read_time() 73 } while (++tries < 5); in dm355evm_rtc_read_time()
|
D | rtc-cadence.c | 157 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()
|
D | rtc-rtd119x.c | 88 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()
|
/drivers/macintosh/ |
D | windfarm_fcu_controls.c | 89 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 …]
|
/drivers/input/touchscreen/ |
D | zylonite-wm97xx.c | 90 static u16 last, tries; in wm97xx_acc_pen_down() local 99 if (tries > 5) { in wm97xx_acc_pen_down() 100 tries = 0; in wm97xx_acc_pen_down() 106 tries++; in wm97xx_acc_pen_down() 127 tries = 0; in wm97xx_acc_pen_down()
|
D | mainstone-wm97xx.c | 60 static u16 last, tries; variable 132 if (tries > 5) { in wm97xx_acc_pen_down() 133 tries = 0; in wm97xx_acc_pen_down() 139 tries++; in wm97xx_acc_pen_down() 160 tries = 0; in wm97xx_acc_pen_down()
|
D | cyttsp_core.c | 82 int tries; in ttsp_read_block_data() local 84 for (tries = 0; tries < CY_NUM_RETRY; tries++) { in ttsp_read_block_data() 100 int tries; in ttsp_write_block_data() local 102 for (tries = 0; tries < CY_NUM_RETRY; tries++) { in ttsp_write_block_data()
|
/drivers/char/hw_random/ |
D | arm_smccc_trng.c | 67 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()
|
/drivers/input/joystick/ |
D | grip_mp.c | 322 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()
|
/drivers/ata/ |
D | pata_hpt3x2n.c | 388 int tries; in hpt3xn_calibrate_dpll() local 390 for (tries = 0; tries < 0x5000; tries++) { in hpt3xn_calibrate_dpll() 395 for (tries = 0; tries < 0x1000; tries++) { in hpt3xn_calibrate_dpll()
|
/drivers/net/ethernet/sun/ |
D | sunqe.c | 65 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 …]
|
/drivers/i2c/busses/ |
D | i2c-octeon-core.h | 141 int tries = 1000; in octeon_i2c_reg_write() local 147 if (--tries < 0) in octeon_i2c_reg_write() 169 int tries = 1000; in octeon_i2c_reg_read() local 175 if (--tries < 0) { in octeon_i2c_reg_read()
|
/drivers/mtd/ubi/ |
D | eba.c | 905 int err, idx = vol_id2idx(ubi, vol_id), tries; in recover_peb() local 913 for (tries = 0; tries <= UBI_IO_RETRIES; tries++) { in recover_peb() 1019 int err, pnum, tries, vol_id = vol->vol_id; in ubi_eba_write_leb() local 1071 for (tries = 0; tries <= UBI_IO_RETRIES; tries++) { in ubi_eba_write_leb() 1122 int err, tries, data_size = len, vol_id = vol->vol_id; in ubi_eba_write_leb_st() local 1160 for (tries = 0; tries <= UBI_IO_RETRIES; tries++) { in ubi_eba_write_leb_st() 1200 int err, tries, vol_id = vol->vol_id; in ubi_eba_atomic_leb_change() local 1244 for (tries = 0; tries <= UBI_IO_RETRIES; tries++) { in ubi_eba_atomic_leb_change()
|
/drivers/gpu/drm/radeon/ |
D | radeon_sa.c | 249 unsigned *tries) in radeon_sa_bo_next_hole() argument 283 if (tries[i] > 2) { in radeon_sa_bo_next_hole() 301 ++tries[best_bo->fence->ring]; in radeon_sa_bo_next_hole() 318 unsigned tries[RADEON_NUM_RINGS]; in radeon_sa_bo_new() local 337 tries[i] = 0; in radeon_sa_bo_new() 350 } while (radeon_sa_bo_next_hole(sa_manager, fences, tries)); in radeon_sa_bo_new()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_sa.c | 208 unsigned *tries) in amdgpu_sa_bo_next_hole() argument 243 if (tries[i] > 2) { in amdgpu_sa_bo_next_hole() 264 ++tries[idx]; in amdgpu_sa_bo_next_hole() 280 unsigned tries[AMDGPU_SA_NUM_FENCE_LISTS]; in amdgpu_sa_bo_new() local 302 tries[i] = 0; in amdgpu_sa_bo_new() 314 } while (amdgpu_sa_bo_next_hole(sa_manager, fences, tries)); in amdgpu_sa_bo_new()
|
D | atombios_dp.c | 497 u8 tries; member 612 dp_info->tries = 0; in amdgpu_atombios_dp_link_train_cr() 638 ++dp_info->tries; in amdgpu_atombios_dp_link_train_cr() 639 if (dp_info->tries == 5) { in amdgpu_atombios_dp_link_train_cr() 644 dp_info->tries = 0; in amdgpu_atombios_dp_link_train_cr() 677 dp_info->tries = 0; in amdgpu_atombios_dp_link_train_ce() 694 if (dp_info->tries > 5) { in amdgpu_atombios_dp_link_train_ce() 704 dp_info->tries++; in amdgpu_atombios_dp_link_train_ce()
|
/drivers/w1/slaves/ |
D | w1_ds2430.c | 69 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()
|
D | w1_ds2431.c | 68 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()
|
D | w1_ds2805.c | 65 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()
|
/drivers/input/mouse/ |
D | cyapa_gen3.c | 652 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 …]
|
/drivers/bluetooth/ |
D | btmrvl_sdio.c | 428 unsigned int tries; in btmrvl_sdio_poll_card_status() local 432 for (tries = 0; tries < MAX_POLL_TRIES * 1000; tries++) { in btmrvl_sdio_poll_card_status() 454 int tries, ret; in btmrvl_sdio_verify_fw_download() local 457 for (tries = 0; tries < pollnum; tries++) { in btmrvl_sdio_verify_fw_download() 576 unsigned int tries, offset; in btmrvl_sdio_download_fw_w_helper() local 624 for (tries = 0; tries < MAX_POLL_TRIES; tries++) { in btmrvl_sdio_download_fw_w_helper() 1297 int ret, tries; in btmrvl_sdio_rdwr_firmware() local 1308 for (tries = 0; tries < MAX_POLL_TRIES; tries++) { in btmrvl_sdio_rdwr_firmware()
|
/drivers/net/ethernet/freescale/ |
D | fec_mpc52xx_phy.c | 32 int tries = 3; in mpc52xx_fec_mdio_transfer() local 41 while (!(in_be32(&fec->ievent) & FEC_IEVENT_MII) && --tries) in mpc52xx_fec_mdio_transfer() 44 if (!tries) in mpc52xx_fec_mdio_transfer()
|
/drivers/iio/humidity/ |
D | si7005.c | 41 int tries = 50; in si7005_read_measurement() local 52 while (tries-- > 0) { in si7005_read_measurement() 60 if (tries < 0) { in si7005_read_measurement()
|
/drivers/regulator/ |
D | tps65090-regulator.c | 135 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()
|