Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 84) sorted by relevance

1234

/drivers/hdf_core/adapter/khdf/liteos_m/model/storage/src/mmc/
Dmmc_block_lite.c75 size_t max; in DisckMmcRead() local
82 max = (size_t)(-1); in DisckMmcRead()
83 if (startSector >= (DWORD)max || nSectors >= (UINT)max) { in DisckMmcRead()
102 size_t max; in DiskMmcWrite() local
109 max = (size_t)(-1); in DiskMmcWrite()
110 if (startSector >= (DWORD)max || nSectors >= (UINT)max) { in DiskMmcWrite()
/drivers/hdf_core/framework/support/platform/test/fuzztest/
Drandom.h15 int32_t randNum(int32_t min, int32_t max) in randNum() argument
19 std::uniform_int_distribution<int32_t> randomNum(min, max); in randNum()
/drivers/peripheral/audio/test/systemtest/hdi_service/common/capture/src/
Daudio_idl_hdicapture_volume_test.cpp327 float max = 0; variable
330 ret = capture->GetGainThreshold(capture, &min, &max);
334 EXPECT_LE(max, GAIN_MAX);
346 float max = 0; variable
350 ret = capture->GetGainThreshold(captureNull, &min, &max);
361 float max = 0; variable
365 ret = capture->GetGainThreshold(capture, minNull, &max);
392 float max = 0; variable
395 ret = capture->GetGainThreshold(capture, &min, &max);
397 float gain = max - 1;
[all …]
/drivers/hdf_core/framework/model/audio/core/include/
Daudio_control.h45 int32_t max; /* R: maximum value */ member
59 uint32_t max; member
69 uint32_t max; member
Daudio_parse.h82 uint32_t max; member
/drivers/peripheral/audio/test/systemtest/hdi_service/common/render/src/
Daudio_idl_hdirender_volume_test.cpp71 float max = 0; variable
74 ret = render->GetGainThreshold(render, &min, &max);
78 EXPECT_LE(max, GAIN_MAX);
90 float max = 0; variable
94 ret = render->GetGainThreshold(renderNull, &min, &max);
105 float max = 0; variable
109 ret = render->GetGainThreshold(render, minNull, &max);
145 float max = 0; variable
146 ret = render->GetGainThreshold(render, &min, &max);
148 float gainMax = max;
[all …]
/drivers/hdf_core/adapter/khdf/liteos/model/storage/src/mmc/
Dmmc_block_lite.c95 size_t max; in LiteosBlockRead() local
102 max = (size_t)(-1); in LiteosBlockRead()
105 if (secStart >= max || nSecs >= max) { in LiteosBlockRead()
120 size_t max; in LiteosBlockWrite() local
127 max = (size_t)(-1); in LiteosBlockWrite()
130 if (secStart >= max || nSecs >= max) { in LiteosBlockWrite()
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/
DXTools.js54 export function RandInt(min = 0, max = 100) { argument
55 return Math.floor(Math.random() * (max - min)) + min;
/drivers/hdf_core/framework/model/audio/core/src/
Daudio_core.c505 if (mixerValue < mixerCtrl->min || mixerValue > mixerCtrl->max) { in AudioCodecRegUpdate()
511 mixerValue = mixerCtrl->max - mixerCtrl->value; in AudioCodecRegUpdate()
547 if (val[0] > enumCtrl->max) { in AudioCodecMuxRegUpdate()
558 if (val[1] > enumCtrl->max) { in AudioCodecMuxRegUpdate()
581 if (value < mixerCtrl->min || value > mixerCtrl->max) { in AudioDaiRegUpdate()
587 value = mixerCtrl->max - mixerCtrl->value; in AudioDaiRegUpdate()
715 elemInfo->max = mixerCtrl->max; in AudioInfoCtrlOps()
738 elemInfo->max = enumCtrl->max; in AudioInfoEnumCtrlOps()
757 if (rcurValue > mixerCtrl->max || rcurValue < mixerCtrl->min) { in AudioGetCtrlOpsRReg()
762 rcurValue = mixerCtrl->max - rcurValue; in AudioGetCtrlOpsRReg()
[all …]
/drivers/peripheral/audio/hdi_service/primary_impl/vendor_include/include/
Di_audio_volume.h111 int32_t (*GetGainThreshold)(AudioHandle handle, float *min, float *max);
/drivers/peripheral/audio/interfaces/include/
Daudio_volume.h111 int32_t (*GetGainThreshold)(AudioHandle handle, float *min, float *max);
/drivers/peripheral/audio/interfaces/2.0/include/
Daudio_volume.h111 int32_t (*GetGainThreshold)(AudioHandle handle, float *min, float *max);
/drivers/peripheral/bluetooth/audio/interfaces/include/
Daudio_volume.h111 int32_t (*GetGainThreshold)(AudioHandle handle, float *min, float *max);
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/resources/templates/lite/input_template/
Dinput_driver_source.template94 device->driver->inputDev->attrSet.axisInfo[ABS_X].max = device->boardCfg->attr.resolutionX - 1;
97 device->driver->inputDev->attrSet.axisInfo[ABS_Y].max = device->boardCfg->attr.resolutionY - 1;
100 …device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_X].max = device->boardCfg->attr.resolut…
103 …device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_Y].max = device->boardCfg->attr.resolut…
105 device->driver->inputDev->attrSet.axisInfo[ABS_MT_TRACKING_ID].max = MAX_SUPPORT_POINT;
/drivers/peripheral/audio/supportlibs/adm_adapter/include/
Daudio_interface_lib_common.h50 int32_t max; /* Read: maximum value */ member
Daudio_interface_lib_mixer.h116 int32_t max; /* R: maximum value */ member
/drivers/peripheral/codec/interfaces/include/
Dcodec_common_type.h145 int32_t max; /** Maximum value */ member
/drivers/hdf_core/framework/model/input/driver/touchscreen/
Dtouch_ft5406.c179 device->driver->inputDev->attrSet.axisInfo[ABS_X].max = device->boardCfg->attr.resolutionX - 1; in SetAbility()
182 device->driver->inputDev->attrSet.axisInfo[ABS_Y].max = device->boardCfg->attr.resolutionY - 1; in SetAbility()
185 …device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_X].max = device->boardCfg->attr.resolut… in SetAbility()
188 …device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_Y].max = device->boardCfg->attr.resolut… in SetAbility()
190 device->driver->inputDev->attrSet.axisInfo[ABS_MT_TRACKING_ID].max = MAX_SUPPORT_POINT; in SetAbility()
Dtouch_ft5x06.c185 …device->driver->inputDev->attrSet.axisInfo[ABS_X].max = device->boardCfg->attr.resolutionX - NUM_1; in SetAbility()
188 …device->driver->inputDev->attrSet.axisInfo[ABS_Y].max = device->boardCfg->attr.resolutionY - NUM_1; in SetAbility()
191 …device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_X].max = device->boardCfg->attr.resolut… in SetAbility()
194 …device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_Y].max = device->boardCfg->attr.resolut… in SetAbility()
196 device->driver->inputDev->attrSet.axisInfo[ABS_MT_TRACKING_ID].max = MAX_POINT; in SetAbility()
Dtouch_gt911.c247 device->driver->inputDev->attrSet.axisInfo[ABS_X].max = device->boardCfg->attr.resolutionX - 1; in SetAbility()
250 device->driver->inputDev->attrSet.axisInfo[ABS_Y].max = device->boardCfg->attr.resolutionY - 1; in SetAbility()
253 …device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_X].max = device->boardCfg->attr.resolut… in SetAbility()
256 …device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_Y].max = device->boardCfg->attr.resolut… in SetAbility()
258 device->driver->inputDev->attrSet.axisInfo[ABS_MT_TRACKING_ID].max = MAX_POINT; in SetAbility()
/drivers/hdf_core/framework/model/audio/usb/src/
Daudio_usb_mixer.c137 int32_t min, max, res; /* min & max is volume range, res is volume reset state */ member
148 uint32_t max; member
465 if (value >= mixElemInfo->max) { in AudioUsbGetRelativeValue()
466 return (mixElemInfo->max - mixElemInfo->min + mixElemInfo->res - 1) / mixElemInfo->res; in AudioUsbGetRelativeValue()
482 if (value > mixElemInfo->max) { in AudioUsbGetAbsValue()
483 return mixElemInfo->max; in AudioUsbGetAbsValue()
1069 if (temp < mixElemInfo->max) { in AudioUsbCtlGetMaxVal()
1075 if (temp < mixElemInfo->min || temp > mixElemInfo->max) { in AudioUsbCtlGetMaxVal()
1105 if (AudioUsbGetCtlValue(mixElemInfo, UAC_GET_MAX, request, &mixElemInfo->max) < HDF_SUCCESS || in AudioUsbCtlGetMinMaxValSub()
1131 if (mixElemInfo->min + mixElemInfo->res < mixElemInfo->max) { in AudioUsbCtlGetMinMaxValSub()
[all …]
/drivers/peripheral/codec/hal/idl_service/src/
Dcodec_component_config.cpp262 …t32(&childNode, CODEC_CONFIG_KEY_MAX_BITRATE, reinterpret_cast<uint32_t *>(&cap.bitRate.max), 0) != in GetMiscOfCapability()
327 {CODEC_CONFIG_KEY_MAX_BLOCK_COUNT, cap.port.video.blockCount.max, 0}, in GetVideoPortCapability()
329 {CODEC_CONFIG_KEY_MAX_BLOCKS_PER_SECOND, cap.port.video.blocksPerSecond.max, 0}, in GetVideoPortCapability()
333 {CODEC_CONFIG_KEY_MAX_FRAME_RATE, cap.port.video.frameRate.max, 0}}; in GetVideoPortCapability()
/drivers/hdf_core/framework/model/input/driver/
Dhdf_hid_adapter.h53 int32_t max; member
/drivers/peripheral/codec/hal/src/
Dcodec_config_parser.c135 …{CODEC_CONFIG_KEY_MAX_BLOCK_COUNT, (uint32_t*)&cap->port.video.blockCount.max, … in GetVideoPortCapability()
137 …{CODEC_CONFIG_KEY_MAX_BLOCKS_PER_SECOND, (uint32_t*)&cap->port.video.blocksPerSecond.max, … in GetVideoPortCapability()
141 …{CODEC_CONFIG_KEY_MAX_FRAME_RATE, (uint32_t *)&cap->port.video.frameRate.max, … in GetVideoPortCapability()
222 …if (iface->GetUint32(childNode, CODEC_CONFIG_KEY_MAX_BITRATE, (uint32_t*)&(cap->bitRate.max), 0) !… in GetMiscOfCapability()
/drivers/peripheral/audio/supportlibs/adm_adapter/src/
Daudio_interface_lib_common.c104 if (!HdfSbufReadInt32(reply, &volThreshold->max)) { in AudioGetElemValue()
968 if (!HdfSbufReadInt32(reply, &eValue.max)) { in AudioParseIntegerFromBuf()
983 data->value.intVal.max = eValue.max; in AudioParseIntegerFromBuf()
1126 if (!HdfSbufReadInt32(reply, &eValue.max)) { in AudioParseInfoDataFromBuf()
1145 data->value.intVal.max = eValue.max; in AudioParseInfoDataFromBuf()
1151 data->value.intVal.max = eValue.max; in AudioParseInfoDataFromBuf()

1234