/block/partitions/ |
D | ldm.c | 788 int r_objid, r_name, r_vstate, r_child, r_parent, r_stripe, r_cols, len; in ldm_parse_cmp3() local 802 len = r_cols; in ldm_parse_cmp3() 806 len = r_parent; in ldm_parse_cmp3() 808 if (len < 0) in ldm_parse_cmp3() 811 len += VBLK_SIZE_CMP3; in ldm_parse_cmp3() 812 if (len != get_unaligned_be32(buffer + 0x14)) in ldm_parse_cmp3() 839 int r_objid, r_name, r_diskid, r_id1, r_id2, len; in ldm_parse_dgr3() local 851 len = r_id2; in ldm_parse_dgr3() 855 len = r_diskid; in ldm_parse_dgr3() 857 if (len < 0) in ldm_parse_dgr3() [all …]
|
D | mac.c | 22 static inline void mac_fix_string(char *stg, int len) in mac_fix_string() argument 26 for (i = len - 1; i >= 0 && stg[i] == ' '; i--) in mac_fix_string()
|
D | efi.c | 134 efi_crc32(const void *buf, unsigned long len) in efi_crc32() argument 136 return (crc32(~0L, buf, len) ^ ~0L); in efi_crc32()
|
/block/ |
D | blk-map.c | 148 unsigned long len, gfp_t gfp_mask) in blk_rq_map_user() argument 152 int ret = import_single_range(rq_data_dir(rq), ubuf, len, &iov, &i); in blk_rq_map_user() 207 unsigned int len, gfp_t gfp_mask) in blk_rq_map_kern() argument 215 if (len > (queue_max_hw_sectors(q) << 9)) in blk_rq_map_kern() 217 if (!len || !kbuf) in blk_rq_map_kern() 220 do_copy = !blk_rq_aligned(q, addr, len) || object_is_on_stack(kbuf); in blk_rq_map_kern() 222 bio = bio_copy_kern(q, kbuf, len, gfp_mask, reading); in blk_rq_map_kern() 224 bio = bio_map_kern(q, kbuf, len, gfp_mask); in blk_rq_map_kern()
|
D | bio.c | 722 *page, unsigned int len, unsigned int offset) in bio_add_pc_page() argument 733 if (((bio->bi_iter.bi_size + len) >> 9) > queue_max_hw_sectors(q)) in bio_add_pc_page() 746 prev->bv_len += len; in bio_add_pc_page() 747 bio->bi_iter.bi_size += len; in bio_add_pc_page() 768 bvec->bv_len = len; in bio_add_pc_page() 772 bio->bi_iter.bi_size += len; in bio_add_pc_page() 793 return len; in bio_add_pc_page() 800 bio->bi_iter.bi_size -= len; in bio_add_pc_page() 817 unsigned int len, unsigned int offset) in bio_add_page() argument 837 bv->bv_len += len; in bio_add_page() [all …]
|
D | bio-integrity.c | 136 unsigned int len, unsigned int offset) in bio_integrity_add_page() argument 154 iv->bv_len = len; in bio_integrity_add_page() 158 return len; in bio_integrity_add_page() 279 unsigned int len, nr_pages; in bio_integrity_prep() local 291 len = intervals * bi->tuple_size; in bio_integrity_prep() 292 buf = kmalloc(len, GFP_NOIO | q->bounce_gfp); in bio_integrity_prep() 298 end = (((unsigned long) buf) + len + PAGE_SIZE - 1) >> PAGE_SHIFT; in bio_integrity_prep() 311 bip->bip_iter.bi_size = len; in bio_integrity_prep() 323 if (len <= 0) in bio_integrity_prep() 326 if (bytes > len) in bio_integrity_prep() [all …]
|
D | blk-mq-sysfs.c | 145 int len = snprintf(page, PAGE_SIZE - 1, "%s:\n", msg); in sysfs_list_show() local 151 if (PAGE_SIZE - 1 < len + rq_len) { in sysfs_list_show() 153 if (PAGE_SIZE - 1 < len + 5) in sysfs_list_show() 154 len -= rq_len; in sysfs_list_show() 155 len += snprintf(page + len, PAGE_SIZE - 1 - len, in sysfs_list_show() 159 len += snprintf(page + len, PAGE_SIZE - 1 - len, in sysfs_list_show() 163 return len; in sysfs_list_show()
|
D | ioctl.c | 201 uint64_t start, len; in blk_ioctl_discard() local 210 len = range[1]; in blk_ioctl_discard() 214 if (len & 511) in blk_ioctl_discard() 217 len >>= 9; in blk_ioctl_discard() 219 if (start + len > (i_size_read(bdev->bd_inode) >> 9)) in blk_ioctl_discard() 221 return blkdev_issue_discard(bdev, start, len, GFP_KERNEL, flags); in blk_ioctl_discard() 228 uint64_t start, len; in blk_ioctl_zeroout() local 237 len = range[1]; in blk_ioctl_zeroout() 241 if (len & 511) in blk_ioctl_zeroout() 244 len >>= 9; in blk_ioctl_zeroout() [all …]
|
D | t10-pi.c | 34 static __be16 t10_pi_crc_fn(void *data, unsigned int len) in t10_pi_crc_fn() argument 36 return cpu_to_be16(crc_t10dif(data, len)); in t10_pi_crc_fn() 39 static __be16 t10_pi_ip_fn(void *data, unsigned int len) in t10_pi_ip_fn() argument 41 return (__force __be16)ip_compute_csum(data, len); in t10_pi_ip_fn()
|
D | elevator.c | 1007 int len = 0; in elv_iosched_show() local 1017 len += sprintf(name+len, "[%s] ", elv->elevator_name); in elv_iosched_show() 1019 len += sprintf(name+len, "%s ", __e->elevator_name); in elv_iosched_show() 1023 len += sprintf(len+name, "\n"); in elv_iosched_show() 1024 return len; in elv_iosched_show()
|
D | genhd.c | 72 if (likely(partno < ptbl->len)) { in disk_get_part() 107 piter->idx = ptbl->len - 1; in disk_part_iter_init() 151 end = ptbl->len; in disk_part_iter_next() 231 for (i = 1; i < ptbl->len; i++) { in disk_map_sector_rcu() 1077 int len = old_ptbl ? old_ptbl->len : 0; in disk_expand_part_tbl() local 1093 if (target <= len) in disk_expand_part_tbl() 1101 new_ptbl->len = target; in disk_expand_part_tbl() 1103 for (i = 0; i < len; i++) in disk_expand_part_tbl()
|
D | partition-generic.c | 257 if (partno >= ptbl->len) in delete_partition() 281 sector_t start, sector_t len, int flags, in add_partition() argument 317 p->nr_sects = len; in add_partition()
|
D | scsi_ioctl.c | 274 int len = min((unsigned int) hdr->mx_sb_len, rq->sense_len); in blk_complete_sghdr_rq() local 276 if (!copy_to_user(hdr->sbp, rq->sense, len)) in blk_complete_sghdr_rq() 277 hdr->sb_len_wr = len; in blk_complete_sghdr_rq()
|
D | bsg.c | 411 int len = min_t(unsigned int, hdr->max_response_len, in blk_complete_sgv4_hdr_rq() local 415 rq->sense, len); in blk_complete_sgv4_hdr_rq() 417 hdr->response_len = len; in blk_complete_sgv4_hdr_rq()
|
D | blk-throttle.c | 1337 int len; in tg_set_max() local 1339 if (sscanf(ctx.body, "%26s%n", tok, &len) != 1) in tg_set_max() 1343 ctx.body += len; in tg_set_max()
|
D | blk-core.c | 1530 unsigned int len) in blk_add_request_payload() argument 1536 bio->bi_io_vec->bv_len = len; in blk_add_request_payload() 1538 bio->bi_iter.bi_size = len; in blk_add_request_payload() 1542 rq->__data_len = rq->resid_len = len; in blk_add_request_payload()
|