Lines Matching refs:tbuf_size
190 int err, lnum, off, len, tbuf_size; in vol_cdev_read() local
214 tbuf_size = vol->usable_leb_size; in vol_cdev_read()
215 if (count < tbuf_size) in vol_cdev_read()
216 tbuf_size = ALIGN(count, ubi->min_io_size); in vol_cdev_read()
217 tbuf = vmalloc(tbuf_size); in vol_cdev_read()
221 len = count > tbuf_size ? tbuf_size : count; in vol_cdev_read()
250 len = count > tbuf_size ? tbuf_size : count; in vol_cdev_read()
267 int lnum, off, len, tbuf_size, err = 0; in vol_cdev_direct_write() local
295 tbuf_size = vol->usable_leb_size; in vol_cdev_direct_write()
296 if (count < tbuf_size) in vol_cdev_direct_write()
297 tbuf_size = ALIGN(count, ubi->min_io_size); in vol_cdev_direct_write()
298 tbuf = vmalloc(tbuf_size); in vol_cdev_direct_write()
302 len = count > tbuf_size ? tbuf_size : count; in vol_cdev_direct_write()
329 len = count > tbuf_size ? tbuf_size : count; in vol_cdev_direct_write()