Searched refs:qos_free_list (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/staging/gdm72xx/
H A Dgdm_qos.c32 } qos_free_list; variable in typeref:struct:__anon9804
36 qos_free_list.cnt = 0; init_qos_entry_list()
37 INIT_LIST_HEAD(&qos_free_list.head); init_qos_entry_list()
38 spin_lock_init(&qos_free_list.lock); init_qos_entry_list()
46 spin_lock_irqsave(&qos_free_list.lock, flags); alloc_qos_entry()
47 if (qos_free_list.cnt) { alloc_qos_entry()
48 entry = list_entry(qos_free_list.head.prev, struct qos_entry_s, alloc_qos_entry()
51 qos_free_list.cnt--; alloc_qos_entry()
52 spin_unlock_irqrestore(&qos_free_list.lock, flags); alloc_qos_entry()
55 spin_unlock_irqrestore(&qos_free_list.lock, flags); alloc_qos_entry()
65 spin_lock_irqsave(&qos_free_list.lock, flags); free_qos_entry()
66 if (qos_free_list.cnt < MAX_FREE_LIST_CNT) { free_qos_entry()
67 list_add(&qentry->list, &qos_free_list.head); free_qos_entry()
68 qos_free_list.cnt++; free_qos_entry()
69 spin_unlock_irqrestore(&qos_free_list.lock, flags); free_qos_entry()
72 spin_unlock_irqrestore(&qos_free_list.lock, flags); free_qos_entry()
267 if (qcb->qos_list_cnt && !qos_free_list.cnt) { gdm_qos_send_hci_pkt()

Completed in 71 milliseconds