Searched refs:outcome_store (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/drivers/misc/habanalabs/common/ |
D | context.c | 207 INIT_LIST_HEAD(&ctx->outcome_store.used_list); in hl_ctx_init() 208 INIT_LIST_HEAD(&ctx->outcome_store.free_list); in hl_ctx_init() 209 hash_init(ctx->outcome_store.outcome_map); in hl_ctx_init() 210 for (i = 0; i < ARRAY_SIZE(ctx->outcome_store.nodes_pool); ++i) in hl_ctx_init() 211 list_add(&ctx->outcome_store.nodes_pool[i].list_link, in hl_ctx_init() 212 &ctx->outcome_store.free_list); in hl_ctx_init()
|
D | command_submission.c | 39 struct hl_cs_outcome_store *outcome_store, in hl_push_cs_outcome() argument 65 spin_lock_irqsave(&outcome_store->db_lock, flags); in hl_push_cs_outcome() 67 if (list_empty(&outcome_store->free_list)) { in hl_push_cs_outcome() 68 node = list_last_entry(&outcome_store->used_list, in hl_push_cs_outcome() 73 node = list_last_entry(&outcome_store->free_list, in hl_push_cs_outcome() 83 list_add(&node->list_link, &outcome_store->used_list); in hl_push_cs_outcome() 84 hash_add(outcome_store->outcome_map, &node->map_link, node->seq); in hl_push_cs_outcome() 86 spin_unlock_irqrestore(&outcome_store->db_lock, flags); in hl_push_cs_outcome() 89 static bool hl_pop_cs_outcome(struct hl_cs_outcome_store *outcome_store, in hl_pop_cs_outcome() argument 95 spin_lock_irqsave(&outcome_store->db_lock, flags); in hl_pop_cs_outcome() [all …]
|
D | habanalabs.h | 1830 struct hl_cs_outcome_store outcome_store; member
|