Lines Matching defs:buffer
33 static int block_read(io_entity_t *entity, uintptr_t buffer, size_t length,
35 static int block_write(io_entity_t *entity, const uintptr_t buffer,
234 * buffer-------------->| | ... | |
241 * Additionally, the IO driver has an underlying buffer that is at least
244 static int block_read(io_entity_t *entity, uintptr_t buffer, size_t length,
270 buf = &(cur->dev_spec->buffer);
301 * The underlying read buffer is too small to
303 * fill the buffer, and then read again.
308 * The underlying read buffer is big enough to
331 * the read data when copying to the user buffer.
337 memcpy((void *)(buffer + count),
356 static int block_write(io_entity_t *entity, const uintptr_t buffer,
382 buf = &(cur->dev_spec->buffer);
414 * The underlying read buffer is too small to
416 * fill the buffer, and then read again.
421 * The underlying read buffer is big enough to
433 * from the user buffer will depend of the size
468 (void *)(buffer + count),
479 * buffer
503 io_block_spec_t *buffer;
516 buffer = &(cur->dev_spec->buffer);
520 ((buffer->offset % block_size) == 0U) &&
521 ((buffer->length % block_size) == 0U));
525 (void)buffer;