Home
last modified time | relevance | path

Searched refs:interval (Results 1 – 25 of 260) sorted by relevance

1234567891011

/device/board/isoftstone/yangfan/common/mqtt/mqttclient_c/src/linux/
DMQTTLinux.c38 struct timeval interval = {timeout / 1000, (timeout % 1000) * 1000}; in TimerCountdownMS() local
39 timeradd(&now, &interval, &timer->end_time); in TimerCountdownMS()
45 struct timeval interval = {time, 0}; in TimerAddSecond() local
46 timeradd(&timer->end_time, &interval, &timer->end_time); in TimerAddSecond()
54 struct timeval interval = {timeout, 0}; in TimerCountdown() local
55 timeradd(&now, &interval, &timer->end_time); in TimerCountdown()
71 struct timeval interval = {timeout_ms / 1000, (timeout_ms % 1000) * 1000}; in linux_read() local
72 if (interval.tv_sec < 0 || (interval.tv_sec == 0 && interval.tv_usec <= 0)) in linux_read()
74 interval.tv_sec = 0; in linux_read()
75 interval.tv_usec = 100; in linux_read()
[all …]
/device/board/isoftstone/yangfan/common/mqtt/mqttclient/src/linux/
Dlinux.cpp102 struct timeval interval = {timeout_ms / 1000, (timeout_ms % 1000) * 1000}; in read() local
103 if (interval.tv_sec < 0 || (interval.tv_sec == 0 && interval.tv_usec <= 0)) in read()
105 interval.tv_sec = 0; in read()
106 interval.tv_usec = 100; in read()
109 setsockopt(mysock, SOL_SOCKET, SO_RCVTIMEO, (char *)&interval, sizeof(struct timeval)); in read()
186 struct timeval interval = {ms / 1000, (ms % 1000) * 1000}; in countdown_ms() local
188 timeradd(&now, &interval, &end_time); in countdown_ms()
196 struct timeval interval = {seconds, 0}; in countdown() local
197 timeradd(&now, &interval, &end_time); in countdown()
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/libraries/pmu_calibration/
Dpmu_calibration.c70 uint32_t interval = 0; in pmu_interval_get() local
73 interval = PMU_SMALL_INTERVAL_MS; in pmu_interval_get()
75 interval = PMU_SMALL_INTERVAL_MS; in pmu_interval_get()
77 interval = pmu_interval_init; in pmu_interval_get()
80 return interval; in pmu_interval_get()
117 void system_pmu_calibration_init(uint32_t interval) in system_pmu_calibration_init() argument
119 if (interval) { in system_pmu_calibration_init()
122 pmu_interval_init = interval; in system_pmu_calibration_init()
125 interval_new = interval; in system_pmu_calibration_init()
/device/board/isoftstone/yangfan/common/mqtt/mqttclient/samples/linux/
Dmain.cpp101 struct timeval interval = {timeout_ms / 1000, (timeout_ms % 1000) * 1000}; in read() local
102 if (interval.tv_sec < 0 || (interval.tv_sec == 0 && interval.tv_usec <= 0)) in read()
104 interval.tv_sec = 0; in read()
105 interval.tv_usec = 100; in read()
108 setsockopt(mysock, SOL_SOCKET, SO_RCVTIMEO, (char *)&interval, sizeof(struct timeval)); in read()
173 struct timeval interval = {ms / 1000, (ms % 1000) * 1000}; in countdown_ms() local
175 timeradd(&now, &interval, &end_time); in countdown_ms()
183 struct timeval interval = {seconds, 0}; in countdown() local
184 timeradd(&now, &interval, &end_time); in countdown()
/device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/
Dhal_sleep.c152 uint32_t interval; in hal_sleep_calc_wakeup_interval() local
158 interval = cur_time - wakeup_start_time; in hal_sleep_calc_wakeup_interval()
165 wakeup_total_interval[index] += interval; in hal_sleep_calc_wakeup_interval()
392 uint32_t interval; in hal_sleep_lowpower_mode() local
471 interval = cur_time - prev_time; in hal_sleep_lowpower_mode()
473 sys_deep_sleep_time += interval; in hal_sleep_lowpower_mode()
475 chip_deep_sleep_time += interval; in hal_sleep_lowpower_mode()
545 uint32_t interval; in hal_sleep_proc() local
632 interval = cur_time - stats_start_time; in hal_sleep_proc()
633 if (interval >= stats_interval) { in hal_sleep_proc()
[all …]
/device/board/isoftstone/yangfan/common/mqtt/mqttclient/src/arduino/
DIPStack.h47 int interval = 10; // all times are in milliseconds in read() local
51 interval = 2; in read()
54 delay(interval); in read()
55 total += interval; in read()
/device/soc/hisilicon/hi3861v100/hi3861_adapter/kal/posix/src/
Dtime.c177 UINT32 interval, expiry, ret; in timer_settime() local
196 interval = OsTimeSpec2Tick(&value->it_interval); in timer_settime()
198 if (interval && interval != expiry) { in timer_settime()
215 swtmr->ucMode = (interval ? LOS_SWTMR_MODE_PERIOD : LOS_SWTMR_MODE_NO_SELFDELETE); in timer_settime()
216 swtmr->uwInterval = (interval ? interval : expiry); in timer_settime()
/device/soc/telink/b91/b91_ble_sdk/vendor/common/
Dblt_soft_timer.c72 blt_timer.timer[blt_timer.currentNum].interval = interval_us * SYSTEM_TIMER_TICK_1US; in blt_soft_timer_add()
73 … blt_timer.timer[blt_timer.currentNum].t = now + blt_timer.timer[blt_timer.currentNum].interval; in blt_soft_timer_add()
163 blt_timer.timer[i].t = now + blt_timer.timer[i].interval; in blt_soft_timer_process()
166 blt_timer.timer[i].interval = result * SYSTEM_TIMER_TICK_1US; in blt_soft_timer_process()
167 blt_timer.timer[i].t = now + blt_timer.timer[i].interval; in blt_soft_timer_process()
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
Ddhd_debug_linux.c54 unsigned long interval; member
172 (ring_info->interval)) { in dbg_ring_poll_worker()
173 schedule_delayed_work(d_work, ring_info->interval); in dbg_ring_poll_worker()
231 ring_info->interval = 0; in dhd_os_start_logging()
234 ring_info->interval = msecs_to_jiffies(time_intval * MSEC_PER_SEC); in dhd_os_start_logging()
236 schedule_delayed_work(&ring_info->work, ring_info->interval); in dhd_os_start_logging()
262 ring_info->interval = 0; in dhd_os_reset_logging()
318 if (ring_info->interval) { in dhd_os_trigger_get_ring_data()
508 if (ring_info->interval) { in dhd_os_dbg_detach()
509 ring_info->interval = 0; in dhd_os_dbg_detach()
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/
Ddhd_debug_linux.c54 unsigned long interval; member
173 (ring_info->interval)) { in dbg_ring_poll_worker()
174 schedule_delayed_work(d_work, ring_info->interval); in dbg_ring_poll_worker()
234 ring_info->interval = 0; in dhd_os_start_logging()
237 ring_info->interval = msecs_to_jiffies(time_intval * MSEC_PER_SEC); in dhd_os_start_logging()
239 schedule_delayed_work(&ring_info->work, ring_info->interval); in dhd_os_start_logging()
266 ring_info->interval = 0; in dhd_os_reset_logging()
323 if (ring_info->interval) { in dhd_os_trigger_get_ring_data()
512 if (ring_info->interval) { in dhd_os_dbg_detach()
513 ring_info->interval = 0; in dhd_os_dbg_detach()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/bcmdhd/
Ddhd_debug_linux.c52 unsigned long interval; member
165 (ring_info->interval)) { in dbg_ring_poll_worker()
166 schedule_delayed_work(d_work, ring_info->interval); in dbg_ring_poll_worker()
232 ring_info->interval = 0; in dhd_os_start_logging()
235 ring_info->interval = msecs_to_jiffies(time_intval * MSEC_PER_SEC); in dhd_os_start_logging()
237 schedule_delayed_work(&ring_info->work, ring_info->interval); in dhd_os_start_logging()
263 ring_info->interval = 0; in dhd_os_reset_logging()
319 if (ring_info->interval) { in dhd_os_trigger_get_ring_data()
504 if (ring_info->interval) { in dhd_os_dbg_detach()
505 ring_info->interval = 0; in dhd_os_dbg_detach()
/device/board/isoftstone/yangfan/kernel/src/driv/media/ispp/
Dprocfs.c47 dev->stream_vdev.dbg.interval / 1000 / 1000, in ispp_show()
63 stream->dbg.interval / 1000 / 1000, in ispp_show()
75 dev->stream_vdev.tnr.dbg.interval / 1000 / 1000, in ispp_show()
85 dev->stream_vdev.nr.dbg.interval / 1000 / 1000, in ispp_show()
101 dev->stream_vdev.fec.dbg.interval / 1000 / 1000, in ispp_show()
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/ispp/
Dprocfs.c35 … dev->stream_vdev.dbg.interval / 1000 / 1000, dev->stream_vdev.dbg.delay / 1000 / 1000); in ispp_show()
44 stream->out_fmt.height, stream->dbg.id, stream->dbg.interval / 1000 / 1000, in ispp_show()
52 … dev->stream_vdev.tnr.dbg.interval / 1000 / 1000, dev->stream_vdev.tnr.is_end ? "idle" : "working", in ispp_show()
57 dev->stream_vdev.nr.dbg.id, dev->stream_vdev.nr.dbg.interval / 1000 / 1000, in ispp_show()
67 dev->stream_vdev.fec.dbg.id, dev->stream_vdev.fec.dbg.interval / 1000 / 1000, in ispp_show()
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/ispp/
Dprocfs.c47 dev->stream_vdev.dbg.interval / 1000 / 1000, in ispp_show()
63 stream->dbg.interval / 1000 / 1000, in ispp_show()
75 dev->stream_vdev.tnr.dbg.interval / 1000 / 1000, in ispp_show()
85 dev->stream_vdev.nr.dbg.interval / 1000 / 1000, in ispp_show()
101 dev->stream_vdev.fec.dbg.interval / 1000 / 1000, in ispp_show()
/device/board/isoftstone/yangfan/kernel/src/driv/net/rockchip_wlan/rkwifi/bcmdhd/
Ddhd_debug_linux.c50 unsigned long interval; member
167 (ring_info->interval)) { in dbg_ring_poll_worker()
168 schedule_delayed_work(d_work, ring_info->interval); in dbg_ring_poll_worker()
224 ring_info->interval = 0; in dhd_os_start_logging()
227 ring_info->interval = msecs_to_jiffies(time_intval * MSEC_PER_SEC); in dhd_os_start_logging()
229 schedule_delayed_work(&ring_info->work, ring_info->interval); in dhd_os_start_logging()
255 ring_info->interval = 0; in dhd_os_reset_logging()
311 if (ring_info->interval) { in dhd_os_trigger_get_ring_data()
514 if (ring_info->interval) { in dhd_os_dbg_detach()
515 ring_info->interval = 0; in dhd_os_dbg_detach()
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/btm/
Dbtm_pm.c214 …mode->mode & BTM_PM_MD_FORCE) && (p_mode->max >= p_cb->interval) && (p_mode->min <= p_cb->interval in BTM_SetPowerMode()
215 ((p_mode->mode & BTM_PM_MD_FORCE) == 0 && (p_mode->max >= p_cb->interval)) ) { in BTM_SetPowerMode()
216 …etPowerMode: mode:0x%x interval %d max:%d, min:%d", p_mode->mode, p_cb->interval, p_mode->max, p_m… in BTM_SetPowerMode()
570 ((md_res.max >= p_cb->interval) && (md_res.min <= p_cb->interval)) ) { in btm_pm_snd_md_req()
754 void btm_pm_proc_mode_change (UINT8 hci_status, UINT16 hci_handle, UINT8 mode, UINT16 interval) in btm_pm_proc_mode_change() argument
772 p_cb->interval = interval; in btm_pm_proc_mode_change()
818 (*btm_cb.pm_reg_db[yy].cback)( p->remote_addr, mode, interval, hci_status); in btm_pm_proc_mode_change()
859 if (p_cb->interval == max_rx_lat) { in btm_pm_proc_ssr_evt()
Dbtm_inq.c161 tBTM_STATUS BTM_SetDiscoverability (UINT16 inq_mode, UINT16 window, UINT16 interval) in BTM_SetDiscoverability() argument
189 if (!interval) { in BTM_SetDiscoverability()
190 interval = BTM_DEFAULT_DISC_INTERVAL; in BTM_SetDiscoverability()
194 inq_mode, window, interval); in BTM_SetDiscoverability()
202 interval < HCI_MIN_INQUIRYSCAN_INTERVAL || in BTM_SetDiscoverability()
203 interval > HCI_MAX_INQUIRYSCAN_INTERVAL || in BTM_SetDiscoverability()
204 window > interval) { in BTM_SetDiscoverability()
230 (interval != btm_cb.btm_inq_vars.inq_scan_period)) { in BTM_SetDiscoverability()
231 if (btsnd_hcic_write_inqscan_cfg (interval, window)) { in BTM_SetDiscoverability()
233 btm_cb.btm_inq_vars.inq_scan_period = interval; in BTM_SetDiscoverability()
[all …]
/device/soc/hpmicro/sdk/hpm_sdk/drivers/src/
Dhpm_wdg_drv.c17 reset_interval_t interval; member
22 interrupt_interval_t interval; member
109 reset_interval = k_reset_interval_map[i].interval; in wdg_convert_reset_interval_from_us()
131 interrupt_interval = k_interrupt_interval_map[i].interval; in wdg_convert_interrupt_interval_from_us()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/
Dmali_kbase_vinstr.c146 static u64 kbasep_vinstr_next_dump_time_ns(u64 cur_ts_ns, u32 interval) in kbasep_vinstr_next_dump_time_ns() argument
149 if (interval == 0) { in kbasep_vinstr_next_dump_time_ns()
159 do_div(cur_ts_ns, interval); in kbasep_vinstr_next_dump_time_ns()
160 return (cur_ts_ns + 1) * interval; in kbasep_vinstr_next_dump_time_ns()
791 …c long kbasep_vinstr_hwcnt_reader_ioctl_set_interval(struct kbase_vinstr_client *cli, u32 interval) in kbasep_vinstr_hwcnt_reader_ioctl_set_interval() argument
795 if ((interval != 0) && (interval < DUMP_INTERVAL_MIN_NS)) { in kbasep_vinstr_hwcnt_reader_ioctl_set_interval()
796 interval = DUMP_INTERVAL_MIN_NS; in kbasep_vinstr_hwcnt_reader_ioctl_set_interval()
799 cli->dump_interval_ns = interval; in kbasep_vinstr_hwcnt_reader_ioctl_set_interval()
807 if ((interval != 0) && (cli->vctx->suspend_count == 0)) in kbasep_vinstr_hwcnt_reader_ioctl_set_interval()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/
Dmali_kbase_vinstr.c161 static u64 kbasep_vinstr_next_dump_time_ns(u64 cur_ts_ns, u32 interval) in kbasep_vinstr_next_dump_time_ns() argument
164 if (interval == 0) in kbasep_vinstr_next_dump_time_ns()
173 do_div(cur_ts_ns, interval); in kbasep_vinstr_next_dump_time_ns()
174 return (cur_ts_ns + 1) * interval; in kbasep_vinstr_next_dump_time_ns()
840 u32 interval) in kbasep_vinstr_hwcnt_reader_ioctl_set_interval() argument
844 if ((interval != 0) && (interval < DUMP_INTERVAL_MIN_NS)) in kbasep_vinstr_hwcnt_reader_ioctl_set_interval()
845 interval = DUMP_INTERVAL_MIN_NS; in kbasep_vinstr_hwcnt_reader_ioctl_set_interval()
847 cli->dump_interval_ns = interval; in kbasep_vinstr_hwcnt_reader_ioctl_set_interval()
855 if ((interval != 0) && (cli->vctx->suspend_count == 0)) in kbasep_vinstr_hwcnt_reader_ioctl_set_interval()
/device/soc/hpmicro/sdk/hpm_sdk/components/usb/host/
Dhpm_usb_host.c134 uint8_t const interval = ep_desc->bInterval; in usb_host_qhd_init() local
153 if (interval > USB_HIGH_SPPED_INTERVAL_MAX) { in usb_host_qhd_init()
157 if (interval < 4) { /* sub millisecond interval */ in usb_host_qhd_init()
159 p_qhd->int_smask = (interval == 1) ? USB_BIN8(11111111) : in usb_host_qhd_init()
160 (interval == 2) ? USB_BIN8(10101010) : USB_BIN8(01000100); in usb_host_qhd_init()
162 p_qhd->interval_ms = (uint8_t)MIN(1 << (interval - 4), 255); in usb_host_qhd_init()
163 p_qhd->int_smask = HPM_BITSMASK(1, interval % 8); in usb_host_qhd_init()
166 if (interval == 0) { in usb_host_qhd_init()
173 p_qhd->interval_ms = interval; in usb_host_qhd_init()
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/cif/
Dprocfs.c249 struct v4l2_subdev_frame_interval *interval = &sensor->fi; in rkcif_show_format() local
295 rect->height, interval->interval.denominator / interval->interval.numerator); in rkcif_show_format()
/device/board/isoftstone/yangfan/kernel/src/driv/media/cif/
Dprocfs.c250 struct v4l2_subdev_frame_interval *interval = &sensor->fi; in rkcif_show_format() local
298 interval->interval.denominator / interval->interval.numerator); in rkcif_show_format()
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/cif/
Dprocfs.c250 struct v4l2_subdev_frame_interval *interval = &sensor->fi; in rkcif_show_format() local
298 interval->interval.denominator / interval->interval.numerator); in rkcif_show_format()
/device/soc/chipsea/cst85/liteos_m/sdk/modules/wifi/console/
Dfhost_command_common.c1182 uint32_t interval = 0; in fhost_console_iperf() local
1194 interval += atoi(substr); in fhost_console_iperf()
1197 interval += atoi(token) * 10; in fhost_console_iperf()
1199 if (interval < 5) in fhost_console_iperf()
1202 interval = 5; in fhost_console_iperf()
1206 iperf_settings.interval.sec = interval / 10; in fhost_console_iperf()
1207 … iperf_settings.interval.usec = 100000 * (interval - (iperf_settings.interval.sec * 10)); in fhost_console_iperf()

1234567891011