/linux-6.6.21/drivers/leds/trigger/ |
D | ledtrig-activity.c | 28 int time_left; member 126 activity_data->time_left -= 100; in led_activity_function() 127 if (activity_data->time_left <= 0) { in led_activity_function() 128 activity_data->time_left = 0; in led_activity_function() 147 if (!activity_data->time_left || delay <= activity_data->time_left) in led_activity_function() 148 activity_data->time_left = delay; in led_activity_function() 150 delay = min_t(int, activity_data->time_left, 100); in led_activity_function()
|
/linux-6.6.21/drivers/i2c/busses/ |
D | i2c-bcm-kona.c | 246 unsigned long time_left = msecs_to_jiffies(I2C_TIMEOUT); in bcm_kona_send_i2c_cmd() local 263 time_left = wait_for_completion_timeout(&dev->done, time_left); in bcm_kona_send_i2c_cmd() 268 if (!time_left) { in bcm_kona_send_i2c_cmd() 284 unsigned long time_left = msecs_to_jiffies(I2C_TIMEOUT); in bcm_kona_i2c_read_fifo_single() local 298 time_left = wait_for_completion_timeout(&dev->done, time_left); in bcm_kona_i2c_read_fifo_single() 303 if (!time_left) { in bcm_kona_i2c_read_fifo_single() 349 unsigned long time_left = msecs_to_jiffies(I2C_TIMEOUT); in bcm_kona_i2c_write_byte() local 370 time_left = wait_for_completion_timeout(&dev->done, time_left); in bcm_kona_i2c_write_byte() 375 if (!time_left) { in bcm_kona_i2c_write_byte() 395 unsigned long time_left = msecs_to_jiffies(I2C_TIMEOUT); in bcm_kona_i2c_write_fifo_single() local [all …]
|
D | i2c-qcom-geni.c | 332 unsigned long time_left = ABORT_TIMEOUT; in geni_i2c_abort_xfer() local 343 time_left = wait_for_completion_timeout(&gi2c->done, time_left); in geni_i2c_abort_xfer() 344 } while (!gi2c->abort_done && time_left); in geni_i2c_abort_xfer() 346 if (!time_left) in geni_i2c_abort_xfer() 353 unsigned long time_left = RST_TIMEOUT; in geni_i2c_rx_fsm_rst() local 357 time_left = wait_for_completion_timeout(&gi2c->done, time_left); in geni_i2c_rx_fsm_rst() 359 } while (!(val & RX_RESET_DONE) && time_left); in geni_i2c_rx_fsm_rst() 368 unsigned long time_left = RST_TIMEOUT; in geni_i2c_tx_fsm_rst() local 372 time_left = wait_for_completion_timeout(&gi2c->done, time_left); in geni_i2c_tx_fsm_rst() 374 } while (!(val & TX_RESET_DONE) && time_left); in geni_i2c_tx_fsm_rst() [all …]
|
D | i2c-rzv2m.c | 181 unsigned long time_left; in rzv2m_i2c_write_with_ack() local 187 time_left = wait_for_completion_timeout(&priv->msg_tia_done, in rzv2m_i2c_write_with_ack() 189 if (!time_left) in rzv2m_i2c_write_with_ack() 202 unsigned long time_left; in rzv2m_i2c_read_with_ack() local 214 time_left = wait_for_completion_timeout(&priv->msg_tia_done, in rzv2m_i2c_read_with_ack() 216 if (!time_left) in rzv2m_i2c_read_with_ack() 233 time_left = wait_for_completion_timeout(&priv->msg_tia_done, in rzv2m_i2c_read_with_ack() 235 if (!time_left) in rzv2m_i2c_read_with_ack()
|
D | i2c-octeon-core.c | 47 long time_left; in octeon_i2c_wait() local 64 time_left = wait_event_timeout(i2c->queue, octeon_i2c_test_iflg(i2c), in octeon_i2c_wait() 68 if (i2c->broken_irq_check && !time_left && in octeon_i2c_wait() 75 if (!time_left) in octeon_i2c_wait() 141 int time_left; in octeon_i2c_hlc_wait() local 158 time_left = wait_event_timeout(i2c->queue, in octeon_i2c_hlc_wait() 162 if (!time_left) in octeon_i2c_hlc_wait() 165 if (i2c->broken_irq_check && !time_left && in octeon_i2c_hlc_wait() 172 if (!time_left) in octeon_i2c_hlc_wait()
|
D | i2c-mv64xxx.c | 559 long time_left; in mv64xxx_i2c_wait_for_completion() local 563 time_left = wait_event_timeout(drv_data->waitq, in mv64xxx_i2c_wait_for_completion() 567 if (!time_left) { /* Timed out */ in mv64xxx_i2c_wait_for_completion() 570 } else if (time_left < 0) { /* Interrupted/Error */ in mv64xxx_i2c_wait_for_completion() 571 drv_data->rc = time_left; /* errno value */ in mv64xxx_i2c_wait_for_completion() 579 time_left = wait_event_timeout(drv_data->waitq, in mv64xxx_i2c_wait_for_completion() 582 if ((time_left <= 0) && drv_data->block) { in mv64xxx_i2c_wait_for_completion() 587 (int)time_left); in mv64xxx_i2c_wait_for_completion()
|
D | i2c-aspeed.c | 175 unsigned long time_left, flags; in aspeed_i2c_recover_bus() local 193 time_left = wait_for_completion_timeout( in aspeed_i2c_recover_bus() 197 if (time_left == 0) in aspeed_i2c_recover_bus() 216 time_left = wait_for_completion_timeout( in aspeed_i2c_recover_bus() 220 if (time_left == 0) in aspeed_i2c_recover_bus() 685 unsigned long time_left, flags; in aspeed_i2c_master_xfer() local 712 time_left = wait_for_completion_timeout(&bus->cmd_complete, in aspeed_i2c_master_xfer() 715 if (time_left == 0) { in aspeed_i2c_master_xfer()
|
D | i2c-meson.c | 355 unsigned long time_left, flags; in meson_i2c_xfer_msg() local 387 time_left = msecs_to_jiffies(I2C_TIMEOUT_MS); in meson_i2c_xfer_msg() 388 time_left = wait_for_completion_timeout(&i2c->done, time_left); in meson_i2c_xfer_msg() 390 if (!time_left) in meson_i2c_xfer_msg()
|
D | i2c-ls2x.c | 128 unsigned long time_left; in ls2x_i2c_xfer_byte() local 132 time_left = wait_for_completion_timeout(&priv->cmd_complete, in ls2x_i2c_xfer_byte() 134 if (!time_left) in ls2x_i2c_xfer_byte()
|
/linux-6.6.21/drivers/net/wireless/ath/ath9k/ |
D | htc_hst.c | 159 unsigned long time_left; in htc_config_pipe_credits() local 180 time_left = wait_for_completion_timeout(&target->cmd_wait, HZ); in htc_config_pipe_credits() 181 if (!time_left) { in htc_config_pipe_credits() 197 unsigned long time_left; in htc_setup_complete() local 215 time_left = wait_for_completion_timeout(&target->cmd_wait, HZ); in htc_setup_complete() 216 if (!time_left) { in htc_setup_complete() 249 unsigned long time_left; in htc_connect_service() local 290 time_left = wait_for_completion_timeout(&target->cmd_wait, HZ); in htc_connect_service() 291 if (!time_left) { in htc_connect_service()
|
/linux-6.6.21/sound/soc/codecs/ |
D | cs42l43-jack.c | 510 unsigned long time_left; in cs42l43_start_load_detect() local 517 time_left = wait_for_completion_timeout(&priv->hp_shutdown, in cs42l43_start_load_detect() 519 if (!time_left) in cs42l43_start_load_detect() 575 unsigned long time_left; in cs42l43_stop_load_detect() local 582 time_left = wait_for_completion_timeout(&priv->hp_startup, in cs42l43_stop_load_detect() 584 if (!time_left) in cs42l43_stop_load_detect() 597 unsigned long time_left; in cs42l43_run_load_detect() local 602 time_left = wait_for_completion_timeout(&priv->load_detect, in cs42l43_run_load_detect() 606 if (!time_left) in cs42l43_run_load_detect() 641 unsigned long time_left; in cs42l43_run_type_detect() local [all …]
|
/linux-6.6.21/drivers/watchdog/ |
D | pcwd_pci.c | 413 static int pcipcwd_get_timeleft(int *time_left) in pcipcwd_get_timeleft() argument 422 *time_left = (msb << 8) + lsb; in pcipcwd_get_timeleft() 425 pr_debug("Time left before next reboot: %d\n", *time_left); in pcipcwd_get_timeleft() 552 int time_left; in pcipcwd_ioctl() local 554 if (pcipcwd_get_timeleft(&time_left)) in pcipcwd_ioctl() 557 return put_user(time_left, p); in pcipcwd_ioctl()
|
D | bcm7038_wdt.c | 109 u32 time_left; in bcm7038_wdt_get_timeleft() local 111 time_left = bcm7038_wdt_read(wdt->base + WDT_CMD_REG); in bcm7038_wdt_get_timeleft() 113 return time_left / wdt->rate; in bcm7038_wdt_get_timeleft()
|
D | pcwd_usb.c | 343 int *time_left) in usb_pcwd_get_timeleft() argument 352 *time_left = (msb << 8) + lsb; in usb_pcwd_get_timeleft() 464 int time_left; in usb_pcwd_ioctl() local 466 if (usb_pcwd_get_timeleft(usb_pcwd_device, &time_left)) in usb_pcwd_ioctl() 469 return put_user(time_left, p); in usb_pcwd_ioctl()
|
/linux-6.6.21/drivers/cpufreq/ |
D | brcmstb-avs-cpufreq.c | 203 unsigned long time_left = 0; in wait_for_avs_command() local 213 time_left = timeout; in wait_for_avs_command() 221 return time_left; in wait_for_avs_command() 229 unsigned long time_left; in __issue_avs_command() local 267 time_left = wait_for_avs_command(priv, AVS_TIMEOUT); in __issue_avs_command() 275 if (time_left == 0 || val == 0 || val > AVS_STATUS_MAX) { in __issue_avs_command() 279 jiffies_to_msecs(time_left), val); in __issue_avs_command()
|
/linux-6.6.21/drivers/net/wireless/ath/ath10k/ |
D | thermal.c | 67 unsigned long time_left; in ath10k_thermal_show_temp() local 89 time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, in ath10k_thermal_show_temp() 91 if (!time_left) { in ath10k_thermal_show_temp()
|
D | txrx.c | 188 long time_left; in ath10k_wait_for_peer_common() local 190 time_left = wait_event_timeout(ar->peer_mapping_wq, ({ in ath10k_wait_for_peer_common() 201 if (time_left == 0) in ath10k_wait_for_peer_common()
|
/linux-6.6.21/drivers/net/wireless/ath/ath12k/ |
D | htc.c | 489 unsigned long time_left; in ath12k_htc_wait_target() local 495 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath12k_htc_wait_target() 497 if (!time_left) { in ath12k_htc_wait_target() 503 time_left = in ath12k_htc_wait_target() 507 if (!time_left) in ath12k_htc_wait_target() 564 unsigned long time_left; in ath12k_htc_connect_service() local 622 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath12k_htc_connect_service() 624 if (!time_left) { in ath12k_htc_connect_service()
|
/linux-6.6.21/drivers/soc/qcom/ |
D | rpmh.c | 330 unsigned long time_left; in rpmh_write_batch() local 378 time_left = RPMH_TIMEOUT_MS; in rpmh_write_batch() 380 time_left = wait_for_completion_timeout(&compls[i], time_left); in rpmh_write_batch() 381 if (!time_left) { in rpmh_write_batch()
|
/linux-6.6.21/drivers/soc/tegra/fuse/ |
D | fuse-tegra20.c | 46 unsigned long time_left; in tegra20_fuse_read() local 76 time_left = wait_for_completion_timeout(&fuse->apbdma.wait, in tegra20_fuse_read() 79 if (WARN(time_left == 0, "apb read dma timed out")) in tegra20_fuse_read()
|
/linux-6.6.21/drivers/net/wireless/ath/ath11k/ |
D | thermal.c | 68 unsigned long time_left; in ath11k_thermal_show_temp() local 90 time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, in ath11k_thermal_show_temp() 92 if (!time_left) { in ath11k_thermal_show_temp()
|
D | htc.c | 527 unsigned long time_left; in ath11k_htc_wait_target() local 533 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath11k_htc_wait_target() 535 if (!time_left) { in ath11k_htc_wait_target() 541 time_left = in ath11k_htc_wait_target() 545 if (!time_left) in ath11k_htc_wait_target() 608 unsigned long time_left; in ath11k_htc_connect_service() local 671 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath11k_htc_connect_service() 673 if (!time_left) { in ath11k_htc_connect_service()
|
/linux-6.6.21/drivers/media/radio/si470x/ |
D | radio-si470x-common.c | 196 unsigned long time_left; in si470x_set_chan() local 217 time_left = wait_for_completion_timeout(&radio->completion, in si470x_set_chan() 219 if (time_left == 0) in si470x_set_chan() 300 unsigned long time_left; in si470x_set_seek() local 342 time_left = wait_for_completion_timeout(&radio->completion, in si470x_set_seek() 344 if (time_left == 0) in si470x_set_seek()
|
/linux-6.6.21/drivers/spi/ |
D | spi-geni-qcom.c | 152 unsigned long time_left; in handle_se_timeout() local 176 time_left = wait_for_completion_timeout(&mas->cancel_done, HZ); in handle_se_timeout() 177 if (time_left) in handle_se_timeout() 185 time_left = wait_for_completion_timeout(&mas->abort_done, HZ); in handle_se_timeout() 186 if (!time_left) { in handle_se_timeout() 204 time_left = wait_for_completion_timeout(&mas->tx_reset_done, HZ); in handle_se_timeout() 205 if (!time_left) in handle_se_timeout() 213 time_left = wait_for_completion_timeout(&mas->rx_reset_done, HZ); in handle_se_timeout() 214 if (!time_left) in handle_se_timeout() 292 unsigned long time_left; in spi_geni_set_cs() local [all …]
|
/linux-6.6.21/drivers/iio/proximity/ |
D | vl53l0x-i2c.c | 115 unsigned long time_left; in vl53l0x_read_proximity() local 124 time_left = wait_for_completion_timeout(&data->completion, HZ/10); in vl53l0x_read_proximity() 125 if (time_left == 0) in vl53l0x_read_proximity()
|