Lines Matching refs:tbuf_size
177 int err, lnum, off, len, tbuf_size; in vol_cdev_read() local
201 tbuf_size = vol->usable_leb_size; in vol_cdev_read()
202 if (count < tbuf_size) in vol_cdev_read()
203 tbuf_size = ALIGN(count, ubi->min_io_size); in vol_cdev_read()
204 tbuf = vmalloc(tbuf_size); in vol_cdev_read()
208 len = count > tbuf_size ? tbuf_size : count; in vol_cdev_read()
237 len = count > tbuf_size ? tbuf_size : count; in vol_cdev_read()
254 int lnum, off, len, tbuf_size, err = 0; in vol_cdev_direct_write() local
282 tbuf_size = vol->usable_leb_size; in vol_cdev_direct_write()
283 if (count < tbuf_size) in vol_cdev_direct_write()
284 tbuf_size = ALIGN(count, ubi->min_io_size); in vol_cdev_direct_write()
285 tbuf = vmalloc(tbuf_size); in vol_cdev_direct_write()
289 len = count > tbuf_size ? tbuf_size : count; in vol_cdev_direct_write()
316 len = count > tbuf_size ? tbuf_size : count; in vol_cdev_direct_write()