Home
last modified time | relevance | path

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

12345678910>>...14

/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/pci/tw5864/
Dtw5864-util.c6 int retries = 30000; in tw5864_indir_writeb() local
8 while (tw_readl(TW5864_IND_CTL) & BIT(31) && --retries) in tw5864_indir_writeb()
10 if (!retries) in tw5864_indir_writeb()
20 int retries = 30000; in tw5864_indir_readb() local
22 while (tw_readl(TW5864_IND_CTL) & BIT(31) && --retries) in tw5864_indir_readb()
24 if (!retries) in tw5864_indir_readb()
30 retries = 30000; in tw5864_indir_readb()
31 while (tw_readl(TW5864_IND_CTL) & BIT(31) && --retries) in tw5864_indir_readb()
33 if (!retries) in tw5864_indir_readb()
/drivers/pci/dwc/
Dpcie-designware.c114 u32 retries, val; in dw_pcie_prog_outbound_atu_unroll() local
135 for (retries = 0; retries < LINK_WAIT_MAX_IATU_RETRIES; retries++) { in dw_pcie_prog_outbound_atu_unroll()
149 u32 retries, val; in dw_pcie_prog_outbound_atu() local
179 for (retries = 0; retries < LINK_WAIT_MAX_IATU_RETRIES; retries++) { in dw_pcie_prog_outbound_atu()
209 u32 retries, val; in dw_pcie_prog_inbound_atu_unroll() local
236 for (retries = 0; retries < LINK_WAIT_MAX_IATU_RETRIES; retries++) { in dw_pcie_prog_inbound_atu_unroll()
253 u32 retries, val; in dw_pcie_prog_inbound_atu() local
283 for (retries = 0; retries < LINK_WAIT_MAX_IATU_RETRIES; retries++) { in dw_pcie_prog_inbound_atu()
317 int retries; in dw_pcie_wait_for_link() local
320 for (retries = 0; retries < LINK_WAIT_MAX_RETRIES; retries++) { in dw_pcie_wait_for_link()
Dpcie-artpec6.c91 unsigned int retries; in artpec6_pcie_establish_link() local
123 retries = 50; in artpec6_pcie_establish_link()
127 retries--; in artpec6_pcie_establish_link()
128 } while (retries && in artpec6_pcie_establish_link()
131 retries = 50; in artpec6_pcie_establish_link()
135 retries--; in artpec6_pcie_establish_link()
136 } while (retries && !(val & PHY_COSPLLLOCK)); in artpec6_pcie_establish_link()
/drivers/media/usb/usbvision/
Dusbvision-i2c.c53 unsigned char addr, int retries) in try_write_address() argument
61 for (i = 0; i <= retries; i++) { in try_write_address()
66 if (i == retries) /* no success */ in try_write_address()
78 unsigned char addr, int retries) in try_read_address() argument
85 for (i = 0; i <= retries; i++) { in try_read_address()
90 if (i == retries) /* no success */ in try_read_address()
102 struct i2c_msg *msg, int retries, in usb_find_address() argument
116 ret = try_read_address(i2c_adap, addr, retries); in usb_find_address()
118 ret = try_write_address(i2c_adap, addr, retries); in usb_find_address()
138 ret = usb_find_address(i2c_adap, pmsg, i2c_adap->retries, &addr); in usbvision_i2c_xfer()
[all …]
/drivers/media/common/b2c2/
Dflexcop-sram.c78 int i, retries;
84 retries = 2;
86 while (((read_reg_dw(adapter, 0x700) & 0x80000000) != 0) && (retries > 0)) {
88 retries--;
91 if (retries == 0)
103 int i, retries;
109 retries = 10000;
111 while (((read_reg_dw(adapter, 0x700) & 0x80000000) != 0) && (retries > 0)) {
113 retries--;
116 if (retries == 0)
[all …]
Dflexcop-eeprom.c17 u32 len, u8 *wbuf, u8 *rbuf, int retries)
21 for (i = 0; i < retries; i++) {
23 if (eeprom_lrc_read(adapter, addr, len, rbuf, retries) == 1)
108 flexcop_access_op_t op, u16 addr, u8 *buf, u16 len, int retries) in flexcop_eeprom_request() argument
112 for (i = 0; i < retries; i++) { in flexcop_eeprom_request()
122 u8 *buf, u16 len, int retries) in flexcop_eeprom_lrc_read() argument
124 int ret = flexcop_eeprom_request(fc, FC_READ, addr, buf, len, retries); in flexcop_eeprom_lrc_read()
/drivers/net/ethernet/broadcom/genet/
Dbcmgenet_wol.c111 int retries = 0; in bcmgenet_poll_wol_status() local
115 retries++; in bcmgenet_poll_wol_status()
116 if (retries > 5) { in bcmgenet_poll_wol_status()
123 return retries; in bcmgenet_poll_wol_status()
130 int retries = 0; in bcmgenet_wol_power_down_cfg() local
149 retries = bcmgenet_poll_wol_status(priv); in bcmgenet_wol_power_down_cfg()
150 if (retries < 0) { in bcmgenet_wol_power_down_cfg()
154 return retries; in bcmgenet_wol_power_down_cfg()
158 retries); in bcmgenet_wol_power_down_cfg()
/drivers/rtc/
Drtc-wm8350.c40 int retries = WM8350_GET_TIME_RETRIES, ret; in wm8350_rtc_readtime() local
81 retries, in wm8350_rtc_readtime()
86 } while (retries--); in wm8350_rtc_readtime()
100 int ret, retries = WM8350_SET_TIME_RETRIES; in wm8350_rtc_settime() local
123 } while (--retries && !(rtc_ctrl & WM8350_RTC_STS)); in wm8350_rtc_settime()
125 if (!retries) { in wm8350_rtc_settime()
192 int retries = WM8350_SET_ALM_RETRIES; in wm8350_rtc_stop_alarm() local
206 } while (retries-- && !(rtc_ctrl & WM8350_RTC_ALMSTS)); in wm8350_rtc_stop_alarm()
217 int retries = WM8350_SET_ALM_RETRIES; in wm8350_rtc_start_alarm() local
229 } while (retries-- && rtc_ctrl & WM8350_RTC_ALMSTS); in wm8350_rtc_start_alarm()
[all …]
Drtc-sun4v.c22 int retries = 10000; in hypervisor_get_time() local
29 if (--retries > 0) { in hypervisor_get_time()
49 int retries = 10000; in hypervisor_set_time() local
56 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/mmc/core/
Dsd.c736 int retries = 10; in mmc_sd_get_cid() local
740 if (!retries) { in mmc_sd_get_cid()
768 if (retries && mmc_host_uhs(host)) in mmc_sd_get_cid()
791 retries--; in mmc_sd_get_cid()
794 retries = 0; in mmc_sd_get_cid()
846 int retries; in mmc_sd_setup_card() local
875 for (retries = 1; retries <= 3; retries++) { in mmc_sd_setup_card()
878 if (retries > 1) { in mmc_sd_setup_card()
887 mmc_hostname(host), retries); in mmc_sd_setup_card()
1089 int retries = 5; in mmc_sd_detect() local
[all …]
/drivers/w1/slaves/
Dw1_ds2438.c56 unsigned int retries = W1_DS2438_RETRIES; in w1_ds2438_get_page() local
61 while (retries--) { in w1_ds2438_get_page()
90 unsigned int retries = W1_DS2438_RETRIES; in w1_ds2438_get_temperature() local
98 while (retries--) { in w1_ds2438_get_temperature()
132 unsigned int retries = W1_DS2438_RETRIES; in w1_ds2438_change_config_bit() local
137 while (retries--) { in w1_ds2438_change_config_bit()
168 retries = W1_DS2438_RETRIES; in w1_ds2438_change_config_bit()
169 while (retries--) { in w1_ds2438_change_config_bit()
192 unsigned int retries = W1_DS2438_RETRIES; in w1_ds2438_get_voltage() local
205 while (retries--) { in w1_ds2438_get_voltage()
Dw1_ds2408.c148 unsigned int retries = W1_F29_RETRIES; in output_write() local
160 while (retries--) { in output_write()
197 "mutex unlocked, retries:%d", retries); in output_write()
203 dev_dbg(&sl->dev, "mutex unlocked in error, retries:%d", retries); in output_write()
217 unsigned int retries = W1_F29_RETRIES; in activity_write() local
227 while (retries--) { in activity_write()
248 unsigned int retries = W1_F29_RETRIES; in status_control_write() local
258 while (retries--) { in status_control_write()
Dw1_ds2413.c71 unsigned int retries = W1_F3A_RETRIES; in output_write() local
87 while (retries--) { in output_write()
95 dev_dbg(&sl->dev, "mutex unlocked, retries:%d", retries); in output_write()
104 dev_dbg(&sl->dev, "mutex unlocked in error, retries:%d", retries); in output_write()
/drivers/input/keyboard/
Dlm8333.c47 int retries = 0, ret; in lm8333_read8() local
51 } while (ret < 0 && retries++ < LM8333_READ_RETRIES); in lm8333_read8()
58 int retries = 0, ret; in lm8333_write8() local
62 } while (ret < 0 && retries++ < LM8333_READ_RETRIES); in lm8333_write8()
69 int retries = 0, ret; in lm8333_read_block() local
74 } while (ret < 0 && retries++ < LM8333_READ_RETRIES); in lm8333_read_block()
/drivers/i2c/algos/
Di2c-algo-bit.c338 unsigned char addr, int retries) in try_address() argument
343 for (i = 0; i <= retries; i++) { in try_address()
345 if (ret == 1 || i == retries) in try_address()
486 int ret, retries; in bit_doAddress() local
488 retries = nak_ok ? 0 : i2c_adap->retries; in bit_doAddress()
495 ret = try_address(i2c_adap, addr, retries); in bit_doAddress()
514 ret = try_address(i2c_adap, addr, retries); in bit_doAddress()
527 ret = try_address(i2c_adap, addr, retries); in bit_doAddress()
648 adap->retries = 3; in __i2c_bit_add_bus()
/drivers/usb/storage/
Dsierra_ms.c129 int result, retries; in sierra_ms_init() local
134 retries = 3; in sierra_ms_init()
163 retries = 3; in sierra_ms_init()
165 retries--; in sierra_ms_init()
171 } while (retries && result < 0); in sierra_ms_init()
/drivers/media/i2c/smiapp/
Dsmiapp-regs.c224 unsigned int retries; in smiapp_write_no_quirk() local
261 for (retries = 0; retries < 5; retries++) { in smiapp_write_no_quirk()
269 if (retries) in smiapp_write_no_quirk()
272 retries); in smiapp_write_no_quirk()
/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/gpu/drm/vmwgfx/
Dvmwgfx_msg.c152 int retries = 0; in vmw_send_msg() local
155 while (retries < RETRIES) { in vmw_send_msg()
156 retries++; in vmw_send_msg()
216 int retries = 0; in vmw_recv_msg() local
222 while (retries < RETRIES) { in vmw_recv_msg()
223 retries++; in vmw_recv_msg()
/drivers/net/wireless/intel/iwlegacy/
D3945-rs.c257 int retries, int idx) in il3945_collect_tx_data() argument
263 if (!retries) { in il3945_collect_tx_data()
278 while (retries > 0) { in il3945_collect_tx_data()
303 retries--; in il3945_collect_tx_data()
449 s8 retries = 0, current_count; in il3945_rs_tx_status() local
458 retries = info->status.rates[0].count; in il3945_rs_tx_status()
460 if (retries > RATE_RETRY_TH) in il3945_rs_tx_status()
461 retries = RATE_RETRY_TH; in il3945_rs_tx_status()
495 while (retries > 1) { in il3945_rs_tx_status()
496 if ((retries - 1) < il->retry_rate) { in il3945_rs_tx_status()
[all …]
/drivers/s390/cio/
Dccwreq.c49 req->retries = req->maxretries; in ccwreq_next_path()
83 if (req->retries-- == 0) { in ccwreq_do()
130 req->retries = req->maxretries; in ccw_request_start()
236 u16 retries; in ccwreq_log_status() member
241 data.retries = req->retries; in ccwreq_log_status()
/drivers/char/tpm/
Dtpm_i2c_nuvoton.c286 int retries; in i2c_nuvoton_recv() local
295 for (retries = 0; retries < TPM_RETRY; retries++) { in i2c_nuvoton_recv()
296 if (retries > 0) { in i2c_nuvoton_recv()
374 int burst_count, bytes2write, retries, rc = -EIO; in i2c_nuvoton_send() local
376 for (retries = 0; retries < TPM_RETRY; retries++) { in i2c_nuvoton_send()

12345678910>>...14