/linux/drivers/leds/trigger/ |
H A 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/drivers/i2c/busses/ |
H A D | i2c-qcom-geni.c | 347 unsigned long time_left = ABORT_TIMEOUT; in geni_i2c_abort_xfer() local 358 time_left = wait_for_completion_timeout(&gi2c->done, time_left); in geni_i2c_abort_xfer() 359 } while (!gi2c->abort_done && time_left); in geni_i2c_abort_xfer() 361 if (!time_left) in geni_i2c_abort_xfer() 368 unsigned long time_left = RST_TIMEOUT; in geni_i2c_rx_fsm_rst() local 372 time_left = wait_for_completion_timeout(&gi2c->done, time_left); in geni_i2c_rx_fsm_rst() 374 } while (!(val & RX_RESET_DONE) && time_left); in geni_i2c_rx_fsm_rst() 383 unsigned long time_left = RST_TIMEOUT; in geni_i2c_tx_fsm_rst() local 387 time_left = wait_for_completion_timeout(&gi2c->done, time_left); in geni_i2c_tx_fsm_rst() 389 } while (!(val & TX_RESET_DONE) && time_left); in geni_i2c_tx_fsm_rst() [all …]
|
H A D | i2c-jz4780.c | 568 unsigned long time_left; in jz4780_i2c_xfer_read() local 603 time_left = wait_for_completion_timeout(&i2c->trans_waitq, in jz4780_i2c_xfer_read() 606 if (!time_left) { in jz4780_i2c_xfer_read() 630 unsigned long time_left; in jz4780_i2c_xfer_write() local 658 time_left = wait_for_completion_timeout(&i2c->trans_waitq, in jz4780_i2c_xfer_write() 660 if (time_left && !i2c->stop_hold) { in jz4780_i2c_xfer_write() 664 time_left = JZ4780_I2C_TIMEOUT * 100; in jz4780_i2c_xfer_write() 665 for (; time_left > 0; time_left--) { in jz4780_i2c_xfer_write() 676 if (!time_left) { in jz4780_i2c_xfer_write()
|
H A D | i2c-octeon-core.c | 52 long time_left; in octeon_i2c_wait() local 69 time_left = wait_event_timeout(i2c->queue, octeon_i2c_test_iflg(i2c), in octeon_i2c_wait() 73 if (i2c->broken_irq_check && !time_left && in octeon_i2c_wait() 80 if (!time_left) in octeon_i2c_wait() 146 int time_left; in octeon_i2c_hlc_wait() local 163 time_left = wait_event_timeout(i2c->queue, in octeon_i2c_hlc_wait() 167 if (!time_left) in octeon_i2c_hlc_wait() 170 if (i2c->broken_irq_check && !time_left && in octeon_i2c_hlc_wait() 177 if (!time_left) in octeon_i2c_hlc_wait()
|
H A D | i2c-digicolor.c | 216 unsigned long time_left = msecs_to_jiffies(TIMEOUT_MS); in dc_i2c_xfer_msg() local 230 time_left = wait_for_completion_timeout(&i2c->done, time_left); in dc_i2c_xfer_msg() 232 if (time_left == 0) { in dc_i2c_xfer_msg()
|
H A D | i2c-aspeed.c | 182 unsigned long time_left, flags; in aspeed_i2c_recover_bus() local 200 time_left = wait_for_completion_timeout( in aspeed_i2c_recover_bus() 204 if (time_left == 0) in aspeed_i2c_recover_bus() 223 time_left = wait_for_completion_timeout( in aspeed_i2c_recover_bus() 227 if (time_left == 0) in aspeed_i2c_recover_bus() 686 unsigned long time_left, flags; in aspeed_i2c_master_xfer() local 713 time_left = wait_for_completion_timeout(&bus->cmd_complete, in aspeed_i2c_master_xfer() 716 if (time_left == 0) { in aspeed_i2c_master_xfer()
|
H A 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/sound/soc/codecs/ |
H A D | cs42l43-jack.c | 522 unsigned long time_left; in cs42l43_start_load_detect() local 529 time_left = wait_for_completion_timeout(&priv->hp_shutdown, in cs42l43_start_load_detect() 531 if (!time_left) in cs42l43_start_load_detect() 587 unsigned long time_left; in cs42l43_stop_load_detect() local 594 time_left = wait_for_completion_timeout(&priv->hp_startup, in cs42l43_stop_load_detect() 596 if (!time_left) in cs42l43_stop_load_detect() 609 unsigned long time_left; in cs42l43_run_load_detect() local 614 time_left = wait_for_completion_timeout(&priv->load_detect, in cs42l43_run_load_detect() 618 if (!time_left) in cs42l43_run_load_detect() 653 unsigned long time_left; in cs42l43_run_type_detect() local [all...] |
/linux/drivers/iio/adc/ |
H A D | fsl-imx25-gcq.c | 111 long time_left; in mx25_gcq_get_raw_value() local 123 time_left = wait_for_completion_interruptible_timeout( in mx25_gcq_get_raw_value() 125 if (time_left < 0) { in mx25_gcq_get_raw_value() 127 return time_left; in mx25_gcq_get_raw_value() 128 } else if (time_left == 0) { in mx25_gcq_get_raw_value()
|
/linux/drivers/watchdog/ |
H A 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()
|
H A 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()
|
H A 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/drivers/net/wireless/ath/ath12k/ |
H A D | htc.c | 495 unsigned long time_left; in ath12k_htc_wait_target() local 501 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath12k_htc_wait_target() 503 if (!time_left) { in ath12k_htc_wait_target() 509 time_left = in ath12k_htc_wait_target() 513 if (!time_left) in ath12k_htc_wait_target() 570 unsigned long time_left; in ath12k_htc_connect_service() local 628 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath12k_htc_connect_service() 630 if (!time_left) { in ath12k_htc_connect_service()
|
/linux/drivers/net/wireless/ath/ath10k/ |
H A D | thermal.c | 68 unsigned long time_left; in ath10k_thermal_show_temp() local 90 time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, in ath10k_thermal_show_temp() 92 if (!time_left) { in ath10k_thermal_show_temp()
|
H A 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/drivers/soc/qcom/ |
H A D | rpmh.c | 329 unsigned long time_left; in rpmh_write_batch() local 377 time_left = RPMH_TIMEOUT_MS; in rpmh_write_batch() 379 time_left = wait_for_completion_timeout(&compls[i], time_left); in rpmh_write_batch() 380 if (!time_left) { in rpmh_write_batch()
|
/linux/drivers/soc/tegra/fuse/ |
H A 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/drivers/spi/ |
H A 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/drivers/net/wireless/ath/ath11k/ |
H A D | htc.c | 528 unsigned long time_left; in ath11k_htc_wait_target() local 534 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath11k_htc_wait_target() 536 if (!time_left) { in ath11k_htc_wait_target() 542 time_left = in ath11k_htc_wait_target() 546 if (!time_left) in ath11k_htc_wait_target() 609 unsigned long time_left; in ath11k_htc_connect_service() local 672 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath11k_htc_connect_service() 674 if (!time_left) { in ath11k_htc_connect_service()
|
H A D | thermal.c | 69 unsigned long time_left; in ath11k_thermal_show_temp() local 91 time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, in ath11k_thermal_show_temp() 93 if (!time_left) { in ath11k_thermal_show_temp()
|
/linux/drivers/media/radio/si470x/ |
H A 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/drivers/i2c/ |
H A D | i2c-slave-testunit.c | 160 unsigned long time_left; in i2c_slave_testunit_work() local 199 time_left = wait_for_completion_timeout(&tu->alert_done, HZ); in i2c_slave_testunit_work() 200 if (!time_left) in i2c_slave_testunit_work()
|
/linux/drivers/slimbus/ |
H A D | messaging.c | 115 unsigned long time_left; in slim_do_transfer() local 155 time_left = wait_for_completion_timeout(txn->comp, in slim_do_transfer() 157 if (!time_left) { in slim_do_transfer()
|
H A D | qcom-ngd-ctrl.c | 792 unsigned long time_left; in qcom_slim_ngd_xfer_msg() local 894 time_left = wait_for_completion_timeout(&tx_sent, HZ); in qcom_slim_ngd_xfer_msg() 895 if (!time_left) { in qcom_slim_ngd_xfer_msg() 903 time_left = wait_for_completion_timeout(&done, HZ); in qcom_slim_ngd_xfer_msg() 904 if (!time_left) { in qcom_slim_ngd_xfer_msg() 921 unsigned long time_left; in qcom_slim_ngd_xfer_msg_sync() local 933 time_left = wait_for_completion_timeout(&done, HZ); in qcom_slim_ngd_xfer_msg_sync() 934 if (!time_left) { in qcom_slim_ngd_xfer_msg_sync() 1174 unsigned long time_left; in qcom_slim_ngd_power_up() local 1177 time_left = wait_for_completion_timeout(&ctrl->qmi.qmi_comp, HZ); in qcom_slim_ngd_power_up() [all …]
|
/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_nvm.c | 61 u64 time_left = 0; in i40e_acquire_nvm() local 68 0, &time_left, NULL); in i40e_acquire_nvm() 73 hw->nvm.hw_semaphore_timeout = I40E_MS_TO_GTIME(time_left) + gtime; in i40e_acquire_nvm() 78 access, time_left, ret_code, hw->aq.asq_last_status); in i40e_acquire_nvm() 80 if (ret_code && time_left) { in i40e_acquire_nvm() 83 while ((gtime < timeout) && time_left) { in i40e_acquire_nvm() 88 access, 0, &time_left, in i40e_acquire_nvm() 92 I40E_MS_TO_GTIME(time_left) + gtime; in i40e_acquire_nvm() 100 time_left, ret_code, hw->aq.asq_last_status); in i40e_acquire_nvm()
|