taglinefilesource code
hd33drivers/block/genhd.cstatic void print_minor_name (struct gendisk *hd, int minor)
hd35drivers/block/genhd.cunsigned int unit = minor >> hd->minor_shift;
hd36drivers/block/genhd.cunsigned int part = minor & ((1 << hd->minor_shift) - 1);
hd45drivers/block/genhd.cif (!strcmp(hd->major_name,"ide")) {
hd47drivers/block/genhd.cstrcpy(name, hd->real_devices); /* courtesy ide.c */
hd52drivers/block/genhd.cprintk(" %s%c", hd->major_name, 'a' + unit);
hd59drivers/block/genhd.cstatic void add_partition (struct gendisk *hd, int minor, int start, int size)
hd61drivers/block/genhd.chd->part[minor].start_sect = start;
hd62drivers/block/genhd.chd->part[minor].nr_sects   = size;
hd63drivers/block/genhd.cprint_minor_name(hd, minor);
hd78drivers/block/genhd.cstatic void extended_partition(struct gendisk *hd, kdev_t dev)
hd83drivers/block/genhd.cint mask = (1 << hd->minor_shift) - 1;
hd86drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
hd87drivers/block/genhd.cfirst_size = hd->part[MINOR(dev)].nr_sects;
hd91drivers/block/genhd.cif ((current_minor & mask) >= hd->max_p)
hd108drivers/block/genhd.cthis_size = hd->part[MINOR(dev)].nr_sects;
hd135drivers/block/genhd.cadd_partition(hd, current_minor, this_sector+p->start_sect, p->nr_sects);
hd137drivers/block/genhd.cif ((current_minor & mask) >= hd->max_p)
hd157drivers/block/genhd.chd->part[current_minor].nr_sects = p->nr_sects;
hd158drivers/block/genhd.chd->part[current_minor].start_sect = first_sector + p->start_sect;
hd160drivers/block/genhd.cdev = MKDEV(hd->major, current_minor);
hd167drivers/block/genhd.cstatic int msdos_partition(struct gendisk *hd, kdev_t dev, unsigned long first_sector)
hd173drivers/block/genhd.cint mask = (1 << hd->minor_shift) - 1;
hd256drivers/block/genhd.cadd_partition(hd, minor, first_sector+p->start_sect, p->nr_sects);
hd267drivers/block/genhd.chd->sizes[minor] = hd->part[minor].nr_sects 
hd269drivers/block/genhd.cextended_partition(hd, MKDEV(hd->major, minor));
hd273drivers/block/genhd.chd->part[minor].nr_sects = 0;
hd287drivers/block/genhd.cadd_partition(hd, current_minor, p->start_sect, p->nr_sects);
hd299drivers/block/genhd.cstatic int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
hd355drivers/block/genhd.cadd_partition(hd, current_minor,
hd367drivers/block/genhd.cstatic void check_partition(struct gendisk *hd, kdev_t dev)
hd375drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
hd382drivers/block/genhd.chd->part[MINOR(dev)].start_sect = 0;
hd387drivers/block/genhd.cprint_minor_name(hd, MINOR(dev));
hd389drivers/block/genhd.cif (msdos_partition(hd, dev, first_sector))
hd393drivers/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;      
hd1041drivers/scsi/eata_dma.cif(hd->bustype != IS_ISA)
hd1057drivers/scsi/eata_dma.cif (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){
hd1072drivers/scsi/eata_dma.chd->primary = FALSE;
hd1074drivers/scsi/eata_dma.chd->primary = TRUE;
hd1078drivers/scsi/eata_dma.cif (hd->bustype != IS_ISA) {
hd1085drivers/scsi/eata_dma.chd->writes_lat[x][1] = 0xffffffff;
hd1086drivers/scsi/eata_dma.chd->reads_lat[x][1] = 0xffffffff;
hd1089drivers/scsi/eata_dma.chd->next = NULL;  /* build a linked list of all HBAs */
hd1090drivers/scsi/eata_dma.chd->prev = last_HBA;
hd1091drivers/scsi/eata_dma.cif(hd->prev != NULL)
hd1092drivers/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;
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;