Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 591) sorted by relevance

12345678910>>...24

/linux-2.4.37.9/net/irda/
Dtimer.c50 void irda_start_timer(struct timer_list *ptimer, int timeout, void *data, in irda_start_timer() argument
63 ptimer->expires = jiffies + timeout; in irda_start_timer()
68 void irlap_start_slot_timer(struct irlap_cb *self, int timeout) in irlap_start_slot_timer() argument
70 irda_start_timer(&self->slot_timer, timeout, (void *) self, in irlap_start_slot_timer()
74 void irlap_start_query_timer(struct irlap_cb *self, int timeout) in irlap_start_query_timer() argument
76 irda_start_timer( &self->query_timer, timeout, (void *) self, in irlap_start_query_timer()
80 void irlap_start_final_timer(struct irlap_cb *self, int timeout) in irlap_start_final_timer() argument
82 irda_start_timer(&self->final_timer, timeout, (void *) self, in irlap_start_final_timer()
86 void irlap_start_wd_timer(struct irlap_cb *self, int timeout) in irlap_start_wd_timer() argument
88 irda_start_timer(&self->wd_timer, timeout, (void *) self, in irlap_start_wd_timer()
[all …]
/linux-2.4.37.9/include/net/irda/
Dtimer.h72 void irda_start_timer(struct timer_list *ptimer, int timeout, void* data,
75 void irlap_start_slot_timer(struct irlap_cb *self, int timeout);
76 void irlap_start_query_timer(struct irlap_cb *self, int timeout);
77 void irlap_start_final_timer(struct irlap_cb *self, int timeout);
78 void irlap_start_wd_timer(struct irlap_cb *self, int timeout);
79 void irlap_start_backoff_timer(struct irlap_cb *self, int timeout);
81 void irlap_start_mbusy_timer(struct irlap_cb *self, int timeout);
86 void irlmp_start_watchdog_timer(struct lsap_cb *, int timeout);
87 void irlmp_start_discovery_timer(struct irlmp_cb *, int timeout);
88 void irlmp_start_idle_timer(struct lap_cb *, int timeout);
/linux-2.4.37.9/arch/sh/overdrive/
Dfpga.c38 int timeout = 0; in program_overdrive_fpga() local
70 for (timeout = 0; in program_overdrive_fpga()
72 && (timeout < FPGA_TIMEOUT)); timeout++); in program_overdrive_fpga()
76 if (timeout == FPGA_TIMEOUT) { in program_overdrive_fpga()
100 for (timeout = 0; in program_overdrive_fpga()
102 && (timeout < FPGA_TIMEOUT)); timeout++) { in program_overdrive_fpga()
108 if (timeout == FPGA_TIMEOUT) { in program_overdrive_fpga()
/linux-2.4.37.9/drivers/i2c/
Di2c-algo-ite.c113 int timeout = DEF_TIMEOUT; in wait_for_bb() local
118 while (timeout-- && (status & ITE_I2CHSR_HB)) { in wait_for_bb()
123 if (timeout<=0) { in wait_for_bb()
127 return(timeout<=0); in wait_for_bb()
133 static inline void iic_sleep(unsigned long timeout) in iic_sleep() argument
135 schedule_timeout( timeout * HZ); in iic_sleep()
144 int timeout = DEF_TIMEOUT; in wait_for_pin() local
146 timeout = wait_for_bb(adap); in wait_for_pin()
147 if (timeout) { in wait_for_pin()
151 timeout = DEF_TIMEOUT; in wait_for_pin()
[all …]
Di2c-algo-pcf.c88 int timeout = DEF_TIMEOUT; in wait_for_bb() local
93 while (timeout-- && !(status & I2C_PCF_BB)) { in wait_for_bb()
98 if (timeout <= 0) { in wait_for_bb()
102 return (timeout<=0); in wait_for_bb()
106 static inline void pcf_sleep(unsigned long timeout) in pcf_sleep() argument
108 schedule_timeout( timeout * HZ); in pcf_sleep()
114 int timeout = DEF_TIMEOUT; in wait_for_pin() local
118 while (timeout-- && (*status & I2C_PCF_PIN)) { in wait_for_pin()
123 if (timeout <= 0) in wait_for_pin()
225 int wrcount, status, timeout; in pcf_sendbytes() local
[all …]
/linux-2.4.37.9/drivers/net/
D3c505.c266 int timeout = jiffies + 10*HZ/100; in get_status() local
270 } while (stat1 != inb_status(base_addr) && time_before(jiffies, timeout)); in get_status()
271 if (time_after_eq(jiffies, timeout)) in get_status()
287 int timeout; in adapter_reset() local
296 timeout = jiffies + 2*HZ/100; in adapter_reset()
297 while (time_before_eq(jiffies, timeout) && !(inb_status(dev->base_addr) & ACRF)); in adapter_reset()
302 timeout = jiffies + 1*HZ/100; in adapter_reset()
303 while (time_before_eq(jiffies, timeout)); in adapter_reset()
305 timeout = jiffies + 1*HZ/100; in adapter_reset()
306 while (time_before_eq(jiffies, timeout)); in adapter_reset()
[all …]
Dskge_backport.h34 unsigned long timeout = msecs_to_jiffies(msecs) + 1; in msleep_interruptible() local
37 while (timeout && !signal_pending(current)) in msleep_interruptible()
38 timeout = schedule_timeout(timeout); in msleep_interruptible()
39 return jiffies_to_msecs(timeout); in msleep_interruptible()
/linux-2.4.37.9/drivers/char/
Dsc1200wdt.c71 static int timeout = 1; variable
88 MODULE_PARM(timeout, "i");
89 MODULE_PARM_DESC(timeout, "range is 0-255 minutes, default is 1");
130 sc1200wdt_write_data(WDTO, timeout); in sc1200wdt_start()
160 if (timeout > MAX_TIMEOUT) in sc1200wdt_open()
161 timeout = MAX_TIMEOUT; in sc1200wdt_open()
164 printk(KERN_INFO PFX "Watchdog enabled, timeout = %d min(s)", timeout); in sc1200wdt_open()
195 sc1200wdt_write_data(WDTO, timeout); in sc1200wdt_ioctl()
207 timeout = new_timeout; in sc1200wdt_ioctl()
208 sc1200wdt_write_data(WDTO, timeout); in sc1200wdt_ioctl()
[all …]
Dwdt977.c33 static int timeout = 3; variable
62 if (timeout>255) in wdt977_open()
63 timeout = 255; in wdt977_open()
65 printk(KERN_INFO "Watchdog: active, current timeout %d min.\n",timeout); in wdt977_open()
80 outb(timeout,0x371); in wdt977_open()
167 if (timeout>255) in wdt977_write()
168 timeout = 255; in wdt977_write()
189 outb(timeout,0x371); in wdt977_write()
Dwdt83627.c65 static int timeout = WATCHDOG_TIMEOUT; /* in seconds */ variable
66 MODULE_PARM(timeout, "i");
67 MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds. 1<= timeout <=255, default=" __MODULE_STRIN…
145 wdt_is_open,wdt_io,nowayout,timeout,remaining,fired); in wdt_readproc()
151 wdt_ctrl(int timeout) in wdt_ctrl() argument
158 outb_p(timeout, WDT_EFDR); /* Write Timeout counter to CRF6 */ in wdt_ctrl()
168 wdt_ctrl(timeout); in wdt_ping()
185 timeout = t; in wdt_set_heartbeat()
250 return put_user(timeout, p); in wdt_ioctl()
356 if (wdt_set_heartbeat(timeout)) { in wdt_init()
[all …]
Ddsp56k.c68 #define handshake(count, maxio, timeout, ENABLE, f) \ argument
74 for (t = 0; t < timeout && !ENABLE; t++) \
150 long maxio, timeout; member
227 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE, in dsp56k_read()
237 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE, in dsp56k_read()
244 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE, in dsp56k_read()
256 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE, in dsp56k_read()
289 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT, in dsp56k_write()
299 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT, in dsp56k_write()
306 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT, in dsp56k_write()
[all …]
/linux-2.4.37.9/Documentation/
Dwatchdog-api.txt23 system (causing a reboot) after the timeout occurs.
35 timeout or margin. The simplest way to ping the watchdog is to write
61 will reboot after the timeout has passed.
88 Setting and getting the timeout:
90 For some drivers it is possible to modify the watchdog timeout on the
93 representing the timeout in seconds. The driver returns the real
94 timeout used in the same variable, and this timeout might differ from
97 int timeout = 45;
98 ioctl(fd, WDIOC_SETTIMEOUT, &timeout);
99 printf("The timeout was set to %d seconds\n", timeout);
[all …]
/linux-2.4.37.9/drivers/sound/
Duart401.c145 int timeout; in uart401_out() local
168 for (timeout = 30000; timeout > 0 && !output_ready(devc); timeout--); in uart401_out()
222 int ok, timeout; in enter_uart_mode() local
227 for (timeout = 30000; timeout > 0 && !output_ready(devc); timeout--); in enter_uart_mode()
233 for (timeout = 50000; timeout > 0 && !ok; timeout--) in enter_uart_mode()
245 int ok, timeout, n; in reset_uart401() local
255 for (timeout = 30000; timeout > 0 && !output_ready(devc); timeout--); in reset_uart401()
264 for (timeout = 50000; timeout > 0 && !ok; timeout--) in reset_uart401()
Duart6850.c172 int timeout; in uart6850_out() local
192 for (timeout = 30000; timeout > 0 && !output_ready(); timeout--); /* in uart6850_out()
253 int ok, timeout; in attach_uart6850() local
271 for (timeout = 30000; timeout > 0 && !output_ready(); timeout--); /* in attach_uart6850()
Dad1848.c211 int timeout = 900000; in ad_read() local
213 while (timeout > 0 && inb(devc->base) == 0x80) /*Are we initializing */ in ad_read()
214 timeout--; in ad_read()
242 int timeout = 900000; in ad_write() local
244 while (timeout > 0 && inb(devc->base) == 0x80) /* Are we initializing */ in ad_write()
245 timeout--; in ad_write()
270 int timeout = 0; in wait_for_calibration() local
279 timeout = 100000; in wait_for_calibration()
280 while (timeout > 0 && inb(devc->base) == 0x80) in wait_for_calibration()
281 timeout--; in wait_for_calibration()
[all …]
/linux-2.4.37.9/fs/
Dselect.c164 int do_select(int n, fd_set_bits *fds, long *timeout) in do_select() argument
168 long __timeout = *timeout; in do_select()
233 *timeout = __timeout; in do_select()
263 long timeout; in sys_select() local
266 timeout = MAX_SCHEDULE_TIMEOUT; in sys_select()
280 timeout = ROUND_UP(usec, 1000000/HZ); in sys_select()
281 timeout += sec * (unsigned long) HZ; in sys_select()
319 ret = do_select(n, &fds, &timeout); in sys_select()
323 if (timeout) { in sys_select()
324 sec = timeout / HZ; in sys_select()
[all …]
/linux-2.4.37.9/drivers/isdn/hisax/
Delsa_ser.c497 int timeout; in modem_set_init() local
503 timeout = 1000; in modem_set_init()
504 while(timeout-- && cs->hw.elsa.transcnt) in modem_set_init()
506 debugl1(cs, "msi tout=%d", timeout); in modem_set_init()
509 timeout = 1000; in modem_set_init()
510 while(timeout-- && cs->hw.elsa.transcnt) in modem_set_init()
512 debugl1(cs, "msi tout=%d", timeout); in modem_set_init()
515 timeout = 1000; in modem_set_init()
516 while(timeout-- && cs->hw.elsa.transcnt) in modem_set_init()
518 debugl1(cs, "msi tout=%d", timeout); in modem_set_init()
[all …]
/linux-2.4.37.9/arch/i386/kernel/
Dsmpboot.c341 unsigned long timeout; in smp_callin() local
375 timeout = jiffies + 2*HZ; in smp_callin()
376 while (time_before(jiffies, timeout)) { in smp_callin()
385 if (!time_before(jiffies, timeout)) { in smp_callin()
560 int timeout, status; in inquire_remote_apic() local
575 timeout = 0; in inquire_remote_apic()
579 } while (status == APIC_ICR_RR_INPROG && timeout++ < 1000); in inquire_remote_apic()
601 int timeout, maxlvt; in wakeup_secondary_via_NMI() local
611 timeout = 0; in wakeup_secondary_via_NMI()
616 } while (send_status && (timeout++ < 1000)); in wakeup_secondary_via_NMI()
[all …]
/linux-2.4.37.9/arch/x86_64/kernel/
Dsmpboot.c322 unsigned long timeout; in smp_callin() local
355 timeout = jiffies + 2*HZ; in smp_callin()
356 while (time_before(jiffies, timeout)) { in smp_callin()
365 if (!time_before(jiffies, timeout)) { in smp_callin()
484 int timeout, status; in inquire_remote_apic() local
499 timeout = 0; in inquire_remote_apic()
503 } while (status == APIC_ICR_RR_INPROG && timeout++ < 1000); in inquire_remote_apic()
521 int timeout, num_starts, j, cpu; in do_boot_cpu() local
612 timeout = 0; in do_boot_cpu()
617 } while (send_status && (timeout++ < 1000)); in do_boot_cpu()
[all …]
/linux-2.4.37.9/drivers/net/wireless/
Dorinoco_pci.c143 unsigned long timeout; in orinoco_pci_cor_reset() local
149 timeout = jiffies + (HERMES_PCI_COR_ONT * HZ / 1000); in orinoco_pci_cor_reset()
150 while(time_before(jiffies, timeout)) { in orinoco_pci_cor_reset()
160 timeout = jiffies + (HERMES_PCI_COR_OFFT * HZ / 1000); in orinoco_pci_cor_reset()
161 while(time_before(jiffies, timeout)) { in orinoco_pci_cor_reset()
169 timeout = jiffies + (HERMES_PCI_COR_BUSYT * HZ / 1000); in orinoco_pci_cor_reset()
171 while (time_before(jiffies, timeout) && (reg & HERMES_CMD_BUSY)) { in orinoco_pci_cor_reset()
176 if(time_after_eq(jiffies, timeout)) { in orinoco_pci_cor_reset()
180 printk(KERN_NOTICE "pci_cor : reg = 0x%X - %lX - %lX\n", reg, timeout, jiffies); in orinoco_pci_cor_reset()
/linux-2.4.37.9/arch/alpha/kernel/
Dsmp.c241 long timeout; in send_secondary_console_msg() local
270 for (timeout = 1000000; timeout > 0; --timeout) { in send_secondary_console_msg()
276 goto timeout; in send_secondary_console_msg()
280 for (timeout = 1000000; timeout > 0; --timeout) { in send_secondary_console_msg()
286 goto timeout; in send_secondary_console_msg()
288 timeout: in send_secondary_console_msg()
354 long timeout; in secondary_cpu_start() local
402 for (timeout = 1000000; timeout > 0; timeout--) { in secondary_cpu_start()
433 long timeout; in smp_boot_one_cpu() local
478 for (timeout = 0; timeout < 1000000; timeout++) { in smp_boot_one_cpu()
[all …]
/linux-2.4.37.9/net/ipv4/netfilter/
Dip_conntrack_core.c180 IP_NF_ASSERT(!timer_pending(&exp->timeout)); in destroy_expect()
252 if (expect->expectant->helper->timeout in unexpect_related()
253 && !del_timer(&expect->timeout)) in unexpect_related()
316 IP_NF_ASSERT(!timer_pending(&ct->timeout)); in destroy_conntrack()
483 ct->timeout.expires += jiffies; in __ip_conntrack_confirm()
484 add_timer(&ct->timeout); in __ip_conntrack_confirm()
622 if (del_timer(&h->ctrack->timeout)) { in early_drop()
707 init_timer(&conntrack->timeout); in init_conntrack()
708 conntrack->timeout.data = (unsigned long)conntrack; in init_conntrack()
709 conntrack->timeout.function = death_by_timeout; in init_conntrack()
[all …]
/linux-2.4.37.9/drivers/scsi/
Dgdth_proc.h15 char *cmnd, int timeout);
19 char *cmnd, int timeout);
23 char *cmnd, int timeout);
33 static int gdth_update_timeout(int hanum, Scsi_Cmnd *scp, int timeout);
Dscsi_ioctl.c94 int timeout, int retries) in ioctl_internal_command() argument
108 scsi_wait_req(SRpnt, cmd, NULL, 0, timeout, retries); in ioctl_internal_command()
199 int timeout, retries, result; in scsi_ioctl_send_command() local
284 timeout = FORMAT_UNIT_TIMEOUT; in scsi_ioctl_send_command()
288 timeout = START_STOP_TIMEOUT; in scsi_ioctl_send_command()
292 timeout = MOVE_MEDIUM_TIMEOUT; in scsi_ioctl_send_command()
296 timeout = READ_ELEMENT_STATUS_TIMEOUT; in scsi_ioctl_send_command()
300 timeout = READ_DEFECT_DATA_TIMEOUT; in scsi_ioctl_send_command()
304 timeout = IOCTL_NORMAL_TIMEOUT; in scsi_ioctl_send_command()
320 scsi_wait_req(SRpnt, cmd, buf, needed, timeout, retries); in scsi_ioctl_send_command()
/linux-2.4.37.9/drivers/char/ftape/lowlevel/
Dftape-io.c92 long timeout; in ftape_sleep() local
97 timeout = ticks; in ftape_sleep()
110 timeout = schedule_timeout(timeout); in ftape_sleep()
112 } while (timeout); in ftape_sleep()
291 int ftape_ready_wait(unsigned int timeout, int *status) in ftape_ready_wait() argument
307 if (timeout <= FT_SECOND) { in ftape_ready_wait()
310 } else if (timeout < 20 * FT_SECOND) { in ftape_ready_wait()
328 if ((int)timeout >= 0) { in ftape_ready_wait()
332 timeout -= ((jiffies - t0) * FT_SECOND) / HZ; in ftape_ready_wait()
333 if (timeout <= 0) { in ftape_ready_wait()
[all …]

12345678910>>...24