/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 691 for (tries = EPB_TRANS_TRIES; tries; --tries) { in qib_sd7220_reg_mod() 698 if (tries > 0) { in qib_sd7220_reg_mod() [all …]
|
/drivers/rtc/ |
D | rtc-dm355evm.c | 41 int tries = 0; in dm355evm_rtc_read_time() local 52 if (tries && time.bytes[0] == status) in dm355evm_rtc_read_time() 59 if (tries && time.bytes[1] == status) in dm355evm_rtc_read_time() 66 if (tries && time.bytes[2] == status) in dm355evm_rtc_read_time() 73 if (tries && time.bytes[3] == status) in dm355evm_rtc_read_time() 77 } while (++tries < 5); in dm355evm_rtc_read_time()
|
D | rtc-rtd119x.c | 89 int tries = 0; in rtd119x_rtc_read_time() local 98 tries++; in rtd119x_rtc_read_time() 103 if (tries >= 3) in rtd119x_rtc_read_time() 106 if (tries > 1) in rtd119x_rtc_read_time() 107 dev_dbg(dev, "%s: needed %i tries\n", __func__, tries); in rtd119x_rtc_read_time()
|
/drivers/macintosh/ |
D | windfarm_fcu_controls.c | 90 int tries, nr, nw; in wf_fcu_read_reg() local 95 tries = 0; in wf_fcu_read_reg() 98 if (nw > 0 || (nw < 0 && nw != -EIO) || tries >= 100) in wf_fcu_read_reg() 101 ++tries; in wf_fcu_read_reg() 108 tries = 0; in wf_fcu_read_reg() 111 if (nr > 0 || (nr < 0 && nr != -ENODEV) || tries >= 100) in wf_fcu_read_reg() 114 ++tries; in wf_fcu_read_reg() 126 int tries, nw; in wf_fcu_write_reg() local 132 tries = 0; in wf_fcu_write_reg() 135 if (nw > 0 || (nw < 0 && nw != -EIO) || tries >= 100) in wf_fcu_write_reg() [all …]
|
/drivers/input/touchscreen/ |
D | zylonite-wm97xx.c | 94 static u16 last, tries; in wm97xx_acc_pen_down() local 103 if (tries > 5) { in wm97xx_acc_pen_down() 104 tries = 0; in wm97xx_acc_pen_down() 110 tries++; in wm97xx_acc_pen_down() 131 tries = 0; in wm97xx_acc_pen_down()
|
D | mainstone-wm97xx.c | 65 static u16 last, tries; variable 137 if (tries > 5) { in wm97xx_acc_pen_down() 138 tries = 0; in wm97xx_acc_pen_down() 144 tries++; in wm97xx_acc_pen_down() 165 tries = 0; in wm97xx_acc_pen_down()
|
D | cyttsp_core.c | 88 int tries; in ttsp_read_block_data() local 90 for (tries = 0; tries < CY_NUM_RETRY; tries++) { in ttsp_read_block_data() 106 int tries; in ttsp_write_block_data() local 108 for (tries = 0; tries < CY_NUM_RETRY; tries++) { in ttsp_write_block_data()
|
/drivers/input/joystick/ |
D | grip_mp.c | 321 int flags, tries = 0, bads = 0; in dig_mode_start() local 332 while (tries < 64 && bads < 8) { /* Reset multiport and try getting a packet */ in dig_mode_start() 340 tries++; in dig_mode_start() 478 int dig_mode, initialized = 0, tries = 0; in multiport_init() local 482 while (!dig_mode && tries < 4) { in multiport_init() 484 tries++; in multiport_init() 495 for (tries = 0; tries < 4096; tries++) { in multiport_init()
|
/drivers/ata/ |
D | pata_hpt3x2n.c | 387 int tries; in hpt3xn_calibrate_dpll() local 389 for (tries = 0; tries < 0x5000; tries++) { in hpt3xn_calibrate_dpll() 394 for (tries = 0; tries < 0x1000; tries++) { in hpt3xn_calibrate_dpll()
|
/drivers/gpu/drm/i915/ |
D | intel_dp_link_training.c | 248 int tries; in intel_dp_link_training_channel_equalization() local 263 for (tries = 0; tries < 5; tries++) { in intel_dp_link_training_channel_equalization() 297 if (tries == 5) { in intel_dp_link_training_channel_equalization()
|
/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/net/ethernet/sun/ |
D | sunqe.c | 64 int tries = QEC_RESET_TRIES; in qec_global_reset() local 67 while (--tries) { in qec_global_reset() 75 if (tries) in qec_global_reset() 88 int tries; in qe_stop() local 92 tries = MACE_RESET_RETRIES; in qe_stop() 93 while (--tries) { in qe_stop() 101 if (!tries) { in qe_stop() 107 tries = QE_RESET_RETRIES; in qe_stop() 108 while (--tries) { in qe_stop() 116 if (!tries) { in qe_stop() [all …]
|
/drivers/mtd/ubi/ |
D | eba.c | 902 int err, idx = vol_id2idx(ubi, vol_id), tries; in recover_peb() local 910 for (tries = 0; tries <= UBI_IO_RETRIES; tries++) { in recover_peb() 1007 int err, pnum, tries, vol_id = vol->vol_id; in ubi_eba_write_leb() local 1059 for (tries = 0; tries <= UBI_IO_RETRIES; tries++) { in ubi_eba_write_leb() 1110 int err, tries, data_size = len, vol_id = vol->vol_id; in ubi_eba_write_leb_st() local 1148 for (tries = 0; tries <= UBI_IO_RETRIES; tries++) { in ubi_eba_write_leb_st() 1188 int err, tries, vol_id = vol->vol_id; in ubi_eba_atomic_leb_change() local 1232 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/input/mouse/ |
D | cyapa_gen3.c | 695 int tries; in cyapa_gen3_write_fw_block() local 715 tries = 11; /* Programming for one block can take about 100ms. */ in cyapa_gen3_write_fw_block() 724 } while ((status[REG_BL_STATUS] & BL_STATUS_BUSY) && --tries); in cyapa_gen3_write_fw_block() 847 int tries; in cyapa_gen3_show_baseline() local 870 tries = 3; /* Try for 30 to 60 ms */ in cyapa_gen3_show_baseline() 882 } while (--tries); in cyapa_gen3_show_baseline() 884 if (tries == 0) { in cyapa_gen3_show_baseline() 955 int tries; in cyapa_gen3_set_power_mode() local 963 tries = SET_POWER_MODE_TRIES; in cyapa_gen3_set_power_mode() 964 while (tries--) { in cyapa_gen3_set_power_mode() [all …]
|
/drivers/w1/slaves/ |
D | w1_ds2805.c | 67 int tries = W1_F0D_READ_RETRIES; in w1_f0d_readblock() local 88 } while (--tries); in w1_f0d_readblock() 148 int tries = W1_F0D_READ_RETRIES; in w1_f0d_write() local 176 if (--tries) in w1_f0d_write()
|
D | w1_ds2431.c | 70 int tries = W1_F2D_READ_RETRIES; in w1_f2d_readblock() local 91 } while (--tries); in w1_f2d_readblock() 149 int tries = W1_F2D_READ_RETRIES; in w1_f2d_write() local 178 if (--tries) in w1_f2d_write()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_sa.c | 248 unsigned *tries) in amdgpu_sa_bo_next_hole() argument 281 if (tries[i] > 2) { in amdgpu_sa_bo_next_hole() 302 ++tries[idx]; in amdgpu_sa_bo_next_hole() 318 unsigned tries[AMDGPU_SA_NUM_FENCE_LISTS]; in amdgpu_sa_bo_new() local 341 tries[i] = 0; in amdgpu_sa_bo_new() 354 } while (amdgpu_sa_bo_next_hole(sa_manager, fences, tries)); in amdgpu_sa_bo_new()
|
D | atombios_dp.c | 488 u8 tries; member 603 dp_info->tries = 0; in amdgpu_atombios_dp_link_train_cr() 629 ++dp_info->tries; in amdgpu_atombios_dp_link_train_cr() 630 if (dp_info->tries == 5) { in amdgpu_atombios_dp_link_train_cr() 635 dp_info->tries = 0; in amdgpu_atombios_dp_link_train_cr() 668 dp_info->tries = 0; in amdgpu_atombios_dp_link_train_ce() 685 if (dp_info->tries > 5) { in amdgpu_atombios_dp_link_train_ce() 695 dp_info->tries++; in amdgpu_atombios_dp_link_train_ce()
|
/drivers/bluetooth/ |
D | btmrvl_sdio.c | 400 unsigned int tries; in btmrvl_sdio_poll_card_status() local 404 for (tries = 0; tries < MAX_POLL_TRIES * 1000; tries++) { in btmrvl_sdio_poll_card_status() 426 int tries, ret; in btmrvl_sdio_verify_fw_download() local 429 for (tries = 0; tries < pollnum; tries++) { in btmrvl_sdio_verify_fw_download() 548 unsigned int tries, offset; in btmrvl_sdio_download_fw_w_helper() local 596 for (tries = 0; tries < MAX_POLL_TRIES; tries++) { in btmrvl_sdio_download_fw_w_helper() 1269 int ret, tries; in btmrvl_sdio_rdwr_firmware() local 1280 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/regulator/ |
D | tps65090-regulator.c | 145 int ret, tries; in tps65090_fet_enable() local 151 tries = 0; in tps65090_fet_enable() 156 if (ret != -ENOTRECOVERABLE || tries == MAX_FET_ENABLE_TRIES) in tps65090_fet_enable() 165 tries++; in tps65090_fet_enable() 168 if (tries) in tps65090_fet_enable() 170 rdev->desc->enable_reg, tries); in tps65090_fet_enable()
|
/drivers/iio/humidity/ |
D | si7005.c | 44 int tries = 50; in si7005_read_measurement() local 55 while (tries-- > 0) { in si7005_read_measurement() 63 if (tries < 0) { in si7005_read_measurement()
|
/drivers/tty/hvc/ |
D | hvsi_lib.c | 183 unsigned int tries, read = 0; in hvsilib_get_chars() local 199 for (tries = 1; count && tries < 2; tries++) { in hvsilib_get_chars() 222 tries--; in hvsilib_get_chars()
|
/drivers/iio/light/ |
D | vcnl4000.c | 63 int tries = 20; in vcnl4000_measure() local 75 while (tries--) { in vcnl4000_measure() 84 if (tries < 0) { in vcnl4000_measure()
|