Home
last modified time | relevance | path

Searched refs:length (Results 1 – 15 of 15) sorted by relevance

/block/
Dcmdline-parser.c42 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 …]
Dopal_proto.h224 __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
Dbadblocks.c485 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", &sector, &length, &newline)) { in badblocks_store()
530 if (length <= 0) in badblocks_store()
537 if (badblocks_set(bb, sector, length, !unack)) in badblocks_store()
Dioctl.c20 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()
Dblk-mq-sysfs.c82 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()
Dsed-opal.c261 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 …]
Dblk-integrity.c82 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()
Dblk.h366 sector_t start, sector_t length);
369 sector_t start, sector_t length);
Delevator.c459 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()
Dblk-sysfs.c709 const char *page, size_t length) in queue_attr_store() argument
720 res = entry->store(q, page, length); in queue_attr_store()
Dblk-merge.c474 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()
DKconfig47 can handle complicated SCSI commands: tagged variable length cdbs
/block/partitions/
Dldm.c660 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 …]
Dcore.c505 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()
Dacorn.c56 __le32 length; member
96 le32_to_cpu(rr->part[part].length)); in riscix_partition()