Home
last modified time | relevance | path

Searched refs:part (Results 1 – 25 of 230) sorted by relevance

12345678910

/linux-2.4.37.9/drivers/mtd/
Dftl.c87 do { (dev)->part[(drive)*(minors)].nr_sects = size; \
88 if (size == 0) (dev)->part[(drive)*(minors)].start_sect = -1; \
132 #define MINOR_NR(dev,reg,part) (((dev)<<5)+((reg)<<3)+(part)) argument
190 void ftl_freepart(partition_t *part);
219 part: ftl_hd,
261 static int scan_header(partition_t *part) in scan_header() argument
266 part->header.FormattedSize = 0; in scan_header()
267 max_offset = (0x100000<part->mtd->size)?0x100000:part->mtd->size; in scan_header()
271 offset += part->mtd->erasesize ? : 0x2000) { in scan_header()
273 ret = part->mtd->read(part->mtd, offset, sizeof(header), &ret, in scan_header()
[all …]
Dmtdpart.c52 struct mtd_part *part = PART(mtd); in part_read() local
57 return part->master->read (part->master, from + part->offset, in part_read()
64 struct mtd_part *part = PART(mtd); in part_point() local
69 return part->master->point (part->master, from + part->offset, in part_point()
74 struct mtd_part *part = PART(mtd); in part_unpoint() local
76 part->master->unpoint (part->master, addr, from + part->offset, len); in part_unpoint()
83 struct mtd_part *part = PART(mtd); in part_read_ecc() local
88 return part->master->read_ecc (part->master, from + part->offset, in part_read_ecc()
95 struct mtd_part *part = PART(mtd); in part_read_oob() local
100 return part->master->read_oob (part->master, from + part->offset, in part_read_oob()
[all …]
Dcmdlinepart.c300 struct cmdline_mtd_partition *part; in parse_cmdline_partitions() local
309 for(part = partitions; part; part = part->next) in parse_cmdline_partitions()
311 if ((!mtd_id) || (!strcmp(part->mtd_id, mtd_id))) in parse_cmdline_partitions()
313 for(i = 0, offset = 0; i < part->num_parts; i++) in parse_cmdline_partitions()
315 if (!part->parts[i].offset) in parse_cmdline_partitions()
316 part->parts[i].offset = offset; in parse_cmdline_partitions()
318 offset = part->parts[i].offset; in parse_cmdline_partitions()
319 if (part->parts[i].size == SIZE_REMAINING) in parse_cmdline_partitions()
320 part->parts[i].size = master->size - offset; in parse_cmdline_partitions()
321 if (offset + part->parts[i].size > master->size) in parse_cmdline_partitions()
[all …]
/linux-2.4.37.9/drivers/acpi/utilities/
Dutmath.c102 ACPI_DIV_64_BY_32 (0, dividend.part.hi, divisor, in acpi_ut_short_divide()
103 quotient.part.hi, remainder32); in acpi_ut_short_divide()
104 ACPI_DIV_64_BY_32 (remainder32, dividend.part.lo, divisor, in acpi_ut_short_divide()
105 quotient.part.lo, remainder32); in acpi_ut_short_divide()
165 if (divisor.part.hi == 0) { in acpi_ut_divide()
170 remainder.part.hi = 0; in acpi_ut_divide()
176 ACPI_DIV_64_BY_32 (0, dividend.part.hi, divisor.part.lo, in acpi_ut_divide()
177 quotient.part.hi, partial1); in acpi_ut_divide()
178 ACPI_DIV_64_BY_32 (partial1, dividend.part.lo, divisor.part.lo, in acpi_ut_divide()
179 quotient.part.lo, remainder.part.lo); in acpi_ut_divide()
[all …]
/linux-2.4.37.9/fs/partitions/
Dcheck.c108 unsigned int part = (minor & ((1 << hd->minor_shift) -1 )); in disk_name() local
110 if ((unit < hd->nr_real) && hd->part[minor].de) { in disk_name()
113 pos = devfs_generate_path (hd->part[minor].de, buf, 64); in disk_name()
120 && genhd_dasd_name (buf, unit, part, hd) == 0) in disk_name()
159 if (part) in disk_name()
160 sprintf(buf + 4, "%d", part); in disk_name()
166 if (part == 0) in disk_name()
169 sprintf(buf, "%s/c%dd%dp%d", maj, ctlr, unit, part); in disk_name()
174 if (part == 0) in disk_name()
177 sprintf(buf, "%s/c%dd%dp%d", maj, ctlr, unit, part); in disk_name()
[all …]
Datari.c61 hd_size = hd->part[minor - 1].nr_sects; in atari_partition()
62 if (!VALID_PARTITION(&rs->part[0], hd_size) && in atari_partition()
63 !VALID_PARTITION(&rs->part[1], hd_size) && in atari_partition()
64 !VALID_PARTITION(&rs->part[2], hd_size) && in atari_partition()
65 !VALID_PARTITION(&rs->part[3], hd_size)) { in atari_partition()
75 pi = &rs->part[0]; in atari_partition()
77 for (; pi < &rs->part[4] && minor < m_lim; minor++, pi++) { in atari_partition()
106 if (!(xrs->part[0].flg & 1)) { in atari_partition()
113 partsect + be32_to_cpu(xrs->part[0].st), in atari_partition()
114 be32_to_cpu(xrs->part[0].siz)); in atari_partition()
[all …]
Dmac.c34 struct mac_partition *part; in mac_partition() local
50 part = (struct mac_partition *) (data + secsize%512); in mac_partition()
51 if (be16_to_cpu(part->signature) != MAC_PARTITION_MAGIC) { in mac_partition()
56 blocks_in_map = be32_to_cpu(part->map_count); in mac_partition()
63 part = (struct mac_partition *) (data + pos%512); in mac_partition()
64 if (be16_to_cpu(part->signature) != MAC_PARTITION_MAGIC) in mac_partition()
67 fsec + be32_to_cpu(part->start_block) * (secsize/512), in mac_partition()
68 be32_to_cpu(part->block_count) * (secsize/512)); in mac_partition()
Dacorn.c33 unsigned long totalblocks = hd->part[MINOR(dev)].nr_sects; in adfspart_setgeometry()
80 int part; in riscix_partition() local
85 for (part = 0; part < 8; part++) { in riscix_partition()
86 if (rr->part[part].one && in riscix_partition()
87 memcmp(rr->part[part].name, "All\0", 4)) { in riscix_partition()
89 le32_to_cpu(rr->part[part].start), in riscix_partition()
90 le32_to_cpu(rr->part[part].length)); in riscix_partition()
91 printk("(%s)", rr->part[part].name); in riscix_partition()
265 nr_sects = hd->part[MINOR(to_kdev_t(bdev->bd_dev))].nr_sects - start_sect; in adfspart_check_ADFS()
Damiga.c41 int start_sect, nr_sects, blk, part, res = 0; in amiga_partition() local
78 for (part = 1; blk>0 && part<=16; part++, put_dev_sector(sect)) { in amiga_partition()
Dldm.c377 num_sects = hd->part[(first_minor >> hd->minor_shift) in ldm_validate_privheads()
638 BUG_ON (!hd->part); in ldm_create_partition()
643 if ((start < 1) || ((start + size) > hd->part[disk_minor].nr_sects)) { in ldm_create_partition()
673 struct vblk_part *part; in ldm_create_data_partitions() local
697 part = &vb->vblk.part; in ldm_create_data_partitions()
699 if (part->disk_id != disk->obj_id) in ldm_create_data_partitions()
703 part->start + ldb->ph.logical_disk_start, part->size)) in ldm_create_data_partitions()
1037 struct vblk_part *part; in ldm_parse_prt3() local
1062 part = &vb->vblk.part; in ldm_parse_prt3()
1063 part->start = BE64 (buffer + 0x24 + r_name); in ldm_parse_prt3()
[all …]
Dmsdos.c124 this_sector = first_sector = hd->part[minor].start_sect; in extended_partition()
219 long offset = hd->part[minor].start_sect; in solaris_x86_partition()
275 int start = hd->part[i].start_sect; in check_and_add_bsd_partition()
276 int size = hd->part[i].nr_sects; in check_and_add_bsd_partition()
313 long offset = hd->part[minor].start_sect; in do_bsd_partition()
379 long offset = hd->part[minor].start_sect; in unixware_partition()
422 long offset = hd->part[minor].start_sect; in minix_partition()
609 unsigned long size = hd->part[minor].nr_sects; in msdos_partition()
614 hd->part[minor].nr_sects = 2; in msdos_partition()
/linux-2.4.37.9/arch/ppc64/kernel/
Dnvram.c39 static int write_nvram_header(struct nvram_partition * part);
412 struct nvram_partition * part; in setup_nvram_partition() local
419 part = list_entry(p, struct nvram_partition, partition); in setup_nvram_partition()
420 if (part->header.signature != NVRAM_SIG_OS) in setup_nvram_partition()
423 if (strcmp(part->header.name, "ppc64,linux")) in setup_nvram_partition()
426 if (part->header.length >= NVRAM_MIN_REQ) { in setup_nvram_partition()
428 error_log_nvram_index = part->index + NVRAM_HEADER_LEN; in setup_nvram_partition()
429 error_log_nvram_size = (part->header.length * NVRAM_BLOCK_LEN) - in setup_nvram_partition()
462 struct nvram_partition * part; in remove_os_nvram_partition() local
467 part = list_entry(i, struct nvram_partition, partition); in remove_os_nvram_partition()
[all …]
/linux-2.4.37.9/fs/hfs/
Dpart_tbl.c91 int part, hfs_s32 *size, hfs_s32 *start) in parse_new_part_table() argument
119 ((hfs_part++) == part)) { in parse_new_part_table()
141 int part, hfs_s32 *size, hfs_s32 *start) in parse_old_part_table() argument
150 ((hfs_part++) == part)) { in parse_old_part_table()
170 int hfs_part_find(hfs_sysmdb sys_mdb, int part, int silent, in hfs_part_find() argument
202 retval = parse_old_part_table(sys_mdb, buf, part, size, start); in hfs_part_find()
206 retval = parse_new_part_table(sys_mdb, buf, part, size, start); in hfs_part_find()
225 if (part) { in hfs_part_find()
227 "HFS partition number %d.\n", part); in hfs_part_find()
Dsuper.c161 static int parse_options(char *options, struct hfs_sb_info *hsb, int *part) in parse_options() argument
182 *part = 0; in parse_options()
230 *part = simple_strtoul(value,&value,0); in parse_options()
401 int part; in hfs_read_super() local
404 if (!parse_options((char *)data, HFS_SB(s), &part)) { in hfs_read_super()
425 if (hfs_part_find(s, part, silent, &part_size, &part_start)) { in hfs_read_super()
431 if (hfs_part_find(s, part, silent, &part_size, &part_start)) { in hfs_read_super()
494 int part; /* ignored */ in hfs_remount() local
496 if (!parse_options(data, HFS_SB(s), &part)) { in hfs_remount()
/linux-2.4.37.9/drivers/block/
Dblkpg.c99 if (g->part[minor].nr_sects != 0) in add_partition()
104 if (!(pstart+plength <= g->part[i].start_sect || in add_partition()
105 pstart >= g->part[i].start_sect + g->part[i].nr_sects)) in add_partition()
109 g->part[minor].start_sect = pstart; in add_partition()
110 g->part[minor].nr_sects = plength; in add_partition()
145 if (drive >= g->nr_real || g->part[minor].nr_sects == 0) in del_partition()
157 g->part[minor].start_sect = 0; in del_partition()
158 g->part[minor].nr_sects = 0; in del_partition()
247 ullval = g->part[MINOR(dev)].nr_sects; in blk_ioctl()
/linux-2.4.37.9/drivers/macintosh/
Dnvram.c82 int part, offset; in nvram_ioctl() local
83 if (copy_from_user(&part,(void*)arg,sizeof(part))!=0) in nvram_ioctl()
85 if (part < pmac_nvram_OF || part > pmac_nvram_NR) in nvram_ioctl()
87 offset = pmac_get_partition(part); in nvram_ioctl()
/linux-2.4.37.9/arch/ppc/platforms/
Dpmac_setup.c516 check_bootable_part(kdev_t dev, int blk, struct mac_partition *part) in check_bootable_part() argument
520 macpart_fix_string(part->processor, 16); in check_bootable_part()
521 macpart_fix_string(part->name, 32); in check_bootable_part()
522 macpart_fix_string(part->type, 32); in check_bootable_part()
524 if ((be32_to_cpu(part->status) & MAC_STATUS_BOOTABLE) in check_bootable_part()
525 && strcasecmp(part->processor, "powerpc") == 0) in check_bootable_part()
528 if (strcasecmp(part->type, "Apple_UNIX_SVR2") == 0 in check_bootable_part()
529 || (strnicmp(part->type, "Linux", 5) == 0 in check_bootable_part()
530 && strcasecmp(part->type, "Linux_swap") != 0)) { in check_bootable_part()
534 l = strlen(part->name); in check_bootable_part()
[all …]
/linux-2.4.37.9/scripts/
DMAKEDEV.ide18 for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
20 makedev $1$part b $2 `expr $3 + $part`
/linux-2.4.37.9/drivers/ide/raid/
Dataraid.c258 ataraid_gendisk.part = kmalloc(256 * sizeof(struct hd_struct),GFP_KERNEL); in ataraid_init()
259 if (ataraid_gendisk.part==NULL) { in ataraid_init()
264 memset(&ataraid_gendisk.part[0],0,256*sizeof(struct hd_struct)); in ataraid_init()
301 if (ataraid_gendisk.part) { in ataraid_exit()
302 kfree(ataraid_gendisk.part); in ataraid_exit()
303 ataraid_gendisk.part = NULL; in ataraid_exit()
Dmedley.c234 ataraid_gendisk.part[MINOR(inode->i_rdev)].nr_sects; in medley_ioctl()
260 part[MINOR(inode->i_rdev)].start_sect, in medley_ioctl()
283 part[MINOR(inode->i_rdev)].start_sect, in medley_ioctl()
312 ataraid_gendisk.part[partition + in medley_ioctl()
314 ataraid_gendisk.part[partition + in medley_ioctl()
344 rsect = rsect + ataraid_gendisk.part[MINOR(bh->b_rdev)].start_sect; in medley_make_request()
607 gd->part[j].nr_sects = 0; in get_device_lock()
Dpdcraid.c114 sectors = ataraid_gendisk.part[MINOR(inode->i_rdev)].nr_sects; in pdcraid_ioctl()
130 if (put_user((unsigned)ataraid_gendisk.part[MINOR(inode->i_rdev)].start_sect, in pdcraid_ioctl()
142 if (put_user((unsigned)ataraid_gendisk.part[MINOR(inode->i_rdev)].start_sect, in pdcraid_ioctl()
191 …t = partition_map_normal(rsect, ataraid_gendisk.part[MINOR(bh->b_rdev)].start_sect, ataraid_gendis… in pdcraid0_make_request()
270 bh1->b_rsector += ataraid_gendisk.part[MINOR(bh->b_rdev)].start_sect; /* partition offset */ in pdcraid1_write_request()
294 bh->b_rsector += ataraid_gendisk.part[MINOR(bh->b_rdev)].start_sect; in pdcraid1_read_request()
Dsilraid.c112 sectors = ataraid_gendisk.part[MINOR(inode->i_rdev)].nr_sects; in silraid_ioctl()
128 if (put_user((unsigned)ataraid_gendisk.part[MINOR(inode->i_rdev)].start_sect, in silraid_ioctl()
140 if (put_user((unsigned)ataraid_gendisk.part[MINOR(inode->i_rdev)].start_sect, in silraid_ioctl()
196 …t = partition_map_normal(rsect, ataraid_gendisk.part[MINOR(bh->b_rdev)].start_sect, ataraid_gendis… in silraid0_make_request()
Dhptraid.c182 sectors = ataraid_gendisk.part[MINOR(inode->i_rdev)].nr_sects; in hptraid_ioctl()
201 if (put_user((unsigned)ataraid_gendisk.part[MINOR(inode->i_rdev)].start_sect, in hptraid_ioctl()
217 if (put_user((unsigned)ataraid_gendisk.part[MINOR(inode->i_rdev)].start_sect, in hptraid_ioctl()
247 rsect += ataraid_gendisk.part[MINOR(bh->b_rdev)].start_sect; in hptraidspan_make_request()
378 bh->b_rsector += ataraid_gendisk.part[MINOR(bh->b_rdev)].start_sect; in hptraid0_make_request()
402 bh->b_rsector += ataraid_gendisk.part[MINOR(bh->b_rdev)].start_sect; in hptraid1_read_request()
474 bh1->b_rsector += ataraid_gendisk.part[MINOR(bh->b_rdev)].start_sect; /* partition offset */ in hptraid1_write_request()
628 j++) gd->part[j].nr_sects=0; in writeentry()
/linux-2.4.37.9/arch/alpha/lib/
Dev6-divide.S175 nop # E : as part of the cmovne
181 nop # E : as part of the cmovne
186 nop # E : as part of the cmovne
236 nop # E : as part of the cmov
253 nop # E : U L L U : as part of the cmov
256 nop # E : as part of the cmov
/linux-2.4.37.9/drivers/scsi/
Dsd.c203 inode->i_rdev)].part[MINOR( in sd_ioctl()
236 inode->i_rdev)].part[MINOR( in sd_ioctl()
304 ppnt = &sd_gendisks[SD_MAJOR_IDX(SCpnt->request.rq_dev)].part[MINOR(SCpnt->request.rq_dev)]; in sd_init_command()
658 SCpnt->request.rq_dev)].part[MINOR( in rw_intr()
1217 sd_gendisks[i].part = kmalloc((SCSI_DISKS_PER_MAJOR << 4) * sizeof(struct hd_struct), in sd_init()
1219 if (!sd_gendisks[i].part) in sd_init()
1221 memset(sd_gendisks[i].part, 0, (SCSI_DISKS_PER_MAJOR << 4) * sizeof(struct hd_struct)); in sd_init()
1238 kfree(sd_gendisks[i].part); in sd_init()
1383 sdgd->part[SD_MINOR_NUMBER(index)].start_sect = 0; in revalidate_scsidisk()
1384 sdgd->part[SD_MINOR_NUMBER(index)].nr_sects = 0; in revalidate_scsidisk()
[all …]

12345678910