/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | vporttbl.c | 88 u32 hkey; in mlx5_esw_vporttbl_get() local 92 hkey = flow_attr_to_vport_key(esw, attr, &skey); in mlx5_esw_vporttbl_get() 93 e = esw_vport_tbl_lookup(esw, &skey, hkey); in mlx5_esw_vporttbl_get() 119 hash_add(esw->fdb_table.offloads.vports.table, &e->hlist, hkey); in mlx5_esw_vporttbl_get() 136 u32 hkey; in mlx5_esw_vporttbl_put() local 140 hkey = flow_attr_to_vport_key(esw, attr, &key); in mlx5_esw_vporttbl_put() 141 e = esw_vport_tbl_lookup(esw, &key, hkey); in mlx5_esw_vporttbl_put()
|
/kernel/linux/linux-6.6/net/ethtool/ |
H A D | rss.c | 17 u8 *hkey; member 88 data->hkey = rss_config + indir_bytes; in rss_prepare_data() 91 ret = ops->get_rxfh_context(dev, data->indir_table, data->hkey, in rss_prepare_data() 94 ret = ops->get_rxfh(dev, data->indir_table, data->hkey, in rss_prepare_data() 132 nla_put(skb, ETHTOOL_A_RSS_HKEY, data->hkey_size, data->hkey))) in rss_fill_reply()
|
/kernel/linux/linux-5.10/drivers/platform/x86/ |
H A D | panasonic-laptop.c | 259 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()
|
H A D | thinkpad_acpi.c | 557 TPACPI_HANDLE(hkey, ec, "\\_SB.HKEY", /* 600e/x, 770e, 770x */ 3476 TPACPI_ACPIHANDLE_INIT(hkey); in hotkey_init() 3868 static bool hotkey_notify_hotkey(const u32 hkey, in hotkey_notify_hotkey() argument 3873 unsigned int scancode = hkey & 0xfff; in hotkey_notify_hotkey() 3882 switch ((hkey >> 8) & 0xf) { in hotkey_notify_hotkey() 3918 static bool hotkey_notify_wakeup(const u32 hkey, in hotkey_notify_wakeup() argument 3926 switch (hkey) { in hotkey_notify_wakeup() 3958 static bool hotkey_notify_dockevent(const u32 hkey, in hotkey_notify_dockevent() argument 3966 switch (hkey) { in hotkey_notify_dockevent() 3986 static bool hotkey_notify_usrevent(const u32 hkey, in hotkey_notify_usrevent() argument 4020 hotkey_notify_6xxx(const u32 hkey, bool *send_acpi_ev, bool *ignore_acpi_ev) hotkey_notify_6xxx() argument 4106 u32 hkey; hotkey_notify() local [all...] |
/kernel/linux/linux-5.10/drivers/crypto/ |
H A D | atmel-sha.c | 1617 static inline void atmel_sha_hmac_key_init(struct atmel_sha_hmac_key *hkey) in atmel_sha_hmac_key_init() argument 1619 memset(hkey, 0, sizeof(*hkey)); in atmel_sha_hmac_key_init() 1622 static inline void atmel_sha_hmac_key_release(struct atmel_sha_hmac_key *hkey) in atmel_sha_hmac_key_release() argument 1624 kfree(hkey->keydup); in atmel_sha_hmac_key_release() 1625 memset(hkey, 0, sizeof(*hkey)); in atmel_sha_hmac_key_release() 1628 static inline int atmel_sha_hmac_key_set(struct atmel_sha_hmac_key *hkey, in atmel_sha_hmac_key_set() argument 1632 atmel_sha_hmac_key_release(hkey); in atmel_sha_hmac_key_set() 1634 if (keylen > sizeof(hkey in atmel_sha_hmac_key_set() 1648 atmel_sha_hmac_key_get(const struct atmel_sha_hmac_key *hkey, const u8 **key, unsigned int *keylen) atmel_sha_hmac_key_get() argument 1664 struct atmel_sha_hmac_key hkey; global() member [all...] |
/kernel/linux/linux-6.6/drivers/crypto/ |
H A D | atmel-sha.c | 1617 static inline void atmel_sha_hmac_key_init(struct atmel_sha_hmac_key *hkey) in atmel_sha_hmac_key_init() argument 1619 memset(hkey, 0, sizeof(*hkey)); in atmel_sha_hmac_key_init() 1622 static inline void atmel_sha_hmac_key_release(struct atmel_sha_hmac_key *hkey) in atmel_sha_hmac_key_release() argument 1624 kfree(hkey->keydup); in atmel_sha_hmac_key_release() 1625 memset(hkey, 0, sizeof(*hkey)); in atmel_sha_hmac_key_release() 1628 static inline int atmel_sha_hmac_key_set(struct atmel_sha_hmac_key *hkey, in atmel_sha_hmac_key_set() argument 1632 atmel_sha_hmac_key_release(hkey); in atmel_sha_hmac_key_set() 1634 if (keylen > sizeof(hkey in atmel_sha_hmac_key_set() 1648 atmel_sha_hmac_key_get(const struct atmel_sha_hmac_key *hkey, const u8 **key, unsigned int *keylen) atmel_sha_hmac_key_get() argument 1664 struct atmel_sha_hmac_key hkey; global() member [all...] |
/kernel/linux/linux-6.6/drivers/platform/x86/ |
H A D | panasonic-laptop.c | 322 union acpi_object *hkey = NULL; in acpi_pcc_retrieve_biosdata() local 332 hkey = buffer.pointer; in acpi_pcc_retrieve_biosdata() 333 if (!hkey || (hkey->type != ACPI_TYPE_PACKAGE)) { in acpi_pcc_retrieve_biosdata() 339 if (pcc->num_sifr < hkey->package.count) { in acpi_pcc_retrieve_biosdata() 345 for (i = 0; i < hkey->package.count; i++) { in acpi_pcc_retrieve_biosdata() 346 union acpi_object *element = &(hkey->package.elements[i]); in acpi_pcc_retrieve_biosdata() 352 pcc->sinf[hkey->package.count] = -1; in acpi_pcc_retrieve_biosdata()
|
H A D | thinkpad_acpi.c | 579 TPACPI_HANDLE(hkey, ec, "\\_SB.HKEY", /* 600e/x, 770e, 770x */ 3373 TPACPI_ACPIHANDLE_INIT(hkey); in hotkey_init() 3727 static bool hotkey_notify_extended_hotkey(const u32 hkey) in hotkey_notify_extended_hotkey() argument 3731 switch (hkey) { in hotkey_notify_extended_hotkey() 3734 tpacpi_driver_event(hkey); in hotkey_notify_extended_hotkey() 3742 scancode = (hkey & 0xfff) - (0x300 - TP_ACPI_HOTKEYSCAN_EXTENDED_START); in hotkey_notify_extended_hotkey() 3752 static bool hotkey_notify_hotkey(const u32 hkey, in hotkey_notify_hotkey() argument 3757 unsigned int scancode = hkey & 0xfff; in hotkey_notify_hotkey() 3766 switch ((hkey >> 8) & 0xf) { in hotkey_notify_hotkey() 3786 return hotkey_notify_extended_hotkey(hkey); in hotkey_notify_hotkey() 3792 hotkey_notify_wakeup(const u32 hkey, bool *send_acpi_ev, bool *ignore_acpi_ev) hotkey_notify_wakeup() argument 3832 hotkey_notify_dockevent(const u32 hkey, bool *send_acpi_ev, bool *ignore_acpi_ev) hotkey_notify_dockevent() argument 3877 hotkey_notify_usrevent(const u32 hkey, bool *send_acpi_ev, bool *ignore_acpi_ev) hotkey_notify_usrevent() argument 3912 hotkey_notify_6xxx(const u32 hkey, bool *send_acpi_ev, bool *ignore_acpi_ev) hotkey_notify_6xxx() argument 3998 u32 hkey; hotkey_notify() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/ |
H A D | enic_ethtool.c | 578 static int enic_get_rxfh(struct net_device *netdev, u32 *indir, u8 *hkey, in enic_get_rxfh() argument 583 if (hkey) in enic_get_rxfh() 584 memcpy(hkey, enic->rss_key, ENIC_RSS_LEN); in enic_get_rxfh() 593 const u8 *hkey, const u8 hfunc) in enic_set_rxfh() 601 if (hkey) in enic_set_rxfh() 602 memcpy(enic->rss_key, hkey, ENIC_RSS_LEN); in enic_set_rxfh() 592 enic_set_rxfh(struct net_device *netdev, const u32 *indir, const u8 *hkey, const u8 hfunc) enic_set_rxfh() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/cisco/enic/ |
H A D | enic_ethtool.c | 571 static int enic_get_rxfh(struct net_device *netdev, u32 *indir, u8 *hkey, in enic_get_rxfh() argument 576 if (hkey) in enic_get_rxfh() 577 memcpy(hkey, enic->rss_key, ENIC_RSS_LEN); in enic_get_rxfh() 586 const u8 *hkey, const u8 hfunc) in enic_set_rxfh() 594 if (hkey) in enic_set_rxfh() 595 memcpy(enic->rss_key, hkey, ENIC_RSS_LEN); in enic_set_rxfh() 585 enic_set_rxfh(struct net_device *netdev, const u32 *indir, const u8 *hkey, const u8 hfunc) enic_set_rxfh() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_ethtool.c | 839 const u8 *hkey, const u8 hfunc, in otx2_set_rxfh_context() 861 if (hkey) { in otx2_set_rxfh_context() 862 memcpy(rss->key, hkey, sizeof(rss->key)); in otx2_set_rxfh_context() 884 u8 *hkey, u8 *hfunc, u32 rss_context) in otx2_get_rxfh_context() 916 if (hkey) in otx2_get_rxfh_context() 917 memcpy(hkey, rss->key, sizeof(rss->key)); in otx2_get_rxfh_context() 924 u8 *hkey, u8 *hfunc) in otx2_get_rxfh() 926 return otx2_get_rxfh_context(dev, indir, hkey, hfunc, in otx2_get_rxfh() 932 const u8 *hkey, const u8 hfunc) in otx2_set_rxfh() 937 return otx2_set_rxfh_context(dev, indir, hkey, hfun in otx2_set_rxfh() 838 otx2_set_rxfh_context(struct net_device *dev, const u32 *indir, const u8 *hkey, const u8 hfunc, u32 *rss_context, bool delete) otx2_set_rxfh_context() argument 883 otx2_get_rxfh_context(struct net_device *dev, u32 *indir, u8 *hkey, u8 *hfunc, u32 rss_context) otx2_get_rxfh_context() argument 923 otx2_get_rxfh(struct net_device *dev, u32 *indir, u8 *hkey, u8 *hfunc) otx2_get_rxfh() argument 931 otx2_set_rxfh(struct net_device *dev, const u32 *indir, const u8 *hkey, const u8 hfunc) otx2_set_rxfh() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_ethtool.c | 600 u8 *hkey, u8 *hfunc) in otx2_get_rxfh() 613 if (hkey) in otx2_get_rxfh() 614 memcpy(hkey, rss->key, sizeof(rss->key)); in otx2_get_rxfh() 624 const u8 *hkey, const u8 hfunc) in otx2_set_rxfh() 645 if (hkey) { in otx2_set_rxfh() 646 memcpy(rss->key, hkey, sizeof(rss->key)); in otx2_set_rxfh() 599 otx2_get_rxfh(struct net_device *dev, u32 *indir, u8 *hkey, u8 *hfunc) otx2_get_rxfh() argument 623 otx2_set_rxfh(struct net_device *dev, const u32 *indir, const u8 *hkey, const u8 hfunc) otx2_set_rxfh() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/thunder/ |
H A D | nicvf_ethtool.c | 649 static int nicvf_get_rxfh(struct net_device *dev, u32 *indir, u8 *hkey, in nicvf_get_rxfh() argument 661 if (hkey) in nicvf_get_rxfh() 662 memcpy(hkey, rss->key, RSS_HASH_KEY_SIZE * sizeof(u64)); in nicvf_get_rxfh() 671 const u8 *hkey, const u8 hfunc) in nicvf_set_rxfh() 691 if (hkey) { in nicvf_set_rxfh() 692 memcpy(rss->key, hkey, RSS_HASH_KEY_SIZE * sizeof(u64)); in nicvf_set_rxfh() 670 nicvf_set_rxfh(struct net_device *dev, const u32 *indir, const u8 *hkey, const u8 hfunc) nicvf_set_rxfh() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/cavium/thunder/ |
H A D | nicvf_ethtool.c | 656 static int nicvf_get_rxfh(struct net_device *dev, u32 *indir, u8 *hkey, in nicvf_get_rxfh() argument 668 if (hkey) in nicvf_get_rxfh() 669 memcpy(hkey, rss->key, RSS_HASH_KEY_SIZE * sizeof(u64)); in nicvf_get_rxfh() 678 const u8 *hkey, const u8 hfunc) in nicvf_set_rxfh() 698 if (hkey) { in nicvf_set_rxfh() 699 memcpy(rss->key, hkey, RSS_HASH_KEY_SIZE * sizeof(u64)); in nicvf_set_rxfh() 677 nicvf_set_rxfh(struct net_device *dev, const u32 *indir, const u8 *hkey, const u8 hfunc) nicvf_set_rxfh() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/emulex/benet/ |
H A D | be_ethtool.c | 1268 static int be_get_rxfh(struct net_device *netdev, u32 *indir, u8 *hkey, in be_get_rxfh() argument 1280 if (hkey) in be_get_rxfh() 1281 memcpy(hkey, rss->rss_hkey, RSS_HASH_KEY_LEN); in be_get_rxfh() 1290 const u8 *hkey, const u8 hfunc) in be_set_rxfh() 1314 if (!hkey) in be_set_rxfh() 1315 hkey = adapter->rss_info.rss_hkey; in be_set_rxfh() 1319 RSS_INDIR_TABLE_LEN, hkey); in be_set_rxfh() 1324 memcpy(adapter->rss_info.rss_hkey, hkey, RSS_HASH_KEY_LEN); in be_set_rxfh() 1289 be_set_rxfh(struct net_device *netdev, const u32 *indir, const u8 *hkey, const u8 hfunc) be_set_rxfh() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/emulex/benet/ |
H A D | be_ethtool.c | 1274 static int be_get_rxfh(struct net_device *netdev, u32 *indir, u8 *hkey, in be_get_rxfh() argument 1286 if (hkey) in be_get_rxfh() 1287 memcpy(hkey, rss->rss_hkey, RSS_HASH_KEY_LEN); in be_get_rxfh() 1296 const u8 *hkey, const u8 hfunc) in be_set_rxfh() 1320 if (!hkey) in be_set_rxfh() 1321 hkey = adapter->rss_info.rss_hkey; in be_set_rxfh() 1325 RSS_INDIR_TABLE_LEN, hkey); in be_set_rxfh() 1330 memcpy(adapter->rss_info.rss_hkey, hkey, RSS_HASH_KEY_LEN); in be_set_rxfh() 1295 be_set_rxfh(struct net_device *netdev, const u32 *indir, const u8 *hkey, const u8 hfunc) be_set_rxfh() argument
|
/kernel/linux/linux-5.10/drivers/crypto/ccree/ |
H A D | cc_aead.h | 57 u8 hkey[AES_BLOCK_SIZE] ____cacheline_aligned; 80 dma_addr_t hkey_dma_addr; /* Phys. address of hkey */
|
/kernel/linux/linux-6.6/drivers/crypto/ccree/ |
H A D | cc_aead.h | 57 u8 hkey[AES_BLOCK_SIZE] ____cacheline_aligned; 80 dma_addr_t hkey_dma_addr; /* Phys. address of hkey */
|
/kernel/linux/linux-6.6/fs/xfs/scrub/ |
H A D | rmap.c | 142 union xfs_btree_key *lkey, *hkey; in xchk_rmapbt_check_unwritten_in_keyflags() local 166 hkey = xfs_btree_high_key_addr(cur, ptr, keyblock); in xchk_rmapbt_check_unwritten_in_keyflags() 167 if (hkey->rmap.rm_offset & badflag) { in xchk_rmapbt_check_unwritten_in_keyflags()
|
H A D | btree.c | 143 union xfs_btree_key hkey; in xchk_btree_rec() local 175 cur->bc_ops->init_high_key_from_rec(&hkey, rec); in xchk_btree_rec() 177 if (xfs_btree_keycmp_lt(cur, keyp, &hkey)) in xchk_btree_rec()
|
/kernel/linux/linux-5.10/fs/xfs/scrub/ |
H A D | btree.c | 131 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()
|
/kernel/linux/linux-5.10/drivers/net/phy/mscc/ |
H A D | mscc_macsec.c | 505 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() 504 vsc8584_macsec_derive_key(const u8 key[MACSEC_MAX_KEY_LEN], u16 key_len, u8 hkey[16]) vsc8584_macsec_derive_key() argument
|
/kernel/linux/linux-6.6/drivers/net/phy/mscc/ |
H A D | mscc_macsec.c | 504 static int vsc8584_macsec_derive_key(const u8 *key, u16 key_len, u8 hkey[16]) in vsc8584_macsec_derive_key() argument 514 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(key, priv->secy->key_len, hkey); in vsc8584_macsec_transformation() 572 ((u32 *)hkey)[i]); in vsc8584_macsec_transformation()
|
/kernel/linux/linux-6.6/drivers/nvme/common/ |
H A D | auth.c | 305 static int nvme_auth_hash_skey(int hmac_id, u8 *skey, size_t skey_len, u8 *hkey) in nvme_auth_hash_skey() argument 321 ret = crypto_shash_tfm_digest(tfm, skey, skey_len, hkey); in nvme_auth_hash_skey()
|
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_btree.c | 1984 union xfs_btree_key hkey; in xfs_btree_get_leaf_keys() local 1997 cur->bc_ops->init_high_key_from_rec(&hkey, rec); in xfs_btree_get_leaf_keys() 1998 if (cur->bc_ops->diff_two_keys(cur, &hkey, &max_hkey) in xfs_btree_get_leaf_keys() 2000 max_hkey = hkey; in xfs_btree_get_leaf_keys() 2015 union xfs_btree_key *hkey; in xfs_btree_get_node_keys() local 2026 hkey = xfs_btree_high_key_addr(cur, n, block); in xfs_btree_get_node_keys() 2027 if (cur->bc_ops->diff_two_keys(cur, hkey, max_hkey) > 0) in xfs_btree_get_node_keys() 2028 max_hkey = hkey; in xfs_btree_get_node_keys() 2082 union xfs_btree_key *hkey; in __xfs_btree_updkeys() local 2097 hkey in __xfs_btree_updkeys() [all...] |