Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
A Dvporttbl.c80 u32 hkey; in mlx5_esw_vporttbl_get() local
83 hkey = flow_attr_to_vport_key(esw, attr, &skey); in mlx5_esw_vporttbl_get()
84 e = esw_vport_tbl_lookup(esw, &skey, hkey); in mlx5_esw_vporttbl_get()
110 hash_add(esw->fdb_table.offloads.vports.table, &e->hlist, hkey); in mlx5_esw_vporttbl_get()
127 u32 hkey; in mlx5_esw_vporttbl_put() local
130 hkey = flow_attr_to_vport_key(esw, attr, &key); in mlx5_esw_vporttbl_put()
131 e = esw_vport_tbl_lookup(esw, &key, hkey); in mlx5_esw_vporttbl_put()
/linux/drivers/crypto/
A Datmel-sha.c1619 memset(hkey, 0, sizeof(*hkey)); in atmel_sha_hmac_key_init()
1624 kfree(hkey->keydup); in atmel_sha_hmac_key_release()
1625 memset(hkey, 0, sizeof(*hkey)); in atmel_sha_hmac_key_release()
1632 atmel_sha_hmac_key_release(hkey); in atmel_sha_hmac_key_set()
1636 if (!hkey->keydup) in atmel_sha_hmac_key_set()
1643 hkey->valid = true; in atmel_sha_hmac_key_set()
1644 hkey->keylen = keylen; in atmel_sha_hmac_key_set()
1652 if (!hkey->valid) in atmel_sha_hmac_key_get()
1655 *keylen = hkey->keylen; in atmel_sha_hmac_key_get()
1656 *key = (hkey->keydup) ? hkey->keydup : hkey->buffer; in atmel_sha_hmac_key_get()
[all …]
/linux/drivers/platform/x86/
A Dpanasonic-laptop.c284 union acpi_object *hkey = NULL; in acpi_pcc_retrieve_biosdata() local
294 hkey = buffer.pointer; in acpi_pcc_retrieve_biosdata()
295 if (!hkey || (hkey->type != ACPI_TYPE_PACKAGE)) { in acpi_pcc_retrieve_biosdata()
301 if (pcc->num_sifr < hkey->package.count) { in acpi_pcc_retrieve_biosdata()
307 for (i = 0; i < hkey->package.count; i++) { in acpi_pcc_retrieve_biosdata()
308 union acpi_object *element = &(hkey->package.elements[i]); in acpi_pcc_retrieve_biosdata()
314 pcc->sinf[hkey->package.count] = -1; in acpi_pcc_retrieve_biosdata()
A Dthinkpad_acpi.c3805 switch ((hkey >> 8) & 0xf) { in hotkey_notify_hotkey()
3849 switch (hkey) { in hotkey_notify_wakeup()
3889 switch (hkey) { in hotkey_notify_dockevent()
3934 switch (hkey) { in hotkey_notify_usrevent()
3969 switch (hkey) { in hotkey_notify_6xxx()
3978 tpacpi_driver_event(hkey); in hotkey_notify_6xxx()
4047 u32 hkey; in hotkey_notify() local
4068 if (hkey == 0) { in hotkey_notify()
4076 switch (hkey >> 12) { in hotkey_notify()
4089 switch (hkey) { in hotkey_notify()
[all …]
/linux/drivers/net/ethernet/cisco/enic/
A Denic_ethtool.c582 static int enic_get_rxfh(struct net_device *netdev, u32 *indir, u8 *hkey, in enic_get_rxfh() argument
587 if (hkey) in enic_get_rxfh()
588 memcpy(hkey, enic->rss_key, ENIC_RSS_LEN); in enic_get_rxfh()
597 const u8 *hkey, const u8 hfunc) in enic_set_rxfh() argument
605 if (hkey) in enic_set_rxfh()
606 memcpy(enic->rss_key, hkey, ENIC_RSS_LEN); in enic_set_rxfh()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_ethtool.c758 const u8 *hkey, const u8 hfunc, in otx2_set_rxfh_context() argument
780 if (hkey) { in otx2_set_rxfh_context()
781 memcpy(rss->key, hkey, sizeof(rss->key)); in otx2_set_rxfh_context()
803 u8 *hkey, u8 *hfunc, u32 rss_context) in otx2_get_rxfh_context() argument
835 if (hkey) in otx2_get_rxfh_context()
836 memcpy(hkey, rss->key, sizeof(rss->key)); in otx2_get_rxfh_context()
843 u8 *hkey, u8 *hfunc) in otx2_get_rxfh() argument
845 return otx2_get_rxfh_context(dev, indir, hkey, hfunc, in otx2_get_rxfh()
851 const u8 *hkey, const u8 hfunc) in otx2_set_rxfh() argument
856 return otx2_set_rxfh_context(dev, indir, hkey, hfunc, &rss_context, 0); in otx2_set_rxfh()
/linux/drivers/net/ethernet/cavium/thunder/
A Dnicvf_ethtool.c652 static int nicvf_get_rxfh(struct net_device *dev, u32 *indir, u8 *hkey, in nicvf_get_rxfh() argument
664 if (hkey) in nicvf_get_rxfh()
665 memcpy(hkey, rss->key, RSS_HASH_KEY_SIZE * sizeof(u64)); in nicvf_get_rxfh()
674 const u8 *hkey, const u8 hfunc) in nicvf_set_rxfh() argument
694 if (hkey) { in nicvf_set_rxfh()
695 memcpy(rss->key, hkey, RSS_HASH_KEY_SIZE * sizeof(u64)); in nicvf_set_rxfh()
/linux/drivers/net/ethernet/emulex/benet/
A Dbe_ethtool.c1272 static int be_get_rxfh(struct net_device *netdev, u32 *indir, u8 *hkey, in be_get_rxfh() argument
1284 if (hkey) in be_get_rxfh()
1285 memcpy(hkey, rss->rss_hkey, RSS_HASH_KEY_LEN); in be_get_rxfh()
1294 const u8 *hkey, const u8 hfunc) in be_set_rxfh() argument
1318 if (!hkey) in be_set_rxfh()
1319 hkey = adapter->rss_info.rss_hkey; in be_set_rxfh()
1323 RSS_INDIR_TABLE_LEN, hkey); in be_set_rxfh()
1328 memcpy(adapter->rss_info.rss_hkey, hkey, RSS_HASH_KEY_LEN); in be_set_rxfh()
/linux/drivers/crypto/ccree/
A Dcc_aead.h57 u8 hkey[AES_BLOCK_SIZE] ____cacheline_aligned; member
A Dcc_buffer_mgr.c1000 dma_addr = dma_map_single(dev, areq_ctx->hkey, AES_BLOCK_SIZE, in cc_map_aead_request()
1004 AES_BLOCK_SIZE, areq_ctx->hkey); in cc_map_aead_request()
A Dcc_aead.c1845 memset(req_ctx->hkey, 0, AES_BLOCK_SIZE); in config_gcm_context()
/linux/drivers/net/phy/mscc/
A Dmscc_macsec.c505 u16 key_len, u8 hkey[16]) in vsc8584_macsec_derive_key()
515 aes_encrypt(&ctx, hkey, input); in vsc8584_macsec_derive_key()
527 u8 hkey[16]; in vsc8584_macsec_transformation() local
530 ret = vsc8584_macsec_derive_key(flow->key, priv->secy->key_len, hkey); in vsc8584_macsec_transformation()
572 ((u32 *)hkey)[i]); in vsc8584_macsec_transformation()
/linux/fs/xfs/scrub/
A Dbtree.c132 union xfs_btree_key hkey; in xchk_btree_rec() local
163 cur->bc_ops->init_high_key_from_rec(&hkey, rec); in xchk_btree_rec()
165 if (cur->bc_ops->diff_two_keys(cur, keyp, &hkey) < 0) in xchk_btree_rec()
/linux/fs/xfs/libxfs/
A Dxfs_btree.c1981 union xfs_btree_key hkey; in xfs_btree_get_leaf_keys() local
1994 cur->bc_ops->init_high_key_from_rec(&hkey, rec); in xfs_btree_get_leaf_keys()
1995 if (cur->bc_ops->diff_two_keys(cur, &hkey, &max_hkey) in xfs_btree_get_leaf_keys()
1997 max_hkey = hkey; in xfs_btree_get_leaf_keys()
2012 union xfs_btree_key *hkey; in xfs_btree_get_node_keys() local
2023 hkey = xfs_btree_high_key_addr(cur, n, block); in xfs_btree_get_node_keys()
2024 if (cur->bc_ops->diff_two_keys(cur, hkey, max_hkey) > 0) in xfs_btree_get_node_keys()
2025 max_hkey = hkey; in xfs_btree_get_node_keys()
2079 union xfs_btree_key *hkey; in __xfs_btree_updkeys() local
2094 hkey = xfs_btree_high_key_from_key(cur, lkey); in __xfs_btree_updkeys()
[all …]
/linux/net/ethtool/
A Dioctl.c1186 u8 *hkey = NULL; in ethtool_get_rxfh() local
1228 hkey = rss_config + indir_bytes; in ethtool_get_rxfh()
1231 ret = dev->ethtool_ops->get_rxfh_context(dev, indir, hkey, in ethtool_get_rxfh()
1235 ret = dev->ethtool_ops->get_rxfh(dev, indir, hkey, &dev_hfunc); in ethtool_get_rxfh()
1262 u8 *hkey = NULL; in ethtool_set_rxfh() local
1332 hkey = rss_config + indir_bytes; in ethtool_set_rxfh()
1333 if (copy_from_user(hkey, in ethtool_set_rxfh()
1342 ret = ops->set_rxfh_context(dev, indir, hkey, rxfh.hfunc, in ethtool_set_rxfh()
1345 ret = ops->set_rxfh(dev, indir, hkey, rxfh.hfunc); in ethtool_set_rxfh()
/linux/drivers/net/ethernet/intel/i40e/
A Di40e_main.c10269 static const u32 hkey[] = { in i40e_fdir_sb_setup() local
10277 wr32(&pf->hw, I40E_GLQF_HKEY(i), hkey[i]); in i40e_fdir_sb_setup()

Completed in 98 milliseconds