Home
last modified time | relevance | path

Searched refs:channel (Results 1 - 25 of 53) sorted by relevance

123

/drivers/hdf_core/framework/include/platform/
H A Ddac_if.h14 * This module allows a driver to perform operations on an DAC controller for accessing devices on the DAC channel,
40 uint32_t channel; member
69 * @brief Start the DAC device for transmission and write the target value in the specified DAC channel.
72 * @param channel represents the channel through which the DAC transmits messages.
79 int32_t DacWrite(DevHandle handle, uint32_t channel, uint32_t val);
H A Dadc_if.h22 uint32_t channel; member
29 int32_t AdcRead(DevHandle handle, uint32_t channel, uint32_t *val);
/drivers/hdf_core/framework/support/platform/src/adc/
H A Dadc_if.c50 int32_t AdcRead(DevHandle handle, uint32_t channel, uint32_t *val) in AdcRead() argument
56 return AdcDeviceRead((struct AdcDevice *)handle, channel, val); in AdcRead()
H A Dadc_if_u.c110 int32_t AdcRead(DevHandle handle, uint32_t channel, uint32_t *val) in AdcRead() argument
141 if (!HdfSbufWriteUint32(data, (uint32_t)channel)) { in AdcRead()
142 HDF_LOGE("AdcRead: write channel fail!"); in AdcRead()
H A Dadc_core.c306 int32_t AdcDeviceRead(struct AdcDevice *device, uint32_t channel, uint32_t *val) in AdcDeviceRead() argument
330 ret = device->ops->read(device, channel, val); in AdcDeviceRead()
397 uint32_t channel; in AdcManagerIoRead() local
410 if (!HdfSbufReadUint32(data, &channel)) { in AdcManagerIoRead()
411 HDF_LOGE("AdcManagerIoRead: read channel fail!"); in AdcManagerIoRead()
416 ret = AdcDeviceRead(AdcManagerFindDevice(number), channel, &val); in AdcManagerIoRead()
/drivers/hdf_core/framework/support/platform/src/dac/
H A Ddac_if.c48 int32_t DacWrite(DevHandle handle, uint32_t channel, uint32_t val) in DacWrite() argument
54 return DacDeviceWrite((struct DacDevice *)handle, channel, val); in DacWrite()
H A Ddac_if_u.c121 int32_t DacWrite(DevHandle handle, uint32_t channel, uint32_t val) in DacWrite() argument
150 if (!HdfSbufWriteUint32(data, channel)) { in DacWrite()
151 HDF_LOGE("DacWrite: write channel fail!"); in DacWrite()
H A Ddac_core.c256 int32_t DacDeviceWrite(struct DacDevice *device, uint32_t channel, uint32_t val) in DacDeviceWrite() argument
275 ret = device->ops->write(device, channel, val); in DacDeviceWrite()
405 uint32_t channel; in DacManagerIoWrite() local
426 if (!HdfSbufReadUint32(data, &channel)) { in DacManagerIoWrite()
427 HDF_LOGE("DacManagerIoWrite: read dac channel fail"); in DacManagerIoWrite()
436 ret = DacDeviceWrite(DacDeviceGet(number), channel, val); in DacManagerIoWrite()
/drivers/hdf_core/adapter/platform/pwm/
H A Dpwm_wm.c18 uint32_t channel; member
54 pwmCfg->channel = prvPwm->resource.channel; in PwmDevSetConfig()
58 tls_pwm_init(pwmCfg->channel, freq, pwmCfg->duty, pwmCfg->pnum); in PwmDevSetConfig()
86 if (dri->GetUint32(resourceNode, "channel", &resource->channel, 0) != HDF_SUCCESS) { in GetPwmDeviceResource()
87 HDF_LOGE("read channel fail\r\n"); in GetPwmDeviceResource()
/drivers/hdf_core/framework/support/platform/include/adc/
H A Dadc_core.h39 int32_t (*read)(struct AdcDevice *device, uint32_t channel, uint32_t *val);
57 int32_t AdcDeviceRead(struct AdcDevice *device, uint32_t channel, uint32_t *val);
/drivers/hdf_core/framework/support/platform/include/dac/
H A Ddac_core.h39 int32_t (*write)(struct DacDevice *device, uint32_t channel, uint32_t val);
57 int32_t DacDeviceWrite(struct DacDevice *device, uint32_t channel, uint32_t val);
/drivers/peripheral/bluetooth/hci/hdi_service/implement/
H A Dvendor_interface.cpp60 int channel[HCI_MAX_CHANNEL] = {0}; in WatchHciChannel() local
61 int channelCount = vendorInterface_->op(BtOpcodeT::BT_OP_HCI_CHANNEL_OPEN, channel); in WatchHciChannel()
69 auto h4 = std::make_shared<Hci::H4Protocol>(channel[0], in WatchHciChannel()
73 watcher_.AddFdToWatcher(channel[0], std::bind(&Hci::H4Protocol::ReadData, h4, std::placeholders::_1)); in WatchHciChannel()
76 auto mct = std::make_shared<Hci::MctProtocol>(channel, in WatchHciChannel()
81 channel[hci_channels_t::HCI_ACL_IN], std::bind(&Hci::MctProtocol::ReadAclData, mct, std::placeholders::_1)); in WatchHciChannel()
83 channel[hci_channels_t::HCI_EVT], std::bind(&Hci::MctProtocol::ReadEventData, mct, std::placeholders::_1)); in WatchHciChannel()
/drivers/hdf_core/framework/support/platform/src/dma/
H A Ddmac_core.c150 HDF_LOGE("DmaCntlrDestroy: dma cntlr is null or channel is invalid!"); in DmaCntlrDestroy()
204 cntlr->dmacChanDisable(cntlr, chanInfo->channel); in DmacWaitM2mSendComplete()
227 HDF_LOGE("DmacAllocateChannel: dmac allocate channel fail!"); in DmacAllocateChannel()
231 static void DmacFreeChannel(struct DmaCntlr *cntlr, uint16_t channel) in DmacFreeChannel() argument
241 DmacFreeLli(&cntlr->channelList[channel]); in DmacFreeChannel()
242 cntlr->channelList[channel].useStatus = DMAC_CHN_VACANCY; in DmacFreeChannel()
259 HDF_LOGE("DmacRequestChannel: dmac allocate channel fail!"); in DmacRequestChannel()
263 chanInfo->channel = (unsigned int)chan; in DmacRequestChannel()
268 HDF_LOGE("DmacRequestChannel: get channel info fail, ret = %d!", ret); in DmacRequestChannel()
399 HDF_LOGE("DmacPeriphTransfer: request channel fai in DmacPeriphTransfer()
[all...]
/drivers/peripheral/wlan/hostapd/interfaces/hdi_service/service_common/
H A Dhdi_hostapd_hal.h60 int channel; member
121 int (*setApChannel)(int channel, int id);
125 int (*setApMaxConnHw)(int maxConn, int channel);
/drivers/hdf_core/framework/test/unittest/platform/common/
H A Dadc_test.h22 uint32_t channel; member
H A Ddac_test.h22 uint32_t channel; member
H A Dadc_test.c121 ret = AdcRead(tester->handle, tester->config.channel, &value[i]); in AdcTestRead()
149 ret = AdcRead(tester->handle, tester->config.channel, &val); in AdcTestThreadFunc()
245 (void)AdcRead(NULL, tester->config.channel, &val); in AdcTestReliability()
246 // invalid channel in AdcTestReliability()
249 (void)AdcRead(tester->handle, tester->config.channel, NULL); in AdcTestReliability()
274 ret = AdcRead(tester->handle, tester->config.channel, &val); in AdcIfPerformanceTest()
H A Ddac_test.c112 ret = DacWrite(tester->handle, tester->config.channel, value[i]); in DacTestWrite()
137 ret = DacWrite(tester->handle, tester->config.channel, val); in DacTestThreadFunc()
232 (void)DacWrite(NULL, tester->config.channel, val); in DacTestReliability()
233 // invalid channel in DacTestReliability()
261 ret = DacWrite(tester->handle, tester->config.channel, val); in DacIfPerformanceTest()
H A Dadc_driver_test.c58 ret = drsOps->GetUint32(node, "channel", &config->channel, 0); in AdcTestReadConfig()
60 HDF_LOGE("AdcTestReadConfig: read channel fail!"); in AdcTestReadConfig()
/drivers/hdf_core/adapter/khdf/linux/platform/adc/
H A Dadc_iio_adapter.c53 static int32_t AdcIioRead(struct AdcDevice *device, uint32_t channel, uint32_t *val) in AdcIioRead() argument
69 if (channel >= adcDevice->channelNum || adcDevice->fp[channel] == NULL) { in AdcIioRead()
70 HDF_LOGE("AdcIioRead: invalid channel:%u!", channel); in AdcIioRead()
73 ret = kernel_read(adcDevice->fp[channel], strValue, ADC_STRING_VALUE_LEN, &pos); in AdcIioRead()
/drivers/hdf_core/framework/support/platform/include/dma/
H A Ddmac_core.h112 uint16_t channel; member
144 void (*dmacChanDisable)(struct DmaCntlr *cntlr, uint16_t channel);
/drivers/hdf_core/framework/test/unittest/platform/virtual/
H A Dadc_linux_virtual_iio_driver.c100 .channel = ADC_SCAN_VOLTAGE_1,
115 .channel = ADC_SCAN_VOLTAGE_2,
H A Ddac_virtual.c28 static int32_t VirtualDacWrite(struct DacDevice *device, uint32_t channel, uint32_t val) in VirtualDacWrite() argument
31 (void)channel; in VirtualDacWrite()
H A Dadc_virtual.c44 static int32_t VirtualAdcRead(struct AdcDevice *device, uint32_t channel, uint32_t *val) in VirtualAdcRead() argument
54 if (channel >= virtual->channels || val == NULL) { in VirtualAdcRead()
55 HDF_LOGE("VirtualAdcRead: invalid channel or val is null!"); in VirtualAdcRead()
/drivers/hdf_core/framework/model/audio/usb/src/
H A Daudio_usb_mixer.c131 uint32_t cmask; /* channel mask bitmap */
634 static inline int32_t AudioUsbGetCurMixRaw(struct UsbMixerElemInfo *mixElemInfo, int32_t channel, int32_t *value) in AudioUsbGetCurMixRaw() argument
636 return AudioUsbGetCtlValue(mixElemInfo, UAC_GET_CUR, (mixElemInfo->control << USB_SHIFT_SIZE_8) | channel, value); in AudioUsbGetCurMixRaw()
639 int32_t AudioUsbGetCurMixValue(struct UsbMixerElemInfo *mixElemInfo, int32_t channel, int32_t index, int32_t *value) in AudioUsbGetCurMixValue() argument
641 if (mixElemInfo->cached & (1 << channel)) { in AudioUsbGetCurMixValue()
651 if (AudioUsbGetCurMixRaw(mixElemInfo, channel, value) < HDF_SUCCESS) { in AudioUsbGetCurMixValue()
655 mixElemInfo->cached |= 1 << channel; // channel mask in AudioUsbGetCurMixValue()
721 int32_t AudioUsbSetCurMixValue(struct UsbMixerElemInfo *mixElemInfo, int32_t channel, int32_t index, int32_t value) in AudioUsbSetCurMixValue() argument
725 if (channel < in AudioUsbSetCurMixValue()
1334 int32_t channel = 0; AudioUsbFeatureCtlInit() local
[all...]

Completed in 13 milliseconds

123