Home
last modified time | relevance | path

Searched refs:size (Results 1 – 19 of 19) sorted by relevance

/block/partitions/
Dacorn.c91 unsigned long size = nr_sects > 2 ? 2 : nr_sects; in riscix_partition() local
96 put_partition(state, slot++, first_sect, size); in riscix_partition()
137 unsigned long size = nr_sects > 2 ? 2 : nr_sects; in linux_partition() local
141 put_partition(state, slot++, first_sect, size); in linux_partition()
311 __le32 size; member
377 for (slot = 1, p = (const struct ics_part *)data; p->size; p++) { in adfspart_check_ICS()
379 s32 size = le32_to_cpu(p->size); /* yes, it's signed. */ in adfspart_check_ICS() local
389 if (size < 0) { in adfspart_check_ICS()
390 size = -size; in adfspart_check_ICS()
398 if (size > 1 && adfspart_check_ICSLinux(state, start)) { in adfspart_check_ICS()
[all …]
Dibm.c143 loff_t offset, size; in find_vol1_partitions() local
175 size = cchh2blk(&f1.DS1EXT1.ulimit, geo) - in find_vol1_partitions()
178 size *= secperblk; in find_vol1_partitions()
181 put_partition(state, counter + 1, offset, size); in find_vol1_partitions()
203 loff_t offset, geo_size, size; in find_lnx1_partitions() local
211 size = label->lnx.formatted_blocks * secperblk; in find_lnx1_partitions()
222 size = i_size >> 9; in find_lnx1_partitions()
223 if (size != geo_size) { in find_lnx1_partitions()
229 if (geo_size < size) in find_lnx1_partitions()
230 size = geo_size; in find_lnx1_partitions()
[all …]
Dmsdos.c163 sector_t offs, size, next; in parse_extended() local
171 size = nr_sects(p)*sector_size; in parse_extended()
174 if (offs + size > this_size) in parse_extended()
178 if (next + size > first_sector + first_size) in parse_extended()
182 put_partition(state, state->next, next, size); in parse_extended()
216 sector_t offset, sector_t size, int origin) in parse_solaris_x86() argument
273 sector_t offset, sector_t size, int origin, char *flavour, in parse_bsd() argument
305 if (offset == bsd_start && size == bsd_size) in parse_bsd()
308 if (offset > bsd_start || offset+size < bsd_start+bsd_size) { in parse_bsd()
325 sector_t offset, sector_t size, int origin) in parse_freebsd() argument
[all …]
Dcheck.h14 sector_t size; member
41 put_partition(struct parsed_partitions *p, int n, sector_t from, sector_t size) in put_partition() argument
47 p->parts[n].size = size; in put_partition()
Dldm.c107 static const int size[] = { 4, 2, 2, 2, 6 }; in ldm_parse_guid() local
115 for (i = 0; i < size[j]; i++, src+=2, *dest++ = v) in ldm_parse_guid()
664 part->start, part->size); in ldm_create_data_partitions()
1052 part->size = ldm_get_vnum(buffer + 0x34 + r_name); in ldm_parse_prt3()
1159 volu->size = ldm_get_vnum(buffer + 0x3D + r_child); in ldm_parse_vol5()
1296 static bool ldm_frag_add (const u8 *data, int size, struct list_head *frags) in ldm_frag_add() argument
1304 if (size < 2 * VBLK_SIZE_HEAD) { in ldm_frag_add()
1327 f = kmalloc (sizeof (*f) + size*num, GFP_KERNEL); in ldm_frag_add()
1353 size -= VBLK_SIZE_HEAD; in ldm_frag_add()
1354 memcpy(f->data + VBLK_SIZE_HEAD + rec * size, data, size); in ldm_frag_add()
[all …]
Dldm.h163 u64 size; /* start, size and vol_off in sectors */ member
175 u64 size; member
Damiga.c19 checksum_block(__be32 *m, int size) in checksum_block() argument
23 while (size--) in checksum_block()
Dcmdline.c36 subpart->size >> 9); in add_part()
Defi.c712 u64 size = le64_to_cpu(ptes[i].ending_lba) - in efi_partition() local
718 put_partition(state, i+1, start * ssz, size * ssz); in efi_partition()
/block/
Dcmdline-parser.c22 new_subpart->size = (sector_t)(~0ULL); in parse_subpart()
25 new_subpart->size = (sector_t)memparse(partdef, &partdef); in parse_subpart()
26 if (new_subpart->size < (sector_t)PAGE_SIZE) { in parse_subpart()
243 if (subpart->size > (disk_size - from)) in cmdline_parts_set()
244 subpart->size = disk_size - from; in cmdline_parts_set()
246 from += subpart->size; in cmdline_parts_set()
Dpartition-generic.c172 static DEVICE_ATTR(size, S_IRUGO, part_size_show, NULL);
481 if (state->parts[p].size) in rescan_partitions()
488 sector_t size, from; in rescan_partitions() local
491 size = state->parts[p].size; in rescan_partitions()
492 if (!size) in rescan_partitions()
505 if (from + size > get_capacity(disk)) { in rescan_partitions()
508 disk->disk_name, p, (unsigned long long) size); in rescan_partitions()
520 size = get_capacity(disk) - from; in rescan_partitions()
526 part = add_partition(disk, p, from, size, in rescan_partitions()
Dblk-settings.c376 void blk_queue_logical_block_size(struct request_queue *q, unsigned short size) in blk_queue_logical_block_size() argument
378 q->limits.logical_block_size = size; in blk_queue_logical_block_size()
380 if (q->limits.physical_block_size < size) in blk_queue_logical_block_size()
381 q->limits.physical_block_size = size; in blk_queue_logical_block_size()
398 void blk_queue_physical_block_size(struct request_queue *q, unsigned int size) in blk_queue_physical_block_size() argument
400 q->limits.physical_block_size = size; in blk_queue_physical_block_size()
761 void *buf, unsigned int size) in blk_queue_dma_drain() argument
769 q->dma_drain_size = size; in blk_queue_dma_drain()
Dioctl.c279 loff_t size; in blkdev_ioctl() local
413 size = i_size_read(bdev->bd_inode); in blkdev_ioctl()
414 if ((size >> 9) > ~0UL) in blkdev_ioctl()
416 return put_ulong(arg, size >> 9); in blkdev_ioctl()
Dcompat_ioctl.c334 err = __get_user(f->size, &uf->size); in compat_fd_ioctl()
418 err = __put_user(f->size, &uf->size); in compat_fd_ioctl()
665 loff_t size; in compat_blkdev_ioctl() local
735 size = i_size_read(bdev->bd_inode); in compat_blkdev_ioctl()
736 if ((size >> 9) > ~0UL) in compat_blkdev_ioctl()
738 return compat_put_ulong(arg, size >> 9); in compat_blkdev_ioctl()
Dscsi_ioctl.c103 int size, err = get_user(size, p); in sg_set_reserved_size() local
108 if (size < 0) in sg_set_reserved_size()
111 q->sg_reserved_size = min(size, max_sectors_bytes(q)); in sg_set_reserved_size()
Dbio.c1876 void bio_trim(struct bio *bio, int offset, int size) in bio_trim() argument
1882 size <<= 9; in bio_trim()
1883 if (offset == 0 && size == bio->bi_iter.bi_size) in bio_trim()
1890 bio->bi_iter.bi_size = size; in bio_trim()
2063 int size; in biovec_init_slabs() local
2071 size = bvs->nr_vecs * sizeof(struct bio_vec); in biovec_init_slabs()
2072 bvs->slab = kmem_cache_create(bvs->name, size, 0, in biovec_init_slabs()
Dgenhd.c985 static DEVICE_ATTR(size, S_IRUGO, part_size_show, NULL);
1075 size_t size; in disk_expand_part_tbl() local
1092 size = sizeof(*new_ptbl) + target * sizeof(new_ptbl->part[0]); in disk_expand_part_tbl()
1093 new_ptbl = kzalloc_node(size, GFP_KERNEL, disk->node_id); in disk_expand_part_tbl()
DKconfig31 Enable block devices or files of size 2TB and larger.
Dblk-core.c3063 int size) in blk_check_plugged() argument
3076 BUG_ON(size < sizeof(*cb)); in blk_check_plugged()
3077 cb = kzalloc(size, GFP_ATOMIC); in blk_check_plugged()