Home
last modified time | relevance | path

Searched refs:pqueue (Results 1 – 12 of 12) sorted by relevance

/drivers/crypto/marvell/octeontx2/
Dotx2_cptvf_reqmgr.c231 struct otx2_cpt_pending_queue *pqueue, in process_request() argument
260 spin_lock_bh(&pqueue->lock); in process_request()
261 pentry = get_free_pending_entry(pqueue, pqueue->qlen); in process_request()
264 spin_unlock_bh(&pqueue->lock); in process_request()
266 spin_lock_bh(&pqueue->lock); in process_request()
267 pentry = get_free_pending_entry(pqueue, pqueue->qlen); in process_request()
281 pqueue->pending_count > (pqueue->qlen - CPT_IQ_STOP_MARGIN)) { in process_request()
286 pqueue->pending_count++; in process_request()
331 spin_unlock_bh(&pqueue->lock); in process_request()
337 spin_unlock_bh(&pqueue->lock); in process_request()
[all …]
Dotx2_cptvf_main.c176 kfree(lfs->lf[i].pqueue.head); in free_pending_queues()
177 lfs->lf[i].pqueue.head = NULL; in free_pending_queues()
189 lfs->lf[i].pqueue.qlen = OTX2_CPT_INST_QLEN_MSGS; in alloc_pending_queues()
190 size = lfs->lf[i].pqueue.qlen * in alloc_pending_queues()
193 lfs->lf[i].pqueue.head = kzalloc(size, GFP_KERNEL); in alloc_pending_queues()
194 if (!lfs->lf[i].pqueue.head) { in alloc_pending_queues()
200 spin_lock_init(&lfs->lf[i].pqueue.lock); in alloc_pending_queues()
Dotx2_cptlf.h83 struct otx2_cpt_pending_queue pqueue; /* Pending queue */ member
/drivers/crypto/marvell/octeontx/
Dotx_cptvf_reqmgr.c298 struct otx_cpt_pending_queue *pqueue, in process_request() argument
324 spin_lock_bh(&pqueue->lock); in process_request()
325 pentry = get_free_pending_entry(pqueue, pqueue->qlen); in process_request()
328 spin_unlock_bh(&pqueue->lock); in process_request()
330 spin_lock_bh(&pqueue->lock); in process_request()
331 pentry = get_free_pending_entry(pqueue, pqueue->qlen); in process_request()
336 spin_unlock_bh(&pqueue->lock); in process_request()
346 pqueue->pending_count > (pqueue->qlen - CPT_IQ_STOP_MARGIN)) { in process_request()
351 pqueue->pending_count++; in process_request()
394 spin_unlock_bh(&pqueue->lock); in process_request()
[all …]
/drivers/crypto/cavium/cpt/
Dcptvf_reqmanager.c329 struct pending_queue *pqueue = &pqinfo->queue[qno]; in process_pending_queue() local
336 spin_lock_bh(&pqueue->lock); in process_pending_queue()
337 pentry = &pqueue->head[pqueue->front]; in process_pending_queue()
339 spin_unlock_bh(&pqueue->lock); in process_pending_queue()
347 spin_unlock_bh(&pqueue->lock); in process_pending_queue()
360 atomic64_dec((&pqueue->pending_count)); in process_pending_queue()
364 spin_unlock_bh(&pqueue->lock); in process_pending_queue()
374 atomic64_dec((&pqueue->pending_count)); in process_pending_queue()
378 spin_unlock_bh(&pqueue->lock); in process_pending_queue()
385 spin_unlock_bh(&pqueue->lock); in process_pending_queue()
[all …]
/drivers/staging/rtl8712/
Dosdep_service.h42 #define _init_queue(pqueue) \ argument
44 INIT_LIST_HEAD(&((pqueue)->queue)); \
45 spin_lock_init(&((pqueue)->lock)); \
/drivers/staging/rtl8723bs/core/
Drtw_xmit.c2371 struct __queue *pqueue; in enqueue_pending_xmitbuf() local
2374 pqueue = &pxmitpriv->pending_xmitbuf_queue; in enqueue_pending_xmitbuf()
2376 spin_lock_bh(&pqueue->lock); in enqueue_pending_xmitbuf()
2378 list_add_tail(&pxmitbuf->list, get_list_head(pqueue)); in enqueue_pending_xmitbuf()
2379 spin_unlock_bh(&pqueue->lock); in enqueue_pending_xmitbuf()
2386 struct __queue *pqueue; in enqueue_pending_xmitbuf_to_head() local
2388 pqueue = &pxmitpriv->pending_xmitbuf_queue; in enqueue_pending_xmitbuf_to_head()
2390 spin_lock_bh(&pqueue->lock); in enqueue_pending_xmitbuf_to_head()
2392 list_add(&pxmitbuf->list, get_list_head(pqueue)); in enqueue_pending_xmitbuf_to_head()
2393 spin_unlock_bh(&pqueue->lock); in enqueue_pending_xmitbuf_to_head()
[all …]
/drivers/staging/rtl8723bs/hal/
Drtl8723bs_xmit.c570 struct __queue *pqueue; in rtl8723bs_free_xmit_priv() local
576 pqueue = &pxmitpriv->pending_xmitbuf_queue; in rtl8723bs_free_xmit_priv()
577 phead = get_list_head(pqueue); in rtl8723bs_free_xmit_priv()
580 spin_lock_bh(&pqueue->lock); in rtl8723bs_free_xmit_priv()
581 if (!list_empty(&pqueue->queue)) { in rtl8723bs_free_xmit_priv()
587 spin_unlock_bh(&pqueue->lock); in rtl8723bs_free_xmit_priv()
/drivers/staging/rtl8723bs/os_dep/
Dosdep_service.c52 void _rtw_init_queue(struct __queue *pqueue) in _rtw_init_queue() argument
54 INIT_LIST_HEAD(&(pqueue->queue)); in _rtw_init_queue()
56 spin_lock_init(&(pqueue->lock)); in _rtw_init_queue()
/drivers/staging/r8188eu/os_dep/
Dosdep_service.c80 void _rtw_init_queue(struct __queue *pqueue) in _rtw_init_queue() argument
82 INIT_LIST_HEAD(&pqueue->queue); in _rtw_init_queue()
83 spin_lock_init(&pqueue->lock); in _rtw_init_queue()
/drivers/staging/rtl8723bs/include/
Dosdep_service.h74 extern void _rtw_init_queue(struct __queue *pqueue);
/drivers/staging/r8188eu/include/
Dosdep_service.h161 void _rtw_init_queue(struct __queue *pqueue);