floppy 78 arch/arm/include/asm/floppy.h int floppy, drive_count; floppy 86 arch/arm/include/asm/floppy.h for (floppy = 0; floppy < 4; floppy ++) { floppy 101 arch/arm/include/asm/floppy.h LAST_OUT(UNIT(floppy)); floppy 108 arch/arm/include/asm/floppy.h floppy -= 1; floppy 1458 drivers/block/amiflop.c static blk_status_t amiflop_rw_cur_segment(struct amiga_floppy_struct *floppy, floppy 1461 drivers/block/amiflop.c int drive = floppy - unit; floppy 1472 drivers/block/amiflop.c track = block / (floppy->dtype->sects * floppy->type->sect_mult); floppy 1473 drivers/block/amiflop.c sector = block % (floppy->dtype->sects * floppy->type->sect_mult); floppy 1484 drivers/block/amiflop.c memcpy(data, floppy->trackbuf + sector * 512, 512); floppy 1486 drivers/block/amiflop.c memcpy(floppy->trackbuf + sector * 512, data, 512); floppy 1495 drivers/block/amiflop.c floppy->dirty = 1; floppy 1508 drivers/block/amiflop.c struct amiga_floppy_struct *floppy = rq->rq_disk->private_data; floppy 1517 drivers/block/amiflop.c err = amiflop_rw_cur_segment(floppy, rq); floppy 1487 drivers/block/ataflop.c struct atari_floppy_struct *floppy = bd->rq->rq_disk->private_data; floppy 1488 drivers/block/ataflop.c int drive = floppy - unit; floppy 1489 drivers/block/ataflop.c int type = floppy->type; floppy 1518 drivers/block/ataflop.c set_capacity(floppy->disk, UDT->blocks); floppy 1536 drivers/block/ataflop.c set_capacity(floppy->disk, UDT->blocks); floppy 1563 drivers/block/ataflop.c struct atari_floppy_struct *floppy = disk->private_data; floppy 1564 drivers/block/ataflop.c int drive = floppy - unit; floppy 1565 drivers/block/ataflop.c int type = floppy->type; floppy 1615 drivers/block/ataflop.c if (floppy->ref != 1 && floppy->ref != -1) floppy 1661 drivers/block/ataflop.c set_capacity(floppy->disk, UDT->blocks); floppy 1705 drivers/block/ataflop.c set_capacity(floppy->disk, UDT->blocks); floppy 1719 drivers/block/ataflop.c if (floppy->ref != 1 && floppy->ref != -1) floppy 1728 drivers/block/ataflop.c set_capacity(floppy->disk, MAX_DISK_SIZE * 2); floppy 319 drivers/block/floppy.c #define PH_HEAD(floppy, head) (((((floppy)->stretch & 2) >> 1) ^ head) << 2) floppy 320 drivers/block/floppy.c #define STRETCH(floppy) ((floppy)->stretch & FD_STRETCH) floppy 492 drivers/block/floppy.c #define SECTSIZE (_FD_SECTSIZE(*floppy)) floppy 2999 drivers/block/floppy.c struct floppy_struct *floppy; floppy 3002 drivers/block/floppy.c floppy = floppy_type + type; floppy 3005 drivers/block/floppy.c floppy = floppy_type + UDP->native_format; floppy 3009 drivers/block/floppy.c if (floppy->name) floppy 3010 drivers/block/floppy.c return floppy->name; floppy 4925 drivers/block/floppy.c static char *floppy; floppy 4946 drivers/block/floppy.c if (floppy) floppy 4947 drivers/block/floppy.c parse_floppy_cfg_string(floppy); floppy 4995 drivers/block/floppy.c module_param(floppy, charp, 0); floppy 65 drivers/ide/ide-floppy.c struct ide_disk_obj *floppy = drive->driver_data; floppy 83 drivers/ide/ide-floppy.c floppy->sense_key = buf[2] & 0x0F; floppy 84 drivers/ide/ide-floppy.c floppy->asc = buf[12]; floppy 85 drivers/ide/ide-floppy.c floppy->ascq = buf[13]; floppy 86 drivers/ide/ide-floppy.c floppy->progress_indication = buf[15] & 0x80 ? floppy 94 drivers/ide/ide-floppy.c "ascq = %x", floppy->sense_key, floppy 95 drivers/ide/ide-floppy.c floppy->asc, floppy->ascq); floppy 107 drivers/ide/ide-floppy.c static void ide_floppy_report_error(struct ide_disk_obj *floppy, floppy 111 drivers/ide/ide-floppy.c if (floppy->sense_key == 0x02 && floppy 112 drivers/ide/ide-floppy.c floppy->asc == 0x3a && floppy 113 drivers/ide/ide-floppy.c floppy->ascq == 0x00) floppy 118 drivers/ide/ide-floppy.c floppy->drive->name, pc->c[0], floppy->sense_key, floppy 119 drivers/ide/ide-floppy.c floppy->asc, floppy->ascq); floppy 127 drivers/ide/ide-floppy.c struct ide_disk_obj *floppy = drive->driver_data; floppy 140 drivers/ide/ide-floppy.c ide_floppy_report_error(floppy, pc); floppy 195 drivers/ide/ide-floppy.c struct ide_disk_obj *floppy = drive->driver_data; floppy 196 drivers/ide/ide-floppy.c int block = sector / floppy->bs_factor; floppy 197 drivers/ide/ide-floppy.c int blocks = blk_rq_sectors(rq) / floppy->bs_factor; floppy 216 drivers/ide/ide-floppy.c static void idefloppy_blockpc_cmd(struct ide_disk_obj *floppy, floppy 232 drivers/ide/ide-floppy.c struct ide_disk_obj *floppy = drive->driver_data; floppy 245 drivers/ide/ide-floppy.c ide_floppy_report_error(floppy, drive->failed_pc); floppy 260 drivers/ide/ide-floppy.c if (((long)blk_rq_pos(rq) % floppy->bs_factor) || floppy 261 drivers/ide/ide-floppy.c (blk_rq_sectors(rq) % floppy->bs_factor)) { floppy 266 drivers/ide/ide-floppy.c pc = &floppy->queued_pc; floppy 271 drivers/ide/ide-floppy.c pc = &floppy->queued_pc; floppy 272 drivers/ide/ide-floppy.c idefloppy_blockpc_cmd(floppy, pc, rq); floppy 318 drivers/ide/ide-floppy.c struct ide_disk_obj *floppy = drive->driver_data; floppy 319 drivers/ide/ide-floppy.c struct gendisk *disk = floppy->disk; floppy 350 drivers/ide/ide-floppy.c if (memcmp(page, &floppy->flexible_disk_page, 32)) floppy 356 drivers/ide/ide-floppy.c memcpy(&floppy->flexible_disk_page, page, 32); floppy 360 drivers/ide/ide-floppy.c lba_capacity = floppy->blocks * floppy->block_size; floppy 366 drivers/ide/ide-floppy.c floppy->blocks = floppy->block_size ? floppy 367 drivers/ide/ide-floppy.c capacity / floppy->block_size : 0; floppy 368 drivers/ide/ide-floppy.c drive->capacity64 = floppy->blocks * floppy->bs_factor; floppy 380 drivers/ide/ide-floppy.c struct ide_disk_obj *floppy = drive->driver_data; floppy 381 drivers/ide/ide-floppy.c struct gendisk *disk = floppy->disk; floppy 391 drivers/ide/ide-floppy.c floppy->blocks = 0; floppy 392 drivers/ide/ide-floppy.c floppy->bs_factor = 1; floppy 433 drivers/ide/ide-floppy.c if (memcmp(cap_desc, &floppy->cap_desc, 8)) floppy 438 drivers/ide/ide-floppy.c memcpy(&floppy->cap_desc, cap_desc, 8); floppy 444 drivers/ide/ide-floppy.c floppy->blocks = blocks; floppy 445 drivers/ide/ide-floppy.c floppy->block_size = length; floppy 446 drivers/ide/ide-floppy.c floppy->bs_factor = length / 512; floppy 447 drivers/ide/ide-floppy.c if (floppy->bs_factor != 1) floppy 453 drivers/ide/ide-floppy.c floppy->blocks * floppy->bs_factor; floppy 483 drivers/ide/ide-floppy.c struct ide_disk_obj *floppy = drive->driver_data; floppy 517 drivers/ide/ide-floppy.c ide_proc_register_driver(drive, floppy->driver); floppy 41 drivers/ide/ide-floppy_ioctl.c struct ide_disk_obj *floppy = drive->driver_data; floppy 54 drivers/ide/ide-floppy_ioctl.c if (ide_queue_pc_tail(drive, floppy->disk, pc, pc_buf, pc->req_xfer)) { floppy 122 drivers/ide/ide-floppy_ioctl.c struct ide_disk_obj *floppy = drive->driver_data; floppy 130 drivers/ide/ide-floppy_ioctl.c if (ide_queue_pc_tail(drive, floppy->disk, pc, buf, pc->req_xfer)) floppy 142 drivers/ide/ide-floppy_ioctl.c struct ide_disk_obj *floppy = drive->driver_data; floppy 146 drivers/ide/ide-floppy_ioctl.c if (floppy->openers > 1) { floppy 179 drivers/ide/ide-floppy_ioctl.c if (ide_queue_pc_tail(drive, floppy->disk, pc, buf, pc->req_xfer)) floppy 202 drivers/ide/ide-floppy_ioctl.c struct ide_disk_obj *floppy = drive->driver_data; floppy 208 drivers/ide/ide-floppy_ioctl.c if (ide_queue_pc_tail(drive, floppy->disk, pc, sense_buf, floppy 212 drivers/ide/ide-floppy_ioctl.c if (floppy->sense_key == 2 && floppy 213 drivers/ide/ide-floppy_ioctl.c floppy->asc == 4 && floppy 214 drivers/ide/ide-floppy_ioctl.c floppy->ascq == 4) floppy 215 drivers/ide/ide-floppy_ioctl.c progress_indication = floppy->progress_indication; floppy 239 drivers/ide/ide-floppy_ioctl.c struct ide_disk_obj *floppy = drive->driver_data; floppy 240 drivers/ide/ide-floppy_ioctl.c struct gendisk *disk = floppy->disk; floppy 243 drivers/ide/ide-floppy_ioctl.c if (floppy->openers > 1) floppy 552 drivers/scsi/BusLogic.h bool floppy:1; /* Byte 10 Bit 0 */ floppy 28 include/uapi/linux/fd.h #define FD_SECTBASE(floppy) ((((floppy)->stretch & FD_SECTBASEMASK) >> 2) ^ 1) floppy 35 include/uapi/linux/fd.h #define FD_SIZECODE(floppy) (((((floppy)->rate&FD_SIZECODEMASK)>> 3)+ 2) %8) floppy 36 include/uapi/linux/fd.h #define FD_SECTSIZE(floppy) ( (floppy)->rate & FD_2M ? \ floppy 37 include/uapi/linux/fd.h 512 : 128 << FD_SIZECODE(floppy) )