Home
last modified time | relevance | path

Searched refs:bpl (Results 1 – 25 of 37) sorted by relevance

12

/drivers/media/pci/cx25821/
Dcx25821-video-upstream.c43 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup_upstream() argument
56 bpl = (bpl + 7) & ~7; /* alignment */ in cx25821_sram_channel_setup_upstream()
58 lines = ch->fifo_size / bpl; in cx25821_sram_channel_setup_upstream()
67 cx_write(cdt + 16 * i, ch->fifo_start + bpl * i); in cx25821_sram_channel_setup_upstream()
90 cx_write(ch->cnt1_reg, (bpl >> 3) - 1); in cx25821_sram_channel_setup_upstream()
97 unsigned int bpl, u32 sync_line, in cx25821_update_riscprogram() argument
103 int dist_betwn_starts = bpl * 2; in cx25821_update_riscprogram()
114 *(rp++) = cpu_to_le32(RISC_READ | RISC_SOL | RISC_EOL | bpl); in cx25821_update_riscprogram()
130 unsigned int bpl, unsigned int lines, in cx25821_risc_field_upstream() argument
136 int dist_betwn_starts = bpl * 2; in cx25821_risc_field_upstream()
[all …]
Dcx25821-core.c440 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup() argument
453 bpl = (bpl + 7) & ~7; /* alignment */ in cx25821_sram_channel_setup()
455 lines = ch->fifo_size / bpl; in cx25821_sram_channel_setup()
468 cx_write(cdt + 16 * i, ch->fifo_start + bpl * i); in cx25821_sram_channel_setup()
501 cx_write(ch->cnt1_reg, (bpl >> 3) - 1); in cx25821_sram_channel_setup()
508 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup_audio() argument
521 bpl = (bpl + 7) & ~7; /* alignment */ in cx25821_sram_channel_setup_audio()
523 lines = ch->fifo_size / bpl; in cx25821_sram_channel_setup_audio()
536 cx_write(cdt + 16 * i, ch->fifo_start + bpl * i); in cx25821_sram_channel_setup_audio()
567 cx_write(ch->cnt1_reg, (bpl >> 3) - 1); in cx25821_sram_channel_setup_audio()
[all …]
Dcx25821-alsa.c65 unsigned int bpl; member
165 cx25821_sram_channel_setup_audio(chip->dev, audio_ch, buf->bpl, in _cx25821_start_audio_dma()
169 cx_write(AUD_A_LNGTH, buf->bpl); in _cx25821_start_audio_dma()
383 unsigned int bpl = 0; in snd_cx25821_pcm_open() local
402 bpl = cx25821_sram_channels[AUDIO_SRAM_CHANNEL].fifo_size / 3; in snd_cx25821_pcm_open()
403 bpl &= ~7; /* must be multiple of 8 */ in snd_cx25821_pcm_open()
405 if (bpl > AUDIO_LINE_SIZE) in snd_cx25821_pcm_open()
406 bpl = AUDIO_LINE_SIZE; in snd_cx25821_pcm_open()
408 runtime->hw.period_bytes_min = bpl; in snd_cx25821_pcm_open()
409 runtime->hw.period_bytes_max = bpl; in snd_cx25821_pcm_open()
[all …]
Dcx25821-audio-upstream.c49 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup_upstream_audio() argument
62 bpl = (bpl + 7) & ~7; /* alignment */ in cx25821_sram_channel_setup_upstream_audio()
64 lines = ch->fifo_size / bpl; in cx25821_sram_channel_setup_upstream_audio()
73 cx_write(cdt + 16 * i, ch->fifo_start + bpl * i); in cx25821_sram_channel_setup_upstream_audio()
105 unsigned int bpl, in cx25821_risc_field_upstream_audio() argument
115 *(rp++) = cpu_to_le32(RISC_READ | RISC_SOL | RISC_EOL | bpl); in cx25821_risc_field_upstream_audio()
138 unsigned int bpl, unsigned int lines) in cx25821_risc_buffer_upstream_audio() argument
179 bpl, fifo_enable); in cx25821_risc_buffer_upstream_audio()
364 int bpl) in cx25821_audio_upstream_buffer_prepare() argument
406 ret = cx25821_risc_buffer_upstream_audio(dev, dev->pci, bpl, in cx25821_audio_upstream_buffer_prepare()
Dcx25821.h120 unsigned int bpl; member
405 const struct sram_channel *ch, unsigned int bpl,
412 unsigned int bpl,
417 unsigned int bpl,
434 unsigned int bpl, u32 risc);
447 unsigned int bpl, u32 risc);
Dcx25821-video.c122 cx25821_sram_channel_setup(dev, channel, buf->bpl, buf->risc.dma); in cx25821_start_video_dma()
323 buf->bpl = (buf->fmt->depth * buf->vb.width) >> 3; in cx25821_buffer_prepare()
325 buf->bpl = (buf->fmt->depth >> 3) * (buf->vb.width); in cx25821_buffer_prepare()
328 bpl_local = buf->bpl; in cx25821_buffer_prepare()
330 bpl_local = buf->bpl; /* Default */ in cx25821_buffer_prepare()
344 buf->bpl, 0, buf->vb.height); in cx25821_buffer_prepare()
349 buf->bpl, 0, buf->vb.height); in cx25821_buffer_prepare()
364 0, buf->bpl * (buf->vb.height >> 1), in cx25821_buffer_prepare()
365 buf->bpl, 0, buf->vb.height >> 1); in cx25821_buffer_prepare()
370 buf->bpl * (buf->vb.height >> 1), 0, in cx25821_buffer_prepare()
[all …]
/drivers/block/
Dswim_asm.S86 bpl header_exit
97 bpl signal_nonyb
105 bpl signal_nonyb
113 bpl signal_nonyb
121 bpl signal_nonyb
129 bpl signal_nonyb
137 bpl signal_nonyb
186 bpl data_exit
220 bpl data_exit
230 bpl data_exit
/drivers/media/pci/cx88/
Dcx88-core.c78 unsigned int bpl, unsigned int padding, in cx88_risc_field() argument
99 if (bpl <= sg_dma_len(sg)-offset) { in cx88_risc_field()
101 *(rp++)=cpu_to_le32(RISC_WRITE|sol|RISC_EOL|bpl); in cx88_risc_field()
103 offset+=bpl; in cx88_risc_field()
106 todo = bpl; in cx88_risc_field()
133 unsigned int bpl, unsigned int padding, unsigned int lines) in cx88_risc_buffer() argument
149 instructions = fields * (1 + ((bpl + padding) * lines) / PAGE_SIZE + lines); in cx88_risc_buffer()
158 bpl, padding, lines, 0); in cx88_risc_buffer()
161 bpl, padding, lines, 0); in cx88_risc_buffer()
170 struct scatterlist *sglist, unsigned int bpl, in cx88_risc_databuffer() argument
[all …]
Dcx88-alsa.c63 unsigned int bpl; member
147 cx88_sram_channel_setup(chip->core, audio_ch, buf->bpl, buf->risc.dma); in _cx88_start_audio_dma()
150 cx_write(MO_AUDD_LNGTH, buf->bpl); in _cx88_start_audio_dma()
157 "byte buffer\n", buf->bpl, cx_read(audio_ch->cmds_start + 8)>>1, in _cx88_start_audio_dma()
158 chip->num_periods, buf->bpl * chip->num_periods); in _cx88_start_audio_dma()
363 unsigned int bpl = cx88_sram_channels[SRAM_CH25].fifo_size / 4; in snd_cx88_pcm_open() local
364 bpl &= ~7; /* must be multiple of 8 */ in snd_cx88_pcm_open()
365 runtime->hw.period_bytes_min = bpl; in snd_cx88_pcm_open()
366 runtime->hw.period_bytes_max = bpl; in snd_cx88_pcm_open()
411 buf->bpl = chip->period_size; in snd_cx88_hw_params()
Dcx88-dsp.c237 unsigned int bpl = srch->fifo_size/AUD_RDS_LINES; in read_rds_samples() local
238 unsigned int spl = bpl/4; in read_rds_samples()
242 u32 offset = (current_address - srch->fifo_start + bpl); in read_rds_samples()
256 offset = offset % (AUD_RDS_LINES*bpl); in read_rds_samples()
Dcx88.h316 unsigned int bpl; member
636 unsigned int bpl, unsigned int padding, unsigned int lines);
639 struct scatterlist *sglist, unsigned int bpl,
651 unsigned int bpl, u32 risc);
/drivers/media/pci/cx23885/
Dcx23885-alsa.c104 cx23885_sram_channel_setup(chip->dev, audio_ch, buf->bpl, in cx23885_start_audio_dma()
108 cx_write(AUD_INT_A_LNGTH, buf->bpl); in cx23885_start_audio_dma()
118 "byte buffer\n", buf->bpl, cx_read(audio_ch->cmds_start+12)>>1, in cx23885_start_audio_dma()
119 chip->num_periods, buf->bpl * chip->num_periods); in cx23885_start_audio_dma()
271 unsigned int bpl = chip->dev-> in snd_cx23885_pcm_open() local
273 bpl &= ~7; /* must be multiple of 8 */ in snd_cx23885_pcm_open()
274 runtime->hw.period_bytes_min = bpl; in snd_cx23885_pcm_open()
275 runtime->hw.period_bytes_max = bpl; in snd_cx23885_pcm_open()
320 buf->bpl = chip->period_size; in snd_cx23885_hw_params()
Dcx23885-core.c460 unsigned int bpl, u32 risc) in cx23885_sram_channel_setup() argument
478 bpl = (bpl + 7) & ~7; /* alignment */ in cx23885_sram_channel_setup()
480 lines = ch->fifo_size / bpl; in cx23885_sram_channel_setup()
492 ch->fifo_start + bpl*i); in cx23885_sram_channel_setup()
493 cx_write(cdt + 16*i, ch->fifo_start + bpl*i); in cx23885_sram_channel_setup()
519 cx_write(ch->cnt1_reg, (bpl >> 3) - 1); in cx23885_sram_channel_setup()
524 bpl, in cx23885_sram_channel_setup()
1091 unsigned int bpl, unsigned int padding, in cx23885_risc_field() argument
1114 if (bpl <= sg_dma_len(sg)-offset) { in cx23885_risc_field()
1116 *(rp++) = cpu_to_le32(RISC_WRITE|sol|RISC_EOL|bpl); in cx23885_risc_field()
[all …]
Dcx23885.h193 unsigned int bpl; member
334 unsigned int bpl; member
512 unsigned int bpl, u32 risc);
523 unsigned int bpl, unsigned int padding, unsigned int lines);
528 unsigned int bpl, unsigned int padding, unsigned int lines);
636 unsigned int bpl,
/drivers/scsi/lpfc/
Dlpfc_ct.c203 lpfc_alloc_ct_rsp(struct lpfc_hba *phba, int cmdcode, struct ulp_bde64 *bpl, in lpfc_alloc_ct_rsp() argument
243 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64I; in lpfc_alloc_ct_rsp()
245 bpl->addrLow = le32_to_cpu(putPaddrLow(mp->phys) ); in lpfc_alloc_ct_rsp()
246 bpl->addrHigh = le32_to_cpu(putPaddrHigh(mp->phys) ); in lpfc_alloc_ct_rsp()
247 bpl->tus.f.bdeSize = (uint16_t) cnt; in lpfc_alloc_ct_rsp()
248 bpl->tus.w = le32_to_cpu(bpl->tus.w); in lpfc_alloc_ct_rsp()
249 bpl++; in lpfc_alloc_ct_rsp()
380 struct ulp_bde64 *bpl = (struct ulp_bde64 *) bmp->virt; in lpfc_ct_cmd() local
386 bpl++; /* Skip past ct request */ in lpfc_ct_cmd()
389 outmp = lpfc_alloc_ct_rsp(phba, cmdcode, bpl, rsp_size, &cnt); in lpfc_ct_cmd()
[all …]
Dlpfc_scsi.c537 struct ulp_bde64 *bpl; in lpfc_new_scsi_buf_s3() local
591 bpl = psb->fcp_bpl; in lpfc_new_scsi_buf_s3()
602 bpl[0].addrHigh = le32_to_cpu(putPaddrHigh(pdma_phys_fcp_cmd)); in lpfc_new_scsi_buf_s3()
603 bpl[0].addrLow = le32_to_cpu(putPaddrLow(pdma_phys_fcp_cmd)); in lpfc_new_scsi_buf_s3()
604 bpl[0].tus.f.bdeSize = sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
605 bpl[0].tus.f.bdeFlags = BUFF_TYPE_BDE_64; in lpfc_new_scsi_buf_s3()
606 bpl[0].tus.w = le32_to_cpu(bpl[0].tus.w); in lpfc_new_scsi_buf_s3()
609 bpl[1].addrHigh = le32_to_cpu(putPaddrHigh(pdma_phys_fcp_rsp)); in lpfc_new_scsi_buf_s3()
610 bpl[1].addrLow = le32_to_cpu(putPaddrLow(pdma_phys_fcp_rsp)); in lpfc_new_scsi_buf_s3()
611 bpl[1].tus.f.bdeSize = sizeof(struct fcp_rsp); in lpfc_new_scsi_buf_s3()
[all …]
Dlpfc_bsg.c154 int outbound_buffers, struct ulp_bde64 *bpl, in lpfc_alloc_bsg_buffers() argument
197 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64; in lpfc_alloc_bsg_buffers()
199 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64I; in lpfc_alloc_bsg_buffers()
200 bpl->addrLow = le32_to_cpu(putPaddrLow(mp->phys)); in lpfc_alloc_bsg_buffers()
201 bpl->addrHigh = le32_to_cpu(putPaddrHigh(mp->phys)); in lpfc_alloc_bsg_buffers()
202 bpl->tus.f.bdeSize = (uint16_t) in lpfc_alloc_bsg_buffers()
205 bytes_left -= bpl->tus.f.bdeSize; in lpfc_alloc_bsg_buffers()
206 bpl->tus.w = le32_to_cpu(bpl->tus.w); in lpfc_alloc_bsg_buffers()
207 bpl++; in lpfc_alloc_bsg_buffers()
382 struct ulp_bde64 *bpl = NULL; in lpfc_bsg_send_mgmt_cmd() local
[all …]
/drivers/media/pci/bt8xx/
Dbttv-risc.c49 unsigned int offset, unsigned int bpl, in bttv_risc_packed() argument
63 instructions += (1 + ((bpl + padding) * store_lines) in bttv_risc_packed()
76 BT848_RISC_EOL | bpl); in bttv_risc_packed()
89 if (bpl <= sg_dma_len(sg)-offset) { in bttv_risc_packed()
92 BT848_RISC_EOL|bpl); in bttv_risc_packed()
94 offset+=bpl; in bttv_risc_packed()
97 todo = bpl; in bttv_risc_packed()
718 int bpl = (buf->fmt->depth >> 3) * buf->vb.width; in bttv_buffer_risc() local
719 int bpf = bpl * (buf->vb.height >> 1); in bttv_buffer_risc()
728 /* offset */ 0,bpl, in bttv_buffer_risc()
[all …]
Dbttv-vbi.c158 unsigned int bpl, padding, offset; in vbi_buffer_prepare() local
161 bpl = 2044; /* max. vbipack */ in vbi_buffer_prepare()
162 padding = VBI_BPL - bpl; in vbi_buffer_prepare()
167 /* offset */ 0, bpl, in vbi_buffer_prepare()
179 offset, bpl, in vbi_buffer_prepare()
/drivers/usb/gadget/
Duvc_v4l2.c85 unsigned int bpl; in uvc_v4l2_set_format() local
100 bpl = format->bpp * fmt->fmt.pix.width / 8; in uvc_v4l2_set_format()
101 imagesize = bpl ? bpl * fmt->fmt.pix.height : fmt->fmt.pix.sizeimage; in uvc_v4l2_set_format()
110 fmt->fmt.pix.bytesperline = bpl; in uvc_v4l2_set_format()
/drivers/media/platform/s5p-jpeg/
Djpeg-core.c608 u32 bpl = q_data->w; in s5p_jpeg_g_fmt() local
610 bpl = (bpl * q_data->fmt->depth) >> 3; in s5p_jpeg_g_fmt()
611 pix->bytesperline = bpl; in s5p_jpeg_g_fmt()
692 u32 bpl = pix->bytesperline; in vidioc_try_fmt() local
694 if (fmt->colplanes > 1 && bpl < pix->width) in vidioc_try_fmt()
695 bpl = pix->width; /* planar */ in vidioc_try_fmt()
698 (bpl << 3) * fmt->depth < pix->width) in vidioc_try_fmt()
699 bpl = (pix->width * fmt->depth) >> 3; in vidioc_try_fmt()
701 pix->bytesperline = bpl; in vidioc_try_fmt()
/drivers/media/platform/omap3isp/
Dispvideo.c156 unsigned int bpl = pix->bytesperline; in isp_video_mbus_to_pix() local
179 bpl = clamp(bpl, min_bpl, video->bpl_max); in isp_video_mbus_to_pix()
181 bpl = min_bpl; in isp_video_mbus_to_pix()
183 if (!video->bpl_zero_padding || bpl != min_bpl) in isp_video_mbus_to_pix()
184 bpl = ALIGN(bpl, video->bpl_alignment); in isp_video_mbus_to_pix()
187 pix->bytesperline = bpl; in isp_video_mbus_to_pix()
192 return bpl - min_bpl; in isp_video_mbus_to_pix()
/drivers/video/
Dsysimgblt.c243 u32 bpl = sizeof(u32), bpp = p->var.bits_per_pixel; in sys_imageblit() local
253 pitch_index = (p->fix.line_length & (bpl - 1)) * 8; in sys_imageblit()
256 bitstart &= ~(bpl - 1); in sys_imageblit()
Dcfbimgblt.c268 u32 bpl = sizeof(u32), bpp = p->var.bits_per_pixel; in cfb_imageblit() local
278 pitch_index = (p->fix.line_length & (bpl - 1)) * 8; in cfb_imageblit()
281 bitstart &= ~(bpl - 1); in cfb_imageblit()
/drivers/media/platform/exynos4-is/
Dfimc-core.c749 u32 bpl = plane_fmt->bytesperline; in fimc_adjust_mplane_format() local
751 if (fmt->colplanes > 1 && (bpl == 0 || bpl < pix->width)) in fimc_adjust_mplane_format()
752 bpl = pix->width; /* Planar */ in fimc_adjust_mplane_format()
755 (bpl == 0 || ((bpl * 8) / fmt->depth[i]) < pix->width)) in fimc_adjust_mplane_format()
756 bpl = (pix->width * fmt->depth[0]) / 8; in fimc_adjust_mplane_format()
764 bytesperline = bpl; in fimc_adjust_mplane_format()

12