/hardware/qcom/sdm845/thermal/ |
D | thermal_common.c | 268 unsigned int idx = 0, cpu = 0; in thermal_zone_init() local 281 for (j = 0, idx = 0; j < cfg_cnt && in thermal_zone_init() 282 idx < (get_num_cpus() + cfg_cnt - 1); j++) { in thermal_zone_init() 286 idx < (get_num_cpus() + cfg_cnt - 1); cpu++, idx++) { in thermal_zone_init() 287 if (initialize_sensor(&v_sen_t[j], &sensors[idx], in thermal_zone_init() 295 if (initialize_sensor(&v_sen_t[j], &sensors[idx], in thermal_zone_init() 300 idx++; in thermal_zone_init() 303 sensor_cnt = idx; in thermal_zone_init() 366 size_t idx; in get_temperature_for_all() local 373 for (idx = 0; idx < sensor_cnt && idx < size; idx++) { in get_temperature_for_all() [all …]
|
D | thermal_target.c | 633 int idx; in therm_get_soc_id() local 640 for (idx = 0; idx < ARRAY_SIZE(msm_soc_table); idx++) { in therm_get_soc_id() 641 if (soc_id == msm_soc_table[idx].soc_id) { in therm_get_soc_id() 642 msm_id = msm_soc_table[idx].msm_id; in therm_get_soc_id()
|
/hardware/interfaces/audio/effect/all-versions/default/ |
D | AudioBufferManager.cpp | 30 ssize_t idx = mBuffers.indexOfKey(buffer.id); in wrap() local 31 if (idx >= 0) { in wrap() 32 *wrapper = mBuffers[idx].promote(); in wrap() 37 mBuffers.removeItemsAt(idx); in wrap() 49 ssize_t idx = mBuffers.indexOfKey(id); in removeEntry() local 50 if (idx >= 0) mBuffers.removeItemsAt(idx); in removeEntry()
|
/hardware/qcom/camera/msm8998/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 787 int32_t idx = -1; in registerBuffer() local 805 idx = getFreeIndexLocked(); in registerBuffer() 806 if (0 > idx) { in registerBuffer() 811 mBufferHandle[idx] = buffer; in registerBuffer() 812 mPrivateHandle[idx] = (struct private_handle_t *)(*mBufferHandle[idx]); in registerBuffer() 814 setMetaData(mPrivateHandle[idx], UPDATE_COLOR_SPACE, &colorSpace); in registerBuffer() 821 ion_info_fd.fd = mPrivateHandle[idx]->fd; in registerBuffer() 830 idx, mPrivateHandle[idx]->fd, in registerBuffer() 831 mPrivateHandle[idx]->size, in registerBuffer() 832 mPrivateHandle[idx]->offset); in registerBuffer() [all …]
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/ |
D | bcmcdc.h | 62 #define CDC_SET_IF_IDX(hdr, idx) \ argument 63 ((hdr)->flags = (((hdr)->flags & ~CDCF_IOC_IF_MASK) | ((idx) << CDCF_IOC_IF_SHIFT))) 108 #define BDC_SET_IF_IDX(hdr, idx) \ argument 109 ((hdr)->flags2 = (((hdr)->flags2 & ~BDC_FLAG2_IF_MASK) | ((idx) << BDC_FLAG2_IF_SHIFT))) 120 #define BDC_SET_PAD_LEN(hdr, idx) \ argument 122 (((idx) & BDC_FLAG2_PAD_IDX) << BDC_FLAG2_PAD_SHIFT))); \ 124 (((idx) & BDC_FLAG_PAD_IDX) << BDC_FLAG_PAD_SHIFT)))
|
/hardware/qcom/msm8998/json-c/ |
D | arraylist.c | 76 array_list_put_idx(struct array_list *arr, int idx, void *data) in array_list_put_idx() argument 78 if(array_list_expand_internal(arr, idx+1)) return -1; in array_list_put_idx() 79 if(arr->array[idx]) arr->free_fn(arr->array[idx]); in array_list_put_idx() 80 arr->array[idx] = data; in array_list_put_idx() 81 if(arr->length <= idx) arr->length = idx + 1; in array_list_put_idx()
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_thread.c | 411 uint8_t idx, uint32_t handler, int32_t fd, mm_camera_poll_notify_t notify_cb, in mm_camera_poll_thread_add_poll_fd() argument 416 if (MAX_STREAM_NUM_IN_BUNDLE > idx) { in mm_camera_poll_thread_add_poll_fd() 417 poll_cb->poll_entries[idx].fd = fd; in mm_camera_poll_thread_add_poll_fd() 418 poll_cb->poll_entries[idx].handler = handler; in mm_camera_poll_thread_add_poll_fd() 419 poll_cb->poll_entries[idx].notify_cb = notify_cb; in mm_camera_poll_thread_add_poll_fd() 420 poll_cb->poll_entries[idx].user_data = userdata; in mm_camera_poll_thread_add_poll_fd() 428 LOGE("invalid handler %d (%d)", handler, idx); in mm_camera_poll_thread_add_poll_fd() 449 uint8_t idx, uint32_t handler, mm_camera_call_type_t call_type) in mm_camera_poll_thread_del_poll_fd() argument 453 if ((MAX_STREAM_NUM_IN_BUNDLE > idx) && in mm_camera_poll_thread_del_poll_fd() 454 (handler == poll_cb->poll_entries[idx].handler)) { in mm_camera_poll_thread_del_poll_fd() [all …]
|
D | mm_camera_interface.c | 2491 int idx = 0, i; in sort_camera_info() local 2525 temp_info[idx] = g_cam_ctrl.info[i]; in sort_camera_info() 2526 temp_type[idx] = CAM_TYPE_MAIN; in sort_camera_info() 2527 temp_mode[idx] = g_cam_ctrl.cam_mode[i]; in sort_camera_info() 2528 temp_is_yuv[idx] = g_cam_ctrl.is_yuv[i]; in sort_camera_info() 2529 cam_idx[idx] = idx; in sort_camera_info() 2530 b_prime_idx = idx; in sort_camera_info() 2531 LOGH("Found Back Main Camera: i: %d idx: %d", i, idx); in sort_camera_info() 2532 memcpy(temp_dev_name[idx],g_cam_ctrl.video_dev_name[i], in sort_camera_info() 2534 idx++; in sort_camera_info() [all …]
|
/hardware/qcom/wlan/qcwcn/wcnss-service/ |
D | wcnss_service.c | 342 int idx = 0; in convert_string_to_hex() local 344 for(idx; string[idx] != '\0'; idx++){ in convert_string_to_hex() 345 if(isalpha(string[idx])) { in convert_string_to_hex() 346 if(string[idx] >='a' && string[idx] <='f') { in convert_string_to_hex() 347 hex_num = hex_num * HEX_BASE + ((int)string[idx] in convert_string_to_hex() 349 } else if ( string[idx] >='A' && string[idx] <='F') { in convert_string_to_hex() 350 hex_num = hex_num * HEX_BASE + ((int)string[idx] in convert_string_to_hex() 353 hex_num = hex_num * HEX_BASE + (int)string[idx]; in convert_string_to_hex() 355 hex_num = hex_num * HEX_BASE + (string[idx]- ASCII_0); in convert_string_to_hex()
|
/hardware/interfaces/automotive/evs/1.0/default/ |
D | EvsCamera.cpp | 380 unsigned idx; in generateFrames() local 401 for (idx = 0; idx < mBuffers.size(); idx++) { in generateFrames() 402 if (!mBuffers[idx].inUse) { in generateFrames() 403 if (mBuffers[idx].handle != nullptr) { in generateFrames() 409 if (idx >= mBuffers.size()) { in generateFrames() 414 mBuffers[idx].inUse = true; in generateFrames() 429 buff.bufferId = idx; in generateFrames() 430 buff.memHandle = mBuffers[idx].handle; in generateFrames() 448 mBuffers[idx].inUse = false; in generateFrames()
|
/hardware/broadcom/libbt/src/ |
D | bt_vendor_brcm.c | 182 int fd, idx; in op() local 186 for (idx=0; idx < CH_MAX; idx++) in op() 187 (*fd_array)[idx] = fd; in op()
|
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/src/ |
D | h264_utils.cpp | 742 int idx; in hrd_parameters() local 755 for (idx = 0; idx < hrd_param->cpb_cnt && more_bits(); idx++) in hrd_parameters() 757 hrd_param->bit_rate_value[idx] = uev() + 1; in hrd_parameters() 758 hrd_param->cpb_size_value[idx] = uev() + 1; in hrd_parameters() 759 hrd_param->cbr_flag[idx] = extract_bits(1); in hrd_parameters() 760 ALOGV("-->bit_rate_value [%d] : %u", idx, hrd_param->bit_rate_value[idx]); in hrd_parameters() 761 ALOGV("-->cpb_size_value [%d] : %u", idx, hrd_param->cpb_size_value[idx]); in hrd_parameters() 762 ALOGV("-->cbr_flag [%d] : %u", idx, hrd_param->cbr_flag[idx]); in hrd_parameters() 826 int idx; in sei_buffering_period() local 846 for (idx = 0; idx < hrd_param->cpb_cnt ; idx++) in sei_buffering_period() [all …]
|
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/ |
D | h264_utils.cpp | 691 OMX_U32 idx; in hrd_parameters() local 703 for (idx = 0; idx < hrd_param->cpb_cnt && more_bits(); idx++) { in hrd_parameters() 704 hrd_param->bit_rate_value[idx] = uev() + 1; in hrd_parameters() 705 hrd_param->cpb_size_value[idx] = uev() + 1; in hrd_parameters() 706 hrd_param->cbr_flag[idx] = extract_bits(1); in hrd_parameters() 707 ALOGV("-->bit_rate_value [%d] : %u", idx, hrd_param->bit_rate_value[idx]); in hrd_parameters() 708 ALOGV("-->cpb_size_value [%d] : %u", idx, hrd_param->cpb_size_value[idx]); in hrd_parameters() 709 ALOGV("-->cbr_flag [%d] : %u", idx, hrd_param->cbr_flag[idx]); in hrd_parameters() 770 OMX_U32 idx; in sei_buffering_period() local 787 for (idx = 0; idx < hrd_param->cpb_cnt ; idx++) { in sei_buffering_period() [all …]
|
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/ |
D | h264_utils.cpp | 691 OMX_U32 idx; in hrd_parameters() local 703 for (idx = 0; idx < hrd_param->cpb_cnt && more_bits(); idx++) { in hrd_parameters() 704 hrd_param->bit_rate_value[idx] = uev() + 1; in hrd_parameters() 705 hrd_param->cpb_size_value[idx] = uev() + 1; in hrd_parameters() 706 hrd_param->cbr_flag[idx] = extract_bits(1); in hrd_parameters() 707 ALOGV("-->bit_rate_value [%d] : %u", idx, hrd_param->bit_rate_value[idx]); in hrd_parameters() 708 ALOGV("-->cpb_size_value [%d] : %u", idx, hrd_param->cpb_size_value[idx]); in hrd_parameters() 709 ALOGV("-->cbr_flag [%d] : %u", idx, hrd_param->cbr_flag[idx]); in hrd_parameters() 770 OMX_U32 idx; in sei_buffering_period() local 787 for (idx = 0; idx < hrd_param->cpb_cnt ; idx++) { in sei_buffering_period() [all …]
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/ |
D | h264_utils.cpp | 691 OMX_U32 idx; in hrd_parameters() local 703 for (idx = 0; idx < hrd_param->cpb_cnt && more_bits(); idx++) { in hrd_parameters() 704 hrd_param->bit_rate_value[idx] = uev() + 1; in hrd_parameters() 705 hrd_param->cpb_size_value[idx] = uev() + 1; in hrd_parameters() 706 hrd_param->cbr_flag[idx] = extract_bits(1); in hrd_parameters() 707 ALOGV("-->bit_rate_value [%d] : %u", idx, hrd_param->bit_rate_value[idx]); in hrd_parameters() 708 ALOGV("-->cpb_size_value [%d] : %u", idx, hrd_param->cpb_size_value[idx]); in hrd_parameters() 709 ALOGV("-->cbr_flag [%d] : %u", idx, hrd_param->cbr_flag[idx]); in hrd_parameters() 770 OMX_U32 idx; in sei_buffering_period() local 787 for (idx = 0; idx < hrd_param->cpb_cnt ; idx++) { in sei_buffering_period() [all …]
|
/hardware/interfaces/audio/common/all-versions/default/ |
D | EffectMap.cpp | 43 ssize_t idx = mEffects.indexOfKey(id); in get() local 44 return idx >= 0 ? mEffects[idx] : NULL; in get()
|
/hardware/qcom/audio/legacy/libalsa-intf/ |
D | amix.c | 37 unsigned idx = 0; in get_ctl() local 45 idx = atoi(p); in get_ctl() 48 return mixer_get_control(mixer, name, idx); in get_ctl()
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpeg_test.c | 236 int mm_jpeg_test_read(mm_jpeg_intf_test_t *p_obj, uint32_t idx) in mm_jpeg_test_read() argument 240 fp = fopen(p_obj->filename[idx], "rb"); in mm_jpeg_test_read() 249 file_size, p_obj->input[idx].size); in mm_jpeg_test_read() 251 if (p_obj->input[idx].size > file_size) { in mm_jpeg_test_read() 256 fread(p_obj->input[idx].addr, 1, p_obj->input[idx].size, fp); in mm_jpeg_test_read() 555 int idx = 0; in mm_jpeg_test_get_input() local 568 for (idx = optind - 1; idx < argc; idx++) { in mm_jpeg_test_get_input() 569 if (argv[idx][0] == '-') { in mm_jpeg_test_get_input() 572 in_files[in_file_cnt++] = argv[idx]; in mm_jpeg_test_get_input() 574 optind = idx -1; in mm_jpeg_test_get_input() [all …]
|
/hardware/libhardware/modules/thermal/ |
D | thermal.c | 43 size_t idx = 0; in get_temperatures() local 68 if (list != NULL && idx < size) { in get_temperatures() 69 list[idx] = (temperature_t) { in get_temperatures() 79 idx++; in get_temperatures() 83 return idx; in get_temperatures()
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
D | data_builder.c | 377 int idx,idx2; in inv_get_9_axis_timestamp() local 397 idx = inv_pick_best_time_difference(td[0], td[1]); in inv_get_9_axis_timestamp() 398 idx *= 3; // Sensor number is 0 (Quat) or 3 (Compass) in inv_get_9_axis_timestamp() 399 return inv_raw_sensor_timestamp(idx, ts); in inv_get_9_axis_timestamp() 407 idx = inv_pick_best_time_difference(td[0], td[1]); in inv_get_9_axis_timestamp() 408 idx2 = inv_pick_best_time_difference(td[idx], td[2]); in inv_get_9_axis_timestamp() 410 idx = 2; in inv_get_9_axis_timestamp() 411 if (idx > 0) in inv_get_9_axis_timestamp() 412 idx++; // Skip gyro sensor in next function call in inv_get_9_axis_timestamp() 414 return inv_raw_sensor_timestamp(idx, ts); in inv_get_9_axis_timestamp() [all …]
|
/hardware/qcom/bt/msm8992/libbt-vendor/src/ |
D | bt_vendor_qcom.c | 734 int idx; in op() local 737 for (idx=0; idx < CH_MAX; idx++) in op() 738 (*fd_array)[idx] = fd; in op() 756 int idx; in op() local 862 for (idx=0; idx < CH_MAX; idx++) in op() 863 (*fd_array)[idx] = fd_filter; in op()
|
/hardware/qcom/bt/msm8996/libbt-vendor/src/ |
D | bt_vendor_qcom.c | 758 int idx, fd = -1, fd_filter = -1; in op() local 781 int idx; in op() local 784 for (idx=0; idx < CH_MAX; idx++) in op() 785 (*fd_array)[idx] = fd; in op() 916 for (idx=0; idx < CH_MAX; idx++) { in op() 917 (*fd_array)[idx] = fd_filter; in op()
|
/hardware/qcom/bt/msm8909w_3100/libbt-vendor/src/ |
D | bt_vendor_qcom.c | 864 int idx, fd = -1, fd_filter = -1; in __op() local 889 for (idx=0; idx < CH_MAX; idx++) in __op() 890 (*fd_array)[idx] = fd; in __op() 1028 for (idx=0; idx < CH_MAX; idx++) in __op() 1029 (*fd_array)[idx] = fd_filter; in __op() 1083 for (idx=0; idx < CH_MAX; idx++) { in __op() 1084 (*fd_array)[idx] = fd_filter; in __op()
|
/hardware/qcom/sdm845/bt/libbt-vendor/src/ |
D | bt_vendor_qcom.c | 868 int idx, fd = -1, fd_filter = -1; in __op() local 893 for (idx=0; idx < CH_MAX; idx++) in __op() 894 (*fd_array)[idx] = fd; in __op() 1034 for (idx=0; idx < CH_MAX; idx++) in __op() 1035 (*fd_array)[idx] = fd_filter; in __op() 1096 for (idx=0; idx < CH_MAX; idx++) { in __op() 1097 (*fd_array)[idx] = fd_filter; in __op()
|
/hardware/qcom/bt/msm8998/libbt-vendor/src/ |
D | bt_vendor_qcom.c | 828 int idx, fd = -1, fd_filter = -1; in op() local 853 for (idx=0; idx < CH_MAX; idx++) in op() 854 (*fd_array)[idx] = fd; in op() 994 for (idx=0; idx < CH_MAX; idx++) in op() 995 (*fd_array)[idx] = fd_filter; in op() 1055 for (idx=0; idx < CH_MAX; idx++) { in op() 1056 (*fd_array)[idx] = fd_filter; in op()
|