Home
last modified time | relevance | path

Searched refs:temp (Results 1 - 25 of 137) sorted by relevance

123456

/test/xts/acts/distributeddatamgr_lite/kv_store_hal/src/
H A Dkvstore_func_test.c69 char temp[MAX_VALUE_LEN_TEST] = {0}; in SetKVFiles() local
88 ret = UtilsGetValue(keytemp, temp, MAX_VALUE_LEN_TEST); in SetKVFiles()
95 TEST_ASSERT_EQUAL_STRING(valuetemp, temp); in SetKVFiles()
100 memset_s(temp, MAX_VALUE_LEN_TEST, 0, MAX_VALUE_LEN_TEST); in SetKVFiles()
116 char temp[MAX_VALUE_LEN_TEST] = {0}; in ReadKVFiles() local
129 ret = UtilsGetValue(keytemp, temp, MAX_VALUE_LEN_TEST); in ReadKVFiles()
140 TEST_ASSERT_EQUAL_STRING(valuetemp, temp); in ReadKVFiles()
146 memset_s(temp, MAX_VALUE_LEN_TEST, 0, MAX_VALUE_LEN_TEST); in ReadKVFiles()
437 char temp[MAX_VALUE_LEN_TEST] = {0}; variable
441 ret = UtilsGetValue(key, temp, MAX_VALUE_LEN_TES
461 char temp[MAX_VALUE_LEN_TEST] = {0}; global() variable
485 char temp[MAX_VALUE_LEN_TEST] = {0}; global() variable
514 char temp[MAX_VALUE_LEN_TEST] = {0}; global() variable
528 char temp[MAX_VALUE_LEN_TEST] = {0}; global() variable
565 char temp[MAX_VALUE_LEN_TEST] = {0}; global() variable
594 char temp[MAX_VALUE_LEN_TEST] = {0}; global() variable
[all...]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ipa/
H A Dmali_kbase_ipa_simple.c43 static int kbase_simple_power_model_get_dummy_temp(struct thermal_zone_device *tz, unsigned long *temp) in kbase_simple_power_model_get_dummy_temp() argument
45 *temp = READ_ONCE(dummy_temp); in kbase_simple_power_model_get_dummy_temp()
52 static int kbase_simple_power_model_get_dummy_temp(struct thermal_zone_device *tz, int *temp) in kbase_simple_power_model_get_dummy_temp() argument
54 *temp = READ_ONCE(dummy_temp); in kbase_simple_power_model_get_dummy_temp()
63 #define thermal_zone_get_temp(tz, temp) kbase_simple_power_model_get_dummy_temp(tz, temp)
65 void kbase_simple_power_model_set_dummy_temp(int temp) in kbase_simple_power_model_set_dummy_temp() argument
67 WRITE_ONCE(dummy_temp, temp); in kbase_simple_power_model_set_dummy_temp()
147 unsigned long temp; in poll_temperature() local
149 int temp; in poll_temperature() local
184 int temp; model_static_coeff() local
[all...]
/test/xts/acts/distributeddatamgr_lite/kv_store_posix/src/
H A DKvStoreTest.cpp69 char temp[MAX_VALUE_LEN_TEST] = {0}; in TouchKVFiles() local
88 ret = UtilsGetValue(keytemp, temp, MAX_VALUE_LEN_TEST); in TouchKVFiles()
91 EXPECT_STREQ(valuetemp, temp); in TouchKVFiles()
96 memset_s(temp, MAX_VALUE_LEN_TEST, 0, MAX_VALUE_LEN_TEST); in TouchKVFiles()
110 char temp[MAX_VALUE_LEN_TEST] = {0}; in ReadKVFiles() local
123 ret = UtilsGetValue(keytemp, temp, MAX_VALUE_LEN_TEST); in ReadKVFiles()
130 EXPECT_STREQ(valuetemp, temp); in ReadKVFiles()
136 memset_s(temp, MAX_VALUE_LEN_TEST, 0, MAX_VALUE_LEN_TEST); in ReadKVFiles()
425 char temp[MAX_VALUE_LEN_TEST] = {0}; in HWTEST_F() local
429 ret = UtilsGetValue(key, temp, MAX_VALUE_LEN_TES in HWTEST_F()
445 char temp[MAX_VALUE_LEN_TEST] = {0}; HWTEST_F() local
464 char temp[MAX_VALUE_LEN_TEST] = {0}; HWTEST_F() local
487 char temp[MAX_VALUE_LEN_TEST] = {0}; HWTEST_F() local
515 char temp[MAX_VALUE_LEN_TEST] = {0}; HWTEST_F() local
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ipa/
H A Dmali_kbase_ipa_simple.c53 int *temp) in kbase_simple_power_model_get_dummy_temp()
55 *temp = READ_ONCE(dummy_temp); in kbase_simple_power_model_get_dummy_temp()
63 #define thermal_zone_get_temp(tz, temp) \
64 kbase_simple_power_model_get_dummy_temp(tz, temp)
66 void kbase_simple_power_model_set_dummy_temp(int temp) in kbase_simple_power_model_set_dummy_temp() argument
68 WRITE_ONCE(dummy_temp, temp); in kbase_simple_power_model_set_dummy_temp()
149 int temp; in poll_temperature() local
159 ret = thermal_zone_get_temp(tz, &temp); in poll_temperature()
163 temp = FALLBACK_STATIC_TEMPERATURE; in poll_temperature()
166 temp in poll_temperature()
51 kbase_simple_power_model_get_dummy_temp( struct thermal_zone_device *tz, int *temp) kbase_simple_power_model_get_dummy_temp() argument
185 int temp; model_static_coeff() local
[all...]
/test/xts/device_attest/services/devattest_ability/test/tdd/gtest/src/
H A Dattest_tdd_data_transfer.c57 uint8_t *temp = (uint8_t *)malloc(mollocLen); in AttestSeriaToBinary() local
58 if (temp == NULL) { in AttestSeriaToBinary()
61 memset_s(temp, mollocLen, 0, mollocLen); in AttestSeriaToBinary()
66 unsigned char *indexTemp = (unsigned char*)temp; in AttestSeriaToBinary()
83 free(temp); in AttestSeriaToBinary()
87 if (memcpy_s(*buf, len, temp, len) != 0) { in AttestSeriaToBinary()
88 free(temp); in AttestSeriaToBinary()
91 free(temp); in AttestSeriaToBinary()
/test/xts/device_attest_lite/test/tdd/gtest/src/
H A Dattest_tdd_data_transfer.c58 uint8_t *temp = (uint8_t *)malloc(mollocLen); in AttestSeriaToBinary() local
59 if (temp == NULL) { in AttestSeriaToBinary()
62 memset_s(temp, mollocLen, 0, mollocLen); in AttestSeriaToBinary()
67 unsigned char *indexTemp = (unsigned char*)temp; in AttestSeriaToBinary()
84 free(temp); in AttestSeriaToBinary()
88 if (memcpy_s(*buf, len, temp, len) != 0) { in AttestSeriaToBinary()
89 free(temp); in AttestSeriaToBinary()
92 free(temp); in AttestSeriaToBinary()
/device/soc/rockchip/common/sdk_linux/include/trace/events/
H A Dthermal_ipa_power.h12 TP_PROTO(u32 leakage, u32 coefficient, s32 temp, u32 temp_scaling_factor, u32 volt, u32 volt_scaling_factor,
15 TP_ARGS(leakage, coefficient, temp, temp_scaling_factor, volt, volt_scaling_factor, static_power),
17 TP_STRUCT__entry(__field(u32, leakage) __field(u32, coefficient) __field(s32, temp)
21 TP_fast_assign(__entry->leakage = leakage; __entry->coefficient = coefficient; __entry->temp = temp;
25 __entry->temp, __entry->temp_scaling_factor, __entry->volt, __entry->volt_scaling_factor,
/device/soc/rockchip/rk3588/kernel/include/trace/events/
H A Dthermal_ipa_power.h11 TP_PROTO(u32 leakage, u32 coefficient, s32 temp,
15 TP_ARGS(leakage, coefficient, temp, temp_scaling_factor, volt,
21 __field(s32, temp)
31 __entry->temp = temp;
38 __entry->leakage, __entry->coefficient, __entry->temp,
/device/soc/rockchip/rk3588/kernel/drivers/soc/rockchip/
H A Dthermal_netlink.h18 int temp, int hyst);
20 int temp, int hyst);
25 int thermal_genl_sampling_temp(int id, int temp);
68 int temp, int hyst) in thermal_notify_tz_trip_add()
74 int temp, int hyst) in thermal_notify_tz_trip_change()
100 static inline int thermal_genl_sampling_temp(int id, int temp) in thermal_genl_sampling_temp() argument
67 thermal_notify_tz_trip_add(int tz_id, int id, int type, int temp, int hyst) thermal_notify_tz_trip_add() argument
73 thermal_notify_tz_trip_change(int tz_id, int id, int type, int temp, int hyst) thermal_notify_tz_trip_change() argument
H A Drockchip_opp_select.c62 int temp; member
77 * temp = temp * 10
78 * conv = exp(-ln(1.2) / 5 * (temp - 23)) * 100
314 if (of_property_read_u32(np, "rockchip,pvtm-ref-temp", &pvtm->ref_temp)) in rockchip_parse_pvtm_config()
316 if (of_property_read_u32_array(np, "rockchip,pvtm-temp-prop", in rockchip_parse_pvtm_config()
416 dev_info(dev, "temp=%d, pvtm=%d (%d + %d)\n", in rockchip_get_pvtm_specific_value()
442 static int temp_to_conversion_rate(int temp) in temp_to_conversion_rate() argument
450 /* No temp available, return max conversion_rate */ in temp_to_conversion_rate()
451 if (temp < in temp_to_conversion_rate()
479 u32 temp; rockchip_adjust_leakage() local
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/thermal/
H A Drockchip_thermal.c118 * @trim_temp: get trim temp by trim code
137 int (*get_temp)(const struct chip_tsadc_table *table, int chn, void __iomem *reg, int *temp);
138 int (*set_alarm_temp)(const struct chip_tsadc_table *table, int chn, void __iomem *reg, int temp);
139 int (*set_tshut_temp)(const struct chip_tsadc_table *table, int chn, void __iomem *reg, int temp);
286 * @temp: the temperature
295 int temp; member
401 static u32 rk_tsadcv2_temp_to_code(const struct chip_tsadc_table *table, int temp) in rk_tsadcv2_temp_to_code() argument
409 return (((temp / ROCKCHIP_THERMAL_ONETHOUSAND) * table->kNum) / ROCKCHIP_THERMAL_ONETHOUSAND + table->bNum); in rk_tsadcv2_temp_to_code()
416 /* Return mask code data when the temp is over table range */ in rk_tsadcv2_temp_to_code()
417 if (temp < tabl in rk_tsadcv2_temp_to_code()
457 rk_tsadcv2_code_to_temp(const struct chip_tsadc_table *table, u32 code, int *temp) rk_tsadcv2_code_to_temp() argument
730 rk_tsadcv2_get_temp(const struct chip_tsadc_table *table, int chn, void __iomem *regs, int *temp) rk_tsadcv2_get_temp() argument
739 rk_tsadcv2_alarm_temp(const struct chip_tsadc_table *table, int chn, void __iomem *regs, int temp) rk_tsadcv2_alarm_temp() argument
772 rk_tsadcv2_tshut_temp(const struct chip_tsadc_table *table, int chn, void __iomem *regs, int temp) rk_tsadcv2_tshut_temp() argument
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hdmi/src/mkp/
H A Ddrv_hdmi_edid.c531 hi_u32 temp; in edid_timing_param() local
534 temp = dtd->hs_offset_vs_offset & EDID_VSO_MASK; in edid_timing_param()
535 temp <<= 2; /* 2'b, bit[6:5] */ in edid_timing_param()
536 temp |= (dtd->vs_offset_pulse_width & EDID_UPPER_NIBBLE_MASK) >> 4; /* 4'b, bit[4:1] */ in edid_timing_param()
537 pre_timing->vfb = temp; in edid_timing_param()
540 temp = dtd->v_active_blank & EDID_LOWER_NIBBLE_MASK; in edid_timing_param()
541 temp <<= 8; /* 8'b, bit[12:9] */ in edid_timing_param()
542 temp |= dtd->v_blank; in edid_timing_param()
543 pre_timing->vbb = temp - pre_timing->vfb; in edid_timing_param()
546 temp in edid_timing_param()
608 hi_u32 temp; edid_detail_timing() local
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/
H A Dext_sm4.c97 is4 temp; in mix_r() local
109 temp.c[WORD_IDX_3] = sbox_tmp[WORD_IDX_0]; in mix_r()
110 temp.c[WORD_IDX_2] = sbox_tmp[WORD_IDX_1]; in mix_r()
111 temp.c[WORD_IDX_1] = sbox_tmp[WORD_IDX_2]; in mix_r()
112 temp.c[WORD_IDX_0] = sbox_tmp[WORD_IDX_3]; in mix_r()
116 rep_rsl = temp.i ^ \ in mix_r()
117 linearity_replace(temp.i, 13, 19, 0x00001fff) ^ \ /* linearity replace: left shift 13, 19, 0x00001fff. */ in mix_r()
118 linearity_replace(temp.i, 23, 9, 0x007fffff); /* linearity replace: left shift 23, 9, 0x007fffff. */ in mix_r()
120 rep_rsl = temp.i ^ \ in mix_r()
121 linearity_replace(temp in mix_r()
136 hi_u32 temp; sm4_set_encrypt_key() local
169 hi_u32 temp; sm4_encrypt() local
195 hi_u32 temp; sm4_decrypt() local
[all...]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ipa/
H A Dmali_kbase_ipa_simple.c92 unsigned long temp; in model_static_coeff() local
94 int temp; in model_static_coeff()
104 ret = gpu_tz->ops->get_temp(gpu_tz, &temp); in model_static_coeff()
107 temp = FALLBACK_STATIC_TEMPERATURE; in model_static_coeff()
110 temp = FALLBACK_STATIC_TEMPERATURE; in model_static_coeff()
113 temp_scaling_factor = calculate_temp_scaling_factor(model_data->ts, temp); in model_static_coeff()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ipa/
H A Dmali_kbase_ipa_simple.c94 unsigned long temp; in model_static_coeff() local
96 int temp; in model_static_coeff()
107 ret = gpu_tz->ops->get_temp(gpu_tz, &temp); in model_static_coeff()
111 temp = FALLBACK_STATIC_TEMPERATURE; in model_static_coeff()
114 temp = FALLBACK_STATIC_TEMPERATURE; in model_static_coeff()
118 temp); in model_static_coeff()
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/drivers/uart/
H A Dhi_uart.c465 hi_u16 temp; in hi_uart_lp_restore() local
467 hi_reg_read16(W_CTL_UART_MAC80M_CLKEN_REG, temp); in hi_uart_lp_restore()
468 temp |= (1 << CLKEN_UART2) | (1 << CLKEN_UART2_BUS); in hi_uart_lp_restore()
469 hi_reg_write16(W_CTL_UART_MAC80M_CLKEN_REG, temp); /* enable uart2 clk */ in hi_uart_lp_restore()
488 temp = hi_reg_read_val16(phys_base + UART_CR); in hi_uart_lp_restore()
489 temp &= ~(0x3 << OFFSET_14_BITS); in hi_uart_lp_restore()
490 temp |= g_uart_regs_save[port_num].cr & (0x3 << OFFSET_14_BITS); in hi_uart_lp_restore()
491 hi_reg_write16(phys_base + UART_CR, temp); /* 14 15 bit */ in hi_uart_lp_restore()
494 temp = hi_reg_read_val16(phys_base + UART_CR); in hi_uart_lp_restore()
495 temp | in hi_uart_lp_restore()
[all...]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/common/
H A Dmali_executor.c279 struct mali_group *temp; in mali_executor_depopulate() local
297 MALI_OSK_LIST_FOREACHENTRY(group, temp, &group_list_idle, struct mali_group, executor_list) in mali_executor_depopulate()
302 MALI_OSK_LIST_FOREACHENTRY(group, temp, &group_list_inactive, struct mali_group, executor_list) in mali_executor_depopulate()
307 MALI_OSK_LIST_FOREACHENTRY(group, temp, &group_list_disabled, struct mali_group, executor_list) in mali_executor_depopulate()
353 struct mali_group *temp; in mali_executor_suspend() local
355 MALI_OSK_LIST_FOREACHENTRY(group, temp, &group_list_inactive, struct mali_group, executor_list) in mali_executor_suspend()
418 struct mali_group *temp; in mali_executor_zap_all_active() local
460 MALI_OSK_LIST_FOREACHENTRY(group, temp, &group_list_working, struct mali_group, executor_list) in mali_executor_zap_all_active()
1092 struct mali_group *temp; in mali_executor_dump_state() local
1116 MALI_OSK_LIST_FOREACHENTRY(group, temp, in mali_executor_dump_state()
1560 struct mali_group *temp; mali_executor_schedule() local
1627 struct mali_group *temp; mali_executor_schedule() local
1919 struct mali_group *temp; mali_executor_change_state_pp_physical() local
2002 struct mali_group *temp; mali_executor_group_is_in_state() local
2295 struct mali_group *temp; mali_executor_core_scale() local
2330 struct mali_group *temp; mali_executor_core_scale() local
2374 struct mali_group *temp; mali_executor_core_scale_in_group_complete() local
2407 struct mali_group *temp; mali_executor_core_scale_in_group_complete() local
2454 struct mali_group *temp; mali_executor_deactivate_list_idle() local
2464 struct mali_group *temp; mali_executor_deactivate_list_idle() local
2487 struct mali_group *temp = NULL; mali_executor_running_status_print() local
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/
H A Dmali_executor.c290 struct mali_group *temp; in mali_executor_depopulate() local
308 _MALI_OSK_LIST_FOREACHENTRY(group, temp, &group_list_idle, struct mali_group, executor_list) { in mali_executor_depopulate()
312 _MALI_OSK_LIST_FOREACHENTRY(group, temp, &group_list_inactive, struct mali_group, executor_list) { in mali_executor_depopulate()
316 _MALI_OSK_LIST_FOREACHENTRY(group, temp, &group_list_disabled, struct mali_group, executor_list) { in mali_executor_depopulate()
363 struct mali_group *temp; in mali_executor_suspend() local
365 _MALI_OSK_LIST_FOREACHENTRY(group, temp, in mali_executor_suspend()
430 struct mali_group *temp; in mali_executor_zap_all_active() local
474 _MALI_OSK_LIST_FOREACHENTRY(group, temp, &group_list_working, in mali_executor_zap_all_active()
1144 struct mali_group *temp; in mali_executor_dump_state() local
1174 _MALI_OSK_LIST_FOREACHENTRY(group, temp, in mali_executor_dump_state()
1647 struct mali_group *temp; mali_executor_schedule() local
1723 struct mali_group *temp; mali_executor_schedule() local
2043 struct mali_group *temp; mali_executor_change_state_pp_physical() local
2129 struct mali_group *temp; mali_executor_group_is_in_state() local
2427 struct mali_group *temp; mali_executor_core_scale() local
2462 struct mali_group *temp; mali_executor_core_scale() local
2505 struct mali_group *temp; mali_executor_core_scale_in_group_complete() local
2538 struct mali_group *temp; mali_executor_core_scale_in_group_complete() local
2591 struct mali_group *temp; mali_executor_deactivate_list_idle() local
2603 struct mali_group *temp; mali_executor_deactivate_list_idle() local
2630 struct mali_group *temp = NULL; mali_executor_running_status_print() local
[all...]
/test/xts/device_attest/services/core/utils/
H A Dattest_utils_list.c89 ListNode* temp = head; in ReleaseList() local
91 temp = head; in ReleaseList()
93 ATTEST_MEM_FREE(temp->data); in ReleaseList()
94 ATTEST_MEM_FREE(temp); in ReleaseList()
/test/xts/device_attest_lite/services/core/utils/
H A Dattest_utils_list.c89 ListNode* temp = head; in ReleaseList() local
91 temp = head; in ReleaseList()
93 ATTEST_MEM_FREE(temp->data); in ReleaseList()
94 ATTEST_MEM_FREE(temp); in ReleaseList()
/test/xts/acts/security/huks/huks_napi_BasicTest/src/
H A Dhuks_signverify_rsa_test_common.cpp99 uint8_t temp[] = "out"; in HksRsaSignVerifyTestNormalCase() local
100 struct OH_Huks_Blob verifyOut = {sizeof(temp), temp}; in HksRsaSignVerifyTestNormalCase()
162 uint8_t temp[] = "out"; in HksRSASignVerifyTestAbnormalCase() local
163 struct OH_Huks_Blob verifyOut = {sizeof(temp), temp}; in HksRSASignVerifyTestAbnormalCase()
/vendor/hisilicon/hispark_pegasus/demo/i2caht20_demo/test/
H A Daht20_test.c48 float temp = 0.0, humi = 0.0; in Aht20TestTask() local
53 retval = AHT20_GetMeasureResult(&temp, &humi); in Aht20TestTask()
54 printf("AHT20_GetMeasureResult: %u, temp = %.2f, humi = %.2f\r\n", retval, temp, humi); in Aht20TestTask()
/device/soc/rockchip/common/vendor/drivers/rockchip/
H A Drockchip_opp_select.c61 int temp; member
76 * temp = temp * 10
77 * conv = exp(-ln(1.2) / 5 * (temp - 23)) * 100
284 if (of_property_read_u32(np, "rockchip,pvtm-ref-temp", &pvtm->ref_temp)) { in rockchip_parse_pvtm_config()
287 if (of_property_read_u32_array(np, "rockchip,pvtm-temp-prop", pvtm->temp_prop, 0x02)) { in rockchip_parse_pvtm_config()
387 dev_info(dev, "temp=%d, pvtm=%d (%d + %d)\n", cur_temp, *target_value, avg_value, diff_value); in rockchip_get_pvtm_specific_value()
412 static int temp_to_conversion_rate(int temp) in temp_to_conversion_rate() argument
420 /* No temp available, return max conversion_rate */ in temp_to_conversion_rate()
421 if (temp < in temp_to_conversion_rate()
448 u32 temp; rockchip_adjust_leakage() local
[all...]
/device/board/hisilicon/hispark_aries/uboot/secureboot_release/ddr_init/boot/hi3518ev300/
H A Dlowlevel_init_v300.c145 unsigned int temp = 0; in get_hpm_value() local
156 temp = readl(HPM_CORE_REG0); in get_hpm_value()
157 core_value[1] += (temp >> 16) & 0x3ff; in get_hpm_value()
158 core_value[0] += temp & 0x3ff; in get_hpm_value()
159 temp = readl(HPM_CORE_REG1); in get_hpm_value()
160 core_value[3] += (temp >> 16) & 0x3ff; in get_hpm_value()
161 core_value[2] += temp & 0x3ff; in get_hpm_value()
/device/board/hisilicon/hispark_taurus/uboot/secureboot_release/ddr_init/boot/
H A Dlowlevel_init_v300.c254 unsigned int temp = 0; in get_hpm_value() local
266 temp = readl(HPM_CORE_REG0); in get_hpm_value()
267 core_value[1] += (temp >> 16) & 0x3ff; in get_hpm_value()
268 core_value[0] += temp & 0x3ff; in get_hpm_value()
269 temp = readl(HPM_CORE_REG1); in get_hpm_value()
270 core_value[3] += (temp >> 16) & 0x3ff; in get_hpm_value()
271 core_value[2] += temp & 0x3ff; in get_hpm_value()

Completed in 19 milliseconds

123456