tag | line | file | source code |
hd | 33 | drivers/block/genhd.c | static void print_minor_name (struct gendisk *hd, int minor) |
hd | 35 | drivers/block/genhd.c | unsigned int unit = minor >> hd->minor_shift; |
hd | 36 | drivers/block/genhd.c | unsigned int part = minor & ((1 << hd->minor_shift) - 1); |
hd | 45 | drivers/block/genhd.c | if (!strcmp(hd->major_name,"ide")) { |
hd | 47 | drivers/block/genhd.c | strcpy(name, hd->real_devices); /* courtesy ide.c */ |
hd | 52 | drivers/block/genhd.c | printk(" %s%c", hd->major_name, 'a' + unit); |
hd | 59 | drivers/block/genhd.c | static void add_partition (struct gendisk *hd, int minor, int start, int size) |
hd | 61 | drivers/block/genhd.c | hd->part[minor].start_sect = start; |
hd | 62 | drivers/block/genhd.c | hd->part[minor].nr_sects = size; |
hd | 63 | drivers/block/genhd.c | print_minor_name(hd, minor); |
hd | 78 | drivers/block/genhd.c | static void extended_partition(struct gendisk *hd, kdev_t dev) |
hd | 83 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
hd | 86 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
hd | 87 | drivers/block/genhd.c | first_size = hd->part[MINOR(dev)].nr_sects; |
hd | 91 | drivers/block/genhd.c | if ((current_minor & mask) >= hd->max_p) |
hd | 108 | drivers/block/genhd.c | this_size = hd->part[MINOR(dev)].nr_sects; |
hd | 135 | drivers/block/genhd.c | add_partition(hd, current_minor, this_sector+p->start_sect, p->nr_sects); |
hd | 137 | drivers/block/genhd.c | if ((current_minor & mask) >= hd->max_p) |
hd | 157 | drivers/block/genhd.c | hd->part[current_minor].nr_sects = p->nr_sects; |
hd | 158 | drivers/block/genhd.c | hd->part[current_minor].start_sect = first_sector + p->start_sect; |
hd | 160 | drivers/block/genhd.c | dev = MKDEV(hd->major, current_minor); |
hd | 167 | drivers/block/genhd.c | static int msdos_partition(struct gendisk *hd, kdev_t dev, unsigned long first_sector) |
hd | 173 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
hd | 256 | drivers/block/genhd.c | add_partition(hd, minor, first_sector+p->start_sect, p->nr_sects); |
hd | 267 | drivers/block/genhd.c | hd->sizes[minor] = hd->part[minor].nr_sects |
hd | 269 | drivers/block/genhd.c | extended_partition(hd, MKDEV(hd->major, minor)); |
hd | 273 | drivers/block/genhd.c | hd->part[minor].nr_sects = 0; |
hd | 287 | drivers/block/genhd.c | add_partition(hd, current_minor, p->start_sect, p->nr_sects); |
hd | 299 | drivers/block/genhd.c | static int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector) |
hd | 355 | drivers/block/genhd.c | add_partition(hd, current_minor, |
hd | 367 | drivers/block/genhd.c | static void check_partition(struct gendisk *hd, kdev_t dev) |
hd | 375 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
hd | 382 | drivers/block/genhd.c | hd->part[MINOR(dev)].start_sect = 0; |
hd | 387 | drivers/block/genhd.c | print_minor_name(hd, MINOR(dev)); |
hd | 389 | drivers/block/genhd.c | if (msdos_partition(hd, dev, first_sector)) |
hd | 393 | drivers/block/genhd.c | if (osf_partition(hd, dev, first_sector)) |
hd | 89 | drivers/block/hd.c | static struct hd_struct hd[MAX_HD<<6]={{0,0},}; |
hd | 713 | drivers/block/hd.c | if (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) { |
hd | 725 | drivers/block/hd.c | block += hd[dev].start_sect; |
hd | 802 | drivers/block/hd.c | put_user(hd[MINOR(inode->i_rdev)].start_sect, |
hd | 822 | drivers/block/hd.c | put_user(hd[MINOR(inode->i_rdev)].nr_sects, (long *) arg); |
hd | 926 | drivers/block/hd.c | hd, /* hd struct */ |
hd | 1017 | drivers/block/hd.c | hd[i<<6].nr_sects = bios_info[i].head * |
hd | 347 | drivers/scsi/eata_dma.c | hostdata *hd; |
hd | 357 | drivers/scsi/eata_dma.c | hd = HD(cmd); |
hd | 361 | drivers/scsi/eata_dma.c | for (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { |
hd | 364 | drivers/scsi/eata_dma.c | if (hd->ccb[y].status == FREE) |
hd | 368 | drivers/scsi/eata_dma.c | hd->last_ccb = y; |
hd | 378 | drivers/scsi/eata_dma.c | switch(hd->ccb[z].status) { |
hd | 394 | drivers/scsi/eata_dma.c | cp = &hd->ccb[y]; |
hd | 404 | drivers/scsi/eata_dma.c | if(hd->do_latency == TRUE) { |
hd | 500 | drivers/scsi/eata_dma.c | cp->cp_statDMA = htonl(virt_to_bus(&(hd->sp))); |
hd | 504 | drivers/scsi/eata_dma.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
hd | 850 | drivers/scsi/eata_dma.c | hostdata *hd; |
hd | 961 | drivers/scsi/eata_dma.c | hd = SD(sh); |
hd | 963 | drivers/scsi/eata_dma.c | memset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
hd | 964 | drivers/scsi/eata_dma.c | memset(hd->reads, 0, sizeof(u32) * 26); |
hd | 966 | drivers/scsi/eata_dma.c | hd->broken_INQUIRY = (bugs & BROKEN_INQUIRY); |
hd | 968 | drivers/scsi/eata_dma.c | if(hd->broken_INQUIRY == TRUE) { |
hd | 1003 | drivers/scsi/eata_dma.c | hd->bustype = IS_PCI; |
hd | 1005 | drivers/scsi/eata_dma.c | hd->bustype = IS_EISA; |
hd | 1007 | drivers/scsi/eata_dma.c | hd->bustype = IS_ISA; |
hd | 1008 | drivers/scsi/eata_dma.c | } else if(hd->broken_INQUIRY == FALSE) { |
hd | 1010 | drivers/scsi/eata_dma.c | hd->bustype = IS_PCI; |
hd | 1012 | drivers/scsi/eata_dma.c | hd->bustype = IS_EISA; |
hd | 1014 | drivers/scsi/eata_dma.c | hd->bustype = IS_ISA; |
hd | 1016 | drivers/scsi/eata_dma.c | hd->bustype = bustype; |
hd | 1026 | drivers/scsi/eata_dma.c | hd->channel = gc->MAX_CHAN; |
hd | 1041 | drivers/scsi/eata_dma.c | if(hd->bustype != IS_ISA) |
hd | 1057 | drivers/scsi/eata_dma.c | if (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){ |
hd | 1072 | drivers/scsi/eata_dma.c | hd->primary = FALSE; |
hd | 1074 | drivers/scsi/eata_dma.c | hd->primary = TRUE; |
hd | 1078 | drivers/scsi/eata_dma.c | if (hd->bustype != IS_ISA) { |
hd | 1085 | drivers/scsi/eata_dma.c | hd->writes_lat[x][1] = 0xffffffff; |
hd | 1086 | drivers/scsi/eata_dma.c | hd->reads_lat[x][1] = 0xffffffff; |
hd | 1089 | drivers/scsi/eata_dma.c | hd->next = NULL; /* build a linked list of all HBAs */ |
hd | 1090 | drivers/scsi/eata_dma.c | hd->prev = last_HBA; |
hd | 1091 | drivers/scsi/eata_dma.c | if(hd->prev != NULL) |
hd | 1092 | drivers/scsi/eata_dma.c | SD(hd->prev)->next = sh; |
hd | 132 | drivers/scsi/eata_pio.c | hostdata *hd; |
hd | 152 | drivers/scsi/eata_pio.c | hd=SD(sh); |
hd | 154 | drivers/scsi/eata_pio.c | cp = &hd->ccb[0]; |
hd | 222 | drivers/scsi/eata_pio.c | while ((stat&HA_SDRQ)||((stat&HA_SMORE)&&hd->moresupport)); |
hd | 235 | drivers/scsi/eata_pio.c | hd->devflags|=(1<<cp->cp_id); |
hd | 237 | drivers/scsi/eata_pio.c | else if (hd->devflags&1<<cp->cp_id) |
hd | 286 | drivers/scsi/eata_pio.c | hostdata *hd; |
hd | 295 | drivers/scsi/eata_pio.c | hd = HD(cmd); |
hd | 303 | drivers/scsi/eata_pio.c | if (hd->ccb[y].status!=FREE) { |
hd | 314 | drivers/scsi/eata_pio.c | cp = &hd->ccb[y]; |
hd | 346 | drivers/scsi/eata_pio.c | cp->Interpret = (cmd->target == hd->hostid); |
hd | 362 | drivers/scsi/eata_pio.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
hd | 390 | drivers/scsi/eata_pio.c | outsw(base + HA_RDATA, cp, hd->cplen); |
hd | 392 | drivers/scsi/eata_pio.c | for (x = 0; x < hd->cppadlen; x++) outw(0, base + HA_RDATA); |
hd | 684 | drivers/scsi/eata_pio.c | hostdata *hd; |
hd | 733 | drivers/scsi/eata_pio.c | hd = SD(sh); |
hd | 735 | drivers/scsi/eata_pio.c | memset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz))); |
hd | 736 | drivers/scsi/eata_pio.c | memset(hd->reads, 0, sizeof(ulong) * 26); |
hd | 767 | drivers/scsi/eata_pio.c | hd->bustype = IS_PCI; |
hd | 769 | drivers/scsi/eata_pio.c | hd->bustype = IS_EISA; |
hd | 771 | drivers/scsi/eata_pio.c | hd->bustype = IS_ISA; |
hd | 774 | drivers/scsi/eata_pio.c | hd->bustype = IS_PCI; |
hd | 776 | drivers/scsi/eata_pio.c | hd->bustype = IS_EISA; |
hd | 778 | drivers/scsi/eata_pio.c | hd->bustype = IS_ISA; |
hd | 796 | drivers/scsi/eata_pio.c | hd->channel = 0; |
hd | 802 | drivers/scsi/eata_pio.c | hd->primary = FALSE; |
hd | 804 | drivers/scsi/eata_pio.c | hd->primary = TRUE; |
hd | 808 | drivers/scsi/eata_pio.c | hd->next = NULL; /* build a linked list of all HBAs */ |
hd | 809 | drivers/scsi/eata_pio.c | hd->prev = last_HBA; |
hd | 810 | drivers/scsi/eata_pio.c | if(hd->prev != NULL) |
hd | 811 | drivers/scsi/eata_pio.c | SD(hd->prev)->next = sh; |