taglinefilesource code
hd30drivers/block/genhd.cstatic char minor_name (struct gendisk *hd, int minor)
hd32drivers/block/genhd.cchar base_name = (hd->major == IDE1_MAJOR) ? 'c' : 'a';
hd33drivers/block/genhd.creturn base_name + (minor >> hd->minor_shift);
hd36drivers/block/genhd.cstatic void add_partition (struct gendisk *hd, int minor, int start, int size)
hd38drivers/block/genhd.chd->part[minor].start_sect = start;
hd39drivers/block/genhd.chd->part[minor].nr_sects   = size;
hd40drivers/block/genhd.cprintk(" %s%c%d", hd->major_name, minor_name(hd, minor),
hd41drivers/block/genhd.cminor & ((1 << hd->minor_shift) - 1));
hd56drivers/block/genhd.cstatic void extended_partition(struct gendisk *hd, int dev)
hd61drivers/block/genhd.cint mask = (1 << hd->minor_shift) - 1;
hd63drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
hd67drivers/block/genhd.cif ((current_minor & mask) >= (4 + hd->max_p))
hd86drivers/block/genhd.cadd_partition(hd, current_minor, this_sector+p->start_sect, p->nr_sects);
hd97drivers/block/genhd.c!(hd->part[current_minor].nr_sects = p->nr_sects))
hd99drivers/block/genhd.chd->part[current_minor].start_sect = first_sector + p->start_sect;
hd100drivers/block/genhd.chd->sizes[current_minor] = p->nr_sects >> (BLOCK_SIZE_BITS - 9);
hd102drivers/block/genhd.cdev = ((hd->major) << 8) | current_minor;
hd111drivers/block/genhd.cstatic int msdos_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
hd116drivers/block/genhd.cint mask = (1 << hd->minor_shift) - 1;
hd152drivers/block/genhd.chd->part[MINOR(dev)].start_sect += p->end_sector;
hd153drivers/block/genhd.chd->part[MINOR(dev)].nr_sects   -= p->end_sector;
hd178drivers/block/genhd.cadd_partition(hd, minor, first_sector+p->start_sect, p->nr_sects);
hd183drivers/block/genhd.cextended_partition(hd, (hd->major << 8) | minor);
hd198drivers/block/genhd.cadd_partition(hd, current_minor, p->start_sect, p->nr_sects);
hd210drivers/block/genhd.cstatic int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
hd266drivers/block/genhd.cadd_partition(hd, current_minor,
hd278drivers/block/genhd.cstatic void check_partition(struct gendisk *hd, unsigned int dev)
hd286drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
hd293drivers/block/genhd.chd->part[MINOR(dev)].start_sect = 0;
hd297drivers/block/genhd.cprintk("  %s%c:", hd->major_name, minor_name(hd, MINOR(dev)));
hd299drivers/block/genhd.cif (msdos_partition(hd, dev, first_sector))
hd303drivers/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 *
hd348drivers/scsi/eata_dma.chostdata *hd;
hd365drivers/scsi/eata_dma.chd = HD(cmd);
hd369drivers/scsi/eata_dma.cfor (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { 
hd372drivers/scsi/eata_dma.cif (hd->ccb[y].status == FREE)
hd376drivers/scsi/eata_dma.chd->last_ccb = y;
hd386drivers/scsi/eata_dma.ccp = &hd->ccb[y];
hd396drivers/scsi/eata_dma.cif(hd->do_latency == TRUE) {
hd489drivers/scsi/eata_dma.ccp->cp_statDMA = htonl((u32) &(hd->sp));
hd493drivers/scsi/eata_dma.ccmd->host_scribble = (char *)&hd->ccb[y];  
hd835drivers/scsi/eata_dma.chostdata *hd;
hd941drivers/scsi/eata_dma.chd = SD(sh);       
hd943drivers/scsi/eata_dma.cmemset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz));
hd944drivers/scsi/eata_dma.cmemset(hd->reads, 0, sizeof(u32) * 26); 
hd946drivers/scsi/eata_dma.chd->broken_INQUIRY = (bugs & BROKEN_INQUIRY);
hd948drivers/scsi/eata_dma.cif(hd->broken_INQUIRY == TRUE) {
hd983drivers/scsi/eata_dma.chd->bustype = IS_PCI;
hd985drivers/scsi/eata_dma.chd->bustype = IS_EISA;
hd987drivers/scsi/eata_dma.chd->bustype = IS_ISA;
hd988drivers/scsi/eata_dma.c} else if(hd->broken_INQUIRY == FALSE) {
hd990drivers/scsi/eata_dma.chd->bustype = IS_PCI;
hd992drivers/scsi/eata_dma.chd->bustype = IS_EISA;
hd994drivers/scsi/eata_dma.chd->bustype = IS_ISA;
hd996drivers/scsi/eata_dma.chd->bustype = bustype;
hd1006drivers/scsi/eata_dma.chd->channel = gc->MAX_CHAN;      
hd1021drivers/scsi/eata_dma.cif(hd->bustype != IS_ISA)
hd1036drivers/scsi/eata_dma.cif (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){
hd1051drivers/scsi/eata_dma.chd->primary = FALSE;
hd1053drivers/scsi/eata_dma.chd->primary = TRUE;
hd1057drivers/scsi/eata_dma.cif (hd->bustype != IS_ISA) {
hd1064drivers/scsi/eata_dma.chd->writes_lat[x][1] = 0xffffffff;
hd1065drivers/scsi/eata_dma.chd->reads_lat[x][1] = 0xffffffff;
hd1068drivers/scsi/eata_dma.chd->next = NULL;  /* build a linked list of all HBAs */
hd1069drivers/scsi/eata_dma.chd->prev = last_HBA;
hd1070drivers/scsi/eata_dma.cif(hd->prev != NULL)
hd1071drivers/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;