Searched refs:DEF_BUFFER_SIZE (Results 1 – 5 of 5) sorted by relevance
/haiku/src/add-ons/kernel/drivers/ports/usb_serial/ |
H A D | Driver.h | 34 #define DEF_BUFFER_SIZE 0x200 macro
|
H A D | SerialDevice.cpp | 42 fReadBufferSize(ROUNDUP(DEF_BUFFER_SIZE, 16)), in SerialDevice() 44 fOutputBufferSize(ROUNDUP(DEF_BUFFER_SIZE, 16)), in SerialDevice() 46 fWriteBufferSize(ROUNDUP(DEF_BUFFER_SIZE, 16)), in SerialDevice()
|
/haiku/src/add-ons/kernel/drivers/ports/pc_serial/ |
H A D | SerialDevice.h | 122 char fReadBuffer[DEF_BUFFER_SIZE]; 127 char fWriteBuffer[DEF_BUFFER_SIZE];
|
H A D | Driver.h | 112 #define DEF_BUFFER_SIZE 0x200 macro
|
H A D | SerialDevice.cpp | 56 memset(fReadBuffer, 'z', DEF_BUFFER_SIZE); in SerialDevice() 57 memset(fWriteBuffer, 'z', DEF_BUFFER_SIZE); in SerialDevice() 911 size_t bytesLeft = DEF_BUFFER_SIZE - atomic_get(&fWriteBufferAvail); in _WriteToDevice() 912 bytesLeft = MIN(bytesLeft, DEF_BUFFER_SIZE - fWriteBufferIn); in _WriteToDevice() 923 fWriteBufferIn %= DEF_BUFFER_SIZE; in _WriteToDevice()
|