Lines Matching refs:hash_key
1151 struct ena_admin_feature_rss_flow_hash_control *hash_key = in ena_com_hash_key_fill_default_key() local
1152 (ena_dev->rss).hash_key; in ena_com_hash_key_fill_default_key()
1154 ENA_RSS_FILL_KEY(&hash_key->key, sizeof(hash_key->key)); in ena_com_hash_key_fill_default_key()
1158 hash_key->key_parts = ENA_ADMIN_RSS_KEY_PARTS; in ena_com_hash_key_fill_default_key()
1169 sizeof(*rss->hash_key), in ena_com_hash_key_allocate()
1170 rss->hash_key, in ena_com_hash_key_allocate()
1174 if (unlikely(!rss->hash_key)) in ena_com_hash_key_allocate()
1184 if (rss->hash_key) in ena_com_hash_key_destroy()
1186 sizeof(*rss->hash_key), in ena_com_hash_key_destroy()
1187 rss->hash_key, in ena_com_hash_key_destroy()
1190 rss->hash_key = NULL; in ena_com_hash_key_destroy()
2886 cmd.control_buffer.length = sizeof(*rss->hash_key); in ena_com_set_hash_function()
2906 struct ena_admin_feature_rss_flow_hash_control *hash_key; in ena_com_fill_hash_function() local
2912 hash_key = rss->hash_key; in ena_com_fill_hash_function()
2921 sizeof(*rss->hash_key), 0); in ena_com_fill_hash_function()
2931 if (key_len != sizeof(hash_key->key)) { in ena_com_fill_hash_function()
2933 key_len, sizeof(hash_key->key)); in ena_com_fill_hash_function()
2936 memcpy(hash_key->key, key, key_len); in ena_com_fill_hash_function()
2937 hash_key->key_parts = key_len / sizeof(hash_key->key[0]); in ena_com_fill_hash_function()
2965 sizeof(*rss->hash_key), 0); in ena_com_get_hash_function()
2981 struct ena_admin_feature_rss_flow_hash_control *hash_key = in ena_com_get_hash_key() local
2982 ena_dev->rss.hash_key; in ena_com_get_hash_key()
2985 memcpy(key, hash_key->key, in ena_com_get_hash_key()
2986 (size_t)(hash_key->key_parts) * sizeof(hash_key->key[0])); in ena_com_get_hash_key()