/kernel/linux/linux-5.10/drivers/leds/trigger/ |
D | ledtrig-activity.c | 27 int time_left; member 125 activity_data->time_left -= 100; in led_activity_function() 126 if (activity_data->time_left <= 0) { in led_activity_function() 127 activity_data->time_left = 0; in led_activity_function() 146 if (!activity_data->time_left || delay <= activity_data->time_left) in led_activity_function() 147 activity_data->time_left = delay; in led_activity_function() 149 delay = min_t(int, activity_data->time_left, 100); in led_activity_function()
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
D | i2c-bcm-kona.c | 256 unsigned long time_left = msecs_to_jiffies(I2C_TIMEOUT); in bcm_kona_send_i2c_cmd() local 273 time_left = wait_for_completion_timeout(&dev->done, time_left); in bcm_kona_send_i2c_cmd() 278 if (!time_left) { in bcm_kona_send_i2c_cmd() 294 unsigned long time_left = msecs_to_jiffies(I2C_TIMEOUT); in bcm_kona_i2c_read_fifo_single() local 308 time_left = wait_for_completion_timeout(&dev->done, time_left); in bcm_kona_i2c_read_fifo_single() 313 if (!time_left) { in bcm_kona_i2c_read_fifo_single() 359 unsigned long time_left = msecs_to_jiffies(I2C_TIMEOUT); in bcm_kona_i2c_write_byte() local 380 time_left = wait_for_completion_timeout(&dev->done, time_left); in bcm_kona_i2c_write_byte() 385 if (!time_left) { in bcm_kona_i2c_write_byte() 405 unsigned long time_left = msecs_to_jiffies(I2C_TIMEOUT); in bcm_kona_i2c_write_fifo_single() local [all …]
|
D | i2c-qcom-geni.c | 307 unsigned long time_left = ABORT_TIMEOUT; in geni_i2c_abort_xfer() local 316 time_left = wait_for_completion_timeout(&gi2c->done, time_left); in geni_i2c_abort_xfer() 318 } while (!(val & M_CMD_ABORT_EN) && time_left); in geni_i2c_abort_xfer() 327 unsigned long time_left = RST_TIMEOUT; in geni_i2c_rx_fsm_rst() local 331 time_left = wait_for_completion_timeout(&gi2c->done, time_left); in geni_i2c_rx_fsm_rst() 333 } while (!(val & RX_RESET_DONE) && time_left); in geni_i2c_rx_fsm_rst() 342 unsigned long time_left = RST_TIMEOUT; in geni_i2c_tx_fsm_rst() local 346 time_left = wait_for_completion_timeout(&gi2c->done, time_left); in geni_i2c_tx_fsm_rst() 348 } while (!(val & TX_RESET_DONE) && time_left); in geni_i2c_tx_fsm_rst() 382 unsigned long time_left; in geni_i2c_rx_one_msg() local [all …]
|
D | i2c-zx2967.c | 247 unsigned long time_left; in zx2967_i2c_xfer_bytes() local 263 time_left = wait_for_completion_timeout(&i2c->complete, in zx2967_i2c_xfer_bytes() 265 if (time_left == 0) in zx2967_i2c_xfer_bytes() 361 unsigned long time_left; in zx2967_smbus_xfer_read() local 375 time_left = wait_for_completion_timeout(&i2c->complete, in zx2967_smbus_xfer_read() 377 if (time_left == 0) in zx2967_smbus_xfer_read() 404 unsigned long time_left; in zx2967_smbus_xfer_write() local 412 time_left = wait_for_completion_timeout(&i2c->complete, in zx2967_smbus_xfer_write() 414 if (time_left == 0) in zx2967_smbus_xfer_write()
|
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-meson.c | 305 unsigned long time_left, flags; in meson_i2c_xfer_msg() local 337 time_left = msecs_to_jiffies(I2C_TIMEOUT_MS); in meson_i2c_xfer_msg() 338 time_left = wait_for_completion_timeout(&i2c->done, time_left); in meson_i2c_xfer_msg() 340 if (!time_left) in meson_i2c_xfer_msg()
|
D | i2c-mv64xxx.c | 534 long time_left; in mv64xxx_i2c_wait_for_completion() local 538 time_left = wait_event_timeout(drv_data->waitq, in mv64xxx_i2c_wait_for_completion() 542 if (!time_left) { /* Timed out */ in mv64xxx_i2c_wait_for_completion() 545 } else if (time_left < 0) { /* Interrupted/Error */ in mv64xxx_i2c_wait_for_completion() 546 drv_data->rc = time_left; /* errno value */ in mv64xxx_i2c_wait_for_completion() 554 time_left = wait_event_timeout(drv_data->waitq, in mv64xxx_i2c_wait_for_completion() 557 if ((time_left <= 0) && drv_data->block) { in mv64xxx_i2c_wait_for_completion() 562 (int)time_left); in mv64xxx_i2c_wait_for_completion()
|
D | i2c-aspeed.c | 177 unsigned long time_left, flags; in aspeed_i2c_recover_bus() local 195 time_left = wait_for_completion_timeout( in aspeed_i2c_recover_bus() 199 if (time_left == 0) in aspeed_i2c_recover_bus() 218 time_left = wait_for_completion_timeout( in aspeed_i2c_recover_bus() 222 if (time_left == 0) in aspeed_i2c_recover_bus() 664 unsigned long time_left, flags; in aspeed_i2c_master_xfer() local 691 time_left = wait_for_completion_timeout(&bus->cmd_complete, in aspeed_i2c_master_xfer() 694 if (time_left == 0) { in aspeed_i2c_master_xfer()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
D | htc_hst.c | 153 unsigned long time_left; in htc_config_pipe_credits() local 174 time_left = wait_for_completion_timeout(&target->cmd_wait, HZ); in htc_config_pipe_credits() 175 if (!time_left) { in htc_config_pipe_credits() 191 unsigned long time_left; in htc_setup_complete() local 209 time_left = wait_for_completion_timeout(&target->cmd_wait, HZ); in htc_setup_complete() 210 if (!time_left) { in htc_setup_complete() 243 unsigned long time_left; in htc_connect_service() local 284 time_left = wait_for_completion_timeout(&target->cmd_wait, HZ); in htc_connect_service() 285 if (!time_left) { in htc_connect_service()
|
D | wmi.c | 308 unsigned long time_left; in ath9k_wmi_cmd() local 340 time_left = wait_for_completion_timeout(&wmi->cmd_wait, timeout); in ath9k_wmi_cmd() 341 if (!time_left) { in ath9k_wmi_cmd()
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
D | sirfsoc_wdt.c | 50 int time_left; in sirfsoc_wdt_gettimeleft() local 57 time_left = match - counter; in sirfsoc_wdt_gettimeleft() 59 return time_left / CLOCK_FREQ; in sirfsoc_wdt_gettimeleft()
|
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 | 89 u32 time_left; in bcm7038_wdt_get_timeleft() local 91 time_left = readl(wdt->base + WDT_CMD_REG); in bcm7038_wdt_get_timeleft() 93 return time_left / wdt->rate; in bcm7038_wdt_get_timeleft()
|
D | pcwd_usb.c | 342 int *time_left) in usb_pcwd_get_timeleft() argument 350 *time_left = (msb << 8) + lsb; in usb_pcwd_get_timeleft() 462 int time_left; in usb_pcwd_ioctl() local 464 if (usb_pcwd_get_timeleft(usb_pcwd_device, &time_left)) in usb_pcwd_ioctl() 467 return put_user(time_left, p); in usb_pcwd_ioctl()
|
/kernel/linux/linux-5.10/drivers/soc/tegra/fuse/ |
D | fuse-tegra20.c | 45 unsigned long time_left; in tegra20_fuse_read() local 73 time_left = wait_for_completion_timeout(&fuse->apbdma.wait, in tegra20_fuse_read() 76 if (WARN(time_left == 0, "apb read dma timed out")) in tegra20_fuse_read()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/iio/proximity/ |
D | vl53l0x-i2c.c | 107 unsigned long time_left; in vl53l0x_read_proximity() local 116 time_left = wait_for_completion_timeout(&data->completion, HZ/10); in vl53l0x_read_proximity() 117 if (time_left == 0) in vl53l0x_read_proximity()
|
/kernel/linux/linux-5.10/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 | 175 long time_left; in ath10k_wait_for_peer_common() local 177 time_left = wait_event_timeout(ar->peer_mapping_wq, ({ in ath10k_wait_for_peer_common() 188 if (time_left == 0) in ath10k_wait_for_peer_common()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/ |
D | htc.c | 461 unsigned long time_left; in ath11k_htc_wait_target() local 467 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath11k_htc_wait_target() 469 if (!time_left) { in ath11k_htc_wait_target() 475 time_left = in ath11k_htc_wait_target() 479 if (!time_left) in ath11k_htc_wait_target() 542 unsigned long time_left; in ath11k_htc_connect_service() local 600 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath11k_htc_connect_service() 602 if (!time_left) { in ath11k_htc_connect_service()
|
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()
|
/kernel/linux/linux-5.10/drivers/soc/qcom/ |
D | rpmh.c | 342 unsigned long time_left; in rpmh_write_batch() local 390 time_left = RPMH_TIMEOUT_MS; in rpmh_write_batch() 392 time_left = wait_for_completion_timeout(&compls[i], time_left); in rpmh_write_batch() 393 if (!time_left) { in rpmh_write_batch()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/spi/ |
D | spi-geni-qcom.c | 125 unsigned long time_left; in handle_fifo_timeout() local 135 time_left = wait_for_completion_timeout(&mas->cancel_done, HZ); in handle_fifo_timeout() 136 if (time_left) in handle_fifo_timeout() 144 time_left = wait_for_completion_timeout(&mas->abort_done, HZ); in handle_fifo_timeout() 145 if (!time_left) { in handle_fifo_timeout() 195 unsigned long time_left; in spi_geni_set_cs() local 220 time_left = wait_for_completion_timeout(&mas->cs_done, HZ); in spi_geni_set_cs() 221 if (!time_left) in spi_geni_set_cs()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/edp/ |
D | edp_aux.c | 115 unsigned long time_left; in edp_aux_transfer() local 144 time_left = wait_for_completion_timeout(&aux->msg_comp, in edp_aux_transfer() 146 if (!time_left) { in edp_aux_transfer()
|