Home
last modified time | relevance | path

Searched refs:timeo (Results 1 – 25 of 27) sorted by relevance

12

/drivers/mtd/nand/raw/
Dnand_legacy.c174 static void panic_nand_wait_ready(struct nand_chip *chip, unsigned long timeo) in panic_nand_wait_ready() argument
179 for (i = 0; i < timeo; i++) { in panic_nand_wait_ready()
195 unsigned long timeo = 400; in nand_wait_ready() local
198 return panic_nand_wait_ready(chip, timeo); in nand_wait_ready()
201 timeo = jiffies + msecs_to_jiffies(timeo); in nand_wait_ready()
206 } while (time_before(jiffies, timeo)); in nand_wait_ready()
220 static void nand_wait_status_ready(struct nand_chip *chip, unsigned long timeo) in nand_wait_status_ready() argument
224 timeo = jiffies + msecs_to_jiffies(timeo); in nand_wait_status_ready()
236 } while (time_before(jiffies, timeo)); in nand_wait_status_ready()
535 unsigned long timeo = 400; in nand_wait() local
[all …]
Dinternals.h107 void panic_nand_wait(struct nand_chip *chip, unsigned long timeo);
Ddavinci_nand.c262 unsigned long timeo; in nand_davinci_correct_4bit() local
314 timeo = jiffies + usecs_to_jiffies(100); in nand_davinci_correct_4bit()
319 } while ((ecc_state < 4) && time_before(jiffies, timeo)); in nand_davinci_correct_4bit()
Ddiskonchip.c239 unsigned long timeo = jiffies + (HZ * 10); in _DoC_WaitReady() local
246 if (time_after(jiffies, timeo)) { in _DoC_WaitReady()
255 if (time_after(jiffies, timeo)) { in _DoC_WaitReady()
Domap2.c993 unsigned long timeo = jiffies; in omap_wait() local
996 timeo += msecs_to_jiffies(400); in omap_wait()
999 while (time_before(jiffies, timeo)) { in omap_wait()
/drivers/mtd/chips/
Dcfi_cmdset_0020.c251 unsigned long timeo; in do_read_onechip() local
265 timeo = jiffies + HZ; in do_read_onechip()
292 if (time_after(jiffies, timeo)) { in do_read_onechip()
337 if (time_after(jiffies, timeo)) { in do_read_onechip()
357 timeo = jiffies + HZ; in do_read_onechip()
425 unsigned long cmd_adr, timeo; in do_write_buffer() local
440 timeo = jiffies + HZ; in do_write_buffer()
470 if (time_after(jiffies, timeo)) { in do_write_buffer()
490 timeo = jiffies + HZ; in do_write_buffer()
537 timeo = jiffies + (HZ/2); in do_write_buffer()
[all …]
Dcfi_cmdset_0002.c875 unsigned long timeo; in get_chip() local
879 timeo = jiffies + HZ; in get_chip()
888 if (time_after(jiffies, timeo)) { in get_chip()
926 if (time_after(jiffies, timeo)) { in get_chip()
1417 unsigned long timeo; in do_otp_lock() local
1452 timeo = jiffies + msecs_to_jiffies(2); in do_otp_lock()
1457 if (time_after(jiffies, timeo)) { in do_otp_lock()
1645 unsigned long timeo = jiffies + HZ; in do_write_oneword_once() local
1669 timeo = jiffies + uWriteTimeout; in do_write_oneword_once()
1680 timeo = jiffies + (HZ / 2); /* FIXME */ in do_write_oneword_once()
[all …]
Dcfi_cmdset_0001.c831 unsigned long timeo = jiffies + HZ; in chip_ready() local
896 if (time_after(jiffies, timeo)) { in chip_ready()
1295 unsigned int timeo, sleep_time, reset_timeo; in inval_cache_and_wait_for_operation() local
1302 timeo = chip_op_time_max; in inval_cache_and_wait_for_operation()
1303 if (!timeo) in inval_cache_and_wait_for_operation()
1304 timeo = 500000; in inval_cache_and_wait_for_operation()
1305 reset_timeo = timeo; in inval_cache_and_wait_for_operation()
1327 timeo = reset_timeo; in inval_cache_and_wait_for_operation()
1332 timeo = reset_timeo; in inval_cache_and_wait_for_operation()
1335 if (!timeo) { in inval_cache_and_wait_for_operation()
[all …]
/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_io.c1016 long timeo; in chtls_sendmsg() local
1020 timeo = sock_sndtimeo(sk, flags & MSG_DONTWAIT); in chtls_sendmsg()
1023 err = sk_stream_wait_connect(sk, &timeo); in chtls_sendmsg()
1203 err = csk_wait_memory(cdev, sk, &timeo); in chtls_sendmsg()
1237 long timeo; in chtls_sendpage() local
1244 timeo = sock_sndtimeo(sk, flags & MSG_DONTWAIT); in chtls_sendpage()
1246 err = sk_stream_wait_connect(sk, &timeo); in chtls_sendpage()
1316 err = csk_wait_memory(cdev, sk, &timeo); in chtls_sendpage()
1440 long timeo; in chtls_pt_recvmsg() local
1444 timeo = sock_rcvtimeo(sk, nonblock); in chtls_pt_recvmsg()
[all …]
/drivers/mtd/lpddr/
Dlpddr_cmds.c128 unsigned int timeo, reset_timeo, sleep_time; in wait_for_ready() local
134 timeo = chip_op_time * 8; in wait_for_ready()
135 if (!timeo) in wait_for_ready()
136 timeo = 500000; in wait_for_ready()
137 reset_timeo = timeo; in wait_for_ready()
144 if (!timeo) { in wait_for_ready()
160 timeo -= sleep_time; in wait_for_ready()
165 timeo--; in wait_for_ready()
181 timeo = reset_timeo; in wait_for_ready()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_init.c619 int timeo; in qlcnic_setup_idc_param() local
630 if (qlcnic_rom_fast_read(adapter, QLCNIC_ROM_DEV_INIT_TIMEOUT, &timeo)) in qlcnic_setup_idc_param()
631 timeo = QLCNIC_INIT_TIMEOUT_SECS; in qlcnic_setup_idc_param()
633 adapter->dev_init_timeo = timeo; in qlcnic_setup_idc_param()
635 if (qlcnic_rom_fast_read(adapter, QLCNIC_ROM_DRV_RESET_TIMEOUT, &timeo)) in qlcnic_setup_idc_param()
636 timeo = QLCNIC_RESET_TIMEOUT_SECS; in qlcnic_setup_idc_param()
638 adapter->reset_ack_timeo = timeo; in qlcnic_setup_idc_param()
/drivers/input/mouse/
Dhgpk.c695 int timeo; in hgpk_toggle_powersave() local
712 for (timeo = 20; timeo > 0; timeo--) { in hgpk_toggle_powersave()
/drivers/soc/bcm/brcmstb/pm/
Dpm-arm.c147 int timeo = 1000 * 1000; /* 1 second */ in do_bsp_initiate_command() local
169 if (timeo <= 0) { in do_bsp_initiate_command()
173 timeo -= 50; in do_bsp_initiate_command()
/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_mgmt.c256 unsigned long timeo; in msg_to_mgmt_sync() local
280 timeo = msecs_to_jiffies(timeout ? timeout : MGMT_MSG_TIMEOUT); in msg_to_mgmt_sync()
282 if (!wait_for_completion_timeout(recv_done, timeo)) { in msg_to_mgmt_sync()
Dhinic_hw_mbox.c1011 unsigned long timeo; in hinic_mbox_to_func() local
1034 timeo = msecs_to_jiffies(timeout ? timeout : HINIC_MBOX_COMP_TIME); in hinic_mbox_to_func()
1035 if (!wait_for_completion_timeout(&mbox_for_resp->recv_done, timeo)) { in hinic_mbox_to_func()
/drivers/net/wireless/marvell/libertas_tf/
Dcmd.c239 int timeo = 5 * HZ; in lbtf_submit_command() local
262 timeo = HZ; in lbtf_submit_command()
266 mod_timer(&priv->command_timer, jiffies + timeo); in lbtf_submit_command()
/drivers/spi/
Dspi-bcm-qspi.c868 unsigned long timeo = msecs_to_jiffies(100); in bcm_qspi_bspi_exec_mem_op() local
934 if (!wait_for_completion_timeout(&qspi->bspi_done, timeo)) { in bcm_qspi_bspi_exec_mem_op()
954 unsigned long timeo = msecs_to_jiffies(100); in bcm_qspi_transfer_one() local
965 if (!wait_for_completion_timeout(&qspi->mspi_done, timeo)) { in bcm_qspi_transfer_one()
/drivers/net/wireless/marvell/libertas/
Dcmd.c939 int timeo = 3 * HZ; in lbs_submit_command() local
955 timeo = 5 * HZ; in lbs_submit_command()
980 mod_timer(&priv->command_timer, jiffies + timeo); in lbs_submit_command()
/drivers/mtd/nand/raw/brcmnand/
Dbrcmnand.c1640 unsigned long timeo = msecs_to_jiffies( in brcmstb_nand_wait_for_completion() local
1643 sts = wait_for_completion_timeout(&ctrl->done, timeo); in brcmstb_nand_wait_for_completion()
1914 unsigned long timeo = msecs_to_jiffies(200); in brcmnand_edu_trans() local
1945 if (wait_for_completion_timeout(&ctrl->edu_done, timeo) <= 0) { in brcmnand_edu_trans()
2037 unsigned long timeo = msecs_to_jiffies(100); in brcmnand_dma_run() local
2052 if (wait_for_completion_timeout(&ctrl->dma_done, timeo) <= 0) { in brcmnand_dma_run()
/drivers/mtd/nand/spi/
Dcore.c346 unsigned long timeo = jiffies + msecs_to_jiffies(400); in spinand_wait() local
357 } while (time_before(jiffies, timeo)); in spinand_wait()
/drivers/block/drbd/
Ddrbd_worker.c1887 int timeo; in drbd_start_resync() local
1891 timeo = nc->ping_int * HZ + nc->ping_timeo * HZ / 9; in drbd_start_resync()
1893 schedule_timeout_interruptible(timeo); in drbd_start_resync()
Ddrbd_receiver.c767 int timeo, connect_int, err = 0; in drbd_wait_for_connect() local
780 timeo = connect_int * HZ; in drbd_wait_for_connect()
782 timeo += (prandom_u32() & 1) ? timeo / 7 : -timeo / 7; in drbd_wait_for_connect()
784 err = wait_for_completion_interruptible_timeout(&ad->door_bell, timeo); in drbd_wait_for_connect()
Ddrbd_nl.c688 int timeo; in drbd_set_role() local
692 timeo = nc ? (nc->ping_timeo + 1) * HZ / 10 : 1; in drbd_set_role()
694 schedule_timeout_interruptible(timeo); in drbd_set_role()
/drivers/net/ethernet/chelsio/cxgb3/
Dcxgb3_main.c1339 unsigned int timeo; in schedule_chk_task() local
1341 timeo = adap->params.linkpoll_period ? in schedule_chk_task()
1344 if (timeo) in schedule_chk_task()
1345 queue_delayed_work(cxgb3_wq, &adap->adap_check_task, timeo); in schedule_chk_task()
/drivers/usb/atm/
Dueagle-atm.c547 #define uea_wait(sc, cond, timeo) \ argument
550 (cond) || kthread_should_stop(), timeo); \

12