/drivers/sn/ |
D | ioc3.c | 219 int loops = 16, i; in read_redir_page() local 223 loops--; in read_redir_page() 224 if(loops<0) { in read_redir_page() 229 loops = 3; in read_redir_page() 230 while(loops>0) { in read_redir_page() 239 loops--; in read_redir_page() 250 int i,j,loops = 3,crc_ok; in read_redir_map() local 253 while(loops>0) { in read_redir_map() 270 loops--; in read_redir_map() 313 int i, loops = 3; in read_mac() local [all …]
|
/drivers/clocksource/ |
D | vt8500_timer.c | 57 int loops = msecs_to_loops(10); in vt8500_timer_read() local 60 && --loops) in vt8500_timer_read() 76 int loops = msecs_to_loops(10); in vt8500_timer_set_next_event() local 79 && --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/tty/serial/ |
D | sb1250-duart.c | 205 int loops = 10000; in sbd_receive_drain() local 207 while (sbd_receive_ready(sport) && --loops) in sbd_receive_drain() 209 return loops; in sbd_receive_drain() 219 int loops = 10000; in sbd_transmit_drain() local 221 while (!sbd_transmit_ready(sport) && --loops) in sbd_transmit_drain() 223 return loops; in sbd_transmit_drain() 233 int loops = 10000; in sbd_line_drain() local 235 while (!sbd_transmit_empty(sport) && --loops) in sbd_line_drain() 237 return loops; in sbd_line_drain()
|
D | zs.c | 233 int loops = 10000; in zs_receive_drain() local 235 while ((read_zsreg(zport, R0) & Rx_CH_AV) && --loops) in zs_receive_drain() 237 return loops; in zs_receive_drain() 243 int loops = 10000; in zs_transmit_drain() local 245 while (!(read_zsreg(zport, R0) & Tx_BUF_EMP) && --loops) { in zs_transmit_drain() 250 return loops; in zs_transmit_drain() 256 int loops = 10000; in zs_line_drain() local 258 while (!(read_zsreg(zport, R1) & ALL_SNT) && --loops) { in zs_line_drain() 263 return loops; in zs_line_drain()
|
D | vt8500_serial.c | 320 unsigned int loops = 1000; in vt8500_set_baud_rate() local 328 while ((vt8500_read(port, VT8500_URUSR) & (1 << 5)) && --loops) in vt8500_set_baud_rate() 379 unsigned int loops = 1000; in vt8500_set_termios() local 434 && --loops) in vt8500_set_termios()
|
D | sn_console.c | 530 int xmit_count, tail, head, loops, ii; in sn_transmit_chars() local 563 loops = (head < tail) ? 2 : 1; in sn_transmit_chars() 565 for (ii = 0; ii < loops; ii++) { in sn_transmit_chars()
|
D | dz.c | 812 int loops = 10000; in dz_console_putchar() local 835 } while (--loops); in dz_console_putchar() 837 if (loops) /* Cannot send otherwise. */ in dz_console_putchar()
|
D | 68328serial.c | 229 int loops = 0; in rs_put_char() local 233 while (!(UTX & UTX_TX_AVAIL) && (loops < 1000)) { in rs_put_char() 234 loops++; in rs_put_char()
|
/drivers/video/fbdev/ |
D | wmt_ge_rops.c | 120 int loops = 5000000; in wmt_ge_sync() local 121 while ((readl(regbase + GE_STATUS_OFF) & 4) && --loops) in wmt_ge_sync() 123 return loops > 0 ? 0 : -EBUSY; in wmt_ge_sync()
|
D | carminefb.c | 433 u32 loops; in init_hardware() local 485 for (loops = 0; loops < CARMINE_DCTL_INIT_WAIT_LIMIT; loops++) { in init_hardware() 496 if (loops >= CARMINE_DCTL_INIT_WAIT_LIMIT) { in init_hardware()
|
/drivers/spi/ |
D | spi-s3c64xx.c | 205 unsigned long loops; in flush_fifo() local 220 loops = msecs_to_loops(1); in flush_fifo() 223 } while (TX_FIFO_LVL(val, sdd) && loops--); in flush_fifo() 225 if (loops == 0) in flush_fifo() 229 loops = msecs_to_loops(1); in flush_fifo() 236 } while (loops--); in flush_fifo() 238 if (loops == 0) in flush_fifo() 527 int loops; in wait_for_pio() local 556 loops = xfer->len / ((FIFO_LVL_MASK(sdd) >> 1) + 1); in wait_for_pio() 561 (loops ? ms : 0)); in wait_for_pio() [all …]
|
D | spi-octeon.c | 38 unsigned int loops = 0; in octeon_spi_wait_ready() local 41 if (loops++) in octeon_spi_wait_ready()
|
/drivers/media/common/saa7146/ |
D | saa7146_core.c | 102 unsigned long loops; in saa7146_wait_for_debi_done_busyloop() local 105 loops = us1; in saa7146_wait_for_debi_done_busyloop() 109 if (!loops--) { in saa7146_wait_for_debi_done_busyloop() 118 loops = us2 / 5; in saa7146_wait_for_debi_done_busyloop() 123 if (!loops--) { in saa7146_wait_for_debi_done_busyloop()
|
/drivers/pwm/ |
D | pwm-vt8500.c | 69 int loops = msecs_to_loops(10); in pwm_busy_wait() local 72 while ((readl(vt8500->base + REG_STATUS) & mask) && --loops) in pwm_busy_wait() 75 if (unlikely(!loops)) in pwm_busy_wait()
|
/drivers/usb/gadget/udc/ |
D | mv_udc_core.c | 264 unsigned int loops; in queue_dtd() local 284 loops = LOOPS(READSAFE_TIMEOUT); in queue_dtd() 305 loops--; in queue_dtd() 306 if (loops == 0) { in queue_dtd() 638 unsigned int loops; in mv_ep_fifo_flush() local 657 loops = LOOPS(EPSTATUS_TIMEOUT); in mv_ep_fifo_flush() 661 if (loops == 0) { in mv_ep_fifo_flush() 689 loops--; in mv_ep_fifo_flush() 1016 unsigned int loops; in udc_reset() local 1028 loops = LOOPS(RESET_TIMEOUT); in udc_reset() [all …]
|
D | mv_u3d_core.c | 704 unsigned int loops; in mv_u3d_ep_fifo_flush() local 740 loops = LOOPS(MV_U3D_FLUSH_TIMEOUT); in mv_u3d_ep_fifo_flush() 747 if (loops == 0) { in mv_u3d_ep_fifo_flush() 753 loops--; in mv_u3d_ep_fifo_flush() 762 loops = LOOPS(MV_U3D_FLUSH_TIMEOUT); in mv_u3d_ep_fifo_flush() 769 if (loops == 0) { in mv_u3d_ep_fifo_flush() 775 loops--; in mv_u3d_ep_fifo_flush() 1073 unsigned int loops; in mv_u3d_controller_reset() local 1085 loops = LOOPS(MV_U3D_RESET_TIMEOUT); in mv_u3d_controller_reset() 1087 if (loops == 0) { in mv_u3d_controller_reset() [all …]
|
/drivers/i2c/busses/ |
D | i2c-ibm_iic.c | 465 int i, j, loops, ret = 0; in iic_xfer_bytes() local 472 loops = (len + 3) / 4; in iic_xfer_bytes() 473 for (i = 0; i < loops; ++i, len -= 4){ in iic_xfer_bytes() 481 if (i < loops - 1) in iic_xfer_bytes() 501 if (combined_xfer || (i < loops - 1)) in iic_xfer_bytes()
|
/drivers/usb/wusbcore/ |
D | wa-hc.h | 447 unsigned loops = 10; in __wa_wait_status() local 453 if (loops-- == 0) { in __wa_wait_status()
|
/drivers/input/touchscreen/ |
D | tps6507x-ts.c | 130 s32 loops = 0; in tps6507x_adc_standby() local 152 loops++; in tps6507x_adc_standby()
|
/drivers/usb/phy/ |
D | phy-mv-usb.c | 147 unsigned int loops; in mv_otg_reset() local 158 loops = 500; in mv_otg_reset() 160 if (loops == 0) { in mv_otg_reset() 165 loops--; in mv_otg_reset()
|
/drivers/vfio/pci/ |
D | vfio_pci_config.c | 1204 int loops, ret, caps = 0; in vfio_cap_init() local 1222 loops = (PCI_CFG_SPACE_SIZE - PCI_STD_HEADER_SIZEOF) / PCI_CAP_SIZEOF; in vfio_cap_init() 1223 while (pos && loops--) { in vfio_cap_init() 1288 int loops, ret, ecaps = 0; in vfio_ecap_init() local 1295 loops = (pdev->cfg_size - PCI_CFG_SPACE_SIZE) / PCI_CAP_SIZEOF; in vfio_ecap_init() 1297 while (loops-- && epos >= PCI_CFG_SPACE_SIZE) { in vfio_ecap_init()
|
/drivers/net/wireless/b43/ |
D | phy_ht.c | 387 static void b43_phy_ht_run_samples(struct b43_wldev *dev, u16 samps, u16 loops, in b43_phy_ht_run_samples() argument 400 if (loops != 0xFFFF) in b43_phy_ht_run_samples() 401 loops--; in b43_phy_ht_run_samples() 402 b43_phy_write(dev, B43_PHY_HT_SAMP_LOOP_CNT, loops); in b43_phy_ht_run_samples()
|
/drivers/scsi/lpfc/ |
D | lpfc_bsg.h | 76 uint32_t loops; member
|
/drivers/scsi/qla4xxx/ |
D | ql4_nx.c | 959 int ret, loops = 0; in qla4_82xx_rom_fast_read() local 961 while ((qla4_82xx_rom_lock(ha) != 0) && (loops < 50000)) { in qla4_82xx_rom_fast_read() 963 loops++; in qla4_82xx_rom_fast_read() 965 if (loops >= 50000) { in qla4_82xx_rom_fast_read() 1590 int loops = 0; in qla4_82xx_rcvpeg_ready() local 1597 while ((state != PHAN_PEG_RCV_INITIALIZED) && (loops < 30000)) { in qla4_82xx_rcvpeg_ready() 1604 loops++; in qla4_82xx_rcvpeg_ready() 1607 if (loops >= 30000) { in qla4_82xx_rcvpeg_ready() 3663 int loops = 0; in qla4_82xx_read_flash_data() local 3664 while ((qla4_82xx_rom_lock(ha) != 0) && (loops < 50000)) { in qla4_82xx_read_flash_data() [all …]
|