taglinefilesource code
floppy239drivers/block/floppy.c#define PH_HEAD(floppy,head) (((((floppy)->stretch & 2) >>1) ^ head) << 2)
floppy240drivers/block/floppy.c#define STRETCH(floppy) ((floppy)->stretch & FD_STRETCH)
floppy396drivers/block/floppy.c#define SECTSIZE (_FD_SECTSIZE(*floppy))
floppy509drivers/block/floppy.cstatic struct floppy_struct * floppy = floppy_type;
floppy1942drivers/block/floppy.cfloppy = TYPE(device) + floppy_type;
floppy1944drivers/block/floppy.cfloppy = current_type[ DRIVE(device) ];
floppy1980drivers/block/floppy.craw_cmd->rate = floppy->rate & 0x43;
floppy1982drivers/block/floppy.cCOMMAND = FM_MODE(floppy,FD_FORMAT);
floppy1983drivers/block/floppy.cDR_SELECT = UNIT(current_drive) + PH_HEAD(floppy,format_req.head);
floppy1984drivers/block/floppy.cF_SIZECODE = FD_SIZECODE(floppy);
floppy1985drivers/block/floppy.cF_SECT_PER_TRACK = floppy->sect << 2 >> F_SIZECODE;
floppy1986drivers/block/floppy.cF_GAP = floppy->fmt_gap;
floppy2004drivers/block/floppy.cif (floppy->sect > DP->interleave_sect && F_SIZECODE == 2)
floppy2031drivers/block/floppy.csetup_format_params(format_req.track << STRETCH(floppy));
floppy2051drivers/block/floppy.cif (!floppy ||
floppy2052drivers/block/floppy.cfloppy->track > DP->tracks ||
floppy2053drivers/block/floppy.ctmp_format_req->track >= floppy->track ||
floppy2054drivers/block/floppy.ctmp_format_req->head >= floppy->head ||
floppy2055drivers/block/floppy.c(floppy->sect << 2) % (1 <<  FD_SIZECODE(floppy)) ||
floppy2056drivers/block/floppy.c!floppy->fmt_gap) {
floppy2092drivers/block/floppy.cif (block > floppy->sect)
floppy2140drivers/block/floppy.cnr_sectors = ((R_TRACK-TRACK)*floppy->head+R_HEAD-HEAD) *
floppy2141drivers/block/floppy.cfloppy->sect + ((R_SECTOR-SECTOR) <<  SIZECODE >> 2) -
floppy2142drivers/block/floppy.c(sector_t % floppy->sect) % ssize;
floppy2176drivers/block/floppy.ccurrent_type[current_drive] = floppy;
floppy2177drivers/block/floppy.cfloppy_sizes[TOMINOR(current_drive) ]= floppy->size>>1;
floppy2184drivers/block/floppy.cfloppy->name,current_drive);
floppy2185drivers/block/floppy.ccurrent_type[current_drive] = floppy;
floppy2186drivers/block/floppy.cfloppy_sizes[TOMINOR(current_drive)] = floppy->size >> 1;
floppy2229drivers/block/floppy.cmax_sector -= (max_sector % floppy->sect) % ssize;
floppy2354drivers/block/floppy.cCOMMAND = FM_MODE(floppy,FD_READ);
floppy2357drivers/block/floppy.cCOMMAND = FM_MODE(floppy,FD_WRITE);
floppy2363drivers/block/floppy.cmax_sector = floppy->sect * floppy->head;
floppy2367drivers/block/floppy.cif (floppy->track && TRACK >= floppy->track)
floppy2369drivers/block/floppy.cHEAD = sector_t / floppy->sect;
floppy2371drivers/block/floppy.cif (((floppy->stretch & FD_SWAPSIDES) || TESTF(FD_NEED_TWADDLE)) &&
floppy2372drivers/block/floppy.csector_t < floppy->sect)
floppy2373drivers/block/floppy.cmax_sector = floppy->sect;
floppy2376drivers/block/floppy.cif ((floppy->rate & FD_2M) && (!TRACK) && (!HEAD)){
floppy2377drivers/block/floppy.cmax_sector = 2 * floppy->sect / 3;
floppy2379drivers/block/floppy.ccurrent_count_sectors = minimum(floppy->sect - sector_t,
floppy2385drivers/block/floppy.cSIZECODE = FD_SIZECODE(floppy);
floppy2386drivers/block/floppy.craw_cmd->rate = floppy->rate & 0x43;
floppy2387drivers/block/floppy.cif ((floppy->rate & FD_2M) &&
floppy2396drivers/block/floppy.craw_cmd->track = TRACK << STRETCH(floppy);
floppy2397drivers/block/floppy.cDR_SELECT = UNIT(current_drive) + PH_HEAD(floppy,HEAD);
floppy2398drivers/block/floppy.cGAP = floppy->gap;
floppy2400drivers/block/floppy.cSECT_PER_TRACK = floppy->sect << 2 >> SIZECODE;
floppy2401drivers/block/floppy.cSECTOR = ((sector_t % floppy->sect) << 2 >> SIZECODE) + 1;
floppy2402drivers/block/floppy.ctracksize = floppy->sect - floppy->sect % ssize;
floppy2403drivers/block/floppy.cif (tracksize < floppy->sect){
floppy2405drivers/block/floppy.cif (tracksize <= sector_t % floppy->sect)
floppy2407drivers/block/floppy.cwhile (tracksize <= sector_t % floppy->sect){
floppy2408drivers/block/floppy.cwhile(tracksize + ssize > floppy->sect){
floppy2415drivers/block/floppy.cmax_sector = HEAD * floppy->sect + tracksize;
floppy2416drivers/block/floppy.c} else if (!TRACK && !HEAD && !(floppy->rate & FD_2M) && probing)
floppy2417drivers/block/floppy.cmax_sector = floppy->sect;
floppy2419drivers/block/floppy.caligned_sector_t = sector_t - (sector_t % floppy->sect) % ssize;
floppy2439drivers/block/floppy.cCOMMAND = FM_MODE(floppy,FD_READ);
floppy2627drivers/block/floppy.cif (!floppy) { /* Autodetection */
floppy2632drivers/block/floppy.cfloppy = NULL;
floppy2637drivers/block/floppy.cfloppy = floppy_type+DP->autodetect[DRS->probed_format];
floppy2774drivers/block/floppy.cstruct floppy_struct *floppy;
floppy2777drivers/block/floppy.cfloppy = floppy_type + type;
floppy2780drivers/block/floppy.cfloppy = floppy_type + UDP->native_format;
floppy2784drivers/block/floppy.cif (floppy->name)
floppy2785drivers/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) )