Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 62) sorted by relevance

123

/hardware/qcom/msm8998/json-c/
Dlinkhash.c36 unsigned long lh_ptr_hash(const void *k) in lh_ptr_hash() argument
39 return (unsigned long)((((ptrdiff_t)k * LH_PRIME) >> 4) & ULONG_MAX); in lh_ptr_hash()
112 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) argument
242 const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */ in hashlittle() local
247 a += k[0]; in hashlittle()
248 b += k[1]; in hashlittle()
249 c += k[2]; in hashlittle()
252 k += 3; in hashlittle()
269 case 12: c+=k[2]; b+=k[1]; a+=k[0]; break; in hashlittle()
270 case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break; in hashlittle()
[all …]
Dlinkhash.h53 typedef unsigned long (lh_hash_fn) (const void *k);
66 void *k; member
149 extern unsigned long lh_ptr_hash(const void *k);
152 extern unsigned long lh_char_hash(const void *k);
231 extern int lh_table_insert(struct lh_table *t, void *k, const void *v);
240 extern struct lh_entry* lh_table_lookup_entry(struct lh_table *t, const void *k);
249 THIS_FUNCTION_IS_DEPRECATED(extern const void* lh_table_lookup(struct lh_table *t, const void *k));
258 extern json_bool lh_table_lookup_ex(struct lh_table *t, const void *k, void **v);
281 extern int lh_table_delete(struct lh_table *t, const void *k);
/hardware/st/secure_element2/secure_element/1.0/esehal/src/
Dlog.c42 static int k = 0; in vsay() local
58 if (k == 0) in vsay()
60 k += strlen(ctx->log_buf + k); in vsay()
61 k += vsnprintf(ctx->log_buf + k, BUFSIZE - k, fmt + 2, args); in vsay()
64 k += vsnprintf(ctx->log_buf + k, 1024 - k, fmt, args); in vsay()
66 if (k >= BUFSIZE) in vsay()
67 k = BUFSIZE - 1; in vsay()
69 buf[k] = '\000'; in vsay()
70 if ((buf[k - 1] == '\n') || (k == (BUFSIZE - 1))) { in vsay()
71 k = 0; in vsay()
/hardware/st/nfc/st21nfc/adaptation/
Dandroid_logmsg.cpp58 size_t i, k; in DispHal() local
80 for (i = 0, k = 0; i < (privacy ? 3 : length); i++, k++) { in DispHal()
81 if (k > 31) { in DispHal()
82 k = 0; in DispHal()
95 line[k] = 0; in DispHal()
97 sprintf(&line[k * 3], "%02x ", d[i]); in DispHal()
101 sprintf(&line[k * 3], "(hidden)"); in DispHal()
/hardware/st/secure_element/ese-spi-driver/utils-lib/
Dandroid_logmsg.cc60 size_t i, k; in DispHal() local
68 for (i = 0, k = 0; i < length; i++, k++) { in DispHal()
69 if (k > 31) { in DispHal()
70 k = 0; in DispHal()
83 line[k] = 0; in DispHal()
85 sprintf(&line[k * 3], "%02x ", d[i]); in DispHal()
DIso13239CRC.cc40 int i, k; in computeCrc() local
43 for (k = 0; k < 8; k++) { in computeCrc()
/hardware/st/nfc/1.0/adaptation/
Dandroid_logmsg.cpp65 size_t i, k; in DispHal() local
75 for (i = 0, k = 0; i < length; i++, k++) { in DispHal()
76 if (k > 31) { in DispHal()
77 k = 0; in DispHal()
90 line[k] = 0; in DispHal()
92 sprintf(&line[k * 3], "%02x ", d[i]); in DispHal()
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
Dmpu_iio.c144 int k; in process_scan() local
146 for (k = 0; k < num_channels; k++) { in process_scan()
147 switch (infoarray[k].bytes) { in process_scan()
150 print2byte(*(uint16_t *)(data + infoarray[k].location), in process_scan()
151 &infoarray[k]); in process_scan()
155 if (infoarray[k].is_signed) { in process_scan()
156 int32_t val = *(int32_t *)(data + infoarray[k].location); in process_scan()
157 if ((val >> infoarray[k].bits_used) & 1) in process_scan()
158 val = (val & infoarray[k].mask) | ~infoarray[k].mask; in process_scan()
164 if (infoarray[k].is_signed) { in process_scan()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_dual_test.c349 int i,j,k; in mm_app_dtc_3() local
376 for (k = 0; k < MM_QCAMERA_APP_INTERATION ; k++) { in mm_app_dtc_3()
377 LOGE("DUAL open back camera %d \n",k); in mm_app_dtc_3()
451 int i,j,k; in mm_app_dtc_4() local
478 for (k = 0; k < MM_QCAMERA_APP_INTERATION ; k++){ in mm_app_dtc_4()
479 LOGE("DUAL open back camera %d \n",k); in mm_app_dtc_4()
560 int i,j,k; in mm_app_dtc_5() local
587 for (k = 0; k < 4 ; k++) { in mm_app_dtc_5()
588 LOGE("DUAL open back camera %d \n",k); in mm_app_dtc_5()
653 int i,j,k; in mm_app_dtc_6() local
[all …]
/hardware/interfaces/audio/core/all-versions/default/
DConversions.cpp163 for (size_t k = 0; k < src.num_frequency_responses; k++) { in halToMicrophoneCharacteristics() local
164 pDst->frequencyResponse[k].frequency = src.frequency_responses[0][k]; in halToMicrophoneCharacteristics()
165 pDst->frequencyResponse[k].level = src.frequency_responses[1][k]; in halToMicrophoneCharacteristics()
/hardware/interfaces/camera/common/1.0/default/
DCameraParameters.cpp198 String8 k, v; in flatten() local
199 k = mMap.keyAt(i); in flatten()
202 flattened += k; in flatten()
226 String8 k(a, (size_t)(b-a)); in unflatten() local
234 mMap.add(k, v); in unflatten()
239 mMap.add(k, v); in unflatten()
469 String8 k, v; in dump() local
470 k = mMap.keyAt(i); in dump()
472 ALOGD("%s: %s\n", k.string(), v.string()); in dump()
484 String8 k, v; in dump() local
[all …]
/hardware/interfaces/automotive/vehicle/2.0/default/tests/
DVehicleObjectPool_test.cpp100 for (int k = 0; k < O; k++) { in TEST_F() local
102 poolPtr->obtain(k % 2 == 0 in TEST_F()
/hardware/knowles/athletico/sound_trigger_hal/tests/
Ddump_debug_info.c310 uint32_t k; in dump_all_regs() local
332 for (k = 0; k < block->reg_num; k++) { in dump_all_regs()
333 uint32_t temp_val = block->reg_vals[k]; in dump_all_regs()
370 uint32_t k = 0; in dump_circ_buf() local
385 for (k = 0; k < buf->reg_num; k++) in dump_circ_buf()
386 fwrite(buf->reg_vals + k, sizeof(uint32_t), 1, fp); in dump_circ_buf()
/hardware/qcom/display/msm8909/sdm/libs/hwc/
Dblit_engine_c2d.cpp292 int k = blit_target_start_index_; in Prepare() local
294 for (uint32_t j = 0; j < num_blit_target_; j++, k++) { in Prepare()
295 Layer *layer = layer_stack->layers.at(k); in Prepare()
440 for (uint32_t k = 0; k <= i; k++) { in Commit() local
441 Layer *bottom_layer = layer_stack->layers.at(k); in Commit()
462 hwc_layer_1_t *hwc_layer = &content_list->hwLayers[k]; in Commit()
489 for (uint32_t k = blit_target_start_index_; k < layer_count; k++) { in Commit() local
490 Layer *layer = layer_stack->layers.at(k); in Commit()
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/
Dblit_engine_c2d.cpp292 int k = blit_target_start_index_; in Prepare() local
294 for (uint32_t j = 0; j < num_blit_target_; j++, k++) { in Prepare()
295 Layer *layer = layer_stack->layers.at(k); in Prepare()
440 for (uint32_t k = 0; k <= i; k++) { in Commit() local
441 Layer *bottom_layer = layer_stack->layers.at(k); in Commit()
462 hwc_layer_1_t *hwc_layer = &content_list->hwLayers[k]; in Commit()
489 for (uint32_t k = blit_target_start_index_; k < layer_count; k++) { in Commit() local
490 Layer *layer = layer_stack->layers.at(k); in Commit()
/hardware/qcom/display/msm8996/sdm/libs/hwc/
Dblit_engine_c2d.cpp292 int k = blit_target_start_index_; in Prepare() local
294 for (uint32_t j = 0; j < num_blit_target_; j++, k++) { in Prepare()
295 Layer *layer = layer_stack->layers.at(k); in Prepare()
425 for (uint32_t k = 0; k <= i; k++) { in Commit() local
426 Layer *bottom_layer = layer_stack->layers.at(k); in Commit()
447 hwc_layer_1_t *hwc_layer = &content_list->hwLayers[k]; in Commit()
474 for (uint32_t k = blit_target_start_index_; k < layer_count; k++) { in Commit() local
475 Layer *layer = layer_stack->layers.at(k); in Commit()
/hardware/interfaces/wifi/1.3/default/tests/
Dhidl_struct_util_unit_tests.cpp255 for (size_t k = 0; k < legacy_stats.radios[i].channel_stats.size(); in TEST_F() local
256 k++) { in TEST_F()
257 auto& legacy_channel_st = legacy_stats.radios[i].channel_stats[k]; in TEST_F()
259 converted.radios[i].channelStats[k].channel.width); in TEST_F()
261 converted.radios[i].channelStats[k].channel.centerFreq); in TEST_F()
263 converted.radios[i].channelStats[k].channel.centerFreq0); in TEST_F()
265 converted.radios[i].channelStats[k].channel.centerFreq1); in TEST_F()
267 converted.radios[i].channelStats[k].ccaBusyTimeInMs); in TEST_F()
269 converted.radios[i].channelStats[k].onTimeInMs); in TEST_F()
/hardware/interfaces/camera/device/1.0/default/
DCameraDevice.cpp443 for (int k = 0; k < 4; k++) { in sDataCb() local
444 hidlMetadata.faces[i].rect[k] = metadata->faces[i].rect[k]; in sDataCb()
446 for (int k = 0; k < 2; k++) { in sDataCb() local
447 hidlMetadata.faces[i].leftEye[k] = metadata->faces[i].left_eye[k]; in sDataCb()
449 for (int k = 0; k < 2; k++) { in sDataCb() local
450 hidlMetadata.faces[i].rightEye[k] = metadata->faces[i].right_eye[k]; in sDataCb()
452 for (int k = 0; k < 2; k++) { in sDataCb() local
453 hidlMetadata.faces[i].mouth[k] = metadata->faces[i].mouth[k]; in sDataCb()
/hardware/interfaces/tests/foo/1.0/default/lib/
DFooHelper.cpp36 size_t k = 0; in MultiDimensionalToString() local
43 for (size_t j = 0; j < 3; ++j, ++k) { in MultiDimensionalToString()
/hardware/qcom/sdm845/data/ipacfg-mgr/ipacm/src/
DIPACM_LanToLan.cpp1744 int i, j, k; in print_data_structure_info() local
1794 for(k = 0; k < it_client->inter_iface_rt_rule_hdl[j].num_hdl[IPA_IP_v4]; k++) in print_data_structure_info()
1796 IPACMDBG_H("%d\n", it_client->inter_iface_rt_rule_hdl[j].rule_hdl[IPA_IP_v4][k]); in print_data_structure_info()
1800 for(k = 0; k < it_client->inter_iface_rt_rule_hdl[j].num_hdl[IPA_IP_v6]; k++) in print_data_structure_info()
1802 IPACMDBG_H("%d\n", it_client->inter_iface_rt_rule_hdl[j].rule_hdl[IPA_IP_v6][k]); in print_data_structure_info()
1816 for(k = 0; k < it_client->l2tp_rt_rule_hdl[j].num_rt_hdl[IPA_IP_v4]; k++) in print_data_structure_info()
1818 IPACMDBG_H("%d\n", it_client->l2tp_rt_rule_hdl[j].first_pass_rt_rule_hdl[IPA_IP_v4][k]); in print_data_structure_info()
1821 for(k = 0; k < it_client->l2tp_rt_rule_hdl[j].num_rt_hdl[IPA_IP_v6]; k++) in print_data_structure_info()
1823 IPACMDBG_H("%d\n", it_client->l2tp_rt_rule_hdl[j].first_pass_rt_rule_hdl[IPA_IP_v6][k]); in print_data_structure_info()
1826 for(k = 0; k < it_client->l2tp_rt_rule_hdl[j].num_rt_hdl[IPA_IP_v6]; k++) in print_data_structure_info()
[all …]
/hardware/qcom/sm8150/data/ipacfg-mgr/ipacm/src/
DIPACM_LanToLan.cpp1753 int i, j, k; in print_data_structure_info() local
1803 for(k = 0; k < it_client->inter_iface_rt_rule_hdl[j].num_hdl[IPA_IP_v4]; k++) in print_data_structure_info()
1805 IPACMDBG_H("%d\n", it_client->inter_iface_rt_rule_hdl[j].rule_hdl[IPA_IP_v4][k]); in print_data_structure_info()
1809 for(k = 0; k < it_client->inter_iface_rt_rule_hdl[j].num_hdl[IPA_IP_v6]; k++) in print_data_structure_info()
1811 IPACMDBG_H("%d\n", it_client->inter_iface_rt_rule_hdl[j].rule_hdl[IPA_IP_v6][k]); in print_data_structure_info()
1825 for(k = 0; k < it_client->l2tp_rt_rule_hdl[j].num_rt_hdl[IPA_IP_v4]; k++) in print_data_structure_info()
1827 IPACMDBG_H("%d\n", it_client->l2tp_rt_rule_hdl[j].first_pass_rt_rule_hdl[IPA_IP_v4][k]); in print_data_structure_info()
1830 for(k = 0; k < it_client->l2tp_rt_rule_hdl[j].num_rt_hdl[IPA_IP_v6]; k++) in print_data_structure_info()
1832 IPACMDBG_H("%d\n", it_client->l2tp_rt_rule_hdl[j].first_pass_rt_rule_hdl[IPA_IP_v6][k]); in print_data_structure_info()
1835 for(k = 0; k < it_client->l2tp_rt_rule_hdl[j].num_rt_hdl[IPA_IP_v6]; k++) in print_data_structure_info()
[all …]
/hardware/qcom/sdm845/display/gpu_tonemapper/
DEGLImageWrapper.cpp64 void EGLImageWrapper::DeleteEGLImageCallback::operator()(int& k, EGLImageBuffer*& eglImage) in operator ()() argument
67 free_ion_cookie(ion_fd, k); in operator ()()
/hardware/qcom/display/msm8998/gpu_tonemapper/
DEGLImageWrapper.cpp64 void EGLImageWrapper::DeleteEGLImageCallback::operator()(int& k, EGLImageBuffer*& eglImage) in operator ()() argument
67 free_ion_cookie(ion_fd, k); in operator ()()
/hardware/qcom/display/msm8909w_3100/gpu_tonemapper/
DEGLImageWrapper.cpp64 void EGLImageWrapper::DeleteEGLImageCallback::operator()(int& k, EGLImageBuffer*& eglImage) in operator ()() argument
67 free_ion_cookie(ion_fd, k); in operator ()()
/hardware/qcom/display/msm8909/gpu_tonemapper/
DEGLImageWrapper.cpp64 void EGLImageWrapper::DeleteEGLImageCallback::operator()(int& k, EGLImageBuffer*& eglImage) in operator ()() argument
67 free_ion_cookie(ion_fd, k); in operator ()()

123