tag | line | file | source code |
raw_cmd | 182 | drivers/block/floppy.c | #define COMMAND raw_cmd.cmd[0] |
raw_cmd | 183 | drivers/block/floppy.c | #define DR_SELECT raw_cmd.cmd[1] |
raw_cmd | 184 | drivers/block/floppy.c | #define TRACK raw_cmd.cmd[2] |
raw_cmd | 185 | drivers/block/floppy.c | #define HEAD raw_cmd.cmd[3] |
raw_cmd | 186 | drivers/block/floppy.c | #define SECTOR raw_cmd.cmd[4] |
raw_cmd | 187 | drivers/block/floppy.c | #define SIZECODE raw_cmd.cmd[5] |
raw_cmd | 188 | drivers/block/floppy.c | #define SECT_PER_TRACK raw_cmd.cmd[6] |
raw_cmd | 189 | drivers/block/floppy.c | #define GAP raw_cmd.cmd[7] |
raw_cmd | 190 | drivers/block/floppy.c | #define SIZECODE2 raw_cmd.cmd[8] |
raw_cmd | 194 | drivers/block/floppy.c | #define F_SIZECODE raw_cmd.cmd[2] |
raw_cmd | 195 | drivers/block/floppy.c | #define F_SECT_PER_TRACK raw_cmd.cmd[3] |
raw_cmd | 196 | drivers/block/floppy.c | #define F_GAP raw_cmd.cmd[4] |
raw_cmd | 197 | drivers/block/floppy.c | #define F_FILL raw_cmd.cmd[5] |
raw_cmd | 285 | drivers/block/floppy.c | static struct floppy_raw_cmd raw_cmd; |
raw_cmd | 751 | drivers/block/floppy.c | raw_cmd.length > 512 * CURRENT->nr_sectors) && |
raw_cmd | 753 | drivers/block/floppy.c | current_addr + raw_cmd.length > |
raw_cmd | 756 | drivers/block/floppy.c | current_addr, raw_cmd.length, floppy_track_buffer); |
raw_cmd | 773 | drivers/block/floppy.c | ((long)(current_addr + raw_cmd.length-1) & ~(64*1024-1))){ |
raw_cmd | 775 | drivers/block/floppy.c | current_addr, current_addr + raw_cmd.length); |
raw_cmd | 786 | drivers/block/floppy.c | (raw_cmd.flags & FD_RAW_READ)? |
raw_cmd | 789 | drivers/block/floppy.c | set_dma_count(FLOPPY_DMA, raw_cmd.length); |
raw_cmd | 861 | drivers/block/floppy.c | switch(raw_cmd.rate){ |
raw_cmd | 937 | drivers/block/floppy.c | switch (raw_cmd.rate & 0x03) { |
raw_cmd | 993 | drivers/block/floppy.c | if ( raw_cmd.rate == FDCS->dtr) |
raw_cmd | 997 | drivers/block/floppy.c | outb_p(raw_cmd.rate, FD_DCR); |
raw_cmd | 1005 | drivers/block/floppy.c | FDCS->dtr = raw_cmd.rate; |
raw_cmd | 1101 | drivers/block/floppy.c | flags = raw_cmd.flags; |
raw_cmd | 1130 | drivers/block/floppy.c | for(i=0; i< raw_cmd.cmd_count; i++) |
raw_cmd | 1131 | drivers/block/floppy.c | r|=output_byte( raw_cmd.cmd[i] ); |
raw_cmd | 1206 | drivers/block/floppy.c | if ((raw_cmd.flags & FD_RAW_NEED_DISK) && |
raw_cmd | 1220 | drivers/block/floppy.c | (raw_cmd.flags & FD_RAW_NEED_DISK) && |
raw_cmd | 1221 | drivers/block/floppy.c | (DRS->track <= NO_TRACK || DRS->track == raw_cmd.track)) { |
raw_cmd | 1224 | drivers/block/floppy.c | if ( raw_cmd.track ) |
raw_cmd | 1225 | drivers/block/floppy.c | track = raw_cmd.track - 1; |
raw_cmd | 1235 | drivers/block/floppy.c | if (raw_cmd.track != DRS->track) |
raw_cmd | 1236 | drivers/block/floppy.c | track = raw_cmd.track; |
raw_cmd | 1472 | drivers/block/floppy.c | if (!(raw_cmd.flags & FD_RAW_NO_MOTOR)){ |
raw_cmd | 1488 | drivers/block/floppy.c | if( raw_cmd.flags & FD_RAW_NO_MOTOR) |
raw_cmd | 1509 | drivers/block/floppy.c | if ( raw_cmd.flags & FD_RAW_NEED_SEEK ){ |
raw_cmd | 1693 | drivers/block/floppy.c | raw_cmd.flags = FD_RAW_WRITE | FD_RAW_INTR | FD_RAW_SPIN | |
raw_cmd | 1695 | drivers/block/floppy.c | raw_cmd.rate = floppy->rate & 0x3; |
raw_cmd | 1696 | drivers/block/floppy.c | raw_cmd.cmd_count = NR_F; |
raw_cmd | 1705 | drivers/block/floppy.c | raw_cmd.length = 4 * F_SECT_PER_TRACK; |
raw_cmd | 1745 | drivers/block/floppy.c | raw_cmd.track = format_req.track << floppy->stretch; |
raw_cmd | 1911 | drivers/block/floppy.c | buffer_track = raw_cmd.track; |
raw_cmd | 2076 | drivers/block/floppy.c | raw_cmd.flags = FD_RAW_SPIN | FD_RAW_NEED_DISK | FD_RAW_NEED_DISK | |
raw_cmd | 2078 | drivers/block/floppy.c | raw_cmd.cmd_count = NR_RW; |
raw_cmd | 2080 | drivers/block/floppy.c | raw_cmd.flags |= FD_RAW_READ; |
raw_cmd | 2083 | drivers/block/floppy.c | raw_cmd.flags |= FD_RAW_WRITE; |
raw_cmd | 2112 | drivers/block/floppy.c | raw_cmd.rate = floppy->rate & 3; |
raw_cmd | 2115 | drivers/block/floppy.c | raw_cmd.rate == 2) |
raw_cmd | 2116 | drivers/block/floppy.c | raw_cmd.rate = 1; |
raw_cmd | 2122 | drivers/block/floppy.c | raw_cmd.track = TRACK << floppy->stretch; |
raw_cmd | 2147 | drivers/block/floppy.c | if ((raw_cmd.track == buffer_track) && (current_drive == buffer_drive) && |
raw_cmd | 2162 | drivers/block/floppy.c | raw_cmd.flags &= ~FD_RAW_WRITE; |
raw_cmd | 2163 | drivers/block/floppy.c | raw_cmd.flags |= FD_RAW_READ; |
raw_cmd | 2194 | drivers/block/floppy.c | raw_cmd.length = current_count_sectors << 9; |
raw_cmd | 2203 | drivers/block/floppy.c | if (buffer_track != raw_cmd.track || /* bad track */ |
raw_cmd | 2226 | drivers/block/floppy.c | buffer_track = raw_cmd.track; |
raw_cmd | 2234 | drivers/block/floppy.c | raw_cmd.length = sector_t+current_count_sectors-aligned_sector_t; |
raw_cmd | 2235 | drivers/block/floppy.c | raw_cmd.length = ((raw_cmd.length -1)|(ssize-1))+1; |
raw_cmd | 2236 | drivers/block/floppy.c | raw_cmd.length <<= 9; |
raw_cmd | 2238 | drivers/block/floppy.c | if ((raw_cmd.length < current_count_sectors << 9) || |
raw_cmd | 2241 | drivers/block/floppy.c | (aligned_sector_t + (raw_cmd.length >> 9) > buffer_max || |
raw_cmd | 2243 | drivers/block/floppy.c | raw_cmd.length % ( 128 << SIZECODE ) || |
raw_cmd | 2244 | drivers/block/floppy.c | raw_cmd.length <= 0 || current_count_sectors <= 0){ |
raw_cmd | 2246 | drivers/block/floppy.c | raw_cmd.length, current_count_sectors); |
raw_cmd | 2266 | drivers/block/floppy.c | raw_cmd.length < 0 || |
raw_cmd | 2267 | drivers/block/floppy.c | current_addr + raw_cmd.length > |
raw_cmd | 2272 | drivers/block/floppy.c | raw_cmd.length >> 9 ); |
raw_cmd | 2281 | drivers/block/floppy.c | } else if (raw_cmd.length > CURRENT->nr_sectors << 9 || |
raw_cmd | 2285 | drivers/block/floppy.c | } else if ( raw_cmd.length < current_count_sectors << 9 ){ |
raw_cmd | 2287 | drivers/block/floppy.c | printk("bytes=%ld\n", raw_cmd.length >> 9 ); |
raw_cmd | 2328 | drivers/block/floppy.c | raw_cmd.flags=0; |
raw_cmd | 2489 | drivers/block/floppy.c | COPYIN(raw_cmd); |
raw_cmd | 2490 | drivers/block/floppy.c | raw_cmd.rate &= 0x03; |
raw_cmd | 2491 | drivers/block/floppy.c | count = raw_cmd.length; |
raw_cmd | 2492 | drivers/block/floppy.c | if (raw_cmd.flags & (FD_RAW_WRITE | FD_RAW_READ)){ |
raw_cmd | 2497 | drivers/block/floppy.c | if ( raw_cmd.flags & FD_RAW_WRITE ){ |
raw_cmd | 2498 | drivers/block/floppy.c | i = verify_area(VERIFY_READ, raw_cmd.data, count ); |
raw_cmd | 2501 | drivers/block/floppy.c | memcpy_fromfs(floppy_track_buffer, raw_cmd.data, count); |
raw_cmd | 2508 | drivers/block/floppy.c | raw_cmd.flags |= FD_RAW_DISK_CHANGE; |
raw_cmd | 2510 | drivers/block/floppy.c | raw_cmd.flags &= ~FD_RAW_DISK_CHANGE; |
raw_cmd | 2511 | drivers/block/floppy.c | if(raw_cmd.flags & FD_RAW_NO_MOTOR_AFTER) |
raw_cmd | 2515 | drivers/block/floppy.c | raw_cmd.reply_count = inr; |
raw_cmd | 2516 | drivers/block/floppy.c | for( i=0; i< raw_cmd.reply_count; i++) |
raw_cmd | 2517 | drivers/block/floppy.c | raw_cmd.reply[i] = reply_buffer[i]; |
raw_cmd | 2518 | drivers/block/floppy.c | if ( raw_cmd.flags & ( FD_RAW_READ | FD_RAW_WRITE )) |
raw_cmd | 2519 | drivers/block/floppy.c | raw_cmd.length = get_dma_residue(FLOPPY_DMA); |
raw_cmd | 2526 | drivers/block/floppy.c | if ( raw_cmd.flags & FD_RAW_READ ){ |
raw_cmd | 2527 | drivers/block/floppy.c | i=fd_copyout( raw_cmd.data, floppy_track_buffer, count); |
raw_cmd | 2532 | drivers/block/floppy.c | return COPYOUT(raw_cmd); |
raw_cmd | 2679 | drivers/block/floppy.c | raw_cmd.flags = 0; |
raw_cmd | 2970 | drivers/block/floppy.c | raw_cmd.flags=FD_RAW_NEED_SEEK|FD_RAW_NEED_DISK; |
raw_cmd | 2971 | drivers/block/floppy.c | raw_cmd.track=0; |
raw_cmd | 2972 | drivers/block/floppy.c | raw_cmd.cmd_count=0; |