Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/usb/serial/
Dcypress_m8.c298 u8 *feature_buffer; in cypress_serial_control() local
307 feature_buffer = kcalloc(feature_len, sizeof(u8), GFP_KERNEL); in cypress_serial_control()
308 if (!feature_buffer) in cypress_serial_control()
328 put_unaligned_le32(new_baudrate, feature_buffer); in cypress_serial_control()
329 feature_buffer[4] |= data_bits; /* assign data bits in 2 bit space ( max 3 ) */ in cypress_serial_control()
331 feature_buffer[4] |= (stop_bits << 3); /* assign stop bits in 1 bit space */ in cypress_serial_control()
332 feature_buffer[4] |= (parity_enable << 4); /* assign parity flag in 1 bit space */ in cypress_serial_control()
333 feature_buffer[4] |= (parity_type << 5); /* assign parity type in 1 bit space */ in cypress_serial_control()
335 feature_buffer[4] |= (reset << 7); /* assign reset at end of byte, 1 bit space */ in cypress_serial_control()
339 feature_buffer[0], feature_buffer[1], in cypress_serial_control()
[all …]