tag | line | file | source code |
raw_cmd | 248 | drivers/block/floppy.c | #define COMMAND raw_cmd.cmd[0] |
raw_cmd | 249 | drivers/block/floppy.c | #define DR_SELECT raw_cmd.cmd[1] |
raw_cmd | 250 | drivers/block/floppy.c | #define TRACK raw_cmd.cmd[2] |
raw_cmd | 251 | drivers/block/floppy.c | #define HEAD raw_cmd.cmd[3] |
raw_cmd | 252 | drivers/block/floppy.c | #define SECTOR raw_cmd.cmd[4] |
raw_cmd | 253 | drivers/block/floppy.c | #define SIZECODE raw_cmd.cmd[5] |
raw_cmd | 254 | drivers/block/floppy.c | #define SECT_PER_TRACK raw_cmd.cmd[6] |
raw_cmd | 255 | drivers/block/floppy.c | #define GAP raw_cmd.cmd[7] |
raw_cmd | 256 | drivers/block/floppy.c | #define SIZECODE2 raw_cmd.cmd[8] |
raw_cmd | 260 | drivers/block/floppy.c | #define F_SIZECODE raw_cmd.cmd[2] |
raw_cmd | 261 | drivers/block/floppy.c | #define F_SECT_PER_TRACK raw_cmd.cmd[3] |
raw_cmd | 262 | drivers/block/floppy.c | #define F_GAP raw_cmd.cmd[4] |
raw_cmd | 263 | drivers/block/floppy.c | #define F_FILL raw_cmd.cmd[5] |
raw_cmd | 360 | drivers/block/floppy.c | static struct floppy_raw_cmd raw_cmd; |
raw_cmd | 975 | drivers/block/floppy.c | if (raw_cmd.length == 0){ |
raw_cmd | 979 | drivers/block/floppy.c | for(i=0; i< raw_cmd.cmd_count; i++) |
raw_cmd | 980 | drivers/block/floppy.c | printk("%x,", raw_cmd.cmd[i]); |
raw_cmd | 988 | drivers/block/floppy.c | raw_cmd.length > 512 * CURRENT->nr_sectors) && |
raw_cmd | 990 | drivers/block/floppy.c | current_addr + raw_cmd.length > |
raw_cmd | 993 | drivers/block/floppy.c | current_addr, raw_cmd.length, floppy_track_buffer); |
raw_cmd | 1009 | drivers/block/floppy.c | if (CROSS_64KB(current_addr, raw_cmd.length)) { |
raw_cmd | 1011 | drivers/block/floppy.c | current_addr, current_addr + raw_cmd.length); |
raw_cmd | 1021 | drivers/block/floppy.c | (raw_cmd.flags & FD_RAW_READ)? |
raw_cmd | 1024 | drivers/block/floppy.c | set_dma_count(FLOPPY_DMA, raw_cmd.length); |
raw_cmd | 1111 | drivers/block/floppy.c | switch(raw_cmd.rate){ |
raw_cmd | 1187 | drivers/block/floppy.c | switch (raw_cmd.rate & 0x03) { |
raw_cmd | 1243 | drivers/block/floppy.c | if ( raw_cmd.rate == FDCS->dtr) |
raw_cmd | 1247 | drivers/block/floppy.c | outb_p(raw_cmd.rate, FD_DCR); |
raw_cmd | 1254 | drivers/block/floppy.c | FDCS->dtr = raw_cmd.rate; |
raw_cmd | 1352 | drivers/block/floppy.c | flags = raw_cmd.flags; |
raw_cmd | 1381 | drivers/block/floppy.c | for(i=0; i< raw_cmd.cmd_count; i++) |
raw_cmd | 1382 | drivers/block/floppy.c | r|=output_byte( raw_cmd.cmd[i] ); |
raw_cmd | 1470 | drivers/block/floppy.c | (raw_cmd.flags & FD_RAW_NEED_DISK)){ |
raw_cmd | 1484 | drivers/block/floppy.c | (raw_cmd.flags & FD_RAW_NEED_DISK) && |
raw_cmd | 1485 | drivers/block/floppy.c | (DRS->track <= NO_TRACK || DRS->track == raw_cmd.track)) { |
raw_cmd | 1488 | drivers/block/floppy.c | if ( raw_cmd.track ) |
raw_cmd | 1489 | drivers/block/floppy.c | track = raw_cmd.track - 1; |
raw_cmd | 1494 | drivers/block/floppy.c | raw_cmd.flags |= FD_RAW_NEED_SEEK; |
raw_cmd | 1500 | drivers/block/floppy.c | if (raw_cmd.track != DRS->track && |
raw_cmd | 1501 | drivers/block/floppy.c | (raw_cmd.flags & FD_RAW_NEED_SEEK)) |
raw_cmd | 1502 | drivers/block/floppy.c | track = raw_cmd.track; |
raw_cmd | 1775 | drivers/block/floppy.c | if (!(raw_cmd.flags & FD_RAW_NO_MOTOR)){ |
raw_cmd | 1809 | drivers/block/floppy.c | if(!(raw_cmd.flags & FD_RAW_NO_MOTOR) && |
raw_cmd | 1815 | drivers/block/floppy.c | if ( raw_cmd.flags & (FD_RAW_NEED_SEEK | FD_RAW_NEED_DISK)){ |
raw_cmd | 2008 | drivers/block/floppy.c | raw_cmd.flags = FD_RAW_WRITE | FD_RAW_INTR | FD_RAW_SPIN | |
raw_cmd | 2010 | drivers/block/floppy.c | raw_cmd.rate = floppy->rate & 0x3; |
raw_cmd | 2011 | drivers/block/floppy.c | raw_cmd.cmd_count = NR_F; |
raw_cmd | 2020 | drivers/block/floppy.c | raw_cmd.length = 4 * F_SECT_PER_TRACK; |
raw_cmd | 2060 | drivers/block/floppy.c | raw_cmd.track = format_req.track << STRETCH(floppy); |
raw_cmd | 2230 | drivers/block/floppy.c | buffer_track = raw_cmd.track; |
raw_cmd | 2386 | drivers/block/floppy.c | raw_cmd.flags = FD_RAW_SPIN | FD_RAW_NEED_DISK | FD_RAW_NEED_DISK | |
raw_cmd | 2388 | drivers/block/floppy.c | raw_cmd.cmd_count = NR_RW; |
raw_cmd | 2390 | drivers/block/floppy.c | raw_cmd.flags |= FD_RAW_READ; |
raw_cmd | 2393 | drivers/block/floppy.c | raw_cmd.flags |= FD_RAW_WRITE; |
raw_cmd | 2424 | drivers/block/floppy.c | raw_cmd.rate = floppy->rate & 3; |
raw_cmd | 2427 | drivers/block/floppy.c | raw_cmd.rate == 2) |
raw_cmd | 2428 | drivers/block/floppy.c | raw_cmd.rate = 1; |
raw_cmd | 2434 | drivers/block/floppy.c | raw_cmd.track = TRACK << STRETCH(floppy); |
raw_cmd | 2459 | drivers/block/floppy.c | if ((raw_cmd.track == buffer_track) && (current_drive == buffer_drive) && |
raw_cmd | 2474 | drivers/block/floppy.c | raw_cmd.flags &= ~FD_RAW_WRITE; |
raw_cmd | 2475 | drivers/block/floppy.c | raw_cmd.flags |= FD_RAW_READ; |
raw_cmd | 2505 | drivers/block/floppy.c | raw_cmd.length = current_count_sectors << 9; |
raw_cmd | 2506 | drivers/block/floppy.c | if (raw_cmd.length == 0){ |
raw_cmd | 2520 | drivers/block/floppy.c | if (buffer_track != raw_cmd.track || /* bad track */ |
raw_cmd | 2544 | drivers/block/floppy.c | buffer_track = raw_cmd.track; |
raw_cmd | 2552 | drivers/block/floppy.c | raw_cmd.length = sector_t+current_count_sectors-aligned_sector_t; |
raw_cmd | 2553 | drivers/block/floppy.c | raw_cmd.length = ((raw_cmd.length -1)|(ssize-1))+1; |
raw_cmd | 2554 | drivers/block/floppy.c | raw_cmd.length <<= 9; |
raw_cmd | 2556 | drivers/block/floppy.c | if ((raw_cmd.length < current_count_sectors << 9) || |
raw_cmd | 2559 | drivers/block/floppy.c | (aligned_sector_t + (raw_cmd.length >> 9) > buffer_max || |
raw_cmd | 2561 | drivers/block/floppy.c | raw_cmd.length % ( 128 << SIZECODE ) || |
raw_cmd | 2562 | drivers/block/floppy.c | raw_cmd.length <= 0 || current_count_sectors <= 0){ |
raw_cmd | 2564 | drivers/block/floppy.c | raw_cmd.length, current_count_sectors); |
raw_cmd | 2584 | drivers/block/floppy.c | raw_cmd.length < 0 || |
raw_cmd | 2585 | drivers/block/floppy.c | current_addr + raw_cmd.length > |
raw_cmd | 2590 | drivers/block/floppy.c | raw_cmd.length >> 9 ); |
raw_cmd | 2599 | drivers/block/floppy.c | } else if (raw_cmd.length > CURRENT->nr_sectors << 9 || |
raw_cmd | 2603 | drivers/block/floppy.c | } else if ( raw_cmd.length < current_count_sectors << 9 ){ |
raw_cmd | 2605 | drivers/block/floppy.c | printk("bytes=%ld\n", raw_cmd.length >> 9 ); |
raw_cmd | 2608 | drivers/block/floppy.c | if (raw_cmd.length == 0){ |
raw_cmd | 2737 | drivers/block/floppy.c | raw_cmd.flags= flag; |
raw_cmd | 2738 | drivers/block/floppy.c | raw_cmd.track=0; |
raw_cmd | 2739 | drivers/block/floppy.c | raw_cmd.cmd_count=0; |
raw_cmd | 2852 | drivers/block/floppy.c | COPYIN(raw_cmd); |
raw_cmd | 2853 | drivers/block/floppy.c | raw_cmd.rate &= 0x03; |
raw_cmd | 2854 | drivers/block/floppy.c | count = raw_cmd.length; |
raw_cmd | 2855 | drivers/block/floppy.c | if (raw_cmd.flags & (FD_RAW_WRITE | FD_RAW_READ)){ |
raw_cmd | 2864 | drivers/block/floppy.c | if ( raw_cmd.flags & FD_RAW_WRITE ){ |
raw_cmd | 2865 | drivers/block/floppy.c | i = verify_area(VERIFY_READ, raw_cmd.data, count ); |
raw_cmd | 2868 | drivers/block/floppy.c | memcpy_fromfs(floppy_track_buffer, raw_cmd.data, count); |
raw_cmd | 2880 | drivers/block/floppy.c | raw_cmd.flags |= FD_RAW_DISK_CHANGE; |
raw_cmd | 2882 | drivers/block/floppy.c | raw_cmd.flags &= ~FD_RAW_DISK_CHANGE; |
raw_cmd | 2883 | drivers/block/floppy.c | if(raw_cmd.flags & FD_RAW_NO_MOTOR_AFTER) |
raw_cmd | 2887 | drivers/block/floppy.c | raw_cmd.reply_count = inr; |
raw_cmd | 2888 | drivers/block/floppy.c | for( i=0; i< raw_cmd.reply_count; i++) |
raw_cmd | 2889 | drivers/block/floppy.c | raw_cmd.reply[i] = reply_buffer[i]; |
raw_cmd | 2890 | drivers/block/floppy.c | if ( raw_cmd.flags & ( FD_RAW_READ | FD_RAW_WRITE )) |
raw_cmd | 2891 | drivers/block/floppy.c | raw_cmd.length = get_dma_residue(FLOPPY_DMA); |
raw_cmd | 2898 | drivers/block/floppy.c | if ( raw_cmd.flags & FD_RAW_READ ){ |
raw_cmd | 2899 | drivers/block/floppy.c | i=fd_copyout( raw_cmd.data, floppy_track_buffer, count); |
raw_cmd | 2904 | drivers/block/floppy.c | return COPYOUT(raw_cmd); |