taglinefilesource code
hd33drivers/block/genhd.cstatic char minor_name (struct gendisk *hd, int minor)
hd35drivers/block/genhd.cchar base_name = (hd->major == IDE1_MAJOR) ? 'c' : 'a';
hd36drivers/block/genhd.creturn base_name + (minor >> hd->minor_shift);
hd39drivers/block/genhd.cstatic void add_partition (struct gendisk *hd, int minor, int start, int size)
hd41drivers/block/genhd.chd->part[minor].start_sect = start;
hd42drivers/block/genhd.chd->part[minor].nr_sects   = size;
hd43drivers/block/genhd.cprintk(" %s%c%d", hd->major_name, minor_name(hd, minor),
hd44drivers/block/genhd.cminor & ((1 << hd->minor_shift) - 1));
hd59drivers/block/genhd.cstatic void extended_partition(struct gendisk *hd, int dev)
hd64drivers/block/genhd.cint mask = (1 << hd->minor_shift) - 1;
hd66drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
hd70drivers/block/genhd.cif ((current_minor & mask) >= (4 + hd->max_p))
hd89drivers/block/genhd.cadd_partition(hd, current_minor, this_sector+p->start_sect, p->nr_sects);
hd100drivers/block/genhd.c!(hd->part[current_minor].nr_sects = p->nr_sects))
hd102drivers/block/genhd.chd->part[current_minor].start_sect = first_sector + p->start_sect;
hd103drivers/block/genhd.chd->sizes[current_minor] = p->nr_sects >> (BLOCK_SIZE_BITS - 9);
hd105drivers/block/genhd.cdev = ((hd->major) << 8) | current_minor;
hd114drivers/block/genhd.cstatic int msdos_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
hd119drivers/block/genhd.cint mask = (1 << hd->minor_shift) - 1;
hd181drivers/block/genhd.cadd_partition(hd, minor, first_sector+p->start_sect, p->nr_sects);
hd186drivers/block/genhd.cextended_partition(hd, (hd->major << 8) | minor);
hd201drivers/block/genhd.cadd_partition(hd, current_minor, p->start_sect, p->nr_sects);
hd213drivers/block/genhd.cstatic int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
hd269drivers/block/genhd.cadd_partition(hd, current_minor,
hd281drivers/block/genhd.cstatic void check_partition(struct gendisk *hd, unsigned int dev)
hd289drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
hd296drivers/block/genhd.chd->part[MINOR(dev)].start_sect = 0;
hd300drivers/block/genhd.cprintk("  %s%c:", hd->major_name, minor_name(hd, MINOR(dev)));
hd302drivers/block/genhd.cif (msdos_partition(hd, dev, first_sector))
hd306drivers/block/genhd.cif (osf_partition(hd, dev, first_sector))
hd91drivers/block/hd.cstatic struct hd_struct hd[MAX_HD<<6]={{0,0},};
hd715drivers/block/hd.cif (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) {
hd726drivers/block/hd.cblock += hd[dev].start_sect;
hd803drivers/block/hd.cput_user(hd[MINOR(inode->i_rdev)].start_sect,
hd823drivers/block/hd.cput_user(hd[MINOR(inode->i_rdev)].nr_sects, (long *) arg);
hd927drivers/block/hd.chd,    /* hd struct */
hd1018drivers/block/hd.chd[i<<6].nr_sects = bios_info[i].head *
hd341drivers/scsi/eata_dma.chostdata *hd;
hd351drivers/scsi/eata_dma.chd = HD(cmd);
hd355drivers/scsi/eata_dma.cfor (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { 
hd358drivers/scsi/eata_dma.cif (hd->ccb[y].status == FREE)
hd362drivers/scsi/eata_dma.chd->last_ccb = y;
hd372drivers/scsi/eata_dma.ccp = &hd->ccb[y];
hd382drivers/scsi/eata_dma.cif(hd->do_latency == TRUE) {
hd477drivers/scsi/eata_dma.ccp->cp_statDMA = htonl(virt_to_bus(&(hd->sp)));
hd481drivers/scsi/eata_dma.ccmd->host_scribble = (char *)&hd->ccb[y];  
hd826drivers/scsi/eata_dma.chostdata *hd;
hd938drivers/scsi/eata_dma.chd = SD(sh);       
hd940drivers/scsi/eata_dma.cmemset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz));
hd941drivers/scsi/eata_dma.cmemset(hd->reads, 0, sizeof(u32) * 26); 
hd943drivers/scsi/eata_dma.chd->broken_INQUIRY = (bugs & BROKEN_INQUIRY);
hd945drivers/scsi/eata_dma.cif(hd->broken_INQUIRY == TRUE) {
hd980drivers/scsi/eata_dma.chd->bustype = IS_PCI;
hd982drivers/scsi/eata_dma.chd->bustype = IS_EISA;
hd984drivers/scsi/eata_dma.chd->bustype = IS_ISA;
hd985drivers/scsi/eata_dma.c} else if(hd->broken_INQUIRY == FALSE) {
hd987drivers/scsi/eata_dma.chd->bustype = IS_PCI;
hd989drivers/scsi/eata_dma.chd->bustype = IS_EISA;
hd991drivers/scsi/eata_dma.chd->bustype = IS_ISA;
hd993drivers/scsi/eata_dma.chd->bustype = bustype;
hd1003drivers/scsi/eata_dma.chd->channel = gc->MAX_CHAN;      
hd1018drivers/scsi/eata_dma.cif(hd->bustype != IS_ISA)
hd1034drivers/scsi/eata_dma.cif (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){
hd1049drivers/scsi/eata_dma.chd->primary = FALSE;
hd1051drivers/scsi/eata_dma.chd->primary = TRUE;
hd1055drivers/scsi/eata_dma.cif (hd->bustype != IS_ISA) {
hd1062drivers/scsi/eata_dma.chd->writes_lat[x][1] = 0xffffffff;
hd1063drivers/scsi/eata_dma.chd->reads_lat[x][1] = 0xffffffff;
hd1066drivers/scsi/eata_dma.chd->next = NULL;  /* build a linked list of all HBAs */
hd1067drivers/scsi/eata_dma.chd->prev = last_HBA;
hd1068drivers/scsi/eata_dma.cif(hd->prev != NULL)
hd1069drivers/scsi/eata_dma.cSD(hd->prev)->next = sh;
hd132drivers/scsi/eata_pio.chostdata *hd;
hd152drivers/scsi/eata_pio.chd=SD(sh);
hd154drivers/scsi/eata_pio.ccp = &hd->ccb[0];
hd222drivers/scsi/eata_pio.cwhile ((stat&HA_SDRQ)||((stat&HA_SMORE)&&hd->moresupport));
hd235drivers/scsi/eata_pio.chd->devflags|=(1<<cp->cp_id);
hd237drivers/scsi/eata_pio.celse if (hd->devflags&1<<cp->cp_id) 
hd287drivers/scsi/eata_pio.chostdata *hd;
hd303drivers/scsi/eata_pio.chd = HD(cmd);
hd311drivers/scsi/eata_pio.cif (hd->ccb[y].status!=FREE) { 
hd322drivers/scsi/eata_pio.ccp = &hd->ccb[y];
hd354drivers/scsi/eata_pio.ccp->Interpret = (cmd->target==hd->hostid);
hd370drivers/scsi/eata_pio.ccmd->host_scribble = (char *)&hd->ccb[y];   
hd399drivers/scsi/eata_pio.coutsw(base + HA_RDATA, cp, hd->cplen);
hd401drivers/scsi/eata_pio.cfor (x=0; x<hd->cppadlen; x++) outw(0, base + HA_RDATA);
hd690drivers/scsi/eata_pio.chostdata *hd;
hd739drivers/scsi/eata_pio.chd = SD(sh);                   
hd741drivers/scsi/eata_pio.cmemset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz)));
hd742drivers/scsi/eata_pio.cmemset(hd->reads, 0, sizeof(ulong) * 26); 
hd782drivers/scsi/eata_pio.chd->channel = 0;
hd786drivers/scsi/eata_pio.chd->bustype = IS_PCI;
hd788drivers/scsi/eata_pio.chd->bustype = IS_EISA;
hd790drivers/scsi/eata_pio.chd->bustype = IS_ISA;
hd793drivers/scsi/eata_pio.chd->bustype = IS_PCI;
hd795drivers/scsi/eata_pio.chd->bustype = IS_EISA;
hd797drivers/scsi/eata_pio.chd->bustype = IS_ISA;
hd804drivers/scsi/eata_pio.chd->primary = FALSE;
hd806drivers/scsi/eata_pio.chd->primary = TRUE;
hd810drivers/scsi/eata_pio.chd->next = NULL;    /* build a linked list of all HBAs */
hd811drivers/scsi/eata_pio.chd->prev = last_HBA;
hd812drivers/scsi/eata_pio.cif(hd->prev != NULL)
hd813drivers/scsi/eata_pio.cSD(hd->prev)->next = sh;