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,
hd382drivers/block/genhd.cstatic void check_partition(struct gendisk *hd, kdev_t dev)
hd390drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
hd397drivers/block/genhd.chd->part[MINOR(dev)].start_sect = 0;
hd402drivers/block/genhd.cprint_minor_name(hd, MINOR(dev));
hd404drivers/block/genhd.cif (msdos_partition(hd, dev, first_sector))
hd408drivers/block/genhd.cif (osf_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 *
hd347drivers/scsi/eata_dma.chostdata *hd;
hd357drivers/scsi/eata_dma.chd = HD(cmd);
hd361drivers/scsi/eata_dma.cfor (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { 
hd364drivers/scsi/eata_dma.cif (hd->ccb[y].status == FREE)
hd368drivers/scsi/eata_dma.chd->last_ccb = y;
hd378drivers/scsi/eata_dma.cswitch(hd->ccb[z].status) {
hd394drivers/scsi/eata_dma.ccp = &hd->ccb[y];
hd404drivers/scsi/eata_dma.cif(hd->do_latency == TRUE) {
hd500drivers/scsi/eata_dma.ccp->cp_statDMA = htonl(virt_to_bus(&(hd->sp)));
hd504drivers/scsi/eata_dma.ccmd->host_scribble = (char *)&hd->ccb[y];  
hd850drivers/scsi/eata_dma.chostdata *hd;
hd961drivers/scsi/eata_dma.chd = SD(sh);       
hd963drivers/scsi/eata_dma.cmemset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz));
hd964drivers/scsi/eata_dma.cmemset(hd->reads, 0, sizeof(u32) * 26); 
hd966drivers/scsi/eata_dma.chd->broken_INQUIRY = (bugs & BROKEN_INQUIRY);
hd968drivers/scsi/eata_dma.cif(hd->broken_INQUIRY == TRUE) {
hd1003drivers/scsi/eata_dma.chd->bustype = IS_PCI;
hd1005drivers/scsi/eata_dma.chd->bustype = IS_EISA;
hd1007drivers/scsi/eata_dma.chd->bustype = IS_ISA;
hd1008drivers/scsi/eata_dma.c} else if(hd->broken_INQUIRY == FALSE) {
hd1010drivers/scsi/eata_dma.chd->bustype = IS_PCI;
hd1012drivers/scsi/eata_dma.chd->bustype = IS_EISA;
hd1014drivers/scsi/eata_dma.chd->bustype = IS_ISA;
hd1016drivers/scsi/eata_dma.chd->bustype = bustype;
hd1026drivers/scsi/eata_dma.chd->channel = gc->MAX_CHAN;      
hd1042drivers/scsi/eata_dma.cif(hd->bustype != IS_ISA)
hd1058drivers/scsi/eata_dma.cif (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){
hd1073drivers/scsi/eata_dma.chd->primary = FALSE;
hd1075drivers/scsi/eata_dma.chd->primary = TRUE;
hd1079drivers/scsi/eata_dma.cif (hd->bustype != IS_ISA) {
hd1086drivers/scsi/eata_dma.chd->writes_lat[x][1] = 0xffffffff;
hd1087drivers/scsi/eata_dma.chd->reads_lat[x][1] = 0xffffffff;
hd1090drivers/scsi/eata_dma.chd->next = NULL;  /* build a linked list of all HBAs */
hd1091drivers/scsi/eata_dma.chd->prev = last_HBA;
hd1092drivers/scsi/eata_dma.cif(hd->prev != NULL)
hd1093drivers/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) 
hd286drivers/scsi/eata_pio.chostdata *hd;
hd295drivers/scsi/eata_pio.chd = HD(cmd);
hd303drivers/scsi/eata_pio.cif (hd->ccb[y].status!=FREE) { 
hd314drivers/scsi/eata_pio.ccp = &hd->ccb[y];
hd346drivers/scsi/eata_pio.ccp->Interpret = (cmd->target == hd->hostid);
hd362drivers/scsi/eata_pio.ccmd->host_scribble = (char *)&hd->ccb[y];   
hd390drivers/scsi/eata_pio.coutsw(base + HA_RDATA, cp, hd->cplen);
hd392drivers/scsi/eata_pio.cfor (x = 0; x < hd->cppadlen; x++) outw(0, base + HA_RDATA);
hd684drivers/scsi/eata_pio.chostdata *hd;
hd733drivers/scsi/eata_pio.chd = SD(sh);                   
hd735drivers/scsi/eata_pio.cmemset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz)));
hd736drivers/scsi/eata_pio.cmemset(hd->reads, 0, sizeof(ulong) * 26); 
hd767drivers/scsi/eata_pio.chd->bustype = IS_PCI;
hd769drivers/scsi/eata_pio.chd->bustype = IS_EISA;
hd771drivers/scsi/eata_pio.chd->bustype = IS_ISA;
hd774drivers/scsi/eata_pio.chd->bustype = IS_PCI;
hd776drivers/scsi/eata_pio.chd->bustype = IS_EISA;
hd778drivers/scsi/eata_pio.chd->bustype = IS_ISA;
hd797drivers/scsi/eata_pio.chd->channel = 0;
hd803drivers/scsi/eata_pio.chd->primary = FALSE;
hd805drivers/scsi/eata_pio.chd->primary = TRUE;
hd809drivers/scsi/eata_pio.chd->next = NULL;    /* build a linked list of all HBAs */
hd810drivers/scsi/eata_pio.chd->prev = last_HBA;
hd811drivers/scsi/eata_pio.cif(hd->prev != NULL)
hd812drivers/scsi/eata_pio.cSD(hd->prev)->next = sh;