| /drivers/media/pci/tw68/ |
| A D | tw68-risc.c | 35 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()
|
| A D | tw68-video.c | 447 unsigned size, bpl; in tw68_buf_prepare() local 454 bpl = (dev->width * dev->fmt->depth) >> 3; in tw68_buf_prepare() 458 0, UNSET, bpl, 0, dev->height); in tw68_buf_prepare() 462 UNSET, 0, bpl, 0, dev->height); in tw68_buf_prepare() 466 0, bpl * (dev->height >> 1), in tw68_buf_prepare() 467 bpl, 0, dev->height >> 1); in tw68_buf_prepare() 471 bpl * (dev->height >> 1), 0, in tw68_buf_prepare() 472 bpl, 0, dev->height >> 1); in tw68_buf_prepare() 477 0, bpl, bpl, bpl, dev->height >> 1); in tw68_buf_prepare()
|
| /drivers/block/ |
| A D | swim_asm.S | 82 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
|
| /drivers/media/pci/cx88/ |
| A D | cx88-core.c | 72 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() 164 bpl, padding, lines, 0, true); in cx88_risc_buffer() 167 bpl, padding, lines, 0, in cx88_risc_buffer() 344 unsigned int bpl, u32 risc) in cx88_sram_channel_setup() argument 349 bpl = (bpl + 7) & ~7; /* alignment */ in cx88_sram_channel_setup() 351 lines = ch->fifo_size / bpl; in cx88_sram_channel_setup() [all …]
|
| A D | cx88-alsa.c | 45 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()
|
| A D | cx88-dsp.c | 243 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()
|
| /drivers/media/pci/cx25821/ |
| A D | cx25821-core.c | 432 bpl = (bpl + 7) & ~7; /* alignment */ in cx25821_sram_channel_setup() 434 lines = ch->fifo_size / bpl; in cx25821_sram_channel_setup() 500 bpl = (bpl + 7) & ~7; /* alignment */ in cx25821_sram_channel_setup_audio() 502 lines = ch->fifo_size / bpl; in cx25821_sram_channel_setup_audio() 1016 bpl); in cx25821_risc_field() 1019 offset += bpl; in cx25821_risc_field() 1022 todo = bpl; in cx25821_risc_field() 1127 bpl); in cx25821_risc_field_audio() 1130 offset += bpl; in cx25821_risc_field_audio() 1133 todo = bpl; in cx25821_risc_field_audio() [all …]
|
| A D | cx25821-alsa.c | 52 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 …]
|
| A D | cx25821-video.c | 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() 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() 202 buf->bpl, 0, chan->height >> 1); in cx25821_buffer_prepare() 207 buf->bpl * (chan->height >> 1), 0, in cx25821_buffer_prepare() [all …]
|
| A D | cx25821.h | 117 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);
|
| /drivers/media/pci/bt8xx/ |
| A D | bttv-risc.c | 37 unsigned int offset, unsigned int bpl, in bttv_risc_packed() argument 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() 512 unsigned int padding = VBI_BPL - bpl; in bttv_buffer_risc_vbi() 671 int bpf = bpl * (btv->height >> 1); in bttv_buffer_risc() 687 bpl, 0, btv->height >> 1); in bttv_buffer_risc() 689 bpl, bpl, 0, btv->height >> 1); in bttv_buffer_risc() [all …]
|
| /drivers/media/pci/cx23885/ |
| A D | cx23885-alsa.c | 164 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()
|
| A D | cx23885-core.c | 456 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() 520 bpl, in cx23885_sram_channel_setup() 1168 offset += bpl; in cx23885_risc_field() 1171 todo = bpl; in cx23885_risc_field() 1230 bpl, padding, lines, 0, true); in cx23885_risc_buffer() 1244 unsigned int bpl, in cx23885_risc_databuffer() argument 1267 bpl, 0, lines, lpi, lpi == 0); in cx23885_risc_databuffer() [all …]
|
| A D | cx23885-video.c | 316 buf->bpl, buf->risc.dma); in cx23885_start_video_dma() 355 buf->bpl = (dev->width * dev->fmt->depth) >> 3; in buffer_prepare() 365 buf->bpl, 0, dev->height); in buffer_prepare() 370 buf->bpl, 0, dev->height); in buffer_prepare() 387 line0_offset = buf->bpl; in buffer_prepare() 394 line1_offset = buf->bpl; in buffer_prepare() 399 buf->bpl, buf->bpl, in buffer_prepare() 405 0, buf->bpl * (dev->height >> 1), in buffer_prepare() 406 buf->bpl, 0, in buffer_prepare() 412 buf->bpl * (dev->height >> 1), 0, in buffer_prepare() [all …]
|
| A D | cx23885.h | 178 unsigned int bpl; member 325 unsigned int bpl; member 512 unsigned int bpl, u32 risc); 520 unsigned int bpl, unsigned int padding, unsigned int lines); 525 unsigned int bpl, unsigned int padding, unsigned int lines); 625 unsigned int bpl,
|
| /drivers/scsi/lpfc/ |
| A D | lpfc_ct.c | 163 struct ulp_bde64 *bpl; in lpfc_ct_reject_event() local 202 bpl->tus.w = le32_to_cpu(bpl->tus.w); in lpfc_ct_reject_event() 534 bpl->tus.w = le32_to_cpu(bpl->tus.w); in lpfc_alloc_ct_rsp() 535 bpl++; in lpfc_alloc_ct_rsp() 1889 struct ulp_bde64 *bpl; in lpfc_ns_cmd() local 1942 bpl->tus.f.bdeFlags = 0; in lpfc_ns_cmd() 1964 bpl->tus.f.bdeSize = 0; in lpfc_ns_cmd() 1965 bpl->tus.w = le32_to_cpu(bpl->tus.w); in lpfc_ns_cmd() 3663 struct ulp_bde64 *bpl; in lpfc_vmid_cmd() local 3774 bpl->tus.f.bdeFlags = 0; in lpfc_vmid_cmd() [all …]
|
| A D | lpfc_scsi.c | 317 bpl[0].tus.w = le32_to_cpu(bpl[0].tus.w); in lpfc_new_scsi_buf_s3() 324 bpl[1].tus.w = le32_to_cpu(bpl[1].tus.w); in lpfc_new_scsi_buf_s3() 880 bpl->tus.w = le32_to_cpu(bpl->tus.w); in lpfc_scsi_prep_dma_buf_s3() 1583 bpl++; in lpfc_bg_setup_bpl() 1618 bpl++; in lpfc_bg_setup_bpl() 1630 bpl->tus.w = le32_to_cpu(bpl->tus.w); in lpfc_bg_setup_bpl() 1631 bpl++; in lpfc_bg_setup_bpl() 1750 bpl++; in lpfc_bg_setup_bpl_prot() 1780 bpl++; in lpfc_bg_setup_bpl_prot() 1826 bpl++; in lpfc_bg_setup_bpl_prot() [all …]
|
| A D | lpfc_nvme.c | 401 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() 550 struct ulp_bde64 *bpl; in __lpfc_nvme_ls_req() local 611 bpl = (struct ulp_bde64 *)bmp->virt; in __lpfc_nvme_ls_req() 614 bpl->tus.f.bdeFlags = 0; in __lpfc_nvme_ls_req() 616 bpl->tus.w = le32_to_cpu(bpl->tus.w); in __lpfc_nvme_ls_req() 617 bpl++; in __lpfc_nvme_ls_req() 621 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64I; in __lpfc_nvme_ls_req() 622 bpl->tus.f.bdeSize = pnvme_lsreq->rsplen; in __lpfc_nvme_ls_req() [all …]
|
| /drivers/gpu/drm/mcde/ |
| A D | mcde_dsi.c | 434 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() 632 blkline_pck = bpl - 4 - 6; in mcde_dsi_setup_video_mode() 681 blkeol_pck = bpl - (mode->htotal * cpp) - 6; in mcde_dsi_setup_video_mode() [all …]
|
| /drivers/media/platform/renesas/ |
| A D | renesas-ceu.c | 560 unsigned int bpl, unsigned int szimage) in ceu_update_plane_sizes() argument 566 plane->bytesperline = bpl; in ceu_update_plane_sizes() 581 unsigned int bpl, szimage; in ceu_calc_plane_sizes() local 589 bpl = pix->width * ceu_fmt->bpp / 8; in ceu_calc_plane_sizes() 590 szimage = pix->height * bpl; in ceu_calc_plane_sizes() 591 ceu_update_plane_sizes(&pix->plane_fmt[0], bpl, szimage); in ceu_calc_plane_sizes() 597 bpl = pix->width; in ceu_calc_plane_sizes() 599 ceu_update_plane_sizes(&pix->plane_fmt[0], bpl, szimage); in ceu_calc_plane_sizes() 607 bpl = pix->width; in ceu_calc_plane_sizes() 609 ceu_update_plane_sizes(&pix->plane_fmt[0], bpl, szimage); in ceu_calc_plane_sizes() [all …]
|
| A D | rcar_jpu.c | 804 unsigned int i, bpl = 0; in __jpu_try_fmt() local 807 bpl = max(bpl, pix->plane_fmt[i].bytesperline); in __jpu_try_fmt() 809 bpl = clamp_t(unsigned int, bpl, w, JPU_WIDTH_MAX); in __jpu_try_fmt() 810 bpl = round_up(bpl, JPU_MEMALIGN); in __jpu_try_fmt() 813 pix->plane_fmt[i].bytesperline = bpl; in __jpu_try_fmt() 814 pix->plane_fmt[i].sizeimage = bpl * h * fmt->bpp[i] / 8; in __jpu_try_fmt() 1344 unsigned int w, h, bpl; in jpu_device_run() local 1371 bpl = q_data->format.plane_fmt[0].bytesperline; in jpu_device_run() 1411 jpu_write(jpu, bpl, JIFESMW); in jpu_device_run() 1467 jpu_write(jpu, bpl, JIFDDMW); in jpu_device_run()
|
| /drivers/media/platform/raspberrypi/pisp_be/ |
| A D | pisp_be.c | 689 unsigned int bpl, size; in pisp_be_validate_config() local 707 bpl = config->config.tdn_output_format.stride; in pisp_be_validate_config() 708 size = bpl * config->config.tdn_output_format.height; in pisp_be_validate_config() 710 if (fmt->fmt.pix_mp.plane_fmt[0].bytesperline < bpl) { in pisp_be_validate_config() 725 bpl = config->config.stitch_output_format.stride; in pisp_be_validate_config() 728 if (fmt->fmt.pix_mp.plane_fmt[0].bytesperline < bpl) { in pisp_be_validate_config() 1074 unsigned int bpl, plane_size; in pispbe_set_plane_params() local 1076 bpl = (f->fmt.pix_mp.width * fmt->bit_depth) >> 3; in pispbe_set_plane_params() 1077 bpl = ALIGN(max(p->bytesperline, bpl), fmt->align); in pispbe_set_plane_params() 1079 plane_size = bpl * f->fmt.pix_mp.height * in pispbe_set_plane_params() [all …]
|
| /drivers/staging/media/starfive/camss/ |
| A D | stf-video.c | 69 u32 bpl; in __video_try_fmt() local 86 bpl = pix->width * fi->bpp / 8; in __video_try_fmt() 87 bpl = ALIGN(bpl, video->bpl_alignment); in __video_try_fmt() 88 pix->bytesperline = bpl; in __video_try_fmt() 91 pix->sizeimage += bpl * pix->height / fi->vsub[i]; in __video_try_fmt()
|
| /drivers/media/platform/mediatek/mdp3/ |
| A D | mtk-mdp3-regs.c | 188 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()
|
| /drivers/media/platform/sunxi/sun4i-csi/ |
| A D | sun4i_v4l2.c | 123 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()
|