/device/board/isoftstone/yangfan/kernel/src/driv/input/touchscreen/gt9xx/ |
D | gt9xx.c | 89 void gtp_int_sync(s32 ms, struct goodix_ts_data *ts); 129 static s32 gtp_main_clk_proc(struct goodix_ts_data *ts); 130 static s32 gtp_bak_ref_proc(struct goodix_ts_data *ts, u8 mode); 143 static s8 gtp_enter_doze(struct goodix_ts_data *ts); 194 struct goodix_ts_data *ts = i2c_get_clientdata(client); in gtp_i2c_read() local 206 if (CHIP_TYPE_GT9F == ts->chip_type) in gtp_i2c_read() 258 struct goodix_ts_data *ts = i2c_get_clientdata(client); in gtp_i2c_write() local 269 if (CHIP_TYPE_GT9F == ts->chip_type) in gtp_i2c_write() 339 struct goodix_ts_data *ts = i2c_get_clientdata(client); in gtp_send_cfg() local 341 if (ts->fixed_cfg) in gtp_send_cfg() [all …]
|
D | gt9xx_update.c | 120 extern void gtp_irq_enable(struct goodix_ts_data *ts); 121 extern void gtp_irq_disable(struct goodix_ts_data *ts); 221 static s32 gup_init_panel(struct goodix_ts_data *ts) in gup_init_panel() argument 253 ret = gtp_i2c_read_dbl_check(ts->client, GTP_REG_SENSOR_ID, &sensor_id, 1); in gup_init_panel() 271 ts->gtp_cfg_len = cfg_info_len[sensor_id]; in gup_init_panel() 273 if (ts->gtp_cfg_len < GTP_CONFIG_MIN_LENGTH) in gup_init_panel() 279 ret = gtp_i2c_read_dbl_check(ts->client, GTP_REG_CONFIG_DATA, &opr_buf[0], 1); in gup_init_panel() 287 ts->fixed_cfg = 0; in gup_init_panel() 296 memcpy(&config[GTP_ADDR_LENGTH], send_cfg_buf[sensor_id], ts->gtp_cfg_len); in gup_init_panel() 299 ts->abs_x_max, ts->abs_y_max, ts->int_trigger_type); in gup_init_panel() [all …]
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ |
D | mali_kbase_trace_timeline.h | 51 …struct timespec64 ts; … 52 …ktime_get_raw_ts64(&ts); … 53 …trace_mali_timeline_atoms_in_flight(ts.tv_sec, ts.tv_nsec, (int)kctx->timeline.owner_tgid, count);… 59 …struct timespec64 ts; … 60 …ktime_get_raw_ts64(&ts); … 61 …trace_mali_timeline_atom(ts.tv_sec, ts.tv_nsec, CTX_FLOW_ATOM_READY, (int)kctx->timeline.owner_tgi… 73 …struct timespec64 ts; … 74 …ktime_get_raw_ts64(&ts); … 75 …trace_mali_timeline_gpu_slot_active(ts.tv_sec, ts.tv_nsec, SW_SET_GPU_SLOT_ACTIVE, … 82 …struct timespec64 ts; … [all …]
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ |
D | mali_kbase_trace_timeline.h | 52 struct timespec64 ts; \ 53 ktime_get_raw_ts64(&ts); \ 54 trace_mali_timeline_atoms_in_flight(ts.tv_sec, ts.tv_nsec, \ 62 struct timespec64 ts; \ 63 ktime_get_raw_ts64(&ts); \ 64 trace_mali_timeline_atom(ts.tv_sec, ts.tv_nsec, \ 79 struct timespec64 ts; \ 80 ktime_get_raw_ts64(&ts); \ 81 trace_mali_timeline_gpu_slot_active(ts.tv_sec, ts.tv_nsec, \ 91 struct timespec64 ts; \ [all …]
|
/device/board/unionman/unionpi_tiger/kernel/hdf/audio/linux_drv/src/ |
D | axg_tdm_formatter.c | 69 struct axg_tdm_stream *ts = formatter->stream; in tdm_formatter_enable() local 102 invert = axg_tdm_sclk_invert(ts->iface->fmt); in tdm_formatter_enable() 150 struct axg_tdm_stream *ts = formatter->stream; in tdm_formatter_attach() local 153 mutex_lock(&ts->lock); in tdm_formatter_attach() 156 if (ts->ready) { in tdm_formatter_attach() 160 mutex_unlock(&ts->lock); in tdm_formatter_attach() 165 list_add_tail(&formatter->list, &ts->formatter_list); in tdm_formatter_attach() 167 mutex_unlock(&ts->lock); in tdm_formatter_attach() 173 struct axg_tdm_stream *ts = formatter->stream; in tdm_formatter_dettach() local 175 mutex_lock(&ts->lock); in tdm_formatter_dettach() [all …]
|
D | axg_tdm_formatter.h | 47 struct axg_tdm_stream *ts); 57 struct axg_tdm_stream *ts, 61 struct axg_tdm_stream *ts); 77 void axg_tdm_stream_free(struct axg_tdm_stream *ts); 79 int axg_tdm_stream_start(struct axg_tdm_stream *ts); 81 void axg_tdm_stream_stop(struct axg_tdm_stream *ts); 83 static inline int axg_tdm_stream_reset(struct axg_tdm_stream *ts) in axg_tdm_stream_reset() argument 85 axg_tdm_stream_stop(ts); in axg_tdm_stream_reset() 86 return axg_tdm_stream_start(ts); in axg_tdm_stream_reset()
|
D | axg_tdmout.c | 102 struct axg_tdm_stream *ts) in axg_tdmout_prepare() argument 107 switch (ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK) { in axg_tdmout_prepare() 117 ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK); in axg_tdmout_prepare() 124 val |= TDMOUT_CTRL0_BITNUM(ts->iface->slot_width - 1); in axg_tdmout_prepare() 127 val |= TDMOUT_CTRL0_SLOTNUM(ts->iface->slots - 1); in axg_tdmout_prepare() 136 val = TDMOUT_CTRL1_MSB_POS(ts->width - 1); in axg_tdmout_prepare() 139 switch (ts->physical_width) { in axg_tdmout_prepare() 154 ts->physical_width); in axg_tdmout_prepare() 159 if (axg_tdm_lrclk_invert(ts->iface->fmt)) { in axg_tdmout_prepare() 171 return axg_tdm_formatter_set_channel_masks(map, ts, TDMOUT_MASK0); in axg_tdmout_prepare()
|
D | axg_tdm_interface.c | 173 struct axg_tdm_stream *ts = TDM_STREAM_GET(iface, stream); in tdm_iface_set_stream() local 177 if (!ts) { in tdm_iface_set_stream() 185 if (tdm_slots_total(ts->mask) < channels) { in tdm_iface_set_stream() 196 ts->physical_width = params->physical_width; in tdm_iface_set_stream() 197 ts->width = width; in tdm_iface_set_stream() 198 ts->channels = channels; in tdm_iface_set_stream() 349 struct axg_tdm_stream *ts = TDM_STREAM_GET(iface, stream); in meson_axg_tdm_iface_unprepare() local 351 if (!ts) { in meson_axg_tdm_iface_unprepare() 356 axg_tdm_stream_stop(ts); in meson_axg_tdm_iface_unprepare() 364 struct axg_tdm_stream *ts = TDM_STREAM_GET(iface, stream); in meson_axg_tdm_iface_prepare() local [all …]
|
D | axg_tdmin.c | 92 struct axg_tdm_stream *ts) in axg_tdmin_prepare() argument 97 switch (ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK) { in axg_tdmin_prepare() 107 ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK); in axg_tdmin_prepare() 114 switch (ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK) { in axg_tdmin_prepare() 125 if (axg_tdm_lrclk_invert(ts->iface->fmt)) { in axg_tdmin_prepare() 130 val |= TDMIN_CTRL_BITNUM(ts->iface->slot_width - 1); in axg_tdmin_prepare() 145 return axg_tdm_formatter_set_channel_masks(map, ts, TDMIN_MASK0); in axg_tdmin_prepare()
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/input/ctp/gslx680new/ |
D | gslX680.c | 1033 static void report_key(struct gsl_ts *ts, u16 x, u16 y) in report_key() argument 1044 input_report_key(ts->input, key, 1); in report_key() 1045 input_sync(ts->input); in report_key() 1053 static void report_data(struct gsl_ts *ts, u16 x, u16 y, u8 pressure, u8 id) in report_data() argument 1070 report_key(ts, x, y); in report_data() 1077 input_mt_slot(ts->input, id); in report_data() 1078 input_report_abs(ts->input, ABS_MT_TRACKING_ID, id); in report_data() 1079 input_report_abs(ts->input, ABS_MT_TOUCH_MAJOR, pressure); in report_data() 1080 input_report_abs(ts->input, ABS_MT_POSITION_X, x); in report_data() 1081 input_report_abs(ts->input, ABS_MT_POSITION_Y, y); in report_data() [all …]
|
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/stream_input/parser/demux/hw_demux/ |
D | s2p.c | 54 static struct aml_ts_input ts[TS_INPUT_COUNT]; variable 103 ts[i].mode = AM_TS_DISABLE; in s2p_probe() 104 ts[i].s2p_id = -1; in s2p_probe() 105 ts[i].pinctrl = NULL; in s2p_probe() 120 ts[i].mode = AM_TS_SERIAL; in s2p_probe() 121 ts[i].pinctrl = in s2p_probe() 124 ts[i].s2p_id = s2p_id; in s2p_probe() 132 ts[i].mode = AM_TS_PARALLEL; in s2p_probe() 133 ts[i].pinctrl = in s2p_probe() 137 ts[i].mode = AM_TS_DISABLE; in s2p_probe() [all …]
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/higv/include/ |
D | hi_condition.h | 70 struct timespec ts; in waitRelative() local 72 clock_gettime(CLOCK_REALTIME, &ts); in waitRelative() 74 ts.tv_sec = 0; in waitRelative() 75 ts.tv_nsec = 0; in waitRelative() 77 ts.tv_sec += reltime / SEC_TO_NSEC; in waitRelative() 78 ts.tv_nsec += reltime % SEC_TO_NSEC; in waitRelative() 79 if (ts.tv_nsec >= SEC_TO_NSEC) { in waitRelative() 80 ts.tv_nsec -= SEC_TO_NSEC; in waitRelative() 81 ts.tv_sec += 1; in waitRelative() 83 return -pthread_cond_timedwait(&mCond, &mutex.mMutex, &ts); in waitRelative()
|
/device/board/unionman/unionpi_tiger/hardware/bt/src/ |
D | rtk_poll.c | 110 struct itimerspec ts; in poll_timer_stop() local 115 ts.it_value.tv_sec = 0; in poll_timer_stop() 116 ts.it_value.tv_nsec = 0; in poll_timer_stop() 117 ts.it_interval.tv_sec = 0; in poll_timer_stop() 118 ts.it_interval.tv_nsec = 0; in poll_timer_stop() 120 status = timer_settime(bt_poll_cb.timer_id, 0, &ts, 0); in poll_timer_stop() 212 struct itimerspec ts; in poll_timer_flush() local 235 ts.it_value.tv_sec = bt_poll_cb.timeout_ms / 1000L; in poll_timer_flush() 236 ts.it_value.tv_nsec = 1000L * 1000L * (bt_poll_cb.timeout_ms % 1000L); in poll_timer_flush() 237 ts.it_interval.tv_sec = 0; in poll_timer_flush() [all …]
|
/device/board/hisilicon/hispark_phoenix/peripherals/bluetooth/rtkbt/code/libbt-vendor/src/ |
D | rtk_poll.c | 120 struct itimerspec ts; in poll_timer_stop() local 126 ts.it_value.tv_sec = 0; in poll_timer_stop() 127 ts.it_value.tv_nsec = 0; in poll_timer_stop() 128 ts.it_interval.tv_sec = 0; in poll_timer_stop() 129 ts.it_interval.tv_nsec = 0; in poll_timer_stop() 131 status = timer_settime(bt_poll_cb.timer_id, 0, &ts, 0); in poll_timer_stop() 229 struct itimerspec ts; in poll_timer_flush() local 253 ts.it_value.tv_sec = bt_poll_cb.timeout_ms / 1000; in poll_timer_flush() 254 ts.it_value.tv_nsec = 1000 * 1000 * (bt_poll_cb.timeout_ms % 1000); in poll_timer_flush() 255 ts.it_interval.tv_sec = 0; in poll_timer_flush() [all …]
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/backend/gpu/ |
D | mali_kbase_time.c | 29 struct timespec64 *ts) in kbase_backend_get_gpu_time_norequest() argument 54 if (ts != NULL) in kbase_backend_get_gpu_time_norequest() 56 *ts = ktime_to_timespec64(ktime_get_raw()); in kbase_backend_get_gpu_time_norequest() 58 ktime_get_raw_ts64(ts); in kbase_backend_get_gpu_time_norequest() 62 …t_gpu_time(struct kbase_device *kbdev, u64 *cycle_counter, u64 *system_time, struct timespec64 *ts) in kbase_backend_get_gpu_time() argument 67 kbase_backend_get_gpu_time_norequest(kbdev, cycle_counter, system_time, ts); in kbase_backend_get_gpu_time()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ipa/ |
D | mali_kbase_ipa_simple.c | 45 s32 ts[4]; member 62 static u32 calculate_temp_scaling_factor(s32 ts[4], s64 t) in calculate_temp_scaling_factor() 77 const s64 res_big = ts[3] * t3 /* +/- 2^62 */ in calculate_temp_scaling_factor() 78 + ts[2] * t2 /* +/- 2^55 */ in calculate_temp_scaling_factor() 79 + ts[1] * t /* +/- 2^48 */ in calculate_temp_scaling_factor() 80 + ts[0] * 0x3E8; /* +/- 2^41 */ in calculate_temp_scaling_factor() 113 temp_scaling_factor = calculate_temp_scaling_factor(model_data->ts, temp); in model_static_coeff() 144 err = kbase_ipa_model_add_param_s32(model, "ts", model_data->ts, 0x4, true); in add_params()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ipa/ |
D | mali_kbase_ipa_simple.c | 47 s32 ts[4]; member 64 static u32 calculate_temp_scaling_factor(s32 ts[4], s64 t) in calculate_temp_scaling_factor() 79 const s64 res_big = ts[3] * t3 /* +/- 2^62 */ in calculate_temp_scaling_factor() 80 + ts[2] * t2 /* +/- 2^55 */ in calculate_temp_scaling_factor() 81 + ts[1] * t /* +/- 2^48 */ in calculate_temp_scaling_factor() 82 + ts[0] * 1000; /* +/- 2^41 */ in calculate_temp_scaling_factor() 117 temp_scaling_factor = calculate_temp_scaling_factor(model_data->ts, in model_static_coeff() 155 model_data->ts, 4, true); in add_params()
|
/device/board/kaihong/khdvk_3566b/kernel/bluetooth/src/ |
D | upio.c | 201 struct itimerspec ts; in upio_start_stop_timer() local 206 ts.it_value.tv_sec = PROC_BTWRITE_TIMER_TIMEOUT_MS / BT_VENDOR_TIME_RAIDX; in upio_start_stop_timer() 207 ts.it_value.tv_nsec = BT_VENDOR_TIME_RAIDX * BT_VENDOR_TIME_RAIDX * in upio_start_stop_timer() 209 ts.it_interval.tv_sec = 0; in upio_start_stop_timer() 210 ts.it_interval.tv_nsec = 0; in upio_start_stop_timer() 214 (void)memset_s(&ts, sizeof(ts), 0, sizeof(ts)); in upio_start_stop_timer() 217 if (timer_settime(lpm_proc_cb.timer_id, 0, &ts, 0) == 0) { in upio_start_stop_timer()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/backend/gpu/ |
D | mali_kbase_time.c | 31 struct timespec64 *ts) in kbase_backend_get_gpu_time_norequest() argument 52 if (ts != NULL) in kbase_backend_get_gpu_time_norequest() 54 *ts = ktime_to_timespec64(ktime_get_raw()); in kbase_backend_get_gpu_time_norequest() 56 ktime_get_raw_ts64(ts); in kbase_backend_get_gpu_time_norequest() 90 u64 *system_time, struct timespec64 *ts) in kbase_backend_get_gpu_time() argument 100 ts); in kbase_backend_get_gpu_time()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/include/sys/ |
D | time.h | 106 #define TIMEVAL_TO_TIMESPEC(tv, ts) ( \ argument 107 (ts)->tv_sec = (tv)->tv_sec, \ 108 (ts)->tv_nsec = (tv)->tv_usec * 1000, \ 110 #define TIMESPEC_TO_TIMEVAL(tv, ts) ( \ argument 111 (tv)->tv_sec = (ts)->tv_sec, \ 112 (tv)->tv_usec = (ts)->tv_nsec / 1000, \
|
/device/board/osware/imx8mm/drivers/bluetooth/source/src/ |
D | upio.c | 201 struct itimerspec ts; in upio_start_stop_timer() local 206 ts.it_value.tv_sec = PROC_BTWRITE_TIMER_TIMEOUT_MS / BT_VENDOR_TIME_RAIDX; in upio_start_stop_timer() 207 ts.it_value.tv_nsec = BT_VENDOR_TIME_RAIDX * BT_VENDOR_TIME_RAIDX * in upio_start_stop_timer() 209 ts.it_interval.tv_sec = 0; in upio_start_stop_timer() 210 ts.it_interval.tv_nsec = 0; in upio_start_stop_timer() 214 (void)memset_s(&ts, sizeof(ts), 0, sizeof(ts)); in upio_start_stop_timer() 217 if (timer_settime(lpm_proc_cb.timer_id, 0, &ts, 0) == 0) { in upio_start_stop_timer()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ipa/ |
D | mali_kbase_ipa_simple.c | 96 s32 ts[4]; member 116 static u32 calculate_temp_scaling_factor(s32 ts[4], s64 t) in calculate_temp_scaling_factor() 129 const s64 res_big = ts[3] * t3 /* +/- 2^62 */ in calculate_temp_scaling_factor() 130 + ts[2] * t2 /* +/- 2^55 */ in calculate_temp_scaling_factor() 131 + ts[1] * t /* +/- 2^48 */ in calculate_temp_scaling_factor() 132 + ts[0] * (s64)1000; /* +/- 2^41 */ in calculate_temp_scaling_factor() 190 temp_scaling_factor = calculate_temp_scaling_factor(model_data->ts, in model_static_coeff() 247 model_data->ts, 4, true); in add_params()
|
/device/soc/rockchip/common/hardware/mpp/include/ |
D | mpp_thread.h | 171 struct timespec ts; in timedwait() local 173 clock_gettime(CLOCK_REALTIME_COARSE, &ts); in timedwait() 175 ts.tv_sec += timeout / 1000; // 1000:Get milliseconds in timedwait() 176 ts.tv_nsec += (timeout % 1000) * 1000000; // 1000:Get milliseconds // 1000000:Get seconds in timedwait() 178 ts.tv_sec += ts.tv_nsec / 1000000000; // 1000000000:Get seconds in timedwait() 179 ts.tv_nsec %= 1000000000; // 1000000000:Get Get nanoseconds in timedwait() 181 return pthread_cond_timedwait(&mCond, &mutex->mMutex, &ts); in timedwait()
|
/device/soc/rockchip/rk3588/hardware/mpp/include/ |
D | mpp_thread.h | 183 struct timespec ts; in timedwait() local 185 clock_gettime(CLOCK_REALTIME_COARSE, &ts); in timedwait() 187 ts.tv_sec += timeout / 1000; in timedwait() 188 ts.tv_nsec += (timeout % 1000) * 1000000; in timedwait() 190 ts.tv_sec += ts.tv_nsec / 1000000000; in timedwait() 191 ts.tv_nsec %= 1000000000; in timedwait() 193 return pthread_cond_timedwait(&mCond, &mutex->mMutex, &ts); in timedwait()
|
/device/soc/rockchip/rk3399/hardware/mpp/include/ |
D | mpp_thread.h | 171 struct timespec ts; in timedwait() local 173 clock_gettime(CLOCK_REALTIME_COARSE, &ts); in timedwait() 175 ts.tv_sec += timeout / 1000; // 1000:Get milliseconds in timedwait() 176 ts.tv_nsec += (timeout % 1000) * 1000000; // 1000:Get milliseconds // 1000000:Get seconds in timedwait() 178 ts.tv_sec += ts.tv_nsec / 1000000000; // 1000000000:Get seconds in timedwait() 179 ts.tv_nsec %= 1000000000; // 1000000000:Get Get nanoseconds in timedwait() 181 return pthread_cond_timedwait(&mCond, &mutex->mMutex, &ts); in timedwait()
|