Lines Matching refs:upr_list
125 static void slic_clear_upr_list(struct slic_upr_list *upr_list) in slic_clear_upr_list() argument
130 spin_lock_bh(&upr_list->lock); in slic_clear_upr_list()
131 list_for_each_entry_safe(upr, tmp, &upr_list->list, list) { in slic_clear_upr_list()
135 upr_list->pending = false; in slic_clear_upr_list()
136 spin_unlock_bh(&upr_list->lock); in slic_clear_upr_list()
151 struct slic_upr_list *upr_list = &sdev->upr_list; in slic_queue_upr() local
154 spin_lock_bh(&upr_list->lock); in slic_queue_upr()
155 pending = upr_list->pending; in slic_queue_upr()
157 list_add_tail(&upr->list, &upr_list->list); in slic_queue_upr()
158 upr_list->pending = true; in slic_queue_upr()
159 spin_unlock_bh(&upr_list->lock); in slic_queue_upr()
167 struct slic_upr_list *upr_list = &sdev->upr_list; in slic_dequeue_upr() local
171 spin_lock_bh(&upr_list->lock); in slic_dequeue_upr()
172 if (!list_empty(&upr_list->list)) { in slic_dequeue_upr()
173 upr = list_first_entry(&upr_list->list, struct slic_upr, list); in slic_dequeue_upr()
176 if (list_empty(&upr_list->list)) in slic_dequeue_upr()
177 upr_list->pending = false; in slic_dequeue_upr()
179 next_upr = list_first_entry(&upr_list->list, in slic_dequeue_upr()
182 spin_unlock_bh(&upr_list->lock); in slic_dequeue_upr()
1259 sdev->upr_list.pending = false; in slic_init_iface()
1393 slic_clear_upr_list(&sdev->upr_list); in slic_close()
1674 INIT_LIST_HEAD(&sdev->upr_list.list); in slic_init()
1675 spin_lock_init(&sdev->upr_list.lock); in slic_init()