taglinefilesource code
floppy244drivers/block/floppy.c#define PH_HEAD(floppy,head) (((((floppy)->stretch & 2) >>1) ^ head) << 2)
floppy245drivers/block/floppy.c#define STRETCH(floppy) ((floppy)->stretch & FD_STRETCH)
floppy415drivers/block/floppy.c#define SECTSIZE ( _FD_SECTSIZE(*floppy))
floppy527drivers/block/floppy.cstatic struct floppy_struct * floppy = floppy_type;
floppy1108drivers/block/floppy.cif (!floppy)
floppy1110drivers/block/floppy.cif (floppy->rate & 0x40){
floppy1975drivers/block/floppy.cfloppy = TYPE(device) + floppy_type;
floppy1977drivers/block/floppy.cfloppy = current_type[ DRIVE(device) ];
floppy2010drivers/block/floppy.craw_cmd.rate = floppy->rate & 0x3;
floppy2012drivers/block/floppy.cCOMMAND = FM_MODE(floppy,FD_FORMAT);
floppy2013drivers/block/floppy.cDR_SELECT = UNIT(current_drive) + PH_HEAD(floppy,format_req.head);
floppy2014drivers/block/floppy.cF_SIZECODE = FD_SIZECODE(floppy);
floppy2015drivers/block/floppy.cF_SECT_PER_TRACK = floppy->sect << 2 >> F_SIZECODE;
floppy2016drivers/block/floppy.cF_GAP = floppy->fmt_gap;
floppy2034drivers/block/floppy.cif (floppy->sect > DP->interleave_sect && F_SIZECODE == 2)
floppy2060drivers/block/floppy.craw_cmd.track = format_req.track << STRETCH(floppy);
floppy2082drivers/block/floppy.cif (!floppy ||
floppy2083drivers/block/floppy.cfloppy->track > DP->tracks ||
floppy2084drivers/block/floppy.ctmp_format_req->track >= floppy->track ||
floppy2085drivers/block/floppy.ctmp_format_req->head >= floppy->head ||
floppy2086drivers/block/floppy.c(floppy->sect << 2) % (1 <<  FD_SIZECODE(floppy)) ||
floppy2087drivers/block/floppy.c!floppy->fmt_gap) {
floppy2124drivers/block/floppy.cif ( block > floppy->sect)
floppy2172drivers/block/floppy.cnr_sectors = ((R_TRACK-TRACK)*floppy->head+R_HEAD-HEAD) *
floppy2173drivers/block/floppy.cfloppy->sect + ((R_SECTOR-SECTOR) <<  SIZECODE >> 2) -
floppy2174drivers/block/floppy.c(sector_t % floppy->sect) % ssize;
floppy2210drivers/block/floppy.ccurrent_type[current_drive] = floppy;
floppy2212drivers/block/floppy.cfloppy->size >> 1;
floppy2219drivers/block/floppy.cfloppy->name,current_drive);
floppy2220drivers/block/floppy.ccurrent_type[current_drive] = floppy;
floppy2222drivers/block/floppy.cfloppy->size >> 1;
floppy2266drivers/block/floppy.cmax_sector -= (max_sector % floppy->sect ) % ssize;
floppy2391drivers/block/floppy.cCOMMAND = FM_MODE(floppy,FD_READ);
floppy2394drivers/block/floppy.cCOMMAND = FM_MODE(floppy,FD_WRITE);
floppy2400drivers/block/floppy.cmax_sector = floppy->sect * floppy->head;
floppy2404drivers/block/floppy.cif ( floppy->track && TRACK >= floppy->track )
floppy2406drivers/block/floppy.cHEAD = sector_t / floppy->sect;
floppy2408drivers/block/floppy.cif (((floppy->stretch & FD_SWAPSIDES) || TESTF( FD_NEED_TWADDLE)) && 
floppy2409drivers/block/floppy.csector_t < floppy->sect )
floppy2410drivers/block/floppy.cmax_sector = floppy->sect;
floppy2413drivers/block/floppy.cif ( (floppy->rate & FD_2M ) && (!TRACK) && (!HEAD)){
floppy2414drivers/block/floppy.cmax_sector = 2 * floppy->sect / 3;
floppy2416drivers/block/floppy.ccurrent_count_sectors =  (floppy->sect - sector_t);
floppy2423drivers/block/floppy.cSIZECODE = FD_SIZECODE(floppy);
floppy2424drivers/block/floppy.craw_cmd.rate = floppy->rate & 3;
floppy2425drivers/block/floppy.cif ((floppy->rate & FD_2M) &&
floppy2434drivers/block/floppy.craw_cmd.track = TRACK << STRETCH(floppy);
floppy2435drivers/block/floppy.cDR_SELECT = UNIT(current_drive) + PH_HEAD(floppy,HEAD);
floppy2436drivers/block/floppy.cGAP = floppy->gap;
floppy2438drivers/block/floppy.cSECT_PER_TRACK = floppy->sect << 2 >> SIZECODE;
floppy2439drivers/block/floppy.cSECTOR = ((sector_t % floppy->sect) << 2 >> SIZECODE) + 1;
floppy2440drivers/block/floppy.ctracksize = floppy->sect - floppy->sect % ssize;
floppy2441drivers/block/floppy.cif ( tracksize < floppy->sect ){
floppy2443drivers/block/floppy.cif (  tracksize <= sector_t % floppy->sect)
floppy2445drivers/block/floppy.cwhile ( tracksize <= sector_t % floppy->sect){
floppy2446drivers/block/floppy.cwhile( tracksize + ssize > floppy->sect ){
floppy2453drivers/block/floppy.cmax_sector = HEAD * floppy->sect + tracksize;
floppy2454drivers/block/floppy.c} else if ( !TRACK && !HEAD && !( floppy->rate & FD_2M ) && probing)
floppy2455drivers/block/floppy.cmax_sector = floppy->sect;
floppy2457drivers/block/floppy.caligned_sector_t = sector_t - ( sector_t % floppy->sect ) % ssize;
floppy2476drivers/block/floppy.cCOMMAND = FM_MODE(floppy,FD_READ);
floppy2664drivers/block/floppy.cif (!floppy) { /* Autodetection */
floppy2669drivers/block/floppy.cfloppy = NULL;
floppy2674drivers/block/floppy.cfloppy = floppy_type+DP->autodetect[DRS->probed_format];
floppy2806drivers/block/floppy.cstruct floppy_struct *floppy;  
floppy2809drivers/block/floppy.cfloppy = floppy_type + type;
floppy2812drivers/block/floppy.cfloppy = floppy_type + UDP->native_format;
floppy2816drivers/block/floppy.cif ( floppy->name )
floppy2817drivers/block/floppy.creturn floppy->name;
floppy52include/linux/fd.h#define FD_SIZECODE(floppy) (((((floppy)->rate&FD_SIZECODEMASK)>> 3)+ 2) %8)
floppy53include/linux/fd.h#define FD_SECTSIZE(floppy) ( (floppy)->rate & FD_2M ? \
floppy54include/linux/fd.h512 : 128 << FD_SIZECODE(floppy) )