/block/ |
D | cmdline-parser.c | 42 int length; in parse_subpart() local 51 length = min_t(int, next - partdef, in parse_subpart() 53 strncpy(new_subpart->name, partdef, length); in parse_subpart() 54 new_subpart->name[length] = '\0'; in parse_subpart() 94 int length; in parse_parts() local 111 length = min_t(int, next - bdevdef, sizeof(newparts->name) - 1); in parse_parts() 112 strncpy(newparts->name, bdevdef, length); in parse_parts() 113 newparts->name[length] = '\0'; in parse_parts() 122 length = (!next) ? (sizeof(buf) - 1) : in parse_parts() 125 strncpy(buf, bdevdef, length); in parse_parts() [all …]
|
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 | 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 | ioctl.c | 20 long long start, length; in blkpg_do_ioctl() local 36 length = p.length >> SECTOR_SHIFT; in blkpg_do_ioctl() 40 long pstart = start, plength = length; in blkpg_do_ioctl() 42 if (pstart != start || plength != length || pstart < 0 || in blkpg_do_ioctl() 52 return bdev_add_partition(bdev, p.pno, start, length); in blkpg_do_ioctl() 54 return bdev_resize_partition(bdev, p.pno, start, length); in blkpg_do_ioctl()
|
D | blk-mq-sysfs.c | 82 const char *page, size_t length) in blk_mq_sysfs_store() argument 97 res = entry->store(ctx, page, length); in blk_mq_sysfs_store() 125 size_t length) in blk_mq_hw_sysfs_store() argument 140 res = entry->store(hctx, page, length); in blk_mq_hw_sysfs_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-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 | blk.h | 366 sector_t start, sector_t length); 369 sector_t start, sector_t length);
|
D | elevator.c | 459 const char *page, size_t length) in elv_attr_store() argument 470 error = e->type ? entry->store(e, page, length) : -ENOENT; in elv_attr_store()
|
D | blk-sysfs.c | 709 const char *page, size_t length) in queue_attr_store() argument 720 res = entry->store(q, page, length); in queue_attr_store()
|
D | blk-merge.c | 474 if ((*sg)->length + nbytes > queue_max_segment_size(q)) in __blk_segment_map_sg_merge() 480 (*sg)->length += nbytes; in __blk_segment_map_sg_merge()
|
D | Kconfig | 47 can handle complicated SCSI commands: tagged variable length cdbs
|
/block/partitions/ |
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 | 505 sector_t length, int skip_partno) in partition_overlaps() argument 515 start + length <= part->start_sect) in partition_overlaps() 526 sector_t start, sector_t length) in bdev_add_partition() argument 531 if (partition_overlaps(bdev->bd_disk, start, length, -1)) { in bdev_add_partition() 536 part = add_partition(bdev->bd_disk, partno, start, length, in bdev_add_partition() 579 sector_t start, sector_t length) in bdev_resize_partition() argument 602 if (partition_overlaps(bdev->bd_disk, start, length, partno)) in bdev_resize_partition() 605 part_nr_sects_write(part, length); in bdev_resize_partition() 606 bd_set_nr_sectors(bdevp, length); in bdev_resize_partition()
|
D | acorn.c | 56 __le32 length; member 96 le32_to_cpu(rr->part[part].length)); in riscix_partition()
|