tag | line | file | source code |
drive | 558 | kernel/blk_drv/floppy.c | int drive = MINOR(CURRENT->dev); |
drive | 560 | kernel/blk_drv/floppy.c | if (ftd_msg[drive]) |
drive | 562 | kernel/blk_drv/floppy.c | floppy->name,drive); |
drive | 563 | kernel/blk_drv/floppy.c | current_type[drive] = floppy; |
drive | 564 | kernel/blk_drv/floppy.c | floppy_sizes[drive] = floppy->size >> 1; |
drive | 1005 | kernel/blk_drv/floppy.c | int drive,cnt,okay; |
drive | 1012 | kernel/blk_drv/floppy.c | drive = MINOR(inode->i_rdev); |
drive | 1018 | kernel/blk_drv/floppy.c | fake_change |= 1 << (drive & 3); |
drive | 1020 | kernel/blk_drv/floppy.c | drive &= 3; |
drive | 1024 | kernel/blk_drv/floppy.c | if (drive > 3) this = &floppy_type[drive >> 2]; |
drive | 1025 | kernel/blk_drv/floppy.c | else if ((this = current_type[drive & 3]) == NULL) |
drive | 1039 | kernel/blk_drv/floppy.c | format_req.device = drive; |
drive | 1059 | kernel/blk_drv/floppy.c | if (drive < 0 || drive > 3) return -EINVAL; |
drive | 1062 | kernel/blk_drv/floppy.c | current_type[drive] = NULL; |
drive | 1063 | kernel/blk_drv/floppy.c | floppy_sizes[drive] = MAX_DISK_SIZE; |
drive | 1064 | kernel/blk_drv/floppy.c | keep_data[drive] = 0; |
drive | 1069 | kernel/blk_drv/floppy.c | ((char *) &user_params[drive])[cnt] = |
drive | 1071 | kernel/blk_drv/floppy.c | current_type[drive] = &user_params[drive]; |
drive | 1072 | kernel/blk_drv/floppy.c | floppy_sizes[drive] = user_params[drive].size >> 1; |
drive | 1073 | kernel/blk_drv/floppy.c | if (cmd == FDDEFPRM) keep_data[drive] = -1; |
drive | 1079 | kernel/blk_drv/floppy.c | outb_p((current_DOR & 0xfc) | drive | |
drive | 1080 | kernel/blk_drv/floppy.c | (0x10 << drive),FD_DOR); |
drive | 1082 | kernel/blk_drv/floppy.c | keep_data[drive] = (inb(FD_DIR) & 0x80) ? 1 : 0; |
drive | 1089 | kernel/blk_drv/floppy.c | ftd_msg[drive] = 1; |
drive | 1092 | kernel/blk_drv/floppy.c | ftd_msg[drive] = 0; |
drive | 1095 | kernel/blk_drv/floppy.c | min_report_error_cnt[drive] = (unsigned short) (param & 0x0f); |
drive | 1108 | kernel/blk_drv/floppy.c | static struct floppy_struct *find_base(int drive,int code) |
drive | 1114 | kernel/blk_drv/floppy.c | printk("fd%d is %s",drive,base->name); |
drive | 1117 | kernel/blk_drv/floppy.c | printk("fd%d is unknown type %d",drive,code); |
drive | 1142 | kernel/blk_drv/floppy.c | int drive; |
drive | 1145 | kernel/blk_drv/floppy.c | drive = inode->i_rdev & 3; |
drive | 1146 | kernel/blk_drv/floppy.c | old_dev = fd_device[drive]; |
drive | 1147 | kernel/blk_drv/floppy.c | if (fd_ref[drive]) |
drive | 1150 | kernel/blk_drv/floppy.c | fd_ref[drive]++; |
drive | 1151 | kernel/blk_drv/floppy.c | fd_device[drive] = inode->i_rdev; |
drive | 154 | kernel/blk_drv/genhd.c | int drive; |
drive | 162 | kernel/blk_drv/genhd.c | for (drive=0 ; drive<dev->nr_real ; drive++) { |
drive | 163 | kernel/blk_drv/genhd.c | current_minor = 1+(drive<<dev->minor_shift); |
drive | 164 | kernel/blk_drv/genhd.c | check_partition(dev, major+(drive<<dev->minor_shift)); |
drive | 129 | kernel/blk_drv/hd.c | static void hd_out(unsigned int drive,unsigned int nsect,unsigned int sect, |
drive | 135 | kernel/blk_drv/hd.c | if (drive>1 || head>15) |
drive | 146 | kernel/blk_drv/hd.c | outb_p(hd_info[drive].ctl,HD_CMD); |
drive | 148 | kernel/blk_drv/hd.c | outb_p(hd_info[drive].wpcom>>2,++port); |
drive | 153 | kernel/blk_drv/hd.c | outb_p(0xA0|(drive<<4)|head,++port); |
drive | 503 | kernel/blk_drv/hd.c | int drive; |
drive | 509 | kernel/blk_drv/hd.c | for (drive=0 ; drive<2 ; drive++) { |
drive | 510 | kernel/blk_drv/hd.c | hd_info[drive].cyl = *(unsigned short *) BIOS; |
drive | 511 | kernel/blk_drv/hd.c | hd_info[drive].head = *(unsigned char *) (2+BIOS); |
drive | 512 | kernel/blk_drv/hd.c | hd_info[drive].wpcom = *(unsigned short *) (5+BIOS); |
drive | 513 | kernel/blk_drv/hd.c | hd_info[drive].ctl = *(unsigned char *) (8+BIOS); |
drive | 514 | kernel/blk_drv/hd.c | hd_info[drive].lzone = *(unsigned short *) (12+BIOS); |
drive | 515 | kernel/blk_drv/hd.c | hd_info[drive].sect = *(unsigned char *) (14+BIOS); |