Home
last modified time | relevance | path

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

/block/
Dsed-opal.c551 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 …]
Dblk-throttle.c1674 char tok[27]; /* wiops=18446744073709551616 */ in tg_set_limit() local
1679 if (sscanf(ctx.body, "%26s%n", tok, &len) != 1) in tg_set_limit()
1681 if (tok[0] == '\0') in tg_set_limit()
1686 p = tok; in tg_set_limit()
1696 if (!strcmp(tok, "rbps") && val > 1) in tg_set_limit()
1698 else if (!strcmp(tok, "wbps") && val > 1) in tg_set_limit()
1700 else if (!strcmp(tok, "riops") && val > 1) in tg_set_limit()
1702 else if (!strcmp(tok, "wiops") && val > 1) in tg_set_limit()
1704 else if (off == LIMIT_LOW && !strcmp(tok, "idle")) in tg_set_limit()
1706 else if (off == LIMIT_LOW && !strcmp(tok, "latency")) in tg_set_limit()
Dblk-iocost.c3202 int tok; in ioc_qos_write() local
3224 tok = match_token(p, qos_tokens, args); in ioc_qos_write()
3225 switch (tok) { in ioc_qos_write()
3235 qos[tok] = v * 100; in ioc_qos_write()
3241 qos[tok] = v; in ioc_qos_write()
3252 qos[tok] = clamp_t(s64, v * 100, in ioc_qos_write()
3368 int tok; in ioc_cost_model_write() local
3391 tok = match_token(p, i_lcoef_tokens, args); in ioc_cost_model_write()
3392 if (tok == NR_I_LCOEFS) in ioc_cost_model_write()
3396 u[tok] = v; in ioc_cost_model_write()
Dblk-iolatency.c837 char *p, *tok; in iolatency_set_limit() local
850 while ((tok = strsep(&p, " "))) { in iolatency_set_limit()
854 if (sscanf(tok, "%15[^=]=%20s", key, val) != 2) in iolatency_set_limit()
Dblk-cgroup.c1667 int tok; in blkcg_maybe_throttle_blkg() local
1704 tok = io_schedule_prepare(); in blkcg_maybe_throttle_blkg()
1710 io_schedule_finish(tok); in blkcg_maybe_throttle_blkg()