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, int 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 | 90 | drivers/block/genhd.c | if ((current_minor & mask) >= hd->max_p) |
hd | 107 | drivers/block/genhd.c | this_size = hd->part[MINOR(dev)].nr_sects; |
hd | 128 | drivers/block/genhd.c | add_partition(hd, current_minor, this_sector+p->start_sect, p->nr_sects); |
hd | 130 | drivers/block/genhd.c | if ((current_minor & mask) >= hd->max_p) |
hd | 150 | drivers/block/genhd.c | hd->part[current_minor].nr_sects = p->nr_sects; |
hd | 151 | drivers/block/genhd.c | hd->part[current_minor].start_sect = first_sector + p->start_sect; |
hd | 153 | drivers/block/genhd.c | dev = ((hd->major) << 8) | current_minor; |
hd | 160 | drivers/block/genhd.c | static int msdos_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector) |
hd | 165 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
hd | 232 | drivers/block/genhd.c | add_partition(hd, minor, first_sector+p->start_sect, p->nr_sects); |
hd | 243 | drivers/block/genhd.c | hd->sizes[minor] = hd->part[minor].nr_sects |
hd | 245 | drivers/block/genhd.c | extended_partition(hd, (hd->major << 8) | minor); |
hd | 249 | drivers/block/genhd.c | hd->part[minor].nr_sects = 0; |
hd | 263 | drivers/block/genhd.c | add_partition(hd, current_minor, p->start_sect, p->nr_sects); |
hd | 275 | drivers/block/genhd.c | static int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector) |
hd | 331 | drivers/block/genhd.c | add_partition(hd, current_minor, |
hd | 343 | drivers/block/genhd.c | static void check_partition(struct gendisk *hd, unsigned int dev) |
hd | 351 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
hd | 358 | drivers/block/genhd.c | hd->part[MINOR(dev)].start_sect = 0; |
hd | 363 | drivers/block/genhd.c | print_minor_name(hd, MINOR(dev)); |
hd | 365 | drivers/block/genhd.c | if (msdos_partition(hd, dev, first_sector)) |
hd | 369 | 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 | 724 | drivers/block/hd.c | block += hd[dev].start_sect; |
hd | 801 | drivers/block/hd.c | put_user(hd[MINOR(inode->i_rdev)].start_sect, |
hd | 821 | drivers/block/hd.c | put_user(hd[MINOR(inode->i_rdev)].nr_sects, (long *) arg); |
hd | 925 | drivers/block/hd.c | hd, /* hd struct */ |
hd | 1016 | drivers/block/hd.c | hd[i<<6].nr_sects = bios_info[i].head * |
hd | 341 | drivers/scsi/eata_dma.c | hostdata *hd; |
hd | 351 | drivers/scsi/eata_dma.c | hd = HD(cmd); |
hd | 355 | drivers/scsi/eata_dma.c | for (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { |
hd | 358 | drivers/scsi/eata_dma.c | if (hd->ccb[y].status == FREE) |
hd | 362 | drivers/scsi/eata_dma.c | hd->last_ccb = y; |
hd | 372 | drivers/scsi/eata_dma.c | cp = &hd->ccb[y]; |
hd | 382 | drivers/scsi/eata_dma.c | if(hd->do_latency == TRUE) { |
hd | 477 | drivers/scsi/eata_dma.c | cp->cp_statDMA = htonl(virt_to_bus(&(hd->sp))); |
hd | 481 | drivers/scsi/eata_dma.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
hd | 827 | drivers/scsi/eata_dma.c | hostdata *hd; |
hd | 939 | drivers/scsi/eata_dma.c | hd = SD(sh); |
hd | 941 | drivers/scsi/eata_dma.c | memset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
hd | 942 | drivers/scsi/eata_dma.c | memset(hd->reads, 0, sizeof(u32) * 26); |
hd | 944 | drivers/scsi/eata_dma.c | hd->broken_INQUIRY = (bugs & BROKEN_INQUIRY); |
hd | 946 | drivers/scsi/eata_dma.c | if(hd->broken_INQUIRY == TRUE) { |
hd | 981 | drivers/scsi/eata_dma.c | hd->bustype = IS_PCI; |
hd | 983 | drivers/scsi/eata_dma.c | hd->bustype = IS_EISA; |
hd | 985 | drivers/scsi/eata_dma.c | hd->bustype = IS_ISA; |
hd | 986 | drivers/scsi/eata_dma.c | } else if(hd->broken_INQUIRY == FALSE) { |
hd | 988 | drivers/scsi/eata_dma.c | hd->bustype = IS_PCI; |
hd | 990 | drivers/scsi/eata_dma.c | hd->bustype = IS_EISA; |
hd | 992 | drivers/scsi/eata_dma.c | hd->bustype = IS_ISA; |
hd | 994 | drivers/scsi/eata_dma.c | hd->bustype = bustype; |
hd | 1004 | drivers/scsi/eata_dma.c | hd->channel = gc->MAX_CHAN; |
hd | 1019 | drivers/scsi/eata_dma.c | if(hd->bustype != IS_ISA) |
hd | 1035 | drivers/scsi/eata_dma.c | if (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){ |
hd | 1050 | drivers/scsi/eata_dma.c | hd->primary = FALSE; |
hd | 1052 | drivers/scsi/eata_dma.c | hd->primary = TRUE; |
hd | 1056 | drivers/scsi/eata_dma.c | if (hd->bustype != IS_ISA) { |
hd | 1063 | drivers/scsi/eata_dma.c | hd->writes_lat[x][1] = 0xffffffff; |
hd | 1064 | drivers/scsi/eata_dma.c | hd->reads_lat[x][1] = 0xffffffff; |
hd | 1067 | drivers/scsi/eata_dma.c | hd->next = NULL; /* build a linked list of all HBAs */ |
hd | 1068 | drivers/scsi/eata_dma.c | hd->prev = last_HBA; |
hd | 1069 | drivers/scsi/eata_dma.c | if(hd->prev != NULL) |
hd | 1070 | drivers/scsi/eata_dma.c | SD(hd->prev)->next = sh; |
hd | 126 | drivers/scsi/eata_pio.c | hostdata *hd; |
hd | 146 | drivers/scsi/eata_pio.c | hd=SD(sh); |
hd | 148 | drivers/scsi/eata_pio.c | cp = &hd->ccb[0]; |
hd | 216 | drivers/scsi/eata_pio.c | while ((stat&HA_SDRQ)||((stat&HA_SMORE)&&hd->moresupport)); |
hd | 229 | drivers/scsi/eata_pio.c | hd->devflags|=(1<<cp->cp_id); |
hd | 231 | drivers/scsi/eata_pio.c | else if (hd->devflags&1<<cp->cp_id) |
hd | 280 | drivers/scsi/eata_pio.c | hostdata *hd; |
hd | 289 | drivers/scsi/eata_pio.c | hd = HD(cmd); |
hd | 297 | drivers/scsi/eata_pio.c | if (hd->ccb[y].status!=FREE) { |
hd | 308 | drivers/scsi/eata_pio.c | cp = &hd->ccb[y]; |
hd | 340 | drivers/scsi/eata_pio.c | cp->Interpret = (cmd->target == hd->hostid); |
hd | 356 | drivers/scsi/eata_pio.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
hd | 383 | drivers/scsi/eata_pio.c | outsw(base + HA_RDATA, cp, hd->cplen); |
hd | 385 | drivers/scsi/eata_pio.c | for (x = 0; x < hd->cppadlen; x++) outw(0, base + HA_RDATA); |
hd | 677 | drivers/scsi/eata_pio.c | hostdata *hd; |
hd | 726 | drivers/scsi/eata_pio.c | hd = SD(sh); |
hd | 728 | drivers/scsi/eata_pio.c | memset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz))); |
hd | 729 | drivers/scsi/eata_pio.c | memset(hd->reads, 0, sizeof(ulong) * 26); |
hd | 760 | drivers/scsi/eata_pio.c | hd->bustype = IS_PCI; |
hd | 762 | drivers/scsi/eata_pio.c | hd->bustype = IS_EISA; |
hd | 764 | drivers/scsi/eata_pio.c | hd->bustype = IS_ISA; |
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 | 789 | drivers/scsi/eata_pio.c | hd->channel = 0; |
hd | 795 | drivers/scsi/eata_pio.c | hd->primary = FALSE; |
hd | 797 | drivers/scsi/eata_pio.c | hd->primary = TRUE; |
hd | 801 | drivers/scsi/eata_pio.c | hd->next = NULL; /* build a linked list of all HBAs */ |
hd | 802 | drivers/scsi/eata_pio.c | hd->prev = last_HBA; |
hd | 803 | drivers/scsi/eata_pio.c | if(hd->prev != NULL) |
hd | 804 | drivers/scsi/eata_pio.c | SD(hd->prev)->next = sh; |