/drivers/leds/trigger/ |
D | ledtrig-activity.c | 27 int time_left; member 121 activity_data->time_left -= 100; in led_activity_function() 122 if (activity_data->time_left <= 0) { in led_activity_function() 123 activity_data->time_left = 0; in led_activity_function() 142 if (!activity_data->time_left || delay <= activity_data->time_left) in led_activity_function() 143 activity_data->time_left = delay; in led_activity_function() 145 delay = min_t(int, activity_data->time_left, 100); in led_activity_function()
|
/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 | 306 unsigned long time_left = ABORT_TIMEOUT; in geni_i2c_abort_xfer() local 315 time_left = wait_for_completion_timeout(&gi2c->done, time_left); in geni_i2c_abort_xfer() 317 } while (!(val & M_CMD_ABORT_EN) && time_left); in geni_i2c_abort_xfer() 326 unsigned long time_left = RST_TIMEOUT; in geni_i2c_rx_fsm_rst() local 330 time_left = wait_for_completion_timeout(&gi2c->done, time_left); in geni_i2c_rx_fsm_rst() 332 } while (!(val & RX_RESET_DONE) && time_left); in geni_i2c_rx_fsm_rst() 341 unsigned long time_left = RST_TIMEOUT; in geni_i2c_tx_fsm_rst() local 345 time_left = wait_for_completion_timeout(&gi2c->done, time_left); in geni_i2c_tx_fsm_rst() 347 } while (!(val & TX_RESET_DONE) && time_left); in geni_i2c_tx_fsm_rst() 357 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 | 284 unsigned long time_left, flags; in meson_i2c_xfer_msg() local 308 time_left = msecs_to_jiffies(I2C_TIMEOUT_MS); in meson_i2c_xfer_msg() 309 time_left = wait_for_completion_timeout(&i2c->done, time_left); in meson_i2c_xfer_msg() 321 if (!time_left) { in meson_i2c_xfer_msg()
|
D | i2c-mv64xxx.c | 536 long time_left; in mv64xxx_i2c_wait_for_completion() local 540 time_left = wait_event_timeout(drv_data->waitq, in mv64xxx_i2c_wait_for_completion() 544 if (!time_left) { /* Timed out */ in mv64xxx_i2c_wait_for_completion() 547 } else if (time_left < 0) { /* Interrupted/Error */ in mv64xxx_i2c_wait_for_completion() 548 drv_data->rc = time_left; /* errno value */ in mv64xxx_i2c_wait_for_completion() 556 time_left = wait_event_timeout(drv_data->waitq, in mv64xxx_i2c_wait_for_completion() 559 if ((time_left <= 0) && drv_data->block) { in mv64xxx_i2c_wait_for_completion() 564 (int)time_left); in mv64xxx_i2c_wait_for_completion()
|
D | i2c-aspeed.c | 176 unsigned long time_left, flags; in aspeed_i2c_recover_bus() local 194 time_left = wait_for_completion_timeout( in aspeed_i2c_recover_bus() 198 if (time_left == 0) in aspeed_i2c_recover_bus() 217 time_left = wait_for_completion_timeout( in aspeed_i2c_recover_bus() 221 if (time_left == 0) in aspeed_i2c_recover_bus() 659 unsigned long time_left, flags; in aspeed_i2c_master_xfer() local 686 time_left = wait_for_completion_timeout(&bus->cmd_complete, in aspeed_i2c_master_xfer() 689 if (time_left == 0) { in aspeed_i2c_master_xfer()
|
D | i2c-axxia.c | 483 unsigned long time_left; in axxia_i2c_xfer_seq() local 502 time_left = wait_for_completion_timeout(&idev->msg_complete, in axxia_i2c_xfer_seq() 512 if (time_left == 0) { in axxia_i2c_xfer_seq() 529 unsigned long time_left; in axxia_i2c_xfer_msg() local 578 time_left = wait_for_completion_timeout(&idev->msg_complete, in axxia_i2c_xfer_msg() 586 if (time_left == 0) { in axxia_i2c_xfer_msg()
|
/drivers/net/wireless/ath/ath9k/ |
D | htc_hst.c | 149 unsigned long time_left; in htc_config_pipe_credits() local 170 time_left = wait_for_completion_timeout(&target->cmd_wait, HZ); in htc_config_pipe_credits() 171 if (!time_left) { in htc_config_pipe_credits() 188 unsigned long time_left; in htc_setup_complete() local 206 time_left = wait_for_completion_timeout(&target->cmd_wait, HZ); in htc_setup_complete() 207 if (!time_left) { in htc_setup_complete() 241 unsigned long time_left; in htc_connect_service() local 278 time_left = wait_for_completion_timeout(&target->cmd_wait, HZ); in htc_connect_service() 279 if (!time_left) { in htc_connect_service()
|
D | wmi.c | 302 unsigned long time_left; in ath9k_wmi_cmd() local 334 time_left = wait_for_completion_timeout(&wmi->cmd_wait, timeout); in ath9k_wmi_cmd() 335 if (!time_left) { in ath9k_wmi_cmd()
|
/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 | 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 | 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()
|
/drivers/spi/ |
D | spi-geni-qcom.c | 126 unsigned long time_left, flags; in handle_fifo_timeout() local 135 time_left = wait_for_completion_timeout(&mas->xfer_done, HZ); in handle_fifo_timeout() 136 if (time_left) in handle_fifo_timeout() 143 time_left = wait_for_completion_timeout(&mas->xfer_done, HZ); in handle_fifo_timeout() 144 if (!time_left) in handle_fifo_timeout() 153 unsigned long time_left; in spi_geni_set_cs() local 166 time_left = wait_for_completion_timeout(&mas->xfer_done, HZ); in spi_geni_set_cs() 167 if (!time_left) in spi_geni_set_cs()
|
/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()
|
/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 | htc.c | 588 unsigned long time_left; in ath10k_htc_wait_target() local 592 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath10k_htc_wait_target() 594 if (!time_left) { in ath10k_htc_wait_target() 606 time_left = in ath10k_htc_wait_target() 610 if (!time_left) in ath10k_htc_wait_target() 677 unsigned long time_left; in ath10k_htc_connect_service() local 733 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath10k_htc_connect_service() 735 if (!time_left) { in ath10k_htc_connect_service()
|
D | txrx.c | 170 long time_left; in ath10k_wait_for_peer_common() local 172 time_left = wait_event_timeout(ar->peer_mapping_wq, ({ in ath10k_wait_for_peer_common() 183 if (time_left == 0) in ath10k_wait_for_peer_common()
|
/drivers/soc/qcom/ |
D | rpmh.c | 353 unsigned long time_left; in rpmh_write_batch() local 401 time_left = RPMH_TIMEOUT_MS; in rpmh_write_batch() 403 time_left = wait_for_completion_timeout(&compls[i], time_left); in rpmh_write_batch() 404 if (!time_left) { in rpmh_write_batch()
|
/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()
|
/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()
|
/drivers/cpufreq/ |
D | brcmstb-avs-cpufreq.c | 201 unsigned long time_left = msecs_to_jiffies(AVS_TIMEOUT); in __issue_avs_command() local 242 time_left = wait_for_completion_timeout(&priv->done, time_left); in __issue_avs_command() 250 if (time_left == 0 || val == 0 || val > AVS_STATUS_MAX) { in __issue_avs_command() 254 jiffies_to_msecs(time_left), val); in __issue_avs_command()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_nvm.c | 60 u64 time_left = 0; in i40e_acquire_nvm() local 66 0, &time_left, NULL); in i40e_acquire_nvm() 71 hw->nvm.hw_semaphore_timeout = I40E_MS_TO_GTIME(time_left) + gtime; in i40e_acquire_nvm() 76 access, time_left, ret_code, hw->aq.asq_last_status); in i40e_acquire_nvm() 78 if (ret_code && time_left) { in i40e_acquire_nvm() 81 while ((gtime < timeout) && time_left) { in i40e_acquire_nvm() 86 access, 0, &time_left, in i40e_acquire_nvm() 90 I40E_MS_TO_GTIME(time_left) + gtime; in i40e_acquire_nvm() 98 time_left, ret_code, hw->aq.asq_last_status); in i40e_acquire_nvm()
|