Lines Matching refs:blp
3457 struct tape_block *blp; in resp_locate() local
3470 for (i = 0, blp = devip->tape_blocks[partition]; in resp_locate()
3471 i < pos && i < devip->tape_eop[partition]; i++, blp++) in resp_locate()
3472 if (IS_TAPE_BLOCK_EOD(blp->fl_size)) in resp_locate()
3519 struct tape_block *blp; in resp_space() local
3532 for (i = 0, blp = devip->tape_blocks[partition] + pos; i < count; in resp_space()
3536 else if (IS_TAPE_BLOCK_FM(blp->fl_size)) in resp_space()
3540 blp--; in resp_space()
3544 for (i = 0, blp = devip->tape_blocks[partition] + pos; i < count; in resp_space()
3545 i++, pos++, blp++) { in resp_space()
3546 if (IS_TAPE_BLOCK_EOD(blp->fl_size)) in resp_space()
3548 if (IS_TAPE_BLOCK_FM(blp->fl_size)) { in resp_space()
3562 for (i = 0, blp = devip->tape_blocks[partition] + pos; in resp_space()
3563 i < count && pos >= 0; i++, pos--, blp--) { in resp_space()
3564 for (pos--, blp-- ; !IS_TAPE_BLOCK_FM(blp->fl_size) && in resp_space()
3565 pos >= 0; pos--, blp--) in resp_space()
3573 for (i = 0, blp = devip->tape_blocks[partition] + pos; in resp_space()
3574 i < count; i++, pos++, blp++) { in resp_space()
3575 for ( ; !IS_TAPE_BLOCK_FM(blp->fl_size) && in resp_space()
3576 !IS_TAPE_BLOCK_EOD(blp->fl_size) && in resp_space()
3578 pos++, blp++) in resp_space()
3580 if (IS_TAPE_BLOCK_EOD(blp->fl_size)) in resp_space()
3587 for (blp = devip->tape_blocks[partition] + pos; in resp_space()
3588 !IS_TAPE_BLOCK_EOD(blp->fl_size) && pos < devip->tape_eop[partition]; in resp_space()
3589 pos++, blp++) in resp_space()
3724 struct tape_block *blp; in resp_erase() local
3726 blp = devip->tape_blocks[partition] + pos; in resp_erase()
3727 blp->fl_size = TAPE_BLOCK_EOD_FLAG; in resp_erase()
4472 struct tape_block *blp; in resp_read_tape() local
4500 for (i = 0, blp = devip->tape_blocks[partition] + pos; in resp_read_tape()
4502 i++, pos++, blp++) { in resp_read_tape()
4504 if (IS_TAPE_BLOCK_FM(blp->fl_size)) { in resp_read_tape()
4512 if (IS_TAPE_BLOCK_EOD(blp->fl_size)) { in resp_read_tape()
4523 &(blp->data), 4, i * size, false); in resp_read_tape()
4525 if (blp->fl_size != devip->tape_blksize) { in resp_read_tape()
4533 if (blp->fl_size != size) { in resp_read_tape()
4534 if (blp->fl_size < size) in resp_read_tape()
4535 scsi_set_resid(scp, size - blp->fl_size); in resp_read_tape()
4538 0, size - blp->fl_size, in resp_read_tape()
4871 struct tape_block *blp; in resp_write_tape() local
4895 for (i = 0, blp = devip->tape_blocks[partition] + pos, ew = false; in resp_write_tape()
4896 i < num && pos < devip->tape_eop[partition] - 1; i++, pos++, blp++) { in resp_write_tape()
4897 blp->fl_size = size; in resp_write_tape()
4899 &(blp->data), 4, i * size, true); in resp_write_tape()
4906 blp->fl_size = TAPE_BLOCK_EOD_FLAG; in resp_write_tape()