Lines Matching refs:tbuf_size
212 int err, lnum, off, len, tbuf_size; in vol_cdev_read() local
236 tbuf_size = vol->usable_leb_size; in vol_cdev_read()
237 if (count < tbuf_size) in vol_cdev_read()
238 tbuf_size = ALIGN(count, ubi->min_io_size); in vol_cdev_read()
239 tbuf = vmalloc(tbuf_size); in vol_cdev_read()
243 len = count > tbuf_size ? tbuf_size : count; in vol_cdev_read()
272 len = count > tbuf_size ? tbuf_size : count; in vol_cdev_read()
289 int lnum, off, len, tbuf_size, err = 0; in vol_cdev_direct_write() local
317 tbuf_size = vol->usable_leb_size; in vol_cdev_direct_write()
318 if (count < tbuf_size) in vol_cdev_direct_write()
319 tbuf_size = ALIGN(count, ubi->min_io_size); in vol_cdev_direct_write()
320 tbuf = vmalloc(tbuf_size); in vol_cdev_direct_write()
324 len = count > tbuf_size ? tbuf_size : count; in vol_cdev_direct_write()
351 len = count > tbuf_size ? tbuf_size : count; in vol_cdev_direct_write()