| tag | line | file | source code |
| hd | 34 | arch/m68k/amiga/amipart.c | void amiga_check_partition(struct gendisk *hd, kdev_t dev) |
| hd | 36 | arch/m68k/amiga/amipart.c | int i, minor = current_minor, m_lim = current_minor + hd->max_p; |
| hd | 71 | arch/m68k/amiga/amipart.c | printk(" %s%c:", hd->major_name, 'a'+(minor >> hd->minor_shift)); |
| hd | 105 | arch/m68k/amiga/amipart.c | hd->part[minor].start_sect = env[DE_LOWCYL] |
| hd | 107 | arch/m68k/amiga/amipart.c | hd->part[minor].nr_sects = (env[DE_UPPERCYL] |
| hd | 111 | arch/m68k/amiga/amipart.c | printk(" %s%c%d", hd->major_name, |
| hd | 112 | arch/m68k/amiga/amipart.c | 'a'+(minor >> hd->minor_shift), i); |
| hd | 52 | arch/m68k/amiga/config.c | extern void amiga_check_partition (struct gendisk *hd, unsigned int dev); |
| hd | 33 | arch/m68k/atari/atapart.c | atari_check_partition (struct gendisk *hd, unsigned int dev) |
| hd | 35 | arch/m68k/atari/atapart.c | int i, minor = current_minor, m_lim = current_minor + hd->max_p; |
| hd | 52 | arch/m68k/atari/atapart.c | printk (" %s%c:", hd->major_name, 'a' + (minor >> hd->minor_shift)); |
| hd | 90 | arch/m68k/atari/atapart.c | hd->part[minor].start_sect = partsect + xrs->part[0].st; |
| hd | 91 | arch/m68k/atari/atapart.c | hd->part[minor].nr_sects = xrs->part[0].siz; |
| hd | 92 | arch/m68k/atari/atapart.c | printk (" %s%c%d", hd->major_name, |
| hd | 93 | arch/m68k/atari/atapart.c | 'a' + (minor >> hd->minor_shift), i); |
| hd | 119 | arch/m68k/atari/atapart.c | hd->part[minor].start_sect = pi->st; |
| hd | 120 | arch/m68k/atari/atapart.c | hd->part[minor].nr_sects = pi->siz; |
| hd | 121 | arch/m68k/atari/atapart.c | printk (" %s%c%d", hd->major_name, |
| hd | 122 | arch/m68k/atari/atapart.c | 'a' + (minor >> hd->minor_shift), i); |
| hd | 145 | arch/m68k/atari/atapart.c | hd->part[minor].start_sect = pi->st; |
| hd | 146 | arch/m68k/atari/atapart.c | hd->part[minor].nr_sects = pi->siz; |
| hd | 147 | arch/m68k/atari/atapart.c | printk (" %s%c%d", hd->major_name, |
| hd | 148 | arch/m68k/atari/atapart.c | 'a' + (minor >> hd->minor_shift), i); |
| hd | 63 | arch/m68k/atari/config.c | extern void atari_check_partition (struct gendisk *hd, unsigned int dev); |
| 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 | 216 | drivers/block/genhd.c | static void bsd_disklabel_partition(struct gendisk *hd, int dev) |
| hd | 221 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
| hd | 234 | drivers/block/genhd.c | if ((current_minor & mask) >= (4 + hd->max_p)) |
| hd | 238 | drivers/block/genhd.c | add_partition(hd, current_minor, p->p_offset, p->p_size); |
| hd | 248 | drivers/block/genhd.c | static int msdos_partition(struct gendisk *hd, kdev_t dev, unsigned long first_sector) |
| hd | 254 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
| hd | 351 | drivers/block/genhd.c | add_partition(hd, minor, first_sector+START_SECT(p), NR_SECTS(p)); |
| hd | 360 | drivers/block/genhd.c | hd->sizes[minor] = hd->part[minor].nr_sects |
| hd | 362 | drivers/block/genhd.c | extended_partition(hd, MKDEV(hd->major, minor)); |
| hd | 366 | drivers/block/genhd.c | if (hd->part[minor].nr_sects > 2) |
| hd | 367 | drivers/block/genhd.c | hd->part[minor].nr_sects = 2; |
| hd | 372 | drivers/block/genhd.c | bsd_disklabel_partition(hd, MKDEV(hd->major, minor)); |
| hd | 388 | drivers/block/genhd.c | add_partition(hd, current_minor, START_SECT(p), NR_SECTS(p)); |
| hd | 400 | drivers/block/genhd.c | static int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector) |
| hd | 403 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
| hd | 459 | drivers/block/genhd.c | add_partition(hd, current_minor, |
| hd | 473 | drivers/block/genhd.c | static int sun_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector) |
| hd | 544 | drivers/block/genhd.c | add_partition(hd, current_minor, st_sector, SWAP32(p->num_sectors)); |
| hd | 556 | drivers/block/genhd.c | static void check_partition(struct gendisk *hd, kdev_t dev) |
| hd | 565 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
| hd | 572 | drivers/block/genhd.c | hd->part[MINOR(dev)].start_sect = 0; |
| hd | 576 | drivers/block/genhd.c | printk(" %s:", disk_name(hd, MINOR(dev), buf)); |
| hd | 578 | drivers/block/genhd.c | if (msdos_partition(hd, dev, first_sector)) |
| hd | 582 | drivers/block/genhd.c | if (osf_partition(hd, dev, first_sector)) |
| hd | 586 | 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 | 92 | drivers/block/md.c | struct gendisk *hd = find_gendisk (dev); |
| hd | 94 | drivers/block/md.c | if (!hd) |
| hd | 101 | drivers/block/md.c | return disk_name (hd, MINOR(dev), name); /* routine in genhd.c */ |
| hd | 349 | drivers/scsi/eata_dma.c | hostdata *hd; |
| hd | 359 | drivers/scsi/eata_dma.c | hd = HD(cmd); |
| hd | 363 | drivers/scsi/eata_dma.c | for (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { |
| hd | 366 | drivers/scsi/eata_dma.c | if (hd->ccb[y].status == FREE) |
| hd | 370 | drivers/scsi/eata_dma.c | hd->last_ccb = y; |
| hd | 381 | drivers/scsi/eata_dma.c | cp = &hd->ccb[y]; |
| hd | 391 | drivers/scsi/eata_dma.c | if(hd->do_latency == TRUE) { |
| hd | 487 | drivers/scsi/eata_dma.c | cp->cp_statDMA = htonl(virt_to_bus(&(hd->sp))); |
| hd | 492 | drivers/scsi/eata_dma.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
| hd | 919 | drivers/scsi/eata_dma.c | hostdata *hd; |
| hd | 1030 | drivers/scsi/eata_dma.c | hd = SD(sh); |
| hd | 1032 | drivers/scsi/eata_dma.c | memset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
| hd | 1033 | drivers/scsi/eata_dma.c | memset(hd->reads, 0, sizeof(u32) * 26); |
| hd | 1035 | drivers/scsi/eata_dma.c | hd->broken_INQUIRY = (bugs & BROKEN_INQUIRY); |
| hd | 1037 | drivers/scsi/eata_dma.c | if(hd->broken_INQUIRY == TRUE) { |
| hd | 1072 | drivers/scsi/eata_dma.c | hd->bustype = IS_PCI; |
| hd | 1074 | drivers/scsi/eata_dma.c | hd->bustype = IS_EISA; |
| hd | 1076 | drivers/scsi/eata_dma.c | hd->bustype = IS_ISA; |
| hd | 1077 | drivers/scsi/eata_dma.c | } else if(hd->broken_INQUIRY == FALSE) { |
| hd | 1079 | drivers/scsi/eata_dma.c | hd->bustype = IS_PCI; |
| hd | 1081 | drivers/scsi/eata_dma.c | hd->bustype = IS_EISA; |
| hd | 1083 | drivers/scsi/eata_dma.c | hd->bustype = IS_ISA; |
| hd | 1085 | drivers/scsi/eata_dma.c | hd->bustype = bustype; |
| hd | 1095 | drivers/scsi/eata_dma.c | hd->channel = gc->MAX_CHAN; |
| hd | 1109 | drivers/scsi/eata_dma.c | hd->queuesize = ntohs(gc->queuesiz); |
| hd | 1122 | drivers/scsi/eata_dma.c | if (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){ |
| hd | 1137 | drivers/scsi/eata_dma.c | hd->primary = FALSE; |
| hd | 1139 | drivers/scsi/eata_dma.c | hd->primary = TRUE; |
| hd | 1143 | drivers/scsi/eata_dma.c | if (hd->bustype != IS_ISA) { |
| hd | 1150 | drivers/scsi/eata_dma.c | hd->writes_lat[x][1] = 0xffffffff; |
| hd | 1151 | drivers/scsi/eata_dma.c | hd->reads_lat[x][1] = 0xffffffff; |
| hd | 1154 | drivers/scsi/eata_dma.c | hd->next = NULL; /* build a linked list of all HBAs */ |
| hd | 1155 | drivers/scsi/eata_dma.c | hd->prev = last_HBA; |
| hd | 1156 | drivers/scsi/eata_dma.c | if(hd->prev != NULL) |
| hd | 1157 | 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 | 287 | drivers/scsi/eata_pio.c | hostdata *hd; |
| hd | 296 | drivers/scsi/eata_pio.c | hd = HD(cmd); |
| hd | 304 | drivers/scsi/eata_pio.c | if (hd->ccb[y].status!=FREE) { |
| hd | 316 | drivers/scsi/eata_pio.c | cp = &hd->ccb[y]; |
| hd | 348 | drivers/scsi/eata_pio.c | cp->Interpret = (cmd->target == hd->hostid); |
| hd | 364 | drivers/scsi/eata_pio.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
| hd | 392 | drivers/scsi/eata_pio.c | outsw(base + HA_RDATA, cp, hd->cplen); |
| hd | 394 | drivers/scsi/eata_pio.c | for (x = 0; x < hd->cppadlen; x++) outw(0, base + HA_RDATA); |
| hd | 689 | drivers/scsi/eata_pio.c | hostdata *hd; |
| hd | 738 | drivers/scsi/eata_pio.c | hd = SD(sh); |
| hd | 740 | drivers/scsi/eata_pio.c | memset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz))); |
| hd | 741 | drivers/scsi/eata_pio.c | memset(hd->reads, 0, sizeof(ulong) * 26); |
| hd | 772 | drivers/scsi/eata_pio.c | hd->bustype = IS_PCI; |
| hd | 774 | drivers/scsi/eata_pio.c | hd->bustype = IS_EISA; |
| hd | 776 | drivers/scsi/eata_pio.c | hd->bustype = IS_ISA; |
| hd | 779 | drivers/scsi/eata_pio.c | hd->bustype = IS_PCI; |
| hd | 781 | drivers/scsi/eata_pio.c | hd->bustype = IS_EISA; |
| hd | 783 | drivers/scsi/eata_pio.c | hd->bustype = IS_ISA; |
| hd | 802 | drivers/scsi/eata_pio.c | hd->channel = 0; |
| hd | 808 | drivers/scsi/eata_pio.c | hd->primary = FALSE; |
| hd | 810 | drivers/scsi/eata_pio.c | hd->primary = TRUE; |
| hd | 814 | drivers/scsi/eata_pio.c | hd->next = NULL; /* build a linked list of all HBAs */ |
| hd | 815 | drivers/scsi/eata_pio.c | hd->prev = last_HBA; |
| hd | 816 | drivers/scsi/eata_pio.c | if(hd->prev != NULL) |
| hd | 817 | drivers/scsi/eata_pio.c | SD(hd->prev)->next = sh; |
| hd | 2236 | drivers/scsi/in2000.c | struct IN2000_hostdata *hd; |
| hd | 2249 | drivers/scsi/in2000.c | hd = (struct IN2000_hostdata *)instance->hostdata; |
| hd | 2265 | drivers/scsi/in2000.c | hd->args = simple_strtoul(bp,NULL,0) & DB_MASK; |
| hd | 2272 | drivers/scsi/in2000.c | hd->disconnect = x; |
| hd | 2277 | drivers/scsi/in2000.c | hd->default_sx_per = sx_table[round_period((unsigned int)x)].period_ns; |
| hd | 2284 | drivers/scsi/in2000.c | hd->sync_stat[i] = SS_UNSET; |
| hd | 2288 | drivers/scsi/in2000.c | hd->proc = simple_strtoul(bp,NULL,0); |
| hd | 2297 | drivers/scsi/in2000.c | if (hd->proc & PR_VERSION) { |
| hd | 2302 | drivers/scsi/in2000.c | if (hd->proc & PR_INFO) { |
| hd | 2304 | drivers/scsi/in2000.c | (hd->dip_switch & 0x7f), instance->irq, hd->io_base, |
| hd | 2305 | drivers/scsi/in2000.c | (hd->dip_switch & 0x40)?"Yes":"No", |
| hd | 2306 | drivers/scsi/in2000.c | (hd->dip_switch & 0x20)?"Yes":"No"); |
| hd | 2309 | drivers/scsi/in2000.c | if (hd->proc & PR_TOTALS) { |
| hd | 2314 | drivers/scsi/in2000.c | if (hd->proc & PR_CONNECTED) { |
| hd | 2316 | drivers/scsi/in2000.c | if (hd->connected) { |
| hd | 2317 | drivers/scsi/in2000.c | cmd = (Scsi_Cmnd *)hd->connected; |
| hd | 2323 | drivers/scsi/in2000.c | if (hd->proc & PR_INPUTQ) { |
| hd | 2325 | drivers/scsi/in2000.c | cmd = (Scsi_Cmnd *)hd->input_Q; |
| hd | 2333 | drivers/scsi/in2000.c | if (hd->proc & PR_DISCQ) { |
| hd | 2335 | drivers/scsi/in2000.c | cmd = (Scsi_Cmnd *)hd->disconnected_Q; |
| hd | 2343 | drivers/scsi/in2000.c | if (hd->proc & PR_TEST) { |
| hd | 2355 | drivers/scsi/in2000.c | if (hd->proc & PR_STOP) /* stop every other time */ |
| hd | 1706 | drivers/scsi/wd33c93.c | struct WD33C93_hostdata *hd; |
| hd | 1719 | drivers/scsi/wd33c93.c | hd = (struct WD33C93_hostdata *)instance->hostdata; |
| hd | 1735 | drivers/scsi/wd33c93.c | hd->args = simple_strtoul(bp,NULL,0) & DB_MASK; |
| hd | 1742 | drivers/scsi/wd33c93.c | hd->disconnect = x; |
| hd | 1747 | drivers/scsi/wd33c93.c | hd->default_sx_per = sx_table[round_period((unsigned int)x)].period_ns; |
| hd | 1754 | drivers/scsi/wd33c93.c | hd->sync_stat[i] = SS_UNSET; |
| hd | 1758 | drivers/scsi/wd33c93.c | hd->proc = simple_strtoul(bp,NULL,0); |
| hd | 1767 | drivers/scsi/wd33c93.c | if (hd->proc & PR_VERSION) { |
| hd | 1772 | drivers/scsi/wd33c93.c | if (hd->proc & PR_INFO) { |
| hd | 1775 | drivers/scsi/wd33c93.c | if (hd->proc & PR_TOTALS) { |
| hd | 1780 | drivers/scsi/wd33c93.c | if (hd->proc & PR_CONNECTED) { |
| hd | 1782 | drivers/scsi/wd33c93.c | if (hd->connected) { |
| hd | 1783 | drivers/scsi/wd33c93.c | cmd = (Scsi_Cmnd *)hd->connected; |
| hd | 1789 | drivers/scsi/wd33c93.c | if (hd->proc & PR_INPUTQ) { |
| hd | 1791 | drivers/scsi/wd33c93.c | cmd = (Scsi_Cmnd *)hd->input_Q; |
| hd | 1799 | drivers/scsi/wd33c93.c | if (hd->proc & PR_DISCQ) { |
| hd | 1801 | drivers/scsi/wd33c93.c | cmd = (Scsi_Cmnd *)hd->disconnected_Q; |
| hd | 1818 | drivers/scsi/wd33c93.c | if (hd->proc & PR_STOP) /* stop every other time */ |
| hd | 33 | include/asm-m68k/machdep.h | extern void (*mach_check_partition) (struct gendisk *hd, unsigned int dev); |
| hd | 132 | include/linux/genhd.h | char *disk_name (struct gendisk *hd, int minor, char *buf); |