tag | line | file | source code |
hd | 40 | drivers/block/genhd.c | static void print_minor_name (struct gendisk *hd, int minor) |
hd | 42 | drivers/block/genhd.c | unsigned int unit = minor >> hd->minor_shift; |
hd | 43 | drivers/block/genhd.c | unsigned int part = minor & ((1 << hd->minor_shift) - 1); |
hd | 52 | drivers/block/genhd.c | if (!strcmp(hd->major_name,"ide")) { |
hd | 54 | drivers/block/genhd.c | strcpy(name, hd->real_devices); /* courtesy ide.c */ |
hd | 59 | drivers/block/genhd.c | printk(" %s%c", hd->major_name, 'a' + unit); |
hd | 66 | drivers/block/genhd.c | static void add_partition (struct gendisk *hd, int minor, int start, int size) |
hd | 68 | drivers/block/genhd.c | hd->part[minor].start_sect = start; |
hd | 69 | drivers/block/genhd.c | hd->part[minor].nr_sects = size; |
hd | 70 | drivers/block/genhd.c | print_minor_name(hd, minor); |
hd | 91 | drivers/block/genhd.c | static void extended_partition(struct gendisk *hd, kdev_t dev) |
hd | 96 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
hd | 99 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
hd | 100 | drivers/block/genhd.c | first_size = hd->part[MINOR(dev)].nr_sects; |
hd | 121 | drivers/block/genhd.c | this_size = hd->part[MINOR(dev)].nr_sects; |
hd | 148 | drivers/block/genhd.c | add_partition(hd, current_minor, this_sector+p->start_sect, p->nr_sects); |
hd | 170 | drivers/block/genhd.c | hd->part[current_minor].nr_sects = p->nr_sects; |
hd | 171 | drivers/block/genhd.c | hd->part[current_minor].start_sect = first_sector + p->start_sect; |
hd | 173 | drivers/block/genhd.c | dev = MKDEV(hd->major, current_minor); |
hd | 180 | drivers/block/genhd.c | static int msdos_partition(struct gendisk *hd, kdev_t dev, unsigned long first_sector) |
hd | 186 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
hd | 269 | drivers/block/genhd.c | add_partition(hd, minor, first_sector+p->start_sect, p->nr_sects); |
hd | 278 | drivers/block/genhd.c | hd->sizes[minor] = hd->part[minor].nr_sects |
hd | 280 | drivers/block/genhd.c | extended_partition(hd, MKDEV(hd->major, minor)); |
hd | 284 | drivers/block/genhd.c | if (hd->part[minor].nr_sects > 2) |
hd | 285 | drivers/block/genhd.c | hd->part[minor].nr_sects = 2; |
hd | 299 | drivers/block/genhd.c | add_partition(hd, current_minor, p->start_sect, p->nr_sects); |
hd | 311 | drivers/block/genhd.c | static int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector) |
hd | 314 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
hd | 370 | drivers/block/genhd.c | add_partition(hd, current_minor, |
hd | 384 | drivers/block/genhd.c | static int sun_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector) |
hd | 442 | drivers/block/genhd.c | add_partition(hd, current_minor, st_sector, p->num_sectors); |
hd | 452 | drivers/block/genhd.c | static void check_partition(struct gendisk *hd, kdev_t dev) |
hd | 460 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
hd | 467 | drivers/block/genhd.c | hd->part[MINOR(dev)].start_sect = 0; |
hd | 472 | drivers/block/genhd.c | print_minor_name(hd, MINOR(dev)); |
hd | 474 | drivers/block/genhd.c | if (msdos_partition(hd, dev, first_sector)) |
hd | 478 | drivers/block/genhd.c | if (osf_partition(hd, dev, first_sector)) |
hd | 482 | drivers/block/genhd.c | if(sun_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 | 351 | drivers/scsi/eata_dma.c | hostdata *hd; |
hd | 361 | drivers/scsi/eata_dma.c | hd = HD(cmd); |
hd | 365 | drivers/scsi/eata_dma.c | for (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { |
hd | 368 | drivers/scsi/eata_dma.c | if (hd->ccb[y].status == FREE) |
hd | 372 | drivers/scsi/eata_dma.c | hd->last_ccb = y; |
hd | 382 | drivers/scsi/eata_dma.c | switch(hd->ccb[z].status) { |
hd | 398 | drivers/scsi/eata_dma.c | cp = &hd->ccb[y]; |
hd | 408 | drivers/scsi/eata_dma.c | if(hd->do_latency == TRUE) { |
hd | 504 | drivers/scsi/eata_dma.c | cp->cp_statDMA = htonl(virt_to_bus(&(hd->sp))); |
hd | 509 | drivers/scsi/eata_dma.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
hd | 856 | drivers/scsi/eata_dma.c | hostdata *hd; |
hd | 967 | drivers/scsi/eata_dma.c | hd = SD(sh); |
hd | 969 | drivers/scsi/eata_dma.c | memset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
hd | 970 | drivers/scsi/eata_dma.c | memset(hd->reads, 0, sizeof(u32) * 26); |
hd | 972 | drivers/scsi/eata_dma.c | hd->broken_INQUIRY = (bugs & BROKEN_INQUIRY); |
hd | 974 | drivers/scsi/eata_dma.c | if(hd->broken_INQUIRY == TRUE) { |
hd | 1009 | drivers/scsi/eata_dma.c | hd->bustype = IS_PCI; |
hd | 1011 | drivers/scsi/eata_dma.c | hd->bustype = IS_EISA; |
hd | 1013 | drivers/scsi/eata_dma.c | hd->bustype = IS_ISA; |
hd | 1014 | drivers/scsi/eata_dma.c | } else if(hd->broken_INQUIRY == FALSE) { |
hd | 1016 | drivers/scsi/eata_dma.c | hd->bustype = IS_PCI; |
hd | 1018 | drivers/scsi/eata_dma.c | hd->bustype = IS_EISA; |
hd | 1020 | drivers/scsi/eata_dma.c | hd->bustype = IS_ISA; |
hd | 1022 | drivers/scsi/eata_dma.c | hd->bustype = bustype; |
hd | 1032 | drivers/scsi/eata_dma.c | hd->channel = gc->MAX_CHAN; |
hd | 1048 | drivers/scsi/eata_dma.c | if(hd->bustype != IS_ISA) |
hd | 1065 | drivers/scsi/eata_dma.c | if (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){ |
hd | 1080 | drivers/scsi/eata_dma.c | hd->primary = FALSE; |
hd | 1082 | drivers/scsi/eata_dma.c | hd->primary = TRUE; |
hd | 1086 | drivers/scsi/eata_dma.c | if (hd->bustype != IS_ISA) { |
hd | 1093 | drivers/scsi/eata_dma.c | hd->writes_lat[x][1] = 0xffffffff; |
hd | 1094 | drivers/scsi/eata_dma.c | hd->reads_lat[x][1] = 0xffffffff; |
hd | 1097 | drivers/scsi/eata_dma.c | hd->next = NULL; /* build a linked list of all HBAs */ |
hd | 1098 | drivers/scsi/eata_dma.c | hd->prev = last_HBA; |
hd | 1099 | drivers/scsi/eata_dma.c | if(hd->prev != NULL) |
hd | 1100 | drivers/scsi/eata_dma.c | SD(hd->prev)->next = sh; |
hd | 131 | drivers/scsi/eata_pio.c | hostdata *hd; |
hd | 151 | drivers/scsi/eata_pio.c | hd=SD(sh); |
hd | 153 | drivers/scsi/eata_pio.c | cp = &hd->ccb[0]; |
hd | 221 | drivers/scsi/eata_pio.c | while ((stat&HA_SDRQ)||((stat&HA_SMORE)&&hd->moresupport)); |
hd | 234 | drivers/scsi/eata_pio.c | hd->devflags|=(1<<cp->cp_id); |
hd | 236 | drivers/scsi/eata_pio.c | else if (hd->devflags&1<<cp->cp_id) |
hd | 285 | drivers/scsi/eata_pio.c | hostdata *hd; |
hd | 294 | drivers/scsi/eata_pio.c | hd = HD(cmd); |
hd | 302 | drivers/scsi/eata_pio.c | if (hd->ccb[y].status!=FREE) { |
hd | 313 | drivers/scsi/eata_pio.c | cp = &hd->ccb[y]; |
hd | 345 | drivers/scsi/eata_pio.c | cp->Interpret = (cmd->target == hd->hostid); |
hd | 361 | drivers/scsi/eata_pio.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
hd | 389 | drivers/scsi/eata_pio.c | outsw(base + HA_RDATA, cp, hd->cplen); |
hd | 391 | drivers/scsi/eata_pio.c | for (x = 0; x < hd->cppadlen; x++) outw(0, base + HA_RDATA); |
hd | 683 | drivers/scsi/eata_pio.c | hostdata *hd; |
hd | 732 | drivers/scsi/eata_pio.c | hd = SD(sh); |
hd | 734 | drivers/scsi/eata_pio.c | memset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz))); |
hd | 735 | drivers/scsi/eata_pio.c | memset(hd->reads, 0, sizeof(ulong) * 26); |
hd | 766 | drivers/scsi/eata_pio.c | hd->bustype = IS_PCI; |
hd | 768 | drivers/scsi/eata_pio.c | hd->bustype = IS_EISA; |
hd | 770 | drivers/scsi/eata_pio.c | hd->bustype = IS_ISA; |
hd | 773 | drivers/scsi/eata_pio.c | hd->bustype = IS_PCI; |
hd | 775 | drivers/scsi/eata_pio.c | hd->bustype = IS_EISA; |
hd | 777 | 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; |