Searched refs:outcome_store (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/drivers/accel/habanalabs/common/ |
D | context.c | 219 INIT_LIST_HEAD(&ctx->outcome_store.used_list); in hl_ctx_init() 220 INIT_LIST_HEAD(&ctx->outcome_store.free_list); in hl_ctx_init() 221 hash_init(ctx->outcome_store.outcome_map); in hl_ctx_init() 222 for (i = 0; i < ARRAY_SIZE(ctx->outcome_store.nodes_pool); ++i) in hl_ctx_init() 223 list_add(&ctx->outcome_store.nodes_pool[i].list_link, in hl_ctx_init() 224 &ctx->outcome_store.free_list); in hl_ctx_init()
|
D | command_submission.c | 58 struct hl_cs_outcome_store *outcome_store, in hl_push_cs_outcome() argument 84 spin_lock_irqsave(&outcome_store->db_lock, flags); in hl_push_cs_outcome() 86 if (list_empty(&outcome_store->free_list)) { in hl_push_cs_outcome() 87 node = list_last_entry(&outcome_store->used_list, in hl_push_cs_outcome() 92 node = list_last_entry(&outcome_store->free_list, in hl_push_cs_outcome() 102 list_add(&node->list_link, &outcome_store->used_list); in hl_push_cs_outcome() 103 hash_add(outcome_store->outcome_map, &node->map_link, node->seq); in hl_push_cs_outcome() 105 spin_unlock_irqrestore(&outcome_store->db_lock, flags); in hl_push_cs_outcome() 108 static bool hl_pop_cs_outcome(struct hl_cs_outcome_store *outcome_store, in hl_pop_cs_outcome() argument 114 spin_lock_irqsave(&outcome_store->db_lock, flags); in hl_pop_cs_outcome() [all …]
|
D | habanalabs.h | 1937 struct hl_cs_outcome_store outcome_store; member
|