Home
last modified time | relevance | path

Searched refs:retries (Results 1 – 25 of 210) sorted by relevance

123456789

/drivers/char/
Ddtlk.c130 int i = 0, retries; in dtlk_read() local
138 for (retries = 0; retries < loops_per_jiffy; retries++) { in dtlk_read()
152 if (retries == loops_per_jiffy) in dtlk_read()
161 int i = 0, retries = 0, ch; in dtlk_write() local
202 for (retries = 0; in dtlk_write()
203 retries < loops_per_jiffy / (4000/HZ); in dtlk_write()
204 retries++) in dtlk_write()
209 retries = 0; in dtlk_write()
218 if (++retries > 10 * HZ) { /* wait no more than 10 sec in dtlk_write()
568 int portval, retries = 0; in dtlk_read_tts() local
[all …]
/drivers/media/video/usbvision/
Dusbvision-i2c.c57 unsigned char addr, int retries) in try_write_address() argument
65 for (i = 0; i <= retries; i++) { in try_write_address()
70 if (i == retries) /* no success */ in try_write_address()
82 unsigned char addr, int retries) in try_read_address() argument
89 for (i = 0; i <= retries; i++) { in try_read_address()
94 if (i == retries) /* no success */ in try_read_address()
106 struct i2c_msg *msg, int retries, in usb_find_address() argument
120 ret = try_read_address(i2c_adap, addr, retries); in usb_find_address()
122 ret = try_write_address(i2c_adap, addr, retries); in usb_find_address()
142 ret = usb_find_address(i2c_adap, pmsg, i2c_adap->retries, &addr); in usbvision_i2c_xfer()
[all …]
/drivers/media/dvb/b2c2/
Dflexcop-sram.c77 int i, retries;
83 retries = 2;
85 while (((read_reg_dw(adapter, 0x700) & 0x80000000) != 0) && (retries > 0)) {
87 retries--;
90 if (retries == 0)
102 int i, retries;
108 retries = 10000;
110 while (((read_reg_dw(adapter, 0x700) & 0x80000000) != 0) && (retries > 0)) {
112 retries--;
115 if (retries == 0)
[all …]
Dflexcop-eeprom.c16 u32 len, u8 *wbuf, u8 *rbuf, int retries)
20 for (i = 0; i < retries; i++) {
22 if (eeprom_lrc_read(adapter, addr, len, rbuf, retries) == 1)
107 flexcop_access_op_t op, u16 addr, u8 *buf, u16 len, int retries) in flexcop_eeprom_request() argument
111 for (i = 0; i < retries; i++) { in flexcop_eeprom_request()
121 u8 *buf, u16 len, int retries) in flexcop_eeprom_lrc_read() argument
123 int ret = flexcop_eeprom_request(fc, FC_READ, addr, buf, len, retries); in flexcop_eeprom_lrc_read()
/drivers/rtc/
Drtc-wm8350.c42 int retries = WM8350_GET_TIME_RETRIES, ret; in wm8350_rtc_readtime() local
83 retries, in wm8350_rtc_readtime()
88 } while (retries--); in wm8350_rtc_readtime()
102 int ret, retries = WM8350_SET_TIME_RETRIES; in wm8350_rtc_settime() local
125 } while (--retries && !(rtc_ctrl & WM8350_RTC_STS)); in wm8350_rtc_settime()
127 if (!retries) { in wm8350_rtc_settime()
194 int retries = WM8350_SET_ALM_RETRIES; in wm8350_rtc_stop_alarm() local
208 } while (retries-- && !(rtc_ctrl & WM8350_RTC_ALMSTS)); in wm8350_rtc_stop_alarm()
219 int retries = WM8350_SET_ALM_RETRIES; in wm8350_rtc_start_alarm() local
231 } while (retries-- && rtc_ctrl & WM8350_RTC_ALMSTS); in wm8350_rtc_start_alarm()
[all …]
Drtc-sun4v.c18 int retries = 10000; in hypervisor_get_time() local
25 if (--retries > 0) { in hypervisor_get_time()
45 int retries = 10000; in hypervisor_set_time() local
52 if (--retries > 0) { in hypervisor_set_time()
/drivers/char/xilinx_hwicap/
Dfifo_icap.c218 u32 retries = 0; in fifo_icap_set_configuration() local
241 retries++; in fifo_icap_set_configuration()
242 if (retries > XHI_MAX_RETRIES) in fifo_icap_set_configuration()
263 retries++; in fifo_icap_set_configuration()
264 if (retries > XHI_MAX_RETRIES) in fifo_icap_set_configuration()
294 u32 retries = 0; in fifo_icap_get_configuration() local
326 retries++; in fifo_icap_get_configuration()
327 if (retries > XHI_MAX_RETRIES) in fifo_icap_get_configuration()
Dbuffer_icap.c191 s32 retries = 0; in buffer_icap_device_read() local
206 retries++; in buffer_icap_device_read()
207 if (retries > XHI_MAX_RETRIES) in buffer_icap_device_read()
225 s32 retries = 0; in buffer_icap_device_write() local
240 retries++; in buffer_icap_device_write()
241 if (retries > XHI_MAX_RETRIES) in buffer_icap_device_write()
/drivers/usb/misc/
Drio500.c120 int retries; in ioctl_rio() local
161 retries = 3; in ioctl_rio()
162 while (retries) { in ioctl_rio()
172 retries--; in ioctl_rio()
175 retries = 0; in ioctl_rio()
185 retries = 0; in ioctl_rio()
228 retries = 3; in ioctl_rio()
229 while (retries) { in ioctl_rio()
239 retries--; in ioctl_rio()
242 retries = 0; in ioctl_rio()
[all …]
/drivers/mmc/core/
Dsd.c810 int retries; in mmc_sd_setup_card() local
839 for (retries = 1; retries <= 3; retries++) { in mmc_sd_setup_card()
842 if (retries > 1) { in mmc_sd_setup_card()
851 mmc_hostname(host), retries); in mmc_sd_setup_card()
1073 int retries = 5; in mmc_sd_detect() local
1085 while(retries) { in mmc_sd_detect()
1088 retries--; in mmc_sd_detect()
1094 if (!retries) { in mmc_sd_detect()
1140 int retries; in mmc_sd_resume() local
1148 retries = 5; in mmc_sd_resume()
[all …]
/drivers/w1/slaves/
Dw1_ds2408.c162 unsigned int retries = W1_F29_RETRIES; in w1_f29_write_output() local
174 while (retries--) { in w1_f29_write_output()
205 "mutex unlocked, retries:%d", retries); in w1_f29_write_output()
211 dev_dbg(&sl->dev, "mutex unlocked in error, retries:%d", retries); in w1_f29_write_output()
226 unsigned int retries = W1_F29_RETRIES; in w1_f29_write_activity() local
236 while (retries--) { in w1_f29_write_activity()
261 unsigned int retries = W1_F29_RETRIES; in w1_f29_write_status_control() local
271 while (retries--) { in w1_f29_write_status_control()
/drivers/i2c/algos/
Di2c-algo-bit.c344 unsigned char addr, int retries) in try_address() argument
349 for (i = 0; i <= retries; i++) { in try_address()
351 if (ret == 1 || i == retries) in try_address()
492 int ret, retries; in bit_doAddress() local
494 retries = nak_ok ? 0 : i2c_adap->retries; in bit_doAddress()
501 ret = try_address(i2c_adap, addr, retries); in bit_doAddress()
520 ret = try_address(i2c_adap, addr, retries); in bit_doAddress()
533 ret = try_address(i2c_adap, addr, retries); in bit_doAddress()
643 adap->retries = 3; in __i2c_bit_add_bus()
/drivers/usb/storage/
Dsierra_ms.c129 int result, retries; in sierra_ms_init() local
135 retries = 3; in sierra_ms_init()
168 retries = 3; in sierra_ms_init()
170 retries--; in sierra_ms_init()
176 } while (retries && result < 0); in sierra_ms_init()
/drivers/s390/block/
Ddasd_3990_erp.c113 erp->retries = 256; in dasd_3990_erp_int_req()
169 erp->retries = 10; in dasd_3990_erp_alternate_path()
231 dctl_cqr->retries = 2; in dasd_3990_erp_DCTL()
276 erp->retries = 10; in dasd_3990_erp_action_1()
315 erp->retries = 256; in dasd_3990_erp_action_4()
324 erp->retries); in dasd_3990_erp_action_4()
332 erp->retries); in dasd_3990_erp_action_4()
339 erp->retries); in dasd_3990_erp_action_4()
373 erp->retries = 10; in dasd_3990_erp_action_5()
1047 erp->retries = 5; in dasd_3990_erp_com_rej()
[all …]
/drivers/staging/usbip/userspace/libsrc/
Dusbip_host_driver.c43 int retries = SYSFS_OPEN_RETRIES; in read_attr_usbip_status() local
62 while (retries > 0) { in read_attr_usbip_status()
72 retries--; in read_attr_usbip_status()
75 if (retries == 0) in read_attr_usbip_status()
78 else if (retries < SYSFS_OPEN_RETRIES) in read_attr_usbip_status()
80 SYSFS_OPEN_RETRIES - retries); in read_attr_usbip_status()
/drivers/net/wireless/iwlegacy/
D3945-rs.c258 int retries, int idx) in il3945_collect_tx_data() argument
264 if (!retries) { in il3945_collect_tx_data()
279 while (retries > 0) { in il3945_collect_tx_data()
304 retries--; in il3945_collect_tx_data()
450 s8 retries = 0, current_count; in il3945_rs_tx_status() local
459 retries = info->status.rates[0].count; in il3945_rs_tx_status()
461 if (retries > RATE_RETRY_TH) in il3945_rs_tx_status()
462 retries = RATE_RETRY_TH; in il3945_rs_tx_status()
496 while (retries > 1) { in il3945_rs_tx_status()
497 if ((retries - 1) < il->retry_rate) { in il3945_rs_tx_status()
[all …]
/drivers/block/
Dhd.c266 int retries = 100000; in controller_busy() local
271 } while ((status & BUSY_STAT) && --retries); in controller_busy()
434 int retries; in wait_DRQ() local
437 for (retries = 0; retries < 100000; retries++) { in wait_DRQ()
449 int i, retries = 100000; in read_intr() local
459 } while (--retries > 0); in read_intr()
489 int retries = 100000; in write_intr() local
499 } while (--retries > 0); in write_intr()
/drivers/s390/cio/
Dccwreq.c48 req->retries = req->maxretries; in ccwreq_next_path()
82 if (req->retries-- == 0) { in ccwreq_do()
129 req->retries = req->maxretries; in ccw_request_start()
235 u16 retries; in ccwreq_log_status() member
240 data.retries = req->retries; in ccwreq_log_status()
/drivers/net/wireless/ath/ath9k/
Drc.c905 int tx_rate, int xretries, int retries, in ath_rc_update_per() argument
934 if (retries >= count) in ath_rc_update_per()
935 retries = count - 1; in ath_rc_update_per()
949 if (retries >= count) in ath_rc_update_per()
950 retries = count - 1; in ath_rc_update_per()
969 n_bad_tries = retries * tx_info->status.ampdu_len + in ath_rc_update_per()
971 n_frames = tx_info->status.ampdu_len * (retries + 1); in ath_rc_update_per()
979 (nretry_to_per_lookup[retries] >> 3)); in ath_rc_update_per()
988 if (retries > 0 || 2 * n_bad_frames > tx_info->status.ampdu_len) { in ath_rc_update_per()
1020 if (retries > 0) { in ath_rc_update_per()
[all …]
/drivers/net/wireless/brcm80211/brcmfmac/
Ddhd_sdio.c877 uint retries = 0; in brcmf_sdbrcm_bussleep() local
898 offsetof(struct sdpcmd_regs, tosbmailbox), &retries); in brcmf_sdbrcm_bussleep()
899 if (retries > retry_limit) in brcmf_sdbrcm_bussleep()
928 &retries); in brcmf_sdbrcm_bussleep()
929 if (retries <= retry_limit) in brcmf_sdbrcm_bussleep()
932 &retries); in brcmf_sdbrcm_bussleep()
934 if (retries > retry_limit) in brcmf_sdbrcm_bussleep()
958 uint retries = 0; in brcmf_sdbrcm_hostmail() local
964 offsetof(struct sdpcmd_regs, tohostmailboxdata), &retries); in brcmf_sdbrcm_hostmail()
966 if (retries <= retry_limit) in brcmf_sdbrcm_hostmail()
[all …]
/drivers/media/video/cx18/
Dcx18-firmware.c377 int sz, retries; in cx18_firmware_init() local
416 for (retries = 0; in cx18_firmware_init()
417 retries < 50 && (cx18_read_reg(cx, CX18_PROC_SOFT_RESET) & 1) == 1; in cx18_firmware_init()
418 retries++) in cx18_firmware_init()
423 if (retries == 50 && in cx18_firmware_init()
/drivers/power/
Dsbs-battery.c159 int retries = 1; in sbs_read_word_data() local
162 retries = max(chip->pdata->i2c_retry_count + 1, 1); in sbs_read_word_data()
164 while (retries > 0) { in sbs_read_word_data()
168 retries--; in sbs_read_word_data()
186 int retries = 1; in sbs_write_word_data() local
189 retries = max(chip->pdata->i2c_retry_count + 1, 1); in sbs_write_word_data()
191 while (retries > 0) { in sbs_write_word_data()
196 retries--; in sbs_write_word_data()
/drivers/s390/char/
Dsclp_sdias.c94 int retries; in sdias_sclp_send() local
97 for (retries = SDIAS_RETRIES; retries; retries--) { in sdias_sclp_send()
/drivers/char/ipmi/
Dipmi_devintf.c173 int retries, in handle_send_req() argument
223 retries, in handle_send_req()
267 req.retries, in ipmi_ioctl()
580 priv->default_retries = parms.retries; in ipmi_ioctl()
590 parms.retries = priv->default_retries; in ipmi_ioctl()
688 compat_int_t retries; member
742 __get_user(p64->retries, &p32->retries) || in get_compat_ipmi_req_settime()
805 sp.retries, sp.retry_time_ms); in compat_ipmi_ioctl()
/drivers/video/omap2/displays/
Dpanel-dvi.c222 int r, retries; in panel_dvi_ddc_read() local
224 for (retries = 3; retries > 0; retries--) { in panel_dvi_ddc_read()

123456789