Home
last modified time | relevance | path

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

123

/linux/drivers/media/pci/tw68/
H A 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()
163 bpl, padding, lines, true); in tw68_risc_buffer()
166 bpl, padding, lines, top_offset == UNSET); in tw68_risc_buffer()
/linux/drivers/block/
H A 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/drivers/media/pci/cx88/
H A 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()
164 bpl, padding, lines, 0, true); in cx88_risc_buffer()
167 bpl, padding, lines, 0, in cx88_risc_buffer()
178 struct scatterlist *sglist, unsigned int bpl, in cx88_risc_databuffer() argument
[all …]
H A Dcx88-alsa.c45 unsigned int bpl; member
123 cx88_sram_channel_setup(chip->core, audio_ch, buf->bpl, buf->risc.dma); in _cx88_start_audio_dma()
126 cx_write(MO_AUDD_LNGTH, buf->bpl); in _cx88_start_audio_dma()
134 buf->bpl, cx_read(audio_ch->cmds_start + 8) >> 1, in _cx88_start_audio_dma()
135 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()
H A 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/drivers/media/pci/cx25821/
H A Dcx25821-core.c419 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup() argument
432 bpl = (bpl + 7) & ~7; /* alignment */ in cx25821_sram_channel_setup()
434 lines = ch->fifo_size / bpl; in cx25821_sram_channel_setup()
447 cx_write(cdt + 16 * i, ch->fifo_start + bpl * i); in cx25821_sram_channel_setup()
480 cx_write(ch->cnt1_reg, (bpl >> 3) - 1); in cx25821_sram_channel_setup()
487 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup_audio() argument
500 bpl = (bpl + 7) & ~7; /* alignment */ in cx25821_sram_channel_setup_audio()
502 lines = ch->fifo_size / bpl; in cx25821_sram_channel_setup_audio()
515 cx_write(cdt + 16 * i, ch->fifo_start + bpl * i); in cx25821_sram_channel_setup_audio()
546 cx_write(ch->cnt1_reg, (bpl >> 3) - 1); in cx25821_sram_channel_setup_audio()
[all …]
H A 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 …]
H A Dcx25821.h117 unsigned int bpl; member
391 const struct sram_channel *ch, unsigned int bpl,
401 unsigned int bpl,
406 unsigned int bpl,
421 unsigned int bpl, u32 risc);
/linux/drivers/media/pci/bt8xx/
H A 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()
511 unsigned int bpl = 2044; /* max. vbipack */ in bttv_buffer_risc_vbi() local
512 unsigned int padding = VBI_BPL - bpl; in bttv_buffer_risc_vbi()
529 r = bttv_risc_packed(btv, &buf->top, list, 0, bpl, padding, in bttv_buffer_risc_vbi()
[all …]
/linux/drivers/media/pci/cx23885/
H A Dcx23885-alsa.c164 cx23885_sram_channel_setup(chip->dev, audio_ch, buf->bpl, in cx23885_start_audio_dma()
168 cx_write(AUD_INT_A_LNGTH, buf->bpl); in cx23885_start_audio_dma()
178 buf->bpl, cx_read(audio_ch->cmds_start+12)>>1, in cx23885_start_audio_dma()
179 chip->num_periods, buf->bpl * chip->num_periods); in cx23885_start_audio_dma()
333 unsigned int bpl = chip->dev-> in snd_cx23885_pcm_open() local
335 bpl &= ~7; /* must be multiple of 8 */ in snd_cx23885_pcm_open()
336 runtime->hw.period_bytes_min = bpl; in snd_cx23885_pcm_open()
337 runtime->hw.period_bytes_max = bpl; in snd_cx23885_pcm_open()
381 buf->bpl = chip->period_size; in snd_cx23885_hw_params()
H A 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 …]
H A Dcx23885.h177 unsigned int bpl; member
324 unsigned int bpl; member
511 unsigned int bpl, u32 risc);
519 unsigned int bpl, unsigned int padding, unsigned int lines);
524 unsigned int bpl, unsigned int padding, unsigned int lines);
624 unsigned int bpl,
/linux/drivers/scsi/lpfc/
H A Dlpfc_ct.c163 struct ulp_bde64 *bpl; in lpfc_ct_reject_event() local
196 bpl = (struct ulp_bde64 *)bmp->virt; in lpfc_ct_reject_event()
197 memset(bpl, 0, sizeof(struct ulp_bde64)); in lpfc_ct_reject_event()
198 bpl->addrHigh = le32_to_cpu(putPaddrHigh(mp->phys)); in lpfc_ct_reject_event()
199 bpl->addrLow = le32_to_cpu(putPaddrLow(mp->phys)); in lpfc_ct_reject_event()
200 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64; in lpfc_ct_reject_event()
201 bpl->tus.f.bdeSize = (LPFC_CT_PREAMBLE - 4); in lpfc_ct_reject_event()
202 bpl->tus.w = le32_to_cpu(bpl->tus.w); in lpfc_ct_reject_event()
489 lpfc_alloc_ct_rsp(struct lpfc_hba *phba, __be16 cmdcode, struct ulp_bde64 *bpl, in lpfc_alloc_ct_rsp() argument
529 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64I; in lpfc_alloc_ct_rsp()
[all …]
H A Dlpfc_scsi.c250 struct ulp_bde64 *bpl; in lpfc_new_scsi_buf_s3() local
302 bpl = (struct ulp_bde64 *)psb->dma_sgl; in lpfc_new_scsi_buf_s3()
313 bpl[0].addrHigh = le32_to_cpu(putPaddrHigh(pdma_phys_fcp_cmd)); in lpfc_new_scsi_buf_s3()
314 bpl[0].addrLow = le32_to_cpu(putPaddrLow(pdma_phys_fcp_cmd)); in lpfc_new_scsi_buf_s3()
315 bpl[0].tus.f.bdeSize = sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
316 bpl[0].tus.f.bdeFlags = BUFF_TYPE_BDE_64; in lpfc_new_scsi_buf_s3()
317 bpl[0].tus.w = le32_to_cpu(bpl[0].tus.w); in lpfc_new_scsi_buf_s3()
320 bpl[1].addrHigh = le32_to_cpu(putPaddrHigh(pdma_phys_fcp_rsp)); in lpfc_new_scsi_buf_s3()
321 bpl[1].addrLow = le32_to_cpu(putPaddrLow(pdma_phys_fcp_rsp)); in lpfc_new_scsi_buf_s3()
322 bpl[1].tus.f.bdeSize = sizeof(struct fcp_rsp); in lpfc_new_scsi_buf_s3()
[all …]
H A Dlpfc_nvme.c401 struct ulp_bde64 *bpl; in lpfc_nvme_gen_req() local
436 bpl = (struct ulp_bde64 *)bmp->virt; in lpfc_nvme_gen_req()
438 bde.tus.w = bpl[i].tus.w; in lpfc_nvme_gen_req()
452 wqe->generic.bde.addrLow = bpl[0].addrLow; in lpfc_nvme_gen_req()
453 wqe->generic.bde.addrHigh = bpl[0].addrHigh; in lpfc_nvme_gen_req()
550 struct ulp_bde64 *bpl; in __lpfc_nvme_ls_req() local
611 bpl = (struct ulp_bde64 *)bmp->virt; in __lpfc_nvme_ls_req()
612 bpl->addrHigh = le32_to_cpu(putPaddrHigh(pnvme_lsreq->rqstdma)); in __lpfc_nvme_ls_req()
613 bpl->addrLow = le32_to_cpu(putPaddrLow(pnvme_lsreq->rqstdma)); in __lpfc_nvme_ls_req()
614 bpl->tus.f.bdeFlags = 0; in __lpfc_nvme_ls_req()
[all …]
H A Dlpfc_bsg.c159 int outbound_buffers, struct ulp_bde64 *bpl, in lpfc_alloc_bsg_buffers() argument
202 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64; in lpfc_alloc_bsg_buffers()
204 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64I; in lpfc_alloc_bsg_buffers()
205 bpl->addrLow = le32_to_cpu(putPaddrLow(mp->phys)); in lpfc_alloc_bsg_buffers()
206 bpl->addrHigh = le32_to_cpu(putPaddrHigh(mp->phys)); in lpfc_alloc_bsg_buffers()
207 bpl->tus.f.bdeSize = (uint16_t) in lpfc_alloc_bsg_buffers()
210 bytes_left -= bpl->tus.f.bdeSize; in lpfc_alloc_bsg_buffers()
211 bpl->tus.w = le32_to_cpu(bpl->tus.w); in lpfc_alloc_bsg_buffers()
212 bpl++; in lpfc_alloc_bsg_buffers()
396 struct ulp_bde64 *bpl = NULL; in lpfc_bsg_send_mgmt_cmd() local
[all …]
/linux/drivers/gpu/drm/mcde/
H A Dmcde_dsi.c434 u64 bpl; in mcde_dsi_setup_video_mode() local
599 bpl = pclk * mode->htotal; /* (1) picoseconds per line */ in mcde_dsi_setup_video_mode()
600 dev_dbg(d->dev, "picoseconds per line: %llu\n", bpl); in mcde_dsi_setup_video_mode()
602 bpl *= (d->mdsi->hs_rate / 8); in mcde_dsi_setup_video_mode()
604 bpl = DIV_ROUND_DOWN_ULL(bpl, 1000000); /* microseconds */ in mcde_dsi_setup_video_mode()
605 bpl = DIV_ROUND_DOWN_ULL(bpl, 1000000); /* seconds */ in mcde_dsi_setup_video_mode()
607 bpl *= d->mdsi->lanes; in mcde_dsi_setup_video_mode()
610 bpl, drm_mode_vrefresh(mode), d->mdsi->hs_rate); in mcde_dsi_setup_video_mode()
625 blkline_pck = bpl - (mode->hsync_end - mode->hsync_start) - 6; in mcde_dsi_setup_video_mode()
632 blkline_pck = bpl - 4 - 6; in mcde_dsi_setup_video_mode()
[all …]
/linux/include/media/tpg/
H A Dv4l2-tpg.h462 static inline void tpg_s_bytesperline(struct tpg_data *tpg, unsigned plane, unsigned bpl) in tpg_s_bytesperline() argument
467 tpg->bytesperline[plane] = bpl; in tpg_s_bytesperline()
472 unsigned plane_w = bpl * tpg->twopixelsize[p] / tpg->twopixelsize[0]; in tpg_s_bytesperline()
497 unsigned plane, unsigned bpl) in tpg_calc_line_width() argument
503 return bpl; in tpg_calc_line_width()
505 unsigned plane_w = bpl * tpg->twopixelsize[p] / tpg->twopixelsize[0]; in tpg_calc_line_width()
/linux/drivers/media/platform/mediatek/mdp3/
H A Dmtk-mdp3-regs.c188 u32 bpl = pix_mp->plane_fmt[i].bytesperline; in mdp_try_fmt_mplane() local
193 bpl = clamp(bpl, min_bpl, max_bpl); in mdp_try_fmt_mplane()
194 pix_mp->plane_fmt[i].bytesperline = bpl; in mdp_try_fmt_mplane()
196 di = (u64)bpl * pix_mp->height * fmt->depth[i]; in mdp_try_fmt_mplane()
198 di = (u64)bpl * s.max_height * fmt->depth[i]; in mdp_try_fmt_mplane()
205 ctx_id, i, bpl, min_bpl, max_bpl, si, min_si, max_si); in mdp_try_fmt_mplane()
/linux/drivers/media/platform/sunxi/sun4i-csi/
H A Dsun4i_v4l2.c123 unsigned int bpl; in _sun4i_csi_try_fmt() local
125 bpl = pix->width / hsub * _fmt->bpp[i] / 8; in _sun4i_csi_try_fmt()
126 pix->plane_fmt[i].bytesperline = bpl; in _sun4i_csi_try_fmt()
127 pix->plane_fmt[i].sizeimage = bpl * pix->height / vsub; in _sun4i_csi_try_fmt()
/linux/arch/arm/lib/
H A Dio-writesw-armv4.S46 bpl .Loutsw_8_lp
91 bpl 1b
H A Dio-readsw-armv4.S53 bpl .Linsw_8_lp
115 bpl 2b
/linux/arch/arm64/crypto/
H A Daes-ce-core.S32 bpl 1b
60 bpl 1b
/linux/drivers/media/platform/samsung/exynos-gsc/
H A Dgsc-core.c453 u32 bpl = plane_fmt->bytesperline; in gsc_try_fmt_mplane() local
456 (bpl == 0 || (bpl * 8 / fmt->depth[i]) < pix_mp->width)) in gsc_try_fmt_mplane()
457 bpl = pix_mp->width * fmt->depth[i] / 8; in gsc_try_fmt_mplane()
460 (bpl == 0 || bpl < pix_mp->width)) in gsc_try_fmt_mplane()
461 bpl = pix_mp->width; in gsc_try_fmt_mplane()
464 bpl /= 2; in gsc_try_fmt_mplane()
466 plane_fmt->bytesperline = bpl; in gsc_try_fmt_mplane()
471 i, bpl, pix_mp->plane_fmt[i].sizeimage); in gsc_try_fmt_mplane()
/linux/drivers/media/platform/qcom/camss/
H A Dcamss-video.c437 u32 bpl, lines; in __video_try_fmt() local
470 bpl = pix_mp->width / fi->hsub[i].numerator * in __video_try_fmt()
472 bpl = ALIGN(bpl, video->bpl_alignment); in __video_try_fmt()
473 pix_mp->plane_fmt[i].bytesperline = bpl; in __video_try_fmt()
475 fi->vsub[i].numerator * fi->vsub[i].denominator * bpl; in __video_try_fmt()

123