Lines Matching refs:n
557 u8 n; in add_token_u64() local
574 n = number >> (len * 8); in add_token_u64()
575 add_token_u8(err, cmd, n); in add_token_u64()
689 int n) in response_get_token() argument
693 if (n >= resp->num) { in response_get_token()
695 n, resp->num); in response_get_token()
699 tok = &resp->toks[n]; in response_get_token()
871 static size_t response_get_string(const struct parsed_resp *resp, int n, in response_get_string() argument
880 if (n >= resp->num) { in response_get_string()
882 resp->num, n); in response_get_string()
886 if (resp->toks[n].type != OPAL_DTA_TOKENID_BYTESTRING) { in response_get_string()
891 *store = resp->toks[n].pos + 1; in response_get_string()
892 return resp->toks[n].len - 1; in response_get_string()
895 static u64 response_get_u64(const struct parsed_resp *resp, int n) in response_get_u64() argument
902 if (n >= resp->num) { in response_get_u64()
904 resp->num, n); in response_get_u64()
908 if (resp->toks[n].type != OPAL_DTA_TOKENID_UINT) { in response_get_u64()
910 resp->toks[n].type); in response_get_u64()
914 if (!(resp->toks[n].width == OPAL_WIDTH_TINY || in response_get_u64()
915 resp->toks[n].width == OPAL_WIDTH_SHORT)) { in response_get_u64()
917 resp->toks[n].width); in response_get_u64()
921 return resp->toks[n].stored.u; in response_get_u64()