/drivers/hdf_core/adapter/khdf/linux/osal/src/ |
H A D | osal_mem.c | 48 char *base = NULL; in osal_mem_alloc() local 56 base = (char *)vmalloc(size + mng_size); in osal_mem_alloc() 59 base = (char *)kmalloc(size + mng_size, GFP_KERNEL); in osal_mem_alloc() 63 return base; in osal_mem_alloc() 69 char *base = NULL; in OsalMemAlloc() local 79 base = osal_mem_alloc(size, &type); in OsalMemAlloc() 80 if (base == NULL) { in OsalMemAlloc() 85 block = (struct mem_block *)base; in OsalMemAlloc() 89 buf = (void *)(base + mng_size); in OsalMemAlloc() 114 char *base in OsalMemAllocAlign() local 148 char *base = NULL; OsalMemFree() local [all...] |
/drivers/hdf_core/adapter/khdf/linux/platform/gpio/ |
H A D | gpio_adapter.c | 250 HDF_LOGI("LinuxGpioMatchProbe: find gpio chip(start:%d, count:%u)", chip->base, chip->ngpio); in LinuxGpioMatchProbe() 251 if (chip->base >= LINUX_GPIO_NUM_MAX || (chip->base + chip->ngpio) > LINUX_GPIO_NUM_MAX) { in LinuxGpioMatchProbe() 252 HDF_LOGW("LinuxGpioMatchProbe: chip(base:%d-num:%u) exceed range!", chip->base, chip->ngpio); in LinuxGpioMatchProbe() 263 cntlr->start = (uint16_t)chip->base; in LinuxGpioMatchProbe() 299 HDF_LOGI("LinuxGpioMatchRelease: find gpio chip(start:%d, count:%u)", chip->base, chip->ngpio); in LinuxGpioMatchRelease() 300 if (chip->base >= LINUX_GPIO_NUM_MAX || (chip->base + chip->ngpio) > LINUX_GPIO_NUM_MAX) { in LinuxGpioMatchRelease() 301 HDF_LOGW("LinuxGpioMatchRelease: chip(base in LinuxGpioMatchRelease() [all...] |
/drivers/hdf_core/adapter/khdf/linux/platform/pwm/ |
H A D | pwm_hi35xx_linux.c | 34 void __iomem *base; member 51 reg = (struct HiPwmRegs *)hi35xxChip->base; in Hi35xxPwmApply() 102 reg = (struct HiPwmRegs *)hi35xxChip->base; in Hi35xxGetState() 138 chip->chip.base = -1; in PwmProbe() 141 chip->base = devm_ioremap_resource(&pdev->dev, r); in PwmProbe() 142 if (IS_ERR(chip->base)) { in PwmProbe() 144 return PTR_ERR(chip->base); in PwmProbe() 146 chip->reg = (struct HiPwmRegs *)chip->base; in PwmProbe()
|
/test/xts/tools/lite/checksum/src/ |
H A D | checksum_file.c | 161 char* CreatePathName(char *base, int len, char *name0, char *name1, char *name2) in CreatePathName() argument 165 err = memset_s(base, len, '\0', len); in CreatePathName() 170 err = strcpy_s(base, len, name0); in CreatePathName() 175 err = strcat_s(base, len, name1); in CreatePathName() 180 err = strcat_s(base, len, name2); in CreatePathName() 185 return base; in CreatePathName()
|
/drivers/hdf_core/adapter/uhdf2/hdi/src/ |
H A D | devmgr_client.c | 48 char *base = NULL; in HdfObtainDeviceInfo() local 53 base = (char *)OsalMemCalloc(sizeof(*node) + svrNameLen); in HdfObtainDeviceInfo() 54 if (base == NULL) { in HdfObtainDeviceInfo() 58 node = (struct DeviceInfoNode *)base; in HdfObtainDeviceInfo() 59 node->svcName = base + sizeof(*node); in HdfObtainDeviceInfo() 62 OsalMemFree(base); in HdfObtainDeviceInfo() 69 OsalMemFree(base); in HdfObtainDeviceInfo()
|
/drivers/hdf_core/framework/model/sensor/driver/common/src/ |
H A D | sensor_platform_if.c | 110 uint8_t *base = NULL; in SetSensorPinMux() local 118 base = OsalIoRemap(regAddr, regSize); in SetSensorPinMux() 119 if (base == NULL) { in SetSensorPinMux() 124 OSAL_WRITEL(regValue, base); in SetSensorPinMux() 125 OsalIoUnmap((void *)base); in SetSensorPinMux()
|
/test/xts/hats/kernel/prctl/ |
H A D | PrctlApiTest.cpp | 78 size_t base = 0; in str_split() local 82 found = s.find_first_of(delimiters, base); in str_split() 83 result.push_back(s.substr(base, found - base)); in str_split() 86 base = found + 1; in str_split()
|
/drivers/hdf_core/adapter/khdf/liteos/osal/src/ |
H A D | osal_firmware.c | 52 uint8_t *base = NULL; in OsalRequestFirmware() local 83 base = (uint8_t *)OsalMemCalloc(sizeof(*fw) + HDF_FW_BLOCK_SIZE); in OsalRequestFirmware() 84 if (base == NULL) { in OsalRequestFirmware() 90 fw = (struct OsalFwDesc *)base; in OsalRequestFirmware() 95 fw->buff = base + sizeof(*fw); in OsalRequestFirmware()
|
/drivers/hdf_core/framework/model/network/wifi/platform/src/ |
H A D | hdf_wlan_power_manager.c | 35 struct PowerManager base; member 160 powerMgrimpl->base.On = HdfWlanChipPowerOn; in HdfWlanCreatePowerManager() 161 powerMgrimpl->base.Off = HdfWlanChipPowerOff; in HdfWlanCreatePowerManager() 162 powerMgrimpl->base.Release = HdfWlanPowerMgrRelease; in HdfWlanCreatePowerManager()
|
H A D | hdf_wlan_reset_manager.c | 31 struct ResetManager base; member 102 resetMgrImpl->base.Reset = HdfChipReset; in HdfWlanCreateResetManager() 103 resetMgrImpl->base.Release = HdfWlanResetMgrRelease; in HdfWlanCreateResetManager()
|
/drivers/hdf_core/framework/utils/src/ |
H A D | hdf_sbuf.c | 43 struct HdfSBufImpl *SbufBindRaw(uintptr_t base, size_t size); 45 struct HdfSBufImpl *SbufBindIpc(uintptr_t base, size_t size) __attribute__((weak)); 47 struct HdfSBufImpl *SbufBindRawIpcHw(uintptr_t base, size_t size) __attribute__((weak)); 366 struct HdfSBuf *HdfSbufTypedBind(uint32_t type, uintptr_t base, size_t size) in HdfSbufTypedBind() argument 392 sbuf->impl = SbufBindRaw(base, size); in HdfSbufTypedBind() 394 sbuf->impl = constructor->bind(base, size); in HdfSbufTypedBind() 420 struct HdfSBuf *HdfSbufBind(uintptr_t base, size_t size) in HdfSbufBind() argument 422 return HdfSbufTypedBind(SBUF_RAW, base, size); in HdfSbufBind()
|
H A D | hdf_sbuf_impl_raw.c | 554 struct HdfSBufImpl *SbufBindRaw(uintptr_t base, size_t size) in SbufBindRaw() argument 557 if (base == 0 || size == 0) { in SbufBindRaw() 560 /* 4-byte alignment is required for base. */ in SbufBindRaw() 561 if ((base & 0x3) != 0) { in SbufBindRaw() 571 sbuf->data = (uint8_t *)base; in SbufBindRaw()
|
/test/xts/acts/ai/nncore/opstest/src/ |
H A D | exp_test.cpp | 35 OHNNOperandTest base = {OH_NN_FLOAT32, OH_NN_EXP_BASE, {1}, &baseValue, sizeof(float)};
member 39 .operands = {input, output, base, scale, shift},
69 OHNNOperandTest base = {OH_NN_FLOAT32, OH_NN_EXP_BASE, {1}, &baseValue, sizeof(float)};
member 73 .operands = {input, output, base, scale, shift},
89 OHNNOperandTest base = {OH_NN_FLOAT32, OH_NN_EXP_BASE, {1}, &baseValue, sizeof(float)};
member 93 .operands = {input, output, base, scale, shift},
228 expModel.base, expModel.scale, expModel.shift};
in HWTEST_F() 250 expModel.base, expModel.scale, expModel.shift};
in HWTEST_F() 274 graphArgs.operands = {expModel.input, expModel.output, expModel.base,
in HWTEST_F()
|
/drivers/hdf_core/interfaces/inner_api/utils/ |
H A D | hdf_sbuf.h | 498 * @param base Indicates the base of the data to use. 504 struct HdfSBuf *HdfSbufBind(uintptr_t base, size_t size); 585 * @param base Indicates the base of the data to use. 591 struct HdfSBuf *HdfSbufTypedBind(uint32_t type, uintptr_t base, size_t size);
|
/test/xts/device_attest/test/fuzztest/devattestcorenetwork_fuzzer/ |
H A D | devattest_core_network_fuzz.c | 48 int base = 10;
in StringToInt32() local 50 sum = (sum * base) + (value[i] - '0');
in StringToInt32()
|
/test/xts/hats/kernel/freelist/safe_unlink/ |
H A D | Malloc_safe_unlink.cpp | 74 struct group_in *base = (struct group_in *)((uintptr_t)p - UNIT*offset - UNIT); in get_group() local 75 return base; in get_group()
|
/test/xts/hats/kernel/freelist/modify_pointer/ |
H A D | Malloc_modify_pointer.cpp | 79 struct group_in *base = (struct group_in *)((uintptr_t)p - UNIT*offset - UNIT); in get_group() local 80 return base; in get_group()
|
/test/xts/hats/kernel/freelist/encode_pointer/ |
H A D | Malloc_encode_pointer.cpp | 74 struct group_in *base = (struct group_in *)((uintptr_t)p - UNIT*offset - UNIT); in get_group() local 75 return base; in get_group()
|
/drivers/hdf_core/adapter/uhdf2/host/ |
H A D | devhost.c | 70 const int base = 10; in HdfStringToInt() local 71 long result = strtol(str, &end, base); in HdfStringToInt()
|
/drivers/hdf_core/framework/core/host/test/unittest/ |
H A D | hdf_vdi_test.cpp | 138 struct HdfVdiBase base; in HWTEST_F() local 141 obj.vdiBase = &base; in HWTEST_F()
|
/drivers/hdf_core/framework/core/host/test/sample/ |
H A D | vdi_sample1_symbol.h | 25 struct HdfVdiBase base;
member
|
H A D | vdi_sample1_driver.h | 25 struct HdfVdiBase base; member
|
H A D | vdi_sample1_driver.c | 49 .base = {
|
/drivers/hdf_core/framework/core/shared/include/ |
H A D | devmgr_service_if.h | 21 struct HdfObject base; member
|
/drivers/hdf_core/framework/include/bluetooth/ |
H A D | hdf_bt_transport.h | 27 struct IDeviceIoService base; member
|