Home
last modified time | relevance | path

Searched refs:wq (Results 1 – 25 of 95) sorted by relevance

1234

/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/osal/
Dosal_wait.c37 wait_queue_head_t *wq = NULL; in osal_wait_init() local
42 wq = (wait_queue_head_t *)kmalloc(sizeof(wait_queue_head_t), GFP_ATOMIC); in osal_wait_init()
43 if (wq == NULL) { in osal_wait_init()
47 init_waitqueue_head(wq); in osal_wait_init()
48 wait->wait = wq; in osal_wait_init()
54 wait_queue_head_t *wq = NULL; in osal_wait_interruptible() local
61 wq = (wait_queue_head_t *)(wait->wait); in osal_wait_interruptible()
62 if (wq == NULL) { in osal_wait_interruptible()
68 return wait_event_interruptible((*wq), OSAL_WAIT_CONDITION_TRUE); in osal_wait_interruptible()
71 return wait_event_interruptible((*wq), func(param)); in osal_wait_interruptible()
[all …]
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/frame_sink/encoder/h264/
Dencoder.c455 static void hcodec_prog_qtbl(struct encode_wq_s *wq) in hcodec_prog_qtbl() argument
462 wq->quant_tbl_i4[0]); in hcodec_prog_qtbl()
464 wq->quant_tbl_i4[1]); in hcodec_prog_qtbl()
466 wq->quant_tbl_i4[2]); in hcodec_prog_qtbl()
468 wq->quant_tbl_i4[3]); in hcodec_prog_qtbl()
470 wq->quant_tbl_i4[4]); in hcodec_prog_qtbl()
472 wq->quant_tbl_i4[5]); in hcodec_prog_qtbl()
474 wq->quant_tbl_i4[6]); in hcodec_prog_qtbl()
476 wq->quant_tbl_i4[7]); in hcodec_prog_qtbl()
483 wq->quant_tbl_i16[0]); in hcodec_prog_qtbl()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/
Dosal_wait.c36 wait_queue_head_t *wq = NULL; in osal_wait_init() local
41 wq = (wait_queue_head_t *)kmalloc(sizeof(wait_queue_head_t), GFP_ATOMIC); in osal_wait_init()
42 if (wq == NULL) { in osal_wait_init()
46 init_waitqueue_head(wq); in osal_wait_init()
47 wait->wait = wq; in osal_wait_init()
53 wait_queue_head_t *wq = NULL; in osal_wait_interruptible() local
63 wq = (wait_queue_head_t *)(wait->wait); in osal_wait_interruptible()
64 if (wq == NULL) { in osal_wait_interruptible()
68 prepare_to_wait(wq, &__wait, TASK_INTERRUPTIBLE); in osal_wait_interruptible()
83 finish_wait(wq, &__wait); in osal_wait_interruptible()
[all …]
/device/soc/amlogic/a311d/soc/amlogic/ge2d/
Dge2dgen.c130 void ge2dgen_src(struct ge2d_context_s *wq, unsigned int canvas_addr, unsigned int format, unsigned… in ge2dgen_src() argument
133 struct ge2d_src1_data_s *src1_data_cfg = ge2d_wq_get_src_data(wq); in ge2dgen_src()
134 struct ge2d_src1_gen_s *src1_gen_cfg = ge2d_wq_get_src_gen(wq); in ge2dgen_src()
135 struct ge2d_dp_gen_s *dp_gen_cfg = ge2d_wq_get_dp_gen(wq); in ge2dgen_src()
136 struct ge2d_src2_dst_data_s *src2_dst_data_cfg = ge2d_wq_get_dst_data(wq); in ge2dgen_src()
145 wq->config.update_flag |= UPDATE_SRC_DATA; in ge2dgen_src()
146 wq->config.update_flag |= UPDATE_SRC_GEN; in ge2dgen_src()
147 wq->config.update_flag |= UPDATE_DP_GEN; in ge2dgen_src()
151 void ge2dgen_antiflicker(struct ge2d_context_s *wq, unsigned long enable) in ge2dgen_antiflicker() argument
153 struct ge2d_dp_gen_s *dp_gen_cfg = ge2d_wq_get_dp_gen(wq); in ge2dgen_antiflicker()
[all …]
Dge2dgen.h21 void ge2dgen_src(struct ge2d_context_s *wq, unsigned int canvas_addr, unsigned int format, unsigned…
24 void ge2dgen_post_release_src1buf(struct ge2d_context_s *wq, unsigned int buffer);
26 void ge2dgen_post_release_src1canvas(struct ge2d_context_s *wq);
28 void ge2dgen_post_release_src2buf(struct ge2d_context_s *wq, unsigned int buffer);
30 void ge2dgen_post_release_src2canvas(struct ge2d_context_s *wq);
32 void ge2dgen_src2(struct ge2d_context_s *wq, unsigned int canvas_addr, unsigned int format, unsigne…
35 void ge2dgen_src2_clip(struct ge2d_context_s *wq, int x, int y, int w, int h);
36 void ge2dgen_antiflicker(struct ge2d_context_s *wq, unsigned long enable);
37 void ge2dgen_rendering_dir(struct ge2d_context_s *wq, int src1_xrev, int src1_yrev, int dst_xrev, i…
40 void ge2dgen_dst(struct ge2d_context_s *wq, unsigned int canvas_addr, unsigned int format, unsigned…
[all …]
Dbitblt.c21 static void _bitblt(struct ge2d_context_s *wq, int src_x, int src_y, int w, int h, int dst_x, int d… in _bitblt() argument
23 struct ge2d_cmd_s *ge2d_cmd_cfg = ge2d_wq_get_cmd(wq); in _bitblt()
48 ge2d_wq_add_work(wq); in _bitblt()
51 static void _bitblt_noalpha(struct ge2d_context_s *wq, int src_x, int src_y, int w, int h, int dst_… in _bitblt_noalpha() argument
54 struct ge2d_cmd_s *ge2d_cmd_cfg = ge2d_wq_get_cmd(wq); in _bitblt_noalpha()
55 struct ge2d_dp_gen_s *dp_gen_cfg = ge2d_wq_get_dp_gen(wq); in _bitblt_noalpha()
59 wq->config.update_flag |= UPDATE_DP_GEN; in _bitblt_noalpha()
84 ge2d_wq_add_work(wq); in _bitblt_noalpha()
87 void bitblt(struct ge2d_context_s *wq, int src_x, int src_y, int w, int h, int dst_x, int dst_y) in bitblt() argument
89 _bitblt(wq, src_x, src_y, w, h, dst_x, dst_y, 1); in bitblt()
[all …]
Dstretchblt.c21 static void _stretchblt(struct ge2d_context_s *wq, int src_x, int src_y, int src_w, int src_h, int … in _stretchblt() argument
24 struct ge2d_cmd_s *ge2d_cmd_cfg = ge2d_wq_get_cmd(wq); in _stretchblt()
52 ge2d_wq_add_work(wq); in _stretchblt()
55 void stretchblt(struct ge2d_context_s *wq, int src_x, int src_y, int src_w, int src_h, int dst_x, i… in stretchblt() argument
58 _stretchblt(wq, src_x, src_y, src_w, src_h, dst_x, dst_y, dst_w, dst_h, 1); in stretchblt()
62 void stretchblt_noblk(struct ge2d_context_s *wq, int src_x, int src_y, int src_w, int src_h, int ds… in stretchblt_noblk() argument
65 _stretchblt(wq, src_x, src_y, src_w, src_h, dst_x, dst_y, dst_w, dst_h, 0); in stretchblt_noblk()
69 static void _stretchblt_noalpha(struct ge2d_context_s *wq, int src_x, int src_y, int src_w, int src… in _stretchblt_noalpha() argument
72 struct ge2d_cmd_s *ge2d_cmd_cfg = ge2d_wq_get_cmd(wq); in _stretchblt_noalpha()
73 struct ge2d_dp_gen_s *dp_gen_cfg = ge2d_wq_get_dp_gen(wq); in _stretchblt_noalpha()
[all …]
Dfillrect.c24 static void _fillrect(struct ge2d_context_s *wq, int x, int y, int w, int h, unsigned int color, in… in _fillrect() argument
26 struct ge2d_cmd_s *ge2d_cmd_cfg = ge2d_wq_get_cmd(wq); in _fillrect()
28 ge2dgen_src_color(wq, color); in _fillrect()
54 ge2dgen_disable_matrix(wq); in _fillrect()
56 ge2d_wq_add_work(wq); in _fillrect()
59 void fillrect(struct ge2d_context_s *wq, int x, int y, int w, int h, unsigned int color) in fillrect() argument
61 _fillrect(wq, x, y, w, h, color, 1); in fillrect()
65 void fillrect_noblk(struct ge2d_context_s *wq, int x, int y, int w, int h, unsigned int color) in fillrect_noblk() argument
67 _fillrect(wq, x, y, w, h, color, 0); in fillrect_noblk()
Dblend.c24 void blend(struct ge2d_context_s *wq, int src_x, int src_y, int src_w, int src_h, int src2_x, int s… in blend() argument
27 struct ge2d_cmd_s *ge2d_cmd_cfg = ge2d_wq_get_cmd(wq); in blend()
84 ge2d_wq_add_work(wq); in blend()
88 void blend_noblk(struct ge2d_context_s *wq, int src_x, int src_y, int src_w, int src_h, int src2_x,… in blend_noblk() argument
91 struct ge2d_cmd_s *ge2d_cmd_cfg = ge2d_wq_get_cmd(wq); in blend_noblk()
147 ge2d_wq_add_work(wq); in blend_noblk()
150 void blend_noalpha(struct ge2d_context_s *wq, int src_x, int src_y, int src_w, int src_h, int src2_… in blend_noalpha() argument
153 struct ge2d_cmd_s *ge2d_cmd_cfg = ge2d_wq_get_cmd(wq); in blend_noalpha()
207 ge2d_wq_add_work(wq); in blend_noalpha()
211 void blend_noalpha_noblk(struct ge2d_context_s *wq, int src_x, int src_y, int src_w, int src_h, int… in blend_noalpha_noblk() argument
[all …]
Dge2d_wq.c222 struct ge2d_context_s *wq = ge2d_manager.current_wq; in work_queue_status_show() local
224 if (wq == 0) { in work_queue_status_show()
227 return snprintf(buf, 40L, "cmd count in queue:%d\n", get_queue_member_count(&wq->work_queue)); in work_queue_status_show()
232 struct ge2d_context_s *wq = ge2d_manager.current_wq; in free_queue_status_show() local
234 if (wq == 0) { in free_queue_status_show()
237 return snprintf(buf, 40L, "free space :%d\n", get_queue_member_count(&wq->free_queue)); in free_queue_status_show()
375 static int ge2d_process_work_queue(struct ge2d_context_s *wq) in ge2d_process_work_queue() argument
380 struct list_head *head = &wq->work_queue, *pos; in ge2d_process_work_queue()
384 if (wq->ge2d_request_exit) { in ge2d_process_work_queue()
390 if (wq != ge2d_manager.last_wq) { /* maybe */ in ge2d_process_work_queue()
[all …]
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/frame_sink/encoder/jpeg/
Djpegenc.c1622 static void prepare_jpeg_header(struct jpegenc_wq_s *wq) in prepare_jpeg_header() argument
1641 u8 *assitbuf = (u8 *)wq->AssitstreamStartVirtAddr; in prepare_jpeg_header()
1643 if (wq->cmd.output_fmt >= JPEGENC_MAX_FRAME_FMT) in prepare_jpeg_header()
1645 switch (wq->cmd.output_fmt) { in prepare_jpeg_header()
1663 pic_width = wq->cmd.encoder_width; in prepare_jpeg_header()
1664 pic_height = wq->cmd.encoder_height; in prepare_jpeg_header()
1924 wq->headbytes = header_bytes; in prepare_jpeg_header()
1927 static void init_jpeg_encoder(struct jpegenc_wq_s *wq) in init_jpeg_encoder() argument
1943 if (wq->cmd.output_fmt >= JPEGENC_MAX_FRAME_FMT) in init_jpeg_encoder()
1945 switch (wq->cmd.output_fmt) { in init_jpeg_encoder()
[all …]
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/include/linux/amlogic/media/ge2d/
Dge2d_func.h60 void bitblt(struct ge2d_context_s *wq,
64 void bitblt_noblk(struct ge2d_context_s *wq,
68 void bitblt_noalpha(struct ge2d_context_s *wq,
72 void bitblt_noalpha_noblk(struct ge2d_context_s *wq,
77 void stretchblt(struct ge2d_context_s *wq,
81 void stretchblt_noblk(struct ge2d_context_s *wq,
85 void stretchblt_noalpha(struct ge2d_context_s *wq,
89 void stretchblt_noalpha_noblk(struct ge2d_context_s *wq,
94 void fillrect(struct ge2d_context_s *wq,
97 void fillrect_noblk(struct ge2d_context_s *wq,
[all …]
Dge2d.h1198 extern int destroy_ge2d_work_queue(struct ge2d_context_s *wq);
1199 extern int ge2d_wq_remove_config(struct ge2d_context_s *wq);
1200 extern void ge2d_wq_set_scale_coef(struct ge2d_context_s *wq,
1205 extern struct ge2d_src1_data_s *ge2d_wq_get_src_data(struct ge2d_context_s *wq);
1206 extern struct ge2d_src1_gen_s *ge2d_wq_get_src_gen(struct ge2d_context_s *wq);
1208 *ge2d_wq_get_dst_data(struct ge2d_context_s *wq);
1210 *ge2d_wq_get_dst_gen(struct ge2d_context_s *wq);
1211 extern struct ge2d_dp_gen_s *ge2d_wq_get_dp_gen(struct ge2d_context_s *wq);
1212 extern struct ge2d_cmd_s *ge2d_wq_get_cmd(struct ge2d_context_s *wq);
1213 extern int ge2d_wq_add_work(struct ge2d_context_s *wq);
/device/soc/amlogic/a311d/soc/include/linux/amlogic/media/ge2d/
Dge2d_func.h53 void bitblt(struct ge2d_context_s *wq, int src_x, int src_y, int w, int h, int dst_x, int dst_y);
55 void bitblt_noblk(struct ge2d_context_s *wq, int src_x, int src_y, int w, int h, int dst_x, int dst…
57 void bitblt_noalpha(struct ge2d_context_s *wq, int src_x, int src_y, int w, int h, int dst_x, int d…
59 void bitblt_noalpha_noblk(struct ge2d_context_s *wq, int src_x, int src_y, int w, int h, int dst_x,…
62 void stretchblt(struct ge2d_context_s *wq, int src_x, int src_y, int src_w, int src_h, int dst_x, i…
65 void stretchblt_noblk(struct ge2d_context_s *wq, int src_x, int src_y, int src_w, int src_h, int ds…
68 void stretchblt_noalpha(struct ge2d_context_s *wq, int src_x, int src_y, int src_w, int src_h, int …
71 void stretchblt_noalpha_noblk(struct ge2d_context_s *wq, int src_x, int src_y, int src_w, int src_h…
75 void fillrect(struct ge2d_context_s *wq, int x, int y, int w, int h, unsigned int color);
77 void fillrect_noblk(struct ge2d_context_s *wq, int x, int y, int w, int h, unsigned int color);
[all …]
Dge2d.h1166 extern int destroy_ge2d_work_queue(struct ge2d_context_s *wq);
1167 extern int ge2d_wq_remove_config(struct ge2d_context_s *wq);
1168 extern void ge2d_wq_set_scale_coef(struct ge2d_context_s *wq, unsigned int v_scale_coef, unsigned i…
1170 extern struct ge2d_src1_data_s *ge2d_wq_get_src_data(struct ge2d_context_s *wq);
1171 extern struct ge2d_src1_gen_s *ge2d_wq_get_src_gen(struct ge2d_context_s *wq);
1172 extern struct ge2d_src2_dst_data_s *ge2d_wq_get_dst_data(struct ge2d_context_s *wq);
1173 extern struct ge2d_src2_dst_gen_s *ge2d_wq_get_dst_gen(struct ge2d_context_s *wq);
1174 extern struct ge2d_dp_gen_s *ge2d_wq_get_dp_gen(struct ge2d_context_s *wq);
1175 extern struct ge2d_cmd_s *ge2d_wq_get_cmd(struct ge2d_context_s *wq);
1176 extern int ge2d_wq_add_work(struct ge2d_context_s *wq);
/device/soc/rockchip/common/sdk_linux/kernel/sched/
Dwait.c331 int do_wait_intr(wait_queue_head_t *wq, wait_queue_entry_t *wait) in do_wait_intr() argument
334 __add_wait_queue_entry_tail(wq, wait); in do_wait_intr()
342 spin_unlock(&wq->lock); in do_wait_intr()
344 spin_lock(&wq->lock); in do_wait_intr()
350 int do_wait_intr_irq(wait_queue_head_t *wq, wait_queue_entry_t *wait) in do_wait_intr_irq() argument
353 __add_wait_queue_entry_tail(wq, wait); in do_wait_intr_irq()
361 spin_unlock_irq(&wq->lock); in do_wait_intr_irq()
363 spin_lock_irq(&wq->lock); in do_wait_intr_irq()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/
Dmali_osk_irq.c39 wait_queue_head_t wq; member
49 wake_up(&data->wq); in test_interrupt_upper_half()
78 init_waitqueue_head(&data.wq); in test_interrupt()
81 wait_event_timeout(data.wq, data.interrupt_received, 100); in test_interrupt()
Dmali_internal_sync.c93 wake_up_all(&sync_fence->wq); in mali_internal_fence_check_cb_func()
100 wake_up_all(&sync_fence->wq); in mali_internal_fence_check_cb_func()
548 spin_lock_irqsave(&sync_fence->wq.lock, flags); in mali_internal_sync_fence_wait_async()
552 __add_wait_queue_tail(&sync_fence->wq, &waiter->work); in mali_internal_sync_fence_wait_async()
553 spin_unlock_irqrestore(&sync_fence->wq.lock, flags); in mali_internal_sync_fence_wait_async()
585 spin_lock_irqsave(&sync_fence->wq.lock, flags); in mali_internal_sync_fence_wait_async()
590 __add_wait_queue_entry_tail(&sync_fence->wq, &waiter->work); in mali_internal_sync_fence_wait_async()
592 __add_wait_queue_tail(&sync_fence->wq, &waiter->work); in mali_internal_sync_fence_wait_async()
595 spin_unlock_irqrestore(&sync_fence->wq.lock, flags); in mali_internal_sync_fence_wait_async()
610 spin_lock_irqsave(&sync_fence->wq.lock, flags); in mali_internal_sync_fence_cancel_async()
[all …]
/device/soc/rockchip/common/sdk_linux/include/linux/
Dfreezer.h268 #define wait_event_freezekillable_unsafe(wq, condition) … argument
272 …__retval = wait_event_killable(wq, (condition)); …
352 #define wait_event_freezekillable_unsafe(wq, condition) wait_event_killable(wq, condition) argument
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/
Dmali_osk_irq.c40 wait_queue_head_t wq; member
50 wake_up(&data->wq); in test_interrupt_upper_half()
77 init_waitqueue_head(&data.wq); in test_interrupt()
80 wait_event_timeout(data.wq, data.interrupt_received, 0x64); in test_interrupt()
Dmali_internal_sync.c104 wake_up_all(&sync_fence->wq); in mali_internal_fence_check_cb_func()
114 wake_up_all(&sync_fence->wq); in mali_internal_fence_check_cb_func()
611 spin_lock_irqsave(&sync_fence->wq.lock, flags); in mali_internal_sync_fence_wait_async()
614 __add_wait_queue_tail(&sync_fence->wq, &waiter->work); in mali_internal_sync_fence_wait_async()
616 spin_unlock_irqrestore(&sync_fence->wq.lock, flags); in mali_internal_sync_fence_wait_async()
656 spin_lock_irqsave(&sync_fence->wq.lock, flags); in mali_internal_sync_fence_wait_async()
660 __add_wait_queue_entry_tail(&sync_fence->wq, &waiter->work); in mali_internal_sync_fence_wait_async()
662 __add_wait_queue_tail(&sync_fence->wq, &waiter->work); in mali_internal_sync_fence_wait_async()
665 spin_unlock_irqrestore(&sync_fence->wq.lock, flags); in mali_internal_sync_fence_wait_async()
681 spin_lock_irqsave(&sync_fence->wq.lock, flags); in mali_internal_sync_fence_cancel_async()
[all …]
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/
Dhnd_pktq.c801 struct pktq_prec wq; in _pktq_pfilter() local
814 wq = *q; in _pktq_pfilter()
821 q->dequeue_count += wq.n_pkts; in _pktq_pfilter()
824 pq->n_pkts_tot -= wq.n_pkts; in _pktq_pfilter()
832 while ((p = wq.head) != NULL) { in _pktq_pfilter()
834 wq.head = PKTLINK(p); in _pktq_pfilter()
836 wq.n_pkts--; in _pktq_pfilter()
839 wq.dequeue_count++; in _pktq_pfilter()
866 ASSERT(wq.n_pkts == 0); in _pktq_pfilter()
920 struct pktq_prec wq; in spktq_filter() local
[all …]
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
Dhnd_pktq.c733 struct pktq_prec wq; in _pktq_pfilter() local
744 wq = *q; in _pktq_pfilter()
751 q->dequeue_count += wq.n_pkts; in _pktq_pfilter()
754 pq->n_pkts_tot -= wq.n_pkts; in _pktq_pfilter()
761 while ((p = wq.head) != NULL) { in _pktq_pfilter()
763 wq.head = PKTLINK(p); in _pktq_pfilter()
765 wq.n_pkts--; in _pktq_pfilter()
768 wq.dequeue_count++; in _pktq_pfilter()
795 ASSERT(wq.n_pkts == 0); in _pktq_pfilter()
845 struct pktq_prec wq; in spktq_filter() local
[all …]
/device/board/isoftstone/yangfan/kernel/src/driv/net/rockchip_wlan/rkwifi/bcmdhd/
Dhnd_pktq.c800 struct pktq_prec wq; in _pktq_pfilter() local
811 wq = *q; in _pktq_pfilter()
818 q->dequeue_count += wq.n_pkts; in _pktq_pfilter()
821 pq->n_pkts_tot -= wq.n_pkts; in _pktq_pfilter()
828 while ((p = wq.head) != NULL) { in _pktq_pfilter()
830 wq.head = PKTLINK(p); in _pktq_pfilter()
832 wq.n_pkts--; in _pktq_pfilter()
835 wq.dequeue_count++; in _pktq_pfilter()
862 ASSERT(wq.n_pkts == 0); in _pktq_pfilter()
912 struct pktq_prec wq; in spktq_filter() local
[all …]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/
Dmali_kbase_dma_fence.c121 ret = queue_work(kctx->dma_fence.wq, &katom->work); in kbase_dma_fence_queue_work()
421 destroy_workqueue(kctx->dma_fence.wq); in kbase_dma_fence_term()
422 kctx->dma_fence.wq = NULL; in kbase_dma_fence_term()
429 kctx->dma_fence.wq = alloc_workqueue("mali-fence-%d", WQ_UNBOUND, 1, kctx->pid); in kbase_dma_fence_init()
430 if (!kctx->dma_fence.wq) { in kbase_dma_fence_init()

1234