Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 101) sorted by relevance

12345

/drivers/hdf_core/framework/model/network/wifi/platform/src/qos/
Dflow_control_task.c17 FlowDir dir; member
41 static bool IsFcThreadNeedStop(struct FlowControlModule *fcm, FlowDir dir) in IsFcThreadNeedStop() argument
43 if (fcm->threadStatus[dir] > THREAD_RUNNING) { in IsFcThreadNeedStop()
85 static int32_t RunWiFiFlowControl(void *para, FlowDir dir) in RunWiFiFlowControl() argument
88 if (para == NULL || dir >= FLOW_DIR_COUNT) { in RunWiFiFlowControl()
89 HDF_LOGE("%s fail: para = null or dir=%d!", __func__, dir); in RunWiFiFlowControl()
92 HDF_LOGE("%s Enter flow control dir =%d!", __func__, dir); in RunWiFiFlowControl()
93 fcm->threadStatus[dir] = THREAD_STARTING; in RunWiFiFlowControl()
95 fcm->threadStatus[dir] = THREAD_WAITING; in RunWiFiFlowControl()
96 if (OsalSemWait(&fcm->sem[dir], HDF_WAIT_FOREVER) != HDF_SUCCESS) { in RunWiFiFlowControl()
[all …]
Dflow_control.c171 static int32_t SchedTransfer(struct FlowControlModule *fcm, FlowDir dir) in SchedTransfer() argument
173 if (fcm == NULL || dir >= FLOW_DIR_COUNT) { in SchedTransfer()
174 HDF_LOGE("%s : fcm = null dir=%d!", __func__, dir); in SchedTransfer()
177 OsalSemPost(&fcm->sem[dir]); in SchedTransfer()
191 static bool IsValidSentToFCMPra(const struct FlowControlModule *fcm, uint32_t id, uint32_t dir) in IsValidSentToFCMPra() argument
197 if (id >= QUEUE_ID_COUNT || dir >= FLOW_DIR_COUNT) { in IsValidSentToFCMPra()
204 …etQueueThreshold(struct FlowControlModule *fcm, uint32_t queueThreshold, uint32_t id, uint32_t dir) in SetQueueThreshold() argument
207 if (!IsValidSentToFCMPra(fcm, id, dir)) { in SetQueueThreshold()
211 fcmQueue = &fcm->fcmQueue[dir].queues[id]; in SetQueueThreshold()
232 static int32_t SendBuffToFCM(struct FlowControlModule *fcm, NetBuf *buff, uint32_t id, uint32_t dir) in SendBuffToFCM() argument
[all …]
/drivers/hdf_core/framework/test/unittest/platform/virtual/
Dpcie_virtual.c28 uint8_t dir; member
74 uint32_t len, uint8_t dir) in PcieVirtualAdapterDmaMap() argument
82 if (addr == 0 || dir > PCIE_DMA_TO_DEVICE) { in PcieVirtualAdapterDmaMap()
92 host->dir = dir; in PcieVirtualAdapterDmaMap()
97 …oid PcieVirtualAdapterDmaUnmap(struct PcieCntlr *cntlr, uintptr_t addr, uintptr_t len, uint8_t dir) in PcieVirtualAdapterDmaUnmap() argument
101 if (host == NULL || dir > PCIE_VIRTUAL_DIR_MAX) { in PcieVirtualAdapterDmaUnmap()
105 if (addr != host->dmaData || len != host->len || dir != host->dir) { in PcieVirtualAdapterDmaUnmap()
111 host->dir = 0; in PcieVirtualAdapterDmaUnmap()
/drivers/hdf_core/adapter/khdf/liteos/
Dhdf_driver.mk38 LOCAL_INCLUDE += $(dir $(CONFIG_GEN_SRCS) $(DEPENDS_CONFIG_SRCS))
42 $(HIDE)make -j -C $(HC_GEN_DIR) BUILD_DIR=$(dir $@)
44 $(CONFIG_GEN_HEX_SRC): $(CONFIG_OUT_DIR)/%_hex.c: $(HDF_CONFIG_DIR)/%.hcs | $(HC_GEN) $(dir $(CONFI…
48 $(CONFIG_GEN_SRCS): $(CONFIG_OUT_DIR)/%.c: $(HDF_CONFIG_DIR)/%.hcs | $(HC_GEN) $(dir $(CONFIG_GEN_S…
52 $(DEPENDS_CONFIG_SRCS): $(CONFIG_OUT_DIR)/%.c: $(HDF_CONFIG_DIR)/%.hcs | $(HC_GEN) $(dir $(DEPENDS_…
/drivers/hdf_core/framework/support/platform/src/pcie/
Dpcie_dispatch.c131 if (cntlr->dir == PCIE_DMA_FROM_DEVICE) { in PcieIoDmaCb()
158 cntlr->dir = PCIE_DMA_TO_DEVICE; in DmaToDevice()
174 cntlr->dir = PCIE_DMA_FROM_DEVICE; in DeviceToDma()
183 uint8_t dir; in PcieCmdDmaMap() local
185 if (!HdfSbufReadUint8(data, &dir)) { in PcieCmdDmaMap()
200 if (dir == PCIE_DMA_FROM_DEVICE) { in PcieCmdDmaMap()
202 } else if (dir == PCIE_DMA_TO_DEVICE) { in PcieCmdDmaMap()
214 uint8_t dir; in PcieCmdDmaUnmap() local
216 if (!HdfSbufReadUint8(data, &dir) || dir != cntlr->dir) { in PcieCmdDmaUnmap()
221 PcieCntlrDmaUnmap(cntlr, cntlr->dmaData, cntlr->len, dir); in PcieCmdDmaUnmap()
Dpcie_if.c49 int32_t PcieDmaMap(DevHandle handle, PcieCallbackFunc cb, uintptr_t addr, uint32_t len, uint8_t dir) in PcieDmaMap() argument
51 return PcieCntlrDmaMap((struct PcieCntlr *)handle, cb, addr, len, dir); in PcieDmaMap()
54 void PcieDmaUnmap(DevHandle handle, uintptr_t addr, uint32_t len, uint8_t dir) in PcieDmaUnmap() argument
56 PcieCntlrDmaUnmap((struct PcieCntlr *)handle, addr, len, dir); in PcieDmaUnmap()
Dpcie_if_u.c36 uint8_t dir; member
208 param->dir = dma->dir; in PcieRegListener()
240 .dir = PCIE_DMA_TO_DEVICE, in DmaToDevice()
260 .dir = PCIE_DMA_FROM_DEVICE, in DeviceToDma()
265 int32_t PcieDmaMap(DevHandle handle, PcieCallbackFunc cb, uintptr_t addr, uint32_t len, uint8_t dir) in PcieDmaMap() argument
286 if (dir == PCIE_DMA_FROM_DEVICE) { in PcieDmaMap()
288 } else if (dir == PCIE_DMA_TO_DEVICE) { in PcieDmaMap()
311 void PcieDmaUnmap(DevHandle handle, uintptr_t addr, uint32_t len, uint8_t dir) in PcieDmaUnmap() argument
330 if (!HdfSbufWriteUint8(data, dir)) { in PcieDmaUnmap()
Dpcie_core.c159 …ntlrDmaMap(struct PcieCntlr *cntlr, PcieCallbackFunc cb, uintptr_t addr, uint32_t len, uint8_t dir) in PcieCntlrDmaMap() argument
179 ret = cntlr->ops->dmaMap(cntlr, addr, len, dir); in PcieCntlrDmaMap()
184 void PcieCntlrDmaUnmap(struct PcieCntlr *cntlr, uintptr_t addr, uint32_t len, uint8_t dir) in PcieCntlrDmaUnmap() argument
191 cntlr->ops->dmaUnmap(cntlr, addr, len, dir); in PcieCntlrDmaUnmap()
/drivers/peripheral/thermal/interfaces/hdi_service/src/
Dthermal_simulation_node.cpp66 int32_t ThermalSimulationNode::CreateNodeDir(std::string dir) in CreateNodeDir() argument
68 if (access(dir.c_str(), 0) != NUM_ZERO) { in CreateNodeDir()
69 int32_t flag = mkdir(dir.c_str(), S_IRWXU | S_IRWXG | S_IROTH| S_IXOTH); in CreateNodeDir()
115 for (auto dir : sensor) { in AddSensorTypeTemp() local
117 THERMAL_NODE_DIR.c_str(), dir.first.c_str()); in AddSensorTypeTemp()
131 …ret = snprintf_s(typeBuf, MAX_PATH, sizeof(typeBuf) - ARG_1, THERMAL_TYPE_DIR.c_str(), dir.first.c… in AddSensorTypeTemp()
135 std::string type = dir.first; in AddSensorTypeTemp()
137 …ret = snprintf_s(tempBuf, MAX_PATH, sizeof(tempBuf) - ARG_1, THERMAL_TEMP_DIR.c_str(), dir.first.c… in AddSensorTypeTemp()
141 std::string temp = std::to_string(dir.second); in AddSensorTypeTemp()
194 for (auto dir : vSensor) { in AddMitigationDevice() local
[all …]
Dthermal_zone_manager.cpp86 DIR *dir = NULL; in InitThermalZoneSysfs() local
91 dir = opendir(THERMAL_SYSFS.c_str()); in InitThermalZoneSysfs()
92 if (dir == NULL) { in InitThermalZoneSysfs()
98 entry = readdir(dir); in InitThermalZoneSysfs()
117 closedir(dir); in InitThermalZoneSysfs()
132 closedir(dir); in InitThermalZoneSysfs()
/drivers/hdf_core/framework/support/platform/include/pcie/
Dpcie_core.h29 int32_t (*dmaMap)(struct PcieCntlr *cntlr, uintptr_t addr, uint32_t len, uint8_t dir);
30 void (*dmaUnmap)(struct PcieCntlr *cntlr, uintptr_t addr, uint32_t len, uint8_t dir);
52 uint8_t dir; member
90 …tlrDmaMap(struct PcieCntlr *cntlr, PcieCallbackFunc cb, uintptr_t addr, uint32_t len, uint8_t dir);
91 void PcieCntlrDmaUnmap(struct PcieCntlr *cntlr, uintptr_t addr, uint32_t len, uint8_t dir);
/drivers/hdf_core/framework/model/network/wifi/platform/include/
Dflow_control.h252 …QueueThreshold)(struct FlowControlModule *fcm, uint32_t queueThreshold, uint32_t id, uint32_t dir);
266 … int32_t (*sendBuffToFCM)(struct FlowControlModule *fcm, NetBuf *buff, uint32_t id, uint32_t dir);
278 int32_t (*schedFCM)(struct FlowControlModule *fcm, FlowDir dir);
361 int32_t SendFlowControlQueue(struct FlowControlModule *fcm, uint32_t id, uint32_t dir);
/drivers/hdf_core/framework/support/platform/src/gpio/
Dgpio_if.c39 int32_t GpioSetDir(uint16_t gpio, uint16_t dir) in GpioSetDir() argument
44 ret = GpioCntlrSetDir(cntlr, GpioCntlrGetLocal(cntlr, gpio), dir); in GpioSetDir()
50 int32_t GpioGetDir(uint16_t gpio, uint16_t *dir) in GpioGetDir() argument
55 ret = GpioCntlrGetDir(cntlr, GpioCntlrGetLocal(cntlr, gpio), dir); in GpioGetDir()
Dgpio_service.c84 uint16_t dir; in GpioServiceIoGetDir() local
96 ret = GpioGetDir(gpio, &dir); in GpioServiceIoGetDir()
102 if (!HdfSbufWriteUint16(reply, dir)) { in GpioServiceIoGetDir()
114 uint16_t dir; in GpioServiceIoSetDir() local
127 if (!HdfSbufReadUint16(data, &dir)) { in GpioServiceIoSetDir()
132 ret = GpioSetDir(gpio, dir); in GpioServiceIoSetDir()
/drivers/hdf_core/framework/tools/hdi-gen/
DMakefile8 export PWD:=$(subst /,\, $(abspath $(dir $(realpath $(lastword $(MAKEFILE_LIST))))))
13 export PWD := $(abspath $(dir $(realpath $(lastword $(MAKEFILE_LIST)))))
/drivers/hdf_core/framework/include/platform/
Dpcie_if.h111 int32_t PcieDmaMap(DevHandle handle, PcieCallbackFunc cb, uintptr_t addr, uint32_t len, uint8_t dir
123 void PcieDmaUnmap(DevHandle handle, uintptr_t addr, uint32_t len, uint8_t dir);
Dgpio_if.h136 int32_t GpioSetDir(uint16_t gpio, uint16_t dir);
147 int32_t GpioGetDir(uint16_t gpio, uint16_t *dir);
/drivers/hdf_core/framework/tools/hdi-gen/util/
Doptions.cpp173 void Options::AddSourcesByDir(const std::string &dir) in AddSourcesByDir() argument
175 std::set<std::string> files = File::FindFiles(dir); in AddSourcesByDir()
207 void Options::SetOutDir(const std::string &dir) in SetOutDir() argument
210 genDir = dir; in SetOutDir()
364 std::string dir = GetPackagePath(StringHelper::SubStr(import, 0, index)); in GetImportFilePath() local
366 return StringHelper::Format("%s%c%s.idl", dir.c_str(), SEPARATOR, className.c_str()); in GetImportFilePath()
Dfile.cpp304 DIR *dir = opendir(dirPath.c_str()); in CreateParentDir() local
305 if (dir == nullptr) { in CreateParentDir()
310 struct dirent *dirInfo = readdir(dir); in CreateParentDir()
311 for (; dirInfo != nullptr; dirInfo = readdir(dir)) { in CreateParentDir()
327 closedir(dir); in CreateParentDir()
/drivers/hdf_core/framework/support/platform/include/gpio/
Dgpio_core.h128 int32_t (*setDir)(struct GpioCntlr *cntlr, uint16_t local, uint16_t dir);
130 int32_t (*getDir)(struct GpioCntlr *cntlr, uint16_t local, uint16_t *dir);
179 int32_t GpioCntlrSetDir(struct GpioCntlr *cntlr, uint16_t local, uint16_t dir);
181 int32_t GpioCntlrGetDir(struct GpioCntlr *cntlr, uint16_t local, uint16_t *dir);
/drivers/hdf_core/adapter/platform/gpio/
Dgpio_wm.c96 static int32_t GpioDevSetDir(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t dir);
149 static int32_t GpioDevSetDir(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t dir) in GpioDevSetDir() argument
160 switch (dir) { in GpioDevSetDir()
162 dir = WM_GPIO_DIR_OUTPUT; in GpioDevSetDir()
165 dir = WM_GPIO_DIR_INPUT; in GpioDevSetDir()
172 tls_gpio_cfg((enum tls_io_name)wmGpio, (enum tls_gpio_dir)dir, WM_GPIO_ATTR_FLOATING); in GpioDevSetDir()
/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/src/
Dgpio_test.c96 uint16_t dir; in TestCaseGpioDir() local
98 int32_t ret = GpioGetDir(gpio, &dir); in TestCaseGpioDir()
99 if (ret == HDF_SUCCESS && dir == GPIO_Mode_IN) { in TestCaseGpioDir()
107 if (ret == HDF_SUCCESS && dir == GPIO_Mode_OUT) { in TestCaseGpioDir()
/drivers/hdf_core/adapter/khdf/linux/platform/gpio/
Dgpio_adapter.c60 static int32_t LinuxGpioSetDir(struct GpioCntlr *cntlr, uint16_t local, uint16_t dir) in LinuxGpioSetDir() argument
69 switch (dir) { in LinuxGpioSetDir()
87 HDF_LOGE("LinuxGpioSetDir: invalid dir:%d!\n", dir); in LinuxGpioSetDir()
93 static int32_t LinuxGpioGetDir(struct GpioCntlr *cntlr, uint16_t local, uint16_t *dir) in LinuxGpioGetDir() argument
105 *dir = (dirGet == GPIOF_DIR_IN) ? GPIO_DIR_IN : GPIO_DIR_OUT; in LinuxGpioGetDir()
/drivers/peripheral/usb/ddk/host/src/
Dddk_sysfs_device.c151 DIR *dir = opendir(devPath); in DdkSysfsGetActiveInterfaces() local
152 if (dir == NULL) { in DdkSysfsGetActiveInterfaces()
159 while ((devHandle = readdir(dir)) && (intfIndex < intfNum)) { in DdkSysfsGetActiveInterfaces()
173 closedir(dir); in DdkSysfsGetActiveInterfaces()
/drivers/peripheral/audio/test/fuzztest/audio_hdi_fuzzer/audioadapter_fuzzer/
Daudioadapter_fuzzer.cpp79 .dir = *(reinterpret_cast<AudioPortDirection *>(data)), in AdapterFucSwitch()
89 .dir = *(reinterpret_cast<AudioPortDirection *>(data)), in AdapterFucSwitch()

12345