tag | line | file | source code |
hd | 67 | drivers/block/genhd.c | char *disk_name (struct gendisk *hd, int minor, char *buf) |
hd | 70 | drivers/block/genhd.c | const char *maj = hd->major_name; |
hd | 71 | drivers/block/genhd.c | char unit = (minor >> hd->minor_shift) + 'a'; |
hd | 79 | drivers/block/genhd.c | switch (hd->major) { |
hd | 90 | drivers/block/genhd.c | part = minor & ((1 << hd->minor_shift) - 1); |
hd | 98 | drivers/block/genhd.c | static void add_partition (struct gendisk *hd, int minor, int start, int size) |
hd | 101 | drivers/block/genhd.c | hd->part[minor].start_sect = start; |
hd | 102 | drivers/block/genhd.c | hd->part[minor].nr_sects = size; |
hd | 103 | drivers/block/genhd.c | printk(" %s", disk_name(hd, minor, buf)); |
hd | 124 | drivers/block/genhd.c | static void extended_partition(struct gendisk *hd, kdev_t dev) |
hd | 129 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
hd | 132 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
hd | 133 | drivers/block/genhd.c | first_size = hd->part[MINOR(dev)].nr_sects; |
hd | 152 | drivers/block/genhd.c | this_size = hd->part[MINOR(dev)].nr_sects; |
hd | 179 | drivers/block/genhd.c | add_partition(hd, current_minor, this_sector+START_SECT(p), NR_SECTS(p)); |
hd | 201 | drivers/block/genhd.c | hd->part[current_minor].nr_sects = NR_SECTS(p); |
hd | 202 | drivers/block/genhd.c | hd->part[current_minor].start_sect = first_sector + START_SECT(p); |
hd | 204 | drivers/block/genhd.c | dev = MKDEV(hd->major, current_minor); |
hd | 211 | drivers/block/genhd.c | static int msdos_partition(struct gendisk *hd, kdev_t dev, unsigned long first_sector) |
hd | 217 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
hd | 314 | drivers/block/genhd.c | add_partition(hd, minor, first_sector+START_SECT(p), NR_SECTS(p)); |
hd | 323 | drivers/block/genhd.c | hd->sizes[minor] = hd->part[minor].nr_sects |
hd | 325 | drivers/block/genhd.c | extended_partition(hd, MKDEV(hd->major, minor)); |
hd | 329 | drivers/block/genhd.c | if (hd->part[minor].nr_sects > 2) |
hd | 330 | drivers/block/genhd.c | hd->part[minor].nr_sects = 2; |
hd | 344 | drivers/block/genhd.c | add_partition(hd, current_minor, START_SECT(p), NR_SECTS(p)); |
hd | 356 | drivers/block/genhd.c | static int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector) |
hd | 359 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
hd | 415 | drivers/block/genhd.c | add_partition(hd, current_minor, |
hd | 429 | drivers/block/genhd.c | static int sun_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector) |
hd | 487 | drivers/block/genhd.c | add_partition(hd, current_minor, st_sector, p->num_sectors); |
hd | 497 | drivers/block/genhd.c | static void check_partition(struct gendisk *hd, kdev_t dev) |
hd | 506 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
hd | 513 | drivers/block/genhd.c | hd->part[MINOR(dev)].start_sect = 0; |
hd | 517 | drivers/block/genhd.c | printk(" %s:", disk_name(hd, MINOR(dev), buf)); |
hd | 519 | drivers/block/genhd.c | if (msdos_partition(hd, dev, first_sector)) |
hd | 523 | drivers/block/genhd.c | if (osf_partition(hd, dev, first_sector)) |
hd | 527 | 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 | 102 | drivers/block/md.c | struct gendisk *hd = find_gendisk (dev); |
hd | 104 | drivers/block/md.c | if (!hd) |
hd | 111 | drivers/block/md.c | return disk_name (hd, MINOR(dev), name); /* routine in genhd.c */ |
hd | 350 | drivers/scsi/eata_dma.c | hostdata *hd; |
hd | 360 | drivers/scsi/eata_dma.c | hd = HD(cmd); |
hd | 364 | drivers/scsi/eata_dma.c | for (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { |
hd | 367 | drivers/scsi/eata_dma.c | if (hd->ccb[y].status == FREE) |
hd | 371 | drivers/scsi/eata_dma.c | hd->last_ccb = y; |
hd | 381 | drivers/scsi/eata_dma.c | switch(hd->ccb[z].status) { |
hd | 397 | drivers/scsi/eata_dma.c | cp = &hd->ccb[y]; |
hd | 407 | drivers/scsi/eata_dma.c | if(hd->do_latency == TRUE) { |
hd | 503 | drivers/scsi/eata_dma.c | cp->cp_statDMA = htonl(virt_to_bus(&(hd->sp))); |
hd | 508 | drivers/scsi/eata_dma.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
hd | 854 | drivers/scsi/eata_dma.c | hostdata *hd; |
hd | 965 | drivers/scsi/eata_dma.c | hd = SD(sh); |
hd | 967 | drivers/scsi/eata_dma.c | memset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
hd | 968 | drivers/scsi/eata_dma.c | memset(hd->reads, 0, sizeof(u32) * 26); |
hd | 970 | drivers/scsi/eata_dma.c | hd->broken_INQUIRY = (bugs & BROKEN_INQUIRY); |
hd | 972 | drivers/scsi/eata_dma.c | if(hd->broken_INQUIRY == TRUE) { |
hd | 1007 | drivers/scsi/eata_dma.c | hd->bustype = IS_PCI; |
hd | 1009 | drivers/scsi/eata_dma.c | hd->bustype = IS_EISA; |
hd | 1011 | drivers/scsi/eata_dma.c | hd->bustype = IS_ISA; |
hd | 1012 | drivers/scsi/eata_dma.c | } else if(hd->broken_INQUIRY == FALSE) { |
hd | 1014 | drivers/scsi/eata_dma.c | hd->bustype = IS_PCI; |
hd | 1016 | drivers/scsi/eata_dma.c | hd->bustype = IS_EISA; |
hd | 1018 | drivers/scsi/eata_dma.c | hd->bustype = IS_ISA; |
hd | 1020 | drivers/scsi/eata_dma.c | hd->bustype = bustype; |
hd | 1030 | drivers/scsi/eata_dma.c | hd->channel = gc->MAX_CHAN; |
hd | 1046 | drivers/scsi/eata_dma.c | if(hd->bustype != IS_ISA) |
hd | 1063 | drivers/scsi/eata_dma.c | if (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){ |
hd | 1078 | drivers/scsi/eata_dma.c | hd->primary = FALSE; |
hd | 1080 | drivers/scsi/eata_dma.c | hd->primary = TRUE; |
hd | 1084 | drivers/scsi/eata_dma.c | if (hd->bustype != IS_ISA) { |
hd | 1091 | drivers/scsi/eata_dma.c | hd->writes_lat[x][1] = 0xffffffff; |
hd | 1092 | drivers/scsi/eata_dma.c | hd->reads_lat[x][1] = 0xffffffff; |
hd | 1095 | drivers/scsi/eata_dma.c | hd->next = NULL; /* build a linked list of all HBAs */ |
hd | 1096 | drivers/scsi/eata_dma.c | hd->prev = last_HBA; |
hd | 1097 | drivers/scsi/eata_dma.c | if(hd->prev != NULL) |
hd | 1098 | 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; |
hd | 75 | include/linux/genhd.h | char *disk_name (struct gendisk *hd, int minor, char *buf); |