Lines Matching refs:hash_key
1051 struct ena_admin_feature_rss_flow_hash_control *hash_key = in ena_com_hash_key_fill_default_key() local
1052 (ena_dev->rss).hash_key; in ena_com_hash_key_fill_default_key()
1054 netdev_rss_key_fill(&hash_key->key, sizeof(hash_key->key)); in ena_com_hash_key_fill_default_key()
1058 hash_key->key_parts = ENA_ADMIN_RSS_KEY_PARTS; in ena_com_hash_key_fill_default_key()
1068 rss->hash_key = dma_alloc_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), in ena_com_hash_key_allocate()
1071 if (unlikely(!rss->hash_key)) in ena_com_hash_key_allocate()
1081 if (rss->hash_key) in ena_com_hash_key_destroy()
1082 dma_free_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), rss->hash_key, in ena_com_hash_key_destroy()
1084 rss->hash_key = NULL; in ena_com_hash_key_destroy()
2354 cmd.control_buffer.length = sizeof(*rss->hash_key); in ena_com_set_hash_function()
2374 struct ena_admin_feature_rss_flow_hash_control *hash_key; in ena_com_fill_hash_function() local
2380 hash_key = rss->hash_key; in ena_com_fill_hash_function()
2389 sizeof(*rss->hash_key), 0); in ena_com_fill_hash_function()
2399 if (key_len != sizeof(hash_key->key)) { in ena_com_fill_hash_function()
2402 sizeof(hash_key->key)); in ena_com_fill_hash_function()
2405 memcpy(hash_key->key, key, key_len); in ena_com_fill_hash_function()
2406 hash_key->key_parts = key_len / sizeof(hash_key->key[0]); in ena_com_fill_hash_function()
2434 sizeof(*rss->hash_key), 0); in ena_com_get_hash_function()
2450 struct ena_admin_feature_rss_flow_hash_control *hash_key = in ena_com_get_hash_key() local
2451 ena_dev->rss.hash_key; in ena_com_get_hash_key()
2454 memcpy(key, hash_key->key, in ena_com_get_hash_key()
2455 (size_t)(hash_key->key_parts) * sizeof(hash_key->key[0])); in ena_com_get_hash_key()