/drivers/staging/wfx/ |
D | key.c | 34 struct ieee80211_key_conf *key, u8 *peer_addr) in fill_wep_pair() argument 36 WARN(key->keylen > sizeof(msg->key_data), "inconsistent data"); in fill_wep_pair() 37 msg->key_length = key->keylen; in fill_wep_pair() 38 memcpy(msg->key_data, key->key, key->keylen); in fill_wep_pair() 44 struct ieee80211_key_conf *key) in fill_wep_group() argument 46 WARN(key->keylen > sizeof(msg->key_data), "inconsistent data"); in fill_wep_group() 47 msg->key_id = key->keyidx; in fill_wep_group() 48 msg->key_length = key->keylen; in fill_wep_group() 49 memcpy(msg->key_data, key->key, key->keylen); in fill_wep_group() 54 struct ieee80211_key_conf *key, u8 *peer_addr) in fill_tkip_pair() argument [all …]
|
/drivers/s390/crypto/ |
D | zcrypt_cca_key.h | 115 } __packed *key = p; in zcrypt_type6_mex_key_en() local 128 memset(key, 0, sizeof(*key)); in zcrypt_type6_mex_key_en() 130 key->pubHdr = static_pub_hdr; in zcrypt_type6_mex_key_en() 131 key->pubSec = static_pub_sec; in zcrypt_type6_mex_key_en() 134 temp = key->exponent; in zcrypt_type6_mex_key_en() 149 key->pubSec.modulus_bit_len = 8 * mex->inputdatalength; in zcrypt_type6_mex_key_en() 150 key->pubSec.modulus_byte_len = mex->inputdatalength; in zcrypt_type6_mex_key_en() 151 key->pubSec.exponent_len = mex->inputdatalength - i; in zcrypt_type6_mex_key_en() 152 key->pubSec.section_length = sizeof(key->pubSec) + in zcrypt_type6_mex_key_en() 154 key->pubHdr.token_length = in zcrypt_type6_mex_key_en() [all …]
|
/drivers/nvdimm/ |
D | security.c | 27 static void *key_data(struct key *key) in key_data() argument 29 struct encrypted_key_payload *epayload = dereference_key_locked(key); in key_data() 31 lockdep_assert_held_read(&key->sem); in key_data() 36 static void nvdimm_put_key(struct key *key) in nvdimm_put_key() argument 38 if (!key) in nvdimm_put_key() 41 up_read(&key->sem); in nvdimm_put_key() 42 key_put(key); in nvdimm_put_key() 50 static struct key *nvdimm_request_key(struct nvdimm *nvdimm) in nvdimm_request_key() 52 struct key *key = NULL; in nvdimm_request_key() local 58 key = request_key(&key_type_encrypted, desc, ""); in nvdimm_request_key() [all …]
|
/drivers/input/ |
D | sparse-keymap.c | 25 struct key_entry *key; in sparse_keymap_get_key_index() local 28 for (key = dev->keycode; key->type != KE_END; key++) { in sparse_keymap_get_key_index() 29 if (key->type == KE_KEY) { in sparse_keymap_get_key_index() 30 if (key == k) in sparse_keymap_get_key_index() 42 struct key_entry *key; in sparse_keymap_entry_by_index() local 45 for (key = dev->keycode; key->type != KE_END; key++) in sparse_keymap_entry_by_index() 46 if (key->type == KE_KEY) in sparse_keymap_entry_by_index() 48 return key; in sparse_keymap_entry_by_index() 64 struct key_entry *key; in sparse_keymap_entry_from_scancode() local 66 for (key = dev->keycode; key->type != KE_END; key++) in sparse_keymap_entry_from_scancode() [all …]
|
/drivers/crypto/qat/qat_common/ |
D | qat_crypto.c | 121 char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES]; in qat_crypto_dev_config() local 139 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_BANK_NUM, i); in qat_crypto_dev_config() 141 key, (void *)&val, ADF_DEC)) in qat_crypto_dev_config() 144 snprintf(key, sizeof(key), ADF_CY "%d" ADF_ETRMGR_CORE_AFFINITY, in qat_crypto_dev_config() 147 key, (void *)&val, ADF_DEC)) in qat_crypto_dev_config() 150 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_SIZE, i); in qat_crypto_dev_config() 153 key, (void *)&val, ADF_DEC)) in qat_crypto_dev_config() 157 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_SIZE, i); in qat_crypto_dev_config() 159 key, (void *)&val, ADF_DEC)) in qat_crypto_dev_config() 163 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_TX, i); in qat_crypto_dev_config() [all …]
|
/drivers/staging/vt6656/ |
D | key.c | 37 struct ieee80211_key_conf *key, u32 key_type, in vnt_set_keymode() argument 45 u8 key_inx = key->keyidx; in vnt_set_keymode() 58 key->hw_key_idx = i; in vnt_set_keymode() 59 entry = key->hw_key_idx; in vnt_set_keymode() 69 key->hw_key_idx = entry; in vnt_set_keymode() 88 if (key->keylen == WLAN_KEY_LEN_WEP40) in vnt_set_keymode() 89 key->key[15] &= 0x7f; in vnt_set_keymode() 90 if (key->keylen == WLAN_KEY_LEN_WEP104) in vnt_set_keymode() 91 key->key[15] |= 0x80; in vnt_set_keymode() 95 key_inx, bssid, key->key); in vnt_set_keymode() [all …]
|
/drivers/gpu/drm/ |
D | drm_hashtab.c | 63 void drm_ht_verbose_list(struct drm_open_hash *ht, unsigned long key) in drm_ht_verbose_list() argument 70 hashed_key = hash_long(key, ht->order); in drm_ht_verbose_list() 71 DRM_DEBUG("Key is 0x%08lx, Hashed key is 0x%08x\n", key, hashed_key); in drm_ht_verbose_list() 74 DRM_DEBUG("count %d, key: 0x%08lx\n", count++, entry->key); in drm_ht_verbose_list() 78 unsigned long key) in drm_ht_find_key() argument 84 hashed_key = hash_long(key, ht->order); in drm_ht_find_key() 87 if (entry->key == key) in drm_ht_find_key() 89 if (entry->key > key) in drm_ht_find_key() 96 unsigned long key) in drm_ht_find_key_rcu() argument 102 hashed_key = hash_long(key, ht->order); in drm_ht_find_key_rcu() [all …]
|
/drivers/staging/vt6655/ |
D | key.c | 21 struct ieee80211_key_conf *key, u32 key_type, in vnt_set_keymode() argument 29 u8 key_inx = key->keyidx; in vnt_set_keymode() 42 key->hw_key_idx = i; in vnt_set_keymode() 43 entry = key->hw_key_idx; in vnt_set_keymode() 53 key->hw_key_idx = entry; in vnt_set_keymode() 79 if (key->keylen == WLAN_KEY_LEN_WEP40) in vnt_set_keymode() 80 key->key[15] &= 0x7f; in vnt_set_keymode() 81 if (key->keylen == WLAN_KEY_LEN_WEP104) in vnt_set_keymode() 82 key->key[15] |= 0x80; in vnt_set_keymode() 86 bssid, (u32 *)key->key, priv->byLocalID); in vnt_set_keymode() [all …]
|
/drivers/crypto/caam/ |
D | caampkc.c | 61 struct caam_rsa_key *key = &ctx->key; in rsa_pub_unmap() local 64 dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE); in rsa_pub_unmap() 65 dma_unmap_single(dev, pdb->e_dma, key->e_sz, DMA_TO_DEVICE); in rsa_pub_unmap() 73 struct caam_rsa_key *key = &ctx->key; in rsa_priv_f1_unmap() local 76 dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE); in rsa_priv_f1_unmap() 77 dma_unmap_single(dev, pdb->d_dma, key->d_sz, DMA_TO_DEVICE); in rsa_priv_f1_unmap() 85 struct caam_rsa_key *key = &ctx->key; in rsa_priv_f2_unmap() local 87 size_t p_sz = key->p_sz; in rsa_priv_f2_unmap() 88 size_t q_sz = key->q_sz; in rsa_priv_f2_unmap() 90 dma_unmap_single(dev, pdb->d_dma, key->d_sz, DMA_TO_DEVICE); in rsa_priv_f2_unmap() [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum2_mr_tcam.c | 143 struct mlxsw_sp_mr_route_key *key) in mlxsw_sp2_mr_tcam_rule_parse4() argument 146 (char *) &key->source.addr4, in mlxsw_sp2_mr_tcam_rule_parse4() 147 (char *) &key->source_mask.addr4, 4); in mlxsw_sp2_mr_tcam_rule_parse4() 149 (char *) &key->group.addr4, in mlxsw_sp2_mr_tcam_rule_parse4() 150 (char *) &key->group_mask.addr4, 4); in mlxsw_sp2_mr_tcam_rule_parse4() 155 struct mlxsw_sp_mr_route_key *key) in mlxsw_sp2_mr_tcam_rule_parse6() argument 158 &key->source.addr6.s6_addr[0x0], in mlxsw_sp2_mr_tcam_rule_parse6() 159 &key->source_mask.addr6.s6_addr[0x0], 4); in mlxsw_sp2_mr_tcam_rule_parse6() 161 &key->source.addr6.s6_addr[0x4], in mlxsw_sp2_mr_tcam_rule_parse6() 162 &key->source_mask.addr6.s6_addr[0x4], 4); in mlxsw_sp2_mr_tcam_rule_parse6() [all …]
|
D | spectrum1_mr_tcam.c | 30 struct mlxsw_sp_mr_route_key *key, in mlxsw_sp1_mr_tcam_route_replace() argument 35 switch (key->proto) { in mlxsw_sp1_mr_tcam_route_replace() 38 key->vrid, in mlxsw_sp1_mr_tcam_route_replace() 40 ntohl(key->group.addr4), in mlxsw_sp1_mr_tcam_route_replace() 41 ntohl(key->group_mask.addr4), in mlxsw_sp1_mr_tcam_route_replace() 42 ntohl(key->source.addr4), in mlxsw_sp1_mr_tcam_route_replace() 43 ntohl(key->source_mask.addr4), in mlxsw_sp1_mr_tcam_route_replace() 48 key->vrid, in mlxsw_sp1_mr_tcam_route_replace() 50 key->group.addr6, in mlxsw_sp1_mr_tcam_route_replace() 51 key->group_mask.addr6, in mlxsw_sp1_mr_tcam_route_replace() [all …]
|
/drivers/tty/ |
D | sysrq.c | 103 static void sysrq_handle_loglevel(int key) in sysrq_handle_loglevel() argument 107 i = key - '0'; in sysrq_handle_loglevel() 120 static void sysrq_handle_SAK(int key) in sysrq_handle_SAK() argument 136 static void sysrq_handle_unraw(int key) in sysrq_handle_unraw() argument 151 static void sysrq_handle_crash(int key) in sysrq_handle_crash() argument 167 static void sysrq_handle_reboot(int key) in sysrq_handle_reboot() argument 182 static void sysrq_handle_sync(int key) in sysrq_handle_sync() argument 193 static void sysrq_handle_show_timers(int key) in sysrq_handle_show_timers() argument 204 static void sysrq_handle_mountro(int key) in sysrq_handle_mountro() argument 216 static void sysrq_handle_showlocks(int key) in sysrq_handle_showlocks() argument [all …]
|
/drivers/staging/rtl8192e/ |
D | rtllib_crypt_ccmp.c | 31 u8 key[CCMP_TK_LEN]; member 155 struct rtllib_ccmp_data *key = priv; in rtllib_ccmp_encrypt() local 172 key->tx_pn[i]++; in rtllib_ccmp_encrypt() 173 if (key->tx_pn[i] != 0) in rtllib_ccmp_encrypt() 178 *pos++ = key->tx_pn[5]; in rtllib_ccmp_encrypt() 179 *pos++ = key->tx_pn[4]; in rtllib_ccmp_encrypt() 181 *pos++ = (key->key_idx << 6) | (1 << 5) /* Ext IV included */; in rtllib_ccmp_encrypt() 182 *pos++ = key->tx_pn[3]; in rtllib_ccmp_encrypt() 183 *pos++ = key->tx_pn[2]; in rtllib_ccmp_encrypt() 184 *pos++ = key->tx_pn[1]; in rtllib_ccmp_encrypt() [all …]
|
D | rtllib_crypt_wep.c | 23 u8 key[WEP_KEY_LEN + 1]; member 65 u8 key[WEP_KEY_LEN + 3]; in prism2_wep_encrypt() local 99 *pos++ = key[0] = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt() 100 *pos++ = key[1] = (wep->iv >> 8) & 0xff; in prism2_wep_encrypt() 101 *pos++ = key[2] = wep->iv & 0xff; in prism2_wep_encrypt() 105 memcpy(key + 3, wep->key, wep->key_len); in prism2_wep_encrypt() 116 arc4_setkey(&wep->tx_ctx_arc4, key, klen); in prism2_wep_encrypt() 135 u8 key[WEP_KEY_LEN + 3]; in prism2_wep_decrypt() local 146 key[0] = *pos++; in prism2_wep_decrypt() 147 key[1] = *pos++; in prism2_wep_decrypt() [all …]
|
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_ccmp.c | 36 u8 key[CCMP_TK_LEN]; member 161 struct ieee80211_ccmp_data *key = priv; in ieee80211_ccmp_encrypt() local 179 key->tx_pn[i]++; in ieee80211_ccmp_encrypt() 180 if (key->tx_pn[i] != 0) in ieee80211_ccmp_encrypt() 185 *pos++ = key->tx_pn[5]; in ieee80211_ccmp_encrypt() 186 *pos++ = key->tx_pn[4]; in ieee80211_ccmp_encrypt() 188 *pos++ = (key->key_idx << 6) | BIT(5) /* Ext IV included */; in ieee80211_ccmp_encrypt() 189 *pos++ = key->tx_pn[3]; in ieee80211_ccmp_encrypt() 190 *pos++ = key->tx_pn[2]; in ieee80211_ccmp_encrypt() 191 *pos++ = key->tx_pn[1]; in ieee80211_ccmp_encrypt() [all …]
|
D | ieee80211_crypt_wep.c | 28 u8 key[WEP_KEY_LEN + 1]; member 70 u8 key[WEP_KEY_LEN + 3]; in prism2_wep_encrypt() local 101 *pos++ = key[0] = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt() 102 *pos++ = key[1] = (wep->iv >> 8) & 0xff; in prism2_wep_encrypt() 103 *pos++ = key[2] = wep->iv & 0xff; in prism2_wep_encrypt() 107 memcpy(key + 3, wep->key, wep->key_len); in prism2_wep_encrypt() 118 arc4_setkey(&wep->tx_ctx_arc4, key, klen); in prism2_wep_encrypt() 137 u8 key[WEP_KEY_LEN + 3]; in prism2_wep_decrypt() local 147 key[0] = *pos++; in prism2_wep_decrypt() 148 key[1] = *pos++; in prism2_wep_decrypt() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | mod_hdr.c | 18 struct mod_hdr_key key; member 27 static u32 hash_mod_hdr_info(struct mod_hdr_key *key) in hash_mod_hdr_info() argument 29 return jhash(key->actions, in hash_mod_hdr_info() 30 key->num_actions * MLX5_MH_ACT_SZ, 0); in hash_mod_hdr_info() 54 struct mod_hdr_key *key, in mod_hdr_get() argument 60 if (!cmp_mod_hdr_info(&mh->key, key)) { in mod_hdr_get() 78 struct mod_hdr_key key; in mlx5e_mod_hdr_attach() local 84 key.actions = mod_hdr_acts->actions; in mlx5e_mod_hdr_attach() 85 key.num_actions = num_actions; in mlx5e_mod_hdr_attach() 87 hash_key = hash_mod_hdr_info(&key); in mlx5e_mod_hdr_attach() [all …]
|
/drivers/net/ethernet/rocker/ |
D | rocker_ofdpa.c | 96 struct ofdpa_flow_tbl_key key; member 137 } key; member 309 entry->key.ig_port.in_pport)) in ofdpa_cmd_flow_tbl_add_ig_port() 312 entry->key.ig_port.in_pport_mask)) in ofdpa_cmd_flow_tbl_add_ig_port() 315 entry->key.ig_port.goto_tbl)) in ofdpa_cmd_flow_tbl_add_ig_port() 326 entry->key.vlan.in_pport)) in ofdpa_cmd_flow_tbl_add_vlan() 329 entry->key.vlan.vlan_id)) in ofdpa_cmd_flow_tbl_add_vlan() 332 entry->key.vlan.vlan_id_mask)) in ofdpa_cmd_flow_tbl_add_vlan() 335 entry->key.vlan.goto_tbl)) in ofdpa_cmd_flow_tbl_add_vlan() 337 if (entry->key.vlan.untagged && in ofdpa_cmd_flow_tbl_add_vlan() [all …]
|
/drivers/net/ethernet/netronome/nfp/flower/ |
D | match.c | 34 match.key->vlan_priority) | in nfp_flower_compile_meta_tci() 36 match.key->vlan_id); in nfp_flower_compile_meta_tci() 90 ether_addr_copy(ext->mac_dst, &match.key->dst[0]); in nfp_flower_compile_mac() 91 ether_addr_copy(ext->mac_src, &match.key->src[0]); in nfp_flower_compile_mac() 110 match.key->ls[0].mpls_label) | in nfp_flower_compile_mac() 112 match.key->ls[0].mpls_tc) | in nfp_flower_compile_mac() 114 match.key->ls[0].mpls_bos) | in nfp_flower_compile_mac() 133 if (match.key->n_proto == cpu_to_be16(ETH_P_MPLS_UC) || in nfp_flower_compile_mac() 134 match.key->n_proto == cpu_to_be16(ETH_P_MPLS_MC)) { in nfp_flower_compile_mac() 155 ext->port_src = match.key->src; in nfp_flower_compile_tport() [all …]
|
/drivers/sfi/ |
D | sfi_acpi.c | 99 struct sfi_table_key key = SFI_ANY_KEY; in sfi_acpi_parse_xsdt() local 106 ret = sfi_check_table(xsdt_va->table_offset_entry[i], &key); in sfi_acpi_parse_xsdt() 127 static struct acpi_table_header *sfi_acpi_get_table(struct sfi_table_key *key) in sfi_acpi_get_table() argument 134 ret = sfi_check_table(xsdt_va->table_offset_entry[i], key); in sfi_acpi_get_table() 156 struct sfi_table_key key; in sfi_acpi_table_parse() local 162 key.sig = signature; in sfi_acpi_table_parse() 163 key.oem_id = oem_id; in sfi_acpi_table_parse() 164 key.oem_table_id = oem_table_id; in sfi_acpi_table_parse() 166 table = sfi_acpi_get_table(&key); in sfi_acpi_table_parse() 182 struct sfi_table_key key; in sfi_acpi_table_show() local [all …]
|
D | sfi_core.c | 201 struct sfi_table_key *key) in sfi_table_check_key() argument 204 if (strncmp(th->sig, key->sig, SFI_SIGNATURE_SIZE) in sfi_table_check_key() 205 || (key->oem_id && strncmp(th->oem_id, in sfi_table_check_key() 206 key->oem_id, SFI_OEM_ID_SIZE)) in sfi_table_check_key() 207 || (key->oem_table_id && strncmp(th->oem_table_id, in sfi_table_check_key() 208 key->oem_table_id, SFI_OEM_TABLE_ID_SIZE))) in sfi_table_check_key() 232 __ref sfi_check_table(u64 pa, struct sfi_table_key *key) in sfi_check_table() argument 241 if (!key->sig) { in sfi_check_table() 246 if (!sfi_table_check_key(th, key)) in sfi_check_table() 260 struct sfi_table_header *sfi_get_table(struct sfi_table_key *key) in sfi_get_table() argument [all …]
|
/drivers/power/supply/ |
D | test_power.c | 260 char const *key; member 303 static int map_get_value(struct battery_property_map *map, const char *key, in map_get_value() argument 309 strncpy(buf, key, MAX_KEYLENGTH); in map_get_value() 318 while (map->key) { in map_get_value() 319 if (strncasecmp(map->key, buf, MAX_KEYLENGTH) == 0) in map_get_value() 331 while (map->key) { in map_get_key() 333 return map->key; in map_get_key() 346 static int param_set_ac_online(const char *key, const struct kernel_param *kp) in param_set_ac_online() argument 348 ac_online = map_get_value(map_ac_online, key, ac_online); in param_set_ac_online() 359 static int param_set_usb_online(const char *key, const struct kernel_param *kp) in param_set_usb_online() argument [all …]
|
/drivers/infiniband/hw/bnxt_re/ |
D | qplib_res.h | 392 u32 key; in bnxt_qplib_ring_db32() local 394 key = info->hwq->cons & (info->hwq->max_elements - 1); in bnxt_qplib_ring_db32() 395 key |= (CMPL_DOORBELL_IDX_VALID | in bnxt_qplib_ring_db32() 398 key |= CMPL_DOORBELL_MASK; in bnxt_qplib_ring_db32() 399 writel(key, info->db); in bnxt_qplib_ring_db32() 405 u64 key = 0; in bnxt_qplib_ring_db() local 407 key = (info->xid & DBC_DBC_XID_MASK) | DBC_DBC_PATH_ROCE | type; in bnxt_qplib_ring_db() 408 key <<= 32; in bnxt_qplib_ring_db() 409 key |= (info->hwq->cons & (info->hwq->max_elements - 1)) & in bnxt_qplib_ring_db() 411 writeq(key, info->db); in bnxt_qplib_ring_db() [all …]
|
/drivers/staging/wlan-ng/ |
D | p80211wep.c | 67 int wep_change_key(struct wlandevice *wlandev, int keynum, u8 *key, int keylen) in wep_change_key() argument 73 if (!key) in wep_change_key() 81 memcpy(wlandev->wep_keys[keynum], key, keylen); in wep_change_key() 94 u8 s[256], key[64], c_crc[4]; in wep_decrypt() local 102 key[0] = iv[0]; in wep_decrypt() 103 key[1] = iv[1]; in wep_decrypt() 104 key[2] = iv[2]; in wep_decrypt() 119 memcpy(key + 3, wlandev->wep_keys[keyidx], keylen); in wep_decrypt() 128 j = (j + s[i] + key[i % keylen]) & 0xff; in wep_decrypt() 165 u8 s[256], key[64]; in wep_encrypt() local [all …]
|
/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_hwinfo.c | 108 const char *key, *val, *end = hwinfo->data + size; in hwinfo_db_walk() local 110 for (key = hwinfo->data; *key && key < end; in hwinfo_db_walk() 111 key = val + strlen(val) + 1) { in hwinfo_db_walk() 113 val = key + strlen(key) + 1; in hwinfo_db_walk() 257 const char *key, *val, *end; in nfp_hwinfo_lookup() local 264 for (key = hwinfo->data; *key && key < end; in nfp_hwinfo_lookup() 265 key = val + strlen(val) + 1) { in nfp_hwinfo_lookup() 267 val = key + strlen(key) + 1; in nfp_hwinfo_lookup() 269 if (strcmp(key, lookup) == 0) in nfp_hwinfo_lookup()
|