Home
last modified time | relevance | path

Searched refs:length (Results 1 – 13 of 13) 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 …]
Dioctl.c21 long long start, length; in blkpg_ioctl() local
39 length = p.length >> 9; in blkpg_ioctl()
43 long pstart = start, plength = length; in blkpg_ioctl()
44 if (pstart != start || plength != length in blkpg_ioctl()
58 if (!(start + length <= part->start_sect || in blkpg_ioctl()
68 part = add_partition(disk, partno, start, length, in blkpg_ioctl()
102 length = p.length >> 9; in blkpg_ioctl()
106 long pstart = start, plength = length; in blkpg_ioctl()
107 if (pstart != start || plength != length in blkpg_ioctl()
133 !(start + length <= lpart->start_sect || in blkpg_ioctl()
[all …]
Dopal_proto.h212 __be32 length; member
223 __be32 length; member
230 __be32 length; member
255 __be32 length; /* the length of the header 48 in 2.00.100 */ member
449 u8 length; member
Dbadblocks.c493 unsigned int length = BB_LEN(p[i]); in badblocks_show() local
503 length << bb->shift); in badblocks_show()
529 int length; in badblocks_store() local
532 switch (sscanf(page, "%llu %d%c", &sector, &length, &newline)) { in badblocks_store()
538 if (length <= 0) in badblocks_store()
545 if (badblocks_set(bb, sector, length, !unack)) in badblocks_store()
Dblk-mq-sysfs.c65 const char *page, size_t length) in blk_mq_sysfs_store() argument
82 res = entry->store(ctx, page, length); in blk_mq_sysfs_store()
112 size_t length) in blk_mq_hw_sysfs_store() argument
129 res = entry->store(hctx, page, length); in blk_mq_hw_sysfs_store()
Dsed-opal.c265 static void print_buffer(const u8 *ptr, u32 length) in print_buffer() argument
268 print_hex_dump_bytes("OPAL: ", DUMP_PREFIX_OFFSET, ptr, length); in print_buffer()
426 u32 hlen = be32_to_cpu(hdr->length); in opal_discovery0_end()
479 cpos += body->length + 4; in opal_discovery0_end()
609 static int build_locking_range(u8 *buffer, size_t length, u8 lr) in build_locking_range() argument
611 if (length > OPAL_UID_LENGTH) { in build_locking_range()
626 static int build_locking_user(u8 *buffer, size_t length, u8 lr) in build_locking_user() argument
628 if (length > OPAL_UID_LENGTH) { in build_locking_user()
672 hdr->subpkt.length = cpu_to_be32(cmd->pos - sizeof(*hdr)); in cmd_finalize()
680 hdr->pkt.length = cpu_to_be32(cmd->pos - sizeof(hdr->cp) - in cmd_finalize()
[all …]
Dblk-integrity.c104 if (sg->length + iv.bv_len > queue_max_segment_size(q)) in blk_rq_map_integrity_sg()
107 sg->length += iv.bv_len; in blk_rq_map_integrity_sg()
Dblk-merge.c359 if ((*sg)->length + nbytes > queue_max_segment_size(q)) in __blk_segment_map_sg()
367 (*sg)->length += nbytes; in __blk_segment_map_sg()
439 sg->length += pad_len; in blk_rq_map_sg()
Dblk-sysfs.c753 const char *page, size_t length) in queue_attr_store() argument
768 res = entry->store(q, page, length); in queue_attr_store()
Delevator.c831 const char *page, size_t length) in elv_attr_store() argument
842 error = e->type ? entry->store(e, page, length) : -ENOENT; in elv_attr_store()
DKconfig65 can handle complicated SCSI commands: tagged variable length cdbs
/block/partitions/
Dldm.c674 u8 length; in ldm_get_vnum() local
678 length = *block++; in ldm_get_vnum()
680 if (length && length <= 8) in ldm_get_vnum()
681 while (length--) in ldm_get_vnum()
684 ldm_error ("Illegal length %d.", length); in ldm_get_vnum()
708 int length; in ldm_get_vstr() local
712 length = block[0]; in ldm_get_vstr()
713 if (length >= buflen) { in ldm_get_vstr()
714 ldm_error ("Truncating string %d -> %d.", length, buflen); in ldm_get_vstr()
715 length = buflen - 1; in ldm_get_vstr()
[all …]
Dacorn.c62 __le32 length; member
102 le32_to_cpu(rr->part[part].length)); in riscix_partition()