/drivers/spi/ |
D | spi-altera-dfl.c | 53 int loops; in indirect_bus_reg_read() local 58 loops = 0; in indirect_bus_reg_read() 60 (loops++ < INDIRECT_TIMEOUT)) in indirect_bus_reg_read() 63 if (loops >= INDIRECT_TIMEOUT) { in indirect_bus_reg_read() 64 pr_err("%s timed out %d\n", __func__, loops); in indirect_bus_reg_read() 79 int loops; in indirect_bus_reg_write() local 84 loops = 0; in indirect_bus_reg_write() 86 (loops++ < INDIRECT_TIMEOUT)) in indirect_bus_reg_write() 89 if (loops >= INDIRECT_TIMEOUT) { in indirect_bus_reg_write() 90 pr_err("%s timed out %d\n", __func__, loops); in indirect_bus_reg_write()
|
D | spi-s3c64xx.c | 201 unsigned long loops; in s3c64xx_flush_fifo() local 216 loops = msecs_to_loops(1); in s3c64xx_flush_fifo() 219 } while (TX_FIFO_LVL(val, sdd) && loops--); in s3c64xx_flush_fifo() 221 if (loops == 0) in s3c64xx_flush_fifo() 225 loops = msecs_to_loops(1); in s3c64xx_flush_fifo() 232 } while (loops--); in s3c64xx_flush_fifo() 234 if (loops == 0) in s3c64xx_flush_fifo() 518 int loops; in s3c64xx_wait_for_pio() local 549 loops = xfer->len / ((FIFO_LVL_MASK(sdd) >> 1) + 1); in s3c64xx_wait_for_pio() 554 (loops ? ms : 0)); in s3c64xx_wait_for_pio() [all …]
|
D | spi-cavium.c | 19 unsigned int loops = 0; in octeon_spi_wait_ready() local 22 if (loops++) in octeon_spi_wait_ready()
|
/drivers/clocksource/ |
D | timer-vt8500.c | 45 int loops = msecs_to_loops(10); in vt8500_timer_read() local 48 && --loops) in vt8500_timer_read() 64 int loops = msecs_to_loops(10); in vt8500_timer_set_next_event() local 67 && --loops) in vt8500_timer_set_next_event()
|
/drivers/media/pci/bt8xx/ |
D | bttv-audio-hook.c | 18 int bits_out, loops, vol, data; in winview_volume() local 30 for (loops = 17; loops >= 0 ; loops--) { in winview_volume() 31 if (bits_out & (1<<loops)) in winview_volume()
|
/drivers/phy/marvell/ |
D | phy-mmp3-usb.c | 199 int loops; in mmp3_usb_phy_calibrate() local 221 loops = 0; in mmp3_usb_phy_calibrate() 224 loops++; in mmp3_usb_phy_calibrate() 225 if (loops > 100) { in mmp3_usb_phy_calibrate()
|
D | phy-pxa-usb.c | 163 int loops; in pxa_usb_phy_init() local 225 loops = 0; in pxa_usb_phy_init() 228 loops++; in pxa_usb_phy_init() 229 if (loops > 100) { in pxa_usb_phy_init()
|
/drivers/tty/serial/ |
D | sb1250-duart.c | 196 int loops = 10000; in sbd_receive_drain() local 198 while (sbd_receive_ready(sport) && --loops) in sbd_receive_drain() 200 return loops; in sbd_receive_drain() 210 int loops = 10000; in sbd_transmit_drain() local 212 while (!sbd_transmit_ready(sport) && --loops) in sbd_transmit_drain() 214 return loops; in sbd_transmit_drain() 224 int loops = 10000; in sbd_line_drain() local 226 while (!sbd_transmit_empty(sport) && --loops) in sbd_line_drain() 228 return loops; in sbd_line_drain()
|
D | zs.c | 230 int loops = 10000; in zs_receive_drain() local 232 while ((read_zsreg(zport, R0) & Rx_CH_AV) && --loops) in zs_receive_drain() 234 return loops; in zs_receive_drain() 240 int loops = 10000; in zs_transmit_drain() local 242 while (!(read_zsreg(zport, R0) & Tx_BUF_EMP) && --loops) { in zs_transmit_drain() 247 return loops; in zs_transmit_drain() 253 int loops = 10000; in zs_line_drain() local 255 while (!(read_zsreg(zport, R1) & ALL_SNT) && --loops) { in zs_line_drain() 260 return loops; in zs_line_drain()
|
D | vt8500_serial.c | 305 unsigned int loops = 1000; in vt8500_set_baud_rate() local 313 while ((vt8500_read(port, VT8500_URUSR) & (1 << 5)) && --loops) in vt8500_set_baud_rate() 364 unsigned int loops = 1000; in vt8500_set_termios() local 419 && --loops) in vt8500_set_termios()
|
/drivers/video/fbdev/ |
D | wmt_ge_rops.c | 113 int loops = 5000000; in wmt_ge_sync() local 114 while ((readl(regbase + GE_STATUS_OFF) & 4) && --loops) in wmt_ge_sync() 116 return loops > 0 ? 0 : -EBUSY; in wmt_ge_sync()
|
D | carminefb.c | 434 u32 loops; in init_hardware() local 486 for (loops = 0; loops < CARMINE_DCTL_INIT_WAIT_LIMIT; loops++) { in init_hardware() 497 if (loops >= CARMINE_DCTL_INIT_WAIT_LIMIT) { in init_hardware()
|
/drivers/fpga/ |
D | dfl-n3000-nios.c | 458 int loops; in n3000_nios_poll_stat_timeout() local 468 for (loops = N3000_NIOS_REGBUS_RETRY_COUNT; loops > 0 ; loops--) { in n3000_nios_poll_stat_timeout() 475 return (loops > 0) ? 0 : -ETIMEDOUT; in n3000_nios_poll_stat_timeout()
|
/drivers/i2c/busses/ |
D | i2c-jz4780.c | 186 unsigned long loops = 5; in jz4780_i2c_disable() local 196 } while (--loops); in jz4780_i2c_disable() 205 unsigned long loops = 5; in jz4780_i2c_enable() local 215 } while (--loops); in jz4780_i2c_enable() 224 unsigned long loops = 5; in jz4780_i2c_set_target() local 233 } while (--loops); in jz4780_i2c_set_target() 235 if (loops) { in jz4780_i2c_set_target()
|
D | i2c-ibm_iic.c | 462 int i, j, loops, ret = 0; in iic_xfer_bytes() local 469 loops = (len + 3) / 4; in iic_xfer_bytes() 470 for (i = 0; i < loops; ++i, len -= 4){ in iic_xfer_bytes() 478 if (i < loops - 1) in iic_xfer_bytes() 498 if (combined_xfer || (i < loops - 1)) in iic_xfer_bytes()
|
/drivers/soc/fsl/qbman/ |
D | bman_test_api.c | 99 int i, loops = LOOPS; in bman_test_api() local 141 if (--loops) in bman_test_api()
|
/drivers/media/common/saa7146/ |
D | saa7146_core.c | 90 unsigned long loops; in saa7146_wait_for_debi_done_busyloop() local 93 loops = us1; in saa7146_wait_for_debi_done_busyloop() 97 if (!loops--) { in saa7146_wait_for_debi_done_busyloop() 106 loops = us2 / 5; in saa7146_wait_for_debi_done_busyloop() 111 if (!loops--) { in saa7146_wait_for_debi_done_busyloop()
|
/drivers/platform/x86/intel/ |
D | punit_ipc.c | 103 int loops = CMD_TIMEOUT_SECONDS * USEC_PER_SEC; in intel_punit_ipc_check_status() local 114 while ((ipc_read_status(ipcdev, type) & CMD_RUN) && --loops) in intel_punit_ipc_check_status() 116 if (!loops) { in intel_punit_ipc_check_status()
|
/drivers/pwm/ |
D | pwm-vt8500.c | 61 int loops = msecs_to_loops(10); in pwm_busy_wait() local 64 while ((readl(vt8500->base + REG_STATUS) & mask) && --loops) in pwm_busy_wait() 67 if (unlikely(!loops)) in pwm_busy_wait()
|
/drivers/usb/gadget/udc/ |
D | mv_udc_core.c | 257 unsigned int loops; in queue_dtd() local 277 loops = LOOPS(READSAFE_TIMEOUT); in queue_dtd() 298 loops--; in queue_dtd() 299 if (loops == 0) { in queue_dtd() 625 unsigned int loops; in mv_ep_fifo_flush() local 644 loops = LOOPS(EPSTATUS_TIMEOUT); in mv_ep_fifo_flush() 648 if (loops == 0) { in mv_ep_fifo_flush() 676 loops--; in mv_ep_fifo_flush() 1003 unsigned int loops; in udc_reset() local 1015 loops = LOOPS(RESET_TIMEOUT); in udc_reset() [all …]
|
D | mv_u3d_core.c | 691 unsigned int loops; in mv_u3d_ep_fifo_flush() local 727 loops = LOOPS(MV_U3D_FLUSH_TIMEOUT); in mv_u3d_ep_fifo_flush() 734 if (loops == 0) { in mv_u3d_ep_fifo_flush() 740 loops--; in mv_u3d_ep_fifo_flush() 749 loops = LOOPS(MV_U3D_FLUSH_TIMEOUT); in mv_u3d_ep_fifo_flush() 756 if (loops == 0) { in mv_u3d_ep_fifo_flush() 762 loops--; in mv_u3d_ep_fifo_flush() 1060 unsigned int loops; in mv_u3d_controller_reset() local 1072 loops = LOOPS(MV_U3D_RESET_TIMEOUT); in mv_u3d_controller_reset() 1074 if (loops == 0) { in mv_u3d_controller_reset() [all …]
|
/drivers/staging/qlge/ |
D | TODO | 27 * some "while" loops could be rewritten with simple "for", ex. 32 * fix weird indentation (all over, ex. the for loops in qlge_get_stats())
|
/drivers/usb/gadget/udc/aspeed-vhub/ |
D | epn.c | 415 u32 state, reg, loops; in ast_vhub_stop_active_req() local 424 for (loops = 0; loops < 1000; loops++) { in ast_vhub_stop_active_req() 432 if (loops >= 1000) in ast_vhub_stop_active_req()
|
/drivers/input/touchscreen/ |
D | tps6507x-ts.c | 122 s32 loops = 0; in tps6507x_adc_standby() local 144 loops++; in tps6507x_adc_standby()
|
/drivers/char/tpm/ |
D | tpm1-cmd.c | 645 unsigned int loops; in tpm1_do_selftest() local 652 loops = jiffies_to_msecs(duration) / delay_msec; in tpm1_do_selftest() 691 } while (--loops > 0); in tpm1_do_selftest()
|