Home
last modified time | relevance | path

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

1234

/Linux-v5.4/drivers/media/pci/tw68/
Dtw68-risc.c35 unsigned int bpl, unsigned int padding, in tw68_risc_field() argument
61 if (bpl <= sg_dma_len(sg) - offset) { in tw68_risc_field()
64 /* (offset<<12) |*/ bpl); in tw68_risc_field()
66 offset += bpl; in tw68_risc_field()
74 todo = bpl; /* one full line to be done */ in tw68_risc_field()
133 unsigned int bpl, in tw68_risc_buffer() argument
151 instructions = fields * (1 + (((bpl + padding) * lines) / in tw68_risc_buffer()
162 bpl, padding, lines, true); in tw68_risc_buffer()
165 bpl, padding, lines, top_offset == UNSET); in tw68_risc_buffer()
Dtw68-video.c445 unsigned size, bpl; in tw68_buf_prepare() local
452 bpl = (dev->width * dev->fmt->depth) >> 3; in tw68_buf_prepare()
456 0, UNSET, bpl, 0, dev->height); in tw68_buf_prepare()
460 UNSET, 0, bpl, 0, dev->height); in tw68_buf_prepare()
464 0, bpl * (dev->height >> 1), in tw68_buf_prepare()
465 bpl, 0, dev->height >> 1); in tw68_buf_prepare()
469 bpl * (dev->height >> 1), 0, in tw68_buf_prepare()
470 bpl, 0, dev->height >> 1); in tw68_buf_prepare()
475 0, bpl, bpl, bpl, dev->height >> 1); in tw68_buf_prepare()
/Linux-v5.4/drivers/block/
Dswim_asm.S82 bpl header_exit
93 bpl signal_nonyb
101 bpl signal_nonyb
109 bpl signal_nonyb
117 bpl signal_nonyb
125 bpl signal_nonyb
133 bpl signal_nonyb
182 bpl data_exit
216 bpl data_exit
226 bpl data_exit
/Linux-v5.4/drivers/media/pci/cx88/
Dcx88-core.c72 unsigned int bpl, unsigned int padding, in cx88_risc_field() argument
98 if (bpl <= sg_dma_len(sg) - offset) { in cx88_risc_field()
101 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
150 instructions = fields * (1 + ((bpl + padding) * lines) / in cx88_risc_buffer()
163 bpl, padding, lines, 0, true); in cx88_risc_buffer()
166 bpl, padding, lines, 0, in cx88_risc_buffer()
177 struct scatterlist *sglist, unsigned int bpl, in cx88_risc_databuffer() argument
[all …]
Dcx88-alsa.c45 unsigned int bpl; member
124 cx88_sram_channel_setup(chip->core, audio_ch, buf->bpl, buf->risc.dma); in _cx88_start_audio_dma()
127 cx_write(MO_AUDD_LNGTH, buf->bpl); in _cx88_start_audio_dma()
135 buf->bpl, cx_read(audio_ch->cmds_start + 8) >> 1, in _cx88_start_audio_dma()
136 chip->num_periods, buf->bpl * chip->num_periods); in _cx88_start_audio_dma()
424 unsigned int bpl = cx88_sram_channels[SRAM_CH25].fifo_size / 4; in snd_cx88_pcm_open() local
426 bpl &= ~7; /* must be multiple of 8 */ in snd_cx88_pcm_open()
427 runtime->hw.period_bytes_min = bpl; in snd_cx88_pcm_open()
428 runtime->hw.period_bytes_max = bpl; in snd_cx88_pcm_open()
473 buf->bpl = chip->period_size; in snd_cx88_hw_params()
Dcx88-dsp.c243 unsigned int bpl = srch->fifo_size / AUD_RDS_LINES; in read_rds_samples() local
244 unsigned int spl = bpl / 4; in read_rds_samples()
248 u32 offset = (current_address - srch->fifo_start + bpl); in read_rds_samples()
262 offset = offset % (AUD_RDS_LINES * bpl); in read_rds_samples()
/Linux-v5.4/drivers/media/pci/cx25821/
Dcx25821-core.c426 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup() argument
439 bpl = (bpl + 7) & ~7; /* alignment */ in cx25821_sram_channel_setup()
441 lines = ch->fifo_size / bpl; in cx25821_sram_channel_setup()
454 cx_write(cdt + 16 * i, ch->fifo_start + bpl * i); in cx25821_sram_channel_setup()
487 cx_write(ch->cnt1_reg, (bpl >> 3) - 1); in cx25821_sram_channel_setup()
494 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup_audio() argument
507 bpl = (bpl + 7) & ~7; /* alignment */ in cx25821_sram_channel_setup_audio()
509 lines = ch->fifo_size / bpl; in cx25821_sram_channel_setup_audio()
522 cx_write(cdt + 16 * i, ch->fifo_start + bpl * i); in cx25821_sram_channel_setup_audio()
553 cx_write(ch->cnt1_reg, (bpl >> 3) - 1); in cx25821_sram_channel_setup_audio()
[all …]
Dcx25821-alsa.c52 unsigned int bpl; member
230 cx25821_sram_channel_setup_audio(chip->dev, audio_ch, buf->bpl, in _cx25821_start_audio_dma()
234 cx_write(AUD_A_LNGTH, buf->bpl); in _cx25821_start_audio_dma()
450 unsigned int bpl = 0; in snd_cx25821_pcm_open() local
469 bpl = cx25821_sram_channels[AUDIO_SRAM_CHANNEL].fifo_size / 3; in snd_cx25821_pcm_open()
470 bpl &= ~7; /* must be multiple of 8 */ in snd_cx25821_pcm_open()
472 if (bpl > AUDIO_LINE_SIZE) in snd_cx25821_pcm_open()
473 bpl = AUDIO_LINE_SIZE; in snd_cx25821_pcm_open()
475 runtime->hw.period_bytes_min = bpl; in snd_cx25821_pcm_open()
476 runtime->hw.period_bytes_max = bpl; in snd_cx25821_pcm_open()
[all …]
Dcx25821-video.c66 cx25821_sram_channel_setup(dev, channel, buf->bpl, buf->risc.dma); in cx25821_start_video_dma()
155 buf->bpl = (chan->fmt->depth * chan->width) >> 3; in cx25821_buffer_prepare()
157 buf->bpl = (chan->fmt->depth >> 3) * chan->width; 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()
165 bpl_local = buf->bpl; in cx25821_buffer_prepare()
167 bpl_local = buf->bpl; /* Default */ in cx25821_buffer_prepare()
181 buf->bpl, 0, chan->height); in cx25821_buffer_prepare()
186 buf->bpl, 0, chan->height); in cx25821_buffer_prepare()
201 0, buf->bpl * (chan->height >> 1), in cx25821_buffer_prepare()
[all …]
Dcx25821.h118 unsigned int bpl; member
392 const struct sram_channel *ch, unsigned int bpl,
402 unsigned int bpl,
407 unsigned int bpl,
422 unsigned int bpl, u32 risc);
/Linux-v5.4/drivers/media/pci/cx23885/
Dcx23885-alsa.c163 cx23885_sram_channel_setup(chip->dev, audio_ch, buf->bpl, in cx23885_start_audio_dma()
167 cx_write(AUD_INT_A_LNGTH, buf->bpl); in cx23885_start_audio_dma()
177 buf->bpl, cx_read(audio_ch->cmds_start+12)>>1, in cx23885_start_audio_dma()
178 chip->num_periods, buf->bpl * chip->num_periods); in cx23885_start_audio_dma()
332 unsigned int bpl = chip->dev-> in snd_cx23885_pcm_open() local
334 bpl &= ~7; /* must be multiple of 8 */ in snd_cx23885_pcm_open()
335 runtime->hw.period_bytes_min = bpl; in snd_cx23885_pcm_open()
336 runtime->hw.period_bytes_max = bpl; in snd_cx23885_pcm_open()
380 buf->bpl = chip->period_size; in snd_cx23885_hw_params()
Dcx23885-core.c456 unsigned int bpl, u32 risc) in cx23885_sram_channel_setup() argument
474 bpl = (bpl + 7) & ~7; /* alignment */ in cx23885_sram_channel_setup()
476 lines = ch->fifo_size / bpl; in cx23885_sram_channel_setup()
488 ch->fifo_start + bpl*i); in cx23885_sram_channel_setup()
489 cx_write(cdt + 16*i, ch->fifo_start + bpl*i); in cx23885_sram_channel_setup()
515 cx_write(ch->cnt1_reg, (bpl >> 3) - 1); in cx23885_sram_channel_setup()
520 bpl, in cx23885_sram_channel_setup()
1133 unsigned int bpl, unsigned int padding, in cx23885_risc_field() argument
1163 if (bpl <= sg_dma_len(sg)-offset) { in cx23885_risc_field()
1165 *(rp++) = cpu_to_le32(RISC_WRITE|sol|RISC_EOL|bpl); in cx23885_risc_field()
[all …]
Dcx23885.h176 unsigned int bpl; member
323 unsigned int bpl; member
510 unsigned int bpl, u32 risc);
518 unsigned int bpl, unsigned int padding, unsigned int lines);
523 unsigned int bpl, unsigned int padding, unsigned int lines);
623 unsigned int bpl,
Dcx23885-video.c311 buf->bpl, buf->risc.dma); in cx23885_start_video_dma()
349 buf->bpl = (dev->width * dev->fmt->depth) >> 3; in buffer_prepare()
351 if (vb2_plane_size(vb, 0) < dev->height * buf->bpl) in buffer_prepare()
353 vb2_set_plane_payload(vb, 0, dev->height * buf->bpl); in buffer_prepare()
359 buf->bpl, 0, dev->height); in buffer_prepare()
364 buf->bpl, 0, dev->height); in buffer_prepare()
381 line0_offset = buf->bpl; in buffer_prepare()
388 line1_offset = buf->bpl; in buffer_prepare()
393 buf->bpl, buf->bpl, in buffer_prepare()
399 0, buf->bpl * (dev->height >> 1), in buffer_prepare()
[all …]
/Linux-v5.4/drivers/media/pci/bt8xx/
Dbttv-risc.c37 unsigned int offset, unsigned int bpl, in bttv_risc_packed() argument
51 instructions += (1 + ((bpl + padding) * store_lines) in bttv_risc_packed()
64 BT848_RISC_EOL | bpl); in bttv_risc_packed()
77 if (bpl <= sg_dma_len(sg)-offset) { in bttv_risc_packed()
80 BT848_RISC_EOL|bpl); in bttv_risc_packed()
82 offset+=bpl; in bttv_risc_packed()
85 todo = bpl; in bttv_risc_packed()
708 int bpl = (buf->fmt->depth >> 3) * buf->vb.width; in bttv_buffer_risc() local
709 int bpf = bpl * (buf->vb.height >> 1); in bttv_buffer_risc()
718 /* offset */ 0,bpl, in bttv_buffer_risc()
[all …]
Dbttv-vbi.c146 unsigned int bpl, padding, offset; in vbi_buffer_prepare() local
149 bpl = 2044; /* max. vbipack */ in vbi_buffer_prepare()
150 padding = VBI_BPL - bpl; in vbi_buffer_prepare()
155 /* offset */ 0, bpl, in vbi_buffer_prepare()
167 offset, bpl, in vbi_buffer_prepare()
/Linux-v5.4/drivers/scsi/lpfc/
Dlpfc_scsi.c334 struct ulp_bde64 *bpl; in lpfc_new_scsi_buf_s3() local
386 bpl = (struct ulp_bde64 *)psb->dma_sgl; in lpfc_new_scsi_buf_s3()
397 bpl[0].addrHigh = le32_to_cpu(putPaddrHigh(pdma_phys_fcp_cmd)); in lpfc_new_scsi_buf_s3()
398 bpl[0].addrLow = le32_to_cpu(putPaddrLow(pdma_phys_fcp_cmd)); in lpfc_new_scsi_buf_s3()
399 bpl[0].tus.f.bdeSize = sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
400 bpl[0].tus.f.bdeFlags = BUFF_TYPE_BDE_64; in lpfc_new_scsi_buf_s3()
401 bpl[0].tus.w = le32_to_cpu(bpl[0].tus.w); in lpfc_new_scsi_buf_s3()
404 bpl[1].addrHigh = le32_to_cpu(putPaddrHigh(pdma_phys_fcp_rsp)); in lpfc_new_scsi_buf_s3()
405 bpl[1].addrLow = le32_to_cpu(putPaddrLow(pdma_phys_fcp_rsp)); in lpfc_new_scsi_buf_s3()
406 bpl[1].tus.f.bdeSize = sizeof(struct fcp_rsp); in lpfc_new_scsi_buf_s3()
[all …]
Dlpfc_ct.c218 lpfc_alloc_ct_rsp(struct lpfc_hba *phba, int cmdcode, struct ulp_bde64 *bpl, in lpfc_alloc_ct_rsp() argument
258 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64I; in lpfc_alloc_ct_rsp()
260 bpl->addrLow = le32_to_cpu(putPaddrLow(mp->phys) ); in lpfc_alloc_ct_rsp()
261 bpl->addrHigh = le32_to_cpu(putPaddrHigh(mp->phys) ); in lpfc_alloc_ct_rsp()
262 bpl->tus.f.bdeSize = (uint16_t) cnt; in lpfc_alloc_ct_rsp()
263 bpl->tus.w = le32_to_cpu(bpl->tus.w); in lpfc_alloc_ct_rsp()
264 bpl++; in lpfc_alloc_ct_rsp()
416 struct ulp_bde64 *bpl = (struct ulp_bde64 *) bmp->virt; in lpfc_ct_cmd() local
422 bpl++; /* Skip past ct request */ in lpfc_ct_cmd()
425 outmp = lpfc_alloc_ct_rsp(phba, cmdcode, bpl, rsp_size, &cnt); in lpfc_ct_cmd()
[all …]
Dlpfc_bsg.c158 int outbound_buffers, struct ulp_bde64 *bpl, in lpfc_alloc_bsg_buffers() argument
201 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64; in lpfc_alloc_bsg_buffers()
203 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64I; in lpfc_alloc_bsg_buffers()
204 bpl->addrLow = le32_to_cpu(putPaddrLow(mp->phys)); in lpfc_alloc_bsg_buffers()
205 bpl->addrHigh = le32_to_cpu(putPaddrHigh(mp->phys)); in lpfc_alloc_bsg_buffers()
206 bpl->tus.f.bdeSize = (uint16_t) in lpfc_alloc_bsg_buffers()
209 bytes_left -= bpl->tus.f.bdeSize; in lpfc_alloc_bsg_buffers()
210 bpl->tus.w = le32_to_cpu(bpl->tus.w); in lpfc_alloc_bsg_buffers()
211 bpl++; in lpfc_alloc_bsg_buffers()
395 struct ulp_bde64 *bpl = NULL; in lpfc_bsg_send_mgmt_cmd() local
[all …]
/Linux-v5.4/drivers/usb/gadget/function/
Duvc_v4l2.c104 unsigned int bpl; in uvc_v4l2_set_format() local
119 bpl = format->bpp * fmt->fmt.pix.width / 8; in uvc_v4l2_set_format()
120 imagesize = bpl ? bpl * fmt->fmt.pix.height : fmt->fmt.pix.sizeimage; in uvc_v4l2_set_format()
129 fmt->fmt.pix.bytesperline = bpl; in uvc_v4l2_set_format()
/Linux-v5.4/include/media/tpg/
Dv4l2-tpg.h459 static inline void tpg_s_bytesperline(struct tpg_data *tpg, unsigned plane, unsigned bpl) in tpg_s_bytesperline() argument
464 tpg->bytesperline[plane] = bpl; in tpg_s_bytesperline()
469 unsigned plane_w = bpl * tpg->twopixelsize[p] / tpg->twopixelsize[0]; in tpg_s_bytesperline()
494 unsigned plane, unsigned bpl) in tpg_calc_line_width() argument
500 return bpl; in tpg_calc_line_width()
502 unsigned plane_w = bpl * tpg->twopixelsize[p] / tpg->twopixelsize[0]; in tpg_calc_line_width()
/Linux-v5.4/drivers/gpu/drm/mcde/
Dmcde_dsi.c369 u64 bpl; in mcde_dsi_setup_video_mode() local
488 bpl = mode->clock * mode->htotal; in mcde_dsi_setup_video_mode()
489 bpl *= (d->hs_freq / 8); in mcde_dsi_setup_video_mode()
490 do_div(bpl, 1000000); /* microseconds */ in mcde_dsi_setup_video_mode()
491 do_div(bpl, 1000000); /* seconds */ in mcde_dsi_setup_video_mode()
492 bpl *= d->mdsi->lanes; in mcde_dsi_setup_video_mode()
493 dev_dbg(d->dev, "calculated bytes per line: %llu\n", bpl); in mcde_dsi_setup_video_mode()
500 blkline_pck = bpl - (mode->hsync_end - mode->hsync_start) - 6; in mcde_dsi_setup_video_mode()
504 blkline_pck = bpl - 4 - 6; in mcde_dsi_setup_video_mode()
520 blkeol_pck = bpl - mode->hdisplay * bpp - 6; in mcde_dsi_setup_video_mode()
/Linux-v5.4/drivers/media/platform/
Drenesas-ceu.c561 unsigned int bpl, unsigned int szimage) in ceu_update_plane_sizes() argument
566 if (plane->bytesperline < bpl || plane->bytesperline > CEU_MAX_BPL) in ceu_update_plane_sizes()
567 plane->bytesperline = bpl; in ceu_update_plane_sizes()
582 unsigned int bpl, szimage; in ceu_calc_plane_sizes() local
590 bpl = pix->width * ceu_fmt->bpp / 8; in ceu_calc_plane_sizes()
591 szimage = pix->height * bpl; in ceu_calc_plane_sizes()
592 ceu_update_plane_sizes(&pix->plane_fmt[0], bpl, szimage); in ceu_calc_plane_sizes()
598 bpl = pix->width; in ceu_calc_plane_sizes()
600 ceu_update_plane_sizes(&pix->plane_fmt[0], bpl, szimage); in ceu_calc_plane_sizes()
601 ceu_update_plane_sizes(&pix->plane_fmt[1], bpl, szimage / 2); in ceu_calc_plane_sizes()
[all …]
/Linux-v5.4/arch/arm/lib/
Dio-writesw-armv4.S46 bpl .Loutsw_8_lp
91 bpl 1b
/Linux-v5.4/drivers/media/platform/sunxi/sun4i-csi/
Dsun4i_v4l2.c129 unsigned int bpl; in _sun4i_csi_try_fmt() local
131 bpl = pix->width / hsub * _fmt->bpp[i] / 8; in _sun4i_csi_try_fmt()
132 pix->plane_fmt[i].bytesperline = bpl; in _sun4i_csi_try_fmt()
133 pix->plane_fmt[i].sizeimage = bpl * pix->height / vsub; in _sun4i_csi_try_fmt()

1234