Lines Matching refs:blp

3460 	struct tape_block *blp;  in resp_locate()  local
3473 for (i = 0, blp = devip->tape_blocks[partition]; in resp_locate()
3474 i < pos && i < devip->tape_eop[partition]; i++, blp++) in resp_locate()
3475 if (IS_TAPE_BLOCK_EOD(blp->fl_size)) in resp_locate()
3522 struct tape_block *blp; in resp_space() local
3535 for (i = 0, blp = devip->tape_blocks[partition] + pos; i < count; in resp_space()
3539 else if (IS_TAPE_BLOCK_FM(blp->fl_size)) in resp_space()
3543 blp--; in resp_space()
3547 for (i = 0, blp = devip->tape_blocks[partition] + pos; i < count; in resp_space()
3548 i++, pos++, blp++) { in resp_space()
3549 if (IS_TAPE_BLOCK_EOD(blp->fl_size)) in resp_space()
3551 if (IS_TAPE_BLOCK_FM(blp->fl_size)) { in resp_space()
3565 for (i = 0, blp = devip->tape_blocks[partition] + pos; in resp_space()
3566 i < count && pos >= 0; i++, pos--, blp--) { in resp_space()
3567 for (pos--, blp-- ; !IS_TAPE_BLOCK_FM(blp->fl_size) && in resp_space()
3568 pos >= 0; pos--, blp--) in resp_space()
3576 for (i = 0, blp = devip->tape_blocks[partition] + pos; in resp_space()
3577 i < count; i++, pos++, blp++) { in resp_space()
3578 for ( ; !IS_TAPE_BLOCK_FM(blp->fl_size) && in resp_space()
3579 !IS_TAPE_BLOCK_EOD(blp->fl_size) && in resp_space()
3581 pos++, blp++) in resp_space()
3583 if (IS_TAPE_BLOCK_EOD(blp->fl_size)) in resp_space()
3590 for (blp = devip->tape_blocks[partition] + pos; in resp_space()
3591 !IS_TAPE_BLOCK_EOD(blp->fl_size) && pos < devip->tape_eop[partition]; in resp_space()
3592 pos++, blp++) in resp_space()
3727 struct tape_block *blp; in resp_erase() local
3729 blp = devip->tape_blocks[partition] + pos; in resp_erase()
3730 blp->fl_size = TAPE_BLOCK_EOD_FLAG; in resp_erase()
4475 struct tape_block *blp; in resp_read_tape() local
4503 for (i = 0, blp = devip->tape_blocks[partition] + pos; in resp_read_tape()
4505 i++, pos++, blp++) { in resp_read_tape()
4507 if (IS_TAPE_BLOCK_FM(blp->fl_size)) { in resp_read_tape()
4515 if (IS_TAPE_BLOCK_EOD(blp->fl_size)) { in resp_read_tape()
4526 &(blp->data), 4, i * size, false); in resp_read_tape()
4528 if (blp->fl_size != devip->tape_blksize) { in resp_read_tape()
4536 if (blp->fl_size != size) { in resp_read_tape()
4537 if (blp->fl_size < size) in resp_read_tape()
4538 scsi_set_resid(scp, size - blp->fl_size); in resp_read_tape()
4541 0, size - blp->fl_size, in resp_read_tape()
4874 struct tape_block *blp; in resp_write_tape() local
4898 for (i = 0, blp = devip->tape_blocks[partition] + pos, ew = false; in resp_write_tape()
4899 i < num && pos < devip->tape_eop[partition] - 1; i++, pos++, blp++) { in resp_write_tape()
4900 blp->fl_size = size; in resp_write_tape()
4902 &(blp->data), 4, i * size, true); in resp_write_tape()
4909 blp->fl_size = TAPE_BLOCK_EOD_FLAG; in resp_write_tape()