/kernel/linux/linux-5.10/net/9p/ |
H A D | trans_rdma.c | 56 * @timeout: Number of uSecs to wait for connection management events 83 long timeout; member 121 * @timeout: Time to wait in msecs for CM events 128 long timeout; member 146 {Opt_timeout, "timeout=%u"}, 161 if (rdma->timeout != P9_RDMA_TIMEOUT) in p9_rdma_show_options() 162 seq_printf(m, ",timeout=%lu", rdma->timeout); in p9_rdma_show_options() 185 opts->timeout = P9_RDMA_TIMEOUT; in parse_opts() 224 opts->timeout in parse_opts() [all...] |
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nf_flow_table_core.c | 141 unsigned int timeout; in flow_offload_fixup_ct_timeout() local 148 timeout = NF_FLOWTABLE_TCP_PICKUP_TIMEOUT; in flow_offload_fixup_ct_timeout() 150 timeout = NF_FLOWTABLE_UDP_PICKUP_TIMEOUT; in flow_offload_fixup_ct_timeout() 154 if (nf_flow_timeout_delta(READ_ONCE(ct->timeout)) > (__s32)timeout) in flow_offload_fixup_ct_timeout() 155 WRITE_ONCE(ct->timeout, nfct_time_stamp + timeout); in flow_offload_fixup_ct_timeout() 228 flow->timeout = nf_flowtable_time_stamp + NF_FLOW_TIMEOUT; in flow_offload_add() 260 flow->timeout = nf_flowtable_time_stamp + NF_FLOW_TIMEOUT; in flow_offload_refresh() 271 return nf_flow_timeout_delta(flow->timeout) < in nf_flow_has_expired() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
H A D | intel_dp_hdcp.c | 19 static void intel_dp_hdcp_wait_for_cp_irq(struct intel_hdcp *hdcp, int timeout) in intel_dp_hdcp_wait_for_cp_irq() argument 25 msecs_to_jiffies(timeout)); in intel_dp_hdcp_wait_for_cp_irq() 271 u32 timeout; member 371 int ret, timeout; in intel_dp_hdcp2_wait_for_msg() local 375 timeout = hdcp2_msg_data->timeout2; in intel_dp_hdcp2_wait_for_msg() 377 timeout = hdcp2_msg_data->timeout; in intel_dp_hdcp2_wait_for_msg() 381 * availability. So Wait for timeout and read the msg. in intel_dp_hdcp2_wait_for_msg() 384 mdelay(timeout); in intel_dp_hdcp2_wait_for_msg() 388 * As we want to check the msg availability at timeout, Ignorin in intel_dp_hdcp2_wait_for_msg() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | fw_reset.c | 139 NL_SET_ERR_MSG_MOD(extack, "Sync reset negotiation timeout"); in mlx5_fw_reset_get_reset_state_err() 145 NL_SET_ERR_MSG_MOD(extack, "Sync reset unload timeout"); in mlx5_fw_reset_get_reset_state_err() 423 unsigned long timeout; in mlx5_pci_link_toggle() local 458 timeout = jiffies + msecs_to_jiffies(mlx5_tout_ms(dev, PCI_TOGGLE)); in mlx5_pci_link_toggle() 466 } while (!time_after(jiffies, timeout)); in mlx5_pci_link_toggle() 484 } while (!time_after(jiffies, timeout)); in mlx5_pci_link_toggle() 537 unsigned long timeout; in mlx5_sync_reset_unload_event() local 565 timeout = jiffies + msecs_to_jiffies(mlx5_tout_ms(dev, RESET_UNLOAD)); in mlx5_sync_reset_unload_event() 574 } while (!time_after(jiffies, timeout)); in mlx5_sync_reset_unload_event() 577 mlx5_core_err(dev, "Got timeout waitin in mlx5_sync_reset_unload_event() 656 unsigned long timeout; mlx5_fw_reset_wait_reset_done() local [all...] |
/kernel/linux/linux-6.6/drivers/tty/serdev/ |
H A D | core.c | 253 * @timeout: timeout in jiffies, or 0 to wait indefinitely 257 * interrupted by a timeout or a signal). 272 long timeout) in serdev_device_write() 281 if (timeout == 0) in serdev_device_write() 282 timeout = MAX_SCHEDULE_TIMEOUT; in serdev_device_write() 299 timeout = wait_for_completion_interruptible_timeout(&serdev->write_comp, in serdev_device_write() 300 timeout); in serdev_device_write() 301 } while (timeout > 0); in serdev_device_write() 307 if (timeout < in serdev_device_write() 270 serdev_device_write(struct serdev_device *serdev, const unsigned char *buf, size_t count, long timeout) serdev_device_write() argument 375 serdev_device_wait_until_sent(struct serdev_device *serdev, long timeout) serdev_device_wait_until_sent() argument [all...] |
/kernel/linux/linux-6.6/drivers/spi/ |
H A D | spi-armada-3700.c | 261 int timeout = A3700_SPI_TIMEOUT; in a3700_spi_fifo_flush() local 268 while (--timeout) { in a3700_spi_fifo_flush() 342 unsigned int timeout; in a3700_spi_wait_completion() local 364 timeout = wait_for_completion_timeout(&a3700_spi->done, in a3700_spi_wait_completion() 369 if (timeout) in a3700_spi_wait_completion() 547 int timeout = A3700_SPI_TIMEOUT; in a3700_spi_transfer_abort_fifo() local 554 while (--timeout) { in a3700_spi_transfer_abort_fifo() 595 int ret = 0, timeout = A3700_SPI_TIMEOUT; in a3700_spi_transfer_one_fifo() local 714 while (--timeout) { in a3700_spi_transfer_one_fifo() 721 if (timeout in a3700_spi_transfer_one_fifo() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
H A D | intel_dp_hdcp.c | 39 static void intel_dp_hdcp_wait_for_cp_irq(struct intel_hdcp *hdcp, int timeout) in intel_dp_hdcp_wait_for_cp_irq() argument 45 msecs_to_jiffies(timeout)); in intel_dp_hdcp_wait_for_cp_irq() 291 u32 timeout; member 393 int ret, timeout; in intel_dp_hdcp2_wait_for_msg() local 397 timeout = hdcp2_msg_data->timeout2; in intel_dp_hdcp2_wait_for_msg() 399 timeout = hdcp2_msg_data->timeout; in intel_dp_hdcp2_wait_for_msg() 403 * availability. So Wait for timeout and read the msg. in intel_dp_hdcp2_wait_for_msg() 406 mdelay(timeout); in intel_dp_hdcp2_wait_for_msg() 410 * As we want to check the msg availability at timeout, Ignorin in intel_dp_hdcp2_wait_for_msg() [all...] |
/kernel/linux/linux-6.6/net/9p/ |
H A D | trans_rdma.c | 53 * @timeout: Number of uSecs to wait for connection management events 80 long timeout; member 120 * @timeout: Time to wait in msecs for CM events 127 long timeout; member 145 {Opt_timeout, "timeout=%u"}, 160 if (rdma->timeout != P9_RDMA_TIMEOUT) in p9_rdma_show_options() 161 seq_printf(m, ",timeout=%lu", rdma->timeout); in p9_rdma_show_options() 184 opts->timeout = P9_RDMA_TIMEOUT; in parse_opts() 223 opts->timeout in parse_opts() [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/common/ |
H A D | transfer.c | 376 hi_s32 upload_modem_ack_step(hi_u8 *status, hi_u32 *timeout) in upload_modem_ack_step() argument 380 *timeout = UPLOAD_WAIT_DEFAULT_TIME; in upload_modem_ack_step() 395 hi_s32 upload_modem_nak_step(hi_u8 *status, hi_u32 *timeout) in upload_modem_nak_step() argument 399 *timeout = UPLOAD_WAIT_START_C_TIME; in upload_modem_nak_step() 422 hi_u32 timeout = UPLOAD_WAIT_START_C_TIME; in upload_serial_ymodem() local 425 hi_u32 ret = serial_getc_timeout(timeout, &ch); in upload_serial_ymodem() 446 if (upload_modem_ack_step(&ctx->status, &timeout) == 1) { in upload_serial_ymodem() 457 if (upload_modem_nak_step(&ctx->status, &timeout) == 1) { in upload_serial_ymodem()
|
/kernel/linux/linux-5.10/block/ |
H A D | bsg.c | 165 rq->timeout = msecs_to_jiffies(hdr.timeout); in bsg_sg_io() 166 if (!rq->timeout) in bsg_sg_io() 167 rq->timeout = q->sg_timeout; in bsg_sg_io() 168 if (!rq->timeout) in bsg_sg_io() 169 rq->timeout = BLK_DEFAULT_SG_TIMEOUT; in bsg_sg_io() 170 if (rq->timeout < BLK_MIN_SG_TIMEOUT) in bsg_sg_io() 171 rq->timeout = BLK_MIN_SG_TIMEOUT; in bsg_sg_io()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000e/ |
H A D | nvm.c | 153 s32 timeout = E1000_NVM_GRANT_ATTEMPTS; in e1000e_acquire_nvm() local 158 while (timeout) { in e1000e_acquire_nvm() 163 timeout--; in e1000e_acquire_nvm() 166 if (!timeout) { in e1000e_acquire_nvm() 248 u16 timeout = NVM_MAX_RETRY_SPI; in e1000_ready_nvm_eeprom() local 259 * not cleared within 'timeout', then error out. in e1000_ready_nvm_eeprom() 261 while (timeout) { in e1000_ready_nvm_eeprom() 270 timeout--; in e1000_ready_nvm_eeprom() 273 if (!timeout) { in e1000_ready_nvm_eeprom()
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
H A D | i2c-owl.c | 85 /* I2C bus timeout */ 131 unsigned int val, timeout = 0; in owl_i2c_reset_fifo() local 144 } while (timeout++ < OWL_I2C_MAX_RETRIES); in owl_i2c_reset_fifo() 146 if (timeout > OWL_I2C_MAX_RETRIES) { in owl_i2c_reset_fifo() 147 dev_err(&i2c_dev->adap.dev, "FIFO reset timeout\n"); in owl_i2c_reset_fifo() 229 unsigned long timeout; in owl_i2c_check_bus_busy() local 232 timeout = jiffies + OWL_I2C_TIMEOUT; in owl_i2c_check_bus_busy() 234 if (time_after(jiffies, timeout)) { in owl_i2c_check_bus_busy() 235 dev_err(&adap->dev, "Bus busy timeout\n"); in owl_i2c_check_bus_busy() 361 adap->timeout); in owl_i2c_master_xfer() [all...] |
H A D | i2c-mlxcpld.c | 279 int timeout = 0; in mlxcpld_i2c_wait_for_free() local 285 timeout += MLXCPLD_I2C_POLL_TIME; in mlxcpld_i2c_wait_for_free() 286 } while (timeout <= MLXCPLD_I2C_XFER_TO); in mlxcpld_i2c_wait_for_free() 288 if (timeout > MLXCPLD_I2C_XFER_TO) in mlxcpld_i2c_wait_for_free() 296 * It puts current process to sleep until we get interrupt or timeout expires. 301 int status, i, timeout = 0; in mlxcpld_i2c_wait_for_tc() local 308 timeout += MLXCPLD_I2C_POLL_TIME; in mlxcpld_i2c_wait_for_tc() 309 } while (status == 0 && timeout < MLXCPLD_I2C_XFER_TO); in mlxcpld_i2c_wait_for_tc() 509 mlxcpld_i2c_adapter.timeout = usecs_to_jiffies(MLXCPLD_I2C_XFER_TO); in mlxcpld_i2c_probe()
|
/kernel/linux/linux-5.10/drivers/ide/ |
H A D | ide-eh.c | 342 unsigned long flags, timeout; in do_reset1() local 370 timeout = jiffies; in do_reset1() 373 time_after(tdrive->sleep, timeout)) in do_reset1() 374 timeout = tdrive->sleep; in do_reset1() 378 if (time_before_eq(timeout, now)) in do_reset1() 382 timeout = schedule_timeout_uninterruptible(timeout - now); in do_reset1() 384 } while (timeout); in do_reset1()
|
/kernel/linux/linux-5.10/include/scsi/ |
H A D | scsi_device.h | 154 unsigned int eh_timeout; /* Error handling timeout */ 406 unsigned char *buffer, int len, int timeout, 411 int timeout, int retries, 414 extern int scsi_test_unit_ready(struct scsi_device *sdev, int timeout, 445 int timeout, int retries, u64 flags, 449 sshdr, timeout, retries, flags, rq_flags, resid) \ 454 sense, sshdr, timeout, retries, flags, rq_flags, \ 459 unsigned bufflen, struct scsi_sense_hdr *sshdr, int timeout, in scsi_execute_req() 463 bufflen, NULL, sshdr, timeout, retries, 0, 0, resid); in scsi_execute_req() 457 scsi_execute_req(struct scsi_device *sdev, const unsigned char *cmd, int data_direction, void *buffer, unsigned bufflen, struct scsi_sense_hdr *sshdr, int timeout, int retries, int *resid) scsi_execute_req() argument
|
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | ib_mad.h | 48 __field(unsigned long, timeout) 64 __entry->timeout = wr->timeout; 88 "wrtid 0x%llx; %d/%d retries(%d); timeout %lu length %d : " \ 96 __entry->retry, __entry->timeout, __entry->length, 136 __field(unsigned long, timeout) 153 __entry->timeout = wr->timeout; 169 "wrtid 0x%llx %d/%d retries(%d) timeout %lu length %d: " \ 176 __entry->retry, __entry->timeout, [all...] |
/kernel/linux/linux-5.10/net/dccp/ |
H A D | output.c | 213 * @delay: timeout in jiffies 607 unsigned long timeout = jiffies + 2 * HZ; 609 /* Use new timeout only if there wasn't a older one earlier. */ 621 if (!time_before(timeout, icsk->icsk_ack.timeout)) 622 timeout = icsk->icsk_ack.timeout; 625 icsk->icsk_ack.timeout = timeout; 626 sk_reset_timer(sk, &icsk->icsk_delack_timer, timeout); [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-ds1374.c | 382 MODULE_PARM_DESC(wdt_margin, "Watchdog timeout in seconds (default 32s)"); 395 static int ds1374_wdt_settimeout(struct watchdog_device *wdt, unsigned int timeout) in ds1374_wdt_settimeout() argument 401 wdt->timeout = timeout; in ds1374_wdt_settimeout() 415 timeout = timeout * 4096; in ds1374_wdt_settimeout() 416 ret = ds1374_write_rtc(client, timeout, DS1374_REG_WDALM0, 3); in ds1374_wdt_settimeout() 518 ds1374->wdt.timeout = TIMER_MARGIN_DEFAULT; in ds1374_probe() 527 ds1374_wdt_settimeout(&ds1374->wdt, ds1374->wdt.timeout); in ds1374_probe()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/e1000e/ |
H A D | nvm.c | 153 s32 timeout = E1000_NVM_GRANT_ATTEMPTS; in e1000e_acquire_nvm() local 158 while (timeout) { in e1000e_acquire_nvm() 163 timeout--; in e1000e_acquire_nvm() 166 if (!timeout) { in e1000e_acquire_nvm() 248 u16 timeout = NVM_MAX_RETRY_SPI; in e1000_ready_nvm_eeprom() local 259 * not cleared within 'timeout', then error out. in e1000_ready_nvm_eeprom() 261 while (timeout) { in e1000_ready_nvm_eeprom() 270 timeout--; in e1000_ready_nvm_eeprom() 273 if (!timeout) { in e1000_ready_nvm_eeprom()
|
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-ds1374.c | 379 MODULE_PARM_DESC(wdt_margin, "Watchdog timeout in seconds (default 32s)"); 392 static int ds1374_wdt_settimeout(struct watchdog_device *wdt, unsigned int timeout) in ds1374_wdt_settimeout() argument 398 wdt->timeout = timeout; in ds1374_wdt_settimeout() 412 timeout = timeout * 4096; in ds1374_wdt_settimeout() 413 ret = ds1374_write_rtc(client, timeout, DS1374_REG_WDALM0, 3); in ds1374_wdt_settimeout() 514 ds1374->wdt.timeout = TIMER_MARGIN_DEFAULT; in ds1374_probe() 523 ds1374_wdt_settimeout(&ds1374->wdt, ds1374->wdt.timeout); in ds1374_probe()
|
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | ib_mad.h | 48 __field(unsigned long, timeout) 63 __entry->timeout = wr->timeout; 87 "wrtid 0x%llx; %d/%d retries(%d); timeout %lu length %d : " \ 95 __entry->retry, __entry->timeout, __entry->length, 135 __field(unsigned long, timeout) 152 __entry->timeout = wr->timeout; 168 "wrtid 0x%llx %d/%d retries(%d) timeout %lu length %d: " \ 175 __entry->retry, __entry->timeout, [all...] |
/kernel/linux/linux-6.6/drivers/net/phy/ |
H A D | marvell-88x2222.c | 327 static int timeout; in mv2222_read_status_10g() local 343 timeout++; in mv2222_read_status_10g() 345 if (timeout > AUTONEG_TIMEOUT) { in mv2222_read_status_10g() 346 timeout = 0; in mv2222_read_status_10g() 363 static int timeout; in mv2222_read_status_1g() local 372 timeout++; in mv2222_read_status_1g() 374 if (timeout > AUTONEG_TIMEOUT) { in mv2222_read_status_1g() 375 timeout = 0; in mv2222_read_status_1g()
|
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-io.c | 51 u32 bits, u32 mask, int timeout) in iwl_poll_bit() 60 } while (t < timeout); in iwl_poll_bit() 75 /* return as if we have a HW timeout/failure */ in iwl_read_direct32() 99 int timeout) in iwl_poll_direct_bit() 108 } while (t < timeout); in iwl_poll_direct_bit() 147 /* return as if we have a HW timeout/failure */ in iwl_read_prph() 163 u32 bits, u32 mask, int timeout) in iwl_poll_prph_bit() 172 } while (t < timeout); in iwl_poll_prph_bit() 499 unsigned long timeout = jiffies + IWL_TRANS_NMI_TIMEOUT; in iwl_trans_sync_nmi_with_addr() local 509 while (time_after(timeout, jiffie in iwl_trans_sync_nmi_with_addr() 50 iwl_poll_bit(struct iwl_trans *trans, u32 addr, u32 bits, u32 mask, int timeout) iwl_poll_bit() argument 98 iwl_poll_direct_bit(struct iwl_trans *trans, u32 addr, u32 mask, int timeout) iwl_poll_direct_bit() argument 162 iwl_poll_prph_bit(struct iwl_trans *trans, u32 addr, u32 bits, u32 mask, int timeout) iwl_poll_prph_bit() argument [all...] |
/kernel/linux/linux-6.6/block/ |
H A D | bsg-lib.c | 29 bool open_for_write, unsigned int timeout) in bsg_transport_sg_io_fn() 47 rq->timeout = timeout; in bsg_transport_sg_io_fn() 237 job->timeout = req->timeout; in bsg_prepare_job() 350 .timeout = bsg_timeout, 358 * @timeout: timeout handler function pointer 362 bsg_job_fn *job_fn, bsg_timeout_fn *timeout, int dd_job_size) in bsg_setup_queue() 374 bset->timeout_fn = timeout; in bsg_setup_queue() 28 bsg_transport_sg_io_fn(struct request_queue *q, struct sg_io_v4 *hdr, bool open_for_write, unsigned int timeout) bsg_transport_sg_io_fn() argument 361 bsg_setup_queue(struct device *dev, const char *name, bsg_job_fn *job_fn, bsg_timeout_fn *timeout, int dd_job_size) bsg_setup_queue() argument [all...] |
/kernel/linux/linux-6.6/drivers/i2c/busses/ |
H A D | i2c-owl.c | 88 /* I2C bus timeout */ 135 unsigned int val, timeout = 0; in owl_i2c_reset_fifo() local 148 } while (timeout++ < OWL_I2C_MAX_RETRIES); in owl_i2c_reset_fifo() 150 if (timeout > OWL_I2C_MAX_RETRIES) { in owl_i2c_reset_fifo() 151 dev_err(&i2c_dev->adap.dev, "FIFO reset timeout\n"); in owl_i2c_reset_fifo() 238 unsigned long timeout; in owl_i2c_check_bus_busy() local 241 timeout = jiffies + OWL_I2C_TIMEOUT; in owl_i2c_check_bus_busy() 243 if (time_after(jiffies, timeout)) { in owl_i2c_check_bus_busy() 244 dev_err(&adap->dev, "Bus busy timeout\n"); in owl_i2c_check_bus_busy() 378 adap->timeout); in owl_i2c_xfer_common() [all...] |