Lines Matching refs:qmgr
26 nvkm_falcon_qmgr_seq_acquire(struct nvkm_falcon_qmgr *qmgr) in nvkm_falcon_qmgr_seq_acquire() argument
28 const struct nvkm_subdev *subdev = qmgr->falcon->owner; in nvkm_falcon_qmgr_seq_acquire()
32 mutex_lock(&qmgr->seq.mutex); in nvkm_falcon_qmgr_seq_acquire()
33 index = find_first_zero_bit(qmgr->seq.tbl, NVKM_FALCON_QMGR_SEQ_NUM); in nvkm_falcon_qmgr_seq_acquire()
36 mutex_unlock(&qmgr->seq.mutex); in nvkm_falcon_qmgr_seq_acquire()
40 set_bit(index, qmgr->seq.tbl); in nvkm_falcon_qmgr_seq_acquire()
41 mutex_unlock(&qmgr->seq.mutex); in nvkm_falcon_qmgr_seq_acquire()
43 seq = &qmgr->seq.id[index]; in nvkm_falcon_qmgr_seq_acquire()
49 nvkm_falcon_qmgr_seq_release(struct nvkm_falcon_qmgr *qmgr, in nvkm_falcon_qmgr_seq_release() argument
56 clear_bit(seq->id, qmgr->seq.tbl); in nvkm_falcon_qmgr_seq_release()
62 struct nvkm_falcon_qmgr *qmgr = *pqmgr; in nvkm_falcon_qmgr_del() local
63 if (qmgr) { in nvkm_falcon_qmgr_del()
73 struct nvkm_falcon_qmgr *qmgr; in nvkm_falcon_qmgr_new() local
76 if (!(qmgr = *pqmgr = kzalloc(sizeof(*qmgr), GFP_KERNEL))) in nvkm_falcon_qmgr_new()
79 qmgr->falcon = falcon; in nvkm_falcon_qmgr_new()
80 mutex_init(&qmgr->seq.mutex); in nvkm_falcon_qmgr_new()
82 qmgr->seq.id[i].id = i; in nvkm_falcon_qmgr_new()
83 init_completion(&qmgr->seq.id[i].done); in nvkm_falcon_qmgr_new()