taglinefilesource code
floppy235drivers/block/floppy.c#define PH_HEAD(floppy,head) (((((floppy)->stretch & 2) >>1) ^ head) << 2)
floppy236drivers/block/floppy.c#define STRETCH(floppy) ((floppy)->stretch & FD_STRETCH)
floppy392drivers/block/floppy.c#define SECTSIZE (_FD_SECTSIZE(*floppy))
floppy504drivers/block/floppy.cstatic struct floppy_struct * floppy = floppy_type;
floppy1937drivers/block/floppy.cfloppy = TYPE(device) + floppy_type;
floppy1939drivers/block/floppy.cfloppy = current_type[ DRIVE(device) ];
floppy1975drivers/block/floppy.craw_cmd->rate = floppy->rate & 0x43;
floppy1977drivers/block/floppy.cCOMMAND = FM_MODE(floppy,FD_FORMAT);
floppy1978drivers/block/floppy.cDR_SELECT = UNIT(current_drive) + PH_HEAD(floppy,format_req.head);
floppy1979drivers/block/floppy.cF_SIZECODE = FD_SIZECODE(floppy);
floppy1980drivers/block/floppy.cF_SECT_PER_TRACK = floppy->sect << 2 >> F_SIZECODE;
floppy1981drivers/block/floppy.cF_GAP = floppy->fmt_gap;
floppy1999drivers/block/floppy.cif (floppy->sect > DP->interleave_sect && F_SIZECODE == 2)
floppy2026drivers/block/floppy.csetup_format_params(format_req.track << STRETCH(floppy));
floppy2046drivers/block/floppy.cif (!floppy ||
floppy2047drivers/block/floppy.cfloppy->track > DP->tracks ||
floppy2048drivers/block/floppy.ctmp_format_req->track >= floppy->track ||
floppy2049drivers/block/floppy.ctmp_format_req->head >= floppy->head ||
floppy2050drivers/block/floppy.c(floppy->sect << 2) % (1 <<  FD_SIZECODE(floppy)) ||
floppy2051drivers/block/floppy.c!floppy->fmt_gap) {
floppy2088drivers/block/floppy.cif (block > floppy->sect)
floppy2136drivers/block/floppy.cnr_sectors = ((R_TRACK-TRACK)*floppy->head+R_HEAD-HEAD) *
floppy2137drivers/block/floppy.cfloppy->sect + ((R_SECTOR-SECTOR) <<  SIZECODE >> 2) -
floppy2138drivers/block/floppy.c(sector_t % floppy->sect) % ssize;
floppy2172drivers/block/floppy.ccurrent_type[current_drive] = floppy;
floppy2173drivers/block/floppy.cfloppy_sizes[TOMINOR(current_drive) ]= floppy->size>>1;
floppy2180drivers/block/floppy.cfloppy->name,current_drive);
floppy2181drivers/block/floppy.ccurrent_type[current_drive] = floppy;
floppy2182drivers/block/floppy.cfloppy_sizes[TOMINOR(current_drive)] = floppy->size >> 1;
floppy2225drivers/block/floppy.cmax_sector -= (max_sector % floppy->sect) % ssize;
floppy2350drivers/block/floppy.cCOMMAND = FM_MODE(floppy,FD_READ);
floppy2353drivers/block/floppy.cCOMMAND = FM_MODE(floppy,FD_WRITE);
floppy2359drivers/block/floppy.cmax_sector = floppy->sect * floppy->head;
floppy2363drivers/block/floppy.cif (floppy->track && TRACK >= floppy->track)
floppy2365drivers/block/floppy.cHEAD = sector_t / floppy->sect;
floppy2367drivers/block/floppy.cif (((floppy->stretch & FD_SWAPSIDES) || TESTF(FD_NEED_TWADDLE)) &&
floppy2368drivers/block/floppy.csector_t < floppy->sect)
floppy2369drivers/block/floppy.cmax_sector = floppy->sect;
floppy2372drivers/block/floppy.cif ((floppy->rate & FD_2M) && (!TRACK) && (!HEAD)){
floppy2373drivers/block/floppy.cmax_sector = 2 * floppy->sect / 3;
floppy2375drivers/block/floppy.ccurrent_count_sectors = minimum(floppy->sect - sector_t,
floppy2381drivers/block/floppy.cSIZECODE = FD_SIZECODE(floppy);
floppy2382drivers/block/floppy.craw_cmd->rate = floppy->rate & 0x43;
floppy2383drivers/block/floppy.cif ((floppy->rate & FD_2M) &&
floppy2392drivers/block/floppy.craw_cmd->track = TRACK << STRETCH(floppy);
floppy2393drivers/block/floppy.cDR_SELECT = UNIT(current_drive) + PH_HEAD(floppy,HEAD);
floppy2394drivers/block/floppy.cGAP = floppy->gap;
floppy2396drivers/block/floppy.cSECT_PER_TRACK = floppy->sect << 2 >> SIZECODE;
floppy2397drivers/block/floppy.cSECTOR = ((sector_t % floppy->sect) << 2 >> SIZECODE) + 1;
floppy2398drivers/block/floppy.ctracksize = floppy->sect - floppy->sect % ssize;
floppy2399drivers/block/floppy.cif (tracksize < floppy->sect){
floppy2401drivers/block/floppy.cif (tracksize <= sector_t % floppy->sect)
floppy2403drivers/block/floppy.cwhile (tracksize <= sector_t % floppy->sect){
floppy2404drivers/block/floppy.cwhile(tracksize + ssize > floppy->sect){
floppy2411drivers/block/floppy.cmax_sector = HEAD * floppy->sect + tracksize;
floppy2412drivers/block/floppy.c} else if (!TRACK && !HEAD && !(floppy->rate & FD_2M) && probing)
floppy2413drivers/block/floppy.cmax_sector = floppy->sect;
floppy2415drivers/block/floppy.caligned_sector_t = sector_t - (sector_t % floppy->sect) % ssize;
floppy2435drivers/block/floppy.cCOMMAND = FM_MODE(floppy,FD_READ);
floppy2623drivers/block/floppy.cif (!floppy) { /* Autodetection */
floppy2628drivers/block/floppy.cfloppy = NULL;
floppy2633drivers/block/floppy.cfloppy = floppy_type+DP->autodetect[DRS->probed_format];
floppy2770drivers/block/floppy.cstruct floppy_struct *floppy;
floppy2773drivers/block/floppy.cfloppy = floppy_type + type;
floppy2776drivers/block/floppy.cfloppy = floppy_type + UDP->native_format;
floppy2780drivers/block/floppy.cif (floppy->name)
floppy2781drivers/block/floppy.creturn floppy->name;
floppy26include/linux/fd.h#define FD_SIZECODE(floppy) (((((floppy)->rate&FD_SIZECODEMASK)>> 3)+ 2) %8)
floppy27include/linux/fd.h#define FD_SECTSIZE(floppy) ( (floppy)->rate & FD_2M ? \
floppy28include/linux/fd.h512 : 128 << FD_SIZECODE(floppy) )