taglinefilesource code
raw_cmd248drivers/block/floppy.c#define COMMAND raw_cmd.cmd[0]
raw_cmd249drivers/block/floppy.c#define DR_SELECT raw_cmd.cmd[1]
raw_cmd250drivers/block/floppy.c#define TRACK raw_cmd.cmd[2]
raw_cmd251drivers/block/floppy.c#define HEAD raw_cmd.cmd[3]
raw_cmd252drivers/block/floppy.c#define SECTOR raw_cmd.cmd[4]
raw_cmd253drivers/block/floppy.c#define SIZECODE raw_cmd.cmd[5]
raw_cmd254drivers/block/floppy.c#define SECT_PER_TRACK raw_cmd.cmd[6]
raw_cmd255drivers/block/floppy.c#define GAP raw_cmd.cmd[7]
raw_cmd256drivers/block/floppy.c#define SIZECODE2 raw_cmd.cmd[8]
raw_cmd260drivers/block/floppy.c#define F_SIZECODE raw_cmd.cmd[2]
raw_cmd261drivers/block/floppy.c#define F_SECT_PER_TRACK raw_cmd.cmd[3]
raw_cmd262drivers/block/floppy.c#define F_GAP raw_cmd.cmd[4]
raw_cmd263drivers/block/floppy.c#define F_FILL raw_cmd.cmd[5]
raw_cmd360drivers/block/floppy.cstatic struct floppy_raw_cmd raw_cmd;
raw_cmd975drivers/block/floppy.cif (raw_cmd.length == 0){
raw_cmd979drivers/block/floppy.cfor(i=0; i< raw_cmd.cmd_count; i++)
raw_cmd980drivers/block/floppy.cprintk("%x,", raw_cmd.cmd[i]);
raw_cmd988drivers/block/floppy.craw_cmd.length > 512 * CURRENT->nr_sectors) &&
raw_cmd990drivers/block/floppy.ccurrent_addr + raw_cmd.length >
raw_cmd993drivers/block/floppy.ccurrent_addr, raw_cmd.length, floppy_track_buffer);
raw_cmd1009drivers/block/floppy.cif (CROSS_64KB(current_addr, raw_cmd.length)) {
raw_cmd1011drivers/block/floppy.ccurrent_addr, current_addr + raw_cmd.length);
raw_cmd1021drivers/block/floppy.c(raw_cmd.flags & FD_RAW_READ)?
raw_cmd1024drivers/block/floppy.cset_dma_count(FLOPPY_DMA, raw_cmd.length);
raw_cmd1111drivers/block/floppy.cswitch(raw_cmd.rate){
raw_cmd1187drivers/block/floppy.cswitch (raw_cmd.rate & 0x03) {
raw_cmd1243drivers/block/floppy.cif ( raw_cmd.rate == FDCS->dtr)
raw_cmd1247drivers/block/floppy.coutb_p(raw_cmd.rate, FD_DCR);
raw_cmd1254drivers/block/floppy.cFDCS->dtr = raw_cmd.rate;
raw_cmd1352drivers/block/floppy.cflags = raw_cmd.flags;
raw_cmd1381drivers/block/floppy.cfor(i=0; i< raw_cmd.cmd_count; i++)
raw_cmd1382drivers/block/floppy.cr|=output_byte( raw_cmd.cmd[i] );
raw_cmd1470drivers/block/floppy.c(raw_cmd.flags & FD_RAW_NEED_DISK)){
raw_cmd1484drivers/block/floppy.c(raw_cmd.flags & FD_RAW_NEED_DISK) &&
raw_cmd1485drivers/block/floppy.c(DRS->track <= NO_TRACK || DRS->track == raw_cmd.track)) {
raw_cmd1488drivers/block/floppy.cif ( raw_cmd.track )
raw_cmd1489drivers/block/floppy.ctrack = raw_cmd.track - 1;
raw_cmd1494drivers/block/floppy.craw_cmd.flags |= FD_RAW_NEED_SEEK;
raw_cmd1500drivers/block/floppy.cif (raw_cmd.track != DRS->track &&
raw_cmd1501drivers/block/floppy.c(raw_cmd.flags & FD_RAW_NEED_SEEK))
raw_cmd1502drivers/block/floppy.ctrack = raw_cmd.track;
raw_cmd1775drivers/block/floppy.cif (!(raw_cmd.flags & FD_RAW_NO_MOTOR)){
raw_cmd1809drivers/block/floppy.cif(!(raw_cmd.flags & FD_RAW_NO_MOTOR) &&
raw_cmd1815drivers/block/floppy.cif ( raw_cmd.flags & (FD_RAW_NEED_SEEK | FD_RAW_NEED_DISK)){
raw_cmd2008drivers/block/floppy.craw_cmd.flags = FD_RAW_WRITE | FD_RAW_INTR | FD_RAW_SPIN |
raw_cmd2010drivers/block/floppy.craw_cmd.rate = floppy->rate & 0x3;
raw_cmd2011drivers/block/floppy.craw_cmd.cmd_count = NR_F;
raw_cmd2020drivers/block/floppy.craw_cmd.length = 4 * F_SECT_PER_TRACK;
raw_cmd2060drivers/block/floppy.craw_cmd.track = format_req.track << STRETCH(floppy);
raw_cmd2230drivers/block/floppy.cbuffer_track = raw_cmd.track;
raw_cmd2386drivers/block/floppy.craw_cmd.flags = FD_RAW_SPIN | FD_RAW_NEED_DISK | FD_RAW_NEED_DISK |
raw_cmd2388drivers/block/floppy.craw_cmd.cmd_count = NR_RW;
raw_cmd2390drivers/block/floppy.craw_cmd.flags |= FD_RAW_READ;
raw_cmd2393drivers/block/floppy.craw_cmd.flags |= FD_RAW_WRITE;
raw_cmd2424drivers/block/floppy.craw_cmd.rate = floppy->rate & 3;
raw_cmd2427drivers/block/floppy.craw_cmd.rate == 2)
raw_cmd2428drivers/block/floppy.craw_cmd.rate = 1;
raw_cmd2434drivers/block/floppy.craw_cmd.track = TRACK << STRETCH(floppy);
raw_cmd2459drivers/block/floppy.cif ((raw_cmd.track == buffer_track) && (current_drive == buffer_drive) &&
raw_cmd2474drivers/block/floppy.craw_cmd.flags &= ~FD_RAW_WRITE;
raw_cmd2475drivers/block/floppy.craw_cmd.flags |= FD_RAW_READ;
raw_cmd2505drivers/block/floppy.craw_cmd.length = current_count_sectors << 9;
raw_cmd2506drivers/block/floppy.cif (raw_cmd.length == 0){
raw_cmd2520drivers/block/floppy.cif (buffer_track != raw_cmd.track ||  /* bad track */
raw_cmd2544drivers/block/floppy.cbuffer_track = raw_cmd.track;
raw_cmd2552drivers/block/floppy.craw_cmd.length = sector_t+current_count_sectors-aligned_sector_t;
raw_cmd2553drivers/block/floppy.craw_cmd.length = ((raw_cmd.length -1)|(ssize-1))+1;
raw_cmd2554drivers/block/floppy.craw_cmd.length <<= 9;
raw_cmd2556drivers/block/floppy.cif ((raw_cmd.length < current_count_sectors << 9) ||
raw_cmd2559drivers/block/floppy.c(aligned_sector_t + (raw_cmd.length >> 9) > buffer_max ||
raw_cmd2561drivers/block/floppy.craw_cmd.length % ( 128 << SIZECODE ) ||
raw_cmd2562drivers/block/floppy.craw_cmd.length <= 0 || current_count_sectors <= 0){
raw_cmd2564drivers/block/floppy.craw_cmd.length, current_count_sectors);
raw_cmd2584drivers/block/floppy.craw_cmd.length < 0 ||
raw_cmd2585drivers/block/floppy.ccurrent_addr + raw_cmd.length >
raw_cmd2590drivers/block/floppy.craw_cmd.length >> 9 );
raw_cmd2599drivers/block/floppy.c} else if (raw_cmd.length > CURRENT->nr_sectors << 9 ||
raw_cmd2603drivers/block/floppy.c} else if ( raw_cmd.length < current_count_sectors << 9 ){
raw_cmd2605drivers/block/floppy.cprintk("bytes=%ld\n", raw_cmd.length >> 9 );
raw_cmd2608drivers/block/floppy.cif (raw_cmd.length == 0){
raw_cmd2737drivers/block/floppy.craw_cmd.flags= flag;
raw_cmd2738drivers/block/floppy.craw_cmd.track=0;
raw_cmd2739drivers/block/floppy.craw_cmd.cmd_count=0;
raw_cmd2852drivers/block/floppy.cCOPYIN(raw_cmd);
raw_cmd2853drivers/block/floppy.craw_cmd.rate &= 0x03;  
raw_cmd2854drivers/block/floppy.ccount = raw_cmd.length;
raw_cmd2855drivers/block/floppy.cif (raw_cmd.flags & (FD_RAW_WRITE | FD_RAW_READ)){
raw_cmd2864drivers/block/floppy.cif ( raw_cmd.flags & FD_RAW_WRITE ){
raw_cmd2865drivers/block/floppy.ci = verify_area(VERIFY_READ, raw_cmd.data, count );
raw_cmd2868drivers/block/floppy.cmemcpy_fromfs(floppy_track_buffer, raw_cmd.data, count);
raw_cmd2880drivers/block/floppy.craw_cmd.flags |= FD_RAW_DISK_CHANGE;
raw_cmd2882drivers/block/floppy.craw_cmd.flags &= ~FD_RAW_DISK_CHANGE;
raw_cmd2883drivers/block/floppy.cif(raw_cmd.flags & FD_RAW_NO_MOTOR_AFTER)
raw_cmd2887drivers/block/floppy.craw_cmd.reply_count = inr;
raw_cmd2888drivers/block/floppy.cfor( i=0; i< raw_cmd.reply_count; i++)
raw_cmd2889drivers/block/floppy.craw_cmd.reply[i] = reply_buffer[i];
raw_cmd2890drivers/block/floppy.cif ( raw_cmd.flags & ( FD_RAW_READ | FD_RAW_WRITE ))
raw_cmd2891drivers/block/floppy.craw_cmd.length = get_dma_residue(FLOPPY_DMA);
raw_cmd2898drivers/block/floppy.cif ( raw_cmd.flags & FD_RAW_READ ){
raw_cmd2899drivers/block/floppy.ci=fd_copyout( raw_cmd.data, floppy_track_buffer, count);
raw_cmd2904drivers/block/floppy.creturn COPYOUT(raw_cmd);