Home
last modified time | relevance | path

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

/block/partitions/
Dacorn.c85 unsigned long size = nr_sects > 2 ? 2 : nr_sects; in riscix_partition() local
90 put_partition(state, slot++, first_sect, size); in riscix_partition()
131 unsigned long size = nr_sects > 2 ? 2 : nr_sects; in linux_partition() local
135 put_partition(state, slot++, first_sect, size); in linux_partition()
305 __le32 size; member
371 for (slot = 1, p = (const struct ics_part *)data; p->size; p++) { in adfspart_check_ICS()
373 s32 size = le32_to_cpu(p->size); /* yes, it's signed. */ in adfspart_check_ICS() local
383 if (size < 0) { in adfspart_check_ICS()
384 size = -size; in adfspart_check_ICS()
392 if (size > 1 && adfspart_check_ICSLinux(state, start)) { in adfspart_check_ICS()
[all …]
Dibm.c144 loff_t offset, size; in find_vol1_partitions() local
176 size = cchh2blk(&f1.DS1EXT1.ulimit, geo) - in find_vol1_partitions()
179 size *= secperblk; in find_vol1_partitions()
182 put_partition(state, counter + 1, offset, size); in find_vol1_partitions()
204 loff_t offset, geo_size, size; in find_lnx1_partitions() local
212 size = label->lnx.formatted_blocks * secperblk; in find_lnx1_partitions()
223 size = nr_sectors; in find_lnx1_partitions()
224 if (size != geo_size) { in find_lnx1_partitions()
230 if (geo_size < size) in find_lnx1_partitions()
231 size = geo_size; in find_lnx1_partitions()
[all …]
Dcmdline.c30 sector_t size; member
54 new_subpart->size = (sector_t)(~0ULL); in parse_subpart()
57 new_subpart->size = (sector_t)memparse(partdef, &partdef); in parse_subpart()
58 if (new_subpart->size < (sector_t)PAGE_SIZE) { in parse_subpart()
238 subpart->size >> 9); in add_part()
269 if (subpart->size > (disk_size - from)) in cmdline_parts_set()
270 subpart->size = disk_size - from; in cmdline_parts_set()
272 from += subpart->size; in cmdline_parts_set()
288 static bool has_overlaps(sector_t from, sector_t size, in has_overlaps() argument
291 sector_t end = from + size; in has_overlaps()
[all …]
Dmsdos.c174 sector_t offs, size, next; in parse_extended() local
182 size = nr_sects(p)*sector_size; in parse_extended()
185 if (offs + size > this_size) in parse_extended()
189 if (next + size > first_sector + first_size) in parse_extended()
193 put_partition(state, state->next, next, size); in parse_extended()
251 sector_t offset, sector_t size, int origin) in parse_solaris_x86() argument
356 sector_t offset, sector_t size, int origin, char *flavour, in parse_bsd() argument
390 if (offset == bsd_start && size == bsd_size) in parse_bsd()
393 if (offset > bsd_start || offset+size < bsd_start+bsd_size) { in parse_bsd()
410 sector_t offset, sector_t size, int origin) in parse_freebsd() argument
[all …]
Dcheck.h15 sector_t size; member
37 put_partition(struct parsed_partitions *p, int n, sector_t from, sector_t size) in put_partition() argument
43 p->parts[n].size = size; in put_partition()
Dldm.c598 part->start, part->size); in ldm_create_data_partitions()
974 part->size = ldm_get_vnum(buffer + 0x34 + r_name); in ldm_parse_prt3()
1081 volu->size = ldm_get_vnum(buffer + 0x3D + r_child); in ldm_parse_vol5()
1218 static bool ldm_frag_add (const u8 *data, int size, struct list_head *frags) in ldm_frag_add() argument
1226 if (size < 2 * VBLK_SIZE_HEAD) { in ldm_frag_add()
1249 f = kmalloc (sizeof (*f) + size*num, GFP_KERNEL); in ldm_frag_add()
1275 size -= VBLK_SIZE_HEAD; in ldm_frag_add()
1276 memcpy(f->data + VBLK_SIZE_HEAD + rec * size, data, size); in ldm_frag_add()
1346 int size, perbuf, skip, finish, s, v, recs; in ldm_get_vblks() local
1354 size = ldb->vm.vblk_size; in ldm_get_vblks()
[all …]
Dcore.c205 static DEVICE_ATTR(size, 0444, part_size_show, NULL);
543 sector_t size = state->parts[p].size; in blk_add_partition() local
547 if (!size) in blk_add_partition()
559 if (from + size > get_capacity(disk)) { in blk_add_partition()
562 disk->disk_name, p, (unsigned long long) size); in blk_add_partition()
572 size = get_capacity(disk) - from; in blk_add_partition()
575 part = add_partition(disk, p, from, size, state->parts[p].flags, in blk_add_partition()
Defi.c678 static void utf16_le_to_7bit(const __le16 *in, unsigned int size, u8 *out) in utf16_le_to_7bit() argument
682 out[size] = 0; in utf16_le_to_7bit()
684 while (i < size) { in utf16_le_to_7bit()
732 u64 size = le64_to_cpu(ptes[i].ending_lba) - in efi_partition() local
738 put_partition(state, i+1, start * ssz, size * ssz); in efi_partition()
Dldm.h143 u64 size; /* start, size and vol_off in sectors */ member
155 u64 size; member
Damiga.c27 checksum_block(__be32 *m, int size) in checksum_block() argument
31 while (size--) in checksum_block()
/block/
Dfops.c115 size_t size; member
139 ret = dio->size; in blkdev_bio_end_io()
199 dio->size = 0; in __blkdev_direct_IO()
243 dio->size += bio->bi_iter.bi_size; in __blkdev_direct_IO()
272 ret = dio->size; in __blkdev_direct_IO()
287 ret = dio->size; in blkdev_bio_end_io_async()
345 dio->size = bio->bi_iter.bi_size; in __blkdev_direct_IO_async()
652 loff_t size = bdev_nr_bytes(bdev); in blkdev_write_iter() local
665 if (iocb->ki_pos >= size) in blkdev_write_iter()
671 size -= iocb->ki_pos; in blkdev_write_iter()
[all …]
Dbio.c86 static struct bio_slab *create_bio_slab(unsigned int size) in create_bio_slab() argument
93 snprintf(bslab->name, sizeof(bslab->name), "bio-%d", size); in create_bio_slab()
94 bslab->slab = kmem_cache_create(bslab->name, size, in create_bio_slab()
101 bslab->slab_size = size; in create_bio_slab()
103 if (!xa_err(xa_store(&bio_slabs, size, bslab, GFP_KERNEL))) in create_bio_slab()
120 unsigned int size = bs_bio_slab_size(bs); in bio_find_or_create_slab() local
124 bslab = xa_load(&bio_slabs, size); in bio_find_or_create_slab()
128 bslab = create_bio_slab(size); in bio_find_or_create_slab()
1176 size_t size = iov_iter_count(iter); in bio_iov_bvec_set() local
1184 size = min(size, max_sectors << SECTOR_SHIFT); in bio_iov_bvec_set()
[all …]
Dbdev.c133 loff_t size = i_size_read(bdev->bd_inode); in set_init_blocksize() local
136 if (size & bsize) in set_init_blocksize()
143 int set_blocksize(struct block_device *bdev, int size) in set_blocksize() argument
146 if (size > PAGE_SIZE || size < 512 || !is_power_of_2(size)) in set_blocksize()
150 if (size < bdev_logical_block_size(bdev)) in set_blocksize()
154 if (bdev->bd_inode->i_blkbits != blksize_bits(size)) { in set_blocksize()
156 bdev->bd_inode->i_blkbits = blksize_bits(size); in set_blocksize()
164 int sb_set_blocksize(struct super_block *sb, int size) in sb_set_blocksize() argument
166 if (set_blocksize(sb->s_bdev, size)) in sb_set_blocksize()
170 sb->s_blocksize = size; in sb_set_blocksize()
[all …]
Dblk-settings.c380 void blk_queue_logical_block_size(struct request_queue *q, unsigned int size) in blk_queue_logical_block_size() argument
384 limits->logical_block_size = size; in blk_queue_logical_block_size()
386 if (limits->physical_block_size < size) in blk_queue_logical_block_size()
387 limits->physical_block_size = size; in blk_queue_logical_block_size()
393 round_down(limits->max_hw_sectors, size >> SECTOR_SHIFT); in blk_queue_logical_block_size()
395 round_down(limits->max_sectors, size >> SECTOR_SHIFT); in blk_queue_logical_block_size()
409 void blk_queue_physical_block_size(struct request_queue *q, unsigned int size) in blk_queue_physical_block_size() argument
411 q->limits.physical_block_size = size; in blk_queue_physical_block_size()
431 unsigned int size) in blk_queue_zone_write_granularity() argument
436 q->limits.zone_write_granularity = size; in blk_queue_zone_write_granularity()
Dblk-mq-sysfs.c84 const size_t size = PAGE_SIZE - 1; in blk_mq_hw_sysfs_cpus_show() local
90 ret = snprintf(pos + page, size - pos, "%u", i); in blk_mq_hw_sysfs_cpus_show()
92 ret = snprintf(pos + page, size - pos, ", %u", i); in blk_mq_hw_sysfs_cpus_show()
94 if (ret >= size - pos) in blk_mq_hw_sysfs_cpus_show()
101 ret = snprintf(pos + page, size + 1 - pos, "\n"); in blk_mq_hw_sysfs_cpus_show()
Dsed-opal.c588 len_out = min_t(u64, discv_out->size, hlen); in opal_discovery0_end()
592 discv_out->size = hlen; /* actual size of data */ in opal_discovery0_end()
1397 u64 offset, u64 size, const u8 *uid) in generic_table_write_data() argument
1413 if (size > len || offset > len - size) { in generic_table_write_data()
1415 offset + size, len); in generic_table_write_data()
1420 while (off < size) { in generic_table_write_data()
1437 (size_t)(size - off)); in generic_table_write_data()
1438 pr_debug("Write bytes %zu+%llu/%llu\n", off, len, size); in generic_table_write_data()
1972 shadow->size, opaluid[OPAL_MBR]); in write_shadow_mbr()
2339 write_tbl->size, write_tbl->table_uid); in write_table_data()
[all …]
Dgenhd.c69 bool set_capacity_and_notify(struct gendisk *disk, sector_t size) in set_capacity_and_notify() argument
74 set_capacity(disk, size); in set_capacity_and_notify()
81 if (size == capacity || in set_capacity_and_notify()
87 disk->disk_name, capacity, size); in set_capacity_and_notify()
93 if (!capacity || !size) in set_capacity_and_notify()
1051 static DEVICE_ATTR(size, 0444, part_size_show, NULL);
Dblk-core.c1171 int size) in blk_check_plugged() argument
1184 BUG_ON(size < sizeof(*cb)); in blk_check_plugged()
1185 cb = kzalloc(size, GFP_ATOMIC); in blk_check_plugged()
Dblk-mq-tag.c650 void blk_mq_tag_resize_shared_tags(struct blk_mq_tag_set *set, unsigned int size) in blk_mq_tag_resize_shared_tags() argument
654 sbitmap_queue_resize(&tags->bitmap_tags, size - set->reserved_tags); in blk_mq_tag_resize_shared_tags()
Dblk-crypto.c379 blk_key->size = raw_key_size; in blk_crypto_init_key()
Dblk-mq.h179 unsigned int size);
Dblk-crypto-fallback.c123 key->size); in blk_crypto_fallback_keyslot_program()
Dblk-throttle.c2284 static void throtl_track_latency(struct throtl_data *td, sector_t size, in throtl_track_latency() argument
2296 index = request_bucket_index(size); in throtl_track_latency()