tag | line | file | source code |
floppy | 244 | drivers/block/floppy.c | #define PH_HEAD(floppy,head) (((((floppy)->stretch & 2) >>1) ^ head) << 2) |
floppy | 245 | drivers/block/floppy.c | #define STRETCH(floppy) ((floppy)->stretch & FD_STRETCH) |
floppy | 415 | drivers/block/floppy.c | #define SECTSIZE ( _FD_SECTSIZE(*floppy)) |
floppy | 527 | drivers/block/floppy.c | static struct floppy_struct * floppy = floppy_type; |
floppy | 1108 | drivers/block/floppy.c | if (!floppy) |
floppy | 1110 | drivers/block/floppy.c | if (floppy->rate & 0x40){ |
floppy | 1975 | drivers/block/floppy.c | floppy = TYPE(device) + floppy_type; |
floppy | 1977 | drivers/block/floppy.c | floppy = current_type[ DRIVE(device) ]; |
floppy | 2010 | drivers/block/floppy.c | raw_cmd.rate = floppy->rate & 0x3; |
floppy | 2012 | drivers/block/floppy.c | COMMAND = FM_MODE(floppy,FD_FORMAT); |
floppy | 2013 | drivers/block/floppy.c | DR_SELECT = UNIT(current_drive) + PH_HEAD(floppy,format_req.head); |
floppy | 2014 | drivers/block/floppy.c | F_SIZECODE = FD_SIZECODE(floppy); |
floppy | 2015 | drivers/block/floppy.c | F_SECT_PER_TRACK = floppy->sect << 2 >> F_SIZECODE; |
floppy | 2016 | drivers/block/floppy.c | F_GAP = floppy->fmt_gap; |
floppy | 2034 | drivers/block/floppy.c | if (floppy->sect > DP->interleave_sect && F_SIZECODE == 2) |
floppy | 2060 | drivers/block/floppy.c | raw_cmd.track = format_req.track << STRETCH(floppy); |
floppy | 2082 | drivers/block/floppy.c | if (!floppy || |
floppy | 2083 | drivers/block/floppy.c | floppy->track > DP->tracks || |
floppy | 2084 | drivers/block/floppy.c | tmp_format_req->track >= floppy->track || |
floppy | 2085 | drivers/block/floppy.c | tmp_format_req->head >= floppy->head || |
floppy | 2086 | drivers/block/floppy.c | (floppy->sect << 2) % (1 << FD_SIZECODE(floppy)) || |
floppy | 2087 | drivers/block/floppy.c | !floppy->fmt_gap) { |
floppy | 2124 | drivers/block/floppy.c | if ( block > floppy->sect) |
floppy | 2172 | drivers/block/floppy.c | nr_sectors = ((R_TRACK-TRACK)*floppy->head+R_HEAD-HEAD) * |
floppy | 2173 | drivers/block/floppy.c | floppy->sect + ((R_SECTOR-SECTOR) << SIZECODE >> 2) - |
floppy | 2174 | drivers/block/floppy.c | (sector_t % floppy->sect) % ssize; |
floppy | 2210 | drivers/block/floppy.c | current_type[current_drive] = floppy; |
floppy | 2212 | drivers/block/floppy.c | floppy->size >> 1; |
floppy | 2219 | drivers/block/floppy.c | floppy->name,current_drive); |
floppy | 2220 | drivers/block/floppy.c | current_type[current_drive] = floppy; |
floppy | 2222 | drivers/block/floppy.c | floppy->size >> 1; |
floppy | 2266 | drivers/block/floppy.c | max_sector -= (max_sector % floppy->sect ) % ssize; |
floppy | 2391 | drivers/block/floppy.c | COMMAND = FM_MODE(floppy,FD_READ); |
floppy | 2394 | drivers/block/floppy.c | COMMAND = FM_MODE(floppy,FD_WRITE); |
floppy | 2400 | drivers/block/floppy.c | max_sector = floppy->sect * floppy->head; |
floppy | 2404 | drivers/block/floppy.c | if ( floppy->track && TRACK >= floppy->track ) |
floppy | 2406 | drivers/block/floppy.c | HEAD = sector_t / floppy->sect; |
floppy | 2408 | drivers/block/floppy.c | if (((floppy->stretch & FD_SWAPSIDES) || TESTF( FD_NEED_TWADDLE)) && |
floppy | 2409 | drivers/block/floppy.c | sector_t < floppy->sect ) |
floppy | 2410 | drivers/block/floppy.c | max_sector = floppy->sect; |
floppy | 2413 | drivers/block/floppy.c | if ( (floppy->rate & FD_2M ) && (!TRACK) && (!HEAD)){ |
floppy | 2414 | drivers/block/floppy.c | max_sector = 2 * floppy->sect / 3; |
floppy | 2416 | drivers/block/floppy.c | current_count_sectors = (floppy->sect - sector_t); |
floppy | 2423 | drivers/block/floppy.c | SIZECODE = FD_SIZECODE(floppy); |
floppy | 2424 | drivers/block/floppy.c | raw_cmd.rate = floppy->rate & 3; |
floppy | 2425 | drivers/block/floppy.c | if ((floppy->rate & FD_2M) && |
floppy | 2434 | drivers/block/floppy.c | raw_cmd.track = TRACK << STRETCH(floppy); |
floppy | 2435 | drivers/block/floppy.c | DR_SELECT = UNIT(current_drive) + PH_HEAD(floppy,HEAD); |
floppy | 2436 | drivers/block/floppy.c | GAP = floppy->gap; |
floppy | 2438 | drivers/block/floppy.c | SECT_PER_TRACK = floppy->sect << 2 >> SIZECODE; |
floppy | 2439 | drivers/block/floppy.c | SECTOR = ((sector_t % floppy->sect) << 2 >> SIZECODE) + 1; |
floppy | 2440 | drivers/block/floppy.c | tracksize = floppy->sect - floppy->sect % ssize; |
floppy | 2441 | drivers/block/floppy.c | if ( tracksize < floppy->sect ){ |
floppy | 2443 | drivers/block/floppy.c | if ( tracksize <= sector_t % floppy->sect) |
floppy | 2445 | drivers/block/floppy.c | while ( tracksize <= sector_t % floppy->sect){ |
floppy | 2446 | drivers/block/floppy.c | while( tracksize + ssize > floppy->sect ){ |
floppy | 2453 | drivers/block/floppy.c | max_sector = HEAD * floppy->sect + tracksize; |
floppy | 2454 | drivers/block/floppy.c | } else if ( !TRACK && !HEAD && !( floppy->rate & FD_2M ) && probing) |
floppy | 2455 | drivers/block/floppy.c | max_sector = floppy->sect; |
floppy | 2457 | drivers/block/floppy.c | aligned_sector_t = sector_t - ( sector_t % floppy->sect ) % ssize; |
floppy | 2476 | drivers/block/floppy.c | COMMAND = FM_MODE(floppy,FD_READ); |
floppy | 2664 | drivers/block/floppy.c | if (!floppy) { /* Autodetection */ |
floppy | 2669 | drivers/block/floppy.c | floppy = NULL; |
floppy | 2674 | drivers/block/floppy.c | floppy = floppy_type+DP->autodetect[DRS->probed_format]; |
floppy | 2806 | drivers/block/floppy.c | struct floppy_struct *floppy; |
floppy | 2809 | drivers/block/floppy.c | floppy = floppy_type + type; |
floppy | 2812 | drivers/block/floppy.c | floppy = floppy_type + UDP->native_format; |
floppy | 2816 | drivers/block/floppy.c | if ( floppy->name ) |
floppy | 2817 | drivers/block/floppy.c | return floppy->name; |
floppy | 52 | include/linux/fd.h | #define FD_SIZECODE(floppy) (((((floppy)->rate&FD_SIZECODEMASK)>> 3)+ 2) %8) |
floppy | 53 | include/linux/fd.h | #define FD_SECTSIZE(floppy) ( (floppy)->rate & FD_2M ? \ |
floppy | 54 | include/linux/fd.h | 512 : 128 << FD_SIZECODE(floppy) ) |