tag | line | file | source code |
hd | 25 | drivers/block/genhd.c | static char minor_name (struct gendisk *hd, int minor) |
hd | 27 | drivers/block/genhd.c | char base_name = (hd->major == IDE1_MAJOR) ? 'c' : 'a'; |
hd | 28 | drivers/block/genhd.c | return base_name + (minor >> hd->minor_shift); |
hd | 31 | drivers/block/genhd.c | static void add_partition (struct gendisk *hd, int minor, int start, int size) |
hd | 33 | drivers/block/genhd.c | hd->part[minor].start_sect = start; |
hd | 34 | drivers/block/genhd.c | hd->part[minor].nr_sects = size; |
hd | 35 | drivers/block/genhd.c | printk(" %s%c%d", hd->major_name, minor_name(hd, minor), |
hd | 36 | drivers/block/genhd.c | minor & ((1 << hd->minor_shift) - 1)); |
hd | 49 | drivers/block/genhd.c | static void extended_partition(struct gendisk *hd, int dev) |
hd | 54 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
hd | 56 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
hd | 60 | drivers/block/genhd.c | if ((current_minor & mask) >= (4 + hd->max_p)) |
hd | 79 | drivers/block/genhd.c | add_partition(hd, current_minor, this_sector+p->start_sect, p->nr_sects); |
hd | 90 | drivers/block/genhd.c | !(hd->part[current_minor].nr_sects = p->nr_sects)) |
hd | 92 | drivers/block/genhd.c | hd->part[current_minor].start_sect = first_sector + p->start_sect; |
hd | 94 | drivers/block/genhd.c | dev = ((hd->major) << 8) | current_minor; |
hd | 103 | drivers/block/genhd.c | static void check_partition(struct gendisk *hd, unsigned int dev) |
hd | 110 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
hd | 115 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
hd | 122 | drivers/block/genhd.c | hd->part[MINOR(dev)].start_sect = 0; |
hd | 130 | drivers/block/genhd.c | printk(" %s%c:", hd->major_name, minor_name(hd, minor)); |
hd | 137 | drivers/block/genhd.c | add_partition(hd, minor, first_sector+p->start_sect, p->nr_sects); |
hd | 142 | drivers/block/genhd.c | extended_partition(hd, (hd->major << 8) | minor); |
hd | 157 | drivers/block/genhd.c | add_partition(hd, current_minor, p->start_sect, p->nr_sects); |
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_fs_long(hd[MINOR(inode->i_rdev)].start_sect, |
hd | 823 | drivers/block/hd.c | put_fs_long(hd[MINOR(inode->i_rdev)].nr_sects, (long *) arg); |
hd | 927 | drivers/block/hd.c | hd, /* hd struct */ |
hd | 1015 | drivers/block/hd.c | hd[i<<6].nr_sects = bios_info[i].head * |
hd | 280 | drivers/scsi/eata_dma.c | hostdata *hd; |
hd | 297 | drivers/scsi/eata_dma.c | hd = HD(cmd); |
hd | 301 | drivers/scsi/eata_dma.c | for (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { |
hd | 304 | drivers/scsi/eata_dma.c | if (hd->ccb[y].status == FREE) |
hd | 308 | drivers/scsi/eata_dma.c | hd->last_ccb = y; |
hd | 321 | drivers/scsi/eata_dma.c | cp = &hd->ccb[y]; |
hd | 381 | drivers/scsi/eata_dma.c | cp->cp_statDMA = htonl((ulong) &(hd->sp)); |
hd | 385 | drivers/scsi/eata_dma.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
hd | 700 | drivers/scsi/eata_dma.c | hostdata *hd; |
hd | 772 | drivers/scsi/eata_dma.c | hd = SD(sh); |
hd | 774 | drivers/scsi/eata_dma.c | memset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz)) / |
hd | 776 | drivers/scsi/eata_dma.c | memset(hd->reads, 0, sizeof(ulong) * 26); |
hd | 824 | drivers/scsi/eata_dma.c | hd->channel = i; |
hd | 827 | drivers/scsi/eata_dma.c | hd->bustype = 'P'; |
hd | 829 | drivers/scsi/eata_dma.c | hd->bustype = 'E'; |
hd | 831 | drivers/scsi/eata_dma.c | hd->bustype = 'I'; |
hd | 834 | drivers/scsi/eata_dma.c | hd->primary = FALSE; |
hd | 836 | drivers/scsi/eata_dma.c | hd->primary = TRUE; |
hd | 838 | drivers/scsi/eata_dma.c | if (hd->bustype != 'I') { |
hd | 846 | drivers/scsi/eata_dma.c | if((hd->primary == TRUE) && (i == 0) && HARDCODED){ |
hd | 862 | drivers/scsi/eata_dma.c | hd->next = NULL; /* build a linked list of all HBAs */ |
hd | 863 | drivers/scsi/eata_dma.c | hd->prev = last_HBA; |
hd | 864 | drivers/scsi/eata_dma.c | if(hd->prev != NULL) |
hd | 865 | drivers/scsi/eata_dma.c | SD(hd->prev)->next = sh; |