tag | line | file | source code |
hd | 30 | drivers/block/genhd.c | static char minor_name (struct gendisk *hd, int minor) |
hd | 32 | drivers/block/genhd.c | char base_name = (hd->major == IDE1_MAJOR) ? 'c' : 'a'; |
hd | 33 | drivers/block/genhd.c | return base_name + (minor >> hd->minor_shift); |
hd | 36 | drivers/block/genhd.c | static void add_partition (struct gendisk *hd, int minor, int start, int size) |
hd | 38 | drivers/block/genhd.c | hd->part[minor].start_sect = start; |
hd | 39 | drivers/block/genhd.c | hd->part[minor].nr_sects = size; |
hd | 40 | drivers/block/genhd.c | printk(" %s%c%d", hd->major_name, minor_name(hd, minor), |
hd | 41 | drivers/block/genhd.c | minor & ((1 << hd->minor_shift) - 1)); |
hd | 56 | drivers/block/genhd.c | static void extended_partition(struct gendisk *hd, int dev) |
hd | 61 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
hd | 63 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
hd | 67 | drivers/block/genhd.c | if ((current_minor & mask) >= (4 + hd->max_p)) |
hd | 86 | drivers/block/genhd.c | add_partition(hd, current_minor, this_sector+p->start_sect, p->nr_sects); |
hd | 97 | drivers/block/genhd.c | !(hd->part[current_minor].nr_sects = p->nr_sects)) |
hd | 99 | drivers/block/genhd.c | hd->part[current_minor].start_sect = first_sector + p->start_sect; |
hd | 100 | drivers/block/genhd.c | hd->sizes[current_minor] = p->nr_sects >> (BLOCK_SIZE_BITS - 9); |
hd | 102 | drivers/block/genhd.c | dev = ((hd->major) << 8) | current_minor; |
hd | 111 | drivers/block/genhd.c | static int msdos_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector) |
hd | 116 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
hd | 152 | drivers/block/genhd.c | hd->part[MINOR(dev)].start_sect += p->end_sector; |
hd | 153 | drivers/block/genhd.c | hd->part[MINOR(dev)].nr_sects -= p->end_sector; |
hd | 178 | drivers/block/genhd.c | add_partition(hd, minor, first_sector+p->start_sect, p->nr_sects); |
hd | 183 | drivers/block/genhd.c | extended_partition(hd, (hd->major << 8) | minor); |
hd | 198 | drivers/block/genhd.c | add_partition(hd, current_minor, p->start_sect, p->nr_sects); |
hd | 210 | drivers/block/genhd.c | static int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector) |
hd | 266 | drivers/block/genhd.c | add_partition(hd, current_minor, |
hd | 278 | drivers/block/genhd.c | static void check_partition(struct gendisk *hd, unsigned int dev) |
hd | 286 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
hd | 293 | drivers/block/genhd.c | hd->part[MINOR(dev)].start_sect = 0; |
hd | 297 | drivers/block/genhd.c | printk(" %s%c:", hd->major_name, minor_name(hd, MINOR(dev))); |
hd | 299 | drivers/block/genhd.c | if (msdos_partition(hd, dev, first_sector)) |
hd | 303 | drivers/block/genhd.c | if (osf_partition(hd, dev, first_sector)) |
hd | 91 | drivers/block/hd.c | static struct hd_struct hd[MAX_HD<<6]={{0,0},}; |
hd | 715 | drivers/block/hd.c | if (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) { |
hd | 726 | drivers/block/hd.c | block += hd[dev].start_sect; |
hd | 803 | drivers/block/hd.c | put_user(hd[MINOR(inode->i_rdev)].start_sect, |
hd | 823 | drivers/block/hd.c | put_user(hd[MINOR(inode->i_rdev)].nr_sects, (long *) arg); |
hd | 927 | drivers/block/hd.c | hd, /* hd struct */ |
hd | 1018 | drivers/block/hd.c | hd[i<<6].nr_sects = bios_info[i].head * |
hd | 348 | drivers/scsi/eata_dma.c | hostdata *hd; |
hd | 365 | drivers/scsi/eata_dma.c | hd = HD(cmd); |
hd | 369 | drivers/scsi/eata_dma.c | for (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { |
hd | 372 | drivers/scsi/eata_dma.c | if (hd->ccb[y].status == FREE) |
hd | 376 | drivers/scsi/eata_dma.c | hd->last_ccb = y; |
hd | 386 | drivers/scsi/eata_dma.c | cp = &hd->ccb[y]; |
hd | 396 | drivers/scsi/eata_dma.c | if(hd->do_latency == TRUE) { |
hd | 489 | drivers/scsi/eata_dma.c | cp->cp_statDMA = htonl((u32) &(hd->sp)); |
hd | 493 | drivers/scsi/eata_dma.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
hd | 835 | drivers/scsi/eata_dma.c | hostdata *hd; |
hd | 941 | drivers/scsi/eata_dma.c | hd = SD(sh); |
hd | 943 | drivers/scsi/eata_dma.c | memset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
hd | 944 | drivers/scsi/eata_dma.c | memset(hd->reads, 0, sizeof(u32) * 26); |
hd | 946 | drivers/scsi/eata_dma.c | hd->broken_INQUIRY = (bugs & BROKEN_INQUIRY); |
hd | 948 | drivers/scsi/eata_dma.c | if(hd->broken_INQUIRY == TRUE) { |
hd | 983 | drivers/scsi/eata_dma.c | hd->bustype = IS_PCI; |
hd | 985 | drivers/scsi/eata_dma.c | hd->bustype = IS_EISA; |
hd | 987 | drivers/scsi/eata_dma.c | hd->bustype = IS_ISA; |
hd | 988 | drivers/scsi/eata_dma.c | } else if(hd->broken_INQUIRY == FALSE) { |
hd | 990 | drivers/scsi/eata_dma.c | hd->bustype = IS_PCI; |
hd | 992 | drivers/scsi/eata_dma.c | hd->bustype = IS_EISA; |
hd | 994 | drivers/scsi/eata_dma.c | hd->bustype = IS_ISA; |
hd | 996 | drivers/scsi/eata_dma.c | hd->bustype = bustype; |
hd | 1006 | drivers/scsi/eata_dma.c | hd->channel = gc->MAX_CHAN; |
hd | 1021 | drivers/scsi/eata_dma.c | if(hd->bustype != IS_ISA) |
hd | 1036 | drivers/scsi/eata_dma.c | if (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){ |
hd | 1051 | drivers/scsi/eata_dma.c | hd->primary = FALSE; |
hd | 1053 | drivers/scsi/eata_dma.c | hd->primary = TRUE; |
hd | 1057 | drivers/scsi/eata_dma.c | if (hd->bustype != IS_ISA) { |
hd | 1064 | drivers/scsi/eata_dma.c | hd->writes_lat[x][1] = 0xffffffff; |
hd | 1065 | drivers/scsi/eata_dma.c | hd->reads_lat[x][1] = 0xffffffff; |
hd | 1068 | drivers/scsi/eata_dma.c | hd->next = NULL; /* build a linked list of all HBAs */ |
hd | 1069 | drivers/scsi/eata_dma.c | hd->prev = last_HBA; |
hd | 1070 | drivers/scsi/eata_dma.c | if(hd->prev != NULL) |
hd | 1071 | 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 | 287 | drivers/scsi/eata_pio.c | hostdata *hd; |
hd | 303 | drivers/scsi/eata_pio.c | hd = HD(cmd); |
hd | 311 | drivers/scsi/eata_pio.c | if (hd->ccb[y].status!=FREE) { |
hd | 322 | drivers/scsi/eata_pio.c | cp = &hd->ccb[y]; |
hd | 354 | drivers/scsi/eata_pio.c | cp->Interpret = (cmd->target==hd->hostid); |
hd | 370 | drivers/scsi/eata_pio.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
hd | 399 | drivers/scsi/eata_pio.c | outsw(base + HA_RDATA, cp, hd->cplen); |
hd | 401 | drivers/scsi/eata_pio.c | for (x=0; x<hd->cppadlen; x++) outw(0, base + HA_RDATA); |
hd | 690 | drivers/scsi/eata_pio.c | hostdata *hd; |
hd | 739 | drivers/scsi/eata_pio.c | hd = SD(sh); |
hd | 741 | drivers/scsi/eata_pio.c | memset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz))); |
hd | 742 | drivers/scsi/eata_pio.c | memset(hd->reads, 0, sizeof(ulong) * 26); |
hd | 782 | drivers/scsi/eata_pio.c | hd->channel = 0; |
hd | 786 | drivers/scsi/eata_pio.c | hd->bustype = IS_PCI; |
hd | 788 | drivers/scsi/eata_pio.c | hd->bustype = IS_EISA; |
hd | 790 | drivers/scsi/eata_pio.c | hd->bustype = IS_ISA; |
hd | 793 | drivers/scsi/eata_pio.c | hd->bustype = IS_PCI; |
hd | 795 | drivers/scsi/eata_pio.c | hd->bustype = IS_EISA; |
hd | 797 | drivers/scsi/eata_pio.c | hd->bustype = IS_ISA; |
hd | 804 | drivers/scsi/eata_pio.c | hd->primary = FALSE; |
hd | 806 | drivers/scsi/eata_pio.c | hd->primary = TRUE; |
hd | 810 | drivers/scsi/eata_pio.c | hd->next = NULL; /* build a linked list of all HBAs */ |
hd | 811 | drivers/scsi/eata_pio.c | hd->prev = last_HBA; |
hd | 812 | drivers/scsi/eata_pio.c | if(hd->prev != NULL) |
hd | 813 | drivers/scsi/eata_pio.c | SD(hd->prev)->next = sh; |