/drivers/hdf_core/adapter/platform/gpio/ |
H A D | gpio_gr5xx.c | 39 static inline app_io_type_t GpioDevPinMap(uint32_t id, uint32_t *pin) in GpioDevPinMap() argument 42 *pin = 1 << (id - IO_BASE_GPIO); in GpioDevPinMap() 45 *pin = 1 << (id - IO_BASE_AON); in GpioDevPinMap() 48 *pin = 1 << (id - IO_BASE_MSIO); in GpioDevPinMap() 67 uint32_t pin = 0; in GpioDevSetDir() local 76 iotype = GpioDevPinMap(gpio, &pin); in GpioDevSetDir() 77 ioInit.pin = pin; in GpioDevSetDir() 112 uint32_t pin = 0; in GpioDevWrite() local 120 ioType = GpioDevPinMap(gpio, &pin); in GpioDevWrite() 133 uint32_t pin = 0; GpioDevRead() local 157 GetPinIndex(uint32_t pin) GetPinIndex() argument 190 uint32_t pin = 0; GpioDevEnableIrq() local 214 uint32_t pin = 0; GpioDevDisableIrq() local 238 uint32_t pin = 0; GpioDevSetIrq() local 276 uint32_t pin = 0; GpioDevUnSetIrq() local [all...] |
H A D | gpio_bes.c | 28 ANALOG_MODE, /* Used as a function pin, input and output analog */ 46 uint32_t pin; member 77 static void OemGpioIrqHdl(enum HAL_GPIO_PIN_T pin) in OemGpioIrqHdl() argument 79 if (pin >= HAL_GPIO_PIN_LED_NUM) { in OemGpioIrqHdl() 80 HDF_LOGE("%s %d, error pin:%d", __func__, __LINE__, pin); in OemGpioIrqHdl() 84 if (pin == (enum HAL_GPIO_PIN_T)g_gpioPinReflectionMap[i]) { in OemGpioIrqHdl() 146 gpioCfg.pin = device->port; in InitGpioDevice() 180 uint32_t pins[] = HCS_ARRAYS(HCS_NODE(PLATFORM_GPIO_CONFIG, pin)); in GetGpioDeviceResource() 184 resource->pin in GetGpioDeviceResource() 418 enum HAL_GPIO_PIN_T pin = (enum HAL_GPIO_PIN_T)g_gpioPinReflectionMap[gpio]; global() local 441 enum HAL_GPIO_PIN_T pin = (enum HAL_GPIO_PIN_T)g_gpioPinReflectionMap[gpio]; global() local [all...] |
H A D | gpio_stm32f4xx.c | 46 uint32_t pin; member 83 uint32_t pin; member 108 static void OemGpioIrqHdl(uint32_t pin) in OemGpioIrqHdl() argument 110 GpioCntlrIrqCallback(&g_stmGpioCntlr, pin); in OemGpioIrqHdl() 196 HDF_LOGE("%s %d, error pin:%d", __func__, __LINE__, halGpio); in InitGpioDevice() 236 if (dri->GetUint32ArrayElem(resourceNode, "pin", i, &resource->pin, 0) != HDF_SUCCESS) { in GpioParseHcs() 268 g_gpioPinsMap[resource->pin].group = resource->group; in GpioParseHcs() 269 g_gpioPinsMap[resource->pin].realPin = resource->realPin; in GpioParseHcs() 270 g_gpioPinsMap[resource->pin] in GpioParseHcs() [all...] |
H A D | gpio_asr.c | 49 uint32_t pin; member 89 HDF_LOGE("%s %d, error pin:%d", __func__, __LINE__, (uint16_t)dev->port); in OemGpioIrqHdl() 119 HDF_LOGE("%s %d, error pin:%d", __func__, __LINE__, dev->port); in GpioDevWrite() 137 HDF_LOGE("%s %d, error pin:%d", __func__, __LINE__, dev->port); in GpioDevRead() 156 HDF_LOGE("%s %d, error pin:%d", __func__, __LINE__, dev->port); in GpioDevSetDir() 172 HDF_LOGE("%s %d, error pin:%d", __func__, __LINE__, dev->port); in GpioDevGetDir() 185 HDF_LOGE("%s %d, pin:%d", __func__, __LINE__, (uint16_t)dev->port); in GpioDevSetIrq() 187 HDF_LOGE("%s %d, error pin:%d", __func__, __LINE__, dev->port); in GpioDevSetIrq() 208 HDF_LOGE("%s %d, error pin:%d", __func__, __LINE__, dev->port); in GpioDevUnSetIrq() 221 HDF_LOGE("%s %d, error pin in GpioDevEnableIrq() [all...] |
H A D | gpio_wm.c | 28 ANALOG_MODE, /* Used as a function pin, input and output analog */ 58 typedef void (* tls_gpio_pin_orq_handler)(enum tls_io_name pin);
|
/drivers/hdf_core/framework/support/platform/src/pin/ |
H A D | pin_if_u.c | 34 struct PinInfo *pin = NULL;
in AddNode() local 42 pin = OsalMemCalloc(sizeof(struct PinInfo));
in AddNode() 43 if (pin == NULL) {
in AddNode() 44 HDF_LOGE("AddNode: malloc pin fail!");
in AddNode() 47 DListHeadInit(&pin->node);
in AddNode() 48 if (strcpy_s(pin->pinName, PIN_NAME_LEN, pinName) != EOK) {
in AddNode() 50 OsalMemFree(pin);
in AddNode() 54 DListInsertTail(&pin->node, head);
in AddNode() 56 return pin->pinName;
in AddNode() 84 HDF_LOGE("PinServiceGetService: fail to get pin servic in PinManagerServiceGet() [all...] |
/drivers/peripheral/audio/hdi_service/primary_impl/vdi_src/ |
H A D | audio_render_vdi.h | 26 struct IAudioRender *FindRenderCreated(enum AudioPortPin pin, const struct AudioSampleAttributes *attrs,
|
H A D | audio_render_vdi.c | 321 AUDIO_FUNC_LOGI("portId = [%{public}u], pin = [%{public}d], desc = [%{public}s]", in AudioRenderSelectSceneVdi() 914 struct IAudioRender *FindRenderCreated(enum AudioPortPin pin, const struct AudioSampleAttributes *attrs, in FindRenderCreated() argument 943 (renderPriv->renderInfos[index]->desc.pins == pin) && in FindRenderCreated()
|
/drivers/hdf_core/adapter/platform/spi/ |
H A D | spi_bes.c | 137 pinMuxSpi[SPI_PIN_0].pin = resource->spiMisoPin; in SpiIomuxInit() 138 pinMuxSpi[SPI_PIN_1].pin = resource->spiClkPin; in SpiIomuxInit() 139 pinMuxSpi[SPI_PIN_2].pin = resource->spiCsPin; in SpiIomuxInit() 140 pinMuxSpi[SPI_PIN_3].pin = resource->spiMosiPin; in SpiIomuxInit() 154 hal_iomux_set_io_drv(pinMuxSpi[SPI_PIN_0].pin, DRIVER_LEVEL); in SpiIomuxInit() 155 hal_iomux_set_io_drv(pinMuxSpi[SPI_PIN_1].pin, DRIVER_LEVEL); in SpiIomuxInit() 156 hal_iomux_set_io_drv(pinMuxSpi[SPI_PIN_2].pin, DRIVER_LEVEL); in SpiIomuxInit() 157 hal_iomux_set_io_drv(pinMuxSpi[SPI_PIN_3].pin, DRIVER_LEVEL); in SpiIomuxInit()
|
/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/ |
H A D | wpa_hal_p2p_struct.h | 84 char pin[WIFI_PIN_CODE_LENGTH + 1]; // <pbc|pin|PIN#|p2ps> member
|
H A D | wpa_p2p_cmd.c | 328 const char *pin, char *result, uint32_t resultLen)
in WpaInterfaceP2pSetupWpsPin() 332 if (ifName == NULL || address == NULL || pin == NULL || result == NULL || resultLen == 0) {
in WpaInterfaceP2pSetupWpsPin() 333 HDF_LOGE("%{public}s groupIfc, address, pin and result have NULL", __func__);
in WpaInterfaceP2pSetupWpsPin() 349 if (strlen(pin) > 0) {
in WpaInterfaceP2pSetupWpsPin() 351 if (strncpy_s(p2pWpsPinDisplay.pinCode, sizeof(p2pWpsPinDisplay.pinCode), pin, strlen(pin)) != EOK) {
in WpaInterfaceP2pSetupWpsPin() 352 HDF_LOGE("%{public}s: Failed to init pin code, the input pin code may be invalid!", __func__);
in WpaInterfaceP2pSetupWpsPin() 980 char pin[CMD_SIZE] = {0};
in WpaInterfaceP2pConnect() local 982 if (memcpy_s(pin, CMD_SIZ in WpaInterfaceP2pConnect() 327 WpaInterfaceP2pSetupWpsPin(struct IWpaInterface *self, const char *ifName, const char *address, const char *pin, char *result, uint32_t resultLen) WpaInterfaceP2pSetupWpsPin() argument [all...] |
H A D | wpa_p2p_cmd.h | 52 const char *pin, char *result, uint32_t resultLen);
|
/drivers/peripheral/audio/hal/pathselect/src/ |
H A D | audio_pathselect.c | 99 static const char *AudioPathSelGetDeviceType(enum AudioPortPin pin) in AudioPathSelGetDeviceType() argument 101 if (pin < PIN_OUT_SPEAKER || pin > PIN_IN_BLUETOOTH_SCO_HEADSET) { in AudioPathSelGetDeviceType() 104 switch (pin) { in AudioPathSelGetDeviceType() 565 if ((i & tpins) == i) { /* Select which device to open and get the pin of which device */ in SetMatchCaptureOtherDevicePath()
|
/drivers/peripheral/wlan/test/hdi_service/ |
H A D | p2p_hdi_direct_test.cpp | 139 const char *pin = "00000000";
in HWTEST_F() local 142 int32_t rc = g_wpaObj->P2pSetupWpsPin(g_wpaObj, nullptr, "00:00:00:00:00:00", pin, resultBuf, resultBufLen);
in HWTEST_F() 144 rc = g_wpaObj->P2pSetupWpsPin(g_wpaObj, IFNAME, "00:00:00:00:00:00", pin, nullptr, resultBufLen);
in HWTEST_F() 146 rc = g_wpaObj->P2pSetupWpsPin(g_wpaObj, IFNAME, "00:00:00:00:00:00", pin, resultBuf, resultBufLen);
in HWTEST_F()
|
H A D | p2p_hdi_hal_services_c_test.cpp | 167 const char *pin = "00000000";
in HWTEST_F() local 173 rc = g_wpaObj->P2pSetupWpsPin(g_wpaObj, "p2p-dev-wlan0", "00:00:00:00:00:00", pin, resultBuf, resultBufLen);
in HWTEST_F()
|
/drivers/hdf_core/adapter/khdf/liteos/ |
H A D | lite.mk | 74 HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/pin
|
/drivers/hdf_core/adapter/khdf/liteos/platform/ |
H A D | Makefile | 89 LOCAL_SRCS += $(HDF_FRAMEWORKS)/support/platform/src/pin/pin_if.c \ 90 $(HDF_FRAMEWORKS)/support/platform/src/pin/pin_core.c
|
/drivers/hdf_core/adapter/platform/i2c/ |
H A D | i2c_bes.c | 80 pinMuxI2c[0].pin = resource->sclPin; in I2cDeviceIomuxInit() 81 pinMuxI2c[1].pin = resource->sdaPin; in I2cDeviceIomuxInit()
|
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/src/ |
H A D | audio_adapter_interface_impl.cpp | 133 DHLOGI("Create distributed audio render, {pin: %{public}d, sampleRate: %{public}d, channel: %{public}d," in CreateRender() 264 DHLOGI("Create daudio capture, {pin: %{public}d, sampleRate: %{public}" PRIu32", channel: %{public}" PRIu32 in CreateCapture() 484 for (auto pin = mapAudioDevice_.begin(); pin != mapAudioDevice_.end(); pin++) { in GetAdapterDesc() 485 AudioPort port = {PORT_OUT_IN, pin->first, ""}; in GetAdapterDesc() 592 DHLOGI("Open render device, pin: %{public}d.", dhId); in OpenRenderDevice() 637 DHLOGI("Close render device, pin: %{public}d.", dhId); in CloseRenderDevice() 668 DHLOGI("Open capture device, pin: %{public}d.", dhId); in OpenCaptureDevice() 717 DHLOGI("Close capture device, pin in CloseCaptureDevice() [all...] |
/drivers/peripheral/ril/interfaces/hdi_service/src/ |
H A D | ril_impl.cpp | 508 int32_t RilImpl::UnlockPin(int32_t slotId, int32_t serialId, const std::string &pin) in UnlockPin() argument 510 return TaskSchedule(&Telephony::HRilManager::UnlockPin, slotId, serialId, pin); in UnlockPin() 513 int32_t RilImpl::UnlockPuk(int32_t slotId, int32_t serialId, const std::string &puk, const std::string &pin) in UnlockPuk() argument 515 return TaskSchedule(&Telephony::HRilManager::UnlockPuk, slotId, serialId, puk, pin); in UnlockPuk()
|
/drivers/hdf_core/framework/model/audio/usb/src/ |
H A D | audio_usb_mixer.c | 1736 int32_t inputPins, pin, err; in AudioUsbParseMixerUnit() local 1750 for (pin = 0; pin < inputPins; pin++) { in AudioUsbParseMixerUnit() 1751 err = AudioUsbParseUnit(state, desc->baSourceID[pin]); in AudioUsbParseMixerUnit() 1756 err = AudioUsbCheckInputTerm(state, desc->baSourceID[pin], &usbAudioTerm); in AudioUsbParseMixerUnit()
|
/drivers/hdf_core/adapter/platform/uart/ |
H A D | uart_gr5xx.c | 528 udd->params.pin_cfg.tx.pin = (1 << resourceData); in UartGetPinConfigFromHcs() 552 udd->params.pin_cfg.rx.pin = (1 << resourceData); in UartGetPinConfigFromHcs()
|
/drivers/peripheral/ril/interfaces/hdi_service/include/ |
H A D | ril_impl.h | 110 int32_t UnlockPin(int32_t slotId, int32_t serialId, const std::string &pin) override; 111 int32_t UnlockPuk(int32_t slotId, int32_t serialId, const std::string &puk, const std::string &pin) override;
|
/drivers/hdf_core/adapter/platform/pwm/ |
H A D | pwm_bes.c | 79 pinMuxPwm->pin = resource->pwmPin; in InitPwmDevice()
|
/drivers/peripheral/wlan/test/fuzztest/ |
H A D | wpa_common_fuzzer.cpp | 521 const char *pin = reinterpret_cast<const char *>(rawData); in FuzzWpaInterfaceP2pSetupWpsPin() local 526 interface->P2pSetupWpsPin(interface, ifName, address, pin, result, resultLen); in FuzzWpaInterfaceP2pSetupWpsPin()
|