Home
last modified time | relevance | path

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

12

/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 = i_size >> 9; 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 …]
Dmsdos.c173 sector_t offs, size, next; in parse_extended() local
181 size = nr_sects(p)*sector_size; in parse_extended()
184 if (offs + size > this_size) in parse_extended()
188 if (next + size > first_sector + first_size) in parse_extended()
192 put_partition(state, state->next, next, size); in parse_extended()
250 sector_t offset, sector_t size, int origin) in parse_solaris_x86() argument
355 sector_t offset, sector_t size, int origin, char *flavour, in parse_bsd() argument
389 if (offset == bsd_start && size == bsd_size) in parse_bsd()
392 if (offset > bsd_start || offset+size < bsd_start+bsd_size) { in parse_bsd()
409 sector_t offset, sector_t size, int origin) in parse_freebsd() argument
[all …]
Dcmdline.c36 subpart->size >> 9); in add_part()
60 static bool has_overlaps(sector_t from, sector_t size, in has_overlaps() argument
63 sector_t end = from + size; in has_overlaps()
96 state->parts[slot].size, in cmdline_parts_verifier()
98 state->parts[i].size)) { in cmdline_parts_verifier()
107 (u64)state->parts[slot].size << 9, in cmdline_parts_verifier()
110 (u64)state->parts[i].size << 9); in cmdline_parts_verifier()
Dcheck.h16 sector_t size; member
38 put_partition(struct parsed_partitions *p, int n, sector_t from, sector_t size) in put_partition() argument
44 p->parts[n].size = size; in put_partition()
Dldm.c598 part->start, part->size); in ldm_create_data_partitions()
983 part->size = ldm_get_vnum(buffer + 0x34 + r_name); in ldm_parse_prt3()
1090 volu->size = ldm_get_vnum(buffer + 0x3D + r_child); in ldm_parse_vol5()
1227 static bool ldm_frag_add (const u8 *data, int size, struct list_head *frags) in ldm_frag_add() argument
1235 if (size < 2 * VBLK_SIZE_HEAD) { in ldm_frag_add()
1258 f = kmalloc (sizeof (*f) + size*num, GFP_KERNEL); in ldm_frag_add()
1284 size -= VBLK_SIZE_HEAD; in ldm_frag_add()
1285 memcpy(f->data + VBLK_SIZE_HEAD + rec * size, data, size); in ldm_frag_add()
1355 int size, perbuf, skip, finish, s, v, recs; in ldm_get_vblks() local
1363 size = ldb->vm.vblk_size; in ldm_get_vblks()
[all …]
Dcore.c220 static DEVICE_ATTR(size, 0444, part_size_show, NULL);
660 sector_t size = state->parts[p].size; in blk_add_partition() local
664 if (!size) in blk_add_partition()
676 if (from + size > get_capacity(disk)) { in blk_add_partition()
679 disk->disk_name, p, (unsigned long long) size); in blk_add_partition()
689 size = get_capacity(disk) - from; in blk_add_partition()
692 part = add_partition(disk, p, from, size, state->parts[p].flags, in blk_add_partition()
763 if (state->parts[p].size) in blk_add_partitions()
Defi.c668 static void utf16_le_to_7bit(const __le16 *in, unsigned int size, u8 *out) in utf16_le_to_7bit() argument
672 out[size] = 0; in utf16_le_to_7bit()
674 while (i < size) { in utf16_le_to_7bit()
722 u64 size = le64_to_cpu(ptes[i].ending_lba) - in efi_partition() local
728 put_partition(state, i+1, start * ssz, size * ssz); in efi_partition()
Dldm.h144 u64 size; /* start, size and vol_off in sectors */ member
156 u64 size; member
Damiga.c27 checksum_block(__be32 *m, int size) in checksum_block() argument
31 while (size--) in checksum_block()
/block/
Dbio.c970 size_t size; in __bio_iov_bvec_add_pages() local
976 size = bio_add_page(bio, bv->bv_page, len, in __bio_iov_bvec_add_pages()
978 if (unlikely(size != len)) in __bio_iov_bvec_add_pages()
980 iov_iter_advance(iter, size); in __bio_iov_bvec_add_pages()
984 static void bio_put_pages(struct page **pages, size_t size, size_t off) in bio_put_pages() argument
986 size_t i, nr = DIV_ROUND_UP(size + (off & ~PAGE_MASK), PAGE_SIZE); in bio_put_pages()
1011 ssize_t size, left; in __bio_iov_iter_get_pages() local
1023 size = iov_iter_get_pages(iter, pages, LONG_MAX, nr_pages, &offset); in __bio_iov_iter_get_pages()
1024 if (unlikely(size <= 0)) in __bio_iov_iter_get_pages()
1025 return size ? size : -EFAULT; in __bio_iov_iter_get_pages()
[all …]
Dcmdline-parser.c23 new_subpart->size = (sector_t)(~0ULL); in parse_subpart()
26 new_subpart->size = (sector_t)memparse(partdef, &partdef); in parse_subpart()
27 if (new_subpart->size < (sector_t)PAGE_SIZE) { in parse_subpart()
244 if (subpart->size > (disk_size - from)) in cmdline_parts_set()
245 subpart->size = disk_size - from; in cmdline_parts_set()
247 from += subpart->size; in cmdline_parts_set()
Dioctl.c593 loff_t size; in blkdev_ioctl() local
610 size = i_size_read(bdev->bd_inode); in blkdev_ioctl()
611 if ((size >> 9) > ~0UL) in blkdev_ioctl()
613 return put_ulong(argp, size >> 9); in blkdev_ioctl()
655 loff_t size; in compat_blkdev_ioctl() local
681 size = i_size_read(bdev->bd_inode); in compat_blkdev_ioctl()
682 if ((size >> 9) > ~(compat_ulong_t)0) in compat_blkdev_ioctl()
684 return compat_put_ulong(argp, size >> 9); in compat_blkdev_ioctl()
Dblk-mq-sysfs.c159 const size_t size = PAGE_SIZE - 1; in blk_mq_hw_sysfs_cpus_show() local
165 ret = snprintf(pos + page, size - pos, "%u", i); in blk_mq_hw_sysfs_cpus_show()
167 ret = snprintf(pos + page, size - pos, ", %u", i); in blk_mq_hw_sysfs_cpus_show()
169 if (ret >= size - pos) in blk_mq_hw_sysfs_cpus_show()
176 ret = snprintf(pos + page, size + 1 - pos, "\n"); in blk_mq_hw_sysfs_cpus_show()
Dblk-settings.c322 void blk_queue_logical_block_size(struct request_queue *q, unsigned int size) in blk_queue_logical_block_size() argument
324 q->limits.logical_block_size = size; in blk_queue_logical_block_size()
326 if (q->limits.physical_block_size < size) in blk_queue_logical_block_size()
327 q->limits.physical_block_size = size; in blk_queue_logical_block_size()
344 void blk_queue_physical_block_size(struct request_queue *q, unsigned int size) in blk_queue_physical_block_size() argument
346 q->limits.physical_block_size = size; in blk_queue_physical_block_size()
Dmq-deadline-cgroup.c55 static size_t dd_pd_stat(struct blkg_policy_data *pd, char *buf, size_t size) in dd_pd_stat() argument
68 res += scnprintf(buf + res, size - res, in dd_pd_stat()
Dblk-iolatency.c906 size_t size) in iolatency_ssd_stat() argument
921 return scnprintf(buf, size, " missed=%llu total=%llu depth=max", in iolatency_ssd_stat()
924 return scnprintf(buf, size, " missed=%llu total=%llu depth=%u", in iolatency_ssd_stat()
931 size_t size) in iolatency_pd_stat() argument
941 return iolatency_ssd_stat(iolat, buf, size); in iolatency_pd_stat()
946 return scnprintf(buf, size, " depth=max avg_lat=%llu win=%llu", in iolatency_pd_stat()
949 return scnprintf(buf, size, " depth=%u avg_lat=%llu win=%llu", in iolatency_pd_stat()
Dblk.h430 static inline void part_nr_sects_write(struct hd_struct *part, sector_t size) in part_nr_sects_write() argument
435 part->nr_sects = size; in part_nr_sects_write()
440 part->nr_sects = size; in part_nr_sects_write()
443 part->nr_sects = size; in part_nr_sects_write()
Dsed-opal.c1227 u64 offset, u64 size, const u8 *uid) in generic_table_write_data() argument
1243 if (size > len || offset > len - size) { in generic_table_write_data()
1245 offset + size, len); in generic_table_write_data()
1250 while (off < size) { in generic_table_write_data()
1267 (size_t)(size - off)); in generic_table_write_data()
1268 pr_debug("Write bytes %zu+%llu/%llu\n", off, len, size); in generic_table_write_data()
1659 shadow->size, opaluid[OPAL_MBR]); in write_shadow_mbr()
1973 write_tbl->size, write_tbl->table_uid); in write_table_data()
2010 u64 offset = read_tbl->offset, read_size = read_tbl->size - 1; in read_table_data()
2287 if (info->size == 0) in opal_write_shadow_mbr()
[all …]
Dblk-cgroup.c874 size_t size = seq_get_buf(sf, &buf), off = 0; in blkcg_print_stat() local
894 off += scnprintf(buf+off, size-off, "%s ", dname); in blkcg_print_stat()
909 off += scnprintf(buf+off, size-off, in blkcg_print_stat()
917 off += scnprintf(buf+off, size-off, in blkcg_print_stat()
930 written = pol->pd_stat_fn(blkg->pd[i], buf+off, size-off); in blkcg_print_stat()
937 if (off < size - 1) { in blkcg_print_stat()
938 off += scnprintf(buf+off, size-off, "\n"); in blkcg_print_stat()
Dblk-mq-tag.h49 unsigned int size);
Dscsi_ioctl.c89 int size, err = get_user(size, p); in sg_set_reserved_size() local
94 if (size < 0) in sg_set_reserved_size()
97 q->sg_reserved_size = min(size, max_sectors_bytes(q)); in sg_set_reserved_size()
Dblk-mq-tag.c640 void blk_mq_tag_resize_shared_sbitmap(struct blk_mq_tag_set *set, unsigned int size) in blk_mq_tag_resize_shared_sbitmap() argument
642 sbitmap_queue_resize(&set->__bitmap_tags, size - set->reserved_tags); in blk_mq_tag_resize_shared_sbitmap()
Dgenhd.c52 bool set_capacity_revalidate_and_notify(struct gendisk *disk, sector_t size, in set_capacity_revalidate_and_notify() argument
57 set_capacity(disk, size); in set_capacity_revalidate_and_notify()
61 if (capacity != size && capacity != 0 && size != 0) { in set_capacity_revalidate_and_notify()
1378 static DEVICE_ATTR(size, 0444, part_size_show, NULL);
Dblk-crypto.c363 blk_key->size = raw_key_size; in blk_crypto_init_key()

12