/block/partitions/ |
D | acorn.c | 85 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 …]
|
D | ibm.c | 144 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 …]
|
D | cmdline.c | 30 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() 264 subpart->size >> 9); in add_part() 298 if (subpart->size > (disk_size - from)) in cmdline_parts_set() 299 subpart->size = disk_size - from; in cmdline_parts_set() 301 from += subpart->size; in cmdline_parts_set() 317 static bool has_overlaps(sector_t from, sector_t size, in has_overlaps() argument 320 sector_t end = from + size; in has_overlaps() [all …]
|
D | msdos.c | 174 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 …]
|
D | check.h | 15 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()
|
D | ldm.c | 598 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 …]
|
D | core.c | 213 static DEVICE_ATTR(size, 0444, part_size_show, NULL); 549 sector_t size = state->parts[p].size; in blk_add_partition() local 553 if (!size) in blk_add_partition() 565 if (from + size > get_capacity(disk)) { in blk_add_partition() 568 disk->disk_name, p, (unsigned long long) size); in blk_add_partition() 578 size = get_capacity(disk) - from; in blk_add_partition() 581 part = add_partition(disk, p, from, size, state->parts[p].flags, in blk_add_partition()
|
D | efi.c | 678 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()
|
D | ldm.h | 143 u64 size; /* start, size and vol_off in sectors */ member 155 u64 size; member
|
D | amiga.c | 27 checksum_block(__be32 *m, int size) in checksum_block() argument 31 while (size--) in checksum_block()
|
/block/ |
D | fops.c | 122 size_t size; member 146 ret = dio->size; in blkdev_bio_end_io() 206 dio->size = 0; in __blkdev_direct_IO() 249 dio->size += bio->bi_iter.bi_size; in __blkdev_direct_IO() 278 ret = dio->size; in __blkdev_direct_IO() 293 ret = dio->size; in blkdev_bio_end_io_async() 350 dio->size = bio->bi_iter.bi_size; in __blkdev_direct_IO_async() 529 loff_t size = bdev_nr_bytes(bdev); in blkdev_write_iter() local 543 if (iocb->ki_pos >= size) in blkdev_write_iter() 549 size -= iocb->ki_pos; in blkdev_write_iter() [all …]
|
D | bio.c | 81 static struct bio_slab *create_bio_slab(unsigned int size) in create_bio_slab() argument 88 snprintf(bslab->name, sizeof(bslab->name), "bio-%d", size); in create_bio_slab() 89 bslab->slab = kmem_cache_create(bslab->name, size, in create_bio_slab() 96 bslab->slab_size = size; in create_bio_slab() 98 if (!xa_err(xa_store(&bio_slabs, size, bslab, GFP_KERNEL))) in create_bio_slab() 115 unsigned int size = bs_bio_slab_size(bs); in bio_find_or_create_slab() local 119 bslab = xa_load(&bio_slabs, size); in bio_find_or_create_slab() 123 bslab = create_bio_slab(size); in bio_find_or_create_slab() 1137 size_t size = iov_iter_count(iter); in bio_iov_bvec_set() local 1145 size = min(size, max_sectors << SECTOR_SHIFT); in bio_iov_bvec_set() [all …]
|
D | bdev.c | 133 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 …]
|
D | blk-settings.c | 374 void blk_queue_logical_block_size(struct request_queue *q, unsigned int size) in blk_queue_logical_block_size() argument 378 limits->logical_block_size = size; in blk_queue_logical_block_size() 380 if (limits->physical_block_size < size) in blk_queue_logical_block_size() 381 limits->physical_block_size = size; in blk_queue_logical_block_size() 387 round_down(limits->max_hw_sectors, size >> SECTOR_SHIFT); in blk_queue_logical_block_size() 389 round_down(limits->max_sectors, size >> SECTOR_SHIFT); in blk_queue_logical_block_size() 403 void blk_queue_physical_block_size(struct request_queue *q, unsigned int size) in blk_queue_physical_block_size() argument 405 q->limits.physical_block_size = size; in blk_queue_physical_block_size() 425 unsigned int size) in blk_queue_zone_write_granularity() argument 430 q->limits.zone_write_granularity = size; in blk_queue_zone_write_granularity()
|
D | blk-mq-sysfs.c | 109 const size_t size = PAGE_SIZE - 1; in blk_mq_hw_sysfs_cpus_show() local 115 ret = snprintf(pos + page, size - pos, "%u", i); in blk_mq_hw_sysfs_cpus_show() 117 ret = snprintf(pos + page, size - pos, ", %u", i); in blk_mq_hw_sysfs_cpus_show() 119 if (ret >= size - pos) in blk_mq_hw_sysfs_cpus_show() 126 ret = snprintf(pos + page, size + 1 - pos, "\n"); in blk_mq_hw_sysfs_cpus_show()
|
D | sed-opal.c | 1267 u64 offset, u64 size, const u8 *uid) in generic_table_write_data() argument 1283 if (size > len || offset > len - size) { in generic_table_write_data() 1285 offset + size, len); in generic_table_write_data() 1290 while (off < size) { in generic_table_write_data() 1307 (size_t)(size - off)); in generic_table_write_data() 1308 pr_debug("Write bytes %zu+%llu/%llu\n", off, len, size); in generic_table_write_data() 1699 shadow->size, opaluid[OPAL_MBR]); in write_shadow_mbr() 2013 write_tbl->size, write_tbl->table_uid); in write_table_data() 2050 u64 offset = read_tbl->offset, read_size = read_tbl->size - 1; in read_table_data() 2329 if (info->size == 0) in opal_write_shadow_mbr() [all …]
|
D | genhd.c | 76 bool set_capacity_and_notify(struct gendisk *disk, sector_t size) in set_capacity_and_notify() argument 81 set_capacity(disk, size); in set_capacity_and_notify() 88 if (size == capacity || in set_capacity_and_notify() 94 disk->disk_name, capacity, size); in set_capacity_and_notify() 100 if (!capacity || !size) in set_capacity_and_notify() 1083 static DEVICE_ATTR(size, 0444, part_size_show, NULL);
|
D | blk-mq-tag.h | 27 unsigned int size);
|
D | blk-core.c | 1133 int size) in blk_check_plugged() argument 1146 BUG_ON(size < sizeof(*cb)); in blk_check_plugged() 1147 cb = kzalloc(size, GFP_ATOMIC); in blk_check_plugged()
|
D | blk-mq-tag.c | 646 void blk_mq_tag_resize_shared_tags(struct blk_mq_tag_set *set, unsigned int size) in blk_mq_tag_resize_shared_tags() argument 650 sbitmap_queue_resize(&tags->bitmap_tags, size - set->reserved_tags); in blk_mq_tag_resize_shared_tags()
|
D | blk-crypto.c | 380 blk_key->size = raw_key_size; in blk_crypto_init_key()
|
D | blk-crypto-fallback.c | 123 key->size); in blk_crypto_fallback_keyslot_program()
|
D | blk-throttle.c | 2280 static void throtl_track_latency(struct throtl_data *td, sector_t size, in throtl_track_latency() argument 2292 index = request_bucket_index(size); in throtl_track_latency()
|