Home
last modified time | relevance | path

Searched refs:hkey (Results 1 – 13 of 13) sorted by relevance

/Linux-v5.4/drivers/platform/x86/
Dpanasonic-laptop.c259 union acpi_object *hkey = NULL; in acpi_pcc_retrieve_biosdata() local
270 hkey = buffer.pointer; in acpi_pcc_retrieve_biosdata()
271 if (!hkey || (hkey->type != ACPI_TYPE_PACKAGE)) { in acpi_pcc_retrieve_biosdata()
277 if (pcc->num_sifr < hkey->package.count) { in acpi_pcc_retrieve_biosdata()
284 for (i = 0; i < hkey->package.count; i++) { in acpi_pcc_retrieve_biosdata()
285 union acpi_object *element = &(hkey->package.elements[i]); in acpi_pcc_retrieve_biosdata()
292 pcc->sinf[hkey->package.count] = -1; in acpi_pcc_retrieve_biosdata()
Dthinkpad_acpi.c556 TPACPI_HANDLE(hkey, ec, "\\_SB.HKEY", /* 600e/x, 770e, 770x */
3491 TPACPI_ACPIHANDLE_INIT(hkey); in hotkey_init()
3883 static bool hotkey_notify_hotkey(const u32 hkey, in hotkey_notify_hotkey() argument
3888 unsigned int scancode = hkey & 0xfff; in hotkey_notify_hotkey()
3897 switch ((hkey >> 8) & 0xf) { in hotkey_notify_hotkey()
3933 static bool hotkey_notify_wakeup(const u32 hkey, in hotkey_notify_wakeup() argument
3941 switch (hkey) { in hotkey_notify_wakeup()
3973 static bool hotkey_notify_dockevent(const u32 hkey, in hotkey_notify_dockevent() argument
3981 switch (hkey) { in hotkey_notify_dockevent()
4001 static bool hotkey_notify_usrevent(const u32 hkey, in hotkey_notify_usrevent() argument
[all …]
/Linux-v5.4/drivers/crypto/
Datmel-sha.c1683 static inline void atmel_sha_hmac_key_init(struct atmel_sha_hmac_key *hkey) in atmel_sha_hmac_key_init() argument
1685 memset(hkey, 0, sizeof(*hkey)); in atmel_sha_hmac_key_init()
1688 static inline void atmel_sha_hmac_key_release(struct atmel_sha_hmac_key *hkey) in atmel_sha_hmac_key_release() argument
1690 kfree(hkey->keydup); in atmel_sha_hmac_key_release()
1691 memset(hkey, 0, sizeof(*hkey)); in atmel_sha_hmac_key_release()
1694 static inline int atmel_sha_hmac_key_set(struct atmel_sha_hmac_key *hkey, in atmel_sha_hmac_key_set() argument
1698 atmel_sha_hmac_key_release(hkey); in atmel_sha_hmac_key_set()
1700 if (keylen > sizeof(hkey->buffer)) { in atmel_sha_hmac_key_set()
1701 hkey->keydup = kmemdup(key, keylen, GFP_KERNEL); in atmel_sha_hmac_key_set()
1702 if (!hkey->keydup) in atmel_sha_hmac_key_set()
[all …]
/Linux-v5.4/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c599 static int enic_get_rxfh(struct net_device *netdev, u32 *indir, u8 *hkey, in enic_get_rxfh() argument
604 if (hkey) in enic_get_rxfh()
605 memcpy(hkey, enic->rss_key, ENIC_RSS_LEN); in enic_get_rxfh()
614 const u8 *hkey, const u8 hfunc) in enic_set_rxfh() argument
622 if (hkey) in enic_set_rxfh()
623 memcpy(enic->rss_key, hkey, ENIC_RSS_LEN); in enic_set_rxfh()
/Linux-v5.4/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c651 static int nicvf_get_rxfh(struct net_device *dev, u32 *indir, u8 *hkey, in nicvf_get_rxfh() argument
663 if (hkey) in nicvf_get_rxfh()
664 memcpy(hkey, rss->key, RSS_HASH_KEY_SIZE * sizeof(u64)); in nicvf_get_rxfh()
673 const u8 *hkey, const u8 hfunc) in nicvf_set_rxfh() argument
693 if (hkey) { in nicvf_set_rxfh()
694 memcpy(rss->key, hkey, RSS_HASH_KEY_SIZE * sizeof(u64)); in nicvf_set_rxfh()
/Linux-v5.4/drivers/net/ethernet/emulex/benet/
Dbe_ethtool.c1269 static int be_get_rxfh(struct net_device *netdev, u32 *indir, u8 *hkey, in be_get_rxfh() argument
1281 if (hkey) in be_get_rxfh()
1282 memcpy(hkey, rss->rss_hkey, RSS_HASH_KEY_LEN); in be_get_rxfh()
1291 const u8 *hkey, const u8 hfunc) in be_set_rxfh() argument
1315 if (!hkey) in be_set_rxfh()
1316 hkey = adapter->rss_info.rss_hkey; in be_set_rxfh()
1320 RSS_INDIR_TABLE_LEN, hkey); in be_set_rxfh()
1325 memcpy(adapter->rss_info.rss_hkey, hkey, RSS_HASH_KEY_LEN); in be_set_rxfh()
/Linux-v5.4/drivers/crypto/ccree/
Dcc_aead.h57 u8 hkey[AES_BLOCK_SIZE] ____cacheline_aligned; member
Dcc_buffer_mgr.c1074 dma_addr = dma_map_single(dev, areq_ctx->hkey, AES_BLOCK_SIZE, in cc_map_aead_request()
1078 AES_BLOCK_SIZE, areq_ctx->hkey); in cc_map_aead_request()
Dcc_aead.c1856 memset(req_ctx->hkey, 0, AES_BLOCK_SIZE); in config_gcm_context()
/Linux-v5.4/fs/xfs/scrub/
Dbtree.c131 union xfs_btree_key hkey; in xchk_btree_rec() local
162 cur->bc_ops->init_high_key_from_rec(&hkey, rec); in xchk_btree_rec()
164 if (cur->bc_ops->diff_two_keys(cur, keyp, &hkey) < 0) in xchk_btree_rec()
/Linux-v5.4/net/core/
Dethtool.c1155 u8 *hkey = NULL; in ethtool_get_rxfh() local
1197 hkey = rss_config + indir_bytes; in ethtool_get_rxfh()
1200 ret = dev->ethtool_ops->get_rxfh_context(dev, indir, hkey, in ethtool_get_rxfh()
1204 ret = dev->ethtool_ops->get_rxfh(dev, indir, hkey, &dev_hfunc); in ethtool_get_rxfh()
1231 u8 *hkey = NULL; in ethtool_set_rxfh() local
1301 hkey = rss_config + indir_bytes; in ethtool_set_rxfh()
1302 if (copy_from_user(hkey, in ethtool_set_rxfh()
1311 ret = ops->set_rxfh_context(dev, indir, hkey, rxfh.hfunc, in ethtool_set_rxfh()
1314 ret = ops->set_rxfh(dev, indir, hkey, rxfh.hfunc); in ethtool_set_rxfh()
/Linux-v5.4/fs/xfs/libxfs/
Dxfs_btree.c2030 union xfs_btree_key hkey; in xfs_btree_get_leaf_keys() local
2043 cur->bc_ops->init_high_key_from_rec(&hkey, rec); in xfs_btree_get_leaf_keys()
2044 if (cur->bc_ops->diff_two_keys(cur, &hkey, &max_hkey) in xfs_btree_get_leaf_keys()
2046 max_hkey = hkey; in xfs_btree_get_leaf_keys()
2061 union xfs_btree_key *hkey; in xfs_btree_get_node_keys() local
2072 hkey = xfs_btree_high_key_addr(cur, n, block); in xfs_btree_get_node_keys()
2073 if (cur->bc_ops->diff_two_keys(cur, hkey, max_hkey) > 0) in xfs_btree_get_node_keys()
2074 max_hkey = hkey; in xfs_btree_get_node_keys()
2128 union xfs_btree_key *hkey; in __xfs_btree_updkeys() local
2143 hkey = xfs_btree_high_key_from_key(cur, lkey); in __xfs_btree_updkeys()
[all …]
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_main.c9640 static const u32 hkey[] = { in i40e_fdir_sb_setup() local
9648 wr32(&pf->hw, I40E_GLQF_HKEY(i), hkey[i]); in i40e_fdir_sb_setup()