Home
last modified time | relevance | path

Searched refs:budget_token (Results 1 – 5 of 5) sorted by relevance

/linux/block/
H A Dblk-mq-sched.c104 int budget_token; in __blk_mq_do_dispatch_sched() local
114 budget_token = blk_mq_get_dispatch_budget(q); in __blk_mq_do_dispatch_sched()
115 if (budget_token < 0) in __blk_mq_do_dispatch_sched()
120 blk_mq_put_dispatch_budget(q, budget_token); in __blk_mq_do_dispatch_sched()
132 blk_mq_set_rq_budget_token(rq, budget_token); in __blk_mq_do_dispatch_sched()
224 int budget_token; in blk_mq_do_dispatch_ctx() local
234 budget_token = blk_mq_get_dispatch_budget(q); in blk_mq_do_dispatch_ctx()
235 if (budget_token < 0) in blk_mq_do_dispatch_ctx()
240 blk_mq_put_dispatch_budget(q, budget_token); in blk_mq_do_dispatch_ctx()
252 blk_mq_set_rq_budget_token(rq, budget_token); in blk_mq_do_dispatch_ctx()
H A Dblk-mq.c2013 int budget_token = -1; in blk_mq_prep_dispatch_rq() local
2016 budget_token = blk_mq_get_dispatch_budget(rq->q); in blk_mq_prep_dispatch_rq()
2017 if (budget_token < 0) { in blk_mq_prep_dispatch_rq()
2021 blk_mq_set_rq_budget_token(rq, budget_token); in blk_mq_prep_dispatch_rq()
2038 blk_mq_put_dispatch_budget(rq->q, budget_token); in blk_mq_prep_dispatch_rq()
2053 int budget_token = blk_mq_get_rq_budget_token(rq); in blk_mq_release_budgets() local
2055 if (budget_token >= 0) in blk_mq_release_budgets()
2056 blk_mq_put_dispatch_budget(q, budget_token); in blk_mq_release_budgets()
2707 int budget_token; in blk_mq_get_budget_and_tag() local
2709 budget_token = blk_mq_get_dispatch_budget(rq->q); in blk_mq_get_budget_and_tag()
[all …]
/linux/drivers/scsi/
H A Dscsi_lib.c393 sbitmap_put(&sdev->budget_map, cmd->budget_token); in scsi_device_unbusy()
394 cmd->budget_token = -1; in scsi_device_unbusy()
1731 static void scsi_mq_put_budget(struct request_queue *q, int budget_token) in scsi_mq_put_budget() argument
1735 sbitmap_put(&sdev->budget_map, budget_token); in scsi_mq_put_budget()
1780 cmd->budget_token = token; in scsi_mq_set_rq_budget_token()
1787 return cmd->budget_token; in scsi_mq_get_rq_budget_token()
1801 WARN_ON_ONCE(cmd->budget_token < 0); in scsi_queue_rq()
1859 scsi_mq_put_budget(q, cmd->budget_token); in scsi_queue_rq()
1860 cmd->budget_token = -1; in scsi_queue_rq()
/linux/include/scsi/
H A Dscsi_cmnd.h83 int budget_token; member
/linux/drivers/ata/
H A Dlibata-scsi.c753 if (WARN_ON_ONCE(cmd->budget_token >= ATA_MAX_QUEUE)) in ata_scsi_qc_new()
755 tag = cmd->budget_token; in ata_scsi_qc_new()