Lines Matching defs:controlParams
212 static struct UsbControlRequest EcmUsbControlMsg(const struct EcmControlParams * const controlParams)
215 dr.target = controlParams->requestType & TARGET_MASK;
216 dr.reqType = (controlParams->requestType >> USB_TYPE_OFFSET) & REQUEST_TYPE_MASK;
217 dr.directon = (controlParams->requestType >> USB_DIR_OFFSET) & DIRECTION_MASK;
218 dr.request = controlParams->request;
219 dr.value = CPU_TO_LE16(controlParams->value);
220 dr.index = CPU_TO_LE16(controlParams->index);
221 dr.buffer = controlParams->data;
222 dr.length = CPU_TO_LE16(controlParams->size);
231 struct EcmControlParams controlParams;
244 controlParams.request = request;
245 controlParams.requestType = USB_DDK_TYPE_CLASS | USB_DDK_RECIP_INTERFACE;
246 controlParams.value = value;
247 controlParams.index = index;
248 controlParams.data = buf;
249 controlParams.size = len;
256 parmas.ctrlReq = EcmUsbControlMsg(&controlParams);