Lines Matching refs:port
342 struct SerialDevice *port = NULL;
349 port = (struct SerialDevice *)OsalMemCalloc(sizeof(*port));
350 if (port == NULL) {
351 HDF_LOGE("%{public}s: Alloc usb serial port failed", __func__);
354 if (OsalMutexInit(&port->lock) != HDF_SUCCESS) {
358 port->lineCoding.dwDTERate = CPU_TO_LE32(DATARATE);
359 port->lineCoding.bCharFormat = USB_CDC_1_STOP_BITS;
360 port->lineCoding.bParityType = USB_CDC_NO_PARITY;
361 port->lineCoding.bDataBits = DATA_BITS_LENGTH;
362 acm->lineCoding = port->lineCoding;
363 acm->port = port;
364 port->acm = acm;