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, int dev)
hd83drivers/block/genhd.cint mask = (1 << hd->minor_shift) - 1;
hd86drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
hd90drivers/block/genhd.cif ((current_minor & mask) >= hd->max_p)
hd107drivers/block/genhd.cthis_size = hd->part[MINOR(dev)].nr_sects;
hd128drivers/block/genhd.cadd_partition(hd, current_minor, this_sector+p->start_sect, p->nr_sects);
hd130drivers/block/genhd.cif ((current_minor & mask) >= hd->max_p)
hd150drivers/block/genhd.chd->part[current_minor].nr_sects = p->nr_sects;
hd151drivers/block/genhd.chd->part[current_minor].start_sect = first_sector + p->start_sect;
hd153drivers/block/genhd.cdev = ((hd->major) << 8) | current_minor;
hd160drivers/block/genhd.cstatic int msdos_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
hd165drivers/block/genhd.cint mask = (1 << hd->minor_shift) - 1;
hd232drivers/block/genhd.cadd_partition(hd, minor, first_sector+p->start_sect, p->nr_sects);
hd243drivers/block/genhd.chd->sizes[minor] = hd->part[minor].nr_sects 
hd245drivers/block/genhd.cextended_partition(hd, (hd->major << 8) | minor);
hd249drivers/block/genhd.chd->part[minor].nr_sects = 0;
hd263drivers/block/genhd.cadd_partition(hd, current_minor, p->start_sect, p->nr_sects);
hd275drivers/block/genhd.cstatic int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
hd331drivers/block/genhd.cadd_partition(hd, current_minor,
hd343drivers/block/genhd.cstatic void check_partition(struct gendisk *hd, unsigned int dev)
hd351drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
hd358drivers/block/genhd.chd->part[MINOR(dev)].start_sect = 0;
hd363drivers/block/genhd.cprint_minor_name(hd, MINOR(dev));
hd365drivers/block/genhd.cif (msdos_partition(hd, dev, first_sector))
hd369drivers/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)) {
hd724drivers/block/hd.cblock += hd[dev].start_sect;
hd801drivers/block/hd.cput_user(hd[MINOR(inode->i_rdev)].start_sect,
hd821drivers/block/hd.cput_user(hd[MINOR(inode->i_rdev)].nr_sects, (long *) arg);
hd925drivers/block/hd.chd,    /* hd struct */
hd1016drivers/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];  
hd827drivers/scsi/eata_dma.chostdata *hd;
hd939drivers/scsi/eata_dma.chd = SD(sh);       
hd941drivers/scsi/eata_dma.cmemset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz));
hd942drivers/scsi/eata_dma.cmemset(hd->reads, 0, sizeof(u32) * 26); 
hd944drivers/scsi/eata_dma.chd->broken_INQUIRY = (bugs & BROKEN_INQUIRY);
hd946drivers/scsi/eata_dma.cif(hd->broken_INQUIRY == TRUE) {
hd981drivers/scsi/eata_dma.chd->bustype = IS_PCI;
hd983drivers/scsi/eata_dma.chd->bustype = IS_EISA;
hd985drivers/scsi/eata_dma.chd->bustype = IS_ISA;
hd986drivers/scsi/eata_dma.c} else if(hd->broken_INQUIRY == FALSE) {
hd988drivers/scsi/eata_dma.chd->bustype = IS_PCI;
hd990drivers/scsi/eata_dma.chd->bustype = IS_EISA;
hd992drivers/scsi/eata_dma.chd->bustype = IS_ISA;
hd994drivers/scsi/eata_dma.chd->bustype = bustype;
hd1004drivers/scsi/eata_dma.chd->channel = gc->MAX_CHAN;      
hd1019drivers/scsi/eata_dma.cif(hd->bustype != IS_ISA)
hd1035drivers/scsi/eata_dma.cif (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){
hd1050drivers/scsi/eata_dma.chd->primary = FALSE;
hd1052drivers/scsi/eata_dma.chd->primary = TRUE;
hd1056drivers/scsi/eata_dma.cif (hd->bustype != IS_ISA) {
hd1063drivers/scsi/eata_dma.chd->writes_lat[x][1] = 0xffffffff;
hd1064drivers/scsi/eata_dma.chd->reads_lat[x][1] = 0xffffffff;
hd1067drivers/scsi/eata_dma.chd->next = NULL;  /* build a linked list of all HBAs */
hd1068drivers/scsi/eata_dma.chd->prev = last_HBA;
hd1069drivers/scsi/eata_dma.cif(hd->prev != NULL)
hd1070drivers/scsi/eata_dma.cSD(hd->prev)->next = sh;
hd126drivers/scsi/eata_pio.chostdata *hd;
hd146drivers/scsi/eata_pio.chd=SD(sh);
hd148drivers/scsi/eata_pio.ccp = &hd->ccb[0];
hd216drivers/scsi/eata_pio.cwhile ((stat&HA_SDRQ)||((stat&HA_SMORE)&&hd->moresupport));
hd229drivers/scsi/eata_pio.chd->devflags|=(1<<cp->cp_id);
hd231drivers/scsi/eata_pio.celse if (hd->devflags&1<<cp->cp_id) 
hd280drivers/scsi/eata_pio.chostdata *hd;
hd289drivers/scsi/eata_pio.chd = HD(cmd);
hd297drivers/scsi/eata_pio.cif (hd->ccb[y].status!=FREE) { 
hd308drivers/scsi/eata_pio.ccp = &hd->ccb[y];
hd340drivers/scsi/eata_pio.ccp->Interpret = (cmd->target == hd->hostid);
hd356drivers/scsi/eata_pio.ccmd->host_scribble = (char *)&hd->ccb[y];   
hd383drivers/scsi/eata_pio.coutsw(base + HA_RDATA, cp, hd->cplen);
hd385drivers/scsi/eata_pio.cfor (x = 0; x < hd->cppadlen; x++) outw(0, base + HA_RDATA);
hd677drivers/scsi/eata_pio.chostdata *hd;
hd726drivers/scsi/eata_pio.chd = SD(sh);                   
hd728drivers/scsi/eata_pio.cmemset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz)));
hd729drivers/scsi/eata_pio.cmemset(hd->reads, 0, sizeof(ulong) * 26); 
hd760drivers/scsi/eata_pio.chd->bustype = IS_PCI;
hd762drivers/scsi/eata_pio.chd->bustype = IS_EISA;
hd764drivers/scsi/eata_pio.chd->bustype = IS_ISA;
hd767drivers/scsi/eata_pio.chd->bustype = IS_PCI;
hd769drivers/scsi/eata_pio.chd->bustype = IS_EISA;
hd771drivers/scsi/eata_pio.chd->bustype = IS_ISA;
hd789drivers/scsi/eata_pio.chd->channel = 0;
hd795drivers/scsi/eata_pio.chd->primary = FALSE;
hd797drivers/scsi/eata_pio.chd->primary = TRUE;
hd801drivers/scsi/eata_pio.chd->next = NULL;    /* build a linked list of all HBAs */
hd802drivers/scsi/eata_pio.chd->prev = last_HBA;
hd803drivers/scsi/eata_pio.cif(hd->prev != NULL)
hd804drivers/scsi/eata_pio.cSD(hd->prev)->next = sh;