Lines Matching refs:cs_cmpl
886 struct hl_cs_compl *cs_cmpl; in allocate_cs() local
921 cs_cmpl = kzalloc(sizeof(*cs_cmpl), GFP_ATOMIC); in allocate_cs()
922 if (!cs_cmpl) in allocate_cs()
923 cs_cmpl = kzalloc(sizeof(*cs_cmpl), GFP_KERNEL); in allocate_cs()
925 if (!cs_cmpl) { in allocate_cs()
945 cs_cmpl->hdev = hdev; in allocate_cs()
946 cs_cmpl->type = cs->type; in allocate_cs()
947 spin_lock_init(&cs_cmpl->lock); in allocate_cs()
948 cs->fence = &cs_cmpl->base_fence; in allocate_cs()
952 cs_cmpl->cs_seq = ctx->cs_sequence; in allocate_cs()
953 other = ctx->cs_pending[cs_cmpl->cs_seq & in allocate_cs()
978 hl_fence_init(&cs_cmpl->base_fence, cs_cmpl->cs_seq); in allocate_cs()
980 cs->sequence = cs_cmpl->cs_seq; in allocate_cs()
982 ctx->cs_pending[cs_cmpl->cs_seq & in allocate_cs()
984 &cs_cmpl->base_fence; in allocate_cs()
987 hl_fence_get(&cs_cmpl->base_fence); in allocate_cs()
1001 kfree(cs_cmpl); in allocate_cs()