/linux/drivers/hwmon/ |
H A D | pt5161l.c | 124 int ret, tries; in pt5161l_read_block_data() local 145 for (tries = 0; tries < 3; tries++) { in pt5161l_read_block_data() 156 if (tries >= 3) in pt5161l_read_block_data() 170 int ret, tries; in pt5161l_read_wide_reg() local 212 for (tries = 0; tries < 100; tries++) { in pt5161l_read_wide_reg() 247 int ret, tries; in pt5161l_read_block_data_main_micro_indirect() local 270 for (tries = 0; tries < 255; tries++) { in pt5161l_read_block_data_main_micro_indirect() 321 int ret, tries; in pt5161l_heartbeat_check() local 331 for (tries = 0; tries < 100; tries++) { in pt5161l_heartbeat_check()
|
/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_clock.c | 45 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/drivers/infiniband/hw/qib/ |
H A 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 …]
|
/linux/arch/arm/mach-hisi/ |
H A D | platmcpm.c | 194 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/tools/testing/memblock/tests/ |
H A D | alloc_api.c | 21 * A simple test that tries to allocate a small memory region. 53 * A test that tries to allocate memory next to a reserved region that starts at 114 * A test that tries to allocate memory when there is enough space at the end 156 * A test that tries to allocate memory when there is not enough space at the 204 * A test that tries to allocate memory when there are two reserved regions with 254 * A test that tries to allocate memory when there are two reserved regions with 308 * A test that tries to allocate memory when the memory is filled with reserved 347 * A test that tries to allocate memory when all memory is reserved. 370 * A test that tries to allocate memory when the memory is almost full, 404 * A test that tries to allocate memory when the memory is almost full, [all …]
|
H A D | alloc_helpers_api.c | 5 * A simple test that tries to allocate a memory region above a specified, 47 * A test that tries to allocate a memory region above a certain address. 91 * A test that tries to allocate a memory region above an address that is too 136 * A test that tries to allocate a memory region when there is no space 183 * A test that tries to allocate a memory region with a minimal address below 219 * A test that tries to allocate a memory region above an address that is too 262 * A test that tries to allocate a memory region when there is no space 308 * A test that tries to allocate a memory region with a minimal address below
|
H A D | alloc_nid_api.c | 51 * A simple test that tries to allocate a memory region within min_addr and 100 * A simple test that tries to allocate a memory region within min_addr and 153 * A simple test that tries to allocate a memory region, which spans over the 203 * A test that tries to allocate a memory region, which can't fit into 252 * A test that tries to allocate a memory region, which can't fit into 296 * A test that tries to allocate a memory region within min_addr min_addr range, 348 * A test that tries to allocate a memory region within min_addr and max_addr, 398 * A test that tries to allocate memory within min_addr and max_add range, when 464 * A test that tries to allocate memory within min_addr and max_add range, when 524 * A test that tries to allocate memory within min_addr and max_add range, when [all …]
|
H A D | basic_api.c | 106 * A test that tries to add two memory blocks that don't overlap with one 154 * A test that tries to add two memory blocks r1 and r2, where r2 overlaps 206 * A test that tries to add two memory blocks r1 and r2, where r2 overlaps 258 * A test that tries to add two memory blocks r1 and r2, where r2 is 305 * A simple test that tries to add the same memory block twice. Expect 331 * A test that tries to add two memory blocks that don't overlap with one 383 * A simple test that tries to add a memory block r when r extends past 571 * A test that tries to mark two memory blocks that don't overlap as reserved: 618 * A test that tries to mark two memory blocks r1 and r2 as reserved, 671 * A test that tries to mark two memory blocks r1 and r2 as reserved, [all …]
|
H A D | alloc_exact_nid_api.c | 23 * A test that tries to allocate a memory region in a specific NUMA node that 65 * A test that tries to allocate a memory region in a specific NUMA node that 121 * A test that tries to allocate a memory region that spans over the min_addr 178 * A test that tries to allocate a memory region that spans over the min_addr 235 * A test that tries to allocate memory within min_addr and max_add range when 292 * A test that tries to allocate a memory region in a specific NUMA node that 334 * A test that tries to allocate a memory region in a specific NUMA node that 392 * A test that tries to allocate a memory region that spans over the min_addr 449 * A test that tries to allocate a memory region that spans over the min_addr 506 * A test that tries to allocate memory within min_addr and max_add range when [all …]
|
/linux/drivers/rtc/ |
H A 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()
|
H A 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()
|
/linux/drivers/char/hw_random/ |
H A 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()
|
/linux/drivers/macintosh/ |
H A 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 …]
|
/linux/fs/bcachefs/ |
H A D | buckets_waiting_for_journal.c | 56 unsigned tries, i; in bucket_table_insert() local 58 for (tries = 0; tries < 10; tries++) { in bucket_table_insert()
|
/linux/drivers/input/touchscreen/ |
H A D | mainstone-wm97xx.c | 119 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()
|
H A D | cyttsp_core.c | 81 int tries; in ttsp_read_block_data() local 83 for (tries = 0; tries < CY_NUM_RETRY; tries++) { in ttsp_read_block_data() 99 int tries; in ttsp_write_block_data() local 101 for (tries = 0; tries < CY_NUM_RETRY; tries++) { in ttsp_write_block_data()
|
/linux/drivers/net/ethernet/sun/ |
H A 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 …]
|
/linux/drivers/gpu/drm/ |
H A D | drm_suballoc.c | 226 unsigned int *tries) in drm_suballoc_next_hole() argument 261 /* limit the number of tries each freelist gets */ in drm_suballoc_next_hole() 262 if (tries[i] > 2) in drm_suballoc_next_hole() 280 ++tries[best_idx]; in drm_suballoc_next_hole() 317 unsigned int tries[DRM_SUBALLOC_MAX_QUEUES]; in drm_suballoc_new() local 341 tries[i] = 0; in drm_suballoc_new() 353 } while (drm_suballoc_next_hole(sa_manager, fences, tries)); in drm_suballoc_new()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | atombios_dp.c | 498 u8 tries; member 613 dp_info->tries = 0; in amdgpu_atombios_dp_link_train_cr() 639 ++dp_info->tries; in amdgpu_atombios_dp_link_train_cr() 640 if (dp_info->tries == 5) { in amdgpu_atombios_dp_link_train_cr() 645 dp_info->tries = 0; in amdgpu_atombios_dp_link_train_cr() 678 dp_info->tries = 0; in amdgpu_atombios_dp_link_train_ce() 695 if (dp_info->tries > 5) { in amdgpu_atombios_dp_link_train_ce() 696 DRM_ERROR("channel eq failed: 5 tries\n"); in amdgpu_atombios_dp_link_train_ce() 705 dp_info->tries++; in amdgpu_atombios_dp_link_train_ce()
|
/linux/drivers/input/joystick/ |
H A 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()
|
/linux/tools/crypto/ccp/ |
H A D | test_dbc.py | 79 """tries to call get_nonce ioctl with invalid data structures""" 88 """tries to call set_uid ioctl with invalid data structures""" 97 """tries to call set_uid ioctl with invalid data structures""" 106 """tries to call param ioctl with invalid data structures""" 114 """tries to call the DBC ioctl with invalid data structures"""
|
/linux/drivers/regulator/ |
H A 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() 159 dev_warn(&rdev->dev, "reg %#x enable ok after %d tries\n", in tps65090_fet_enable() 160 rdev->desc->enable_reg, tries); in tps65090_fet_enable()
|
/linux/tools/testing/selftests/arm64/mte/ |
H A D | check_tags_inclusion.c | 63 /* Try to catch a excluded tag by a number of tries. */ in check_single_included_tags() 95 /* Try to catch a excluded tag by a number of tries. */ in check_multiple_included_tags() 126 /* Try to catch a excluded tag by a number of tries. */ in check_all_included_tags() 151 /* Try to catch a excluded tag by a number of tries. */ in check_none_included_tags()
|
/linux/drivers/gpu/drm/radeon/ |
H A D | atombios_dp.c | 543 u8 tries; member 675 dp_info->tries = 0; in radeon_dp_link_train_cr() 701 ++dp_info->tries; in radeon_dp_link_train_cr() 702 if (dp_info->tries == 5) { in radeon_dp_link_train_cr() 707 dp_info->tries = 0; in radeon_dp_link_train_cr() 738 dp_info->tries = 0; in radeon_dp_link_train_ce() 755 if (dp_info->tries > 5) { in radeon_dp_link_train_ce() 756 DRM_ERROR("channel eq failed: 5 tries\n"); in radeon_dp_link_train_ce() 764 dp_info->tries++; in radeon_dp_link_train_ce()
|
/linux/drivers/bluetooth/ |
H A D | btmrvl_sdio.c | 414 unsigned int tries; in btmrvl_sdio_poll_card_status() local 418 for (tries = 0; tries < MAX_POLL_TRIES * 1000; tries++) { in btmrvl_sdio_poll_card_status() 440 int tries, ret; in btmrvl_sdio_verify_fw_download() local 443 for (tries = 0; tries < pollnum; tries++) { in btmrvl_sdio_verify_fw_download() 562 unsigned int tries, offset; in btmrvl_sdio_download_fw_w_helper() local 610 for (tries = 0; tries < MAX_POLL_TRIES; tries++) { in btmrvl_sdio_download_fw_w_helper() 1283 int ret, tries; in btmrvl_sdio_rdwr_firmware() local 1294 for (tries = 0; tries < MAX_POLL_TRIES; tries++) { in btmrvl_sdio_rdwr_firmware()
|