Home
last modified time | relevance | path

Searched refs:lineCoding (Results 1 – 7 of 7) sorted by relevance

/haiku/src/add-ons/kernel/drivers/ports/usb_serial/
H A DFTDI.cpp86 FTDIDevice::SetLineCoding(usb_cdc_line_coding *lineCoding) in SetLineCoding() argument
89 this, lineCoding->speed, lineCoding->stopbits, lineCoding->parity, in SetLineCoding()
90 lineCoding->databits); in SetLineCoding()
95 switch (lineCoding->speed) { in SetLineCoding()
110 lineCoding->speed, rate); in SetLineCoding()
118 if (lineCoding->speed == 3000000) in SetLineCoding()
120 else if (lineCoding->speed == 2000000) in SetLineCoding()
123 if (lineCoding->speed > 1500000) { in SetLineCoding()
126 lineCoding->speed, 19200); in SetLineCoding()
127 lineCoding->speed = 19200; in SetLineCoding()
[all …]
H A DWinChipHead.cpp96 WCHDevice::SetLineCoding(usb_cdc_line_coding *lineCoding) in SetLineCoding() argument
99 this, lineCoding->speed, lineCoding->stopbits, lineCoding->parity, in SetLineCoding()
100 lineCoding->databits); in SetLineCoding()
104 switch (lineCoding->stopbits) { in SetLineCoding()
112 lineCoding->stopbits); in SetLineCoding()
116 switch (lineCoding->parity) { in SetLineCoding()
127 lineCoding->parity); in SetLineCoding()
131 switch (lineCoding->databits) { in SetLineCoding()
147 lineCoding->databits); in SetLineCoding()
151 switch (lineCoding->speed) { in SetLineCoding()
[all …]
H A DKLSI.cpp63 usb_cdc_line_coding lineCoding = { 9600, 1, 0, 8 }; in ResetDevice() local
66 status = SetLineCoding(&lineCoding); in ResetDevice()
88 KLSIDevice::SetLineCoding(usb_cdc_line_coding *lineCoding) in SetLineCoding() argument
91 this, lineCoding->speed, lineCoding->stopbits, lineCoding->parity, in SetLineCoding()
92 lineCoding->databits); in SetLineCoding()
95 switch (lineCoding->speed) { in SetLineCoding()
110 lineCoding->speed, rate); in SetLineCoding()
117 codingPacket[2] = lineCoding->databits; /* only 7,8 */ in SetLineCoding()
H A DSilicon.cpp69 SiliconDevice::SetLineCoding(usb_cdc_line_coding *lineCoding) in SetLineCoding() argument
71 uint16_t divider = kBaudrateGeneratorFrequency / lineCoding->speed ; in SetLineCoding()
78 switch (lineCoding->stopbits) { in SetLineCoding()
83 lineCoding->stopbits); in SetLineCoding()
87 switch (lineCoding->parity) { in SetLineCoding()
93 lineCoding->parity); in SetLineCoding()
97 data |= lineCoding->databits << 8; in SetLineCoding()
H A DACM.cpp130 ACMDevice::SetLineCoding(usb_cdc_line_coding *lineCoding) in SetLineCoding() argument
133 this, lineCoding->speed, lineCoding->stopbits, lineCoding->parity, in SetLineCoding()
134 lineCoding->databits); in SetLineCoding()
141 lineCoding, &length); in SetLineCoding()
H A DSerialDevice.cpp186 usb_cdc_line_coding lineCoding; in SetModes() local
187 lineCoding.speed = speed; in SetModes()
188 lineCoding.stopbits = (tios->c_cflag & CSTOPB) in SetModes()
192 lineCoding.parity = USB_CDC_LINE_CODING_EVEN_PARITY; in SetModes()
194 lineCoding.parity = USB_CDC_LINE_CODING_ODD_PARITY; in SetModes()
196 lineCoding.parity = USB_CDC_LINE_CODING_NO_PARITY; in SetModes()
198 lineCoding.databits = (tios->c_cflag & CS8) ? 8 : 7; in SetModes()
200 if (memcmp(&lineCoding, &fLineCoding, sizeof(usb_cdc_line_coding)) != 0) { in SetModes()
201 fLineCoding.speed = lineCoding.speed; in SetModes()
202 fLineCoding.stopbits = lineCoding.stopbits; in SetModes()
[all …]
/haiku/src/add-ons/kernel/drivers/ports/pc_serial/
H A DSerialDevice.cpp210 usb_serial_line_coding lineCoding; in SetModes()
211 lineCoding.speed = baudRates[baudIndex]; in SetModes()
212 lineCoding.stopbits = (tios->c_cflag & CSTOPB) ? LC_STOP_BIT_2 : LC_STOP_BIT_1; in SetModes()
215 lineCoding.parity = LC_PARITY_EVEN; in SetModes()
217 lineCoding.parity = LC_PARITY_ODD; in SetModes()
219 lineCoding.parity = LC_PARITY_NONE; in SetModes()
221 lineCoding.databits = (tios->c_cflag & CS8) ? 8 : 7; in SetModes()
223 if (lineCoding.speed == 0) { in SetModes()
225 lineCoding.speed = fLineCoding.speed; in SetModes()
235 if (memcmp(&lineCoding, &fLineCoding, sizeof(usb_serial_line_coding)) != 0) { in SetModes()
[all …]