Searched refs:tok (Results 1 – 5 of 5) sorted by relevance
/block/ |
D | sed-opal.c | 551 static void add_token_u8(int *err, struct opal_dev *cmd, u8 tok) in add_token_u8() argument 556 cmd->cmd[cmd->pos++] = tok; in add_token_u8() 734 const struct opal_resp_tok *tok; in response_get_token() local 747 tok = &resp->toks[n]; in response_get_token() 748 if (tok->len == 0) { in response_get_token() 753 return tok; in response_get_token() 756 static ssize_t response_parse_tiny(struct opal_resp_tok *tok, in response_parse_tiny() argument 759 tok->pos = pos; in response_parse_tiny() 760 tok->len = 1; in response_parse_tiny() 761 tok->width = OPAL_WIDTH_TINY; in response_parse_tiny() [all …]
|
D | blk-throttle.c | 1680 char tok[27]; /* wiops=18446744073709551616 */ in tg_set_limit() local 1685 if (sscanf(ctx.body, "%26s%n", tok, &len) != 1) in tg_set_limit() 1687 if (tok[0] == '\0') in tg_set_limit() 1692 p = tok; in tg_set_limit() 1702 if (!strcmp(tok, "rbps") && val > 1) in tg_set_limit() 1704 else if (!strcmp(tok, "wbps") && val > 1) in tg_set_limit() 1706 else if (!strcmp(tok, "riops") && val > 1) in tg_set_limit() 1708 else if (!strcmp(tok, "wiops") && val > 1) in tg_set_limit() 1710 else if (off == LIMIT_LOW && !strcmp(tok, "idle")) in tg_set_limit() 1712 else if (off == LIMIT_LOW && !strcmp(tok, "latency")) in tg_set_limit()
|
D | blk-iocost.c | 3225 int tok; in ioc_qos_write() local 3247 tok = match_token(p, qos_tokens, args); in ioc_qos_write() 3248 switch (tok) { in ioc_qos_write() 3258 qos[tok] = v * 100; in ioc_qos_write() 3264 qos[tok] = v; in ioc_qos_write() 3275 qos[tok] = clamp_t(s64, v * 100, in ioc_qos_write() 3391 int tok; in ioc_cost_model_write() local 3414 tok = match_token(p, i_lcoef_tokens, args); in ioc_cost_model_write() 3415 if (tok == NR_I_LCOEFS) in ioc_cost_model_write() 3419 u[tok] = v; in ioc_cost_model_write()
|
D | blk-iolatency.c | 841 char *p, *tok; in iolatency_set_limit() local 854 while ((tok = strsep(&p, " "))) { in iolatency_set_limit() 858 if (sscanf(tok, "%15[^=]=%20s", key, val) != 2) in iolatency_set_limit()
|
D | blk-cgroup.c | 1664 int tok; in blkcg_maybe_throttle_blkg() local 1701 tok = io_schedule_prepare(); in blkcg_maybe_throttle_blkg() 1707 io_schedule_finish(tok); in blkcg_maybe_throttle_blkg()
|