Home
last modified time | relevance | path

Searched refs:controlParams (Results 1 - 6 of 6) sorted by relevance

/drivers/peripheral/usb/hdi_service/src/
H A Dusb_impl.cpp121 UsbControlParams *controlParams, uint8_t *buffer, uint16_t length, uint16_t value, uint16_t index) in MakeUsbControlParams()
123 if (controlParams == nullptr || buffer == nullptr) { in MakeUsbControlParams()
124 HDF_LOGE("%{public}s: %{public}d controlParams or buffer is nullptr", __func__, __LINE__); in MakeUsbControlParams()
128 controlParams->request = USB_DDK_REQ_GET_DESCRIPTOR; in MakeUsbControlParams()
129 controlParams->target = USB_REQUEST_TARGET_DEVICE; in MakeUsbControlParams()
130 controlParams->reqType = USB_PARAM_REQTYPE; in MakeUsbControlParams()
131 controlParams->directon = USB_REQUEST_DIR_FROM_DEVICE; in MakeUsbControlParams()
132 controlParams->value = value; in MakeUsbControlParams()
133 controlParams->index = index; in MakeUsbControlParams()
134 controlParams in MakeUsbControlParams()
120 MakeUsbControlParams( UsbControlParams *controlParams, uint8_t *buffer, uint16_t length, uint16_t value, uint16_t index) MakeUsbControlParams() argument
138 MakeGetActiveUsbControlParams( UsbControlParams *controlParams, uint8_t *buffer, uint16_t length, uint16_t value, uint16_t index) MakeGetActiveUsbControlParams() argument
214 MakeSetActiveUsbControlParams( UsbControlParams *controlParams, uint8_t *buffer, uint16_t length, uint16_t value, uint16_t index) MakeSetActiveUsbControlParams() argument
1153 UsbControlParams controlParams = {0}; GetDeviceDescriptor() local
1175 UsbControlParams controlParams = {0}; GetStringDescriptor() local
1200 UsbControlParams controlParams = {0}; GetConfigDescriptor() local
1277 UsbControlParams controlParams; SetConfig() local
1326 UsbControlParams controlParams; GetConfig() local
1590 UsbControlParams controlParams; ControlTransferRead() local
1632 UsbControlParams controlParams; ControlTransferWrite() local
1667 UsbControlParams controlParams; ControlTransferReadwithLength() local
[all...]
H A Dusbd_dispatcher.cpp80 int32_t UsbdDispatcher::UsbControlSetUp(UsbControlParams *controlParams, UsbControlRequest *controlReq) in UsbControlSetUp() argument
82 if (controlParams == nullptr || controlReq == nullptr) { in UsbControlSetUp()
83 HDF_LOGE("%{public}s:controlParams or controlReq is nullptr", __func__); in UsbControlSetUp()
87 controlReq->target = controlParams->target; in UsbControlSetUp()
88 controlReq->reqType = controlParams->reqType; in UsbControlSetUp()
89 controlReq->directon = controlParams->directon; in UsbControlSetUp()
90 controlReq->request = controlParams->request; in UsbControlSetUp()
91 controlReq->value = controlParams->value; in UsbControlSetUp()
92 controlReq->index = controlParams->index; in UsbControlSetUp()
93 controlReq->buffer = controlParams in UsbControlSetUp()
[all...]
/drivers/peripheral/usb/serial/src/
H A Dusb_serial.c227 static struct UsbControlRequest UsbControlSetUp(struct UsbControlParams *controlParams) in UsbControlSetUp() argument
230 dr.target = controlParams->target; in UsbControlSetUp()
231 dr.reqType = controlParams->reqType; in UsbControlSetUp()
232 dr.directon = controlParams->directon; in UsbControlSetUp()
233 dr.request = controlParams->request; in UsbControlSetUp()
234 dr.value = CPU_TO_LE16(controlParams->value); in UsbControlSetUp()
235 dr.index = CPU_TO_LE16(controlParams->index); in UsbControlSetUp()
236 dr.buffer = controlParams->data; in UsbControlSetUp()
237 dr.length = CPU_TO_LE16(controlParams->size); in UsbControlSetUp()
244 struct UsbControlParams controlParams in UsbGetDescriptor() local
305 struct UsbControlParams controlParams = {}; UsbGetStatus() local
353 struct UsbControlParams controlParams = {}; UsbGetInterface() local
392 struct UsbControlParams controlParams = {}; UsbGetConfig() local
436 struct UsbControlParams controlParams = {}; SerialCtrlMsg() local
483 struct UsbControlParams controlParams = {}; SerialCtrlAsyncMsg() local
[all...]
/drivers/peripheral/usb/net/src/
H A Dcdc_ether.c212 static struct UsbControlRequest EcmUsbControlMsg(const struct EcmControlParams * const controlParams) in EcmUsbControlMsg() argument
215 dr.target = controlParams->requestType & TARGET_MASK; in EcmUsbControlMsg()
216 dr.reqType = (controlParams->requestType >> USB_TYPE_OFFSET) & REQUEST_TYPE_MASK; in EcmUsbControlMsg()
217 dr.directon = (controlParams->requestType >> USB_DIR_OFFSET) & DIRECTION_MASK; in EcmUsbControlMsg()
218 dr.request = controlParams->request; in EcmUsbControlMsg()
219 dr.value = CPU_TO_LE16(controlParams->value); in EcmUsbControlMsg()
220 dr.index = CPU_TO_LE16(controlParams->index); in EcmUsbControlMsg()
221 dr.buffer = controlParams->data; in EcmUsbControlMsg()
222 dr.length = CPU_TO_LE16(controlParams->size); in EcmUsbControlMsg()
231 struct EcmControlParams controlParams; in EcmCtrlMsg() local
[all...]
/drivers/peripheral/usb/hdi_service/include/
H A Dusb_impl.h114 UsbControlParams *controlParams, uint8_t *buffer, uint16_t length, uint16_t value, uint16_t index);
116 UsbControlParams *controlParams, uint8_t *buffer, uint16_t length, uint16_t value, uint16_t index);
119 UsbControlParams *controlParams, uint8_t *buffer, uint16_t length, uint16_t value, uint16_t index);
H A Dusbd_dispatcher.h73 static int32_t UsbControlSetUp(UsbControlParams *controlParams, UsbControlRequest *controlReq);

Completed in 6 milliseconds