/linux/drivers/char/ |
H A D | dtlk.c | 130 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() 567 int portval, retries = 0; in dtlk_read_tts() local [all …]
|
/linux/drivers/media/pci/tw5864/ |
H A D | tw5864-util.c | 6 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()
|
/linux/drivers/w1/slaves/ |
H A D | w1_ds2413.c | 32 unsigned int retries = W1_F3A_RETRIES; in state_read() local 52 while (retries--) { in state_read() 64 "reselecting, retries left: %d\n", retries); in state_read() 71 dev_warn(&sl->dev, "PIO_ACCESS_READ error, retries left: %d\n", retries); in state_read() 77 (bytes_read > 0) ? "succeeded" : "error", retries); in state_read() 89 unsigned int retries = W1_F3A_RETRIES; in output_write() local 108 while (retries--) { in output_write() 121 dev_warn(&sl->dev, "PIO_ACCESS_WRITE error, retries left: %d\n", retries); in output_write() 127 (bytes_written > 0) ? "succeeded" : "error", retries); in output_write()
|
H A D | w1_ds2438.c | 63 unsigned int retries = W1_DS2438_RETRIES; in w1_ds2438_get_page() local 68 while (retries--) { in w1_ds2438_get_page() 95 unsigned int retries = W1_DS2438_RETRIES; in w1_ds2438_get_temperature() local 103 while (retries--) { in w1_ds2438_get_temperature() 137 unsigned int retries = W1_DS2438_RETRIES; in w1_ds2438_change_config_bit() local 142 while (retries--) { in w1_ds2438_change_config_bit() 173 retries = W1_DS2438_RETRIES; in w1_ds2438_change_config_bit() 174 while (retries--) { in w1_ds2438_change_config_bit() 196 unsigned int retries = W1_DS2438_RETRIES; in w1_ds2438_change_offset_register() local 204 while (retries--) { in w1_ds2438_change_offset_register() [all …]
|
H A D | w1_ds2408.c | 168 unsigned int retries = W1_F29_RETRIES; in output_write() local 197 } while (--retries); in output_write() 203 (bytes_written > 0) ? "succeeded" : "error", 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()
|
/linux/drivers/pci/controller/dwc/ |
H A D | pcie-artpec6.c | 147 unsigned int retries; in artpec6_pcie_wait_for_phy_a6() local 149 retries = 50; in artpec6_pcie_wait_for_phy_a6() 153 retries--; in artpec6_pcie_wait_for_phy_a6() 154 } while (retries && in artpec6_pcie_wait_for_phy_a6() 156 if (!retries) in artpec6_pcie_wait_for_phy_a6() 159 retries = 50; in artpec6_pcie_wait_for_phy_a6() 163 retries--; in artpec6_pcie_wait_for_phy_a6() 164 } while (retries && !(val & PHY_COSPLLLOCK)); in artpec6_pcie_wait_for_phy_a6() 165 if (!retries) in artpec6_pcie_wait_for_phy_a6() 175 unsigned int retries; in artpec6_pcie_wait_for_phy_a7() local [all …]
|
/linux/drivers/media/common/b2c2/ |
H A D | flexcop-sram.c | 78 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 …]
|
H A D | flexcop-eeprom.c | 17 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()
|
/linux/drivers/rtc/ |
H A D | rtc-wm8350.c | 35 int retries = WM8350_GET_TIME_RETRIES, ret; in wm8350_rtc_readtime() local 76 retries, in wm8350_rtc_readtime() 81 } while (retries--); in wm8350_rtc_readtime() 95 int ret, retries = WM8350_SET_TIME_RETRIES; in wm8350_rtc_settime() local 118 } while (--retries && !(rtc_ctrl & WM8350_RTC_STS)); in wm8350_rtc_settime() 120 if (!retries) { in wm8350_rtc_settime() 187 int retries = WM8350_SET_ALM_RETRIES; in wm8350_rtc_stop_alarm() local 201 } while (retries-- && !(rtc_ctrl & WM8350_RTC_ALMSTS)); in wm8350_rtc_stop_alarm() 212 int retries = WM8350_SET_ALM_RETRIES; in wm8350_rtc_start_alarm() local 224 } while (retries-- && rtc_ctrl & WM8350_RTC_ALMSTS); in wm8350_rtc_start_alarm() [all …]
|
H A D | rtc-sun4v.c | 22 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()
|
/linux/drivers/char/xilinx_hwicap/ |
H A D | fifo_icap.c | 218 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()
|
H A D | buffer_icap.c | 191 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()
|
/linux/drivers/net/ethernet/broadcom/genet/ |
H A D | bcmgenet_wol.c | 113 int retries = 0; in bcmgenet_poll_wol_status() local 117 retries++; in bcmgenet_poll_wol_status() 118 if (retries > 5) { in bcmgenet_poll_wol_status() 125 return retries; in bcmgenet_poll_wol_status() 142 int retries = 0; in bcmgenet_wol_power_down_cfg() local 181 retries = bcmgenet_poll_wol_status(priv); in bcmgenet_wol_power_down_cfg() 182 if (retries < 0) { in bcmgenet_wol_power_down_cfg() 187 return retries; in bcmgenet_wol_power_down_cfg() 191 retries); in bcmgenet_wol_power_down_cfg()
|
/linux/net/vmw_vsock/ |
H A D | vmci_transport_notify_qstate.c | 104 unsigned int retries; in vmci_transport_send_read_notification() local 109 retries = 0; in vmci_transport_send_read_notification() 122 retries < VMCI_TRANSPORT_MAX_DGRAM_RESENDS) { in vmci_transport_send_read_notification() 127 retries++; in vmci_transport_send_read_notification() 130 if (retries >= VMCI_TRANSPORT_MAX_DGRAM_RESENDS && !sent_read) in vmci_transport_send_read_notification() 312 int retries = 0; in vmci_transport_notify_pkt_send_post_enqueue() local 323 retries < VMCI_TRANSPORT_MAX_DGRAM_RESENDS) { in vmci_transport_notify_pkt_send_post_enqueue() 328 retries++; in vmci_transport_notify_pkt_send_post_enqueue() 332 if (retries >= VMCI_TRANSPORT_MAX_DGRAM_RESENDS && !sent_wrote) { in vmci_transport_notify_pkt_send_post_enqueue()
|
H A D | vmci_transport_notify.c | 263 unsigned int retries; in vmci_transport_send_read_notification() local 268 retries = 0; in vmci_transport_send_read_notification() 281 retries < VMCI_TRANSPORT_MAX_DGRAM_RESENDS) { in vmci_transport_send_read_notification() 286 retries++; in vmci_transport_send_read_notification() 289 if (retries >= VMCI_TRANSPORT_MAX_DGRAM_RESENDS) in vmci_transport_send_read_notification() 555 int retries = 0; in vmci_transport_notify_pkt_send_post_enqueue() local 577 retries < VMCI_TRANSPORT_MAX_DGRAM_RESENDS) { in vmci_transport_notify_pkt_send_post_enqueue() 582 retries++; in vmci_transport_notify_pkt_send_post_enqueue() 585 if (retries >= VMCI_TRANSPORT_MAX_DGRAM_RESENDS) { in vmci_transport_notify_pkt_send_post_enqueue()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | pci_vsc.c | 72 int retries = 0; in mlx5_vsc_gw_lock() local 78 if (retries > VSC_MAX_RETRIES) { in mlx5_vsc_gw_lock() 93 retries++; in mlx5_vsc_gw_lock() 113 retries++; in mlx5_vsc_gw_lock() 182 int retries = 0; in mlx5_vsc_wait_on_flag() local 187 if (retries > VSC_MAX_RETRIES) in mlx5_vsc_wait_on_flag() 194 retries++; in mlx5_vsc_wait_on_flag() 196 if ((retries & 0xf) == 0) in mlx5_vsc_wait_on_flag()
|
/linux/include/trace/events/ |
H A D | fsi_master_ast_cf.h | 71 TP_PROTO(const struct fsi_master_acf *master, int retries), 72 TP_ARGS(master, retries), 75 __field(int, retries) 79 __entry->retries = retries; 82 __entry->master_idx, __entry->retries
|
H A D | oom.h | 188 int retries, 192 TP_ARGS(order, priority, result, retries, max_retries, ret), 198 __field( int, retries) 207 __entry->retries = retries; 216 __entry->retries, __entry->max_retries,
|
/linux/drivers/input/keyboard/ |
H A D | lm8333.c | 44 int retries = 0, ret; in lm8333_read8() local 48 } while (ret < 0 && retries++ < LM8333_READ_RETRIES); in lm8333_read8() 55 int retries = 0, ret; in lm8333_write8() local 59 } while (ret < 0 && retries++ < LM8333_READ_RETRIES); in lm8333_write8() 66 int retries = 0, ret; in lm8333_read_block() local 71 } while (ret < 0 && retries++ < LM8333_READ_RETRIES); in lm8333_read_block()
|
/linux/drivers/platform/x86/intel/speed_select_if/ |
H A D | isst_if_mbox_msr.c | 35 u32 retries; in isst_if_send_mbox_cmd() local 40 retries = OS_MAILBOX_RETRY_COUNT; in isst_if_send_mbox_cmd() 49 } while (--retries); in isst_if_send_mbox_cmd() 65 retries = OS_MAILBOX_RETRY_COUNT; in isst_if_send_mbox_cmd() 82 } while (--retries); in isst_if_send_mbox_cmd()
|
/linux/drivers/char/ipmi/ |
H A D | ipmi_devintf.c | 142 int retries, in handle_send_req() argument 191 retries, in handle_send_req() 307 int retries; in ipmi_ioctl() local 316 retries = priv->default_retries; in ipmi_ioctl() 320 rv = handle_send_req(priv->user, &req, retries, retry_time_ms); in ipmi_ioctl() 335 req.retries, in ipmi_ioctl() 560 priv->default_retries = parms.retries; in ipmi_ioctl() 572 parms.retries = priv->default_retries; in ipmi_ioctl() 657 compat_int_t retries; member 686 p64->retries = p32->retries; in get_compat_ipmi_req_settime() [all …]
|
/linux/drivers/power/supply/ |
H A D | sbs-manager.c | 60 int reg, retries; in sbsm_read_word() local 62 for (retries = SBSM_RETRY_CNT; retries > 0; retries--) { in sbsm_read_word() 78 int ret, retries; in sbsm_write_word() local 80 for (retries = SBSM_RETRY_CNT; retries > 0; retries--) { in sbsm_write_word()
|
/linux/drivers/i2c/algos/ |
H A D | i2c-algo-bit.c | 320 unsigned char addr, int retries) in try_address() argument 325 for (i = 0; i <= retries; i++) { in try_address() 327 if (ret == 1 || i == retries) in try_address() 473 int ret, retries; in bit_doAddress() local 475 retries = nak_ok ? 0 : i2c_adap->retries; in bit_doAddress() 482 ret = try_address(i2c_adap, addr, retries); in bit_doAddress() 501 ret = try_address(i2c_adap, addr, retries); in bit_doAddress() 512 ret = try_address(i2c_adap, addr, retries); in bit_doAddress() 649 adap->retries = 3; in __i2c_bit_add_bus()
|
/linux/drivers/platform/x86/intel/ifs/ |
H A D | runtest.c | 239 int retries; in ifs_test_core() local 260 retries = MAX_IFS_RETRIES; in ifs_test_core() 281 if (--retries == 0) { in ifs_test_core() 287 retries = MAX_IFS_RETRIES; in ifs_test_core() 548 int retries; in ifs_sbaf_test_core() local 556 retries = MAX_IFS_RETRIES; in ifs_sbaf_test_core() 570 run_params.retry_cnt = &retries; in ifs_sbaf_test_core() 578 retries = MAX_IFS_RETRIES; in ifs_sbaf_test_core() 588 if (--retries == 0) { in ifs_sbaf_test_core() 595 retries = MAX_IFS_RETRIES; in ifs_sbaf_test_core()
|
/linux/tools/testing/selftests/powerpc/nx-gzip/ |
H A D | gzip_vas.c | 197 int i, ret, retries; in nxu_run_job() local 202 retries = 5000; in nxu_run_job() 203 while (i++ < retries) { in nxu_run_job() 210 i, retries, ret)); in nxu_run_job() 247 prt_err("%d, failed pid= %d\n", retries, in nxu_run_job()
|