Home
last modified time | relevance | path

Searched refs:auth (Results 1 – 25 of 61) sorted by relevance

123

/drivers/gpu/drm/amd/display/modules/hdcp/
Dhdcp_log.c57 HDCP_DDC_READ_TRACE(hdcp, "BKSV", hdcp->auth.msg.hdcp1.bksv, in mod_hdcp_log_ddc_trace()
58 sizeof(hdcp->auth.msg.hdcp1.bksv)); in mod_hdcp_log_ddc_trace()
59 HDCP_DDC_READ_TRACE(hdcp, "BCAPS", &hdcp->auth.msg.hdcp1.bcaps, in mod_hdcp_log_ddc_trace()
60 sizeof(hdcp->auth.msg.hdcp1.bcaps)); in mod_hdcp_log_ddc_trace()
62 (uint8_t *)&hdcp->auth.msg.hdcp1.bstatus, in mod_hdcp_log_ddc_trace()
63 sizeof(hdcp->auth.msg.hdcp1.bstatus)); in mod_hdcp_log_ddc_trace()
64 HDCP_DDC_WRITE_TRACE(hdcp, "AN", hdcp->auth.msg.hdcp1.an, in mod_hdcp_log_ddc_trace()
65 sizeof(hdcp->auth.msg.hdcp1.an)); in mod_hdcp_log_ddc_trace()
66 HDCP_DDC_WRITE_TRACE(hdcp, "AKSV", hdcp->auth.msg.hdcp1.aksv, in mod_hdcp_log_ddc_trace()
67 sizeof(hdcp->auth.msg.hdcp1.aksv)); in mod_hdcp_log_ddc_trace()
[all …]
Dhdcp_ddc.c249 hdcp->auth.msg.hdcp1.bksv, in mod_hdcp_read_bksv()
250 sizeof(hdcp->auth.msg.hdcp1.bksv)); in mod_hdcp_read_bksv()
256 &hdcp->auth.msg.hdcp1.bcaps, in mod_hdcp_read_bcaps()
257 sizeof(hdcp->auth.msg.hdcp1.bcaps)); in mod_hdcp_read_bcaps()
266 (uint8_t *)&hdcp->auth.msg.hdcp1.bstatus, in mod_hdcp_read_bstatus()
270 (uint8_t *)&hdcp->auth.msg.hdcp1.bstatus, in mod_hdcp_read_bstatus()
271 sizeof(hdcp->auth.msg.hdcp1.bstatus)); in mod_hdcp_read_bstatus()
278 (uint8_t *)&hdcp->auth.msg.hdcp1.r0p, in mod_hdcp_read_r0p()
279 sizeof(hdcp->auth.msg.hdcp1.r0p)); in mod_hdcp_read_r0p()
289 hdcp->auth.msg.hdcp1.ksvlist, in mod_hdcp_read_ksvlist()
[all …]
Dhdcp_psp.c37 in->session_handle = hdcp->auth.id; in hdcp2_message_init()
269 hdcp->auth.id = hdcp_cmd->out_msg.hdcp1_create_session.session_handle; in mod_hdcp_hdcp1_create_session()
274 hdcp->auth.msg.hdcp1.ainfo = hdcp_cmd->out_msg.hdcp1_create_session.ainfo_primary; in mod_hdcp_hdcp1_create_session()
275 memcpy(hdcp->auth.msg.hdcp1.aksv, hdcp_cmd->out_msg.hdcp1_create_session.aksv_primary, in mod_hdcp_hdcp1_create_session()
276 sizeof(hdcp->auth.msg.hdcp1.aksv)); in mod_hdcp_hdcp1_create_session()
277 memcpy(hdcp->auth.msg.hdcp1.an, hdcp_cmd->out_msg.hdcp1_create_session.an_primary, in mod_hdcp_hdcp1_create_session()
278 sizeof(hdcp->auth.msg.hdcp1.an)); in mod_hdcp_hdcp1_create_session()
297 hdcp_cmd->in_msg.hdcp1_destroy_session.session_handle = hdcp->auth.id; in mod_hdcp_hdcp1_destroy_session()
329 hdcp_cmd->in_msg.hdcp1_first_part_authentication.session_handle = hdcp->auth.id; in mod_hdcp_hdcp1_validate_rx()
331 memcpy(hdcp_cmd->in_msg.hdcp1_first_part_authentication.bksv_primary, hdcp->auth.msg.hdcp1.bksv, in mod_hdcp_hdcp1_validate_rx()
[all …]
Dhdcp2_execution.c35 is_ready = HDCP_2_2_DP_RXSTATUS_READY(hdcp->auth.msg.hdcp2.rxstatus_dp) ? 1 : 0; in check_receiver_id_list_ready()
37 is_ready = (HDCP_2_2_HDMI_RXSTATUS_READY(hdcp->auth.msg.hdcp2.rxstatus[1]) && in check_receiver_id_list_ready()
38 (HDCP_2_2_HDMI_RXSTATUS_MSG_SZ_HI(hdcp->auth.msg.hdcp2.rxstatus[1]) << 8 | in check_receiver_id_list_ready()
39 hdcp->auth.msg.hdcp2.rxstatus[0])) ? 1 : 0; in check_receiver_id_list_ready()
49 status = (hdcp->auth.msg.hdcp2.rxcaps_dp[0] == HDCP_2_2_RX_CAPS_VERSION_VAL) && in check_hdcp2_capable()
50 HDCP_2_2_DP_HDCP_CAPABLE(hdcp->auth.msg.hdcp2.rxcaps_dp[2]) ? in check_hdcp2_capable()
54 status = (hdcp->auth.msg.hdcp2.hdcp2version_hdmi & HDCP_2_2_HDMI_SUPPORT_MASK) ? in check_hdcp2_capable()
66 ret = HDCP_2_2_DP_RXSTATUS_REAUTH_REQ(hdcp->auth.msg.hdcp2.rxstatus_dp) ? in check_reauthentication_request()
70 ret = HDCP_2_2_HDMI_RXSTATUS_REAUTH_REQ(hdcp->auth.msg.hdcp2.rxstatus[1]) ? in check_reauthentication_request()
79 return HDCP_2_2_DP_RXSTATUS_LINK_FAILED(hdcp->auth.msg.hdcp2.rxstatus_dp) ? in check_link_integrity_failure_dp()
[all …]
Dhdcp1_execution.c34 memcpy(bksv, hdcp->auth.msg.hdcp1.bksv, sizeof(hdcp->auth.msg.hdcp1.bksv)); in validate_bksv()
48 return (hdcp->auth.msg.hdcp1.bstatus & DP_BSTATUS_READY) ? in check_ksv_ready()
51 return (hdcp->auth.msg.hdcp1.bcaps & DRM_HDCP_DDC_BCAPS_KSV_FIFO_READY) ? in check_ksv_ready()
58 return (hdcp->auth.msg.hdcp1.bcaps & DP_BCAPS_HDCP_CAPABLE) ? in check_hdcp_capable_dp()
67 status = (hdcp->auth.msg.hdcp1.bstatus & in check_r0p_available_dp()
80 return (hdcp->auth.msg.hdcp1.bstatus & in check_link_integrity_dp()
89 return (hdcp->auth.msg.hdcp1.bstatus & DP_BSTATUS_REAUTH_REQ) ? in check_no_reauthentication_request_dp()
99 status = DRM_HDCP_MAX_CASCADE_EXCEEDED(hdcp->auth.msg.hdcp1.binfo_dp >> 8) in check_no_max_cascade()
103 status = DRM_HDCP_MAX_CASCADE_EXCEEDED(hdcp->auth.msg.hdcp1.bstatus >> 8) in check_no_max_cascade()
114 status = DRM_HDCP_MAX_DEVICE_EXCEEDED(hdcp->auth.msg.hdcp1.binfo_dp) ? in check_no_max_devs()
[all …]
Dhdcp.c194 if (hdcp->auth.trans_input.hdcp1.create_session != UNKNOWN) { in reset_authentication()
203 memset(&hdcp->auth, 0, sizeof(struct mod_hdcp_authentication)); in reset_authentication()
207 if (hdcp->auth.trans_input.hdcp2.create_session == PASS) { in reset_authentication()
217 memset(&hdcp->auth, 0, sizeof(struct mod_hdcp_authentication)); in reset_authentication()
222 memset(&hdcp->auth, 0, sizeof(struct mod_hdcp_authentication)); in reset_authentication()
511 exec_status = execution(hdcp, &event_ctx, &hdcp->auth.trans_input); in mod_hdcp_process_event()
513 hdcp, &event_ctx, &hdcp->auth.trans_input, output); in mod_hdcp_process_event()
Dhdcp2_transition.c334 hdcp->auth.count.stream_management_retry_count++; in mod_hdcp_hdcp2_transition()
348 if (hdcp->auth.count.stream_management_retry_count > 10) { in mod_hdcp_hdcp2_transition()
351 hdcp->auth.count.stream_management_retry_count++; in mod_hdcp_hdcp2_transition()
657 if (hdcp->auth.count.stream_management_retry_count > 10) { in mod_hdcp_hdcp2_dp_transition()
660 hdcp->auth.count.stream_management_retry_count++; in mod_hdcp_hdcp2_dp_transition()
/drivers/target/iscsi/
Discsi_target_auth.c139 struct iscsi_node_auth *auth, in chap_server_open() argument
147 if (!(auth->naf_flags & NAF_USERID_SET) || in chap_server_open()
148 !(auth->naf_flags & NAF_PASSWORD_SET)) { in chap_server_open()
210 struct iscsi_node_auth *auth, in chap_server_compute_hash() argument
284 compare_len = strlen(auth->userid) + 1; in chap_server_compute_hash()
285 if (strncmp(chap_n, auth->userid, compare_len) != 0) { in chap_server_compute_hash()
340 ret = crypto_shash_update(desc, (char *)&auth->password, in chap_server_compute_hash()
341 strlen(auth->password)); in chap_server_compute_hash()
369 if (!auth->authenticate_target) { in chap_server_compute_hash()
454 ret = crypto_shash_update(desc, auth->password_mutual, in chap_server_compute_hash()
[all …]
Discsi_target_configfs.c341 struct iscsi_node_auth *auth = &nacl->node_auth; \
345 return snprintf(page, PAGE_SIZE, "%s\n", auth->name); \
353 struct iscsi_node_auth *auth = &nacl->node_auth; \
357 if (count >= sizeof(auth->name)) \
359 snprintf(auth->name, sizeof(auth->name), "%s", page); \
360 if (!strncmp("NULL", auth->name, 4)) \
361 auth->naf_flags &= ~flags; \
363 auth->naf_flags |= flags; \
365 if ((auth->naf_flags & NAF_USERID_IN_SET) && \
366 (auth->naf_flags & NAF_PASSWORD_IN_SET)) \
[all …]
Discsi_target_nego.c106 struct iscsi_node_auth *auth; in iscsi_handle_authentication() local
126 auth = &iscsi_tpg->tpg_demo_auth; in iscsi_handle_authentication()
131 auth = &iscsi_nacl->node_auth; in iscsi_handle_authentication()
137 auth = &iscsit_global->discovery_acl.node_auth; in iscsi_handle_authentication()
148 return chap_main_loop(conn, auth, in_buf, out_buf, in iscsi_handle_authentication()
/drivers/gpu/drm/
Ddrm_auth.c96 struct drm_auth *auth = data; in drm_getmagic() local
106 auth->magic = file_priv->magic; in drm_getmagic()
109 DRM_DEBUG("%u\n", auth->magic); in drm_getmagic()
117 struct drm_auth *auth = data; in drm_authmagic() local
120 DRM_DEBUG("%u\n", auth->magic); in drm_authmagic()
123 file = idr_find(&file_priv->master->magic_map, auth->magic); in drm_authmagic()
126 idr_replace(&file_priv->master->magic_map, NULL, auth->magic); in drm_authmagic()
/drivers/crypto/
Datmel-authenc.h32 void atmel_sha_authenc_free(struct atmel_sha_authenc_ctx *auth);
33 int atmel_sha_authenc_setkey(struct atmel_sha_authenc_ctx *auth,
37 struct atmel_sha_authenc_ctx *auth,
Datmel-sha.c2144 struct atmel_sha_authenc_ctx *auth; in atmel_sha_authenc_spawn() local
2184 auth = kzalloc(sizeof(*auth), GFP_KERNEL); in atmel_sha_authenc_spawn()
2185 if (!auth) { in atmel_sha_authenc_spawn()
2189 auth->tfm = tfm; in atmel_sha_authenc_spawn()
2191 return auth; in atmel_sha_authenc_spawn()
2200 void atmel_sha_authenc_free(struct atmel_sha_authenc_ctx *auth) in atmel_sha_authenc_free() argument
2202 if (auth) in atmel_sha_authenc_free()
2203 crypto_free_ahash(auth->tfm); in atmel_sha_authenc_free()
2204 kfree(auth); in atmel_sha_authenc_free()
2208 int atmel_sha_authenc_setkey(struct atmel_sha_authenc_ctx *auth, in atmel_sha_authenc_setkey() argument
[all …]
/drivers/thunderbolt/
Dicm.c2190 struct usb4_switch_nvm_auth *auth = data; in icm_usb4_switch_nvm_auth_complete() local
2191 struct icm *icm = auth->icm; in icm_usb4_switch_nvm_auth_complete()
2195 get_route(auth->reply.route_hi, auth->reply.route_lo), in icm_usb4_switch_nvm_auth_complete()
2196 auth->reply.hdr.flags, auth->reply.status); in icm_usb4_switch_nvm_auth_complete()
2201 icm->last_nvm_auth = auth; in icm_usb4_switch_nvm_auth_complete()
2207 struct usb4_switch_nvm_auth *auth; in icm_usb4_switch_nvm_authenticate() local
2212 auth = kzalloc(sizeof(*auth), GFP_KERNEL); in icm_usb4_switch_nvm_authenticate()
2213 if (!auth) in icm_usb4_switch_nvm_authenticate()
2216 auth->icm = icm; in icm_usb4_switch_nvm_authenticate()
2217 auth->request.hdr.code = ICM_USB4_SWITCH_OP; in icm_usb4_switch_nvm_authenticate()
[all …]
/drivers/net/wireless/quantenna/qtnfmac/
Devent.c561 struct cfg80211_external_auth_params auth = {0}; in qtnf_event_handle_external_auth() local
576 memcpy(auth.ssid.ssid, ev->ssid, len); in qtnf_event_handle_external_auth()
577 auth.ssid.ssid_len = len; in qtnf_event_handle_external_auth()
580 auth.key_mgmt_suite = le32_to_cpu(ev->akm_suite); in qtnf_event_handle_external_auth()
581 ether_addr_copy(auth.bssid, ev->bssid); in qtnf_event_handle_external_auth()
582 auth.action = ev->action; in qtnf_event_handle_external_auth()
585 vif->netdev->name, auth.bssid, auth.action, in qtnf_event_handle_external_auth()
586 auth.key_mgmt_suite); in qtnf_event_handle_external_auth()
588 ret = cfg80211_external_auth_request(vif->netdev, &auth, GFP_KERNEL); in qtnf_event_handle_external_auth()
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_softmac.c619 struct ieee80211_authentication *auth; in ieee80211_authentication_req() local
627 auth = skb_put(skb, sizeof(struct ieee80211_authentication)); in ieee80211_authentication_req()
630 auth->header.frame_ctl = cpu_to_le16(IEEE80211_STYPE_AUTH in ieee80211_authentication_req()
633 auth->header.frame_ctl = cpu_to_le16(IEEE80211_STYPE_AUTH); in ieee80211_authentication_req()
635 auth->header.duration_id = cpu_to_le16(0x013a); in ieee80211_authentication_req()
637 memcpy(auth->header.addr1, beacon->bssid, ETH_ALEN); in ieee80211_authentication_req()
638 memcpy(auth->header.addr2, ieee->dev->dev_addr, ETH_ALEN); in ieee80211_authentication_req()
639 memcpy(auth->header.addr3, beacon->bssid, ETH_ALEN); in ieee80211_authentication_req()
643 auth->algorithm = WLAN_AUTH_OPEN; in ieee80211_authentication_req()
645 auth->algorithm = cpu_to_le16(WLAN_AUTH_SHARED_KEY); in ieee80211_authentication_req()
[all …]
/drivers/net/wireless/ti/wl1251/
Dacx.c118 struct acx_sleep_auth *auth; in wl1251_acx_sleep_auth() local
123 auth = kzalloc(sizeof(*auth), GFP_KERNEL); in wl1251_acx_sleep_auth()
124 if (!auth) in wl1251_acx_sleep_auth()
127 auth->sleep_auth = sleep_auth; in wl1251_acx_sleep_auth()
129 ret = wl1251_cmd_configure(wl, ACX_SLEEP_AUTH, auth, sizeof(*auth)); in wl1251_acx_sleep_auth()
131 kfree(auth); in wl1251_acx_sleep_auth()
/drivers/staging/rtl8192e/
Drtllib_softmac.c775 struct rtllib_authentication *auth; in rtllib_authentication_req() local
787 auth = skb_put(skb, sizeof(struct rtllib_authentication)); in rtllib_authentication_req()
789 auth->header.frame_ctl = cpu_to_le16(RTLLIB_STYPE_AUTH); in rtllib_authentication_req()
791 auth->header.frame_ctl |= cpu_to_le16(RTLLIB_FCTL_WEP); in rtllib_authentication_req()
793 auth->header.duration_id = cpu_to_le16(0x013a); in rtllib_authentication_req()
794 ether_addr_copy(auth->header.addr1, beacon->bssid); in rtllib_authentication_req()
795 ether_addr_copy(auth->header.addr2, ieee->dev->dev_addr); in rtllib_authentication_req()
796 ether_addr_copy(auth->header.addr3, beacon->bssid); in rtllib_authentication_req()
798 auth->algorithm = WLAN_AUTH_OPEN; in rtllib_authentication_req()
800 auth->algorithm = cpu_to_le16(WLAN_AUTH_SHARED_KEY); in rtllib_authentication_req()
[all …]
/drivers/crypto/bcm/
Dcipher.c415 0, ctx->auth.alg, ctx->auth.mode, in handle_skcipher_req()
704 hash_parms.alg = ctx->auth.alg; in handle_ahash_req()
705 hash_parms.mode = ctx->auth.mode; in handle_ahash_req()
778 digestsize = spu->spu_digest_size(ctx->digestsize, ctx->auth.alg, in handle_ahash_req()
845 hash_parms.pad_len, ctx->auth.alg, in handle_ahash_req()
846 ctx->auth.mode, rctx->total_sent, in handle_ahash_req()
905 switch (ctx->auth.alg) { in spu_hmac_outer_hash()
958 if (ctx->auth.alg == HASH_ALG_MD5) { in ahash_req_done()
977 if (rctx->is_sw_hmac || ctx->auth.mode == HASH_MODE_HMAC) { in ahash_req_done()
979 atomic_inc(&iproc_priv.hmac_cnt[ctx->auth.alg]); in ahash_req_done()
[all …]
/drivers/crypto/qce/
Dcommon.c155 __be32 auth[SHA256_DIGEST_SIZE / sizeof(__be32)] = {0}; in qce_setup_regs_ahash() local
189 memcpy(auth, rctx->digest, digestsize); in qce_setup_regs_ahash()
191 qce_cpu_to_be32p_array(auth, rctx->digest, digestsize); in qce_setup_regs_ahash()
194 qce_write_array(qce, REG_AUTH_IV0, (u32 *)auth, iv_words); in qce_setup_regs_ahash()
/drivers/net/wireless/marvell/libertas/
Dcfg.c351 struct mrvl_ie_auth_type *auth = (void *) tlv; in lbs_add_auth_type_tlv() local
358 auth->header.type = cpu_to_le16(TLV_TYPE_AUTH_TYPE); in lbs_add_auth_type_tlv()
359 auth->header.len = cpu_to_le16(sizeof(*auth)-sizeof(auth->header)); in lbs_add_auth_type_tlv()
360 auth->auth = cpu_to_le16(lbs_auth_to_authtype(auth_type)); in lbs_add_auth_type_tlv()
361 return sizeof(*auth); in lbs_add_auth_type_tlv()
/drivers/net/wireless/atmel/
Datmel.c2845 struct auth_body auth; in send_authentication_request() local
2858 auth.alg = cpu_to_le16(system); in send_authentication_request()
2860 auth.status = 0; in send_authentication_request()
2861 auth.trans_seq = cpu_to_le16(priv->CurrentAuthentTransactionSeqNum); in send_authentication_request()
2866 auth.el_id = 16; /* challenge_text */ in send_authentication_request()
2867 auth.chall_text_len = challenge_len; in send_authentication_request()
2868 memcpy(auth.chall_text, challenge, challenge_len); in send_authentication_request()
2869 atmel_transmit_management_frame(priv, &header, (u8 *)&auth, 8 + challenge_len); in send_authentication_request()
2871 atmel_transmit_management_frame(priv, &header, (u8 *)&auth, 6); in send_authentication_request()
3025 struct auth_body *auth = (struct auth_body *)priv->rx_buf; in authenticate() local
[all …]
/drivers/net/wireless/ti/wlcore/
Dacx.c55 struct acx_sleep_auth *auth; in wl1271_acx_sleep_auth() local
60 auth = kzalloc(sizeof(*auth), GFP_KERNEL); in wl1271_acx_sleep_auth()
61 if (!auth) { in wl1271_acx_sleep_auth()
66 auth->sleep_auth = sleep_auth; in wl1271_acx_sleep_auth()
68 ret = wl1271_cmd_configure(wl, ACX_SLEEP_AUTH, auth, sizeof(*auth)); in wl1271_acx_sleep_auth()
77 kfree(auth); in wl1271_acx_sleep_auth()
/drivers/net/wireless/intersil/hostap/
Dhostap_80211.h23 } __packed auth; member
/drivers/platform/x86/dell/dell-wmi-sysman/
Dsysman.c94 char *auth = buffer + sizeof(u32) * 2; in populate_security_buffer() local
103 memcpy(auth, authentication, *seclen); in populate_security_buffer()

123