Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 11 of 11) sorted by relevance

/block/
Dblk-mq-sysfs.c86 int ret = 0, pos = 0; in blk_mq_hw_sysfs_cpus_show() local
90 ret = snprintf(pos + page, size - pos, "%u", i); in blk_mq_hw_sysfs_cpus_show()
92 ret = snprintf(pos + page, size - pos, ", %u", i); in blk_mq_hw_sysfs_cpus_show()
94 if (ret >= size - pos) in blk_mq_hw_sysfs_cpus_show()
98 pos += ret; in blk_mq_hw_sysfs_cpus_show()
101 ret = snprintf(pos + page, size + 1 - pos, "\n"); in blk_mq_hw_sysfs_cpus_show()
102 return pos + ret; in blk_mq_hw_sysfs_cpus_show()
Dsed-opal.c58 const u8 *pos; member
96 size_t pos; member
694 return IO_BUFFER_LENGTH - cmd->pos; in remaining_size()
716 cmd->cmd[cmd->pos++] = tok; in add_token_u8()
743 cmd->cmd[cmd->pos++] = header0; in add_medium_atom_header()
744 cmd->cmd[cmd->pos++] = len; in add_medium_atom_header()
789 return &cmd->cmd[cmd->pos]; in add_bytestring_header()
801 cmd->pos += len; in add_token_bytestring()
875 hdr->subpkt.length = cpu_to_be32(cmd->pos - sizeof(*hdr)); in cmd_finalize()
876 while (cmd->pos % 4) { in cmd_finalize()
[all …]
Dfops.c37 static bool blkdev_dio_unaligned(struct block_device *bdev, loff_t pos, in blkdev_dio_unaligned() argument
40 return pos & (bdev_logical_block_size(bdev) - 1) || in blkdev_dio_unaligned()
51 loff_t pos = iocb->ki_pos; in __blkdev_direct_IO_simple() local
56 if (blkdev_dio_unaligned(bdev, pos, iter)) in __blkdev_direct_IO_simple()
75 bio.bi_iter.bi_sector = pos >> SECTOR_SHIFT; in __blkdev_direct_IO_simple()
172 loff_t pos = iocb->ki_pos; in __blkdev_direct_IO() local
175 if (blkdev_dio_unaligned(bdev, pos, iter)) in __blkdev_direct_IO()
206 bio->bi_iter.bi_sector = pos >> SECTOR_SHIFT; in __blkdev_direct_IO()
244 pos += bio->bi_iter.bi_size; in __blkdev_direct_IO()
312 loff_t pos = iocb->ki_pos; in __blkdev_direct_IO_async() local
[all …]
Ddisk-events.c331 ssize_t pos = 0; in __disk_events_show() local
336 pos += sprintf(buf + pos, "%s%s", in __disk_events_show()
340 if (pos) in __disk_events_show()
341 pos += sprintf(buf + pos, "\n"); in __disk_events_show()
342 return pos; in __disk_events_show()
Dblk-mq-debugfs.c21 static void *queue_requeue_list_start(struct seq_file *m, loff_t *pos) in queue_requeue_list_start() argument
27 return seq_list_start(&q->requeue_list, *pos); in queue_requeue_list_start()
30 static void *queue_requeue_list_next(struct seq_file *m, void *v, loff_t *pos) in queue_requeue_list_next() argument
34 return seq_list_next(v, &q->requeue_list, pos); in queue_requeue_list_next()
313 static void *hctx_dispatch_start(struct seq_file *m, loff_t *pos) in hctx_dispatch_start() argument
319 return seq_list_start(&hctx->dispatch, *pos); in hctx_dispatch_start()
322 static void *hctx_dispatch_next(struct seq_file *m, void *v, loff_t *pos) in hctx_dispatch_next() argument
326 return seq_list_next(v, &hctx->dispatch, pos); in hctx_dispatch_next()
517 static void *ctx_##name##_rq_list_start(struct seq_file *m, loff_t *pos) \
523 return seq_list_start(&ctx->rq_lists[type], *pos); \
[all …]
Dmq-deadline.c164 enum dd_data_dir data_dir, sector_t pos) in deadline_from_pos() argument
179 pos -= bdev_offset_from_zone_start(rq->q->disk->part0, pos); in deadline_from_pos()
183 if (blk_rq_pos(rq) >= pos) { in deadline_from_pos()
331 sector_t pos = blk_rq_pos(rq); in deadline_skip_seq_writes() local
334 pos += blk_rq_sectors(rq); in deadline_skip_seq_writes()
336 } while (rq && blk_rq_pos(rq) == pos); in deadline_skip_seq_writes()
1050 loff_t *pos) \
1058 return seq_list_start(&per_prio->fifo_list[data_dir], *pos); \
1062 loff_t *pos) \
1068 return seq_list_next(v, &per_prio->fifo_list[data_dir], pos); \
[all …]
Dblk-cgroup.c500 struct blkcg *pos = blkcg; in blkg_lookup_create() local
511 pos = parent; in blkg_lookup_create()
515 blkg = blkg_create(pos, disk, NULL); in blkg_lookup_create()
520 if (pos == blkcg) in blkg_lookup_create()
875 struct blkcg *pos = blkcg; in blkg_conf_prep() local
881 pos = parent; in blkg_conf_prep()
888 new_blkg = blkg_alloc(pos, disk, GFP_KERNEL); in blkg_conf_prep()
908 blkg = blkg_lookup(pos, q); in blkg_conf_prep()
912 blkg = blkg_create(pos, disk, new_blkg); in blkg_conf_prep()
921 if (pos == blkcg) in blkg_conf_prep()
Dgenhd.c792 static void *disk_seqf_start(struct seq_file *seqf, loff_t *pos) in disk_seqf_start() argument
794 loff_t skip = *pos; in disk_seqf_start()
813 static void *disk_seqf_next(struct seq_file *seqf, void *v, loff_t *pos) in disk_seqf_next() argument
817 (*pos)++; in disk_seqf_next()
837 static void *show_partition_start(struct seq_file *seqf, loff_t *pos) in show_partition_start() argument
841 p = disk_seqf_start(seqf, pos); in show_partition_start()
842 if (!IS_ERR_OR_NULL(p) && !*pos) in show_partition_start()
Dkyber-iosched.c910 static void *kyber_##name##_rqs_start(struct seq_file *m, loff_t *pos) \
917 return seq_list_start(&khd->rqs[domain], *pos); \
921 loff_t *pos) \
926 return seq_list_next(v, &khd->rqs[domain], pos); \
Dbfq-iosched.c1236 struct bfq_queue *pos, *bfqq_item; in bfq_add_to_burst() local
1261 hlist_for_each_entry_safe(pos, n, &bfqd->burst_list, in bfq_add_to_burst()
1263 hlist_del_init(&pos->burst_list_node); in bfq_add_to_burst()
/block/partitions/
Dmac.c77 int pos = slot * secsize; in mac_partition() local
79 data = read_part_sector(state, pos/512, &sect); in mac_partition()
82 part = (struct mac_partition *) (data + pos%512); in mac_partition()