/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | kvm.c | 83 u32 token; member 93 u32 token) in _find_apf_task() 100 if (n->token == token) in _find_apf_task() 107 static bool kvm_async_pf_queue_task(u32 token, struct kvm_task_sleep_node *n) in kvm_async_pf_queue_task() argument 109 u32 key = hash_32(token, KVM_TASK_SLEEP_HASHBITS); in kvm_async_pf_queue_task() 114 e = _find_apf_task(b, token); in kvm_async_pf_queue_task() 123 n->token = token; in kvm_async_pf_queue_task() 133 * @token 92 _find_apf_task(struct kvm_task_sleep_head *b, u32 token) _find_apf_task() argument 138 kvm_async_pf_task_wait_schedule(u32 token) kvm_async_pf_task_wait_schedule() argument 187 kvm_async_pf_task_wake(u32 token) kvm_async_pf_task_wake() argument 254 __kvm_handle_async_pf(struct pt_regs *regs, u32 token) __kvm_handle_async_pf() argument 290 u32 token; DEFINE_IDTENTRY_SYSVEC() local [all...] |
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | kvm.c | 86 u32 token; member 96 u32 token) in _find_apf_task() 103 if (n->token == token) in _find_apf_task() 110 static bool kvm_async_pf_queue_task(u32 token, struct kvm_task_sleep_node *n) in kvm_async_pf_queue_task() argument 112 u32 key = hash_32(token, KVM_TASK_SLEEP_HASHBITS); in kvm_async_pf_queue_task() 117 e = _find_apf_task(b, token); in kvm_async_pf_queue_task() 126 n->token = token; in kvm_async_pf_queue_task() 136 * @token 95 _find_apf_task(struct kvm_task_sleep_head *b, u32 token) _find_apf_task() argument 141 kvm_async_pf_task_wait_schedule(u32 token) kvm_async_pf_task_wait_schedule() argument 190 kvm_async_pf_task_wake(u32 token) kvm_async_pf_task_wake() argument 256 __kvm_handle_async_pf(struct pt_regs *regs, u32 token) __kvm_handle_async_pf() argument 292 u32 token; DEFINE_IDTENTRY_SYSVEC() local [all...] |
/test/xts/device_attest_lite/services/core/network/ |
H A D | attest_coap.c | 51 static int32_t CoapCreateToken(uint8_t token[], uint8_t* tkl) in CoapCreateToken() argument 53 if (token == NULL || tkl == NULL || (*tkl > MAX_TOK_LEN)) { in CoapCreateToken() 61 token[i] = (uint8_t)(GetRandomNum() % (MAX_VALUE_ONE_BYTE + 1)); // create a random value, range: 0~255 in CoapCreateToken() 66 static int32_t CoapAddToken(CoapPacket* pkt, const CoapBuffer* token, CoapRWBuffer* buf) in CoapAddToken() argument 69 if (pkt == NULL || token == NULL || ((token->len != 0) && token->buffer == NULL) || in CoapAddToken() 75 if (token->len > MAX_TOK_LEN) { in CoapAddToken() 80 if ((buf->len + token->len) > buf->size) { in CoapAddToken() 85 pkt->tok.len = token in CoapAddToken() 378 CoapEncode(CoapPacket* pkt, const CoapPacketParam* param, const CoapBuffer* token, const CoapBuffer* payload, CoapRWBuffer* outBuf) CoapEncode() argument 448 uint8_t token[PKT_TOKEN_LEN] = {0}; CoapBuildMessage() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/resctrl/ |
H A D | resctrl_tests.c | 77 char *token; in main() local 81 token = strtok(optarg, ","); in main() 87 while (token) { in main() 88 if (!strncmp(token, MBM_STR, sizeof(MBM_STR))) { in main() 90 } else if (!strncmp(token, MBA_STR, sizeof(MBA_STR))) { in main() 92 } else if (!strncmp(token, CQM_STR, sizeof(CQM_STR))) { in main() 94 } else if (!strncmp(token, CAT_STR, sizeof(CAT_STR))) { in main() 101 token = strtok(NULL, ","); in main()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
H A D | nouveau_usif.c | 49 u64 token; member 84 if (WARN_ON(!(ntfy = (void *)(unsigned long)rep->v0.token))) in usif_notify() 102 rep->token = ntfy->token; in usif_notify() 150 ntfy->token = req->v0.token; in usif_notify_new() 152 req->v0.token = (unsigned long)(void *)ntfy; in usif_notify_new() 154 req->v0.token = ntfy->token; in usif_notify_new() 253 u64 token; member [all...] |
/third_party/node/deps/openssl/openssl/crypto/ts/ |
H A D | ts_rsp_verify.c | 25 PKCS7 *token, TS_TST_INFO *tst_info); 88 int TS_RESP_verify_signature(PKCS7 *token, STACK_OF(X509) *certs, in TS_RESP_verify_signature() argument 102 if (!token) { in TS_RESP_verify_signature() 106 if (!PKCS7_type_is_signed(token)) { in TS_RESP_verify_signature() 110 sinfos = PKCS7_get_signer_info(token); in TS_RESP_verify_signature() 116 if (PKCS7_get_detached(token)) { in TS_RESP_verify_signature() 125 signers = PKCS7_get0_signers(token, certs, 0); in TS_RESP_verify_signature() 131 + sk_X509_num(token->d.sign->cert)); in TS_RESP_verify_signature() 134 || !X509_add_certs(untrusted, token->d.sign->cert, 0)) in TS_RESP_verify_signature() 140 p7bio = PKCS7_dataInit(token, NUL in TS_RESP_verify_signature() 251 PKCS7 *token = response->token; TS_RESP_verify_response() local 269 TS_RESP_verify_token(TS_VERIFY_CTX *ctx, PKCS7 *token) TS_RESP_verify_token() argument 292 int_ts_RESP_verify_token(TS_VERIFY_CTX *ctx, PKCS7 *token, TS_TST_INFO *tst_info) int_ts_RESP_verify_token() argument [all...] |
/third_party/openssl/crypto/ts/ |
H A D | ts_rsp_verify.c | 25 PKCS7 *token, TS_TST_INFO *tst_info); 88 int TS_RESP_verify_signature(PKCS7 *token, STACK_OF(X509) *certs, in TS_RESP_verify_signature() argument 102 if (!token) { in TS_RESP_verify_signature() 106 if (!PKCS7_type_is_signed(token)) { in TS_RESP_verify_signature() 110 sinfos = PKCS7_get_signer_info(token); in TS_RESP_verify_signature() 116 if (PKCS7_get_detached(token)) { in TS_RESP_verify_signature() 125 signers = PKCS7_get0_signers(token, certs, 0); in TS_RESP_verify_signature() 131 + sk_X509_num(token->d.sign->cert)); in TS_RESP_verify_signature() 134 || !X509_add_certs(untrusted, token->d.sign->cert, 0)) in TS_RESP_verify_signature() 140 p7bio = PKCS7_dataInit(token, NUL in TS_RESP_verify_signature() 251 PKCS7 *token = response->token; TS_RESP_verify_response() local 269 TS_RESP_verify_token(TS_VERIFY_CTX *ctx, PKCS7 *token) TS_RESP_verify_token() argument 292 int_ts_RESP_verify_token(TS_VERIFY_CTX *ctx, PKCS7 *token, TS_TST_INFO *tst_info) int_ts_RESP_verify_token() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
H A D | rrm.c | 29 wpa_printf(MSG_DEBUG, "RRM: LCI request (token %u) timed out", in hostapd_lci_rep_timeout_handler() 35 static void hostapd_handle_lci_report(struct hostapd_data *hapd, u8 token, in hostapd_handle_lci_report() argument 38 if (!hapd->lci_req_active || hapd->lci_req_token != token) { in hostapd_handle_lci_report() 39 wpa_printf(MSG_DEBUG, "Unexpected LCI report, token %u", token); in hostapd_handle_lci_report() 45 wpa_printf(MSG_DEBUG, "LCI report token %u len %zu", token, len); in hostapd_handle_lci_report() 53 wpa_printf(MSG_DEBUG, "RRM: Range request (token %u) timed out", in hostapd_range_rep_timeout_handler() 59 static void hostapd_handle_range_report(struct hostapd_data *hapd, u8 token, in hostapd_handle_range_report() argument 62 if (!hapd->range_req_active || hapd->range_req_token != token) { in hostapd_handle_range_report() 74 hostapd_handle_beacon_report(struct hostapd_data *hapd, const u8 *addr, u8 token, u8 rep_mode, const u8 *pos, size_t len) hostapd_handle_beacon_report() argument 100 u8 token, rep_mode; hostapd_handle_radio_msmt_report() local 286 u8 token; hostapd_handle_nei_report_req() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | ap_rrm.c | 29 wpa_printf(MSG_DEBUG, "RRM: LCI request (token %u) timed out", in hostapd_lci_rep_timeout_handler() 35 static void hostapd_handle_lci_report(struct hostapd_data *hapd, u8 token, in hostapd_handle_lci_report() argument 38 if (!hapd->lci_req_active || hapd->lci_req_token != token) { in hostapd_handle_lci_report() 39 wpa_printf(MSG_DEBUG, "Unexpected LCI report, token %u", token); in hostapd_handle_lci_report() 45 wpa_printf(MSG_DEBUG, "LCI report token %u len %zu", token, len); in hostapd_handle_lci_report() 53 wpa_printf(MSG_DEBUG, "RRM: Range request (token %u) timed out", in hostapd_range_rep_timeout_handler() 59 static void hostapd_handle_range_report(struct hostapd_data *hapd, u8 token, in hostapd_handle_range_report() argument 62 if (!hapd->range_req_active || hapd->range_req_token != token) { in hostapd_handle_range_report() 74 hostapd_handle_beacon_report(struct hostapd_data *hapd, const u8 *addr, u8 token, u8 rep_mode, const u8 *pos, size_t len) hostapd_handle_beacon_report() argument 100 u8 token, rep_mode; hostapd_handle_radio_msmt_report() local 286 u8 token; hostapd_handle_nei_report_req() local [all...] |
/kernel/linux/linux-5.10/drivers/char/ |
H A D | powernv-op-panel.c | 53 int rc, token; in __op_panel_update_display() local 55 token = opal_async_get_token_interruptible(); in __op_panel_update_display() 56 if (token < 0) { in __op_panel_update_display() 57 if (token != -ERESTARTSYS) in __op_panel_update_display() 58 pr_debug("Couldn't get OPAL async token [token=%d]\n", in __op_panel_update_display() 59 token); in __op_panel_update_display() 60 return token; in __op_panel_update_display() 63 rc = opal_write_oppanel_async(token, oppanel_lines, num_lines); in __op_panel_update_display() 66 rc = opal_async_wait_response(token, in __op_panel_update_display() [all...] |
/kernel/linux/linux-5.10/tools/wmi/ |
H A D | dell-smbios-example.c | 7 * - Simple activation of a token 53 static int find_token(__u16 token, __u16 *location, __u16 *value) in find_token() argument 61 ret = sprintf(value_sysfs, "%s/%04x_value", token_sysfs, token); in find_token() 75 ret = sprintf(location_sysfs, "%s/%04x_location", token_sysfs, token); in find_token() 109 static int query_token(__u16 token, struct dell_wmi_smbios_buffer *buffer) in query_token() argument 115 ret = find_token(token, &location, &value); in query_token() 117 printf("unable to find token %04x\n", token); in query_token() 124 __u16 token) in activate_token() 130 ret = find_token(token, in activate_token() 123 activate_token(struct dell_wmi_smbios_buffer *buffer, __u16 token) activate_token() argument [all...] |
/kernel/linux/linux-6.6/drivers/char/ |
H A D | powernv-op-panel.c | 53 int rc, token; in __op_panel_update_display() local 55 token = opal_async_get_token_interruptible(); in __op_panel_update_display() 56 if (token < 0) { in __op_panel_update_display() 57 if (token != -ERESTARTSYS) in __op_panel_update_display() 58 pr_debug("Couldn't get OPAL async token [token=%d]\n", in __op_panel_update_display() 59 token); in __op_panel_update_display() 60 return token; in __op_panel_update_display() 63 rc = opal_write_oppanel_async(token, oppanel_lines, num_lines); in __op_panel_update_display() 66 rc = opal_async_wait_response(token, in __op_panel_update_display() [all...] |
/kernel/linux/linux-6.6/tools/wmi/ |
H A D | dell-smbios-example.c | 7 * - Simple activation of a token 53 static int find_token(__u16 token, __u16 *location, __u16 *value) in find_token() argument 61 ret = sprintf(value_sysfs, "%s/%04x_value", token_sysfs, token); in find_token() 75 ret = sprintf(location_sysfs, "%s/%04x_location", token_sysfs, token); in find_token() 109 static int query_token(__u16 token, struct dell_wmi_smbios_buffer *buffer) in query_token() argument 115 ret = find_token(token, &location, &value); in query_token() 117 printf("unable to find token %04x\n", token); in query_token() 124 __u16 token) in activate_token() 130 ret = find_token(token, in activate_token() 123 activate_token(struct dell_wmi_smbios_buffer *buffer, __u16 token) activate_token() argument [all...] |
/third_party/curl/lib/ |
H A D | curl_trc.c | 186 char *token, *tok_buf, *tmp; in Curl_trc_opt() local 194 token = strtok_r(tmp, ", ", &tok_buf); in Curl_trc_opt() 195 while(token) { in Curl_trc_opt() 196 switch(*token) { in Curl_trc_opt() 199 ++token; in Curl_trc_opt() 203 ++token; in Curl_trc_opt() 210 if(strcasecompare(token, "all")) { in Curl_trc_opt() 213 else if(strcasecompare(token, cf_types[i]->name)) { in Curl_trc_opt() 218 token = strtok_r(NULL, ", ", &tok_buf); in Curl_trc_opt()
|
/third_party/python/Lib/lib2to3/fixes/ |
H A D | fix_tuple_params.py | 23 from ..pgen2 import token namespace 29 stmt.children[0].type == token.STRING 55 if suite[0].children[1].type == token.INDENT: 62 end = pytree.Leaf(token.INDENT, "") 116 if inner.type == token.NAME: 129 if n.type == token.NAME and n.value in to_index: 140 if node.type in (syms.vfplist, token.NAME): 153 elif node.type == token.NAME: 155 return [find_params(c) for c in node.children if c.type != token.COMMA]
|
H A D | fix_isinstance.py | 13 from ..fixer_util import token namespace 36 if arg.type == token.NAME and arg.value in names_inserted: 37 if idx < len(args) - 1 and args[idx + 1].type == token.COMMA: 42 if arg.type == token.NAME: 44 if new_args and new_args[-1].type == token.COMMA:
|
/kernel/linux/linux-5.10/drivers/xen/xenbus/ |
H A D | xenbus_xs.c | 658 static int xs_watch(const char *path, const char *token) in xs_watch() argument 664 iov[1].iov_base = (void *)token; in xs_watch() 665 iov[1].iov_len = strlen(token) + 1; in xs_watch() 671 static int xs_unwatch(const char *path, const char *token) in xs_unwatch() argument 677 iov[1].iov_base = (char *)token; in xs_unwatch() 678 iov[1].iov_len = strlen(token) + 1; in xs_unwatch() 684 static struct xenbus_watch *find_watch(const char *token) in find_watch() argument 688 cmp = (void *)simple_strtoul(token, NULL, 16); in find_watch() 704 event->token = (const char *)strchr(event->body, '\0') + 1; in xs_watch_msg() 707 event->handle = find_watch(event->token); in xs_watch_msg() 767 char token[sizeof(watch) * 2 + 1]; register_xenbus_watch() local 798 char token[sizeof(watch) * 2 + 1]; unregister_xenbus_watch() local 850 char token[sizeof(watch) * 2 + 1]; xs_resume() local [all...] |
/kernel/linux/linux-6.6/drivers/xen/xenbus/ |
H A D | xenbus_xs.c | 658 static int xs_watch(const char *path, const char *token) in xs_watch() argument 664 iov[1].iov_base = (void *)token; in xs_watch() 665 iov[1].iov_len = strlen(token) + 1; in xs_watch() 671 static int xs_unwatch(const char *path, const char *token) in xs_unwatch() argument 677 iov[1].iov_base = (char *)token; in xs_unwatch() 678 iov[1].iov_len = strlen(token) + 1; in xs_unwatch() 684 static struct xenbus_watch *find_watch(const char *token) in find_watch() argument 688 cmp = (void *)simple_strtoul(token, NULL, 16); in find_watch() 704 event->token = (const char *)strchr(event->body, '\0') + 1; in xs_watch_msg() 707 event->handle = find_watch(event->token); in xs_watch_msg() 767 char token[sizeof(watch) * 2 + 1]; register_xenbus_watch() local 798 char token[sizeof(watch) * 2 + 1]; unregister_xenbus_watch() local 850 char token[sizeof(watch) * 2 + 1]; xs_resume() local [all...] |
/third_party/glslang/glslang/HLSL/ |
H A D | hlslGrammar.cpp | 50 // The next token, yet to be "accepted" is always sitting in 'token'. 52 // in the rule will have been consumed, and none left in 'token'. 71 parseContext.error(token.loc, "Expected", syntax, ""); in expected() 76 parseContext.error(token.loc, "Unimplemented", error, ""); in unimplemented() 83 // Only process the next token if it is an identifier. 89 idToken = token; in acceptIdentifier() 97 idToken = token; in acceptIdentifier() 115 token.string = NewPoolTString(idString); in acceptIdentifier() 116 token in acceptIdentifier() [all...] |
/test/xts/device_attest/services/oem_adapter/src/ |
H A D | device_attest_oem_adapter.c | 78 int32_t OEMReadToken(char *token, uint32_t len) in OEMReadToken() argument 80 if (token == NULL || len == 0) { in OEMReadToken() 92 (void)memcpy_s(token, len, tokenWithFlagA, len); in OEMReadToken() 96 (void)memcpy_s(token, len, tokenWithFlagB, len); in OEMReadToken() 103 (void)memcpy_s(token, len, tokenWithFlagA, len); in OEMReadToken() 106 (void)memcpy_s(token, len, tokenWithFlagB, len); in OEMReadToken() 112 int32_t OEMWriteToken(const char *token, uint32_t len) in OEMWriteToken() argument 114 if (token == NULL || len == 0) { in OEMWriteToken() 123 if ((memcpy_s(tokenWithFlagA, TOKEN_WITH_FLAG_SIZE, token, len) != 0) || in OEMWriteToken() 136 if ((memcpy_s(tokenWithFlagB, TOKEN_WITH_FLAG_SIZE, token, le in OEMWriteToken() [all...] |
/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | uhci-hcd.h | 227 #define td_token(uhci, td) hc32_to_cpu((uhci), (td)->token) 238 #define uhci_expected_length(token) ((((token) >> TD_TOKEN_EXPLEN_SHIFT) + \ 240 #define uhci_toggle(token) (((token) >> TD_TOKEN_TOGGLE_SHIFT) & 1) 241 #define uhci_endpoint(token) (((token) >> 15) & 0xf) 242 #define uhci_devaddr(token) (((token) >> TD_TOKEN_DEVADDR_SHIFT) & 0x7f) 243 #define uhci_devep(token) (((toke 262 __hc32 token; global() member [all...] |
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | uhci-hcd.h | 227 #define td_token(uhci, td) hc32_to_cpu((uhci), (td)->token) 238 #define uhci_expected_length(token) ((((token) >> TD_TOKEN_EXPLEN_SHIFT) + \ 240 #define uhci_toggle(token) (((token) >> TD_TOKEN_TOGGLE_SHIFT) & 1) 241 #define uhci_endpoint(token) (((token) >> 15) & 0xf) 242 #define uhci_devaddr(token) (((token) >> TD_TOKEN_DEVADDR_SHIFT) & 0x7f) 243 #define uhci_devep(token) (((toke 262 __hc32 token; global() member [all...] |
/kernel/linux/linux-6.6/net/mptcp/ |
H A D | pm_userspace.c | 162 struct nlattr *token = info->attrs[MPTCP_PM_ATTR_TOKEN]; in mptcp_nl_cmd_announce() local 169 if (!addr || !token) { in mptcp_nl_cmd_announce() 174 token_val = nla_get_u32(token); in mptcp_nl_cmd_announce() 178 NL_SET_ERR_MSG_ATTR(info->extack, token, "invalid token"); in mptcp_nl_cmd_announce() 259 struct nlattr *token = info->attrs[MPTCP_PM_ATTR_TOKEN]; in mptcp_nl_cmd_remove() local 269 if (!id || !token) { in mptcp_nl_cmd_remove() 275 token_val = nla_get_u32(token); in mptcp_nl_cmd_remove() 279 NL_SET_ERR_MSG_ATTR(info->extack, token, "invalid token"); in mptcp_nl_cmd_remove() 327 struct nlattr *token = info->attrs[MPTCP_PM_ATTR_TOKEN]; mptcp_nl_cmd_sf_create() local 451 struct nlattr *token = info->attrs[MPTCP_PM_ATTR_TOKEN]; mptcp_nl_cmd_sf_destroy() local 536 mptcp_userspace_pm_set_flags(struct net *net, struct nlattr *token, struct mptcp_pm_addr_entry *loc, struct mptcp_pm_addr_entry *rem, u8 bkup) mptcp_userspace_pm_set_flags() argument [all...] |
/kernel/linux/linux-5.10/arch/powerpc/sysdev/ |
H A D | dcr.c | 182 dcr_host_mmio_t ret = { .token = NULL, .stride = 0, .base = dcr_n }; in dcr_map_mmio() 194 ret.token = ioremap(addr, dcr_c * ret.stride); in dcr_map_mmio() 195 if (ret.token == NULL) in dcr_map_mmio() 198 ret.token, ret.token - dcr_n * ret.stride); in dcr_map_mmio() 199 ret.token -= dcr_n * ret.stride; in dcr_map_mmio() 208 if (h.token == NULL) in dcr_unmap_mmio() 210 h.token += host.base * h.stride; in dcr_unmap_mmio() 211 iounmap(h.token); in dcr_unmap_mmio() 212 h.token in dcr_unmap_mmio() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/sysdev/ |
H A D | dcr.c | 182 dcr_host_mmio_t ret = { .token = NULL, .stride = 0, .base = dcr_n }; in dcr_map_mmio() 194 ret.token = ioremap(addr, dcr_c * ret.stride); in dcr_map_mmio() 195 if (ret.token == NULL) in dcr_map_mmio() 198 ret.token, ret.token - dcr_n * ret.stride); in dcr_map_mmio() 199 ret.token -= dcr_n * ret.stride; in dcr_map_mmio() 208 if (h.token == NULL) in dcr_unmap_mmio() 210 h.token += host.base * h.stride; in dcr_unmap_mmio() 211 iounmap(h.token); in dcr_unmap_mmio() 212 h.token in dcr_unmap_mmio() [all...] |