Lines Matching refs:blp
3451 struct tape_block *blp; in resp_locate() local
3464 for (i = 0, blp = devip->tape_blocks[partition]; in resp_locate()
3465 i < pos && i < devip->tape_eop[partition]; i++, blp++) in resp_locate()
3466 if (IS_TAPE_BLOCK_EOD(blp->fl_size)) in resp_locate()
3513 struct tape_block *blp; in resp_space() local
3526 for (i = 0, blp = devip->tape_blocks[partition] + pos; i < count; in resp_space()
3530 else if (IS_TAPE_BLOCK_FM(blp->fl_size)) in resp_space()
3534 blp--; in resp_space()
3538 for (i = 0, blp = devip->tape_blocks[partition] + pos; i < count; in resp_space()
3539 i++, pos++, blp++) { in resp_space()
3540 if (IS_TAPE_BLOCK_EOD(blp->fl_size)) in resp_space()
3542 if (IS_TAPE_BLOCK_FM(blp->fl_size)) { in resp_space()
3556 for (i = 0, blp = devip->tape_blocks[partition] + pos; in resp_space()
3557 i < count && pos >= 0; i++, pos--, blp--) { in resp_space()
3558 for (pos--, blp-- ; !IS_TAPE_BLOCK_FM(blp->fl_size) && in resp_space()
3559 pos >= 0; pos--, blp--) in resp_space()
3567 for (i = 0, blp = devip->tape_blocks[partition] + pos; in resp_space()
3568 i < count; i++, pos++, blp++) { in resp_space()
3569 for ( ; !IS_TAPE_BLOCK_FM(blp->fl_size) && in resp_space()
3570 !IS_TAPE_BLOCK_EOD(blp->fl_size) && in resp_space()
3572 pos++, blp++) in resp_space()
3574 if (IS_TAPE_BLOCK_EOD(blp->fl_size)) in resp_space()
3581 for (blp = devip->tape_blocks[partition] + pos; in resp_space()
3582 !IS_TAPE_BLOCK_EOD(blp->fl_size) && pos < devip->tape_eop[partition]; in resp_space()
3583 pos++, blp++) in resp_space()
3718 struct tape_block *blp; in resp_erase() local
3720 blp = devip->tape_blocks[partition] + pos; in resp_erase()
3721 blp->fl_size = TAPE_BLOCK_EOD_FLAG; in resp_erase()
4466 struct tape_block *blp; in resp_read_tape() local
4494 for (i = 0, blp = devip->tape_blocks[partition] + pos; in resp_read_tape()
4496 i++, pos++, blp++) { in resp_read_tape()
4498 if (IS_TAPE_BLOCK_FM(blp->fl_size)) { in resp_read_tape()
4506 if (IS_TAPE_BLOCK_EOD(blp->fl_size)) { in resp_read_tape()
4517 &(blp->data), 4, i * size, false); in resp_read_tape()
4519 if (blp->fl_size != devip->tape_blksize) { in resp_read_tape()
4527 if (blp->fl_size != size) { in resp_read_tape()
4528 if (blp->fl_size < size) in resp_read_tape()
4529 scsi_set_resid(scp, size - blp->fl_size); in resp_read_tape()
4532 0, size - blp->fl_size, in resp_read_tape()
4865 struct tape_block *blp; in resp_write_tape() local
4889 for (i = 0, blp = devip->tape_blocks[partition] + pos, ew = false; in resp_write_tape()
4890 i < num && pos < devip->tape_eop[partition] - 1; i++, pos++, blp++) { in resp_write_tape()
4891 blp->fl_size = size; in resp_write_tape()
4893 &(blp->data), 4, i * size, true); in resp_write_tape()
4900 blp->fl_size = TAPE_BLOCK_EOD_FLAG; in resp_write_tape()