Home
last modified time | relevance | path

Searched refs:outcome_store (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/drivers/accel/habanalabs/common/
Dcontext.c217 INIT_LIST_HEAD(&ctx->outcome_store.used_list); in hl_ctx_init()
218 INIT_LIST_HEAD(&ctx->outcome_store.free_list); in hl_ctx_init()
219 hash_init(ctx->outcome_store.outcome_map); in hl_ctx_init()
220 for (i = 0; i < ARRAY_SIZE(ctx->outcome_store.nodes_pool); ++i) in hl_ctx_init()
221 list_add(&ctx->outcome_store.nodes_pool[i].list_link, in hl_ctx_init()
222 &ctx->outcome_store.free_list); in hl_ctx_init()
Dcommand_submission.c40 struct hl_cs_outcome_store *outcome_store, in hl_push_cs_outcome() argument
66 spin_lock_irqsave(&outcome_store->db_lock, flags); in hl_push_cs_outcome()
68 if (list_empty(&outcome_store->free_list)) { in hl_push_cs_outcome()
69 node = list_last_entry(&outcome_store->used_list, in hl_push_cs_outcome()
74 node = list_last_entry(&outcome_store->free_list, in hl_push_cs_outcome()
84 list_add(&node->list_link, &outcome_store->used_list); in hl_push_cs_outcome()
85 hash_add(outcome_store->outcome_map, &node->map_link, node->seq); in hl_push_cs_outcome()
87 spin_unlock_irqrestore(&outcome_store->db_lock, flags); in hl_push_cs_outcome()
90 static bool hl_pop_cs_outcome(struct hl_cs_outcome_store *outcome_store, in hl_pop_cs_outcome() argument
96 spin_lock_irqsave(&outcome_store->db_lock, flags); in hl_pop_cs_outcome()
[all …]
Dhabanalabs.h1872 struct hl_cs_outcome_store outcome_store; member