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

Lines Matching refs:disk

13  *   - Autodetection of disk format (DD/HD); untested yet, because I
32 * the FDC will otherwise wait forever when no disk is inserted...
36 * - more/other disk formats
41 * - Make disk format numbering independent from minors
47 * - disk formatting
60 * - Maybe a better strategy for disk change detection (does anyone
97 { "D820", 10,1640, 0, 0}, /* 3: DD disk with 82 tracks/10 sectors */
145 /* Array for translating minors into disk formats */
187 * Maximum disk size (in kilobytes). This default is used whenever the
188 * current disk size is unknown.
201 * restored upon disk change by floppy_revalidate() if valid (as seen by
211 struct atari_disk_type *disktype; /* current type of disk */
217 disk change detection) */
219 struct gendisk *disk;
257 * of the disk to save read operations. These are two separate buffers
418 * clock speed for this disk's type.
496 /* Test again later; if tested too often, it seems there is no disk
498 * at least until a disk is inserted). So we'll test only twice
506 /* This function is repeatedly called to detect disk changes (as good
950 /* If reading a whole track, wait about one disk rotation and
1069 /* try another disk type */
1071 set_capacity(unit[SelectedDrive].disk,
1086 set_capacity(unit[SelectedDrive].disk,
1259 * FDC status register accessible for check_change. If the last disk
1293 /* If the check for a disk change is done too early after this
1310 /* The detection of disk changes is a dark chapter in Atari history :-(
1317 * filesystem used on the disk and thus the contents of block 0. I've
1318 * chosen the method to always say "The disk was changed" if it is
1320 * invalidates the disk buffers if you work with write protected
1322 * due to unrecognised disk changes.
1325 static int check_floppy_change(struct gendisk *disk)
1327 struct atari_floppy_struct *p = disk->private_data;
1347 static int floppy_revalidate(struct gendisk *disk)
1349 struct atari_floppy_struct *p = disk->private_data;
1425 set_capacity(floppy->disk, UDT->blocks);
1430 /* user supplied disk type */
1432 printk(KERN_WARNING "fd%d: invalid disk format", drive );
1437 printk(KERN_WARNING "fd%d: unsupported disk format", drive );
1443 set_capacity(floppy->disk, UDT->blocks);
1489 struct gendisk *disk = inode->i_bdev->bd_disk;
1490 struct atari_floppy_struct *floppy = disk->private_data;
1536 * disk change and subsequent revalidate()! simple
1551 if (check_floppy_change(disk))
1552 floppy_revalidate(disk);
1589 set_capacity(floppy->disk, UDT->blocks);
1605 /* no matching disk type found above - setting user_params */
1611 /* set user type (reset by disk change!) */
1635 set_capacity(floppy->disk, UDT->blocks);
1658 set_capacity(floppy->disk, MAX_DISK_SIZE * 2);
1709 * whether a disk is inserted). This is done by issuing a restore
1711 * head across the whole disk) and looking at the state of the "TR00"
1761 * floppies, additionally start the disk-change and motor-off timers.
1874 return get_disk(unit[drive].disk);
1893 unit[i].disk = alloc_disk(1);
1894 if (!unit[i].disk)
1926 unit[i].disk->major = FLOPPY_MAJOR;
1927 unit[i].disk->first_minor = i;
1928 sprintf(unit[i].disk->disk_name, "fd%d", i);
1929 unit[i].disk->fops = &floppy_fops;
1930 unit[i].disk->private_data = &unit[i];
1931 unit[i].disk->queue = floppy_queue;
1932 set_capacity(unit[i].disk, MAX_DISK_SIZE * 2);
1933 add_disk(unit[i].disk);
1947 put_disk(unit[i].disk);
1998 del_gendisk(unit[i].disk);
1999 put_disk(unit[i].disk);