Lines Matching full:block_size
97 tapechar_check_idalbuffer(struct tape_device *device, size_t block_size) in tapechar_check_idalbuffer() argument
102 device->char_data.idal_buf->size == block_size) in tapechar_check_idalbuffer()
105 if (block_size > MAX_BLOCKSIZE) { in tapechar_check_idalbuffer()
107 block_size, MAX_BLOCKSIZE); in tapechar_check_idalbuffer()
112 new = idal_buffer_alloc(block_size, 0); in tapechar_check_idalbuffer()
132 size_t block_size; in tapechar_read() local
148 if (device->char_data.block_size != 0) { in tapechar_read()
149 if (count < device->char_data.block_size) { in tapechar_read()
154 block_size = device->char_data.block_size; in tapechar_read()
156 block_size = count; in tapechar_read()
159 rc = tapechar_check_idalbuffer(device, block_size); in tapechar_read()
163 DBF_EVENT(6, "TCHAR:nbytes: %lx\n", block_size); in tapechar_read()
165 request = device->discipline->read_block(device, block_size); in tapechar_read()
171 rc = block_size - request->rescnt; in tapechar_read()
190 size_t block_size; in tapechar_write() local
198 if (device->char_data.block_size != 0) { in tapechar_write()
199 if (count < device->char_data.block_size) { in tapechar_write()
204 block_size = device->char_data.block_size; in tapechar_write()
205 nblocks = count / block_size; in tapechar_write()
207 block_size = count; in tapechar_write()
211 rc = tapechar_check_idalbuffer(device, block_size); in tapechar_write()
215 DBF_EVENT(6,"TCHAR:nbytes: %lx\n", block_size); in tapechar_write()
218 request = device->discipline->write_block(device, block_size); in tapechar_write()
226 data, block_size)) { in tapechar_write()
234 block_size - request->rescnt); in tapechar_write()
235 written += block_size - request->rescnt; in tapechar_write()
238 data += block_size; in tapechar_write()
402 ((device->char_data.block_size << MT_ST_BLKSIZE_SHIFT) in __tapechar_ioctl()