tag | line | file | source code |
nr_sects | 62 | drivers/block/genhd.c | hd->part[minor].nr_sects = size; |
nr_sects | 107 | drivers/block/genhd.c | this_size = hd->part[MINOR(dev)].nr_sects; |
nr_sects | 122 | drivers/block/genhd.c | if (!p->nr_sects || p->sys_ind == EXTENDED_PARTITION) |
nr_sects | 125 | drivers/block/genhd.c | if (p->start_sect + p->nr_sects > this_size) |
nr_sects | 128 | drivers/block/genhd.c | add_partition(hd, current_minor, this_sector+p->start_sect, p->nr_sects); |
nr_sects | 145 | drivers/block/genhd.c | if(p->nr_sects && p->sys_ind == EXTENDED_PARTITION) |
nr_sects | 150 | drivers/block/genhd.c | hd->part[current_minor].nr_sects = p->nr_sects; |
nr_sects | 230 | drivers/block/genhd.c | if (!p->nr_sects) |
nr_sects | 232 | drivers/block/genhd.c | add_partition(hd, minor, first_sector+p->start_sect, p->nr_sects); |
nr_sects | 243 | drivers/block/genhd.c | hd->sizes[minor] = hd->part[minor].nr_sects |
nr_sects | 249 | drivers/block/genhd.c | hd->part[minor].nr_sects = 0; |
nr_sects | 261 | drivers/block/genhd.c | if (!(p->start_sect && p->nr_sects)) |
nr_sects | 263 | drivers/block/genhd.c | add_partition(hd, current_minor, p->start_sect, p->nr_sects); |
nr_sects | 401 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
nr_sects | 415 | drivers/block/genhd.c | dev->part[i].nr_sects = 0; |
nr_sects | 425 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
nr_sects | 713 | drivers/block/hd.c | if (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) { |
nr_sects | 821 | drivers/block/hd.c | put_user(hd[MINOR(inode->i_rdev)].nr_sects, (long *) arg); |
nr_sects | 1016 | drivers/block/hd.c | hd[i<<6].nr_sects = bios_info[i].head * |
nr_sects | 1109 | drivers/block/hd.c | gdev->part[start+i].nr_sects = 0; |
nr_sects | 1116 | drivers/block/hd.c | gdev->part[start].nr_sects = CAPACITY; |
nr_sects | 458 | drivers/block/ide.c | drive->part[0].nr_sects = current_capacity(drive); |
nr_sects | 1336 | drivers/block/ide.c | if ((blockend < block) || (blockend > drive->part[minor&PARTN_MASK].nr_sects)) { |
nr_sects | 1725 | drivers/block/ide.c | if (drive->part[p].nr_sects > 0) { |
nr_sects | 1731 | drivers/block/ide.c | drive->part[p].nr_sects = 0; |
nr_sects | 1734 | drivers/block/ide.c | drive->part[0].nr_sects = current_capacity(drive); |
nr_sects | 1795 | drivers/block/ide.c | return write_fs_long(arg, drive->part[inode->i_rdev&PARTN_MASK].nr_sects); |
nr_sects | 2672 | drivers/block/ide.c | drive->part[0].nr_sects = current_capacity(drive); |
nr_sects | 182 | drivers/block/xd.c | xd[i << 6].nr_sects = xd_info[i].heads * xd_info[i].cylinders * xd_info[i].sectors; |
nr_sects | 219 | drivers/block/xd.c | if (CURRENT_DEV < xd_drives && CURRENT->sector + CURRENT->nr_sectors <= xd[MINOR(CURRENT->dev)].nr_sects) { |
nr_sects | 267 | drivers/block/xd.c | put_user(xd[MINOR(inode->i_rdev)].nr_sects,(long *) arg); |
nr_sects | 311 | drivers/block/xd.c | xd_gendisk.part[start + partition].nr_sects = 0; |
nr_sects | 314 | drivers/block/xd.c | xd_gendisk.part[start].nr_sects = xd_info[target].heads * xd_info[target].cylinders * xd_info[target].sectors; |
nr_sects | 312 | drivers/scsi/scsi_debug.c | p->nr_sects = starts[npart+1] - starts [npart]; |
nr_sects | 128 | drivers/scsi/scsicam.c | logical_end = largest->start_sect + largest->nr_sects; |
nr_sects | 190 | drivers/scsi/sd.c | sd[i << 4].nr_sects = rscsi_disks[i].capacity; |
nr_sects | 519 | drivers/scsi/sd.c | block + SCpnt->request.nr_sectors > sd[dev].nr_sects) |
nr_sects | 1321 | drivers/scsi/sd.c | gdev->part[start+i].nr_sects = 0; |
nr_sects | 1333 | drivers/scsi/sd.c | gdev->part[start].nr_sects = CAPACITY; |
nr_sects | 1367 | drivers/scsi/sd.c | sd_gendisk.part[start+i].nr_sects = 0; |
nr_sects | 56 | drivers/scsi/sd_ioctl.c | put_user(sd[MINOR(inode->i_rdev)].nr_sects, |
nr_sects | 35 | include/linux/genhd.h | unsigned int nr_sects; /* nr of sectors in partition */ |
nr_sects | 40 | include/linux/genhd.h | long nr_sects; |