tag | line | file | source code |
floppy | 235 | drivers/block/floppy.c | #define PH_HEAD(floppy,head) (((((floppy)->stretch & 2) >>1) ^ head) << 2) |
floppy | 236 | drivers/block/floppy.c | #define STRETCH(floppy) ((floppy)->stretch & FD_STRETCH) |
floppy | 392 | drivers/block/floppy.c | #define SECTSIZE (_FD_SECTSIZE(*floppy)) |
floppy | 504 | drivers/block/floppy.c | static struct floppy_struct * floppy = floppy_type; |
floppy | 1937 | drivers/block/floppy.c | floppy = TYPE(device) + floppy_type; |
floppy | 1939 | drivers/block/floppy.c | floppy = current_type[ DRIVE(device) ]; |
floppy | 1975 | drivers/block/floppy.c | raw_cmd->rate = floppy->rate & 0x43; |
floppy | 1977 | drivers/block/floppy.c | COMMAND = FM_MODE(floppy,FD_FORMAT); |
floppy | 1978 | drivers/block/floppy.c | DR_SELECT = UNIT(current_drive) + PH_HEAD(floppy,format_req.head); |
floppy | 1979 | drivers/block/floppy.c | F_SIZECODE = FD_SIZECODE(floppy); |
floppy | 1980 | drivers/block/floppy.c | F_SECT_PER_TRACK = floppy->sect << 2 >> F_SIZECODE; |
floppy | 1981 | drivers/block/floppy.c | F_GAP = floppy->fmt_gap; |
floppy | 1999 | drivers/block/floppy.c | if (floppy->sect > DP->interleave_sect && F_SIZECODE == 2) |
floppy | 2026 | drivers/block/floppy.c | setup_format_params(format_req.track << STRETCH(floppy)); |
floppy | 2046 | drivers/block/floppy.c | if (!floppy || |
floppy | 2047 | drivers/block/floppy.c | floppy->track > DP->tracks || |
floppy | 2048 | drivers/block/floppy.c | tmp_format_req->track >= floppy->track || |
floppy | 2049 | drivers/block/floppy.c | tmp_format_req->head >= floppy->head || |
floppy | 2050 | drivers/block/floppy.c | (floppy->sect << 2) % (1 << FD_SIZECODE(floppy)) || |
floppy | 2051 | drivers/block/floppy.c | !floppy->fmt_gap) { |
floppy | 2088 | drivers/block/floppy.c | if (block > floppy->sect) |
floppy | 2136 | drivers/block/floppy.c | nr_sectors = ((R_TRACK-TRACK)*floppy->head+R_HEAD-HEAD) * |
floppy | 2137 | drivers/block/floppy.c | floppy->sect + ((R_SECTOR-SECTOR) << SIZECODE >> 2) - |
floppy | 2138 | drivers/block/floppy.c | (sector_t % floppy->sect) % ssize; |
floppy | 2172 | drivers/block/floppy.c | current_type[current_drive] = floppy; |
floppy | 2173 | drivers/block/floppy.c | floppy_sizes[TOMINOR(current_drive) ]= floppy->size>>1; |
floppy | 2180 | drivers/block/floppy.c | floppy->name,current_drive); |
floppy | 2181 | drivers/block/floppy.c | current_type[current_drive] = floppy; |
floppy | 2182 | drivers/block/floppy.c | floppy_sizes[TOMINOR(current_drive)] = floppy->size >> 1; |
floppy | 2225 | drivers/block/floppy.c | max_sector -= (max_sector % floppy->sect) % ssize; |
floppy | 2350 | drivers/block/floppy.c | COMMAND = FM_MODE(floppy,FD_READ); |
floppy | 2353 | drivers/block/floppy.c | COMMAND = FM_MODE(floppy,FD_WRITE); |
floppy | 2359 | drivers/block/floppy.c | max_sector = floppy->sect * floppy->head; |
floppy | 2363 | drivers/block/floppy.c | if (floppy->track && TRACK >= floppy->track) |
floppy | 2365 | drivers/block/floppy.c | HEAD = sector_t / floppy->sect; |
floppy | 2367 | drivers/block/floppy.c | if (((floppy->stretch & FD_SWAPSIDES) || TESTF(FD_NEED_TWADDLE)) && |
floppy | 2368 | drivers/block/floppy.c | sector_t < floppy->sect) |
floppy | 2369 | drivers/block/floppy.c | max_sector = floppy->sect; |
floppy | 2372 | drivers/block/floppy.c | if ((floppy->rate & FD_2M) && (!TRACK) && (!HEAD)){ |
floppy | 2373 | drivers/block/floppy.c | max_sector = 2 * floppy->sect / 3; |
floppy | 2375 | drivers/block/floppy.c | current_count_sectors = minimum(floppy->sect - sector_t, |
floppy | 2381 | drivers/block/floppy.c | SIZECODE = FD_SIZECODE(floppy); |
floppy | 2382 | drivers/block/floppy.c | raw_cmd->rate = floppy->rate & 0x43; |
floppy | 2383 | drivers/block/floppy.c | if ((floppy->rate & FD_2M) && |
floppy | 2392 | drivers/block/floppy.c | raw_cmd->track = TRACK << STRETCH(floppy); |
floppy | 2393 | drivers/block/floppy.c | DR_SELECT = UNIT(current_drive) + PH_HEAD(floppy,HEAD); |
floppy | 2394 | drivers/block/floppy.c | GAP = floppy->gap; |
floppy | 2396 | drivers/block/floppy.c | SECT_PER_TRACK = floppy->sect << 2 >> SIZECODE; |
floppy | 2397 | drivers/block/floppy.c | SECTOR = ((sector_t % floppy->sect) << 2 >> SIZECODE) + 1; |
floppy | 2398 | drivers/block/floppy.c | tracksize = floppy->sect - floppy->sect % ssize; |
floppy | 2399 | drivers/block/floppy.c | if (tracksize < floppy->sect){ |
floppy | 2401 | drivers/block/floppy.c | if (tracksize <= sector_t % floppy->sect) |
floppy | 2403 | drivers/block/floppy.c | while (tracksize <= sector_t % floppy->sect){ |
floppy | 2404 | drivers/block/floppy.c | while(tracksize + ssize > floppy->sect){ |
floppy | 2411 | drivers/block/floppy.c | max_sector = HEAD * floppy->sect + tracksize; |
floppy | 2412 | drivers/block/floppy.c | } else if (!TRACK && !HEAD && !(floppy->rate & FD_2M) && probing) |
floppy | 2413 | drivers/block/floppy.c | max_sector = floppy->sect; |
floppy | 2415 | drivers/block/floppy.c | aligned_sector_t = sector_t - (sector_t % floppy->sect) % ssize; |
floppy | 2435 | drivers/block/floppy.c | COMMAND = FM_MODE(floppy,FD_READ); |
floppy | 2623 | drivers/block/floppy.c | if (!floppy) { /* Autodetection */ |
floppy | 2628 | drivers/block/floppy.c | floppy = NULL; |
floppy | 2633 | drivers/block/floppy.c | floppy = floppy_type+DP->autodetect[DRS->probed_format]; |
floppy | 2770 | drivers/block/floppy.c | struct floppy_struct *floppy; |
floppy | 2773 | drivers/block/floppy.c | floppy = floppy_type + type; |
floppy | 2776 | drivers/block/floppy.c | floppy = floppy_type + UDP->native_format; |
floppy | 2780 | drivers/block/floppy.c | if (floppy->name) |
floppy | 2781 | 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) ) |