Lines Matching refs:partition
688 STps = &(STp->ps[STp->partition]); in write_behind_check()
792 STps = &(STp->ps[STp->partition]); in st_flush_write_buffer()
844 STps = &(STp->ps[STp->partition]); in flush_buffer()
949 STp->partition = find_partition(STp); in reset_state()
950 if (STp->partition < 0) in reset_state()
951 STp->partition = 0; in reset_state()
952 STp->new_partition = STp->partition; in reset_state()
1071 STp->partition = STp->new_partition = 0; in check_tape()
1099 STp->partition = STp->new_partition = 0; in check_tape()
1213 if ((STp->partition = find_partition(STp)) < 0) { in check_tape()
1214 retval = STp->partition; in check_tape()
1217 STp->new_partition = STp->partition; in check_tape()
1347 struct st_partstat *STps = &(STp->ps[STp->partition]); in st_flush()
1420 STps = &(STp->ps[STp->partition]); in st_flush()
1651 STps = &(STp->ps[STp->partition]); in st_write()
1914 STps = &(STp->ps[STp->partition]); in read_tape()
2120 STps = &(STp->ps[STp->partition]); in st_read()
2662 STps = &(STp->ps[STp->partition]); in do_load_unload()
2714 STps = &(STp->ps[STp->partition]); in st_int_ioctl()
3099 static int get_location(struct scsi_tape *STp, unsigned int *block, int *partition, in get_location() argument
3127 *block = *partition = 0; in get_location()
3136 *partition = 0; in get_location()
3142 *partition = (STp->buffer)->b_data[1]; in get_location()
3148 *block, *partition); in get_location()
3159 static int set_location(struct scsi_tape *STp, unsigned int block, int partition, in set_location() argument
3172 STps = &(STp->ps[STp->partition]); in set_location()
3175 block, partition); in set_location()
3176 DEB(if (partition < 0) in set_location()
3180 if ((!STp->can_partitions && partition != 0) || in set_location()
3181 partition >= ST_NBR_PARTITIONS) in set_location()
3183 if (partition != STp->partition) { in set_location()
3191 blk, STp->partition); in set_location()
3210 if (STp->partition != partition) { in set_location()
3212 scmd[8] = partition; in set_location()
3214 "from %d to %d\n", STp->partition, in set_location()
3215 partition); in set_location()
3235 STp->partition = p; in set_location()
3238 STp->partition = partition; in set_location()
3239 STps = &(STp->ps[partition]); in set_location()
3263 int i, partition; in find_partition() local
3266 if ((i = get_location(STp, &block, &partition, 1)) < 0) in find_partition()
3268 if (partition >= ST_NBR_PARTITIONS) in find_partition()
3270 return partition; in find_partition()
3279 if (STp->partition == STp->new_partition) in switch_partition()
3424 STps = &(STp->ps[STp->partition]); in st_ioctl()
3486 (STp->new_partition != STp->partition); in st_ioctl()
3583 STp->partition = STp->new_partition = 0; in st_ioctl()
3674 mt_status.mt_resid = STp->partition; in st_ioctl()
4231 tpnt->partition = 0; in st_probe()