Home
last modified time | relevance | path

Searched refs:delay (Results 1 – 25 of 552) sorted by relevance

12345678910>>...23

/drivers/gpu/drm/i915/gt/
Dintel_engine_heartbeat.c26 long delay; in next_heartbeat() local
28 delay = READ_ONCE(engine->props.heartbeat_interval_ms); in next_heartbeat()
29 if (!delay) in next_heartbeat()
32 delay = msecs_to_jiffies_timeout(delay); in next_heartbeat()
33 if (delay >= HZ) in next_heartbeat()
34 delay = round_jiffies_up_relative(delay); in next_heartbeat()
35 mod_delayed_work(system_highpri_wq, &engine->heartbeat.work, delay); in next_heartbeat()
207 unsigned long delay) in set_heartbeat() argument
211 old = xchg(&engine->props.heartbeat_interval_ms, delay); in set_heartbeat()
212 if (delay) in set_heartbeat()
[all …]
/drivers/input/touchscreen/
Dwm9705.c63 static int delay = 4; variable
64 module_param(delay, int, 0);
65 MODULE_PARM_DESC(delay, "Set adc sample delay.");
156 if (delay != 4) { in wm9705_phy_init()
157 if (delay < 0 || delay > 15) { in wm9705_phy_init()
159 delay = 4; in wm9705_phy_init()
163 dig1 |= WM97XX_DELAY(delay); in wm9705_phy_init()
165 delay_table[delay]); in wm9705_phy_init()
212 int timeout = 5 * delay; in wm9705_poll_sample()
226 | WM97XX_POLL | WM97XX_DELAY(delay)); in wm9705_poll_sample()
[all …]
Dwm9712.c76 static int delay = 3; variable
77 module_param(delay, int, 0);
78 MODULE_PARM_DESC(delay, "Set adc sample delay.");
188 if (delay < 0 || delay > 15) { in wm9712_phy_init()
190 delay = 4; in wm9712_phy_init()
193 dig1 |= WM97XX_DELAY(delay); in wm9712_phy_init()
195 delay_table[delay]); in wm9712_phy_init()
252 int timeout = 5 * delay; in wm9712_poll_sample()
266 | WM97XX_POLL | WM97XX_DELAY(delay)); in wm9712_poll_sample()
269 poll_delay(delay); in wm9712_poll_sample()
[all …]
Dwm9713.c76 static int delay = 4; variable
77 module_param(delay, int, 0);
78 MODULE_PARM_DESC(delay, "Set adc sample delay.");
192 if (delay < 0 || delay > 15) { in wm9713_phy_init()
194 delay = 4; in wm9713_phy_init()
196 delay_table[delay]); in wm9713_phy_init()
199 dig2 |= WM97XX_DELAY(delay); in wm9713_phy_init()
258 int timeout = 5 * delay; in wm9713_poll_sample()
279 poll_delay(delay); in wm9713_poll_sample()
323 int timeout = 5 * delay; in wm9713_poll_coord()
[all …]
/drivers/clk/sunxi-ng/
Dccu_phase.c20 u8 delay; in ccu_phase_get_phase() local
23 delay = (reg >> phase->shift); in ccu_phase_get_phase()
24 delay &= (1 << phase->width) - 1; in ccu_phase_get_phase()
26 if (!delay) in ccu_phase_get_phase()
53 return delay * step; in ccu_phase_get_phase()
63 u8 delay; in ccu_phase_set_phase() local
105 delay = DIV_ROUND_CLOSEST(degrees, step); in ccu_phase_set_phase()
107 delay = 0; in ccu_phase_set_phase()
113 writel(reg | (delay << phase->shift), in ccu_phase_set_phase()
/drivers/mmc/host/
Ddw_mmc-zx.c33 static int dw_mci_zx_emmc_set_delay(struct dw_mci *host, unsigned int delay, in dw_mci_zx_emmc_set_delay() argument
60 clksel |= CLK_SAMP_DELAY(delay); in dw_mci_zx_emmc_set_delay()
63 clksel |= READ_DQS_DELAY(delay); in dw_mci_zx_emmc_set_delay()
92 int ret, len = 0, start = 0, end = 0, delay, best = 0; in dw_mci_zx_emmc_execute_tuning() local
94 for (delay = 1; delay < 128; delay++) { in dw_mci_zx_emmc_execute_tuning()
95 ret = dw_mci_zx_emmc_set_delay(host, delay, DELAY_TYPE_CLK); in dw_mci_zx_emmc_execute_tuning()
98 end = delay - 1; in dw_mci_zx_emmc_execute_tuning()
110 start = delay; in dw_mci_zx_emmc_execute_tuning()
114 end = delay - 1; in dw_mci_zx_emmc_execute_tuning()
/drivers/net/wireless/ath/ath9k/
Drng.c62 u32 delay; in ath9k_rng_delay_get() local
65 delay = 10; in ath9k_rng_delay_get()
67 delay = 1000; in ath9k_rng_delay_get()
69 delay = 10000; in ath9k_rng_delay_get()
71 return delay; in ath9k_rng_delay_get()
79 u32 delay, fail_stats = 0; in ath9k_rng_kthread() local
89 delay = ath9k_rng_delay_get(++fail_stats); in ath9k_rng_kthread()
92 msecs_to_jiffies(delay)); in ath9k_rng_kthread()
/drivers/iio/imu/
Dadis.c49 .delay.value = adis->data->write_delay, in __adis_write_reg()
50 .delay.unit = SPI_DELAY_UNIT_USECS, in __adis_write_reg()
58 .delay.value = adis->data->write_delay, in __adis_write_reg()
59 .delay.unit = SPI_DELAY_UNIT_USECS, in __adis_write_reg()
67 .delay.value = adis->data->write_delay, in __adis_write_reg()
68 .delay.unit = SPI_DELAY_UNIT_USECS, in __adis_write_reg()
75 .delay.value = adis->data->write_delay, in __adis_write_reg()
76 .delay.unit = SPI_DELAY_UNIT_USECS, in __adis_write_reg()
81 .delay.value = adis->data->write_delay, in __adis_write_reg()
82 .delay.unit = SPI_DELAY_UNIT_USECS, in __adis_write_reg()
[all …]
/drivers/iio/common/ms_sensors/
Dms_sensors_i2c.c47 int ms_sensors_reset(void *cli, u8 cmd, unsigned int delay) in ms_sensors_reset() argument
57 usleep_range(delay, delay + 1000); in ms_sensors_reset()
105 unsigned int delay, u32 *adc) in ms_sensors_convert_and_read() argument
115 usleep_range(delay, delay + 1000); in ms_sensors_convert_and_read()
422 u16 delay; in ms_sensors_ht_read_temperature() local
425 delay = ms_sensors_ht_t_conversion_time[dev_data->res_index]; in ms_sensors_ht_read_temperature()
429 delay, &adc); in ms_sensors_ht_read_temperature()
463 u16 delay; in ms_sensors_ht_read_humidity() local
466 delay = ms_sensors_ht_h_conversion_time[dev_data->res_index]; in ms_sensors_ht_read_humidity()
470 delay, &adc); in ms_sensors_ht_read_humidity()
[all …]
/drivers/staging/sm750fb/
Dddk750_display.c63 static void primary_wait_vertical_sync(int delay) in primary_wait_vertical_sync() argument
75 while (delay-- > 0) { in primary_wait_vertical_sync()
88 static void sw_panel_power_sequence(int disp, int delay) in sw_panel_power_sequence() argument
96 primary_wait_vertical_sync(delay); in sw_panel_power_sequence()
101 primary_wait_vertical_sync(delay); in sw_panel_power_sequence()
106 primary_wait_vertical_sync(delay); in sw_panel_power_sequence()
111 primary_wait_vertical_sync(delay); in sw_panel_power_sequence()
/drivers/net/wireless/intel/iwlwifi/fw/
Ddebugfs.c208 unsigned long delay = fwrt->timestamp.delay; in iwl_fw_timestamp_marker_wk() local
211 if (!ret && delay) in iwl_fw_timestamp_marker_wk()
213 round_jiffies_relative(delay)); in iwl_fw_timestamp_marker_wk()
217 ret, jiffies_to_msecs(delay) / 1000); in iwl_fw_timestamp_marker_wk()
220 void iwl_fw_trigger_timestamp(struct iwl_fw_runtime *fwrt, u32 delay) in iwl_fw_trigger_timestamp() argument
224 delay); in iwl_fw_trigger_timestamp()
228 fwrt->timestamp.delay = msecs_to_jiffies(delay * 1000); in iwl_fw_trigger_timestamp()
231 round_jiffies_relative(fwrt->timestamp.delay)); in iwl_fw_trigger_timestamp()
238 u32 delay; in iwl_dbgfs_timestamp_marker_write() local
240 ret = kstrtou32(buf, 10, &delay); in iwl_dbgfs_timestamp_marker_write()
[all …]
/drivers/leds/
Dleds-bcm6328.c150 static unsigned long bcm6328_blink_delay(unsigned long delay) in bcm6328_blink_delay() argument
154 bcm6328_delay = delay + BCM6328_LED_BLINK_MS / 2; in bcm6328_blink_delay()
167 unsigned long delay, flags; in bcm6328_blink_set() local
175 delay = bcm6328_blink_delay(*delay_on); in bcm6328_blink_set()
176 if (delay != bcm6328_blink_delay(*delay_off)) { in bcm6328_blink_set()
182 if (delay > BCM6328_LED_BLINK_MASK) { in bcm6328_blink_set()
199 led->blink_delay[0] == delay) { in bcm6328_blink_set()
209 led->blink_delay[0] = delay; in bcm6328_blink_set()
214 val |= (delay << BCM6328_LED_BLINK1_SHIFT); in bcm6328_blink_set()
223 led->blink_delay[1] == delay) { in bcm6328_blink_set()
[all …]
/drivers/hv/
Dhv_debugfs.c113 struct dentry *delay, *dev_root; in hv_debug_add_dev_dir() local
125 delay = debugfs_create_dir(delay_name, dev_root); in hv_debug_add_dev_dir()
127 if (IS_ERR(delay)) { in hv_debug_add_dev_dir()
130 return PTR_ERR(delay); in hv_debug_add_dev_dir()
132 ret = hv_debug_delay_files(dev, delay); in hv_debug_add_dev_dir()
154 void hv_debug_delay_test(struct vmbus_channel *channel, enum delay delay_type) in hv_debug_delay_test()
/drivers/edac/
Dwq.c6 bool edac_queue_work(struct delayed_work *work, unsigned long delay) in edac_queue_work() argument
8 return queue_delayed_work(wq, work, delay); in edac_queue_work()
12 bool edac_mod_work(struct delayed_work *work, unsigned long delay) in edac_mod_work() argument
14 return mod_delayed_work(wq, work, delay); in edac_mod_work()
/drivers/leds/trigger/
Dledtrig-activity.c39 int delay; in led_activity_function() local
137 delay = activity_data->state ? in led_activity_function()
141 delay = activity_data->state ? 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()
150 mod_timer(&activity_data->timer, jiffies + msecs_to_jiffies(delay)); in led_activity_function()
Dledtrig-heartbeat.c38 unsigned long delay = 0; in led_heartbeat_function() local
63 delay = msecs_to_jiffies(70); in led_heartbeat_function()
69 delay = heartbeat_data->period / 4 - msecs_to_jiffies(70); in led_heartbeat_function()
75 delay = msecs_to_jiffies(70); in led_heartbeat_function()
81 delay = heartbeat_data->period - heartbeat_data->period / 4 - in led_heartbeat_function()
90 mod_timer(&heartbeat_data->timer, jiffies + delay); in led_heartbeat_function()
/drivers/clk/mmp/
Dclk-apbc.c30 unsigned int delay; member
57 udelay(apbc->delay); in clk_apbc_prepare()
69 udelay(apbc->delay); in clk_apbc_prepare()
123 void __iomem *base, unsigned int delay, in mmp_clk_register_apbc() argument
141 apbc->delay = delay; in mmp_clk_register_apbc()
/drivers/hwmon/pmbus/
Dzl6100.c26 int delay; /* Delay between chip accesses in uS */ member
48 static ushort delay = ZL6100_WAIT_TIME; variable
49 module_param(delay, ushort, 0644);
50 MODULE_PARM_DESC(delay, "Delay between chip accesses in uS");
121 if (data->delay) { in zl6100_wait()
123 if (delta < data->delay) in zl6100_wait()
124 udelay(data->delay - delta); in zl6100_wait()
352 data->delay = delay; in zl6100_probe()
/drivers/memory/tegra/
Dtegra210-emc-cc-r21021.c412 u32 delay; in periodic_compensation_handler() local
414 delay = tegra210_emc_actual_osc_clocks(last->run_clocks); in periodic_compensation_handler()
415 delay *= 1000; in periodic_compensation_handler()
416 delay = 2 + (delay / last->rate); in periodic_compensation_handler()
451 udelay(delay); in periodic_compensation_handler()
470 udelay(delay); in periodic_compensation_handler()
495 unsigned long delay; in tegra210_emc_r21021_periodic_compensation() local
539 delay = tegra210_emc_actual_osc_clocks(last->run_clocks); in tegra210_emc_r21021_periodic_compensation()
540 delay *= 1000; in tegra210_emc_r21021_periodic_compensation()
541 delay /= last->rate + 1; in tegra210_emc_r21021_periodic_compensation()
[all …]
/drivers/clk/rockchip/
Dclk-mmc-phase.c82 u32 delay; in rockchip_mmc_set_phase() local
127 delay = 10000000; /* PSECS_PER_SEC / 10000 / 10 */ in rockchip_mmc_set_phase()
128 delay *= remainder; in rockchip_mmc_set_phase()
129 delay = DIV_ROUND_CLOSEST(delay, in rockchip_mmc_set_phase()
133 delay_num = (u8) min_t(u32, delay, 255); in rockchip_mmc_set_phase()
/drivers/clk/sunxi/
Dclk-mod0.c179 u8 delay; in mmc_get_phase() local
182 delay = (value >> phase->offset) & 0x3; in mmc_get_phase()
184 if (!delay) in mmc_get_phase()
211 return delay * step; in mmc_get_phase()
221 u8 delay; in mmc_set_phase() local
263 delay = DIV_ROUND_CLOSEST(degrees, step); in mmc_set_phase()
265 delay = 0; in mmc_set_phase()
271 value |= delay << phase->offset; in mmc_set_phase()
/drivers/staging/most/i2c/
Di2c.c42 unsigned int delay; member
69 unsigned int delay, pr; in configure_channel() local
98 delay = msecs_to_jiffies(MSEC_PER_SEC / polling_rate); in configure_channel()
99 dev->rx.delay = delay ? delay : 1; in configure_channel()
100 pr = MSEC_PER_SEC / jiffies_to_msecs(dev->rx.delay); in configure_channel()
242 schedule_delayed_work(&dev->rx.dwork, dev->rx.delay); in pending_rx_work()
/drivers/gpu/drm/i915/selftests/
Di915_perf.c198 u32 delay; in live_noa_delay() local
263 delay = intel_read_status_page(stream->engine, 0x102); in live_noa_delay()
264 delay -= intel_read_status_page(stream->engine, 0x100); in live_noa_delay()
265 delay = i915_cs_timestamp_ticks_to_ns(i915, delay); in live_noa_delay()
267 delay, expected); in live_noa_delay()
269 if (4 * delay < 3 * expected || 2 * delay > 3 * expected) { in live_noa_delay()
271 delay / 1000, in live_noa_delay()
/drivers/input/
Dinput-poller.c28 unsigned long delay; in input_dev_poller_queue_work() local
30 delay = msecs_to_jiffies(poller->poll_interval); in input_dev_poller_queue_work()
31 if (delay >= HZ) in input_dev_poller_queue_work()
32 delay = round_jiffies_relative(delay); in input_dev_poller_queue_work()
34 queue_delayed_work(system_freezable_wq, &poller->work, delay); in input_dev_poller_queue_work()
/drivers/gpu/drm/panel/
Dpanel-simple.c93 } delay; member
240 if (p->desc->delay.disable) in panel_simple_disable()
241 msleep(p->desc->delay.disable); in panel_simple_disable()
259 if (p->desc->delay.unprepare) in panel_simple_unprepare()
260 msleep(p->desc->delay.unprepare); in panel_simple_unprepare()
295 unsigned int delay; in panel_simple_prepare() local
310 delay = p->desc->delay.prepare; in panel_simple_prepare()
312 delay += p->desc->delay.hpd_absent_delay; in panel_simple_prepare()
313 if (delay) in panel_simple_prepare()
314 msleep(delay); in panel_simple_prepare()
[all …]

12345678910>>...23