Lines Matching defs:buffer
61 ssize_t bchlib_read(void *handle, char *buffer, loff_t offset, size_t len)
95 /* Read the sector into the sector buffer */
103 /* Copy the tail end of the sector to the user buffer */
114 ret = LOS_CopyFromKernel(buffer, len, &bch->buffer[sectoffset], nbytes);
131 buffer += nbytes;
136 * into the user buffer.
147 ret = los_disk_read(bch->disk->disk_id, (void *)buffer, sector + bch->sectstart, nsectors, TRUE);
166 buffer += nbytes;
174 /* Read the sector into the sector buffer */
182 /* Copy the head end of the sector to the user buffer */
184 ret = LOS_CopyFromKernel(buffer, len, bch->buffer, len);