STps 667 drivers/scsi/st.c struct st_partstat *STps; STps 691 drivers/scsi/st.c STps = &(STp->ps[STp->partition]); STps 692 drivers/scsi/st.c if (STps->drv_block >= 0) { STps 694 drivers/scsi/st.c STps->drv_block++; STps 696 drivers/scsi/st.c STps->drv_block += STbuffer->writing / STp->block_size; STps 712 drivers/scsi/st.c STps->drv_block = -1; STps 769 drivers/scsi/st.c struct st_partstat *STps; STps 795 drivers/scsi/st.c STps = &(STp->ps[STp->partition]); STps 807 drivers/scsi/st.c if (STps->drv_block >= 0) STps 808 drivers/scsi/st.c STps->drv_block += blks; STps 812 drivers/scsi/st.c STps->drv_block = (-1); STps 816 drivers/scsi/st.c if (STps->drv_block >= 0) STps 817 drivers/scsi/st.c STps->drv_block += blks; STps 833 drivers/scsi/st.c struct st_partstat *STps; STps 844 drivers/scsi/st.c STps = &(STp->ps[STp->partition]); STps 845 drivers/scsi/st.c if (STps->rw == ST_WRITING) /* Writing */ STps 859 drivers/scsi/st.c if (STps->eof == ST_FM_HIT) { STps 862 drivers/scsi/st.c STps->eof = ST_NOEOF; STps 864 drivers/scsi/st.c if (STps->drv_file >= 0) STps 865 drivers/scsi/st.c STps->drv_file++; STps 866 drivers/scsi/st.c STps->drv_block = 0; STps 871 drivers/scsi/st.c } else if (STps->eof == ST_FM_HIT) { STps 872 drivers/scsi/st.c if (STps->drv_file >= 0) STps 873 drivers/scsi/st.c STps->drv_file++; STps 874 drivers/scsi/st.c STps->drv_block = 0; STps 875 drivers/scsi/st.c STps->eof = ST_NOEOF; STps 936 drivers/scsi/st.c struct st_partstat *STps; STps 940 drivers/scsi/st.c STps = &(STp->ps[i]); STps 941 drivers/scsi/st.c STps->rw = ST_IDLE; STps 942 drivers/scsi/st.c STps->eof = ST_NOEOF; STps 943 drivers/scsi/st.c STps->at_sm = 0; STps 944 drivers/scsi/st.c STps->last_block_valid = 0; STps 945 drivers/scsi/st.c STps->drv_block = -1; STps 946 drivers/scsi/st.c STps->drv_file = -1; STps 1046 drivers/scsi/st.c struct st_partstat *STps; STps 1076 drivers/scsi/st.c STps = &(STp->ps[i]); STps 1077 drivers/scsi/st.c STps->rw = ST_IDLE; STps 1078 drivers/scsi/st.c STps->eof = ST_NOEOF; STps 1079 drivers/scsi/st.c STps->at_sm = 0; STps 1080 drivers/scsi/st.c STps->last_block_valid = 0; STps 1081 drivers/scsi/st.c STps->drv_block = 0; STps 1082 drivers/scsi/st.c STps->drv_file = 0; STps 1251 drivers/scsi/st.c struct st_partstat *STps; STps 1305 drivers/scsi/st.c STps = &(STp->ps[i]); STps 1306 drivers/scsi/st.c STps->rw = ST_IDLE; STps 1347 drivers/scsi/st.c struct st_partstat *STps = &(STp->ps[STp->partition]); STps 1352 drivers/scsi/st.c if (STps->rw == ST_WRITING && !STp->pos_unknown) { STps 1372 drivers/scsi/st.c if (STps->rw == ST_WRITING && !STp->pos_unknown) { STps 1402 drivers/scsi/st.c if (STps->drv_file >= 0) STps 1403 drivers/scsi/st.c STps->drv_file++; STps 1404 drivers/scsi/st.c STps->drv_block = 0; STps 1407 drivers/scsi/st.c STps->eof = ST_FM; STps 1420 drivers/scsi/st.c STps = &(STp->ps[STp->partition]); STps 1421 drivers/scsi/st.c if (!STm->sysv || STps->rw != ST_READING) { STps 1424 drivers/scsi/st.c else if (STps->eof == ST_FM_HIT) { STps 1427 drivers/scsi/st.c if (STps->drv_file >= 0) STps 1428 drivers/scsi/st.c STps->drv_file++; STps 1429 drivers/scsi/st.c STps->drv_block = 0; STps 1430 drivers/scsi/st.c STps->eof = ST_FM; STps 1432 drivers/scsi/st.c STps->eof = ST_NOEOF; STps 1434 drivers/scsi/st.c } else if ((STps->eof == ST_NOEOF && STps 1436 drivers/scsi/st.c STps->eof == ST_FM_HIT) { STps 1437 drivers/scsi/st.c if (STps->drv_file >= 0) STps 1438 drivers/scsi/st.c STps->drv_file++; STps 1439 drivers/scsi/st.c STps->drv_block = 0; STps 1440 drivers/scsi/st.c STps->eof = ST_FM; STps 1632 drivers/scsi/st.c struct st_partstat *STps; STps 1651 drivers/scsi/st.c STps = &(STp->ps[STp->partition]); STps 1659 drivers/scsi/st.c if (STps->rw == ST_READING) { STps 1663 drivers/scsi/st.c STps->rw = ST_WRITING; STps 1664 drivers/scsi/st.c } else if (STps->rw != ST_WRITING && STps 1665 drivers/scsi/st.c STps->drv_file == 0 && STps->drv_block == 0) { STps 1685 drivers/scsi/st.c STps->eof = ST_EOM_OK; STps 1687 drivers/scsi/st.c STps->eof = ST_EOM_ERROR; STps 1690 drivers/scsi/st.c if (STps->eof == ST_EOM_OK) { STps 1691 drivers/scsi/st.c STps->eof = ST_EOD_1; /* allow next write */ STps 1695 drivers/scsi/st.c else if (STps->eof == ST_EOM_ERROR) { STps 1720 drivers/scsi/st.c STps->rw = ST_WRITING; STps 1748 drivers/scsi/st.c STm->do_async_writes && STps->eof < ST_EOM_OK; STps 1751 drivers/scsi/st.c !(STp->try_dio_now && try_wdio) && STps->eof < ST_EOM_OK && STps 1812 drivers/scsi/st.c STps->eof = ST_EOM_OK; STps 1830 drivers/scsi/st.c if (STps->drv_block >= 0) { STps 1831 drivers/scsi/st.c STps->drv_block += (transfer - undone) / STps 1834 drivers/scsi/st.c STps->eof = ST_EOM_OK; STps 1846 drivers/scsi/st.c STps->eof = ST_EOM_ERROR; STps 1847 drivers/scsi/st.c STps->drv_block = (-1); /* Too cautious? */ STps 1855 drivers/scsi/st.c STps->drv_block = (-1); /* Too cautious? */ STps 1861 drivers/scsi/st.c if (STps->drv_block >= 0) { STps 1863 drivers/scsi/st.c STps->drv_block += (do_count > 0); STps 1865 drivers/scsi/st.c STps->drv_block += blks; STps 1878 drivers/scsi/st.c if (STps->eof == ST_EOD_1) STps 1879 drivers/scsi/st.c STps->eof = ST_EOM_OK; STps 1880 drivers/scsi/st.c else if (STps->eof != ST_EOM_OK) STps 1881 drivers/scsi/st.c STps->eof = ST_NOEOF; STps 1906 drivers/scsi/st.c struct st_partstat *STps; STps 1914 drivers/scsi/st.c STps = &(STp->ps[STp->partition]); STps 1915 drivers/scsi/st.c if (STps->eof == ST_FM_HIT) STps 1953 drivers/scsi/st.c STps->at_sm = 0; STps 1993 drivers/scsi/st.c if (STps->drv_block >= 0) STps 1994 drivers/scsi/st.c STps->drv_block += 1; STps 2006 drivers/scsi/st.c if (STps->drv_block >= 0) STps 2007 drivers/scsi/st.c STps->drv_block += blks - transfer + 1; STps 2019 drivers/scsi/st.c if (STps->drv_block >= 0) STps 2020 drivers/scsi/st.c STps->drv_block += 1; STps 2025 drivers/scsi/st.c if (STps->eof != ST_FM_HIT) STps 2026 drivers/scsi/st.c STps->eof = ST_FM_HIT; STps 2028 drivers/scsi/st.c STps->eof = ST_EOD_2; STps 2038 drivers/scsi/st.c if (STps->eof == ST_FM) STps 2039 drivers/scsi/st.c STps->eof = ST_EOD_1; STps 2041 drivers/scsi/st.c STps->eof = ST_EOM_OK; STps 2056 drivers/scsi/st.c STps->drv_block = (-1); STps 2057 drivers/scsi/st.c if (STps->eof == ST_FM && STps 2062 drivers/scsi/st.c STps->eof = ST_EOD_2; /* First BLANK_CHECK after FM */ STps 2083 drivers/scsi/st.c if (STps->drv_block >= 0) { STps 2085 drivers/scsi/st.c STps->drv_block++; STps 2087 drivers/scsi/st.c STps->drv_block += STbp->buffer_bytes / STp->block_size; STps 2104 drivers/scsi/st.c struct st_partstat *STps; STps 2123 drivers/scsi/st.c STps = &(STp->ps[STp->partition]); STps 2124 drivers/scsi/st.c if (STps->rw == ST_WRITING) { STps 2128 drivers/scsi/st.c STps->rw = ST_READING; STps 2131 drivers/scsi/st.c if (debugging && STps->eof != ST_NOEOF) STps 2134 drivers/scsi/st.c STps->eof, STbp->buffer_bytes); STps 2143 drivers/scsi/st.c STps->eof >= ST_EOD_1) { STps 2144 drivers/scsi/st.c if (STps->eof < ST_EOD) { STps 2145 drivers/scsi/st.c STps->eof += 1; STps 2165 drivers/scsi/st.c STps->rw = ST_READING; STps 2183 drivers/scsi/st.c if (debugging && STps->eof != ST_NOEOF) STps 2186 drivers/scsi/st.c STps->eof, STbp->buffer_bytes, STps 2210 drivers/scsi/st.c if (STps->eof == ST_FM_HIT) { STps 2211 drivers/scsi/st.c STps->eof = ST_FM; STps 2212 drivers/scsi/st.c STps->drv_block = 0; STps 2213 drivers/scsi/st.c if (STps->drv_file >= 0) STps 2214 drivers/scsi/st.c STps->drv_file++; STps 2215 drivers/scsi/st.c } else if (STps->eof == ST_EOD_1) { STps 2216 drivers/scsi/st.c STps->eof = ST_EOD_2; STps 2217 drivers/scsi/st.c STps->drv_block = 0; STps 2218 drivers/scsi/st.c if (STps->drv_file >= 0) STps 2219 drivers/scsi/st.c STps->drv_file++; STps 2220 drivers/scsi/st.c } else if (STps->eof == ST_EOD_2) STps 2221 drivers/scsi/st.c STps->eof = ST_EOD; STps 2222 drivers/scsi/st.c } else if (STps->eof == ST_FM) STps 2223 drivers/scsi/st.c STps->eof = ST_NOEOF; STps 2605 drivers/scsi/st.c struct st_partstat *STps; STps 2665 drivers/scsi/st.c STps = &(STp->ps[STp->partition]); STps 2666 drivers/scsi/st.c STps->drv_file = STps->drv_block = (-1); STps 2705 drivers/scsi/st.c struct st_partstat *STps; STps 2717 drivers/scsi/st.c STps = &(STp->ps[STp->partition]); STps 2718 drivers/scsi/st.c fileno = STps->drv_file; STps 2719 drivers/scsi/st.c blkno = STps->drv_block; STps 2720 drivers/scsi/st.c at_sm = STps->at_sm; STps 2864 drivers/scsi/st.c fileno = STps->drv_file; STps 2865 drivers/scsi/st.c if (STps->eof >= ST_EOD_1) STps 2970 drivers/scsi/st.c STps->drv_block = blkno; STps 2971 drivers/scsi/st.c STps->drv_file = fileno; STps 2972 drivers/scsi/st.c STps->at_sm = at_sm; STps 2994 drivers/scsi/st.c STps->eof = ST_EOD; STps 2996 drivers/scsi/st.c STps->eof = ST_FM; STps 2998 drivers/scsi/st.c STps->eof = ST_NOEOF; STps 3001 drivers/scsi/st.c STps->rw = ST_IDLE; /* prevent automatic WEOF at close */ STps 3009 drivers/scsi/st.c STps->eof = ST_EOM_OK; STps 3010 drivers/scsi/st.c STps->drv_block = 0; STps 3024 drivers/scsi/st.c STps->eof = ST_NOEOF; STps 3029 drivers/scsi/st.c STps->eof = ST_NOEOF; STps 3031 drivers/scsi/st.c STps->drv_file = fileno; STps 3034 drivers/scsi/st.c STps->drv_file = fileno - undone; STps 3036 drivers/scsi/st.c STps->drv_file = fileno; STps 3037 drivers/scsi/st.c STps->drv_block = -1; STps 3038 drivers/scsi/st.c STps->eof = ST_NOEOF; STps 3042 drivers/scsi/st.c if (STps->drv_file >= 0) STps 3043 drivers/scsi/st.c STps->drv_file = fileno + undone; STps 3044 drivers/scsi/st.c STps->drv_block = 0; STps 3045 drivers/scsi/st.c STps->eof = ST_NOEOF; STps 3048 drivers/scsi/st.c if (STps->drv_file >= 0) STps 3049 drivers/scsi/st.c STps->drv_file++; STps 3050 drivers/scsi/st.c STps->drv_block = 0; STps 3051 drivers/scsi/st.c STps->eof = ST_FM; STps 3054 drivers/scsi/st.c STps->drv_block = blkno - undone; STps 3056 drivers/scsi/st.c STps->drv_block = (-1); STps 3057 drivers/scsi/st.c STps->eof = ST_NOEOF; STps 3061 drivers/scsi/st.c STps->drv_file--; STps 3062 drivers/scsi/st.c STps->drv_block = (-1); STps 3066 drivers/scsi/st.c if (STps->drv_block >= 0) STps 3067 drivers/scsi/st.c STps->drv_block = blkno + undone; STps 3069 drivers/scsi/st.c STps->eof = ST_NOEOF; STps 3071 drivers/scsi/st.c STps->drv_file = (-1); STps 3072 drivers/scsi/st.c STps->drv_block = (-1); STps 3073 drivers/scsi/st.c STps->eof = ST_EOD; STps 3088 drivers/scsi/st.c STps->eof = ST_NOEOF; STps 3091 drivers/scsi/st.c STps->eof = ST_EOD; STps 3167 drivers/scsi/st.c struct st_partstat *STps; STps 3177 drivers/scsi/st.c STps = &(STp->ps[STp->partition]); STps 3190 drivers/scsi/st.c STps->last_block_valid = 0; STps 3192 drivers/scsi/st.c STps->last_block_valid = 1; STps 3193 drivers/scsi/st.c STps->last_block_visited = blk; STps 3233 drivers/scsi/st.c STps->drv_block = STps->drv_file = (-1); STps 3234 drivers/scsi/st.c STps->eof = ST_NOEOF; STps 3244 drivers/scsi/st.c STps = &(STp->ps[partition]); STps 3245 drivers/scsi/st.c if (!STps->last_block_valid || STps 3246 drivers/scsi/st.c STps->last_block_visited != block) { STps 3247 drivers/scsi/st.c STps->at_sm = 0; STps 3248 drivers/scsi/st.c STps->rw = ST_IDLE; STps 3251 drivers/scsi/st.c STps->at_sm = 0; STps 3253 drivers/scsi/st.c STps->drv_block = STps->drv_file = 0; STps 3282 drivers/scsi/st.c struct st_partstat *STps; STps 3286 drivers/scsi/st.c STps = &(STp->ps[STp->new_partition]); STps 3287 drivers/scsi/st.c if (!STps->last_block_valid) STps 3288 drivers/scsi/st.c STps->last_block_visited = 0; STps 3289 drivers/scsi/st.c return set_location(STp, STps->last_block_visited, STp->new_partition, 1); STps 3510 drivers/scsi/st.c struct st_partstat *STps; STps 3524 drivers/scsi/st.c STps = &(STp->ps[STp->partition]); STps 3569 drivers/scsi/st.c if (STps->eof == ST_FM_HIT) { STps 3573 drivers/scsi/st.c if (STps->drv_file >= 0) STps 3574 drivers/scsi/st.c STps->drv_file += 1; STps 3577 drivers/scsi/st.c if (STps->drv_file >= 0) STps 3578 drivers/scsi/st.c STps->drv_file += 1; STps 3600 drivers/scsi/st.c if (STps->rw == ST_WRITING && STps 3611 drivers/scsi/st.c STps->rw = ST_IDLE; STps 3637 drivers/scsi/st.c STps->rw = ST_IDLE; /* Prevent automatic WEOF and fsf */ STps 3690 drivers/scsi/st.c STps->drv_block = STps->drv_file = 0; STps 3757 drivers/scsi/st.c mt_status.mt_blkno = STps->drv_block; STps 3758 drivers/scsi/st.c mt_status.mt_fileno = STps->drv_file; STps 3760 drivers/scsi/st.c if (STps->rw == ST_WRITING) STps 3763 drivers/scsi/st.c else if (STps->rw == ST_READING) STps 3780 drivers/scsi/st.c if (STps->eof == ST_EOM_OK || STps->eof == ST_EOM_ERROR) STps 3782 drivers/scsi/st.c else if (STps->eof >= ST_EOM_OK) STps 3794 drivers/scsi/st.c if (STps->at_sm) STps 4261 drivers/scsi/st.c struct st_partstat *STps; STps 4359 drivers/scsi/st.c STps = &(tpnt->ps[i]); STps 4360 drivers/scsi/st.c STps->rw = ST_IDLE; STps 4361 drivers/scsi/st.c STps->eof = ST_NOEOF; STps 4362 drivers/scsi/st.c STps->at_sm = 0; STps 4363 drivers/scsi/st.c STps->last_block_valid = 0; STps 4364 drivers/scsi/st.c STps->drv_block = (-1); STps 4365 drivers/scsi/st.c STps->drv_file = (-1);