Home
last modified time | relevance | path

Searched refs:dir (Results 1 - 25 of 102) sorted by relevance

12345

/drivers/hdf_core/framework/model/network/wifi/platform/src/qos/
H A 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] in RunWiFiFlowControl()
144 DestroyTask(struct FlowControlModule *fcm, FlowDir dir) DestroyTask() argument
[all...]
H A 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()
198 HDF_LOGE("%s fail : id or dir not right!", __func__); in IsValidSentToFCMPra()
204 static int32_t SetQueueThreshold(struct FlowControlModule *fcm, uint32_t queueThreshold, uint32_t id, uint32_t dir) in SetQueueThreshold() argument
207 if (!IsValidSentToFCMPra(fcm, id, dir)) { in SetQueueThreshold()
232 SendBuffToFCM(struct FlowControlModule *fcm, NetBuf *buff, uint32_t id, uint32_t dir) SendBuffToFCM() argument
296 SendFlowControlQueue(struct FlowControlModule *fcm, uint32_t id, uint32_t dir) SendFlowControlQueue() argument
[all...]
/drivers/hdf_core/framework/test/unittest/platform/virtual/
H A Dpcie_virtual.c28 uint8_t dir; member
74 uint32_t len, uint8_t dir) in PcieVirtualAdapterDmaMap()
82 if (addr == 0 || dir > PCIE_DMA_TO_DEVICE) { in PcieVirtualAdapterDmaMap()
83 HDF_LOGE("PcieVirtualAdapterDmaMap: addr or dir is invaild!"); in PcieVirtualAdapterDmaMap()
92 host->dir = dir; in PcieVirtualAdapterDmaMap()
97 static void 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()
102 HDF_LOGE("PcieVirtualAdapterDmaUnmap: host is NULL or dir is invalid!"); in PcieVirtualAdapterDmaUnmap()
105 if (addr != host->dmaData || len != host->len || dir ! in PcieVirtualAdapterDmaUnmap()
73 PcieVirtualAdapterDmaMap(struct PcieCntlr *cntlr, uintptr_t addr, uint32_t len, uint8_t dir) PcieVirtualAdapterDmaMap() argument
[all...]
/drivers/hdf_core/framework/support/platform/src/pcie/
H A 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()
186 HDF_LOGE("PcieCmdDmaMap: read dir fail"); in PcieCmdDmaMap()
200 if (dir == PCIE_DMA_FROM_DEVICE) { in PcieCmdDmaMap()
202 } else if (dir == PCIE_DMA_TO_DEVICE) { in PcieCmdDmaMap()
205 HDF_LOGE("PcieCmdDmaMap: invalid dir"); in PcieCmdDmaMap()
214 uint8_t dir; in PcieCmdDmaUnmap() local
[all...]
H A 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()
H A Dpcie_if_u.c36 uint8_t dir; member
208 param->dir = dma->dir; in PcieRegListener()
225 HDF_LOGE("DmaToDevice: sbuf write dir fail!"); in DmaToDevice()
240 .dir = PCIE_DMA_TO_DEVICE, in DmaToDevice()
249 HDF_LOGE("DeviceToDma: sbuf write dir fail!"); in DeviceToDma()
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 in PcieDmaMap()
311 PcieDmaUnmap(DevHandle handle, uintptr_t addr, uint32_t len, uint8_t dir) PcieDmaUnmap() argument
[all...]
H A Dpcie_core.c159 int32_t PcieCntlrDmaMap(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/hdf_core/adapter/khdf/liteos/
H A 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 $(CONFIG_GEN_HEX_SRC))
48 $(CONFIG_GEN_SRCS): $(CONFIG_OUT_DIR)/%.c: $(HDF_CONFIG_DIR)/%.hcs | $(HC_GEN) $(dir $(CONFIG_GEN_SRCS))
52 $(DEPENDS_CONFIG_SRCS): $(CONFIG_OUT_DIR)/%.c: $(HDF_CONFIG_DIR)/%.hcs | $(HC_GEN) $(dir $(DEPENDS_CONFIG_SRCS))
/drivers/hdf_core/framework/model/network/wifi/platform/include/
H A Dflow_control.h246 * @param dir Indicates the flow control direction, as enumerated in {@link FlowDir}.
252 int32_t (*setQueueThreshold)(struct FlowControlModule *fcm, uint32_t queueThreshold, uint32_t id, uint32_t dir);
260 * @param dir Indicates the flow control direction, as enumerated in {@link FlowDir}.
266 int32_t (*sendBuffToFCM)(struct FlowControlModule *fcm, NetBuf *buff, uint32_t id, uint32_t dir);
272 * @param dir Indicates the flow control direction, as enumerated in {@link FlowDir}.
278 int32_t (*schedFCM)(struct FlowControlModule *fcm, FlowDir dir);
354 * @param dir Indicates the flow control direction, as enumerated in {@link FlowDir}.
361 int32_t SendFlowControlQueue(struct FlowControlModule *fcm, uint32_t id, uint32_t dir);
/drivers/peripheral/thermal/interfaces/hdi_service/src/
H A 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()
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_str()); 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_str()); in AddSensorTypeTemp()
141 std::string temp = std::to_string(dir.second); in AddSensorTypeTemp()
194 for (auto dir in AddMitigationDevice()
[all...]
/drivers/hdf_core/framework/support/platform/include/pcie/
H A 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 int32_t PcieCntlrDmaMap(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/support/platform/src/gpio/
H A 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()
H A Dgpio_service.c84 uint16_t dir; in GpioServiceIoGetDir() local
96 ret = GpioGetDir(gpio, &dir); in GpioServiceIoGetDir()
98 HDF_LOGE("GpioServiceIoGetDir: fail to get gpio dir, ret: %d!", ret); in GpioServiceIoGetDir()
102 if (!HdfSbufWriteUint16(reply, dir)) { in GpioServiceIoGetDir()
103 HDF_LOGE("GpioServiceIoGetDir: fail to write gpio dir, ret: %d!", ret); in GpioServiceIoGetDir()
114 uint16_t dir; in GpioServiceIoSetDir() local
127 if (!HdfSbufReadUint16(data, &dir)) { in GpioServiceIoSetDir()
128 HDF_LOGE("GpioServiceIoSetDir: fail to read gpio dir!"); in GpioServiceIoSetDir()
132 ret = GpioSetDir(gpio, dir); in GpioServiceIoSetDir()
134 HDF_LOGE("GpioServiceIoSetDir: fail to set gpio dir, re in GpioServiceIoSetDir()
[all...]
/drivers/hdf_core/framework/include/platform/
H A Dgpio_if.h131 * @param dir Indicates the direction to set. For details, see {@link GpioDirType}.
136 int32_t GpioSetDir(uint16_t gpio, uint16_t dir);
142 * @param dir Indicates the pointer to the obtained input/output direction. For details, see {@link GpioDirType}.
147 int32_t GpioGetDir(uint16_t gpio, uint16_t *dir);
H A Dpcie_if.h105 * @param dir Indicates the data flow direction, <b>0</b> means device to DMA and <b>1</b> means DMA to device.
111 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);
/drivers/hdf_core/framework/tools/hdi-gen/
H A DMakefile8 export PWD:=$(subst /,\, $(abspath $(dir $(realpath $(lastword $(MAKEFILE_LIST))))))
13 export PWD := $(abspath $(dir $(realpath $(lastword $(MAKEFILE_LIST)))))
/drivers/hdf_core/framework/support/platform/include/gpio/
H A 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/peripheral/audio/test/fuzztest/audio_hdi_fuzzer/audioadapter_fuzzer/
H A Daudioadapter_fuzzer.cpp88 .dir = *(reinterpret_cast<AudioPortDirection *>(data)), in AdapterFucSwitch()
97 .dir = *(reinterpret_cast<AudioPortDirection *>(data)), in AdapterFucSwitch()
107 .dir = *(reinterpret_cast<AudioPortDirection *>(data)), in AdapterFucSwitch()
/drivers/hdf_core/adapter/platform/gpio/
H A 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()
168 HDF_LOGE("%s: invalid dir", __func__); 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/framework/tools/hdi-gen/util/
H A Doptions.cpp193 void Options::AddSourcesByDir(const std::string &dir) in AddSourcesByDir() argument
195 std::set<std::string> files = File::FindFiles(dir); in AddSourcesByDir()
231 void Options::SetOutDir(const std::string &dir) in SetOutDir() argument
234 genDir = dir; in SetOutDir()
388 std::string dir = GetPackagePath(StringHelper::SubStr(import, 0, index)); in GetImportFilePath() local
390 return StringHelper::Format("%s%c%s.idl", dir.c_str(), SEPARATOR, className.c_str()); in GetImportFilePath()
H A 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/adapter/khdf/uniproton/test/sample_driver/src/
H A 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/peripheral/usb/ddk/host/src/
H A Dddk_sysfs_device.c152 DIR *dir = opendir(devPath); in DdkSysfsGetActiveInterfaces() local
153 if (dir == NULL) { in DdkSysfsGetActiveInterfaces()
160 while ((devHandle = readdir(dir)) && (intfIndex < intfNum)) { in DdkSysfsGetActiveInterfaces()
161 // only read dir like 3-1:1.1 in DdkSysfsGetActiveInterfaces()
174 closedir(dir); in DdkSysfsGetActiveInterfaces()
/drivers/hdf_core/adapter/khdf/linux/platform/gpio/
H A 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/thermal/interfaces/hdi_service/include/
H A Dthermal_simulation_node.h34 int32_t CreateNodeDir(std::string dir);

Completed in 11 milliseconds

12345