tag | line | file | source code |
hd | 36 | drivers/block/genhd.c | static void extended_partition(struct gendisk *hd, int dev) |
hd | 41 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
hd | 43 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
hd | 47 | drivers/block/genhd.c | if ((current_minor & mask) >= (4 + hd->max_p)) |
hd | 65 | drivers/block/genhd.c | !(hd->part[current_minor].nr_sects = p->nr_sects)) |
hd | 67 | drivers/block/genhd.c | hd->part[current_minor].start_sect = this_sector + p->start_sect; |
hd | 68 | drivers/block/genhd.c | printk(" %s%c%d", hd->major_name, |
hd | 69 | drivers/block/genhd.c | 'a'+(current_minor >> hd->minor_shift), |
hd | 81 | drivers/block/genhd.c | !(hd->part[current_minor].nr_sects = p->nr_sects)) |
hd | 83 | drivers/block/genhd.c | hd->part[current_minor].start_sect = first_sector + p->start_sect; |
hd | 85 | drivers/block/genhd.c | dev = ((hd->major) << 8) | current_minor; |
hd | 94 | drivers/block/genhd.c | static void check_partition(struct gendisk *hd, unsigned int dev) |
hd | 101 | drivers/block/genhd.c | int mask = (1 << hd->minor_shift) - 1; |
hd | 106 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
hd | 111 | drivers/block/genhd.c | printk(" %s%c:", hd->major_name, 'a'+(minor >> hd->minor_shift)); |
hd | 116 | drivers/block/genhd.c | if (!(hd->part[minor].nr_sects = p->nr_sects)) |
hd | 118 | drivers/block/genhd.c | hd->part[minor].start_sect = first_sector + p->start_sect; |
hd | 119 | drivers/block/genhd.c | printk(" %s%c%d", hd->major_name,'a'+(minor >> hd->minor_shift), i); |
hd | 124 | drivers/block/genhd.c | extended_partition(hd, (hd->major << 8) | minor); |
hd | 139 | drivers/block/genhd.c | hd->part[current_minor].start_sect = p->start_sect; |
hd | 140 | drivers/block/genhd.c | hd->part[current_minor].nr_sects = p->nr_sects; |
hd | 141 | drivers/block/genhd.c | printk(" %s%c%d", hd->major_name, |
hd | 142 | drivers/block/genhd.c | 'a'+(current_minor >> hd->minor_shift), |
hd | 84 | drivers/block/hd.c | static struct hd_struct hd[MAX_HD<<6]={{0,0},}; |
hd | 460 | drivers/block/hd.c | if (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects) { |
hd | 463 | drivers/block/hd.c | block, hd[dev].nr_sects); |
hd | 468 | drivers/block/hd.c | block += hd[dev].start_sect; |
hd | 542 | drivers/block/hd.c | put_fs_long(hd[MINOR(inode->i_rdev)].start_sect, |
hd | 556 | drivers/block/hd.c | put_fs_long(hd[MINOR(inode->i_rdev)].nr_sects, |
hd | 608 | drivers/block/hd.c | hd, /* hd struct */ |
hd | 691 | drivers/block/hd.c | hd[i<<6].nr_sects = 0; |
hd | 703 | drivers/block/hd.c | hd[i<<6].nr_sects = hd_info[i].head* |