/kernel/linux/linux-5.10/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() 12 "tw_indir_writel() retries exhausted before writing\n"); 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() 26 "tw_indir_readl() retries exhausted before reading\n"); 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() [all...] |
/kernel/linux/linux-6.6/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() 12 "tw_indir_writel() retries exhausted before writing\n"); 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() 26 "tw_indir_readl() retries exhausted before reading\n"); 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() [all...] |
/kernel/linux/linux-5.10/drivers/char/ |
H A D | dtlk.c | 131 int i = 0, retries; in dtlk_read() local 139 for (retries = 0; retries < loops_per_jiffy; retries++) { in dtlk_read() 153 if (retries == loops_per_jiffy) in dtlk_read() 162 int i = 0, retries = 0, ch; in dtlk_write() local 203 for (retries = 0; in dtlk_write() 204 retries < loops_per_jiffy / (4000/HZ); in dtlk_write() 205 retries++) in dtlk_write() 210 retries in dtlk_write() 568 int portval, retries = 0; dtlk_read_tts() local 598 int retries = 0; dtlk_read_lpc() local 634 int retries = 0; dtlk_write_tts() local [all...] |
/kernel/linux/linux-6.6/drivers/char/ |
H A D | dtlk.c | 131 int i = 0, retries; in dtlk_read() local 139 for (retries = 0; retries < loops_per_jiffy; retries++) { in dtlk_read() 153 if (retries == loops_per_jiffy) in dtlk_read() 162 int i = 0, retries = 0, ch; in dtlk_write() local 203 for (retries = 0; in dtlk_write() 204 retries < loops_per_jiffy / (4000/HZ); in dtlk_write() 205 retries++) in dtlk_write() 210 retries in dtlk_write() 568 int portval, retries = 0; dtlk_read_tts() local 598 int retries = 0; dtlk_read_lpc() local 634 int retries = 0; dtlk_write_tts() local [all...] |
/kernel/linux/linux-5.10/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() 76 dev_dbg(&sl->dev, "%s, mutex unlocked, retries: %d\n", in state_read() 77 (bytes_read > 0) ? "succeeded" : "error", retries); in state_read() 89 unsigned int retries = W1_F3A_RETRIES; in output_write() local 106 while (retries in output_write() [all...] |
H A D | w1_ds2438.c | 54 unsigned int retries = W1_DS2438_RETRIES; in w1_ds2438_get_page() local 59 while (retries--) { in w1_ds2438_get_page() 88 unsigned int retries = W1_DS2438_RETRIES; in w1_ds2438_get_temperature() local 96 while (retries--) { in w1_ds2438_get_temperature() 130 unsigned int retries = W1_DS2438_RETRIES; in w1_ds2438_change_config_bit() local 135 while (retries--) { in w1_ds2438_change_config_bit() 166 retries = W1_DS2438_RETRIES; in w1_ds2438_change_config_bit() 167 while (retries--) { in w1_ds2438_change_config_bit() 190 unsigned int retries = W1_DS2438_RETRIES; in w1_ds2438_get_voltage() local 203 while (retries in w1_ds2438_get_voltage() [all...] |
/kernel/linux/linux-6.6/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() 76 dev_dbg(&sl->dev, "%s, mutex unlocked, retries: %d\n", 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() [all...] |
/kernel/linux/linux-5.10/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 [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() 112 for (i = 0; i < retries; i++) { in flexcop_eeprom_request() 122 u8 *buf, u16 len, int retries) in flexcop_eeprom_lrc_read() 124 int ret = flexcop_eeprom_request(fc, FC_READ, addr, buf, len, retries); in flexcop_eeprom_lrc_read() 107 flexcop_eeprom_request(struct flexcop_device *fc, flexcop_access_op_t op, u16 addr, u8 *buf, u16 len, int retries) flexcop_eeprom_request() argument 121 flexcop_eeprom_lrc_read(struct flexcop_device *fc, u16 addr, u8 *buf, u16 len, int retries) flexcop_eeprom_lrc_read() argument
|
/kernel/linux/linux-6.6/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 [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() 112 for (i = 0; i < retries; i++) { in flexcop_eeprom_request() 122 u8 *buf, u16 len, int retries) in flexcop_eeprom_lrc_read() 124 int ret = flexcop_eeprom_request(fc, FC_READ, addr, buf, len, retries); in flexcop_eeprom_lrc_read() 107 flexcop_eeprom_request(struct flexcop_device *fc, flexcop_access_op_t op, u16 addr, u8 *buf, u16 len, int retries) flexcop_eeprom_request() argument 121 flexcop_eeprom_lrc_read(struct flexcop_device *fc, u16 addr, u8 *buf, u16 len, int retries) flexcop_eeprom_lrc_read() argument
|
/kernel/linux/linux-5.10/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...] |
H A D | pcie-designware.c | 233 u32 retries, val; in dw_pcie_prog_outbound_atu_unroll() local 257 for (retries = 0; retries < LINK_WAIT_MAX_IATU_RETRIES; retries++) { in dw_pcie_prog_outbound_atu_unroll() 272 u32 retries, val; in __dw_pcie_prog_outbound_atu() local 303 for (retries = 0; retries < LINK_WAIT_MAX_IATU_RETRIES; retries++) { in __dw_pcie_prog_outbound_atu() 348 u32 retries, val; in dw_pcie_prog_inbound_atu_unroll() local 377 for (retries in dw_pcie_prog_inbound_atu_unroll() 395 u32 retries, val; dw_pcie_prog_inbound_atu() local 471 int retries; dw_pcie_wait_for_link() local [all...] |
/kernel/linux/linux-6.6/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...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/genet/ |
H A D | bcmgenet_wol.c | 100 int retries = 0; in bcmgenet_poll_wol_status() local 104 retries++; in bcmgenet_poll_wol_status() 105 if (retries > 5) { in bcmgenet_poll_wol_status() 112 return retries; in bcmgenet_poll_wol_status() 129 int retries = 0; in bcmgenet_wol_power_down_cfg() local 166 retries = bcmgenet_poll_wol_status(priv); in bcmgenet_wol_power_down_cfg() 167 if (retries < 0) { in bcmgenet_wol_power_down_cfg() 172 return retries; in bcmgenet_wol_power_down_cfg() 176 retries); in bcmgenet_wol_power_down_cfg()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/genet/ |
H A D | bcmgenet_wol.c | 117 int retries = 0; in bcmgenet_poll_wol_status() local 121 retries++; in bcmgenet_poll_wol_status() 122 if (retries > 5) { in bcmgenet_poll_wol_status() 129 return retries; in bcmgenet_poll_wol_status() 146 int retries = 0; in bcmgenet_wol_power_down_cfg() local 183 retries = bcmgenet_poll_wol_status(priv); in bcmgenet_wol_power_down_cfg() 184 if (retries < 0) { in bcmgenet_wol_power_down_cfg() 189 return retries; in bcmgenet_wol_power_down_cfg() 193 retries); in bcmgenet_wol_power_down_cfg()
|
/kernel/linux/linux-5.10/drivers/fsi/ |
H A D | fsi-scom.c | 149 int rc, retries, err = 0; in put_indirect_scom_form0() local 160 for (retries = 0; retries < SCOM_MAX_IND_RETRIES; retries++) { in put_indirect_scom_form0() 192 int rc, retries, err = 0; in get_indirect_scom_form0() local 200 for (retries = 0; retries < SCOM_MAX_IND_RETRIES; retries++) { in get_indirect_scom_form0() 290 int rc, retries; in put_scom() local 292 for (retries in put_scom() 324 int rc, retries; get_scom() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | pci_vsc.c | 67 int retries = 0; in mlx5_vsc_gw_lock() local 73 if (retries > VSC_MAX_RETRIES) { in mlx5_vsc_gw_lock() 84 retries++; in mlx5_vsc_gw_lock() 104 retries++; in mlx5_vsc_gw_lock() 173 int retries = 0; in mlx5_vsc_wait_on_flag() local 178 if (retries > VSC_MAX_RETRIES) in mlx5_vsc_wait_on_flag() 185 retries++; in mlx5_vsc_wait_on_flag() 187 if ((retries & 0xf) == 0) in mlx5_vsc_wait_on_flag()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | pci_vsc.c | 67 int retries = 0; in mlx5_vsc_gw_lock() local 73 if (retries > VSC_MAX_RETRIES) { in mlx5_vsc_gw_lock() 84 retries++; in mlx5_vsc_gw_lock() 104 retries++; in mlx5_vsc_gw_lock() 173 int retries = 0; in mlx5_vsc_wait_on_flag() local 178 if (retries > VSC_MAX_RETRIES) in mlx5_vsc_wait_on_flag() 185 retries++; in mlx5_vsc_wait_on_flag() 187 if ((retries & 0xf) == 0) in mlx5_vsc_wait_on_flag()
|
/kernel/linux/linux-5.10/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 in wm8350_rtc_start_alarm() 404 int retries; wm8350_rtc_probe() local [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()
|
/kernel/linux/linux-6.6/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 in wm8350_rtc_start_alarm() 402 int retries; wm8350_rtc_probe() local [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()
|