Lines Matching refs:cs_cmpl
904 struct hl_cs_compl *cs_cmpl; in allocate_cs() local
939 cs_cmpl = kzalloc(sizeof(*cs_cmpl), GFP_ATOMIC); in allocate_cs()
940 if (!cs_cmpl) in allocate_cs()
941 cs_cmpl = kzalloc(sizeof(*cs_cmpl), GFP_KERNEL); in allocate_cs()
943 if (!cs_cmpl) { in allocate_cs()
963 cs_cmpl->hdev = hdev; in allocate_cs()
964 cs_cmpl->type = cs->type; in allocate_cs()
965 spin_lock_init(&cs_cmpl->lock); in allocate_cs()
966 cs->fence = &cs_cmpl->base_fence; in allocate_cs()
970 cs_cmpl->cs_seq = ctx->cs_sequence; in allocate_cs()
971 other = ctx->cs_pending[cs_cmpl->cs_seq & in allocate_cs()
996 hl_fence_init(&cs_cmpl->base_fence, cs_cmpl->cs_seq); in allocate_cs()
998 cs->sequence = cs_cmpl->cs_seq; in allocate_cs()
1000 ctx->cs_pending[cs_cmpl->cs_seq & in allocate_cs()
1002 &cs_cmpl->base_fence; in allocate_cs()
1005 hl_fence_get(&cs_cmpl->base_fence); in allocate_cs()
1019 kfree(cs_cmpl); in allocate_cs()