Lines Matching +full:0 +full:xfffffe00
20 static unsigned int video_nr[] = {[0 ... (CX25821_MAXBOARDS - 1)] = UNSET };
34 #define FORMAT_FLAGS_PACKED 0x01
52 for (i = 0; i < ARRAY_SIZE(formats); i++) in cx25821_format_by_fourcc()
63 int tmp = 0; in cx25821_start_video_dma()
73 cx_set(channel->int_msk, 0x11); in cx25821_start_video_dma()
76 cx_write(channel->dma_ctl, 0x11); /* FIFO and RISC enable */ in cx25821_start_video_dma()
80 cx_write(VID_CH_MODE_SEL, tmp & 0xFFFFFE00); in cx25821_start_video_dma()
82 return 0; in cx25821_start_video_dma()
87 int handled = 0; in cx25821_video_irq()
92 if (0 == (status & mask)) in cx25821_video_irq()
101 cx_clear(channel->dma_ctl, 0x11); in cx25821_video_irq()
135 return sizes[0] < size ? -EINVAL : 0; in cx25821_queue_setup()
138 sizes[0] = size; in cx25821_queue_setup()
139 return 0; in cx25821_queue_setup()
149 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in cx25821_buffer_prepare()
159 if (vb2_plane_size(vb, 0) < chan->height * buf->bpl) in cx25821_buffer_prepare()
161 vb2_set_plane_payload(vb, 0, chan->height * buf->bpl); in cx25821_buffer_prepare()
180 sgt->sgl, 0, UNSET, in cx25821_buffer_prepare()
181 buf->bpl, 0, chan->height); in cx25821_buffer_prepare()
185 sgt->sgl, UNSET, 0, in cx25821_buffer_prepare()
186 buf->bpl, 0, chan->height); in cx25821_buffer_prepare()
190 line0_offset = 0; in cx25821_buffer_prepare()
201 0, buf->bpl * (chan->height >> 1), in cx25821_buffer_prepare()
202 buf->bpl, 0, chan->height >> 1); in cx25821_buffer_prepare()
207 buf->bpl * (chan->height >> 1), 0, in cx25821_buffer_prepare()
208 buf->bpl, 0, chan->height >> 1); in cx25821_buffer_prepare()
216 dprintk(2, "[%p/%d] buffer_prep - %dx%d %dbpp 0x%08x - dma=0x%08lx\n", in cx25821_buffer_prepare()
246 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in cx25821_buffer_queue()
248 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ in cx25821_buffer_queue()
253 buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); in cx25821_buffer_queue()
269 dmaq->count = 0; in cx25821_start_streaming()
271 return 0; in cx25821_start_streaming()
281 cx_write(chan->sram_channels->dma_ctl, 0); /* FIFO and RISC disable */ in cx25821_stop_streaming()
314 return 0; in cx25821_vidioc_enum_fmt_vid_cap()
330 return 0; in cx25821_vidioc_g_fmt_vid_cap()
368 return 0; in cx25821_vidioc_try_fmt_vid_cap()
381 if (0 != err) in vidioc_s_fmt_vid_cap()
400 chan->use_cif_resolution = 0; in vidioc_s_fmt_vid_cap()
404 return 0; in vidioc_s_fmt_vid_cap()
412 u32 tmp = 0; in vidioc_log_status()
415 pr_info("Video input 0 is %s\n", in vidioc_log_status()
416 (tmp & 0x11) ? "streaming" : "stopped"); in vidioc_log_status()
417 return 0; in vidioc_log_status()
433 return 0; in cx25821_vidioc_querycap()
441 return 0; in cx25821_vidioc_g_std()
451 return 0; in cx25821_vidioc_s_std()
459 return 0; in cx25821_vidioc_s_std()
471 return 0; in cx25821_vidioc_enum_input()
476 *i = 0; in cx25821_vidioc_g_input()
477 return 0; in cx25821_vidioc_g_input()
482 return i ? -EINVAL : 0; in cx25821_vidioc_s_input()
507 return 0; in cx25821_s_ctrl()
519 return 0; in cx25821_vidioc_enum_output()
524 *o = 0; in cx25821_vidioc_g_output()
525 return 0; in cx25821_vidioc_g_output()
530 return o ? -EINVAL : 0; in cx25821_vidioc_s_output()
549 return 0; in cx25821_vidioc_try_fmt_vid_out()
560 if (0 != err) in vidioc_s_fmt_vid_out()
571 return 0; in vidioc_s_fmt_vid_out()
677 for (i = 0; i < MAX_VID_CAP_CHANNEL_NUM - 1; ++i) { in cx25821_video_register()
690 V4L2_CID_BRIGHTNESS, 0, 10000, 1, 6200); in cx25821_video_register()
692 V4L2_CID_CONTRAST, 0, 10000, 1, 5000); in cx25821_video_register()
694 V4L2_CID_SATURATION, 0, 10000, 1, 5000); in cx25821_video_register()
696 V4L2_CID_HUE, 0, 10000, 1, 5000); in cx25821_video_register()
722 cx_write(chan->sram_channels->int_stat, 0xffffffff); in cx25821_video_register()
744 if (err < 0) in cx25821_video_register()
763 if (err < 0) in cx25821_video_register()
768 cx_set(PCI_INT_MSK, 0xff); in cx25821_video_register()
770 return 0; in cx25821_video_register()
773 while (i >= 0) in cx25821_video_register()