/openbmc/linux/include/uapi/linux/ |
H A D | ioprio.h | 16 #define IOPRIO_PRIO_CLASS(ioprio) \ argument 17 (((ioprio) >> IOPRIO_CLASS_SHIFT) & IOPRIO_CLASS_MASK) 18 #define IOPRIO_PRIO_DATA(ioprio) ((ioprio) & IOPRIO_PRIO_MASK) argument 45 #define IOPRIO_PRIO_LEVEL(ioprio) ((ioprio) & IOPRIO_LEVEL_MASK) argument 77 #define IOPRIO_PRIO_HINT(ioprio) \ argument 78 (((ioprio) >> IOPRIO_HINT_SHIFT) & IOPRIO_HINT_MASK)
|
H A D | virtio_blk.h | 223 __virtio32 ioprio; member
|
/openbmc/linux/block/ |
H A D | ioprio.c | 33 int ioprio_check_cap(int ioprio) in ioprio_check_cap() argument 35 int class = IOPRIO_PRIO_CLASS(ioprio); in ioprio_check_cap() 36 int level = IOPRIO_PRIO_LEVEL(ioprio); in ioprio_check_cap() 69 SYSCALL_DEFINE3(ioprio_set, int, which, int, who, int, ioprio) in SYSCALL_DEFINE3() argument 77 ret = ioprio_check_cap(ioprio); in SYSCALL_DEFINE3() 90 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3() 100 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3() 125 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3() 157 prio = ioc->ioprio; in __get_task_ioprio() 197 ret = p->io_context->ioprio; in get_task_raw_ioprio()
|
H A D | blk-ioc.c | 246 ioc->ioprio = IOPRIO_DEFAULT; in alloc_io_context() 251 int set_task_ioprio(struct task_struct *task, int ioprio) in set_task_ioprio() argument 265 err = security_task_setioprio(task, ioprio); in set_task_ioprio() 289 task->io_context->ioprio = ioprio; in set_task_ioprio() 306 } else if (ioprio_valid(ioc->ioprio)) { in __copy_io() 310 tsk->io_context->ioprio = ioc->ioprio; in __copy_io()
|
H A D | Makefile | 11 genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o \ 21 obj-$(CONFIG_BLK_CGROUP_IOPRIO) += blk-ioprio.o
|
H A D | bfq-iosched.h | 255 unsigned short ioprio, ioprio_class; member 492 int ioprio; member 1138 unsigned short bfq_ioprio_to_weight(int ioprio);
|
H A D | bfq-iosched.c | 5529 ioprio_class = IOPRIO_PRIO_CLASS(bic->ioprio); in bfq_set_next_ioprio_data() 5544 bfqq->new_ioprio = IOPRIO_PRIO_LEVEL(bic->ioprio); in bfq_set_next_ioprio_data() 5548 bfqq->new_ioprio = IOPRIO_PRIO_LEVEL(bic->ioprio); in bfq_set_next_ioprio_data() 5578 int ioprio = bic->icq.ioc->ioprio; in bfq_check_ioprio_change() local 5584 if (unlikely(!bfqd) || likely(bic->ioprio == ioprio)) in bfq_check_ioprio_change() 5587 bic->ioprio = ioprio; in bfq_check_ioprio_change() 5675 int ioprio_class, int ioprio, int act_idx) in bfq_async_queue_prio() argument 5679 return &bfqg->async_bfqq[0][ioprio][act_idx]; in bfq_async_queue_prio() 5681 ioprio = IOPRIO_BE_NORM; in bfq_async_queue_prio() 5684 return &bfqg->async_bfqq[1][ioprio][act_idx]; in bfq_async_queue_prio() [all …]
|
/openbmc/linux/include/linux/ |
H A D | ioprio.h | 19 static inline bool ioprio_valid(unsigned short ioprio) in ioprio_valid() argument 21 unsigned short class = IOPRIO_PRIO_CLASS(ioprio); in ioprio_valid() 63 extern int set_task_ioprio(struct task_struct *task, int ioprio); 66 extern int ioprio_check_cap(int ioprio); 68 static inline int ioprio_check_cap(int ioprio) in ioprio_check_cap() argument
|
H A D | dm-io.h | 84 unsigned short ioprio);
|
H A D | iocontext.h | 103 unsigned short ioprio; member
|
H A D | blk-mq.h | 140 unsigned short ioprio; member 205 return req->ioprio; in req_get_ioprio() 971 rq->ioprio = bio_prio(bio); in blk_rq_bio_prep()
|
/openbmc/linux/Documentation/block/ |
H A D | ioprio.rst | 90 static inline int ioprio_set(int which, int who, int ioprio) 92 return syscall(__NR_ioprio_set, which, who, ioprio); 119 int ioprio = 4, set = 0, ioprio_class = IOPRIO_CLASS_BE; 125 ioprio = strtol(optarg, NULL, 10); 146 ioprio = 7; 157 ioprio = ioprio_get(IOPRIO_WHO_PROCESS, pid); 159 printf("pid=%d, %d\n", pid, ioprio); 161 if (ioprio == -1) 164 ioprio_class = ioprio >> IOPRIO_CLASS_SHIFT; 165 ioprio = ioprio & 0xff; [all …]
|
H A D | index.rst | 17 ioprio
|
/openbmc/linux/io_uring/ |
H A D | opdef.c | 63 .ioprio = 1, 76 .ioprio = 1, 94 .ioprio = 1, 107 .ioprio = 1, 135 .ioprio = 1, 149 .ioprio = 1, 174 .ioprio = 1, /* used for flags */ 234 .ioprio = 1, 247 .ioprio = 1, 269 .ioprio = 1, [all …]
|
H A D | opdef.h | 25 unsigned ioprio : 1; member
|
H A D | rw.c | 79 unsigned ioprio; in io_prep_rw() local 98 ioprio = READ_ONCE(sqe->ioprio); in io_prep_rw() 99 if (ioprio) { in io_prep_rw() 100 ret = ioprio_check_cap(ioprio); in io_prep_rw() 104 rw->kiocb.ki_ioprio = ioprio; in io_prep_rw()
|
/openbmc/linux/drivers/md/ |
H A D | dm-io.c | 308 struct io *io, unsigned short ioprio) in do_region() argument 357 bio->bi_ioprio = ioprio; in do_region() 387 struct io *io, int sync, unsigned short ioprio) in dispatch_io() argument 404 do_region(opf, i, where + i, dp, io, ioprio); in dispatch_io() 429 unsigned long *error_bits, unsigned short ioprio) in sync_io() argument 451 dispatch_io(opf, num_regions, where, dp, io, 1, ioprio); in sync_io() 464 unsigned short ioprio) in async_io() argument 484 dispatch_io(opf, num_regions, where, dp, io, 0, ioprio); in async_io() 527 unsigned short ioprio) in dm_io() argument 538 io_req->bi_opf, &dp, sync_error_bits, ioprio); in dm_io() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | virtio-blk-test.c | 26 uint32_t ioprio; member 66 req->ioprio = bswap32(req->ioprio); in virtio_blk_fix_request() 143 req.ioprio = 1; in test_basic() 167 req.ioprio = 1; in test_basic() 227 req.ioprio = 1; in test_basic() 287 req.ioprio = 1; in test_basic() 309 req.ioprio = 1; in test_basic() 378 req.ioprio = 1; in indirect() 403 req.ioprio = 1; in indirect() 515 req.ioprio = 1; in msix() [all …]
|
H A D | vhost-user-blk-test.c | 34 uint32_t ioprio; member 50 req->ioprio = bswap32(req->ioprio); in virtio_blk_fix_request() 245 req.ioprio = 1; in test_basic() 269 req.ioprio = 1; in test_basic() 329 req.ioprio = 1; in test_basic() 396 req.ioprio = 1; in test_basic() 418 req.ioprio = 1; in test_basic() 487 req.ioprio = 1; in indirect() 512 req.ioprio = 1; in indirect() 591 req.ioprio = 1; in idx() [all …]
|
/openbmc/linux/drivers/block/rnbd/ |
H A D | rnbd-srv-trace.h | 82 __field(u16, ioprio) 95 __entry->ioprio = le16_to_cpu(msg->prio); 110 __entry->ioprio,
|
/openbmc/linux/include/trace/events/ |
H A D | io_uring.h | 508 __field( u8, ioprio ) 529 __entry->ioprio = sqe->ioprio; 551 __entry->flags, __entry->ioprio,
|
/openbmc/u-boot/drivers/virtio/ |
H A D | virtio_blk.h | 110 __virtio32 ioprio; member
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | virtio_blk.h | 221 __virtio32 ioprio; member
|
/openbmc/qemu/pc-bios/s390-ccw/ |
H A D | virtio.h | 146 uint32_t ioprio; member
|
H A D | virtio-blkdev.c | 28 out_hdr.ioprio = 99; in virtio_blk_read_many()
|