/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | scsi_ioctl.c | 68 int timeout, int retries) in ioctl_internal_command() 79 result = scsi_execute_cmd(sdev, cmd, REQ_OP_DRV_IN, NULL, 0, timeout, in ioctl_internal_command() 181 int timeout, err = get_user(timeout, p); in sg_set_timeout() local 184 sdev->sg_timeout = clock_t_to_jiffies(timeout); in sg_set_timeout() 361 rq->timeout = msecs_to_jiffies(hdr->timeout); in scsi_fill_sghdr_rq() 362 if (!rq->timeout) in scsi_fill_sghdr_rq() 363 rq->timeout = sdev->sg_timeout; in scsi_fill_sghdr_rq() 364 if (!rq->timeout) in scsi_fill_sghdr_rq() 67 ioctl_internal_command(struct scsi_device *sdev, char *cmd, int timeout, int retries) ioctl_internal_command() argument 715 compat_int_t timeout; global() member [all...] |
/kernel/linux/linux-5.10/drivers/watchdog/ |
H A D | sc1200wdt.c | 59 #define WDTO 0x05 /* Watchdog timeout register */ 70 static int timeout = 1; variable 88 module_param(timeout, int, 0); 89 MODULE_PARM_DESC(timeout, "range is 0-255 minutes, default is 1"); 140 /* set the timeout and get the ball rolling */ in sc1200wdt_start() 141 __sc1200wdt_write_data(WDTO, timeout); in sc1200wdt_start() 170 if (timeout > MAX_TIMEOUT) in sc1200wdt_open() 171 timeout = MAX_TIMEOUT; in sc1200wdt_open() 174 pr_info("Watchdog enabled, timeout = %d min(s)", timeout); in sc1200wdt_open() [all...] |
H A D | w83627hf_wdt.c | 40 #define WATCHDOG_TIMEOUT 60 /* 60 sec default timeout */ 43 static int cr_wdt_timeout; /* WDT timeout register */ 54 static int timeout; /* in seconds */ variable 55 module_param(timeout, int, 0); 56 MODULE_PARM_DESC(timeout, 57 "Watchdog timeout in seconds. 1 <= timeout <= 255, default=" 237 pr_info("Watchdog already running. Resetting timeout to %d sec\n", in w83627hf_init() 238 wdog->timeout); in w83627hf_init() 239 superio_outb(cr_wdt_timeout, wdog->timeout); in w83627hf_init() 256 wdt_set_time(unsigned int timeout) wdt_set_time() argument 281 wdt_set_timeout(struct watchdog_device *wdog, unsigned int timeout) wdt_set_timeout() argument [all...] |
H A D | sunxi_wdt.c | 38 static unsigned int timeout; variable 63 * [timeout seconds] = register value 96 /* Set lowest timeout and enable watchdog */ in sunxi_wdt_restart() 129 unsigned int timeout) in sunxi_wdt_set_timeout() 136 if (wdt_timeout_map[timeout] == 0) in sunxi_wdt_set_timeout() 137 timeout++; in sunxi_wdt_set_timeout() 139 sunxi_wdt->wdt_dev.timeout = timeout; in sunxi_wdt_set_timeout() 143 reg |= wdt_timeout_map[timeout] << regs->wdt_timeout_shift; in sunxi_wdt_set_timeout() 171 sunxi_wdt->wdt_dev.timeout); in sunxi_wdt_start() 128 sunxi_wdt_set_timeout(struct watchdog_device *wdt_dev, unsigned int timeout) sunxi_wdt_set_timeout() argument [all...] |
H A D | smsc37b787_wdt.c | 33 * reset the system (causing a reboot) after the timeout occurs. 77 static int timeout = 60; /* timeout value: default is 60 "units" */ variable 192 * Bit 2 Force Timeout: 1 = Forces WD timeout event (self-cleaning) in wdt_timer_ctrl() 194 * 0 = P20 activity does not generate the WD timeout event in wdt_timer_ctrl() 196 * controller, to force the WD timeout event. in wdt_timer_ctrl() 225 /* disable the timeout */ in wb_smsc_wdt_initialize() 264 /* disable timeout */ in wb_smsc_wdt_shutdown() 271 /* set timeout => enable watchdog */ 279 /* set Power LED to blink, if we enable the timeout */ in wb_smsc_wdt_set_timeout() [all...] |
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nf_conntrack_proto_icmpv6.c | 83 return &nf_icmpv6_pernet(net)->timeout; in icmpv6_get_timeouts() 92 unsigned int *timeout = nf_ct_timeout_lookup(ct); in nf_conntrack_icmpv6_packet() local 113 if (!timeout) in nf_conntrack_icmpv6_packet() 114 timeout = icmpv6_get_timeouts(nf_ct_net(ct)); in nf_conntrack_icmpv6_packet() 119 nf_ct_refresh_acct(ct, ctinfo, skb, *timeout); in nf_conntrack_icmpv6_packet() 301 unsigned int *timeout = data; in icmpv6_timeout_nlattr_to_obj() local 304 if (!timeout) in icmpv6_timeout_nlattr_to_obj() 305 timeout = icmpv6_get_timeouts(net); in icmpv6_timeout_nlattr_to_obj() 307 *timeout = in icmpv6_timeout_nlattr_to_obj() 310 /* Set default ICMPv6 timeout in icmpv6_timeout_nlattr_to_obj() 319 const unsigned int *timeout = data; icmpv6_timeout_obj_to_nlattr() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/host1x/hw/ |
H A D | cdma_hw.c | 34 host1x_syncpt_incr(cdma->timeout.syncpt); in cdma_timeout_cpu_incr() 37 host1x_syncpt_load(cdma->timeout.syncpt); in cdma_timeout_cpu_incr() 86 * state (where DMA GET is set to DMA PUT), on a timeout we restore 242 * If this timeout fires, it indicates the current sync_queue entry has 254 timeout.wq); in cdma_timeout_handler() 262 if (!cdma->timeout.client) { in cdma_timeout_handler() 272 syncpt_val = host1x_syncpt_load(cdma->timeout.syncpt); in cdma_timeout_handler() 275 if ((s32)(syncpt_val - cdma->timeout.syncpt_val) >= 0) { in cdma_timeout_handler() 284 dev_warn(host1x->dev, "%s: timeout: %u (%s), HW thresh %d, done %d\n", in cdma_timeout_handler() 285 __func__, cdma->timeout in cdma_timeout_handler() [all...] |
/kernel/linux/linux-6.6/drivers/watchdog/ |
H A D | sc1200wdt.c | 59 #define WDTO 0x05 /* Watchdog timeout register */ 70 static int timeout = 1; variable 88 module_param(timeout, int, 0); 89 MODULE_PARM_DESC(timeout, "range is 0-255 minutes, default is 1"); 140 /* set the timeout and get the ball rolling */ in sc1200wdt_start() 141 __sc1200wdt_write_data(WDTO, timeout); in sc1200wdt_start() 170 if (timeout > MAX_TIMEOUT) in sc1200wdt_open() 171 timeout = MAX_TIMEOUT; in sc1200wdt_open() 174 pr_info("Watchdog enabled, timeout = %d min(s)", timeout); in sc1200wdt_open() [all...] |
H A D | sbsa_gwdt.c | 19 * In the single stage mode, when the timeout is reached, your system 21 * In the two stages mode, when the timeout is reached, the first signal (WS0) 31 * |----timeout-----(panic)----timeout-----reset 35 * |--------------timeout-------------------reset 38 * by WOR, in the single stage mode, the timeout is (WOR * 2); in the two 39 * stages mode, the timeout is WOR. The maximum timeout in the two stages mode 96 static unsigned int timeout; variable 97 module_param(timeout, uin 146 sbsa_gwdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) sbsa_gwdt_set_timeout() argument [all...] |
H A D | w83627hf_wdt.c | 40 #define WATCHDOG_TIMEOUT 60 /* 60 sec default timeout */ 43 static int cr_wdt_timeout; /* WDT timeout register */ 54 static int timeout; /* in seconds */ variable 55 module_param(timeout, int, 0); 56 MODULE_PARM_DESC(timeout, 57 "Watchdog timeout in seconds. 1 <= timeout <= 255, default=" 241 pr_info("Watchdog already running. Resetting timeout to %d sec\n", in w83627hf_init() 242 wdog->timeout); in w83627hf_init() 243 superio_outb(cr_wdt_timeout, wdog->timeout); in w83627hf_init() 264 wdt_set_time(unsigned int timeout) wdt_set_time() argument 289 wdt_set_timeout(struct watchdog_device *wdog, unsigned int timeout) wdt_set_timeout() argument [all...] |
H A D | smsc37b787_wdt.c | 33 * reset the system (causing a reboot) after the timeout occurs. 77 static int timeout = 60; /* timeout value: default is 60 "units" */ variable 192 * Bit 2 Force Timeout: 1 = Forces WD timeout event (self-cleaning) in wdt_timer_ctrl() 194 * 0 = P20 activity does not generate the WD timeout event in wdt_timer_ctrl() 196 * controller, to force the WD timeout event. in wdt_timer_ctrl() 225 /* disable the timeout */ in wb_smsc_wdt_initialize() 264 /* disable timeout */ in wb_smsc_wdt_shutdown() 271 /* set timeout => enable watchdog */ 279 /* set Power LED to blink, if we enable the timeout */ in wb_smsc_wdt_set_timeout() [all...] |
H A D | sunxi_wdt.c | 37 static unsigned int timeout; variable 63 * [timeout seconds] = register value 97 /* Set lowest timeout and enable watchdog */ in sunxi_wdt_restart() 132 unsigned int timeout) in sunxi_wdt_set_timeout() 139 if (wdt_timeout_map[timeout] == 0) in sunxi_wdt_set_timeout() 140 timeout++; in sunxi_wdt_set_timeout() 142 sunxi_wdt->wdt_dev.timeout = timeout; in sunxi_wdt_set_timeout() 146 reg |= wdt_timeout_map[timeout] << regs->wdt_timeout_shift; in sunxi_wdt_set_timeout() 175 sunxi_wdt->wdt_dev.timeout); in sunxi_wdt_start() 131 sunxi_wdt_set_timeout(struct watchdog_device *wdt_dev, unsigned int timeout) sunxi_wdt_set_timeout() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/host1x/hw/ |
H A D | cdma_hw.c | 34 host1x_syncpt_incr(cdma->timeout.syncpt); in cdma_timeout_cpu_incr() 37 host1x_syncpt_load(cdma->timeout.syncpt); in cdma_timeout_cpu_incr() 86 * state (where DMA GET is set to DMA PUT), on a timeout we restore 273 * If this timeout fires, it indicates the current sync_queue entry has 285 timeout.wq); in cdma_timeout_handler() 293 if (!cdma->timeout.client) { in cdma_timeout_handler() 303 syncpt_val = host1x_syncpt_load(cdma->timeout.syncpt); in cdma_timeout_handler() 306 if ((s32)(syncpt_val - cdma->timeout.syncpt_val) >= 0) { in cdma_timeout_handler() 315 dev_warn(host1x->dev, "%s: timeout: %u (%s), HW thresh %d, done %d\n", in cdma_timeout_handler() 316 __func__, cdma->timeout in cdma_timeout_handler() [all...] |
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nf_conntrack_proto_icmpv6.c | 83 return &nf_icmpv6_pernet(net)->timeout; in icmpv6_get_timeouts() 92 unsigned int *timeout = nf_ct_timeout_lookup(ct); in nf_conntrack_icmpv6_packet() local 113 if (!timeout) in nf_conntrack_icmpv6_packet() 114 timeout = icmpv6_get_timeouts(nf_ct_net(ct)); in nf_conntrack_icmpv6_packet() 119 nf_ct_refresh_acct(ct, ctinfo, skb, *timeout); in nf_conntrack_icmpv6_packet() 300 unsigned int *timeout = data; in icmpv6_timeout_nlattr_to_obj() local 303 if (!timeout) in icmpv6_timeout_nlattr_to_obj() 304 timeout = icmpv6_get_timeouts(net); in icmpv6_timeout_nlattr_to_obj() 306 *timeout = in icmpv6_timeout_nlattr_to_obj() 309 /* Set default ICMPv6 timeout in icmpv6_timeout_nlattr_to_obj() 318 const unsigned int *timeout = data; icmpv6_timeout_obj_to_nlattr() local [all...] |
H A D | nft_dynset.c | 24 u64 timeout; member 52 u64 timeout; in nft_dynset_new() local 58 timeout = priv->timeout ? : set->timeout; in nft_dynset_new() 62 timeout, 0, GFP_ATOMIC); in nft_dynset_new() 86 u64 timeout; in nft_dynset_eval() local 97 timeout = priv->timeout ? : set->timeout; in nft_dynset_eval() 168 u64 timeout; nft_dynset_init() local [all...] |
H A D | nf_flow_table_core.c | 178 s32 timeout; in flow_offload_fixup_ct() local 185 timeout = tn->timeouts[ct->proto.tcp.state]; in flow_offload_fixup_ct() 186 timeout -= tn->offload_timeout; in flow_offload_fixup_ct() 193 timeout = tn->timeouts[state]; in flow_offload_fixup_ct() 194 timeout -= tn->offload_timeout; in flow_offload_fixup_ct() 199 if (timeout < 0) in flow_offload_fixup_ct() 200 timeout = 0; in flow_offload_fixup_ct() 202 if (nf_flow_timeout_delta(READ_ONCE(ct->timeout)) > (__s32)timeout) in flow_offload_fixup_ct() 203 WRITE_ONCE(ct->timeout, nfct_time_stam in flow_offload_fixup_ct() 262 unsigned long timeout = NF_FLOW_TIMEOUT; flow_offload_get_timeout() local 315 u32 timeout; flow_offload_refresh() local [all...] |
/kernel/linux/linux-5.10/kernel/locking/ |
H A D | semaphore.c | 39 static noinline int __down_timeout(struct semaphore *sem, long timeout); 148 * @timeout: how long to wait before failing 155 int down_timeout(struct semaphore *sem, long timeout) in down_timeout() argument 164 result = __down_timeout(sem, timeout); in down_timeout() 202 * 'timeout' parameter for the cases without timeouts. 205 long timeout) in __down_common() 216 if (unlikely(timeout <= 0)) in __down_common() 220 timeout = schedule_timeout(timeout); in __down_common() 250 static noinline int __sched __down_timeout(struct semaphore *sem, long timeout) in __down_timeout() argument 204 __down_common(struct semaphore *sem, long state, long timeout) __down_common() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | ksm_tests.c | 160 printf("usage: ksm_tests [-h] <test type> [-a prot] [-p page_count] [-l timeout]\n" in print_help() 218 static int ksm_do_scan(int scan_count, struct timespec start_time, int timeout) in ksm_do_scan() argument 234 if ((cur_time.tv_sec - start_time.tv_sec) > timeout) { in ksm_do_scan() 244 struct timespec start_time, int timeout) in ksm_merge_pages() 262 if (ksm_do_scan(2, start_time, timeout)) in ksm_merge_pages() 269 struct timespec start_time, int timeout) in ksm_unmerge_pages() 348 long page_count, int timeout, size_t page_size) in check_ksm_merge() 363 if (ksm_merge_pages(merge_type, map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_merge() 381 static int check_ksm_unmerge(int merge_type, int mapping, int prot, int timeout, size_t page_size) in check_ksm_unmerge() argument 397 if (ksm_merge_pages(merge_type, map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_unmerge() 243 ksm_merge_pages(int merge_type, void *addr, size_t size, struct timespec start_time, int timeout) ksm_merge_pages() argument 268 ksm_unmerge_pages(void *addr, size_t size, struct timespec start_time, int timeout) ksm_unmerge_pages() argument 347 check_ksm_merge(int merge_type, int mapping, int prot, long page_count, int timeout, size_t page_size) check_ksm_merge() argument 421 check_ksm_zero_page_merge(int merge_type, int mapping, int prot, long page_count, int timeout, bool use_zero_pages, size_t page_size) check_ksm_zero_page_merge() argument 486 check_ksm_numa_merge(int merge_type, int mapping, int prot, int timeout, bool merge_across_nodes, size_t page_size) check_ksm_numa_merge() argument 550 ksm_merge_hugepages_time(int merge_type, int mapping, int prot, int timeout, size_t map_size) ksm_merge_hugepages_time() argument 618 ksm_merge_time(int merge_type, int mapping, int prot, int timeout, size_t map_size) ksm_merge_time() argument 659 ksm_unmerge_time(int merge_type, int mapping, int prot, int timeout, size_t map_size) ksm_unmerge_time() argument 706 ksm_cow_time(int merge_type, int mapping, int prot, int timeout, size_t page_size) ksm_cow_time() argument [all...] |
/kernel/linux/linux-5.10/block/ |
H A D | scsi_ioctl.c | 63 int timeout, err = get_user(timeout, p); in sg_set_timeout() local 66 q->sg_timeout = clock_t_to_jiffies(timeout); in sg_set_timeout() 235 rq->timeout = msecs_to_jiffies(hdr->timeout); in blk_fill_sghdr_rq() 236 if (!rq->timeout) in blk_fill_sghdr_rq() 237 rq->timeout = q->sg_timeout; in blk_fill_sghdr_rq() 238 if (!rq->timeout) in blk_fill_sghdr_rq() 239 rq->timeout = BLK_DEFAULT_SG_TIMEOUT; in blk_fill_sghdr_rq() 240 if (rq->timeout < BLK_MIN_SG_TIMEOU in blk_fill_sghdr_rq() 646 compat_int_t timeout; global() member [all...] |
/kernel/linux/linux-5.10/drivers/media/rc/ |
H A D | rc-ir-raw.c | 121 * timeout 127 * decoding and generates a timeout. 144 /* timer could be set to timeout (125ms by default) */ in ir_raw_event_store_with_timeout() 190 if (!ev->pulse && dev->timeout && in ir_raw_event_store_with_filter() 191 dev->raw->this_ev.duration >= dev->timeout) in ir_raw_event_store_with_filter() 211 dev->raw->this_ev.timeout = true; in ir_raw_event_set_idle() 248 u32 timeout = 0; in change_protocol() local 269 if (timeout < handler->min_timeout) in change_protocol() 270 timeout = handler->min_timeout; in change_protocol() 275 if (timeout in change_protocol() [all...] |
/kernel/linux/linux-6.6/drivers/media/rc/ |
H A D | rc-ir-raw.c | 119 * timeout 125 * decoding and generates a timeout. 142 /* timer could be set to timeout (125ms by default) */ in ir_raw_event_store_with_timeout() 188 if (!ev->pulse && dev->timeout && in ir_raw_event_store_with_filter() 189 dev->raw->this_ev.duration >= dev->timeout) in ir_raw_event_store_with_filter() 209 dev->raw->this_ev.timeout = true; in ir_raw_event_set_idle() 246 u32 timeout = 0; in change_protocol() local 267 if (timeout < handler->min_timeout) in change_protocol() 268 timeout = handler->min_timeout; in change_protocol() 273 if (timeout in change_protocol() [all...] |
/kernel/linux/linux-5.10/arch/mips/include/asm/mach-rc32434/ |
H A D | dma_v.h | 28 int timeout = 1; in rc32434_halt_dma() local 31 for (timeout = DMA_HALT_TIMEOUT; timeout > 0; timeout--) { in rc32434_halt_dma() 39 return timeout ? 0 : 1; in rc32434_halt_dma()
|
/kernel/linux/linux-6.6/arch/mips/include/asm/mach-rc32434/ |
H A D | dma_v.h | 28 int timeout = 1; in rc32434_halt_dma() local 31 for (timeout = DMA_HALT_TIMEOUT; timeout > 0; timeout--) { in rc32434_halt_dma() 39 return timeout ? 0 : 1; in rc32434_halt_dma()
|
/kernel/linux/linux-5.10/drivers/accessibility/speakup/ |
H A D | speakup_keypc.c | 139 pr_warn("synth timeout %d %d %d %d\n", s1, s2, s3, s4); in oops() 146 int timeout; in synth_immediate() local 153 timeout = 1000; in synth_immediate() 155 if (--timeout <= 0) in synth_immediate() 167 int timeout; in do_catch_up() local 206 timeout = 1000; in do_catch_up() 208 if (--timeout <= 0) in do_catch_up() 210 if (timeout <= 0) { in do_catch_up() 222 timeout = 1000; in do_catch_up() 224 if (--timeout < in do_catch_up() [all...] |
/kernel/linux/linux-6.6/drivers/accessibility/speakup/ |
H A D | speakup_keypc.c | 148 pr_warn("synth timeout %d %d %d %d\n", s1, s2, s3, s4); in oops() 155 int timeout; in synth_immediate() local 162 timeout = 1000; in synth_immediate() 164 if (--timeout <= 0) in synth_immediate() 176 int timeout; in do_catch_up() local 215 timeout = 1000; in do_catch_up() 217 if (--timeout <= 0) in do_catch_up() 219 if (timeout <= 0) { in do_catch_up() 231 timeout = 1000; in do_catch_up() 233 if (--timeout < in do_catch_up() [all...] |