/block/ |
D | sed-opal.c | 53 const u8 *pos; member 90 size_t pos; member 534 return IO_BUFFER_LENGTH - cmd->pos; in remaining_size() 556 cmd->cmd[cmd->pos++] = tok; in add_token_u8() 583 cmd->cmd[cmd->pos++] = header0; in add_medium_atom_header() 584 cmd->cmd[cmd->pos++] = len; in add_medium_atom_header() 629 return &cmd->cmd[cmd->pos]; in add_bytestring_header() 641 cmd->pos += len; in add_token_bytestring() 715 hdr->subpkt.length = cpu_to_be32(cmd->pos - sizeof(*hdr)); in cmd_finalize() 716 while (cmd->pos % 4) { in cmd_finalize() [all …]
|
D | blk-mq-sysfs.c | 113 int ret = 0, pos = 0; in blk_mq_hw_sysfs_cpus_show() local 117 ret = snprintf(pos + page, size - pos, "%u", i); in blk_mq_hw_sysfs_cpus_show() 119 ret = snprintf(pos + page, size - pos, ", %u", i); in blk_mq_hw_sysfs_cpus_show() 121 if (ret >= size - pos) in blk_mq_hw_sysfs_cpus_show() 125 pos += ret; in blk_mq_hw_sysfs_cpus_show() 128 ret = snprintf(pos + page, size + 1 - pos, "\n"); in blk_mq_hw_sysfs_cpus_show() 129 return pos + ret; in blk_mq_hw_sysfs_cpus_show()
|
D | fops.c | 60 loff_t pos = iocb->ki_pos; in __blkdev_direct_IO_simple() local 66 if ((pos | iov_iter_alignment(iter)) & in __blkdev_direct_IO_simple() 81 bio.bi_iter.bi_sector = pos >> 9; in __blkdev_direct_IO_simple() 202 loff_t pos = iocb->ki_pos; in __blkdev_direct_IO() local 206 if ((pos | iov_iter_alignment(iter)) & in __blkdev_direct_IO() 234 bio->bi_iter.bi_sector = pos >> 9; in __blkdev_direct_IO() 274 pos += bio->bi_iter.bi_size; in __blkdev_direct_IO() 366 loff_t pos, unsigned len, unsigned flags, struct page **pagep, in blkdev_write_begin() argument 369 return block_write_begin(mapping, pos, len, flags, pagep, in blkdev_write_begin() 374 loff_t pos, unsigned len, unsigned copied, struct page *page, in blkdev_write_end() argument [all …]
|
D | disk-events.c | 343 ssize_t pos = 0; in __disk_events_show() local 348 pos += sprintf(buf + pos, "%s%s", in __disk_events_show() 352 if (pos) in __disk_events_show() 353 pos += sprintf(buf + pos, "\n"); in __disk_events_show() 354 return pos; in __disk_events_show()
|
D | mq-deadline.c | 166 enum dd_data_dir data_dir, sector_t pos) in deadline_from_pos() argument 181 pos -= bdev_offset_from_zone_start(rq->q->disk->part0, pos); in deadline_from_pos() 185 if (blk_rq_pos(rq) >= pos) { in deadline_from_pos() 333 sector_t pos = blk_rq_pos(rq); in deadline_skip_seq_writes() local 336 pos += blk_rq_sectors(rq); in deadline_skip_seq_writes() 338 } while (rq && blk_rq_pos(rq) == pos); in deadline_skip_seq_writes() 1046 loff_t *pos) \ 1054 return seq_list_start(&per_prio->fifo_list[data_dir], *pos); \ 1058 loff_t *pos) \ 1064 return seq_list_next(v, &per_prio->fifo_list[data_dir], pos); \ [all …]
|
D | blk-mq-debugfs.c | 44 static void *queue_requeue_list_start(struct seq_file *m, loff_t *pos) in queue_requeue_list_start() argument 50 return seq_list_start(&q->requeue_list, *pos); in queue_requeue_list_start() 53 static void *queue_requeue_list_next(struct seq_file *m, void *v, loff_t *pos) in queue_requeue_list_next() argument 57 return seq_list_next(v, &q->requeue_list, pos); in queue_requeue_list_next() 362 static void *hctx_dispatch_start(struct seq_file *m, loff_t *pos) in hctx_dispatch_start() argument 368 return seq_list_start(&hctx->dispatch, *pos); in hctx_dispatch_start() 371 static void *hctx_dispatch_next(struct seq_file *m, void *v, loff_t *pos) in hctx_dispatch_next() argument 375 return seq_list_next(v, &hctx->dispatch, pos); in hctx_dispatch_next() 630 static void *ctx_##name##_rq_list_start(struct seq_file *m, loff_t *pos) \ 636 return seq_list_start(&ctx->rq_lists[type], *pos); \ [all …]
|
D | blk-cgroup.c | 349 struct blkcg *pos = blkcg; in blkg_lookup_create() local 360 pos = parent; in blkg_lookup_create() 364 blkg = blkg_create(pos, q, NULL); in blkg_lookup_create() 369 if (pos == blkcg) in blkg_lookup_create() 674 struct blkcg *pos = blkcg; in blkg_conf_prep() local 680 pos = parent; in blkg_conf_prep() 688 new_blkg = blkg_alloc(pos, q, GFP_KERNEL); in blkg_conf_prep() 703 blkg = blkg_lookup_check(pos, pol, q); in blkg_conf_prep() 713 blkg = blkg_create(pos, q, new_blkg); in blkg_conf_prep() 722 if (pos == blkcg) in blkg_conf_prep()
|
D | genhd.c | 753 static void *disk_seqf_start(struct seq_file *seqf, loff_t *pos) in disk_seqf_start() argument 755 loff_t skip = *pos; in disk_seqf_start() 774 static void *disk_seqf_next(struct seq_file *seqf, void *v, loff_t *pos) in disk_seqf_next() argument 778 (*pos)++; in disk_seqf_next() 798 static void *show_partition_start(struct seq_file *seqf, loff_t *pos) in show_partition_start() argument 802 p = disk_seqf_start(seqf, pos); in show_partition_start() 803 if (!IS_ERR_OR_NULL(p) && !*pos) in show_partition_start()
|
D | kyber-iosched.c | 908 static void *kyber_##name##_rqs_start(struct seq_file *m, loff_t *pos) \ 915 return seq_list_start(&khd->rqs[domain], *pos); \ 919 loff_t *pos) \ 924 return seq_list_next(v, &khd->rqs[domain], pos); \
|
D | blk-core.c | 765 sector_t pos = bio->bi_iter.bi_sector; in blk_check_zone_append() local 773 if (!bdev_is_zone_start(bio->bi_bdev, pos) || in blk_check_zone_append() 774 !blk_queue_zone_is_seq(q, pos)) in blk_check_zone_append()
|
D | blk-mq.c | 1933 struct list_head *pos = &head_rq->queuelist; /* skip first */ in blk_mq_flush_plug_list() local 1938 list_for_each_continue(pos, &list) { in blk_mq_flush_plug_list() 1939 rq = list_entry_rq(pos); in blk_mq_flush_plug_list() 1946 list_cut_before(&rq_list, &list, pos); in blk_mq_flush_plug_list()
|
D | bfq-iosched.c | 1159 struct bfq_queue *pos, *bfqq_item; in bfq_add_to_burst() local 1184 hlist_for_each_entry_safe(pos, n, &bfqd->burst_list, in bfq_add_to_burst() 1186 hlist_del_init(&pos->burst_list_node); in bfq_add_to_burst()
|
/block/partitions/ |
D | mac.c | 77 int pos = slot * secsize; in mac_partition() local 79 data = read_part_sector(state, pos/512, §); in mac_partition() 82 part = (struct mac_partition *) (data + pos%512); in mac_partition()
|