taglinefilesource code
hd67drivers/block/genhd.cchar *disk_name (struct gendisk *hd, int minor, char *buf)
hd70drivers/block/genhd.cconst char *maj = hd->major_name;
hd71drivers/block/genhd.cchar unit = (minor >> hd->minor_shift) + 'a';
hd79drivers/block/genhd.cswitch (hd->major) {
hd90drivers/block/genhd.cpart = minor & ((1 << hd->minor_shift) - 1);
hd98drivers/block/genhd.cstatic void add_partition (struct gendisk *hd, int minor, int start, int size)
hd101drivers/block/genhd.chd->part[minor].start_sect = start;
hd102drivers/block/genhd.chd->part[minor].nr_sects   = size;
hd103drivers/block/genhd.cprintk(" %s", disk_name(hd, minor, buf));
hd124drivers/block/genhd.cstatic void extended_partition(struct gendisk *hd, kdev_t dev)
hd129drivers/block/genhd.cint mask = (1 << hd->minor_shift) - 1;
hd132drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
hd133drivers/block/genhd.cfirst_size = hd->part[MINOR(dev)].nr_sects;
hd152drivers/block/genhd.cthis_size = hd->part[MINOR(dev)].nr_sects;
hd179drivers/block/genhd.cadd_partition(hd, current_minor, this_sector+START_SECT(p), NR_SECTS(p));
hd201drivers/block/genhd.chd->part[current_minor].nr_sects = NR_SECTS(p);
hd202drivers/block/genhd.chd->part[current_minor].start_sect = first_sector + START_SECT(p);
hd204drivers/block/genhd.cdev = MKDEV(hd->major, current_minor);
hd216drivers/block/genhd.cstatic void bsd_disklabel_partition(struct gendisk *hd, int dev)
hd221drivers/block/genhd.cint mask = (1 << hd->minor_shift) - 1;
hd234drivers/block/genhd.cif ((current_minor & mask) >= (4 + hd->max_p))
hd238drivers/block/genhd.cadd_partition(hd, current_minor, p->p_offset, p->p_size);
hd248drivers/block/genhd.cstatic int msdos_partition(struct gendisk *hd, kdev_t dev, unsigned long first_sector)
hd254drivers/block/genhd.cint mask = (1 << hd->minor_shift) - 1;
hd351drivers/block/genhd.cadd_partition(hd, minor, first_sector+START_SECT(p), NR_SECTS(p));
hd360drivers/block/genhd.chd->sizes[minor] = hd->part[minor].nr_sects 
hd362drivers/block/genhd.cextended_partition(hd, MKDEV(hd->major, minor));
hd366drivers/block/genhd.cif (hd->part[minor].nr_sects > 2)
hd367drivers/block/genhd.chd->part[minor].nr_sects = 2;
hd372drivers/block/genhd.cbsd_disklabel_partition(hd, MKDEV(hd->major, minor));
hd388drivers/block/genhd.cadd_partition(hd, current_minor, START_SECT(p), NR_SECTS(p));
hd400drivers/block/genhd.cstatic int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
hd403drivers/block/genhd.cint mask = (1 << hd->minor_shift) - 1;
hd459drivers/block/genhd.cadd_partition(hd, current_minor,
hd473drivers/block/genhd.cstatic int sun_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
hd544drivers/block/genhd.cadd_partition(hd, current_minor, st_sector, SWAP32(p->num_sectors));
hd556drivers/block/genhd.cstatic void check_partition(struct gendisk *hd, kdev_t dev)
hd565drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
hd572drivers/block/genhd.chd->part[MINOR(dev)].start_sect = 0;
hd576drivers/block/genhd.cprintk(" %s:", disk_name(hd, MINOR(dev), buf));
hd578drivers/block/genhd.cif (msdos_partition(hd, dev, first_sector))
hd582drivers/block/genhd.cif (osf_partition(hd, dev, first_sector))
hd586drivers/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 *
hd92drivers/block/md.cstruct gendisk *hd = find_gendisk (dev);
hd94drivers/block/md.cif (!hd)
hd101drivers/block/md.creturn disk_name (hd, MINOR(dev), name);  /* routine in genhd.c */
hd162drivers/scsi/eata_dma.cinline void eata_latency_in(struct eata_ccb *cp, hostdata *hd)
hd166drivers/scsi/eata_dma.cif(hd->all_lat[1] > time)
hd167drivers/scsi/eata_dma.chd->all_lat[1] = time;
hd168drivers/scsi/eata_dma.cif(hd->all_lat[2] < time)
hd169drivers/scsi/eata_dma.chd->all_lat[2] = time;
hd170drivers/scsi/eata_dma.chd->all_lat[3] += time;
hd171drivers/scsi/eata_dma.chd->all_lat[0]++;
hd173drivers/scsi/eata_dma.cif(hd->writes_lat[cp->sizeindex][1] > time)
hd174drivers/scsi/eata_dma.chd->writes_lat[cp->sizeindex][1] = time;
hd175drivers/scsi/eata_dma.cif(hd->writes_lat[cp->sizeindex][2] < time)
hd176drivers/scsi/eata_dma.chd->writes_lat[cp->sizeindex][2] = time;
hd177drivers/scsi/eata_dma.chd->writes_lat[cp->sizeindex][3] += time;
hd178drivers/scsi/eata_dma.chd->writes_lat[cp->sizeindex][0]++;
hd180drivers/scsi/eata_dma.cif(hd->reads_lat[cp->sizeindex][1] > time)
hd181drivers/scsi/eata_dma.chd->reads_lat[cp->sizeindex][1] = time;
hd182drivers/scsi/eata_dma.cif(hd->reads_lat[cp->sizeindex][2] < time)
hd183drivers/scsi/eata_dma.chd->reads_lat[cp->sizeindex][2] = time;
hd184drivers/scsi/eata_dma.chd->reads_lat[cp->sizeindex][3] += time;
hd185drivers/scsi/eata_dma.chd->reads_lat[cp->sizeindex][0]++;
hd448drivers/scsi/eata_dma.chostdata *hd;
hd458drivers/scsi/eata_dma.chd = HD(cmd);
hd471drivers/scsi/eata_dma.cfor (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { 
hd474drivers/scsi/eata_dma.cif (hd->ccb[y].status == FREE)
hd478drivers/scsi/eata_dma.chd->last_ccb = y;
hd489drivers/scsi/eata_dma.cccb = &hd->ccb[y];
hd499drivers/scsi/eata_dma.cif(hd->do_latency == TRUE) 
hd562drivers/scsi/eata_dma.cccb->cp_statDMA = htonl(virt_to_bus(&(hd->sp)));
hd567drivers/scsi/eata_dma.ccmd->host_scribble = (char *)&hd->ccb[y];  
hd992drivers/scsi/eata_dma.chostdata *hd;
hd1111drivers/scsi/eata_dma.chd = SD(sh);       
hd1113drivers/scsi/eata_dma.cmemset(hd->reads, 0, sizeof(u32) * 26); 
hd1117drivers/scsi/eata_dma.chd->bustype = bustype;
hd1124drivers/scsi/eata_dma.cif (gc->SG_64K==TRUE && ntohs(gc->SGsiz)==64 && hd->bustype!=IS_ISA){
hd1136drivers/scsi/eata_dma.chd->sgsize = sh->sg_tablesize;
hd1140drivers/scsi/eata_dma.csh->can_queue = hd->queuesize = ntohs(gc->queuesiz);
hd1160drivers/scsi/eata_dma.chd->broken_INQUIRY = (bugs & BROKEN_INQUIRY);
hd1162drivers/scsi/eata_dma.cif(hd->broken_INQUIRY == TRUE) {
hd1163drivers/scsi/eata_dma.cstrcpy(hd->vendor, "DPT");
hd1164drivers/scsi/eata_dma.cstrcpy(hd->name, "??????????");
hd1165drivers/scsi/eata_dma.cstrcpy(hd->revision, "???.?");
hd1166drivers/scsi/eata_dma.chd->firmware_revision = 0;
hd1168drivers/scsi/eata_dma.cstrncpy(hd->vendor, &buff[8], 8);
hd1169drivers/scsi/eata_dma.chd->vendor[8] = 0;
hd1170drivers/scsi/eata_dma.cstrncpy(hd->name, &buff[16], 17);
hd1171drivers/scsi/eata_dma.chd->name[17] = 0;
hd1172drivers/scsi/eata_dma.chd->revision[0] = buff[32];
hd1173drivers/scsi/eata_dma.chd->revision[1] = buff[33];
hd1174drivers/scsi/eata_dma.chd->revision[2] = buff[34];
hd1175drivers/scsi/eata_dma.chd->revision[3] = '.';
hd1176drivers/scsi/eata_dma.chd->revision[4] = buff[35];
hd1177drivers/scsi/eata_dma.chd->revision[5] = 0;
hd1178drivers/scsi/eata_dma.chd->firmware_revision = (buff[32] << 24) + (buff[33] << 16) 
hd1182drivers/scsi/eata_dma.cif (hd->firmware_revision >= (('0'<<24) + ('7'<<16) + ('G'<< 8) + '0'))
hd1183drivers/scsi/eata_dma.chd->immediate_support = 1;
hd1185drivers/scsi/eata_dma.chd->immediate_support = 0;
hd1189drivers/scsi/eata_dma.chd->EATA_revision = 'a';
hd1192drivers/scsi/eata_dma.chd->EATA_revision = 'b';
hd1195drivers/scsi/eata_dma.chd->EATA_revision = 'c';
hd1198drivers/scsi/eata_dma.chd->EATA_revision = 'z';    
hd1200drivers/scsi/eata_dma.chd->EATA_revision = '?';
hd1212drivers/scsi/eata_dma.chd->HBA_number = sh->host_no;
hd1213drivers/scsi/eata_dma.chd->channel = gc->MAX_CHAN;      
hd1228drivers/scsi/eata_dma.chd->primary = FALSE;
hd1230drivers/scsi/eata_dma.chd->primary = TRUE;
hd1234drivers/scsi/eata_dma.cif (hd->bustype != IS_ISA) {
hd1241drivers/scsi/eata_dma.chd->writes_lat[x][1] = 0xffffffff;
hd1242drivers/scsi/eata_dma.chd->reads_lat[x][1] = 0xffffffff;
hd1244drivers/scsi/eata_dma.chd->all_lat[1] = 0xffffffff;
hd1246drivers/scsi/eata_dma.chd->next = NULL;  /* build a linked list of all HBAs */
hd1247drivers/scsi/eata_dma.chd->prev = last_HBA;
hd1248drivers/scsi/eata_dma.cif(hd->prev != NULL)
hd1249drivers/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) 
hd287drivers/scsi/eata_pio.chostdata *hd;
hd296drivers/scsi/eata_pio.chd = HD(cmd);
hd304drivers/scsi/eata_pio.cif (hd->ccb[y].status!=FREE) { 
hd316drivers/scsi/eata_pio.ccp = &hd->ccb[y];
hd348drivers/scsi/eata_pio.ccp->Interpret = (cmd->target == hd->hostid);
hd364drivers/scsi/eata_pio.ccmd->host_scribble = (char *)&hd->ccb[y];   
hd392drivers/scsi/eata_pio.coutsw(base + HA_RDATA, cp, hd->cplen);
hd394drivers/scsi/eata_pio.cfor (x = 0; x < hd->cppadlen; x++) outw(0, base + HA_RDATA);
hd689drivers/scsi/eata_pio.chostdata *hd;
hd738drivers/scsi/eata_pio.chd = SD(sh);                   
hd740drivers/scsi/eata_pio.cmemset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz)));
hd741drivers/scsi/eata_pio.cmemset(hd->reads, 0, sizeof(ulong) * 26); 
hd772drivers/scsi/eata_pio.chd->bustype = IS_PCI;
hd774drivers/scsi/eata_pio.chd->bustype = IS_EISA;
hd776drivers/scsi/eata_pio.chd->bustype = IS_ISA;
hd779drivers/scsi/eata_pio.chd->bustype = IS_PCI;
hd781drivers/scsi/eata_pio.chd->bustype = IS_EISA;
hd783drivers/scsi/eata_pio.chd->bustype = IS_ISA;
hd802drivers/scsi/eata_pio.chd->channel = 0;
hd808drivers/scsi/eata_pio.chd->primary = FALSE;
hd810drivers/scsi/eata_pio.chd->primary = TRUE;
hd814drivers/scsi/eata_pio.chd->next = NULL;    /* build a linked list of all HBAs */
hd815drivers/scsi/eata_pio.chd->prev = last_HBA;
hd816drivers/scsi/eata_pio.cif(hd->prev != NULL)
hd817drivers/scsi/eata_pio.cSD(hd->prev)->next = sh;
hd2236drivers/scsi/in2000.cstruct IN2000_hostdata *hd;
hd2249drivers/scsi/in2000.chd = (struct IN2000_hostdata *)instance->hostdata;
hd2265drivers/scsi/in2000.chd->args = simple_strtoul(bp,NULL,0) & DB_MASK;
hd2272drivers/scsi/in2000.chd->disconnect = x;
hd2277drivers/scsi/in2000.chd->default_sx_per = sx_table[round_period((unsigned int)x)].period_ns;
hd2284drivers/scsi/in2000.chd->sync_stat[i] = SS_UNSET;
hd2288drivers/scsi/in2000.chd->proc = simple_strtoul(bp,NULL,0);
hd2297drivers/scsi/in2000.cif (hd->proc & PR_VERSION) {
hd2302drivers/scsi/in2000.cif (hd->proc & PR_INFO) {
hd2304drivers/scsi/in2000.c(hd->dip_switch & 0x7f), instance->irq, hd->io_base,
hd2305drivers/scsi/in2000.c(hd->dip_switch & 0x40)?"Yes":"No",
hd2306drivers/scsi/in2000.c(hd->dip_switch & 0x20)?"Yes":"No");
hd2309drivers/scsi/in2000.cif (hd->proc & PR_TOTALS) {
hd2314drivers/scsi/in2000.cif (hd->proc & PR_CONNECTED) {
hd2316drivers/scsi/in2000.cif (hd->connected) {
hd2317drivers/scsi/in2000.ccmd = (Scsi_Cmnd *)hd->connected;
hd2323drivers/scsi/in2000.cif (hd->proc & PR_INPUTQ) {
hd2325drivers/scsi/in2000.ccmd = (Scsi_Cmnd *)hd->input_Q;
hd2333drivers/scsi/in2000.cif (hd->proc & PR_DISCQ) {
hd2335drivers/scsi/in2000.ccmd = (Scsi_Cmnd *)hd->disconnected_Q;
hd2343drivers/scsi/in2000.cif (hd->proc & PR_TEST) {
hd2355drivers/scsi/in2000.cif (hd->proc & PR_STOP)    /* stop every other time */
hd1706drivers/scsi/wd33c93.cstruct WD33C93_hostdata *hd;
hd1719drivers/scsi/wd33c93.chd = (struct WD33C93_hostdata *)instance->hostdata;
hd1735drivers/scsi/wd33c93.chd->args = simple_strtoul(bp,NULL,0) & DB_MASK;
hd1742drivers/scsi/wd33c93.chd->disconnect = x;
hd1747drivers/scsi/wd33c93.chd->default_sx_per = sx_table[round_period((unsigned int)x)].period_ns;
hd1754drivers/scsi/wd33c93.chd->sync_stat[i] = SS_UNSET;
hd1758drivers/scsi/wd33c93.chd->proc = simple_strtoul(bp,NULL,0);
hd1767drivers/scsi/wd33c93.cif (hd->proc & PR_VERSION) {
hd1772drivers/scsi/wd33c93.cif (hd->proc & PR_INFO) {
hd1775drivers/scsi/wd33c93.cif (hd->proc & PR_TOTALS) {
hd1780drivers/scsi/wd33c93.cif (hd->proc & PR_CONNECTED) {
hd1782drivers/scsi/wd33c93.cif (hd->connected) {
hd1783drivers/scsi/wd33c93.ccmd = (Scsi_Cmnd *)hd->connected;
hd1789drivers/scsi/wd33c93.cif (hd->proc & PR_INPUTQ) {
hd1791drivers/scsi/wd33c93.ccmd = (Scsi_Cmnd *)hd->input_Q;
hd1799drivers/scsi/wd33c93.cif (hd->proc & PR_DISCQ) {
hd1801drivers/scsi/wd33c93.ccmd = (Scsi_Cmnd *)hd->disconnected_Q;
hd1818drivers/scsi/wd33c93.cif (hd->proc & PR_STOP)    /* stop every other time */
hd33include/asm-m68k/machdep.hextern void (*mach_check_partition) (struct gendisk *hd, unsigned int dev);
hd132include/linux/genhd.hchar *disk_name (struct gendisk *hd, int minor, char *buf);