Lines Matching refs:b_size
135 u32 b_size; member
330 (unsigned int)(bh->b_size - atomic_read(&bh->b_count)), in idetape_input_buffers()
336 if (atomic_read(&bh->b_count) == bh->b_size) { in idetape_input_buffers()
387 count = min((unsigned int)bh->b_size, (unsigned int)bcount); in idetape_update_buffers()
389 if (atomic_read(&bh->b_count) == bh->b_size) in idetape_update_buffers()
463 u32 size = bh->b_size; in ide_tape_kfree_buffer()
918 bh->b_size = b_allocd; in ide_tape_kmalloc_buffer()
919 atomic_set(&bh->b_count, full ? bh->b_size : 0); in ide_tape_kmalloc_buffer()
933 bh->b_size += b_allocd; in ide_tape_kmalloc_buffer()
940 if (b_data == bh->b_data + bh->b_size) { in ide_tape_kmalloc_buffer()
941 bh->b_size += b_allocd; in ide_tape_kmalloc_buffer()
954 bh->b_size = b_allocd; in ide_tape_kmalloc_buffer()
955 atomic_set(&bh->b_count, full ? bh->b_size : 0); in ide_tape_kmalloc_buffer()
961 bh->b_size -= tape->excess_bh_size; in ide_tape_kmalloc_buffer()
984 (bh->b_size - atomic_read(&bh->b_count)), in idetape_copy_stage_from_user()
992 if (atomic_read(&bh->b_count) == bh->b_size) { in idetape_copy_stage_from_user()
1313 min = min(i, (unsigned int)(bh->b_size - in ide_tape_flush_merge_buffer()
1407 min(count, (unsigned int)bh->b_size)); in idetape_pad_zeros()