Home
last modified time | relevance | path

Searched refs:MAX_RETRIES (Results 1 – 19 of 19) sorted by relevance

/drivers/soc/ixp4xx/
Dixp4xx-npe.c30 #define MAX_RETRIES 1000 /* microseconds */ macro
244 for (i = 0; i < MAX_RETRIES; i++) { in npe_debug_instr()
390 for (i = 0; i < MAX_RETRIES; i++) { in npe_reset()
396 if (i == MAX_RETRIES) in npe_reset()
429 while ((cycles < MAX_RETRIES) && in npe_send_message()
435 if (cycles == MAX_RETRIES) { in npe_send_message()
453 while (cycles < MAX_RETRIES) { in npe_recv_message()
473 if (cycles == MAX_RETRIES) { in npe_recv_message()
/drivers/i2c/busses/
Di2c-isch.c38 #define MAX_RETRIES 5000 macro
96 } while ((temp & 0x08) && (retries++ < MAX_RETRIES)); in sch_transaction()
99 if (retries > MAX_RETRIES) { in sch_transaction()
/drivers/scsi/
Dsr.c215 &sshdr, SR_TIMEOUT, MAX_RETRIES, NULL); in sr_get_events()
284 ret = scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, &sshdr); in sr_check_events()
500 SCpnt->allowed = MAX_RETRIES; in sr_init_command()
517 if (scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, &sshdr)) in sr_revalidate_disk()
771 SR_TIMEOUT, MAX_RETRIES, NULL); in get_sectorsize()
863 scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, &sshdr); in get_capabilities()
Dsr.h25 #define MAX_RETRIES 3 macro
Dch.c103 #define MAX_RETRIES 1 macro
200 MAX_RETRIES, NULL); in ch_do_scsi()
Dsr_ioctl.c300 if (!scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, &sshdr)) in sr_drive_status()
Dst.c166 #define MAX_RETRIES 0 macro
744 MAX_RETRIES, 1); in cross_eof()
1943 MAX_RETRIES, 1); in read_tape()
2641 timeout, MAX_RETRIES, 1); in do_load_unload()
2956 timeout, MAX_RETRIES, 1); in st_int_ioctl()
3344 timeout, MAX_RETRIES, 1); in format_medium()
/drivers/input/touchscreen/
Delants_i2c.c109 #define MAX_RETRIES 3 macro
368 int retry_cnt = MAX_RETRIES; in elants_i2c_query_hw_version()
393 int retry_cnt = MAX_RETRIES; in elants_i2c_query_fw_version()
427 resp, sizeof(resp), MAX_RETRIES, in elants_i2c_query_test_version()
611 for (retry_cnt = 0; retry_cnt < MAX_RETRIES; retry_cnt++) { in elants_i2c_initialize()
615 if (retry_cnt < MAX_RETRIES - 1) in elants_i2c_initialize()
622 if (retry_cnt < MAX_RETRIES - 1) in elants_i2c_initialize()
1607 for (retry_cnt = 0; retry_cnt < MAX_RETRIES; retry_cnt++) { in elants_i2c_suspend()
1638 for (retry_cnt = 0; retry_cnt < MAX_RETRIES; retry_cnt++) { in elants_i2c_resume()
Dwdt87xx_i2c.c41 #define MAX_RETRIES 3 macro
720 for (retry = 0; retry < MAX_RETRIES; retry++) { in wdt87xx_write_firmware()
760 if (retry == MAX_RETRIES) { in wdt87xx_write_firmware()
/drivers/media/usb/stkwebcam/
Dstk-sensor.c65 #define MAX_RETRIES (50) macro
233 } while (tmpval == 0 && i < MAX_RETRIES); in stk_sensor_outb()
256 } while (tmpval == 0 && i < MAX_RETRIES); in stk_sensor_inb()
/drivers/hwmon/
Dw83l785ts.c32 #define MAX_RETRIES 5 macro
242 for (i = 1; i <= MAX_RETRIES; i++) { in w83l785ts_read_value()
Dlm93.c796 #define MAX_RETRIES 5 macro
803 for (i = 1; i <= MAX_RETRIES; i++) { in lm93_read_byte()
841 for (i = 1; i <= MAX_RETRIES; i++) { in lm93_read_word()
885 for (i = 1; i <= MAX_RETRIES; i++) { in lm93_read_block()
/drivers/mmc/host/
Dmoxart-mmc.c120 #define MAX_RETRIES 500000 macro
186 for (i = 0; i < MAX_RETRIES; i++) { in moxart_wait_for_status()
651 for (i = 0; i < MAX_RETRIES; i++) { in moxart_probe()
/drivers/firewire/
Dcore-device.c780 #define MAX_RETRIES 10 macro
996 if (device->config_rom_retries < MAX_RETRIES && in fw_device_init()
1174 if (device->config_rom_retries < MAX_RETRIES && in fw_device_refresh()
/drivers/net/ethernet/pasemi/
Dpasemi_mac.c1214 #define MAX_RETRIES 5000 macro
1224 for (retries = 0; retries < MAX_RETRIES; retries++) { in pasemi_mac_pause_txchan()
1245 for (retries = 0; retries < MAX_RETRIES; retries++) { in pasemi_mac_pause_rxchan()
1264 for (retries = 0; retries < MAX_RETRIES; retries++) { in pasemi_mac_pause_rxint()
/drivers/mtd/chips/
Dcfi_cmdset_0002.c45 #define MAX_RETRIES 3 macro
1783 if (++retry_cnt <= MAX_RETRIES) { in do_write_oneword_retry()
2284 if (++retry_cnt <= MAX_RETRIES) in do_panic_write_oneword()
2497 if (++retry_cnt <= MAX_RETRIES) { in do_erase_chip()
2597 if (++retry_cnt <= MAX_RETRIES) { in do_erase_oneblock()
/drivers/net/wireless/rsi/
Drsi_mgmt.h107 #define MAX_RETRIES 8 macro
Drsi_91x_mac80211.c2027 hw->max_rate_tries = MAX_RETRIES; in rsi_mac80211_attach()
/drivers/staging/octeon-usb/
Docteon-hcd.c218 #define MAX_RETRIES 3 macro