• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/scsi/

Lines Matching defs:partition

561 	STps = &(STp->ps[STp->partition]);
666 STps = &(STp->ps[STp->partition]);
719 STps = &(STp->ps[STp->partition]);
829 STp->partition = find_partition(STp);
830 if (STp->partition < 0)
831 STp->partition = 0;
832 STp->new_partition = STp->partition;
953 STp->partition = STp->new_partition = 0;
981 STp->partition = STp->new_partition = 0;
1084 partition support has been enabled. */
1086 "%s: Updating partition number in status.\n", name));
1087 if ((STp->partition = find_partition(STp)) < 0) {
1088 retval = STp->partition;
1091 STp->new_partition = STp->partition;
1212 struct st_partstat *STps = &(STp->ps[STp->partition]);
1282 STps = &(STp->ps[STp->partition]);
1510 STps = &(STp->ps[STp->partition]);
1773 STps = &(STp->ps[STp->partition]);
1969 STps = &(STp->ps[STp->partition]);
2492 STps = &(STp->ps[STp->partition]);
2539 STps = &(STp->ps[STp->partition]);
2919 static int get_location(struct scsi_tape *STp, unsigned int *block, int *partition,
2947 *block = *partition = 0;
2956 *partition = 0;
2962 *partition = (STp->buffer)->b_data[1];
2964 (STp->buffer)->b_data[1] == 0) /* BOP of partition 0 */
2968 *block, *partition));
2977 /* Set the tape block and partition. Negative partition means that only the
2979 static int set_location(struct scsi_tape *STp, unsigned int block, int partition,
2993 STps = &(STp->ps[STp->partition]);
2995 DEBC(printk(ST_DEB_MSG "%s: Setting block to %d and partition to %d.\n",
2996 name, block, partition));
2997 DEB(if (partition < 0)
3000 /* Update the location at the partition we are leaving */
3001 if ((!STp->can_partitions && partition != 0) ||
3002 partition >= ST_NBR_PARTITIONS)
3004 if (partition != STp->partition) {
3011 "%s: Visited block %d for partition %d saved.\n",
3012 name, blk, STp->partition));
3031 if (STp->partition != partition) {
3033 scmd[8] = partition;
3035 "%s: Trying to change partition from %d to %d\n",
3036 name, STp->partition, partition));
3056 STp->partition = p;
3059 STp->partition = partition;
3060 STps = &(STp->ps[partition]);
3080 /* Find the current partition number for the drive status. Called from open and
3081 returns either partition number of negative error code. */
3084 int i, partition;
3087 if ((i = get_location(STp, &block, &partition, 1)) < 0)
3089 if (partition >= ST_NBR_PARTITIONS)
3091 return partition;
3095 /* Change the partition if necessary */
3100 if (STp->partition == STp->new_partition)
3109 /* Functions for reading and writing the medium partition mode page. */
3136 DEBC(printk(ST_DEB_MSG "%s: Can't read medium partition page.\n",
3149 /* Partition the tape into two partitions if size > 0 or one partition if
3155 My HP C1533A drive returns only one partition size field. This is used to
3156 set the size of partition 1. There is no size field for the default partition.
3158 used to set the size of partition 1 (this is what the SCSI-3 standard specifies).
3160 partition size fields is greater than the maximum number of additional partitions
3164 and 10 when 1 partition is defined (information from Eric Lee Green). This is
3165 is acceptable also to some other old drives and enforced if the first partition
3166 size field is used for the first additional partition size.
3177 DEBC(printk(ST_DEB_MSG "%s: Can't read partition mode page.\n", name));
3202 DEBC(printk(ST_DEB_MSG "%s: Formatting tape with one partition.\n",
3254 STps = &(STp->ps[STp->partition]);
3313 /* Old position must be restored if partition will be
3316 (STp->new_partition != STp->partition);
3413 STp->partition = STp->new_partition = 0;
3504 mt_status.mt_resid = STp->partition;
4011 tpnt->partition = 0;