Home
last modified time | relevance | path

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

1234

/Linux-v4.19/drivers/media/pci/tw68/
Dtw68-risc.c44 unsigned int bpl, unsigned int padding, in tw68_risc_field() argument
70 if (bpl <= sg_dma_len(sg) - offset) { in tw68_risc_field()
73 /* (offset<<12) |*/ bpl); in tw68_risc_field()
75 offset += bpl; in tw68_risc_field()
83 todo = bpl; /* one full line to be done */ in tw68_risc_field()
142 unsigned int bpl, in tw68_risc_buffer() argument
160 instructions = fields * (1 + (((bpl + padding) * lines) / in tw68_risc_buffer()
171 bpl, padding, lines, true); in tw68_risc_buffer()
174 bpl, padding, lines, top_offset == UNSET); in tw68_risc_buffer()
Dtw68-video.c464 unsigned size, bpl; in tw68_buf_prepare() local
471 bpl = (dev->width * dev->fmt->depth) >> 3; in tw68_buf_prepare()
475 0, UNSET, bpl, 0, dev->height); in tw68_buf_prepare()
479 UNSET, 0, bpl, 0, dev->height); in tw68_buf_prepare()
483 0, bpl * (dev->height >> 1), in tw68_buf_prepare()
484 bpl, 0, dev->height >> 1); in tw68_buf_prepare()
488 bpl * (dev->height >> 1), 0, in tw68_buf_prepare()
489 bpl, 0, dev->height >> 1); in tw68_buf_prepare()
494 0, bpl, bpl, bpl, dev->height >> 1); in tw68_buf_prepare()
/Linux-v4.19/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
/Linux-v4.19/drivers/media/pci/cx88/
Dcx88-core.c81 unsigned int bpl, unsigned int padding, in cx88_risc_field() argument
107 if (bpl <= sg_dma_len(sg) - offset) { in cx88_risc_field()
110 RISC_EOL | bpl); in cx88_risc_field()
112 offset += bpl; in cx88_risc_field()
115 todo = bpl; in cx88_risc_field()
142 unsigned int bpl, unsigned int padding, unsigned int lines) in cx88_risc_buffer() argument
159 instructions = fields * (1 + ((bpl + padding) * lines) / in cx88_risc_buffer()
172 bpl, padding, lines, 0, true); in cx88_risc_buffer()
175 bpl, padding, lines, 0, in cx88_risc_buffer()
186 struct scatterlist *sglist, unsigned int bpl, in cx88_risc_databuffer() argument
[all …]
Dcx88-alsa.c54 unsigned int bpl; member
133 cx88_sram_channel_setup(chip->core, audio_ch, buf->bpl, buf->risc.dma); in _cx88_start_audio_dma()
136 cx_write(MO_AUDD_LNGTH, buf->bpl); in _cx88_start_audio_dma()
144 buf->bpl, cx_read(audio_ch->cmds_start + 8) >> 1, in _cx88_start_audio_dma()
145 chip->num_periods, buf->bpl * chip->num_periods); in _cx88_start_audio_dma()
433 unsigned int bpl = cx88_sram_channels[SRAM_CH25].fifo_size / 4; in snd_cx88_pcm_open() local
435 bpl &= ~7; /* must be multiple of 8 */ in snd_cx88_pcm_open()
436 runtime->hw.period_bytes_min = bpl; in snd_cx88_pcm_open()
437 runtime->hw.period_bytes_max = bpl; in snd_cx88_pcm_open()
482 buf->bpl = chip->period_size; in snd_cx88_hw_params()
Dcx88-dsp.c252 unsigned int bpl = srch->fifo_size / AUD_RDS_LINES; in read_rds_samples() local
253 unsigned int spl = bpl / 4; in read_rds_samples()
257 u32 offset = (current_address - srch->fifo_start + bpl); in read_rds_samples()
271 offset = offset % (AUD_RDS_LINES * bpl); in read_rds_samples()
/Linux-v4.19/drivers/media/pci/cx25821/
Dcx25821-core.c436 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup() argument
449 bpl = (bpl + 7) & ~7; /* alignment */ in cx25821_sram_channel_setup()
451 lines = ch->fifo_size / bpl; in cx25821_sram_channel_setup()
464 cx_write(cdt + 16 * i, ch->fifo_start + bpl * i); in cx25821_sram_channel_setup()
497 cx_write(ch->cnt1_reg, (bpl >> 3) - 1); in cx25821_sram_channel_setup()
504 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup_audio() argument
517 bpl = (bpl + 7) & ~7; /* alignment */ in cx25821_sram_channel_setup_audio()
519 lines = ch->fifo_size / bpl; in cx25821_sram_channel_setup_audio()
532 cx_write(cdt + 16 * i, ch->fifo_start + bpl * i); in cx25821_sram_channel_setup_audio()
563 cx_write(ch->cnt1_reg, (bpl >> 3) - 1); in cx25821_sram_channel_setup_audio()
[all …]
Dcx25821-alsa.c61 unsigned int bpl; member
239 cx25821_sram_channel_setup_audio(chip->dev, audio_ch, buf->bpl, in _cx25821_start_audio_dma()
243 cx_write(AUD_A_LNGTH, buf->bpl); in _cx25821_start_audio_dma()
459 unsigned int bpl = 0; in snd_cx25821_pcm_open() local
478 bpl = cx25821_sram_channels[AUDIO_SRAM_CHANNEL].fifo_size / 3; in snd_cx25821_pcm_open()
479 bpl &= ~7; /* must be multiple of 8 */ in snd_cx25821_pcm_open()
481 if (bpl > AUDIO_LINE_SIZE) in snd_cx25821_pcm_open()
482 bpl = AUDIO_LINE_SIZE; in snd_cx25821_pcm_open()
484 runtime->hw.period_bytes_min = bpl; in snd_cx25821_pcm_open()
485 runtime->hw.period_bytes_max = bpl; in snd_cx25821_pcm_open()
[all …]
Dcx25821-video.c79 cx25821_sram_channel_setup(dev, channel, buf->bpl, buf->risc.dma); in cx25821_start_video_dma()
168 buf->bpl = (chan->fmt->depth * chan->width) >> 3; in cx25821_buffer_prepare()
170 buf->bpl = (chan->fmt->depth >> 3) * chan->width; in cx25821_buffer_prepare()
172 if (vb2_plane_size(vb, 0) < chan->height * buf->bpl) in cx25821_buffer_prepare()
174 vb2_set_plane_payload(vb, 0, chan->height * buf->bpl); in cx25821_buffer_prepare()
178 bpl_local = buf->bpl; in cx25821_buffer_prepare()
180 bpl_local = buf->bpl; /* Default */ in cx25821_buffer_prepare()
194 buf->bpl, 0, chan->height); in cx25821_buffer_prepare()
199 buf->bpl, 0, chan->height); in cx25821_buffer_prepare()
214 0, buf->bpl * (chan->height >> 1), in cx25821_buffer_prepare()
[all …]
Dcx25821.h129 unsigned int bpl; member
403 const struct sram_channel *ch, unsigned int bpl,
413 unsigned int bpl,
418 unsigned int bpl,
433 unsigned int bpl, u32 risc);
/Linux-v4.19/drivers/media/pci/cx23885/
Dcx23885-alsa.c172 cx23885_sram_channel_setup(chip->dev, audio_ch, buf->bpl, in cx23885_start_audio_dma()
176 cx_write(AUD_INT_A_LNGTH, buf->bpl); in cx23885_start_audio_dma()
186 buf->bpl, cx_read(audio_ch->cmds_start+12)>>1, in cx23885_start_audio_dma()
187 chip->num_periods, buf->bpl * chip->num_periods); in cx23885_start_audio_dma()
341 unsigned int bpl = chip->dev-> in snd_cx23885_pcm_open() local
343 bpl &= ~7; /* must be multiple of 8 */ in snd_cx23885_pcm_open()
344 runtime->hw.period_bytes_min = bpl; in snd_cx23885_pcm_open()
345 runtime->hw.period_bytes_max = bpl; in snd_cx23885_pcm_open()
389 buf->bpl = chip->period_size; in snd_cx23885_hw_params()
Dcx23885-core.c453 unsigned int bpl, u32 risc) in cx23885_sram_channel_setup() argument
471 bpl = (bpl + 7) & ~7; /* alignment */ in cx23885_sram_channel_setup()
473 lines = ch->fifo_size / bpl; in cx23885_sram_channel_setup()
485 ch->fifo_start + bpl*i); in cx23885_sram_channel_setup()
486 cx_write(cdt + 16*i, ch->fifo_start + bpl*i); in cx23885_sram_channel_setup()
512 cx_write(ch->cnt1_reg, (bpl >> 3) - 1); in cx23885_sram_channel_setup()
517 bpl, in cx23885_sram_channel_setup()
1125 unsigned int bpl, unsigned int padding, in cx23885_risc_field() argument
1155 if (bpl <= sg_dma_len(sg)-offset) { in cx23885_risc_field()
1157 *(rp++) = cpu_to_le32(RISC_WRITE|sol|RISC_EOL|bpl); in cx23885_risc_field()
[all …]
Dcx23885.h187 unsigned int bpl; member
334 unsigned int bpl; member
519 unsigned int bpl, u32 risc);
527 unsigned int bpl, unsigned int padding, unsigned int lines);
532 unsigned int bpl, unsigned int padding, unsigned int lines);
632 unsigned int bpl,
Dcx23885-video.c322 buf->bpl, buf->risc.dma); in cx23885_start_video_dma()
360 buf->bpl = (dev->width * dev->fmt->depth) >> 3; in buffer_prepare()
362 if (vb2_plane_size(vb, 0) < dev->height * buf->bpl) in buffer_prepare()
364 vb2_set_plane_payload(vb, 0, dev->height * buf->bpl); in buffer_prepare()
370 buf->bpl, 0, dev->height); in buffer_prepare()
375 buf->bpl, 0, dev->height); in buffer_prepare()
392 line0_offset = buf->bpl; in buffer_prepare()
399 line1_offset = buf->bpl; in buffer_prepare()
404 buf->bpl, buf->bpl, in buffer_prepare()
410 0, buf->bpl * (dev->height >> 1), in buffer_prepare()
[all …]
/Linux-v4.19/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()
720 int bpl = (buf->fmt->depth >> 3) * buf->vb.width; in bttv_buffer_risc() local
721 int bpf = bpl * (buf->vb.height >> 1); in bttv_buffer_risc()
730 /* 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()
/Linux-v4.19/drivers/scsi/lpfc/
Dlpfc_scsi.c391 struct ulp_bde64 *bpl; in lpfc_new_scsi_buf_s3() local
443 bpl = psb->fcp_bpl; in lpfc_new_scsi_buf_s3()
454 bpl[0].addrHigh = le32_to_cpu(putPaddrHigh(pdma_phys_fcp_cmd)); in lpfc_new_scsi_buf_s3()
455 bpl[0].addrLow = le32_to_cpu(putPaddrLow(pdma_phys_fcp_cmd)); in lpfc_new_scsi_buf_s3()
456 bpl[0].tus.f.bdeSize = sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
457 bpl[0].tus.f.bdeFlags = BUFF_TYPE_BDE_64; in lpfc_new_scsi_buf_s3()
458 bpl[0].tus.w = le32_to_cpu(bpl[0].tus.w); in lpfc_new_scsi_buf_s3()
461 bpl[1].addrHigh = le32_to_cpu(putPaddrHigh(pdma_phys_fcp_rsp)); in lpfc_new_scsi_buf_s3()
462 bpl[1].addrLow = le32_to_cpu(putPaddrLow(pdma_phys_fcp_rsp)); in lpfc_new_scsi_buf_s3()
463 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.c157 int outbound_buffers, struct ulp_bde64 *bpl, in lpfc_alloc_bsg_buffers() argument
200 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64; in lpfc_alloc_bsg_buffers()
202 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64I; in lpfc_alloc_bsg_buffers()
203 bpl->addrLow = le32_to_cpu(putPaddrLow(mp->phys)); in lpfc_alloc_bsg_buffers()
204 bpl->addrHigh = le32_to_cpu(putPaddrHigh(mp->phys)); in lpfc_alloc_bsg_buffers()
205 bpl->tus.f.bdeSize = (uint16_t) in lpfc_alloc_bsg_buffers()
208 bytes_left -= bpl->tus.f.bdeSize; in lpfc_alloc_bsg_buffers()
209 bpl->tus.w = le32_to_cpu(bpl->tus.w); in lpfc_alloc_bsg_buffers()
210 bpl++; in lpfc_alloc_bsg_buffers()
394 struct ulp_bde64 *bpl = NULL; in lpfc_bsg_send_mgmt_cmd() local
[all …]
Dlpfc_nvme.c428 struct ulp_bde64 *bpl; in lpfc_nvme_gen_req() local
455 bpl = (struct ulp_bde64 *)bmp->virt; in lpfc_nvme_gen_req()
457 bde.tus.w = bpl[i].tus.w; in lpfc_nvme_gen_req()
471 wqe->generic.bde.addrLow = bpl[0].addrLow; in lpfc_nvme_gen_req()
472 wqe->generic.bde.addrHigh = bpl[0].addrHigh; in lpfc_nvme_gen_req()
567 struct ulp_bde64 *bpl; in lpfc_nvme_ls_req() local
632 bpl = (struct ulp_bde64 *)bmp->virt; in lpfc_nvme_ls_req()
633 bpl->addrHigh = le32_to_cpu(putPaddrHigh(pnvme_lsreq->rqstdma)); in lpfc_nvme_ls_req()
634 bpl->addrLow = le32_to_cpu(putPaddrLow(pnvme_lsreq->rqstdma)); in lpfc_nvme_ls_req()
635 bpl->tus.f.bdeFlags = 0; in lpfc_nvme_ls_req()
[all …]
/Linux-v4.19/drivers/usb/gadget/function/
Duvc_v4l2.c108 unsigned int bpl; in uvc_v4l2_set_format() local
123 bpl = format->bpp * fmt->fmt.pix.width / 8; in uvc_v4l2_set_format()
124 imagesize = bpl ? bpl * fmt->fmt.pix.height : fmt->fmt.pix.sizeimage; in uvc_v4l2_set_format()
133 fmt->fmt.pix.bytesperline = bpl; in uvc_v4l2_set_format()
/Linux-v4.19/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-v4.19/drivers/media/platform/
Drenesas-ceu.c563 unsigned int bpl, unsigned int szimage) in ceu_update_plane_sizes() argument
568 if (plane->bytesperline < bpl || plane->bytesperline > CEU_MAX_BPL) in ceu_update_plane_sizes()
569 plane->bytesperline = bpl; in ceu_update_plane_sizes()
584 unsigned int bpl, szimage; in ceu_calc_plane_sizes() local
592 bpl = pix->width * ceu_fmt->bpp / 8; in ceu_calc_plane_sizes()
593 szimage = pix->height * bpl; in ceu_calc_plane_sizes()
594 ceu_update_plane_sizes(&pix->plane_fmt[0], bpl, szimage); in ceu_calc_plane_sizes()
600 bpl = pix->width; in ceu_calc_plane_sizes()
602 ceu_update_plane_sizes(&pix->plane_fmt[0], bpl, szimage); in ceu_calc_plane_sizes()
603 ceu_update_plane_sizes(&pix->plane_fmt[1], bpl, szimage / 2); in ceu_calc_plane_sizes()
[all …]
Drcar_jpu.c816 unsigned int i, bpl = 0; in __jpu_try_fmt() local
819 bpl = max(bpl, pix->plane_fmt[i].bytesperline); in __jpu_try_fmt()
821 bpl = clamp_t(unsigned int, bpl, w, JPU_WIDTH_MAX); in __jpu_try_fmt()
822 bpl = round_up(bpl, JPU_MEMALIGN); in __jpu_try_fmt()
825 pix->plane_fmt[i].bytesperline = bpl; in __jpu_try_fmt()
826 pix->plane_fmt[i].sizeimage = bpl * h * fmt->bpp[i] / 8; in __jpu_try_fmt()
1360 unsigned int w, h, bpl; in jpu_device_run() local
1387 bpl = q_data->format.plane_fmt[0].bytesperline; in jpu_device_run()
1427 jpu_write(jpu, bpl, JIFESMW); in jpu_device_run()
1483 jpu_write(jpu, bpl, JIFDDMW); in jpu_device_run()
/Linux-v4.19/arch/arm/lib/
Dio-writesw-armv4.S49 bpl .Loutsw_8_lp
94 bpl 1b

1234