Home
last modified time | relevance | path

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

/block/
Dsed-opal.c513 static void add_token_u8(int *err, struct opal_dev *cmd, u8 tok) in add_token_u8() argument
522 cmd->cmd[cmd->pos++] = tok; in add_token_u8()
691 const struct opal_resp_tok *tok; in response_get_token() local
699 tok = &resp->toks[n]; in response_get_token()
700 if (tok->len == 0) { in response_get_token()
705 return tok; in response_get_token()
708 static ssize_t response_parse_tiny(struct opal_resp_tok *tok, in response_parse_tiny() argument
711 tok->pos = pos; in response_parse_tiny()
712 tok->len = 1; in response_parse_tiny()
713 tok->width = OPAL_WIDTH_TINY; in response_parse_tiny()
[all …]
Dblk-throttle.c1618 char tok[27]; /* wiops=18446744073709551616 */ in tg_set_limit() local
1623 if (sscanf(ctx.body, "%26s%n", tok, &len) != 1) in tg_set_limit()
1625 if (tok[0] == '\0') in tg_set_limit()
1630 p = tok; in tg_set_limit()
1640 if (!strcmp(tok, "rbps")) in tg_set_limit()
1642 else if (!strcmp(tok, "wbps")) in tg_set_limit()
1644 else if (!strcmp(tok, "riops")) in tg_set_limit()
1646 else if (!strcmp(tok, "wiops")) in tg_set_limit()
1648 else if (off == LIMIT_LOW && !strcmp(tok, "idle")) in tg_set_limit()
1650 else if (off == LIMIT_LOW && !strcmp(tok, "latency")) in tg_set_limit()