tag | line | file | source code |
raw_cmd | 190 | drivers/block/floppy.c | #define COMMAND raw_cmd.cmd[0] |
raw_cmd | 191 | drivers/block/floppy.c | #define DR_SELECT raw_cmd.cmd[1] |
raw_cmd | 192 | drivers/block/floppy.c | #define TRACK raw_cmd.cmd[2] |
raw_cmd | 193 | drivers/block/floppy.c | #define HEAD raw_cmd.cmd[3] |
raw_cmd | 194 | drivers/block/floppy.c | #define SECTOR raw_cmd.cmd[4] |
raw_cmd | 195 | drivers/block/floppy.c | #define SIZECODE raw_cmd.cmd[5] |
raw_cmd | 196 | drivers/block/floppy.c | #define SECT_PER_TRACK raw_cmd.cmd[6] |
raw_cmd | 197 | drivers/block/floppy.c | #define GAP raw_cmd.cmd[7] |
raw_cmd | 198 | drivers/block/floppy.c | #define SIZECODE2 raw_cmd.cmd[8] |
raw_cmd | 202 | drivers/block/floppy.c | #define F_SIZECODE raw_cmd.cmd[2] |
raw_cmd | 203 | drivers/block/floppy.c | #define F_SECT_PER_TRACK raw_cmd.cmd[3] |
raw_cmd | 204 | drivers/block/floppy.c | #define F_GAP raw_cmd.cmd[4] |
raw_cmd | 205 | drivers/block/floppy.c | #define F_FILL raw_cmd.cmd[5] |
raw_cmd | 297 | drivers/block/floppy.c | static struct floppy_raw_cmd raw_cmd; |
raw_cmd | 849 | drivers/block/floppy.c | raw_cmd.length > 512 * CURRENT->nr_sectors) && |
raw_cmd | 851 | drivers/block/floppy.c | current_addr + raw_cmd.length > |
raw_cmd | 854 | drivers/block/floppy.c | current_addr, raw_cmd.length, floppy_track_buffer); |
raw_cmd | 871 | drivers/block/floppy.c | ((long)(current_addr + raw_cmd.length-1) & ~(64*1024-1))){ |
raw_cmd | 873 | drivers/block/floppy.c | current_addr, current_addr + raw_cmd.length); |
raw_cmd | 884 | drivers/block/floppy.c | (raw_cmd.flags & FD_RAW_READ)? |
raw_cmd | 887 | drivers/block/floppy.c | set_dma_count(FLOPPY_DMA, raw_cmd.length); |
raw_cmd | 960 | drivers/block/floppy.c | switch(raw_cmd.rate){ |
raw_cmd | 1036 | drivers/block/floppy.c | switch (raw_cmd.rate & 0x03) { |
raw_cmd | 1092 | drivers/block/floppy.c | if ( raw_cmd.rate == FDCS->dtr) |
raw_cmd | 1096 | drivers/block/floppy.c | outb_p(raw_cmd.rate, FD_DCR); |
raw_cmd | 1103 | drivers/block/floppy.c | FDCS->dtr = raw_cmd.rate; |
raw_cmd | 1201 | drivers/block/floppy.c | flags = raw_cmd.flags; |
raw_cmd | 1230 | drivers/block/floppy.c | for(i=0; i< raw_cmd.cmd_count; i++) |
raw_cmd | 1231 | drivers/block/floppy.c | r|=output_byte( raw_cmd.cmd[i] ); |
raw_cmd | 1319 | drivers/block/floppy.c | (raw_cmd.flags & FD_RAW_NEED_DISK)){ |
raw_cmd | 1333 | drivers/block/floppy.c | (raw_cmd.flags & FD_RAW_NEED_DISK) && |
raw_cmd | 1334 | drivers/block/floppy.c | (DRS->track <= NO_TRACK || DRS->track == raw_cmd.track)) { |
raw_cmd | 1337 | drivers/block/floppy.c | if ( raw_cmd.track ) |
raw_cmd | 1338 | drivers/block/floppy.c | track = raw_cmd.track - 1; |
raw_cmd | 1343 | drivers/block/floppy.c | raw_cmd.flags |= FD_RAW_NEED_SEEK; |
raw_cmd | 1349 | drivers/block/floppy.c | if (raw_cmd.track != DRS->track && |
raw_cmd | 1350 | drivers/block/floppy.c | (raw_cmd.flags & FD_RAW_NEED_SEEK)) |
raw_cmd | 1351 | drivers/block/floppy.c | track = raw_cmd.track; |
raw_cmd | 1588 | drivers/block/floppy.c | if (!(raw_cmd.flags & FD_RAW_NO_MOTOR)){ |
raw_cmd | 1622 | drivers/block/floppy.c | if(!(raw_cmd.flags & FD_RAW_NO_MOTOR) && |
raw_cmd | 1628 | drivers/block/floppy.c | if ( raw_cmd.flags & (FD_RAW_NEED_SEEK | FD_RAW_NEED_DISK)){ |
raw_cmd | 1821 | drivers/block/floppy.c | raw_cmd.flags = FD_RAW_WRITE | FD_RAW_INTR | FD_RAW_SPIN | |
raw_cmd | 1823 | drivers/block/floppy.c | raw_cmd.rate = floppy->rate & 0x3; |
raw_cmd | 1824 | drivers/block/floppy.c | raw_cmd.cmd_count = NR_F; |
raw_cmd | 1833 | drivers/block/floppy.c | raw_cmd.length = 4 * F_SECT_PER_TRACK; |
raw_cmd | 1873 | drivers/block/floppy.c | raw_cmd.track = format_req.track << floppy->stretch; |
raw_cmd | 2043 | drivers/block/floppy.c | buffer_track = raw_cmd.track; |
raw_cmd | 2199 | drivers/block/floppy.c | raw_cmd.flags = FD_RAW_SPIN | FD_RAW_NEED_DISK | FD_RAW_NEED_DISK | |
raw_cmd | 2201 | drivers/block/floppy.c | raw_cmd.cmd_count = NR_RW; |
raw_cmd | 2203 | drivers/block/floppy.c | raw_cmd.flags |= FD_RAW_READ; |
raw_cmd | 2206 | drivers/block/floppy.c | raw_cmd.flags |= FD_RAW_WRITE; |
raw_cmd | 2235 | drivers/block/floppy.c | raw_cmd.rate = floppy->rate & 3; |
raw_cmd | 2238 | drivers/block/floppy.c | raw_cmd.rate == 2) |
raw_cmd | 2239 | drivers/block/floppy.c | raw_cmd.rate = 1; |
raw_cmd | 2245 | drivers/block/floppy.c | raw_cmd.track = TRACK << floppy->stretch; |
raw_cmd | 2270 | drivers/block/floppy.c | if ((raw_cmd.track == buffer_track) && (current_drive == buffer_drive) && |
raw_cmd | 2285 | drivers/block/floppy.c | raw_cmd.flags &= ~FD_RAW_WRITE; |
raw_cmd | 2286 | drivers/block/floppy.c | raw_cmd.flags |= FD_RAW_READ; |
raw_cmd | 2317 | drivers/block/floppy.c | raw_cmd.length = current_count_sectors << 9; |
raw_cmd | 2326 | drivers/block/floppy.c | if (buffer_track != raw_cmd.track || /* bad track */ |
raw_cmd | 2350 | drivers/block/floppy.c | buffer_track = raw_cmd.track; |
raw_cmd | 2358 | drivers/block/floppy.c | raw_cmd.length = sector_t+current_count_sectors-aligned_sector_t; |
raw_cmd | 2359 | drivers/block/floppy.c | raw_cmd.length = ((raw_cmd.length -1)|(ssize-1))+1; |
raw_cmd | 2360 | drivers/block/floppy.c | raw_cmd.length <<= 9; |
raw_cmd | 2362 | drivers/block/floppy.c | if ((raw_cmd.length < current_count_sectors << 9) || |
raw_cmd | 2365 | drivers/block/floppy.c | (aligned_sector_t + (raw_cmd.length >> 9) > buffer_max || |
raw_cmd | 2367 | drivers/block/floppy.c | raw_cmd.length % ( 128 << SIZECODE ) || |
raw_cmd | 2368 | drivers/block/floppy.c | raw_cmd.length <= 0 || current_count_sectors <= 0){ |
raw_cmd | 2370 | drivers/block/floppy.c | raw_cmd.length, current_count_sectors); |
raw_cmd | 2390 | drivers/block/floppy.c | raw_cmd.length < 0 || |
raw_cmd | 2391 | drivers/block/floppy.c | current_addr + raw_cmd.length > |
raw_cmd | 2396 | drivers/block/floppy.c | raw_cmd.length >> 9 ); |
raw_cmd | 2405 | drivers/block/floppy.c | } else if (raw_cmd.length > CURRENT->nr_sectors << 9 || |
raw_cmd | 2409 | drivers/block/floppy.c | } else if ( raw_cmd.length < current_count_sectors << 9 ){ |
raw_cmd | 2411 | drivers/block/floppy.c | printk("bytes=%ld\n", raw_cmd.length >> 9 ); |
raw_cmd | 2532 | drivers/block/floppy.c | raw_cmd.flags= flag; |
raw_cmd | 2533 | drivers/block/floppy.c | raw_cmd.track=0; |
raw_cmd | 2534 | drivers/block/floppy.c | raw_cmd.cmd_count=0; |
raw_cmd | 2649 | drivers/block/floppy.c | COPYIN(raw_cmd); |
raw_cmd | 2650 | drivers/block/floppy.c | raw_cmd.rate &= 0x03; |
raw_cmd | 2651 | drivers/block/floppy.c | count = raw_cmd.length; |
raw_cmd | 2652 | drivers/block/floppy.c | if (raw_cmd.flags & (FD_RAW_WRITE | FD_RAW_READ)){ |
raw_cmd | 2657 | drivers/block/floppy.c | if ( raw_cmd.flags & FD_RAW_WRITE ){ |
raw_cmd | 2658 | drivers/block/floppy.c | i = verify_area(VERIFY_READ, raw_cmd.data, count ); |
raw_cmd | 2661 | drivers/block/floppy.c | memcpy_fromfs(floppy_track_buffer, raw_cmd.data, count); |
raw_cmd | 2673 | drivers/block/floppy.c | raw_cmd.flags |= FD_RAW_DISK_CHANGE; |
raw_cmd | 2675 | drivers/block/floppy.c | raw_cmd.flags &= ~FD_RAW_DISK_CHANGE; |
raw_cmd | 2676 | drivers/block/floppy.c | if(raw_cmd.flags & FD_RAW_NO_MOTOR_AFTER) |
raw_cmd | 2680 | drivers/block/floppy.c | raw_cmd.reply_count = inr; |
raw_cmd | 2681 | drivers/block/floppy.c | for( i=0; i< raw_cmd.reply_count; i++) |
raw_cmd | 2682 | drivers/block/floppy.c | raw_cmd.reply[i] = reply_buffer[i]; |
raw_cmd | 2683 | drivers/block/floppy.c | if ( raw_cmd.flags & ( FD_RAW_READ | FD_RAW_WRITE )) |
raw_cmd | 2684 | drivers/block/floppy.c | raw_cmd.length = get_dma_residue(FLOPPY_DMA); |
raw_cmd | 2691 | drivers/block/floppy.c | if ( raw_cmd.flags & FD_RAW_READ ){ |
raw_cmd | 2692 | drivers/block/floppy.c | i=fd_copyout( raw_cmd.data, floppy_track_buffer, count); |
raw_cmd | 2697 | drivers/block/floppy.c | return COPYOUT(raw_cmd); |