tag | line | file | source code |
floppy | 239 | drivers/block/floppy.c | #define PH_HEAD(floppy,head) (((((floppy)->stretch & 2) >>1) ^ head) << 2) |
floppy | 240 | drivers/block/floppy.c | #define STRETCH(floppy) ((floppy)->stretch & FD_STRETCH) |
floppy | 396 | drivers/block/floppy.c | #define SECTSIZE (_FD_SECTSIZE(*floppy)) |
floppy | 509 | drivers/block/floppy.c | static struct floppy_struct * floppy = floppy_type; |
floppy | 1942 | drivers/block/floppy.c | floppy = TYPE(device) + floppy_type; |
floppy | 1944 | drivers/block/floppy.c | floppy = current_type[ DRIVE(device) ]; |
floppy | 1980 | drivers/block/floppy.c | raw_cmd->rate = floppy->rate & 0x43; |
floppy | 1982 | drivers/block/floppy.c | COMMAND = FM_MODE(floppy,FD_FORMAT); |
floppy | 1983 | drivers/block/floppy.c | DR_SELECT = UNIT(current_drive) + PH_HEAD(floppy,format_req.head); |
floppy | 1984 | drivers/block/floppy.c | F_SIZECODE = FD_SIZECODE(floppy); |
floppy | 1985 | drivers/block/floppy.c | F_SECT_PER_TRACK = floppy->sect << 2 >> F_SIZECODE; |
floppy | 1986 | drivers/block/floppy.c | F_GAP = floppy->fmt_gap; |
floppy | 2004 | drivers/block/floppy.c | if (floppy->sect > DP->interleave_sect && F_SIZECODE == 2) |
floppy | 2031 | drivers/block/floppy.c | setup_format_params(format_req.track << STRETCH(floppy)); |
floppy | 2051 | drivers/block/floppy.c | if (!floppy || |
floppy | 2052 | drivers/block/floppy.c | floppy->track > DP->tracks || |
floppy | 2053 | drivers/block/floppy.c | tmp_format_req->track >= floppy->track || |
floppy | 2054 | drivers/block/floppy.c | tmp_format_req->head >= floppy->head || |
floppy | 2055 | drivers/block/floppy.c | (floppy->sect << 2) % (1 << FD_SIZECODE(floppy)) || |
floppy | 2056 | drivers/block/floppy.c | !floppy->fmt_gap) { |
floppy | 2092 | drivers/block/floppy.c | if (block > floppy->sect) |
floppy | 2140 | drivers/block/floppy.c | nr_sectors = ((R_TRACK-TRACK)*floppy->head+R_HEAD-HEAD) * |
floppy | 2141 | drivers/block/floppy.c | floppy->sect + ((R_SECTOR-SECTOR) << SIZECODE >> 2) - |
floppy | 2142 | drivers/block/floppy.c | (sector_t % floppy->sect) % ssize; |
floppy | 2176 | drivers/block/floppy.c | current_type[current_drive] = floppy; |
floppy | 2177 | drivers/block/floppy.c | floppy_sizes[TOMINOR(current_drive) ]= floppy->size>>1; |
floppy | 2184 | drivers/block/floppy.c | floppy->name,current_drive); |
floppy | 2185 | drivers/block/floppy.c | current_type[current_drive] = floppy; |
floppy | 2186 | drivers/block/floppy.c | floppy_sizes[TOMINOR(current_drive)] = floppy->size >> 1; |
floppy | 2229 | drivers/block/floppy.c | max_sector -= (max_sector % floppy->sect) % ssize; |
floppy | 2354 | drivers/block/floppy.c | COMMAND = FM_MODE(floppy,FD_READ); |
floppy | 2357 | drivers/block/floppy.c | COMMAND = FM_MODE(floppy,FD_WRITE); |
floppy | 2363 | drivers/block/floppy.c | max_sector = floppy->sect * floppy->head; |
floppy | 2367 | drivers/block/floppy.c | if (floppy->track && TRACK >= floppy->track) |
floppy | 2369 | drivers/block/floppy.c | HEAD = sector_t / floppy->sect; |
floppy | 2371 | drivers/block/floppy.c | if (((floppy->stretch & FD_SWAPSIDES) || TESTF(FD_NEED_TWADDLE)) && |
floppy | 2372 | drivers/block/floppy.c | sector_t < floppy->sect) |
floppy | 2373 | drivers/block/floppy.c | max_sector = floppy->sect; |
floppy | 2376 | drivers/block/floppy.c | if ((floppy->rate & FD_2M) && (!TRACK) && (!HEAD)){ |
floppy | 2377 | drivers/block/floppy.c | max_sector = 2 * floppy->sect / 3; |
floppy | 2379 | drivers/block/floppy.c | current_count_sectors = minimum(floppy->sect - sector_t, |
floppy | 2385 | drivers/block/floppy.c | SIZECODE = FD_SIZECODE(floppy); |
floppy | 2386 | drivers/block/floppy.c | raw_cmd->rate = floppy->rate & 0x43; |
floppy | 2387 | drivers/block/floppy.c | if ((floppy->rate & FD_2M) && |
floppy | 2396 | drivers/block/floppy.c | raw_cmd->track = TRACK << STRETCH(floppy); |
floppy | 2397 | drivers/block/floppy.c | DR_SELECT = UNIT(current_drive) + PH_HEAD(floppy,HEAD); |
floppy | 2398 | drivers/block/floppy.c | GAP = floppy->gap; |
floppy | 2400 | drivers/block/floppy.c | SECT_PER_TRACK = floppy->sect << 2 >> SIZECODE; |
floppy | 2401 | drivers/block/floppy.c | SECTOR = ((sector_t % floppy->sect) << 2 >> SIZECODE) + 1; |
floppy | 2402 | drivers/block/floppy.c | tracksize = floppy->sect - floppy->sect % ssize; |
floppy | 2403 | drivers/block/floppy.c | if (tracksize < floppy->sect){ |
floppy | 2405 | drivers/block/floppy.c | if (tracksize <= sector_t % floppy->sect) |
floppy | 2407 | drivers/block/floppy.c | while (tracksize <= sector_t % floppy->sect){ |
floppy | 2408 | drivers/block/floppy.c | while(tracksize + ssize > floppy->sect){ |
floppy | 2415 | drivers/block/floppy.c | max_sector = HEAD * floppy->sect + tracksize; |
floppy | 2416 | drivers/block/floppy.c | } else if (!TRACK && !HEAD && !(floppy->rate & FD_2M) && probing) |
floppy | 2417 | drivers/block/floppy.c | max_sector = floppy->sect; |
floppy | 2419 | drivers/block/floppy.c | aligned_sector_t = sector_t - (sector_t % floppy->sect) % ssize; |
floppy | 2439 | drivers/block/floppy.c | COMMAND = FM_MODE(floppy,FD_READ); |
floppy | 2627 | drivers/block/floppy.c | if (!floppy) { /* Autodetection */ |
floppy | 2632 | drivers/block/floppy.c | floppy = NULL; |
floppy | 2637 | drivers/block/floppy.c | floppy = floppy_type+DP->autodetect[DRS->probed_format]; |
floppy | 2774 | drivers/block/floppy.c | struct floppy_struct *floppy; |
floppy | 2777 | drivers/block/floppy.c | floppy = floppy_type + type; |
floppy | 2780 | drivers/block/floppy.c | floppy = floppy_type + UDP->native_format; |
floppy | 2784 | drivers/block/floppy.c | if (floppy->name) |
floppy | 2785 | drivers/block/floppy.c | return floppy->name; |
floppy | 26 | include/linux/fd.h | #define FD_SIZECODE(floppy) (((((floppy)->rate&FD_SIZECODEMASK)>> 3)+ 2) %8) |
floppy | 27 | include/linux/fd.h | #define FD_SECTSIZE(floppy) ( (floppy)->rate & FD_2M ? \ |
floppy | 28 | include/linux/fd.h | 512 : 128 << FD_SIZECODE(floppy) ) |