Lines Matching refs:ioctl_result
3852 int i, ioctl_result; in osst_int_ioctl() local
3883 ioctl_result = osst_space_over_filemarks_forward_fast(STp, &SRpnt, cmd_in, arg); in osst_int_ioctl()
3885 ioctl_result = osst_space_over_filemarks_forward_slow(STp, &SRpnt, cmd_in, arg); in osst_int_ioctl()
3897 ioctl_result = osst_space_over_filemarks_backward(STp, &SRpnt, cmd_in, arg); in osst_int_ioctl()
3919 ioctl_result = osst_seek_logical_blk(STp, &SRpnt, logical_blk_num); in osst_int_ioctl()
3965 ioctl_result = osst_flush_write_buffer(STp, &SRpnt); in osst_int_ioctl()
3967 ioctl_result = 0; in osst_int_ioctl()
3973 ioctl_result |= osst_write_filemark(STp, &SRpnt); in osst_int_ioctl()
4051 ioctl_result = -EIO; in osst_int_ioctl()
4058 ioctl_result = -EIO; in osst_int_ioctl()
4061 ioctl_result = osst_set_frame_position(STp, &SRpnt, STp->eod_frame_ppos, 0); in osst_int_ioctl()
4069 ioctl_result = osst_reset_header(STp, &SRpnt); in osst_int_ioctl()
4071 if (i < ioctl_result) ioctl_result = i; in osst_int_ioctl()
4073 if (i < ioctl_result) ioctl_result = i; in osst_int_ioctl()
4147 ioctl_result = (STp->buffer)->syscall_result; in osst_int_ioctl()
4153 return ioctl_result; in osst_int_ioctl()
4156 if (!ioctl_result) { /* SCSI command successful */ in osst_int_ioctl()
4164 printk(OSST_DEB_MSG "osst%d:D: IOCTL (%d) Result=%d\n", dev, cmd_in, ioctl_result); in osst_int_ioctl()
4167 if (!ioctl_result) { /* success */ in osst_int_ioctl()
4189 ioctl_result = osst_seek_logical_blk(STp, &SRpnt, STp->logical_blk_num-1); in osst_int_ioctl()
4212 ioctl_result = osst_position_tape_and_confirm(STp, &SRpnt, STp->first_data_ppos); in osst_int_ioctl()
4213 if (ioctl_result > 0) in osst_int_ioctl()
4214 ioctl_result = 0; in osst_int_ioctl()
4252 ioctl_result = osst_wait_ready(STp, &SRpnt, 5 * 60, OSST_WAIT_POSITION_COMPLETE); in osst_int_ioctl()
4258 ioctl_result?"fail":"success", STp->first_frame_position, STp->frame_seq_number, in osst_int_ioctl()
4261 return ioctl_result; in osst_int_ioctl()