taglinefilesource code
hd40drivers/block/genhd.cstatic void print_minor_name (struct gendisk *hd, int minor)
hd42drivers/block/genhd.cunsigned int unit = minor >> hd->minor_shift;
hd43drivers/block/genhd.cunsigned int part = minor & ((1 << hd->minor_shift) - 1);
hd52drivers/block/genhd.cif (!strcmp(hd->major_name,"ide")) {
hd54drivers/block/genhd.cstrcpy(name, hd->real_devices); /* courtesy ide.c */
hd59drivers/block/genhd.cprintk(" %s%c", hd->major_name, 'a' + unit);
hd66drivers/block/genhd.cstatic void add_partition (struct gendisk *hd, int minor, int start, int size)
hd68drivers/block/genhd.chd->part[minor].start_sect = start;
hd69drivers/block/genhd.chd->part[minor].nr_sects   = size;
hd70drivers/block/genhd.cprint_minor_name(hd, minor);
hd91drivers/block/genhd.cstatic void extended_partition(struct gendisk *hd, kdev_t dev)
hd96drivers/block/genhd.cint mask = (1 << hd->minor_shift) - 1;
hd99drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
hd100drivers/block/genhd.cfirst_size = hd->part[MINOR(dev)].nr_sects;
hd121drivers/block/genhd.cthis_size = hd->part[MINOR(dev)].nr_sects;
hd148drivers/block/genhd.cadd_partition(hd, current_minor, this_sector+p->start_sect, p->nr_sects);
hd170drivers/block/genhd.chd->part[current_minor].nr_sects = p->nr_sects;
hd171drivers/block/genhd.chd->part[current_minor].start_sect = first_sector + p->start_sect;
hd173drivers/block/genhd.cdev = MKDEV(hd->major, current_minor);
hd180drivers/block/genhd.cstatic int msdos_partition(struct gendisk *hd, kdev_t dev, unsigned long first_sector)
hd186drivers/block/genhd.cint mask = (1 << hd->minor_shift) - 1;
hd269drivers/block/genhd.cadd_partition(hd, minor, first_sector+p->start_sect, p->nr_sects);
hd278drivers/block/genhd.chd->sizes[minor] = hd->part[minor].nr_sects 
hd280drivers/block/genhd.cextended_partition(hd, MKDEV(hd->major, minor));
hd284drivers/block/genhd.cif (hd->part[minor].nr_sects > 2)
hd285drivers/block/genhd.chd->part[minor].nr_sects = 2;
hd299drivers/block/genhd.cadd_partition(hd, current_minor, p->start_sect, p->nr_sects);
hd311drivers/block/genhd.cstatic int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
hd314drivers/block/genhd.cint mask = (1 << hd->minor_shift) - 1;
hd370drivers/block/genhd.cadd_partition(hd, current_minor,
hd384drivers/block/genhd.cstatic int sun_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
hd442drivers/block/genhd.cadd_partition(hd, current_minor, st_sector, p->num_sectors);
hd452drivers/block/genhd.cstatic void check_partition(struct gendisk *hd, kdev_t dev)
hd460drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
hd467drivers/block/genhd.chd->part[MINOR(dev)].start_sect = 0;
hd472drivers/block/genhd.cprint_minor_name(hd, MINOR(dev));
hd474drivers/block/genhd.cif (msdos_partition(hd, dev, first_sector))
hd478drivers/block/genhd.cif (osf_partition(hd, dev, first_sector))
hd482drivers/block/genhd.cif(sun_partition(hd, dev, first_sector))
hd89drivers/block/hd.cstatic struct hd_struct hd[MAX_HD<<6]={{0,0},};
hd713drivers/block/hd.cif (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) {
hd725drivers/block/hd.cblock += hd[dev].start_sect;
hd802drivers/block/hd.cput_user(hd[MINOR(inode->i_rdev)].start_sect,
hd822drivers/block/hd.cput_user(hd[MINOR(inode->i_rdev)].nr_sects, (long *) arg);
hd926drivers/block/hd.chd,    /* hd struct */
hd1017drivers/block/hd.chd[i<<6].nr_sects = bios_info[i].head *
hd351drivers/scsi/eata_dma.chostdata *hd;
hd361drivers/scsi/eata_dma.chd = HD(cmd);
hd365drivers/scsi/eata_dma.cfor (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { 
hd368drivers/scsi/eata_dma.cif (hd->ccb[y].status == FREE)
hd372drivers/scsi/eata_dma.chd->last_ccb = y;
hd382drivers/scsi/eata_dma.cswitch(hd->ccb[z].status) {
hd398drivers/scsi/eata_dma.ccp = &hd->ccb[y];
hd408drivers/scsi/eata_dma.cif(hd->do_latency == TRUE) {
hd504drivers/scsi/eata_dma.ccp->cp_statDMA = htonl(virt_to_bus(&(hd->sp)));
hd509drivers/scsi/eata_dma.ccmd->host_scribble = (char *)&hd->ccb[y];  
hd856drivers/scsi/eata_dma.chostdata *hd;
hd967drivers/scsi/eata_dma.chd = SD(sh);       
hd969drivers/scsi/eata_dma.cmemset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz));
hd970drivers/scsi/eata_dma.cmemset(hd->reads, 0, sizeof(u32) * 26); 
hd972drivers/scsi/eata_dma.chd->broken_INQUIRY = (bugs & BROKEN_INQUIRY);
hd974drivers/scsi/eata_dma.cif(hd->broken_INQUIRY == TRUE) {
hd1009drivers/scsi/eata_dma.chd->bustype = IS_PCI;
hd1011drivers/scsi/eata_dma.chd->bustype = IS_EISA;
hd1013drivers/scsi/eata_dma.chd->bustype = IS_ISA;
hd1014drivers/scsi/eata_dma.c} else if(hd->broken_INQUIRY == FALSE) {
hd1016drivers/scsi/eata_dma.chd->bustype = IS_PCI;
hd1018drivers/scsi/eata_dma.chd->bustype = IS_EISA;
hd1020drivers/scsi/eata_dma.chd->bustype = IS_ISA;
hd1022drivers/scsi/eata_dma.chd->bustype = bustype;
hd1032drivers/scsi/eata_dma.chd->channel = gc->MAX_CHAN;      
hd1048drivers/scsi/eata_dma.cif(hd->bustype != IS_ISA)
hd1065drivers/scsi/eata_dma.cif (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){
hd1080drivers/scsi/eata_dma.chd->primary = FALSE;
hd1082drivers/scsi/eata_dma.chd->primary = TRUE;
hd1086drivers/scsi/eata_dma.cif (hd->bustype != IS_ISA) {
hd1093drivers/scsi/eata_dma.chd->writes_lat[x][1] = 0xffffffff;
hd1094drivers/scsi/eata_dma.chd->reads_lat[x][1] = 0xffffffff;
hd1097drivers/scsi/eata_dma.chd->next = NULL;  /* build a linked list of all HBAs */
hd1098drivers/scsi/eata_dma.chd->prev = last_HBA;
hd1099drivers/scsi/eata_dma.cif(hd->prev != NULL)
hd1100drivers/scsi/eata_dma.cSD(hd->prev)->next = sh;
hd131drivers/scsi/eata_pio.chostdata *hd;
hd151drivers/scsi/eata_pio.chd=SD(sh);
hd153drivers/scsi/eata_pio.ccp = &hd->ccb[0];
hd221drivers/scsi/eata_pio.cwhile ((stat&HA_SDRQ)||((stat&HA_SMORE)&&hd->moresupport));
hd234drivers/scsi/eata_pio.chd->devflags|=(1<<cp->cp_id);
hd236drivers/scsi/eata_pio.celse if (hd->devflags&1<<cp->cp_id) 
hd285drivers/scsi/eata_pio.chostdata *hd;
hd294drivers/scsi/eata_pio.chd = HD(cmd);
hd302drivers/scsi/eata_pio.cif (hd->ccb[y].status!=FREE) { 
hd313drivers/scsi/eata_pio.ccp = &hd->ccb[y];
hd345drivers/scsi/eata_pio.ccp->Interpret = (cmd->target == hd->hostid);
hd361drivers/scsi/eata_pio.ccmd->host_scribble = (char *)&hd->ccb[y];   
hd389drivers/scsi/eata_pio.coutsw(base + HA_RDATA, cp, hd->cplen);
hd391drivers/scsi/eata_pio.cfor (x = 0; x < hd->cppadlen; x++) outw(0, base + HA_RDATA);
hd683drivers/scsi/eata_pio.chostdata *hd;
hd732drivers/scsi/eata_pio.chd = SD(sh);                   
hd734drivers/scsi/eata_pio.cmemset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz)));
hd735drivers/scsi/eata_pio.cmemset(hd->reads, 0, sizeof(ulong) * 26); 
hd766drivers/scsi/eata_pio.chd->bustype = IS_PCI;
hd768drivers/scsi/eata_pio.chd->bustype = IS_EISA;
hd770drivers/scsi/eata_pio.chd->bustype = IS_ISA;
hd773drivers/scsi/eata_pio.chd->bustype = IS_PCI;
hd775drivers/scsi/eata_pio.chd->bustype = IS_EISA;
hd777drivers/scsi/eata_pio.chd->bustype = IS_ISA;
hd796drivers/scsi/eata_pio.chd->channel = 0;
hd802drivers/scsi/eata_pio.chd->primary = FALSE;
hd804drivers/scsi/eata_pio.chd->primary = TRUE;
hd808drivers/scsi/eata_pio.chd->next = NULL;    /* build a linked list of all HBAs */
hd809drivers/scsi/eata_pio.chd->prev = last_HBA;
hd810drivers/scsi/eata_pio.cif(hd->prev != NULL)
hd811drivers/scsi/eata_pio.cSD(hd->prev)->next = sh;