| /OK3568_Linux_fs/kernel/sound/soc/au1x/ |
| H A D | ac97c.c | 87 unsigned int tmo, retry; in au1xac97c_ac97_read() local 95 tmo = 6; in au1xac97c_ac97_read() 96 while ((RD(ctx, AC97_STATUS) & STAT_CP) && --tmo) in au1xac97c_ac97_read() 98 if (!tmo) { in au1xac97c_ac97_read() 108 tmo = 0x10000; in au1xac97c_ac97_read() 109 while ((RD(ctx, AC97_STATUS) & STAT_CP) && --tmo) in au1xac97c_ac97_read() 113 if (!tmo) in au1xac97c_ac97_read() 118 } while (--retry && !tmo); in au1xac97c_ac97_read() 129 unsigned int tmo, retry; in au1xac97c_ac97_write() local 135 for (tmo = 5; (RD(ctx, AC97_STATUS) & STAT_CP) && tmo; tmo--) in au1xac97c_ac97_write() [all …]
|
| H A D | psc-i2s.c | 146 unsigned long tmo; in au1xpsc_i2s_configure() local 152 tmo = 1000000; in au1xpsc_i2s_configure() 153 while (!(__raw_readl(I2S_STAT(pscdata)) & PSC_I2SSTAT_SR) && tmo) in au1xpsc_i2s_configure() 154 tmo--; in au1xpsc_i2s_configure() 156 if (!tmo) in au1xpsc_i2s_configure() 165 tmo = 1000000; in au1xpsc_i2s_configure() 166 while (!(__raw_readl(I2S_STAT(pscdata)) & PSC_I2SSTAT_DR) && tmo) in au1xpsc_i2s_configure() 167 tmo--; in au1xpsc_i2s_configure() 169 if (tmo) in au1xpsc_i2s_configure() 181 unsigned long tmo, stat; in au1xpsc_i2s_start() local [all …]
|
| H A D | psc-ac97.c | 75 unsigned short retry, tmo; in au1xpsc_ac97_read() local 89 tmo = 20; in au1xpsc_ac97_read() 94 } while (--tmo); in au1xpsc_ac97_read() 104 tmo = 1; /* wrong register, try again */ in au1xpsc_ac97_read() 106 } while (--retry && !tmo); in au1xpsc_ac97_read() 116 unsigned int tmo, retry; in au1xpsc_ac97_write() local 129 tmo = 20; in au1xpsc_ac97_write() 134 } while (--tmo); in au1xpsc_ac97_write() 140 } while (--retry && !tmo); in au1xpsc_ac97_write()
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/sa1100/ |
| H A D | timer.c | 33 ulong tmo; in udelay_masked() local 38 tmo = usec / 1000; in udelay_masked() 39 tmo *= CONFIG_SYS_HZ; in udelay_masked() 40 tmo /= 1000; in udelay_masked() 42 tmo = usec * CONFIG_SYS_HZ; in udelay_masked() 43 tmo /= (1000*1000); in udelay_masked() 46 endtime = get_timer_masked () + tmo; in udelay_masked()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/st/cw1200/ |
| H A D | pm.c | 112 unsigned long tmo) in cw1200_pm_stay_awake() argument 117 if (!timer_pending(&pm->stay_awake) || cur_tmo < (long)tmo) in cw1200_pm_stay_awake() 118 mod_timer(&pm->stay_awake, jiffies + tmo); in cw1200_pm_stay_awake() 125 long tmo; in cw1200_suspend_work() local 128 tmo = work->timer.expires - jiffies; in cw1200_suspend_work() 129 if (tmo < 0) in cw1200_suspend_work() 130 tmo = 0; in cw1200_suspend_work() 132 tmo = -1; in cw1200_suspend_work() 134 return tmo; in cw1200_suspend_work() 139 unsigned long tmo) in cw1200_resume_work() argument [all …]
|
| /OK3568_Linux_fs/u-boot/board/armltd/integrator/ |
| H A D | timer.c | 105 ulong tmo, tmp; in __udelay() local 108 tmo = usec * CONFIG_SYS_HZ; in __udelay() 109 tmo /= (1000000L); in __udelay() 112 tmo += tmp; /* form target timestamp */ in __udelay() 114 while (get_timer_masked () < tmo) {/* loop till event */ in __udelay()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-at91/arm920t/ |
| H A D | timer.c | 93 u32 tmo; in udelay_masked() local 97 tmo = CONFIG_SYS_HZ_CLOCK / 1000; in udelay_masked() 98 tmo *= usec; in udelay_masked() 99 tmo /= 1000; in udelay_masked() 101 endtime = get_timer_raw() + tmo; in udelay_masked()
|
| /OK3568_Linux_fs/u-boot/drivers/net/ |
| H A D | cs8900.c | 85 int tmo; in cs8900_reset() local 95 tmo = get_timer(0) + 1 * CONFIG_SYS_HZ; in cs8900_reset() 97 PP_SelfSTAT_InitD) == 0) && tmo < get_timer(0)) in cs8900_reset() 205 int tmo; in cs8900_send() local 218 for (tmo = get_timer(0) + 5 * CONFIG_SYS_HZ; in cs8900_send() 219 get_timer(0) < tmo;) in cs8900_send() 232 tmo = get_timer(0) + 5 * CONFIG_SYS_HZ; in cs8900_send() 234 if (get_timer(0) >= tmo) in cs8900_send()
|
| /OK3568_Linux_fs/u-boot/arch/nds32/cpu/n1213/ag101/ |
| H A D | timer.c | 152 long tmo = usec * (TIMER_CLOCK / 1000) / 1000; in __udelay() local 154 long tmo = usec * ((CONFIG_SYS_CLK_FREQ / 2) / 1000) / 1000; in __udelay() local 159 while (tmo > 0) { in __udelay() 162 tmo -= TIMER_LOAD_VAL + last - now; in __udelay() 164 tmo -= last - now; in __udelay()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-omap2/ |
| H A D | timer.c | 58 long tmo = usec * (TIMER_CLOCK / 1000) / 1000; in __udelay() local 61 while (tmo > 0) { in __udelay() 64 tmo -= TIMER_OVERFLOW_VAL - last + now + 1; in __udelay() 66 tmo -= now - last; in __udelay()
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/armv7/sunxi/ |
| H A D | timer.c | 84 long tmo = USEC_TO_COUNT(usec); in __udelay() local 87 while (tmo > 0) { in __udelay() 90 tmo -= now - last; in __udelay() 92 tmo -= TIMER_LOAD_VAL - last + now; in __udelay()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-sunxi/ |
| H A D | p2wi.c | 47 unsigned long tmo = timer_get_us() + 1000000; in p2wi_change_to_p2wi_mode() local 56 if (timer_get_us() > tmo) in p2wi_change_to_p2wi_mode() 66 unsigned long tmo = timer_get_us() + 1000000; in p2wi_await_trans() local 80 if (timer_get_us() > tmo) { in p2wi_await_trans()
|
| H A D | rsb.c | 79 unsigned long tmo = timer_get_us() + 1000000; in rsb_await_trans() local 97 if (timer_get_us() > tmo) { in rsb_await_trans() 111 unsigned long tmo = timer_get_us() + 1000000; in rsb_set_device_mode() local 117 if (timer_get_us() > tmo) in rsb_set_device_mode()
|
| /OK3568_Linux_fs/kernel/drivers/scsi/ |
| H A D | myrs.h | 695 struct myrs_cmd_tmo tmo; /* Byte 19 */ member 708 struct myrs_cmd_tmo tmo; /* Byte 19 */ member 721 struct myrs_cmd_tmo tmo; /* Byte 19 */ member 737 struct myrs_cmd_tmo tmo; /* Byte 19 */ member 751 struct myrs_cmd_tmo tmo; /* Byte 19 */ member 765 struct myrs_cmd_tmo tmo; /* Byte 19 */ member 780 struct myrs_cmd_tmo tmo; /* Byte 19 */ member 798 struct myrs_cmd_tmo tmo; /* Byte 19 */ member 813 struct myrs_cmd_tmo tmo; /* Byte 19 */ member 832 struct myrs_cmd_tmo tmo; /* Byte 19 */ member [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/armv7/vf610/ |
| H A D | timer.c | 75 ulong tmo; in __udelay() local 78 tmo = us_to_tick(usec); /* convert usecs to ticks */ in __udelay() 79 while ((get_ticks() - start) < tmo) in __udelay()
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/armv7/ls102xa/ |
| H A D | timer.c | 108 unsigned long tmo; in __udelay() local 111 tmo = us_to_tick(usec); /* convert usecs to ticks */ in __udelay() 113 while ((get_ticks() - start) < tmo) in __udelay()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-imx/ |
| H A D | syscounter.c | 106 ulong tmo; in __udelay() local 108 tmo = us_to_tick(usec); in __udelay() 109 tmp = get_ticks() + tmo; /* get current timestamp */ in __udelay()
|
| /OK3568_Linux_fs/kernel/sound/soc/sh/ |
| H A D | hac.c | 202 unsigned int tmo; in hac_ac97_warmrst() local 207 for (tmo = 1000; (tmo > 0) && !(HACREG(HACCR) & CR_CR); tmo--) in hac_ac97_warmrst() 210 if (!tmo) in hac_ac97_warmrst()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-stm32/stm32f7/ |
| H A D | timer.c | 61 ulong tmo; in __udelay() local 69 tmo = ((usec / 10) + rndoff) * tenudelcnt; in __udelay() 71 while ((ulong) (get_timer_masked() - start) < tmo) in __udelay()
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/armv7/stv0991/ |
| H A D | timer.c | 63 ulong tmo; in __udelay() local 71 tmo = ((usec / 10) + rndoff) * tenudelcnt; in __udelay() 73 while ((ulong) (get_timer_masked() - start) < tmo) in __udelay()
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/arm926ejs/spear/ |
| H A D | timer.c | 72 ulong tmo; in __udelay() local 80 tmo = ((usec / 10) + rndoff) * tenudelcnt; in __udelay() 82 while ((ulong) (get_timer_masked() - start) < tmo) in __udelay()
|
| /OK3568_Linux_fs/kernel/drivers/block/paride/ |
| H A D | pg.c | 288 static int pg_wait(struct pg *dev, int go, int stop, unsigned long tmo, char *msg) in pg_wait() argument 296 && time_before(jiffies, tmo)) { in pg_wait() 303 to = time_after_eq(jiffies, tmo); in pg_wait() 320 static int pg_command(struct pg *dev, char *cmd, int dlen, unsigned long tmo) in pg_command() argument 328 if (pg_wait(dev, STAT_BUSY | STAT_DRQ, 0, tmo, "before command")) in pg_command() 335 if (pg_wait(dev, STAT_BUSY, STAT_DRQ, tmo, "command DRQ")) in pg_command() 357 static int pg_completion(struct pg *dev, char *buf, unsigned long tmo) in pg_completion() argument 362 tmo, "completion"); in pg_completion() 380 tmo, "completion"); in pg_completion()
|
| /OK3568_Linux_fs/kernel/drivers/scsi/csiostor/ |
| H A D | csio_mb.c | 76 csio_mb_hello(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_hello() argument 82 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_hello() 140 csio_mb_bye(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_bye() argument 145 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_bye() 162 csio_mb_reset(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_reset() argument 168 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_reset() 193 csio_mb_params(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_params() argument 203 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_params() 264 csio_mb_ldst(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, int reg) in csio_mb_ldst() argument 267 CSIO_INIT_MBP(mbp, ldst_cmd, tmo, hw, NULL, 1); in csio_mb_ldst() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/arm926ejs/mx27/ |
| H A D | timer.c | 150 ulong tmo; in __udelay() local 152 tmo = us_to_tick(usec); in __udelay() 153 tmp = get_ticks() + tmo; /* get current timestamp */ in __udelay()
|
| /OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/runtime/cases/ |
| H A D | storage.py | 13 def storage_mount(cls, tmo=1): argument 19 time.sleep(tmo) 64 def storage_umount(cls, tmo=1): argument 65 time.sleep(tmo)
|