Searched refs:loops (Results 76 - 100 of 147) sorted by path

123456

/linux-master/drivers/pwm/
H A Dpwm-vt8500.c61 int loops = msecs_to_loops(10); local
64 while ((readl(vt8500->base + REG_STATUS) & mask) && --loops)
67 if (unlikely(!loops))
/linux-master/drivers/scsi/lpfc/
H A Dlpfc_bsg.c2418 link_diag_test_cmd->loops);
H A Dlpfc_bsg.h85 uint32_t loops; member in struct:sli4_link_diag
/linux-master/drivers/scsi/qla2xxx/
H A Dqla_nx.c925 int ret, loops = 0; local
929 while ((qla82xx_rom_lock(ha) != 0) && (loops < 50000)) {
932 loops++;
934 if (loops >= 50000) {
1034 int loops = 0; local
1038 while ((qla82xx_rom_lock(ha) != 0) && (loops < 50000)) {
1041 loops++;
1043 if (loops >= 50000) {
/linux-master/drivers/scsi/qla4xxx/
H A Dql4_nx.c947 int ret, loops = 0; local
949 while ((qla4_82xx_rom_lock(ha) != 0) && (loops < 50000)) {
951 loops++;
953 if (loops >= 50000) {
1578 int loops = 0; local
1585 while ((state != PHAN_PEG_RCV_INITIALIZED) && (loops < 30000)) {
1592 loops++;
1595 if (loops >= 30000) {
3643 int loops = 0; local
3644 while ((qla4_82xx_rom_lock(ha) != 0) && (loops < 5000
[all...]
/linux-master/drivers/spi/
H A Dspi-altera-dfl.c53 int loops; local
58 loops = 0;
60 (loops++ < INDIRECT_TIMEOUT))
63 if (loops >= INDIRECT_TIMEOUT) {
64 pr_err("%s timed out %d\n", __func__, loops);
79 int loops; local
84 loops = 0;
86 (loops++ < INDIRECT_TIMEOUT))
89 if (loops >= INDIRECT_TIMEOUT) {
90 pr_err("%s timed out %d\n", __func__, loops);
[all...]
H A Dspi-cavium.c19 unsigned int loops = 0; local
22 if (loops++)
H A Dspi-fsi.c301 int loops; local
320 loops = 0;
323 if (loops++ && time_after(jiffies, end))
339 loops = 0;
342 if (loops++ && time_after(jiffies, end))
364 int loops = 0; local
377 if (loops++ && time_after(jiffies, end))
H A Dspi-s3c64xx.c230 unsigned long loops; local
245 loops = msecs_to_loops(1);
248 } while (TX_FIFO_LVL(val, sdd) && loops--);
250 if (loops == 0)
254 loops = msecs_to_loops(1);
261 } while (loops--);
263 if (loops == 0)
620 int loops; local
658 * size, calculate the loops and read the fifo as many times.
659 * loops
[all...]
/linux-master/drivers/tty/serial/
H A Ddz.c812 int loops = 10000; local
835 } while (--loops);
837 if (loops) /* Cannot send otherwise. */
H A Dip22zilog.c994 int loops = ZS_PUT_CHAR_MAX_DELAY; local
1006 } while (--loops);
H A Dsb1250-duart.c196 int loops = 10000; local
198 while (sbd_receive_ready(sport) && --loops)
200 return loops;
210 int loops = 10000; local
212 while (!sbd_transmit_ready(sport) && --loops)
214 return loops;
224 int loops = 10000; local
226 while (!sbd_transmit_empty(sport) && --loops)
228 return loops;
H A Dsunzilog.c1129 int loops = ZS_PUT_CHAR_MAX_DELAY; local
1141 } while (--loops);
H A Dvt8500_serial.c284 unsigned int loops = 1000; local
292 while ((vt8500_read(port, VT8500_URUSR) & (1 << 5)) && --loops)
343 unsigned int loops = 1000; local
398 && --loops)
H A Dzs.c230 int loops = 10000; local
232 while ((read_zsreg(zport, R0) & Rx_CH_AV) && --loops)
234 return loops;
240 int loops = 10000; local
242 while (!(read_zsreg(zport, R0) & Tx_BUF_EMP) && --loops) {
247 return loops;
253 int loops = 10000; local
255 while (!(read_zsreg(zport, R1) & ALL_SNT) && --loops) {
260 return loops;
/linux-master/drivers/usb/early/
H A Dehci-dbgp.c294 int size, int loops)
314 ret = dbgp_wait_until_done(ctrl, loops);
293 dbgp_bulk_read(unsigned devnum, unsigned endpoint, void *data, int size, int loops) argument
/linux-master/drivers/usb/gadget/udc/aspeed-vhub/
H A Depn.c422 u32 state, reg, loops; local
431 for (loops = 0; loops < 1000; loops++) {
439 if (loops >= 1000)
/linux-master/drivers/usb/gadget/udc/
H A Dmv_u3d_core.c691 unsigned int loops; local
727 loops = LOOPS(MV_U3D_FLUSH_TIMEOUT);
734 if (loops == 0) {
740 loops--;
749 loops = LOOPS(MV_U3D_FLUSH_TIMEOUT);
756 if (loops == 0) {
762 loops--;
1062 unsigned int loops; local
1074 loops = LOOPS(MV_U3D_RESET_TIMEOUT);
1076 if (loops
[all...]
H A Dmv_udc_core.c257 unsigned int loops; local
277 loops = LOOPS(READSAFE_TIMEOUT);
298 loops--;
299 if (loops == 0) {
625 unsigned int loops; local
644 loops = LOOPS(EPSTATUS_TIMEOUT);
648 if (loops == 0) {
676 loops--;
1005 unsigned int loops; local
1017 loops
1859 unsigned int loops; local
[all...]
/linux-master/drivers/vfio/pci/
H A Dvfio_pci_config.c1522 int loops, ret, caps = 0; local
1540 loops = (PCI_CFG_SPACE_SIZE - PCI_STD_HEADER_SIZEOF) / PCI_CAP_SIZEOF;
1541 while (pos && loops--) {
1615 int loops, ret, ecaps = 0; local
1622 loops = (pdev->cfg_size - PCI_CFG_SPACE_SIZE) / PCI_CAP_SIZEOF;
1624 while (loops-- && epos >= PCI_CFG_SPACE_SIZE) {
/linux-master/drivers/video/fbdev/
H A Dcarminefb.c435 u32 loops; local
487 for (loops = 0; loops < CARMINE_DCTL_INIT_WAIT_LIMIT; loops++) {
498 if (loops >= CARMINE_DCTL_INIT_WAIT_LIMIT) {
H A Dwmt_ge_rops.c115 int loops = 5000000; local
116 while ((readl(regbase + GE_STATUS_OFF) & 4) && --loops)
118 return loops > 0 ? 0 : -EBUSY;
/linux-master/fs/btrfs/
H A Dblock-group.c3318 int loops = 0; local
3448 if (!ret && loops == 0) {
3449 loops++;
H A Dextent_io.c336 int loops = 0; local
383 if (!loops) {
385 loops = 1;
H A Dspace-info.c81 * space_info->total_bytes. This loops through the ->priority_tickets and
605 int loops; local
622 * flushing loops and hope for the best. Delalloc will expand
642 loops = 0;
643 while ((delalloc_bytes || ordered_bytes) && loops < 3) {
689 loops++;
1160 int loops = 0; local
1177 loops++;
1238 if (loops == 1 && !space_info->reclaim_size)

Completed in 531 milliseconds

123456