/block/ |
D | blk-map.c | 138 unsigned int len = iter->count; in bio_copy_user_iov() local 153 nr_pages = DIV_ROUND_UP(offset + len, PAGE_SIZE); in bio_copy_user_iov() 167 while (len) { in bio_copy_user_iov() 172 if (bytes > len) in bio_copy_user_iov() 173 bytes = len; in bio_copy_user_iov() 199 len -= bytes; in bio_copy_user_iov() 356 unsigned long i, len = 0; in bio_invalidate_vmalloc_pages() local 359 len += bio->bi_io_vec[i].bv_len; in bio_invalidate_vmalloc_pages() 360 invalidate_kernel_vmap_range(bio->bi_private, len); in bio_invalidate_vmalloc_pages() 382 unsigned int len, gfp_t gfp_mask) in bio_map_kern() argument [all …]
|
D | bio.c | 741 struct page *page, unsigned int len, unsigned int off, in page_is_mergeable() argument 765 struct page *page, unsigned len, in bio_try_merge_hw_seg() argument 771 phys_addr_t addr2 = page_to_phys(page) + offset + len - 1; in bio_try_merge_hw_seg() 775 if (len > queue_max_segment_size(q) - bv->bv_len) in bio_try_merge_hw_seg() 777 return __bio_try_merge_page(bio, page, len, offset, same_page); in bio_try_merge_hw_seg() 794 struct page *page, unsigned int len, unsigned int offset, in bio_add_hw_page() argument 802 if (((bio->bi_iter.bi_size + len) >> 9) > max_sectors) in bio_add_hw_page() 806 if (bio_try_merge_hw_seg(q, bio, page, len, offset, same_page)) in bio_add_hw_page() 807 return len; in bio_add_hw_page() 818 if (bio_full(bio, len)) in bio_add_hw_page() [all …]
|
D | bio-integrity.c | 130 unsigned int len, unsigned int offset) in bio_integrity_add_page() argument 148 iv->bv_len = len; in bio_integrity_add_page() 152 return len; in bio_integrity_add_page() 215 unsigned int len, nr_pages; in bio_integrity_prep() local 245 len = intervals * bi->tuple_size; in bio_integrity_prep() 246 buf = kmalloc(len, GFP_NOIO | q->bounce_gfp); in bio_integrity_prep() 253 end = (((unsigned long) buf) + len + PAGE_SIZE - 1) >> PAGE_SHIFT; in bio_integrity_prep() 267 bip->bip_iter.bi_size = len; in bio_integrity_prep() 279 if (len <= 0) in bio_integrity_prep() 282 if (bytes > len) in bio_integrity_prep() [all …]
|
D | sed-opal.c | 54 size_t len; member 537 static bool can_add(int *err, struct opal_dev *cmd, size_t len) in can_add() argument 542 if (remaining_size(cmd) < len) { in can_add() 543 pr_debug("Error adding %zu bytes: end of buffer.\n", len); in can_add() 560 bool has_sign, int len) in add_short_atom_header() argument 568 atom |= len & SHORT_ATOM_LEN_MASK; in add_short_atom_header() 574 bool has_sign, int len) in add_medium_atom_header() argument 581 header0 |= (len >> 8) & MEDIUM_ATOM_LEN_MASK; in add_medium_atom_header() 584 cmd->cmd[cmd->pos++] = len; in add_medium_atom_header() 589 size_t len; in add_token_u64() local [all …]
|
D | badblocks.c | 447 int len = BB_LEN(p[i]); in ack_all_badblocks() local 449 p[i] = BB_MAKE(start, len, 1); in ack_all_badblocks() 469 size_t len; in badblocks_show() local 480 len = 0; in badblocks_show() 483 while (len < PAGE_SIZE && i < bb->count) { in badblocks_show() 493 len += snprintf(page+len, PAGE_SIZE-len, "%llu %u\n", in badblocks_show() 497 if (unack && len == 0) in badblocks_show() 503 return len; in badblocks_show() 517 ssize_t badblocks_store(struct badblocks *bb, const char *page, size_t len, in badblocks_store() argument 540 return len; in badblocks_store()
|
D | blk-zoned.c | 441 if (zone->len == 0 || !is_power_of_2(zone->len)) { in blk_revalidate_zone_cb() 443 disk->disk_name, zone->len); in blk_revalidate_zone_cb() 447 args->zone_sectors = zone->len; in blk_revalidate_zone_cb() 448 args->nr_zones = (capacity + zone->len - 1) >> ilog2(zone->len); in blk_revalidate_zone_cb() 450 if (zone->len != args->zone_sectors) { in blk_revalidate_zone_cb() 456 if (zone->len > args->zone_sectors) { in blk_revalidate_zone_cb() 496 args->sector += zone->len; in blk_revalidate_zone_cb()
|
D | elevator.c | 779 int len = 0; in elv_iosched_show() local 785 len += sprintf(name+len, "[none] "); in elv_iosched_show() 792 len += sprintf(name+len, "[%s] ", elv->elevator_name); in elv_iosched_show() 798 len += sprintf(name+len, "%s ", __e->elevator_name); in elv_iosched_show() 803 len += sprintf(name+len, "none"); in elv_iosched_show() 805 len += sprintf(len+name, "\n"); in elv_iosched_show() 806 return len; in elv_iosched_show()
|
D | ioctl.c | 122 uint64_t start, len; in blk_ioctl_discard() local 136 len = range[1]; in blk_ioctl_discard() 140 if (len & 511) in blk_ioctl_discard() 143 if (start + len > i_size_read(bdev->bd_inode)) in blk_ioctl_discard() 146 err = truncate_bdev_range(bdev, mode, start, start + len - 1); in blk_ioctl_discard() 150 return blkdev_issue_discard(bdev, start >> 9, len >> 9, in blk_ioctl_discard() 158 uint64_t start, end, len; in blk_ioctl_zeroout() local 168 len = range[1]; in blk_ioctl_zeroout() 169 end = start + len - 1; in blk_ioctl_zeroout() 173 if (len & 511) in blk_ioctl_zeroout() [all …]
|
D | t10-pi.c | 15 static __be16 t10_pi_crc_fn(void *data, unsigned int len) in t10_pi_crc_fn() argument 17 return cpu_to_be16(crc_t10dif(data, len)); in t10_pi_crc_fn() 20 static __be16 t10_pi_ip_fn(void *data, unsigned int len) in t10_pi_ip_fn() argument 22 return (__force __be16)ip_compute_csum(data, len); in t10_pi_ip_fn()
|
D | blk-merge.c | 206 unsigned len = min(bv->bv_len, max_len); in bvec_split_segs() local 210 while (len && *nsegs < max_segs) { in bvec_split_segs() 213 seg_size = min(seg_size, len); in bvec_split_segs() 217 len -= seg_size; in bvec_split_segs() 226 return len > 0 || bv->bv_len > max_len; in bvec_split_segs() 429 unsigned len = min(get_max_segment_size(q, bvec->bv_page, in blk_bvec_map_sg() local 445 sg_set_page(*sg, page, len, offset); in blk_bvec_map_sg() 447 total += len; in blk_bvec_map_sg() 448 nbytes -= len; in blk_bvec_map_sg()
|
D | genhd.c | 150 if (unlikely(partno < 0 || partno >= ptbl->len)) in __disk_get_part() 205 piter->idx = ptbl->len - 1; in disk_part_iter_init() 249 end = ptbl->len; in disk_part_iter_next() 332 for (i = 1; i < ptbl->len; i++) { in disk_map_sector_rcu() 377 for (i = 1; i < ptbl->len; i++) { in disk_has_partitions() 972 const char *page, size_t len) in disk_badblocks_store() argument 979 return badblocks_store(disk->bb, page, len, 0); in disk_badblocks_store() 1504 int len = old_ptbl ? old_ptbl->len : 0; in disk_expand_part_tbl() local 1519 if (target <= len) in disk_expand_part_tbl() 1527 new_ptbl->len = target; in disk_expand_part_tbl() [all …]
|
D | bsg-lib.c | 100 int len = min(hdr->max_response_len, job->reply_len); in bsg_transport_complete_rq() local 102 if (copy_to_user(uptr64(hdr->response), job->reply, len)) in bsg_transport_complete_rq() 105 hdr->response_len = len; in bsg_transport_complete_rq()
|
D | bfq-iosched.h | 1062 static inline void bfq_pid_to_str(int pid, char *str, int len) in bfq_pid_to_str() argument 1065 snprintf(str, len, "%d", pid); in bfq_pid_to_str() 1067 snprintf(str, len, "SHARED-"); in bfq_pid_to_str()
|
D | bsg.c | 107 int len = min_t(unsigned int, hdr->max_response_len, in bsg_scsi_complete_rq() local 110 if (copy_to_user(uptr64(hdr->response), sreq->sense, len)) in bsg_scsi_complete_rq() 113 hdr->response_len = len; in bsg_scsi_complete_rq()
|
D | scsi_ioctl.c | 267 int len = min((unsigned int) hdr->mx_sb_len, req->sense_len); in blk_complete_sghdr_rq() local 269 if (!copy_to_user(hdr->sbp, req->sense, len)) in blk_complete_sghdr_rq() 270 hdr->sb_len_wr = len; in blk_complete_sghdr_rq()
|
D | blk.h | 448 struct page *page, unsigned int len, unsigned int offset,
|
D | blk-throttle.c | 1677 int len; in tg_set_limit() local 1679 if (sscanf(ctx.body, "%26s%n", tok, &len) != 1) in tg_set_limit() 1683 ctx.body += len; in tg_set_limit()
|
/block/partitions/ |
D | ldm.c | 722 int r_objid, r_name, r_vstate, r_child, r_parent, r_stripe, r_cols, len; in ldm_parse_cmp3() local 736 len = r_cols; in ldm_parse_cmp3() 740 len = r_parent; in ldm_parse_cmp3() 742 if (len < 0) in ldm_parse_cmp3() 745 len += VBLK_SIZE_CMP3; in ldm_parse_cmp3() 746 if (len != get_unaligned_be32(buffer + 0x14)) in ldm_parse_cmp3() 773 int r_objid, r_name, r_diskid, r_id1, r_id2, len; in ldm_parse_dgr3() local 785 len = r_id2; in ldm_parse_dgr3() 789 len = r_diskid; in ldm_parse_dgr3() 791 if (len < 0) in ldm_parse_dgr3() [all …]
|
D | mac.c | 23 static inline void mac_fix_string(char *stg, int len) in mac_fix_string() argument 27 for (i = len - 1; i >= 0 && stg[i] == ' '; i--) in mac_fix_string()
|
D | efi.c | 120 efi_crc32(const void *buf, unsigned long len) in efi_crc32() argument 122 return (crc32(~0L, buf, len) ^ ~0L); in efi_crc32()
|
D | core.c | 371 sector_t start, sector_t len, int flags, in add_partition() argument 422 p->nr_sects = len; in add_partition()
|