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 | 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 | 162 | drivers/scsi/eata_dma.c | inline void eata_latency_in(struct eata_ccb *cp, hostdata *hd) |
hd | 166 | drivers/scsi/eata_dma.c | if(hd->all_lat[1] > time) |
hd | 167 | drivers/scsi/eata_dma.c | hd->all_lat[1] = time; |
hd | 168 | drivers/scsi/eata_dma.c | if(hd->all_lat[2] < time) |
hd | 169 | drivers/scsi/eata_dma.c | hd->all_lat[2] = time; |
hd | 170 | drivers/scsi/eata_dma.c | hd->all_lat[3] += time; |
hd | 171 | drivers/scsi/eata_dma.c | hd->all_lat[0]++; |
hd | 173 | drivers/scsi/eata_dma.c | if(hd->writes_lat[cp->sizeindex][1] > time) |
hd | 174 | drivers/scsi/eata_dma.c | hd->writes_lat[cp->sizeindex][1] = time; |
hd | 175 | drivers/scsi/eata_dma.c | if(hd->writes_lat[cp->sizeindex][2] < time) |
hd | 176 | drivers/scsi/eata_dma.c | hd->writes_lat[cp->sizeindex][2] = time; |
hd | 177 | drivers/scsi/eata_dma.c | hd->writes_lat[cp->sizeindex][3] += time; |
hd | 178 | drivers/scsi/eata_dma.c | hd->writes_lat[cp->sizeindex][0]++; |
hd | 180 | drivers/scsi/eata_dma.c | if(hd->reads_lat[cp->sizeindex][1] > time) |
hd | 181 | drivers/scsi/eata_dma.c | hd->reads_lat[cp->sizeindex][1] = time; |
hd | 182 | drivers/scsi/eata_dma.c | if(hd->reads_lat[cp->sizeindex][2] < time) |
hd | 183 | drivers/scsi/eata_dma.c | hd->reads_lat[cp->sizeindex][2] = time; |
hd | 184 | drivers/scsi/eata_dma.c | hd->reads_lat[cp->sizeindex][3] += time; |
hd | 185 | drivers/scsi/eata_dma.c | hd->reads_lat[cp->sizeindex][0]++; |
hd | 448 | drivers/scsi/eata_dma.c | hostdata *hd; |
hd | 458 | drivers/scsi/eata_dma.c | hd = HD(cmd); |
hd | 471 | drivers/scsi/eata_dma.c | for (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { |
hd | 474 | drivers/scsi/eata_dma.c | if (hd->ccb[y].status == FREE) |
hd | 478 | drivers/scsi/eata_dma.c | hd->last_ccb = y; |
hd | 489 | drivers/scsi/eata_dma.c | ccb = &hd->ccb[y]; |
hd | 499 | drivers/scsi/eata_dma.c | if(hd->do_latency == TRUE) |
hd | 562 | drivers/scsi/eata_dma.c | ccb->cp_statDMA = htonl(virt_to_bus(&(hd->sp))); |
hd | 567 | drivers/scsi/eata_dma.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
hd | 992 | drivers/scsi/eata_dma.c | hostdata *hd; |
hd | 1111 | drivers/scsi/eata_dma.c | hd = SD(sh); |
hd | 1113 | drivers/scsi/eata_dma.c | memset(hd->reads, 0, sizeof(u32) * 26); |
hd | 1117 | drivers/scsi/eata_dma.c | hd->bustype = bustype; |
hd | 1124 | drivers/scsi/eata_dma.c | if (gc->SG_64K==TRUE && ntohs(gc->SGsiz)==64 && hd->bustype!=IS_ISA){ |
hd | 1136 | drivers/scsi/eata_dma.c | hd->sgsize = sh->sg_tablesize; |
hd | 1140 | drivers/scsi/eata_dma.c | sh->can_queue = hd->queuesize = ntohs(gc->queuesiz); |
hd | 1160 | drivers/scsi/eata_dma.c | hd->broken_INQUIRY = (bugs & BROKEN_INQUIRY); |
hd | 1162 | drivers/scsi/eata_dma.c | if(hd->broken_INQUIRY == TRUE) { |
hd | 1163 | drivers/scsi/eata_dma.c | strcpy(hd->vendor, "DPT"); |
hd | 1164 | drivers/scsi/eata_dma.c | strcpy(hd->name, "??????????"); |
hd | 1165 | drivers/scsi/eata_dma.c | strcpy(hd->revision, "???.?"); |
hd | 1166 | drivers/scsi/eata_dma.c | hd->firmware_revision = 0; |
hd | 1168 | drivers/scsi/eata_dma.c | strncpy(hd->vendor, &buff[8], 8); |
hd | 1169 | drivers/scsi/eata_dma.c | hd->vendor[8] = 0; |
hd | 1170 | drivers/scsi/eata_dma.c | strncpy(hd->name, &buff[16], 17); |
hd | 1171 | drivers/scsi/eata_dma.c | hd->name[17] = 0; |
hd | 1172 | drivers/scsi/eata_dma.c | hd->revision[0] = buff[32]; |
hd | 1173 | drivers/scsi/eata_dma.c | hd->revision[1] = buff[33]; |
hd | 1174 | drivers/scsi/eata_dma.c | hd->revision[2] = buff[34]; |
hd | 1175 | drivers/scsi/eata_dma.c | hd->revision[3] = '.'; |
hd | 1176 | drivers/scsi/eata_dma.c | hd->revision[4] = buff[35]; |
hd | 1177 | drivers/scsi/eata_dma.c | hd->revision[5] = 0; |
hd | 1178 | drivers/scsi/eata_dma.c | hd->firmware_revision = (buff[32] << 24) + (buff[33] << 16) |
hd | 1182 | drivers/scsi/eata_dma.c | if (hd->firmware_revision >= (('0'<<24) + ('7'<<16) + ('G'<< 8) + '0')) |
hd | 1183 | drivers/scsi/eata_dma.c | hd->immediate_support = 1; |
hd | 1185 | drivers/scsi/eata_dma.c | hd->immediate_support = 0; |
hd | 1189 | drivers/scsi/eata_dma.c | hd->EATA_revision = 'a'; |
hd | 1192 | drivers/scsi/eata_dma.c | hd->EATA_revision = 'b'; |
hd | 1195 | drivers/scsi/eata_dma.c | hd->EATA_revision = 'c'; |
hd | 1198 | drivers/scsi/eata_dma.c | hd->EATA_revision = 'z'; |
hd | 1200 | drivers/scsi/eata_dma.c | hd->EATA_revision = '?'; |
hd | 1212 | drivers/scsi/eata_dma.c | hd->HBA_number = sh->host_no; |
hd | 1213 | drivers/scsi/eata_dma.c | hd->channel = gc->MAX_CHAN; |
hd | 1228 | drivers/scsi/eata_dma.c | hd->primary = FALSE; |
hd | 1230 | drivers/scsi/eata_dma.c | hd->primary = TRUE; |
hd | 1234 | drivers/scsi/eata_dma.c | if (hd->bustype != IS_ISA) { |
hd | 1241 | drivers/scsi/eata_dma.c | hd->writes_lat[x][1] = 0xffffffff; |
hd | 1242 | drivers/scsi/eata_dma.c | hd->reads_lat[x][1] = 0xffffffff; |
hd | 1244 | drivers/scsi/eata_dma.c | hd->all_lat[1] = 0xffffffff; |
hd | 1246 | drivers/scsi/eata_dma.c | hd->next = NULL; /* build a linked list of all HBAs */ |
hd | 1247 | drivers/scsi/eata_dma.c | hd->prev = last_HBA; |
hd | 1248 | drivers/scsi/eata_dma.c | if(hd->prev != NULL) |
hd | 1249 | 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); |