/block/partitions/ |
D | cmdline.c | 73 int length; in parse_subpart() local 82 length = min_t(int, next - partdef, in parse_subpart() 84 strncpy(new_subpart->name, partdef, length); in parse_subpart() 85 new_subpart->name[length] = '\0'; in parse_subpart() 125 int length; in parse_parts() local 142 length = min_t(int, next - bdevdef, sizeof(newparts->name) - 1); in parse_parts() 143 strncpy(newparts->name, bdevdef, length); in parse_parts() 144 newparts->name[length] = '\0'; in parse_parts() 153 length = (!next) ? (sizeof(buf) - 1) : in parse_parts() 156 strncpy(buf, bdevdef, length); in parse_parts() [all …]
|
D | ldm.c | 660 u8 length; in ldm_get_vnum() local 664 length = *block++; in ldm_get_vnum() 666 if (length && length <= 8) in ldm_get_vnum() 667 while (length--) in ldm_get_vnum() 670 ldm_error ("Illegal length %d.", length); in ldm_get_vnum() 694 int length; in ldm_get_vstr() local 698 length = block[0]; in ldm_get_vstr() 699 if (length >= buflen) { in ldm_get_vstr() 700 ldm_error ("Truncating string %d -> %d.", length, buflen); in ldm_get_vstr() 701 length = buflen - 1; in ldm_get_vstr() [all …]
|
D | core.c | 434 sector_t length, int skip_partno) in partition_overlaps() argument 444 start + length > part->bd_start_sect) { in partition_overlaps() 455 sector_t length) in bdev_add_partition() argument 471 if (partition_overlaps(disk, start, length, -1)) { in bdev_add_partition() 476 part = add_partition(disk, partno, start, length, in bdev_add_partition() 506 sector_t length) in bdev_resize_partition() argument 521 if (partition_overlaps(disk, start, length, partno)) in bdev_resize_partition() 524 bdev_set_nr_sectors(part, length); in bdev_resize_partition()
|
D | acorn.c | 56 __le32 length; member 96 le32_to_cpu(rr->part[part].length)); in riscix_partition()
|
/block/ |
D | opal_proto.h | 224 __be32 length; member 235 __be32 length; member 242 __be32 length; member 267 __be32 length; /* the length of the header 48 in 2.00.100 */ member 461 u8 length; member
|
D | ioctl.c | 21 sector_t start, length; in blkpg_do_ioctl() local 36 if (p.start < 0 || p.length <= 0 || p.start + p.length < 0) in blkpg_do_ioctl() 39 if (!IS_ALIGNED(p.start | p.length, bdev_logical_block_size(bdev))) in blkpg_do_ioctl() 43 length = p.length >> SECTOR_SHIFT; in blkpg_do_ioctl() 47 return bdev_add_partition(disk, p.pno, start, length); in blkpg_do_ioctl() 49 return bdev_resize_partition(disk, p.pno, start, length); in blkpg_do_ioctl()
|
D | badblocks.c | 485 unsigned int length = BB_LEN(p[i]); in badblocks_show() local 495 length << bb->shift); in badblocks_show() 521 int length; in badblocks_store() local 524 switch (sscanf(page, "%llu %d%c", §or, &length, &newline)) { in badblocks_store() 530 if (length <= 0) in badblocks_store() 537 if (badblocks_set(bb, sector, length, !unack)) in badblocks_store()
|
D | sed-opal.c | 261 static void print_buffer(const u8 *ptr, u32 length) in print_buffer() argument 264 print_hex_dump_bytes("OPAL: ", DUMP_PREFIX_OFFSET, ptr, length); in print_buffer() 435 u32 hlen = be32_to_cpu(hdr->length); in opal_discovery0_end() 488 cpos += body->length + 4; in opal_discovery0_end() 644 static int build_locking_range(u8 *buffer, size_t length, u8 lr) in build_locking_range() argument 646 if (length > OPAL_UID_LENGTH) { in build_locking_range() 662 static int build_locking_user(u8 *buffer, size_t length, u8 lr) in build_locking_user() argument 664 if (length > OPAL_UID_LENGTH) { in build_locking_user() 715 hdr->subpkt.length = cpu_to_be32(cmd->pos - sizeof(*hdr)); in cmd_finalize() 723 hdr->pkt.length = cpu_to_be32(cmd->pos - sizeof(hdr->cp) - in cmd_finalize() [all …]
|
D | blk-mq-sysfs.c | 77 size_t length) in blk_mq_hw_sysfs_store() argument 92 res = entry->store(hctx, page, length); in blk_mq_hw_sysfs_store()
|
D | blk.h | 397 sector_t length); 400 sector_t length);
|
D | blk-integrity.c | 82 if (sg->length + iv.bv_len > queue_max_segment_size(q)) in blk_rq_map_integrity_sg() 85 sg->length += iv.bv_len; in blk_rq_map_integrity_sg()
|
D | elevator.c | 464 const char *page, size_t length) in elv_attr_store() argument 475 error = e->type ? entry->store(e, page, length) : -ENOENT; in elv_attr_store()
|
D | blk-sysfs.c | 731 const char *page, size_t length) in queue_attr_store() argument 742 res = entry->store(q, page, length); in queue_attr_store()
|
D | blk-merge.c | 491 if ((*sg)->length + nbytes > queue_max_segment_size(q)) in __blk_segment_map_sg_merge() 497 (*sg)->length += nbytes; in __blk_segment_map_sg_merge()
|