/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-zx2967.c | 251 unsigned long time_left; in zx2967_i2c_xfer_bytes() local 267 time_left = wait_for_completion_timeout(&i2c->complete, in zx2967_i2c_xfer_bytes() 269 if (time_left == 0) in zx2967_i2c_xfer_bytes() 371 unsigned long time_left; in zx2967_smbus_xfer_read() local 385 time_left = wait_for_completion_timeout(&i2c->complete, in zx2967_smbus_xfer_read() 387 if (time_left == 0) in zx2967_smbus_xfer_read() 414 unsigned long time_left; in zx2967_smbus_xfer_write() local 422 time_left = wait_for_completion_timeout(&i2c->complete, in zx2967_smbus_xfer_write() 424 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 | 280 unsigned long time_left, flags; in meson_i2c_xfer_msg() local 304 time_left = msecs_to_jiffies(I2C_TIMEOUT_MS); in meson_i2c_xfer_msg() 305 time_left = wait_for_completion_timeout(&i2c->done, time_left); in meson_i2c_xfer_msg() 317 if (!time_left) { in meson_i2c_xfer_msg()
|
D | i2c-axxia.c | 345 unsigned long time_left; in axxia_i2c_xfer_msg() local 403 time_left = wait_for_completion_timeout(&idev->msg_complete, in axxia_i2c_xfer_msg() 411 if (time_left == 0) { in axxia_i2c_xfer_msg() 428 unsigned long time_left; in axxia_i2c_stop() local 435 time_left = wait_for_completion_timeout(&idev->msg_complete, in axxia_i2c_stop() 438 if (time_left == 0) in axxia_i2c_stop()
|
D | i2c-mv64xxx.c | 535 long time_left; in mv64xxx_i2c_wait_for_completion() local 539 time_left = wait_event_timeout(drv_data->waitq, in mv64xxx_i2c_wait_for_completion() 543 if (!time_left) { /* Timed out */ in mv64xxx_i2c_wait_for_completion() 546 } else if (time_left < 0) { /* Interrupted/Error */ in mv64xxx_i2c_wait_for_completion() 547 drv_data->rc = time_left; /* errno value */ in mv64xxx_i2c_wait_for_completion() 555 time_left = wait_event_timeout(drv_data->waitq, in mv64xxx_i2c_wait_for_completion() 558 if ((time_left <= 0) && drv_data->block) { in mv64xxx_i2c_wait_for_completion() 563 (int)time_left); in mv64xxx_i2c_wait_for_completion()
|
D | i2c-aspeed.c | 162 unsigned long time_left, flags; in aspeed_i2c_recover_bus() local 180 time_left = wait_for_completion_timeout( in aspeed_i2c_recover_bus() 184 if (time_left == 0) in aspeed_i2c_recover_bus() 203 time_left = wait_for_completion_timeout( in aspeed_i2c_recover_bus() 207 if (time_left == 0) in aspeed_i2c_recover_bus() 572 unsigned long time_left, flags; in aspeed_i2c_master_xfer() local 598 time_left = wait_for_completion_timeout(&bus->cmd_complete, in aspeed_i2c_master_xfer() 601 if (time_left == 0) in aspeed_i2c_master_xfer()
|
D | i2c-bcm-iproc.c | 258 unsigned long time_left = msecs_to_jiffies(I2C_TIMEOUT_MSEC); in bcm_iproc_i2c_xfer_single_msg() local 327 time_left = wait_for_completion_timeout(&iproc_i2c->done, time_left); in bcm_iproc_i2c_xfer_single_msg() 337 if (!time_left && !iproc_i2c->xfer_is_done) { in bcm_iproc_i2c_xfer_single_msg()
|
D | i2c-bcm2835.c | 281 unsigned long time_left; in bcm2835_i2c_xfer() local 301 time_left = wait_for_completion_timeout(&i2c_dev->completion, in bcm2835_i2c_xfer() 306 if (!time_left) { in bcm2835_i2c_xfer()
|
/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() 187 unsigned long time_left; in htc_setup_complete() local 205 time_left = wait_for_completion_timeout(&target->cmd_wait, HZ); in htc_setup_complete() 206 if (!time_left) { in htc_setup_complete() 239 unsigned long time_left; in htc_connect_service() local 276 time_left = wait_for_completion_timeout(&target->cmd_wait, HZ); in htc_connect_service() 277 if (!time_left) { in htc_connect_service()
|
D | wmi.c | 301 unsigned long time_left; in ath9k_wmi_cmd() local 333 time_left = wait_for_completion_timeout(&wmi->cmd_wait, timeout); in ath9k_wmi_cmd() 334 if (!time_left) { in ath9k_wmi_cmd()
|
D | link.c | 179 unsigned long time_left; in ath_paprd_send_frame() local 201 time_left = wait_for_completion_timeout(&sc->paprd_complete, in ath_paprd_send_frame() 204 if (!time_left) in ath_paprd_send_frame() 209 return !!time_left; in ath_paprd_send_frame()
|
/drivers/watchdog/ |
D | pcwd_pci.c | 417 static int pcipcwd_get_timeleft(int *time_left) in pcipcwd_get_timeleft() argument 426 *time_left = (msb << 8) + lsb; in pcipcwd_get_timeleft() 429 pr_debug("Time left before next reboot: %d\n", *time_left); in pcipcwd_get_timeleft() 556 int time_left; in pcipcwd_ioctl() local 558 if (pcipcwd_get_timeleft(&time_left)) in pcipcwd_ioctl() 561 return put_user(time_left, p); in pcipcwd_ioctl()
|
D | sirfsoc_wdt.c | 51 int time_left; in sirfsoc_wdt_gettimeleft() local 58 time_left = match - counter; in sirfsoc_wdt_gettimeleft() 60 return time_left / CLOCK_FREQ; in sirfsoc_wdt_gettimeleft()
|
D | bcm7038_wdt.c | 97 u32 time_left; in bcm7038_wdt_get_timeleft() local 99 time_left = readl(wdt->base + WDT_CMD_REG); in bcm7038_wdt_get_timeleft() 101 return time_left / wdt->rate; in bcm7038_wdt_get_timeleft()
|
D | pcwd_usb.c | 347 int *time_left) in usb_pcwd_get_timeleft() argument 355 *time_left = (msb << 8) + lsb; in usb_pcwd_get_timeleft() 467 int time_left; in usb_pcwd_ioctl() local 469 if (usb_pcwd_get_timeleft(usb_pcwd_device, &time_left)) in usb_pcwd_ioctl() 472 return put_user(time_left, p); in usb_pcwd_ioctl()
|
D | iTCO_wdt.c | 381 unsigned int time_left = 0; in iTCO_wdt_get_timeleft() local 390 time_left = ticks_to_seconds(p, val16); in iTCO_wdt_get_timeleft() 399 time_left = ticks_to_seconds(p, val8); in iTCO_wdt_get_timeleft() 401 return time_left; in iTCO_wdt_get_timeleft()
|
/drivers/soc/tegra/fuse/ |
D | fuse-tegra20.c | 56 unsigned long time_left; in tegra20_fuse_read() local 84 time_left = wait_for_completion_timeout(&fuse->apbdma.wait, in tegra20_fuse_read() 87 if (WARN(time_left == 0, "apb read dma timed out")) in tegra20_fuse_read()
|
/drivers/media/radio/si470x/ |
D | radio-si470x-common.c | 207 unsigned long time_left; in si470x_set_chan() local 219 time_left = wait_for_completion_timeout(&radio->completion, in si470x_set_chan() 221 if (time_left == 0) in si470x_set_chan() 301 unsigned long time_left; in si470x_set_seek() local 343 time_left = wait_for_completion_timeout(&radio->completion, in si470x_set_seek() 345 if (time_left == 0) in si470x_set_seek()
|
/drivers/net/wireless/ath/ath10k/ |
D | thermal.c | 78 unsigned long time_left; in ath10k_thermal_show_temp() local 100 time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, in ath10k_thermal_show_temp() 102 if (!time_left) { in ath10k_thermal_show_temp()
|
D | htc.c | 586 unsigned long time_left; in ath10k_htc_wait_target() local 590 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath10k_htc_wait_target() 592 if (!time_left) { in ath10k_htc_wait_target() 604 time_left = in ath10k_htc_wait_target() 608 if (!time_left) in ath10k_htc_wait_target() 675 unsigned long time_left; in ath10k_htc_connect_service() local 731 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath10k_htc_connect_service() 733 if (!time_left) { in ath10k_htc_connect_service()
|
D | txrx.c | 163 long time_left; in ath10k_wait_for_peer_common() local 165 time_left = wait_event_timeout(ar->peer_mapping_wq, ({ in ath10k_wait_for_peer_common() 176 if (time_left == 0) in ath10k_wait_for_peer_common()
|
/drivers/gpu/drm/msm/edp/ |
D | edp_aux.c | 123 unsigned long time_left; in edp_aux_transfer() local 152 time_left = wait_for_completion_timeout(&aux->msg_comp, in edp_aux_transfer() 154 if (!time_left) { in edp_aux_transfer()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_nvm.c | 83 u64 time_left = 0; in i40e_acquire_nvm() local 89 0, &time_left, NULL); in i40e_acquire_nvm() 94 hw->nvm.hw_semaphore_timeout = I40E_MS_TO_GTIME(time_left) + gtime; in i40e_acquire_nvm() 99 access, time_left, ret_code, hw->aq.asq_last_status); in i40e_acquire_nvm() 101 if (ret_code && time_left) { in i40e_acquire_nvm() 104 while ((gtime < timeout) && time_left) { in i40e_acquire_nvm() 109 access, 0, &time_left, in i40e_acquire_nvm() 113 I40E_MS_TO_GTIME(time_left) + gtime; in i40e_acquire_nvm() 121 time_left, ret_code, hw->aq.asq_last_status); in i40e_acquire_nvm()
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | dispc-compat.c | 647 long time_left; in omap_dispc_wait_for_irq_interruptible_timeout() local 656 time_left = wait_for_completion_interruptible_timeout(&completion, in omap_dispc_wait_for_irq_interruptible_timeout() 661 if (time_left == 0) in omap_dispc_wait_for_irq_interruptible_timeout() 664 if (time_left == -ERESTARTSYS) in omap_dispc_wait_for_irq_interruptible_timeout()
|