Searched refs:length (Results 1 – 11 of 11) sorted by relevance
/block/ |
D | cmdline-parser.c | 41 int length; in parse_subpart() local 50 length = min_t(int, next - partdef, in parse_subpart() 52 strncpy(new_subpart->name, partdef, length); in parse_subpart() 53 new_subpart->name[length] = '\0'; in parse_subpart() 93 int length; in parse_parts() local 110 length = min_t(int, next - bdevdef, sizeof(newparts->name) - 1); in parse_parts() 111 strncpy(newparts->name, bdevdef, length); in parse_parts() 112 newparts->name[length] = '\0'; in parse_parts() 121 length = (!next) ? (sizeof(buf) - 1) : in parse_parts() 124 strncpy(buf, bdevdef, length); in parse_parts() [all …]
|
D | ioctl.c | 21 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() 55 if (!(start + length <= part->start_sect || in blkpg_ioctl() 65 part = add_partition(disk, partno, start, length, in blkpg_ioctl() 99 length = p.length >> 9; in blkpg_ioctl() 103 long pstart = start, plength = length; in blkpg_ioctl() 104 if (pstart != start || plength != length in blkpg_ioctl() 130 !(start + length <= lpart->start_sect || in blkpg_ioctl() [all …]
|
D | badblocks.c | 493 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", §or, &length, &newline)) { in badblocks_store() 537 if (length <= 0) in badblocks_store() 544 if (badblocks_set(bb, sector, length, !unack)) in badblocks_store()
|
D | blk-mq-sysfs.c | 56 const char *page, size_t length) in blk_mq_sysfs_store() argument 73 res = entry->store(ctx, page, length); in blk_mq_sysfs_store() 103 size_t length) in blk_mq_hw_sysfs_store() argument 120 res = entry->store(hctx, page, length); in blk_mq_hw_sysfs_store()
|
D | blk-integrity.c | 104 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()
|
D | blk-merge.c | 371 if ((*sg)->length + nbytes > queue_max_segment_size(q)) in __blk_segment_map_sg() 379 (*sg)->length += nbytes; in __blk_segment_map_sg() 464 sg->length += pad_len; in blk_rq_map_sg()
|
D | blk-sysfs.c | 583 const char *page, size_t length) in queue_attr_store() argument 598 res = entry->store(q, page, length); in queue_attr_store()
|
D | Kconfig | 59 can handle complicated SCSI commands: tagged variable length cdbs
|
D | elevator.c | 765 const char *page, size_t length) in elv_attr_store() argument 776 error = e->type ? entry->store(e, page, length) : -ENOENT; in elv_attr_store()
|
/block/partitions/ |
D | ldm.c | 674 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 …]
|
D | acorn.c | 62 __le32 length; member 102 le32_to_cpu(rr->part[part].length)); in riscix_partition()
|