sdr               237 arch/m68k/include/asm/amigahw.h     unsigned char sdr;		char padb[0xff];
sdr               484 arch/powerpc/boot/4xx.c 	unsigned int sdr;
sdr               489 arch/powerpc/boot/4xx.c 		sdr = SDR0_READ(DCRN_SDR0_UART0);
sdr               492 arch/powerpc/boot/4xx.c 		sdr = SDR0_READ(DCRN_SDR0_UART1);
sdr               495 arch/powerpc/boot/4xx.c 		sdr = SDR0_READ(DCRN_SDR0_UART2);
sdr               498 arch/powerpc/boot/4xx.c 		sdr = SDR0_READ(DCRN_SDR0_UART3);
sdr               504 arch/powerpc/boot/4xx.c 	if (sdr & 0x00800000u)
sdr               507 arch/powerpc/boot/4xx.c 		clock = plb_clk / __fix_zero(sdr & 0xff, 256);
sdr               358 drivers/crypto/amcc/crypto4xx_core.c 	dev->sdr = dma_alloc_coherent(dev->core_dev->device,
sdr               361 drivers/crypto/amcc/crypto4xx_core.c 	if (!dev->sdr)
sdr               372 drivers/crypto/amcc/crypto4xx_core.c 		dev->sdr[i].ptr = dev->scatter_buffer_pa +
sdr               381 drivers/crypto/amcc/crypto4xx_core.c 	if (dev->sdr)
sdr               384 drivers/crypto/amcc/crypto4xx_core.c 				  dev->sdr, dev->sdr_pa);
sdr               442 drivers/crypto/amcc/crypto4xx_core.c 	return &dev->sdr[idx];
sdr                83 drivers/crypto/amcc/crypto4xx_core.h 	struct ce_sd *sdr;	/* scatter descriptor ring */
sdr               596 drivers/infiniband/hw/qib/qib_iba7322.c 	struct txdds_ent sdr;
sdr              7631 drivers/infiniband/hw/qib/qib_iba7322.c 			*sdr_dds = &v->sdr;
sdr               174 drivers/input/keyboard/amikbd.c 	scancode = ~ciaa.sdr;		/* get and invert scancode (keyboard is active low) */
sdr               730 drivers/media/common/videobuf2/videobuf2-v4l2.c 		requested_sizes[0] = f->fmt.sdr.buffersize;
sdr              1130 drivers/media/dvb-frontends/rtl2832_sdr.c 	f->fmt.sdr.pixelformat = dev->pixelformat;
sdr              1131 drivers/media/dvb-frontends/rtl2832_sdr.c 	f->fmt.sdr.buffersize = dev->buffersize;
sdr              1133 drivers/media/dvb-frontends/rtl2832_sdr.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr              1147 drivers/media/dvb-frontends/rtl2832_sdr.c 		(char *)&f->fmt.sdr.pixelformat);
sdr              1152 drivers/media/dvb-frontends/rtl2832_sdr.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr              1154 drivers/media/dvb-frontends/rtl2832_sdr.c 		if (formats[i].pixelformat == f->fmt.sdr.pixelformat) {
sdr              1157 drivers/media/dvb-frontends/rtl2832_sdr.c 			f->fmt.sdr.buffersize = formats[i].buffersize;
sdr              1164 drivers/media/dvb-frontends/rtl2832_sdr.c 	f->fmt.sdr.pixelformat = formats[0].pixelformat;
sdr              1165 drivers/media/dvb-frontends/rtl2832_sdr.c 	f->fmt.sdr.buffersize = formats[0].buffersize;
sdr              1178 drivers/media/dvb-frontends/rtl2832_sdr.c 		(char *)&f->fmt.sdr.pixelformat);
sdr              1180 drivers/media/dvb-frontends/rtl2832_sdr.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr              1182 drivers/media/dvb-frontends/rtl2832_sdr.c 		if (formats[i].pixelformat == f->fmt.sdr.pixelformat) {
sdr              1183 drivers/media/dvb-frontends/rtl2832_sdr.c 			f->fmt.sdr.buffersize = formats[i].buffersize;
sdr              1188 drivers/media/dvb-frontends/rtl2832_sdr.c 	f->fmt.sdr.pixelformat = formats[0].pixelformat;
sdr              1189 drivers/media/dvb-frontends/rtl2832_sdr.c 	f->fmt.sdr.buffersize = formats[0].buffersize;
sdr                67 drivers/media/i2c/m5mols/m5mols.h 	u16 sdr;
sdr                91 drivers/media/i2c/m5mols/m5mols_capture.c 		ret = m5mols_read_u16(sd, EXIF_INFO_SDR, &exif->sdr);
sdr               131 drivers/media/platform/rcar_drif.c #define to_rcar_drif_buf_pair(sdr, ch_num, idx)			\
sdr               132 drivers/media/platform/rcar_drif.c 	(&((sdr)->ch[!(ch_num)]->buf[(idx)]))
sdr               138 drivers/media/platform/rcar_drif.c #define rdrif_dbg(sdr, fmt, arg...)				\
sdr               139 drivers/media/platform/rcar_drif.c 	dev_dbg(sdr->v4l2_dev.dev, fmt, ## arg)
sdr               141 drivers/media/platform/rcar_drif.c #define rdrif_err(sdr, fmt, arg...)				\
sdr               142 drivers/media/platform/rcar_drif.c 	dev_err(sdr->v4l2_dev.dev, fmt, ## arg)
sdr               199 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr;	/* Group device */
sdr               257 drivers/media/platform/rcar_drif.c static void rcar_drif_release_dmachannels(struct rcar_drif_sdr *sdr)
sdr               261 drivers/media/platform/rcar_drif.c 	for_each_rcar_drif_channel(i, &sdr->cur_ch_mask)
sdr               262 drivers/media/platform/rcar_drif.c 		if (sdr->ch[i]->dmach) {
sdr               263 drivers/media/platform/rcar_drif.c 			dma_release_channel(sdr->ch[i]->dmach);
sdr               264 drivers/media/platform/rcar_drif.c 			sdr->ch[i]->dmach = NULL;
sdr               269 drivers/media/platform/rcar_drif.c static int rcar_drif_alloc_dmachannels(struct rcar_drif_sdr *sdr)
sdr               275 drivers/media/platform/rcar_drif.c 	for_each_rcar_drif_channel(i, &sdr->cur_ch_mask) {
sdr               276 drivers/media/platform/rcar_drif.c 		struct rcar_drif *ch = sdr->ch[i];
sdr               280 drivers/media/platform/rcar_drif.c 			rdrif_err(sdr, "ch%u: dma channel req failed\n", i);
sdr               291 drivers/media/platform/rcar_drif.c 			rdrif_err(sdr, "ch%u: dma slave config failed\n", i);
sdr               298 drivers/media/platform/rcar_drif.c 	rcar_drif_release_dmachannels(sdr);
sdr               303 drivers/media/platform/rcar_drif.c static void rcar_drif_release_queued_bufs(struct rcar_drif_sdr *sdr,
sdr               309 drivers/media/platform/rcar_drif.c 	spin_lock_irqsave(&sdr->queued_bufs_lock, flags);
sdr               310 drivers/media/platform/rcar_drif.c 	list_for_each_entry_safe(fbuf, tmp, &sdr->queued_bufs, list) {
sdr               314 drivers/media/platform/rcar_drif.c 	spin_unlock_irqrestore(&sdr->queued_bufs_lock, flags);
sdr               318 drivers/media/platform/rcar_drif.c static inline void rcar_drif_set_mdr1(struct rcar_drif_sdr *sdr)
sdr               323 drivers/media/platform/rcar_drif.c 	for_each_rcar_drif_channel(i, &sdr->cur_ch_mask) {
sdr               325 drivers/media/platform/rcar_drif.c 		rcar_drif_write(sdr->ch[i], RCAR_DRIF_SITMDR1,
sdr               329 drivers/media/platform/rcar_drif.c 		rcar_drif_write(sdr->ch[i], RCAR_DRIF_SIRMDR1, sdr->mdr1);
sdr               331 drivers/media/platform/rcar_drif.c 		rdrif_dbg(sdr, "ch%u: mdr1 = 0x%08x",
sdr               332 drivers/media/platform/rcar_drif.c 			  i, rcar_drif_read(sdr->ch[i], RCAR_DRIF_SIRMDR1));
sdr               337 drivers/media/platform/rcar_drif.c static int rcar_drif_set_format(struct rcar_drif_sdr *sdr)
sdr               341 drivers/media/platform/rcar_drif.c 	rdrif_dbg(sdr, "setfmt: bitlen %u wdcnt %u num_ch %u\n",
sdr               342 drivers/media/platform/rcar_drif.c 		  sdr->fmt->bitlen, sdr->fmt->wdcnt, sdr->fmt->num_ch);
sdr               345 drivers/media/platform/rcar_drif.c 	if (sdr->fmt->num_ch > sdr->num_cur_ch) {
sdr               346 drivers/media/platform/rcar_drif.c 		rdrif_err(sdr, "fmt num_ch %u cur_ch %u mismatch\n",
sdr               347 drivers/media/platform/rcar_drif.c 			  sdr->fmt->num_ch, sdr->num_cur_ch);
sdr               352 drivers/media/platform/rcar_drif.c 	for_each_rcar_drif_channel(i, &sdr->cur_ch_mask) {
sdr               357 drivers/media/platform/rcar_drif.c 			RCAR_DRIF_MDR_BITLEN(sdr->fmt->bitlen) |
sdr               358 drivers/media/platform/rcar_drif.c 			RCAR_DRIF_MDR_WDCNT(sdr->fmt->wdcnt);
sdr               359 drivers/media/platform/rcar_drif.c 		rcar_drif_write(sdr->ch[i], RCAR_DRIF_SIRMDR2, mdr);
sdr               361 drivers/media/platform/rcar_drif.c 		mdr = RCAR_DRIF_MDR_BITLEN(sdr->fmt->bitlen) |
sdr               362 drivers/media/platform/rcar_drif.c 			RCAR_DRIF_MDR_WDCNT(sdr->fmt->wdcnt);
sdr               363 drivers/media/platform/rcar_drif.c 		rcar_drif_write(sdr->ch[i], RCAR_DRIF_SIRMDR3, mdr);
sdr               365 drivers/media/platform/rcar_drif.c 		rdrif_dbg(sdr, "ch%u: new mdr[2,3] = 0x%08x, 0x%08x\n",
sdr               366 drivers/media/platform/rcar_drif.c 			  i, rcar_drif_read(sdr->ch[i], RCAR_DRIF_SIRMDR2),
sdr               367 drivers/media/platform/rcar_drif.c 			  rcar_drif_read(sdr->ch[i], RCAR_DRIF_SIRMDR3));
sdr               373 drivers/media/platform/rcar_drif.c static void rcar_drif_release_buf(struct rcar_drif_sdr *sdr)
sdr               377 drivers/media/platform/rcar_drif.c 	for_each_rcar_drif_channel(i, &sdr->cur_ch_mask) {
sdr               378 drivers/media/platform/rcar_drif.c 		struct rcar_drif *ch = sdr->ch[i];
sdr               383 drivers/media/platform/rcar_drif.c 				sdr->hwbuf_size * RCAR_DRIF_NUM_HWBUFS,
sdr               391 drivers/media/platform/rcar_drif.c static int rcar_drif_request_buf(struct rcar_drif_sdr *sdr)
sdr               397 drivers/media/platform/rcar_drif.c 	for_each_rcar_drif_channel(i, &sdr->cur_ch_mask) {
sdr               398 drivers/media/platform/rcar_drif.c 		struct rcar_drif *ch = sdr->ch[i];
sdr               402 drivers/media/platform/rcar_drif.c 				sdr->hwbuf_size * RCAR_DRIF_NUM_HWBUFS,
sdr               405 drivers/media/platform/rcar_drif.c 			rdrif_err(sdr,
sdr               407 drivers/media/platform/rcar_drif.c 			i, RCAR_DRIF_NUM_HWBUFS, sdr->hwbuf_size);
sdr               413 drivers/media/platform/rcar_drif.c 			ch->buf[j].addr = addr + (j * sdr->hwbuf_size);
sdr               427 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = vb2_get_drv_priv(vq);
sdr               434 drivers/media/platform/rcar_drif.c 	sizes[0] = PAGE_ALIGN(sdr->fmt->buffersize);
sdr               435 drivers/media/platform/rcar_drif.c 	rdrif_dbg(sdr, "num_bufs %d sizes[0] %d\n", *num_buffers, sizes[0]);
sdr               444 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = vb2_get_drv_priv(vb->vb2_queue);
sdr               449 drivers/media/platform/rcar_drif.c 	rdrif_dbg(sdr, "buf_queue idx %u\n", vb->index);
sdr               450 drivers/media/platform/rcar_drif.c 	spin_lock_irqsave(&sdr->queued_bufs_lock, flags);
sdr               451 drivers/media/platform/rcar_drif.c 	list_add_tail(&fbuf->list, &sdr->queued_bufs);
sdr               452 drivers/media/platform/rcar_drif.c 	spin_unlock_irqrestore(&sdr->queued_bufs_lock, flags);
sdr               457 drivers/media/platform/rcar_drif.c rcar_drif_get_fbuf(struct rcar_drif_sdr *sdr)
sdr               462 drivers/media/platform/rcar_drif.c 	spin_lock_irqsave(&sdr->queued_bufs_lock, flags);
sdr               463 drivers/media/platform/rcar_drif.c 	fbuf = list_first_entry_or_null(&sdr->queued_bufs, struct
sdr               470 drivers/media/platform/rcar_drif.c 		rdrif_dbg(sdr, "\napp late: prod %u\n", sdr->produced);
sdr               471 drivers/media/platform/rcar_drif.c 		spin_unlock_irqrestore(&sdr->queued_bufs_lock, flags);
sdr               475 drivers/media/platform/rcar_drif.c 	spin_unlock_irqrestore(&sdr->queued_bufs_lock, flags);
sdr               522 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = ch->sdr;
sdr               529 drivers/media/platform/rcar_drif.c 	spin_lock(&sdr->dma_lock);
sdr               532 drivers/media/platform/rcar_drif.c 	if (!vb2_is_streaming(&sdr->vb_queue)) {
sdr               533 drivers/media/platform/rcar_drif.c 		spin_unlock(&sdr->dma_lock);
sdr               537 drivers/media/platform/rcar_drif.c 	idx = sdr->produced % RCAR_DRIF_NUM_HWBUFS;
sdr               540 drivers/media/platform/rcar_drif.c 	if (sdr->num_cur_ch == RCAR_DRIF_MAX_CHANNEL) {
sdr               541 drivers/media/platform/rcar_drif.c 		buf[0] = ch->num ? to_rcar_drif_buf_pair(sdr, ch->num, idx) :
sdr               544 drivers/media/platform/rcar_drif.c 				to_rcar_drif_buf_pair(sdr, ch->num, idx);
sdr               548 drivers/media/platform/rcar_drif.c 			spin_unlock(&sdr->dma_lock);
sdr               570 drivers/media/platform/rcar_drif.c 	produced = sdr->produced++;
sdr               571 drivers/media/platform/rcar_drif.c 	spin_unlock(&sdr->dma_lock);
sdr               573 drivers/media/platform/rcar_drif.c 	rdrif_dbg(sdr, "ch%u: prod %u\n", ch->num, produced);
sdr               576 drivers/media/platform/rcar_drif.c 	fbuf = rcar_drif_get_fbuf(sdr);
sdr               582 drivers/media/platform/rcar_drif.c 		       i * sdr->hwbuf_size, buf[i]->addr, sdr->hwbuf_size);
sdr               587 drivers/media/platform/rcar_drif.c 	vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, sdr->fmt->buffersize);
sdr               596 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = ch->sdr;
sdr               604 drivers/media/platform/rcar_drif.c 					sdr->hwbuf_size * RCAR_DRIF_NUM_HWBUFS,
sdr               605 drivers/media/platform/rcar_drif.c 					sdr->hwbuf_size, DMA_DEV_TO_MEM,
sdr               608 drivers/media/platform/rcar_drif.c 		rdrif_err(sdr, "ch%u: prep dma cyclic failed\n", ch->num);
sdr               617 drivers/media/platform/rcar_drif.c 		rdrif_err(sdr, "ch%u: dma submit failed\n", ch->num);
sdr               626 drivers/media/platform/rcar_drif.c static int rcar_drif_enable_rx(struct rcar_drif_sdr *sdr)
sdr               638 drivers/media/platform/rcar_drif.c 	for_each_rcar_drif_channel(i, &sdr->cur_ch_mask) {
sdr               639 drivers/media/platform/rcar_drif.c 		ctr = rcar_drif_read(sdr->ch[i], RCAR_DRIF_SICTR);
sdr               642 drivers/media/platform/rcar_drif.c 		rcar_drif_write(sdr->ch[i], RCAR_DRIF_SICTR, ctr);
sdr               646 drivers/media/platform/rcar_drif.c 	for_each_rcar_drif_channel(i, &sdr->cur_ch_mask) {
sdr               647 drivers/media/platform/rcar_drif.c 		ret = readl_poll_timeout(sdr->ch[i]->base + RCAR_DRIF_SICTR,
sdr               650 drivers/media/platform/rcar_drif.c 			rdrif_err(sdr, "ch%u: rx en failed. ctr 0x%08x\n", i,
sdr               651 drivers/media/platform/rcar_drif.c 				  rcar_drif_read(sdr->ch[i], RCAR_DRIF_SICTR));
sdr               659 drivers/media/platform/rcar_drif.c static void rcar_drif_disable_rx(struct rcar_drif_sdr *sdr)
sdr               666 drivers/media/platform/rcar_drif.c 	for_each_rcar_drif_channel(i, &sdr->cur_ch_mask) {
sdr               667 drivers/media/platform/rcar_drif.c 		ctr = rcar_drif_read(sdr->ch[i], RCAR_DRIF_SICTR);
sdr               669 drivers/media/platform/rcar_drif.c 		rcar_drif_write(sdr->ch[i], RCAR_DRIF_SICTR, ctr);
sdr               673 drivers/media/platform/rcar_drif.c 	for_each_rcar_drif_channel(i, &sdr->cur_ch_mask) {
sdr               674 drivers/media/platform/rcar_drif.c 		ret = readl_poll_timeout(sdr->ch[i]->base + RCAR_DRIF_SICTR,
sdr               677 drivers/media/platform/rcar_drif.c 			dev_warn(&sdr->vdev->dev,
sdr               679 drivers/media/platform/rcar_drif.c 			i, rcar_drif_read(sdr->ch[i], RCAR_DRIF_SICTR));
sdr               694 drivers/media/platform/rcar_drif.c static void rcar_drif_stop(struct rcar_drif_sdr *sdr)
sdr               699 drivers/media/platform/rcar_drif.c 	rcar_drif_disable_rx(sdr);
sdr               701 drivers/media/platform/rcar_drif.c 	for_each_rcar_drif_channel(i, &sdr->cur_ch_mask)
sdr               702 drivers/media/platform/rcar_drif.c 		rcar_drif_stop_channel(sdr->ch[i]);
sdr               708 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = ch->sdr;
sdr               717 drivers/media/platform/rcar_drif.c 		rdrif_err(sdr, "ch%u: failed to reset rx. ctr 0x%08x\n",
sdr               739 drivers/media/platform/rcar_drif.c static int rcar_drif_start(struct rcar_drif_sdr *sdr)
sdr               745 drivers/media/platform/rcar_drif.c 	for_each_rcar_drif_channel(i, &sdr->cur_ch_mask) {
sdr               746 drivers/media/platform/rcar_drif.c 		ret = rcar_drif_start_channel(sdr->ch[i]);
sdr               752 drivers/media/platform/rcar_drif.c 	ret = rcar_drif_enable_rx(sdr);
sdr               756 drivers/media/platform/rcar_drif.c 	sdr->produced = 0;
sdr               760 drivers/media/platform/rcar_drif.c 	rcar_drif_disable_rx(sdr);
sdr               763 drivers/media/platform/rcar_drif.c 		rcar_drif_stop_channel(sdr->ch[i]);
sdr               771 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = vb2_get_drv_priv(vq);
sdr               776 drivers/media/platform/rcar_drif.c 	mutex_lock(&sdr->v4l2_mutex);
sdr               778 drivers/media/platform/rcar_drif.c 	for_each_rcar_drif_channel(i, &sdr->cur_ch_mask) {
sdr               779 drivers/media/platform/rcar_drif.c 		ret = clk_prepare_enable(sdr->ch[i]->clk);
sdr               786 drivers/media/platform/rcar_drif.c 	rcar_drif_set_mdr1(sdr);
sdr               789 drivers/media/platform/rcar_drif.c 	ret = rcar_drif_set_format(sdr);
sdr               793 drivers/media/platform/rcar_drif.c 	if (sdr->num_cur_ch == RCAR_DRIF_MAX_CHANNEL)
sdr               794 drivers/media/platform/rcar_drif.c 		sdr->hwbuf_size = sdr->fmt->buffersize / RCAR_DRIF_MAX_CHANNEL;
sdr               796 drivers/media/platform/rcar_drif.c 		sdr->hwbuf_size = sdr->fmt->buffersize;
sdr               798 drivers/media/platform/rcar_drif.c 	rdrif_dbg(sdr, "num hwbufs %u, hwbuf_size %u\n",
sdr               799 drivers/media/platform/rcar_drif.c 		RCAR_DRIF_NUM_HWBUFS, sdr->hwbuf_size);
sdr               802 drivers/media/platform/rcar_drif.c 	ret = rcar_drif_alloc_dmachannels(sdr);
sdr               807 drivers/media/platform/rcar_drif.c 	ret = rcar_drif_request_buf(sdr);
sdr               812 drivers/media/platform/rcar_drif.c 	ret = rcar_drif_start(sdr);
sdr               816 drivers/media/platform/rcar_drif.c 	mutex_unlock(&sdr->v4l2_mutex);
sdr               821 drivers/media/platform/rcar_drif.c 	rcar_drif_release_queued_bufs(sdr, VB2_BUF_STATE_QUEUED);
sdr               822 drivers/media/platform/rcar_drif.c 	rcar_drif_release_buf(sdr);
sdr               823 drivers/media/platform/rcar_drif.c 	rcar_drif_release_dmachannels(sdr);
sdr               825 drivers/media/platform/rcar_drif.c 		clk_disable_unprepare(sdr->ch[i]->clk);
sdr               827 drivers/media/platform/rcar_drif.c 	mutex_unlock(&sdr->v4l2_mutex);
sdr               835 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = vb2_get_drv_priv(vq);
sdr               838 drivers/media/platform/rcar_drif.c 	mutex_lock(&sdr->v4l2_mutex);
sdr               841 drivers/media/platform/rcar_drif.c 	rcar_drif_stop(sdr);
sdr               844 drivers/media/platform/rcar_drif.c 	rcar_drif_release_queued_bufs(sdr, VB2_BUF_STATE_ERROR);
sdr               847 drivers/media/platform/rcar_drif.c 	rcar_drif_release_buf(sdr);
sdr               850 drivers/media/platform/rcar_drif.c 	rcar_drif_release_dmachannels(sdr);
sdr               852 drivers/media/platform/rcar_drif.c 	for_each_rcar_drif_channel(i, &sdr->cur_ch_mask)
sdr               853 drivers/media/platform/rcar_drif.c 		clk_disable_unprepare(sdr->ch[i]->clk);
sdr               855 drivers/media/platform/rcar_drif.c 	mutex_unlock(&sdr->v4l2_mutex);
sdr               871 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = video_drvdata(file);
sdr               874 drivers/media/platform/rcar_drif.c 	strscpy(cap->card, sdr->vdev->name, sizeof(cap->card));
sdr               876 drivers/media/platform/rcar_drif.c 		 sdr->vdev->name);
sdr               881 drivers/media/platform/rcar_drif.c static int rcar_drif_set_default_format(struct rcar_drif_sdr *sdr)
sdr               887 drivers/media/platform/rcar_drif.c 		if (sdr->num_hw_ch == formats[i].num_ch) {
sdr               888 drivers/media/platform/rcar_drif.c 			sdr->fmt = &formats[i];
sdr               889 drivers/media/platform/rcar_drif.c 			sdr->cur_ch_mask = sdr->hw_ch_mask;
sdr               890 drivers/media/platform/rcar_drif.c 			sdr->num_cur_ch = sdr->num_hw_ch;
sdr               891 drivers/media/platform/rcar_drif.c 			dev_dbg(sdr->dev, "default fmt[%u]: mask %lu num %u\n",
sdr               892 drivers/media/platform/rcar_drif.c 				i, sdr->cur_ch_mask, sdr->num_cur_ch);
sdr               913 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = video_drvdata(file);
sdr               915 drivers/media/platform/rcar_drif.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr               916 drivers/media/platform/rcar_drif.c 	f->fmt.sdr.pixelformat = sdr->fmt->pixelformat;
sdr               917 drivers/media/platform/rcar_drif.c 	f->fmt.sdr.buffersize = sdr->fmt->buffersize;
sdr               925 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = video_drvdata(file);
sdr               926 drivers/media/platform/rcar_drif.c 	struct vb2_queue *q = &sdr->vb_queue;
sdr               933 drivers/media/platform/rcar_drif.c 		if (formats[i].pixelformat == f->fmt.sdr.pixelformat)
sdr               940 drivers/media/platform/rcar_drif.c 	sdr->fmt = &formats[i];
sdr               941 drivers/media/platform/rcar_drif.c 	f->fmt.sdr.pixelformat = sdr->fmt->pixelformat;
sdr               942 drivers/media/platform/rcar_drif.c 	f->fmt.sdr.buffersize = formats[i].buffersize;
sdr               943 drivers/media/platform/rcar_drif.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr               949 drivers/media/platform/rcar_drif.c 	if (formats[i].num_ch < sdr->num_hw_ch) {
sdr               950 drivers/media/platform/rcar_drif.c 		sdr->cur_ch_mask = BIT(0);
sdr               951 drivers/media/platform/rcar_drif.c 		sdr->num_cur_ch = formats[i].num_ch;
sdr               953 drivers/media/platform/rcar_drif.c 		sdr->cur_ch_mask = sdr->hw_ch_mask;
sdr               954 drivers/media/platform/rcar_drif.c 		sdr->num_cur_ch = sdr->num_hw_ch;
sdr               957 drivers/media/platform/rcar_drif.c 	rdrif_dbg(sdr, "cur: idx %u mask %lu num %u\n",
sdr               958 drivers/media/platform/rcar_drif.c 		  i, sdr->cur_ch_mask, sdr->num_cur_ch);
sdr               969 drivers/media/platform/rcar_drif.c 		if (formats[i].pixelformat == f->fmt.sdr.pixelformat) {
sdr               970 drivers/media/platform/rcar_drif.c 			f->fmt.sdr.buffersize = formats[i].buffersize;
sdr               975 drivers/media/platform/rcar_drif.c 	f->fmt.sdr.pixelformat = formats[0].pixelformat;
sdr               976 drivers/media/platform/rcar_drif.c 	f->fmt.sdr.buffersize = formats[0].buffersize;
sdr               977 drivers/media/platform/rcar_drif.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr               986 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = video_drvdata(file);
sdr               988 drivers/media/platform/rcar_drif.c 	return v4l2_subdev_call(sdr->ep.subdev, tuner, enum_freq_bands, band);
sdr               994 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = video_drvdata(file);
sdr               996 drivers/media/platform/rcar_drif.c 	return v4l2_subdev_call(sdr->ep.subdev, tuner, g_frequency, f);
sdr              1002 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = video_drvdata(file);
sdr              1004 drivers/media/platform/rcar_drif.c 	return v4l2_subdev_call(sdr->ep.subdev, tuner, s_frequency, f);
sdr              1010 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = video_drvdata(file);
sdr              1012 drivers/media/platform/rcar_drif.c 	return v4l2_subdev_call(sdr->ep.subdev, tuner, g_tuner, vt);
sdr              1018 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = video_drvdata(file);
sdr              1020 drivers/media/platform/rcar_drif.c 	return v4l2_subdev_call(sdr->ep.subdev, tuner, s_tuner, vt);
sdr              1061 drivers/media/platform/rcar_drif.c static int rcar_drif_sdr_register(struct rcar_drif_sdr *sdr)
sdr              1066 drivers/media/platform/rcar_drif.c 	sdr->vdev = video_device_alloc();
sdr              1067 drivers/media/platform/rcar_drif.c 	if (!sdr->vdev)
sdr              1070 drivers/media/platform/rcar_drif.c 	snprintf(sdr->vdev->name, sizeof(sdr->vdev->name), "R-Car DRIF");
sdr              1071 drivers/media/platform/rcar_drif.c 	sdr->vdev->fops = &rcar_drif_fops;
sdr              1072 drivers/media/platform/rcar_drif.c 	sdr->vdev->ioctl_ops = &rcar_drif_ioctl_ops;
sdr              1073 drivers/media/platform/rcar_drif.c 	sdr->vdev->release = video_device_release;
sdr              1074 drivers/media/platform/rcar_drif.c 	sdr->vdev->lock = &sdr->v4l2_mutex;
sdr              1075 drivers/media/platform/rcar_drif.c 	sdr->vdev->queue = &sdr->vb_queue;
sdr              1076 drivers/media/platform/rcar_drif.c 	sdr->vdev->queue->lock = &sdr->vb_queue_mutex;
sdr              1077 drivers/media/platform/rcar_drif.c 	sdr->vdev->ctrl_handler = &sdr->ctrl_hdl;
sdr              1078 drivers/media/platform/rcar_drif.c 	sdr->vdev->v4l2_dev = &sdr->v4l2_dev;
sdr              1079 drivers/media/platform/rcar_drif.c 	sdr->vdev->device_caps = V4L2_CAP_SDR_CAPTURE | V4L2_CAP_TUNER |
sdr              1081 drivers/media/platform/rcar_drif.c 	video_set_drvdata(sdr->vdev, sdr);
sdr              1084 drivers/media/platform/rcar_drif.c 	ret = video_register_device(sdr->vdev, VFL_TYPE_SDR, -1);
sdr              1086 drivers/media/platform/rcar_drif.c 		video_device_release(sdr->vdev);
sdr              1087 drivers/media/platform/rcar_drif.c 		sdr->vdev = NULL;
sdr              1088 drivers/media/platform/rcar_drif.c 		dev_err(sdr->dev, "failed video_register_device (%d)\n", ret);
sdr              1094 drivers/media/platform/rcar_drif.c static void rcar_drif_sdr_unregister(struct rcar_drif_sdr *sdr)
sdr              1096 drivers/media/platform/rcar_drif.c 	video_unregister_device(sdr->vdev);
sdr              1097 drivers/media/platform/rcar_drif.c 	sdr->vdev = NULL;
sdr              1105 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr =
sdr              1108 drivers/media/platform/rcar_drif.c 	if (sdr->ep.asd.match.fwnode !=
sdr              1110 drivers/media/platform/rcar_drif.c 		rdrif_err(sdr, "subdev %s cannot bind\n", subdev->name);
sdr              1114 drivers/media/platform/rcar_drif.c 	v4l2_set_subdev_hostdata(subdev, sdr);
sdr              1115 drivers/media/platform/rcar_drif.c 	sdr->ep.subdev = subdev;
sdr              1116 drivers/media/platform/rcar_drif.c 	rdrif_dbg(sdr, "bound asd %s\n", subdev->name);
sdr              1126 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr =
sdr              1129 drivers/media/platform/rcar_drif.c 	if (sdr->ep.subdev != subdev) {
sdr              1130 drivers/media/platform/rcar_drif.c 		rdrif_err(sdr, "subdev %s is not bound\n", subdev->name);
sdr              1135 drivers/media/platform/rcar_drif.c 	v4l2_ctrl_handler_free(&sdr->ctrl_hdl);
sdr              1136 drivers/media/platform/rcar_drif.c 	sdr->v4l2_dev.ctrl_handler = NULL;
sdr              1137 drivers/media/platform/rcar_drif.c 	sdr->ep.subdev = NULL;
sdr              1139 drivers/media/platform/rcar_drif.c 	rcar_drif_sdr_unregister(sdr);
sdr              1140 drivers/media/platform/rcar_drif.c 	rdrif_dbg(sdr, "unbind asd %s\n", subdev->name);
sdr              1146 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr =
sdr              1156 drivers/media/platform/rcar_drif.c 	ret = v4l2_ctrl_handler_init(&sdr->ctrl_hdl, 10);
sdr              1160 drivers/media/platform/rcar_drif.c 	sdr->v4l2_dev.ctrl_handler = &sdr->ctrl_hdl;
sdr              1161 drivers/media/platform/rcar_drif.c 	ret = v4l2_device_register_subdev_nodes(&sdr->v4l2_dev);
sdr              1163 drivers/media/platform/rcar_drif.c 		rdrif_err(sdr, "failed: register subdev nodes ret %d\n", ret);
sdr              1167 drivers/media/platform/rcar_drif.c 	ret = v4l2_ctrl_add_handler(&sdr->ctrl_hdl,
sdr              1168 drivers/media/platform/rcar_drif.c 				    sdr->ep.subdev->ctrl_handler, NULL, true);
sdr              1170 drivers/media/platform/rcar_drif.c 		rdrif_err(sdr, "failed: ctrl add hdlr ret %d\n", ret);
sdr              1174 drivers/media/platform/rcar_drif.c 	ret = rcar_drif_sdr_register(sdr);
sdr              1181 drivers/media/platform/rcar_drif.c 	v4l2_ctrl_handler_free(&sdr->ctrl_hdl);
sdr              1193 drivers/media/platform/rcar_drif.c static void rcar_drif_get_ep_properties(struct rcar_drif_sdr *sdr,
sdr              1199 drivers/media/platform/rcar_drif.c 	sdr->mdr1 = RCAR_DRIF_SIRMDR1_SYNCMD_LR | RCAR_DRIF_SIRMDR1_MSB_FIRST |
sdr              1204 drivers/media/platform/rcar_drif.c 		sdr->mdr1 |= val ? RCAR_DRIF_SIRMDR1_SYNCAC_POL_HIGH :
sdr              1207 drivers/media/platform/rcar_drif.c 		sdr->mdr1 |= RCAR_DRIF_SIRMDR1_SYNCAC_POL_HIGH; /* default */
sdr              1209 drivers/media/platform/rcar_drif.c 	dev_dbg(sdr->dev, "mdr1 0x%08x\n", sdr->mdr1);
sdr              1213 drivers/media/platform/rcar_drif.c static int rcar_drif_parse_subdevs(struct rcar_drif_sdr *sdr)
sdr              1215 drivers/media/platform/rcar_drif.c 	struct v4l2_async_notifier *notifier = &sdr->notifier;
sdr              1221 drivers/media/platform/rcar_drif.c 	ep = fwnode_graph_get_next_endpoint(of_fwnode_handle(sdr->dev->of_node),
sdr              1228 drivers/media/platform/rcar_drif.c 		dev_warn(sdr->dev, "bad remote port parent\n");
sdr              1233 drivers/media/platform/rcar_drif.c 	sdr->ep.asd.match.fwnode = fwnode;
sdr              1234 drivers/media/platform/rcar_drif.c 	sdr->ep.asd.match_type = V4L2_ASYNC_MATCH_FWNODE;
sdr              1235 drivers/media/platform/rcar_drif.c 	ret = v4l2_async_notifier_add_subdev(notifier, &sdr->ep.asd);
sdr              1242 drivers/media/platform/rcar_drif.c 	rcar_drif_get_ep_properties(sdr, ep);
sdr              1269 drivers/media/platform/rcar_drif.c static int rcar_drif_bond_available(struct rcar_drif_sdr *sdr,
sdr              1278 drivers/media/platform/rcar_drif.c 		dev_err(sdr->dev, "failed to get bonded device from node\n");
sdr              1286 drivers/media/platform/rcar_drif.c 		ch->sdr = sdr;
sdr              1289 drivers/media/platform/rcar_drif.c 		sdr->ch[ch->num] = ch;
sdr              1290 drivers/media/platform/rcar_drif.c 		sdr->hw_ch_mask |= BIT(ch->num);
sdr              1293 drivers/media/platform/rcar_drif.c 		dev_info(sdr->dev, "defer probe\n");
sdr              1304 drivers/media/platform/rcar_drif.c static int rcar_drif_sdr_probe(struct rcar_drif_sdr *sdr)
sdr              1309 drivers/media/platform/rcar_drif.c 	ret = rcar_drif_set_default_format(sdr);
sdr              1311 drivers/media/platform/rcar_drif.c 		dev_err(sdr->dev, "failed to set default format\n");
sdr              1316 drivers/media/platform/rcar_drif.c 	sdr->hwbuf_size = RCAR_DRIF_DEFAULT_HWBUF_SIZE;
sdr              1318 drivers/media/platform/rcar_drif.c 	mutex_init(&sdr->v4l2_mutex);
sdr              1319 drivers/media/platform/rcar_drif.c 	mutex_init(&sdr->vb_queue_mutex);
sdr              1320 drivers/media/platform/rcar_drif.c 	spin_lock_init(&sdr->queued_bufs_lock);
sdr              1321 drivers/media/platform/rcar_drif.c 	spin_lock_init(&sdr->dma_lock);
sdr              1322 drivers/media/platform/rcar_drif.c 	INIT_LIST_HEAD(&sdr->queued_bufs);
sdr              1325 drivers/media/platform/rcar_drif.c 	sdr->vb_queue.type = V4L2_BUF_TYPE_SDR_CAPTURE;
sdr              1326 drivers/media/platform/rcar_drif.c 	sdr->vb_queue.io_modes = VB2_READ | VB2_MMAP | VB2_DMABUF;
sdr              1327 drivers/media/platform/rcar_drif.c 	sdr->vb_queue.drv_priv = sdr;
sdr              1328 drivers/media/platform/rcar_drif.c 	sdr->vb_queue.buf_struct_size = sizeof(struct rcar_drif_frame_buf);
sdr              1329 drivers/media/platform/rcar_drif.c 	sdr->vb_queue.ops = &rcar_drif_vb2_ops;
sdr              1330 drivers/media/platform/rcar_drif.c 	sdr->vb_queue.mem_ops = &vb2_vmalloc_memops;
sdr              1331 drivers/media/platform/rcar_drif.c 	sdr->vb_queue.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
sdr              1334 drivers/media/platform/rcar_drif.c 	ret = vb2_queue_init(&sdr->vb_queue);
sdr              1336 drivers/media/platform/rcar_drif.c 		dev_err(sdr->dev, "failed: vb2_queue_init ret %d\n", ret);
sdr              1341 drivers/media/platform/rcar_drif.c 	ret = v4l2_device_register(sdr->dev, &sdr->v4l2_dev);
sdr              1343 drivers/media/platform/rcar_drif.c 		dev_err(sdr->dev, "failed: v4l2_device_register ret %d\n", ret);
sdr              1351 drivers/media/platform/rcar_drif.c 	ret = rcar_drif_parse_subdevs(sdr);
sdr              1355 drivers/media/platform/rcar_drif.c 	sdr->notifier.ops = &rcar_drif_notify_ops;
sdr              1358 drivers/media/platform/rcar_drif.c 	ret = v4l2_async_notifier_register(&sdr->v4l2_dev, &sdr->notifier);
sdr              1360 drivers/media/platform/rcar_drif.c 		dev_err(sdr->dev, "failed: notifier register ret %d\n", ret);
sdr              1367 drivers/media/platform/rcar_drif.c 	v4l2_async_notifier_cleanup(&sdr->notifier);
sdr              1369 drivers/media/platform/rcar_drif.c 	v4l2_device_unregister(&sdr->v4l2_dev);
sdr              1375 drivers/media/platform/rcar_drif.c static void rcar_drif_sdr_remove(struct rcar_drif_sdr *sdr)
sdr              1377 drivers/media/platform/rcar_drif.c 	v4l2_async_notifier_unregister(&sdr->notifier);
sdr              1378 drivers/media/platform/rcar_drif.c 	v4l2_async_notifier_cleanup(&sdr->notifier);
sdr              1379 drivers/media/platform/rcar_drif.c 	v4l2_device_unregister(&sdr->v4l2_dev);
sdr              1385 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr;
sdr              1427 drivers/media/platform/rcar_drif.c 	sdr = devm_kzalloc(&pdev->dev, sizeof(*sdr), GFP_KERNEL);
sdr              1428 drivers/media/platform/rcar_drif.c 	if (!sdr) {
sdr              1432 drivers/media/platform/rcar_drif.c 	ch->sdr = sdr;
sdr              1433 drivers/media/platform/rcar_drif.c 	sdr->dev = &pdev->dev;
sdr              1436 drivers/media/platform/rcar_drif.c 	sdr->ch[ch->num] = ch;
sdr              1437 drivers/media/platform/rcar_drif.c 	sdr->hw_ch_mask = BIT(ch->num);
sdr              1440 drivers/media/platform/rcar_drif.c 		ret = rcar_drif_bond_available(sdr, np);
sdr              1445 drivers/media/platform/rcar_drif.c 	sdr->num_hw_ch = hweight_long(sdr->hw_ch_mask);
sdr              1447 drivers/media/platform/rcar_drif.c 	return rcar_drif_sdr_probe(sdr);
sdr              1454 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = ch->sdr;
sdr              1461 drivers/media/platform/rcar_drif.c 	rcar_drif_sdr_remove(sdr);
sdr               454 drivers/media/platform/vivid/vivid-sdr-cap.c 	f->fmt.sdr.pixelformat = dev->sdr_pixelformat;
sdr               455 drivers/media/platform/vivid/vivid-sdr-cap.c 	f->fmt.sdr.buffersize = dev->sdr_buffersize;
sdr               456 drivers/media/platform/vivid/vivid-sdr-cap.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr               469 drivers/media/platform/vivid/vivid-sdr-cap.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr               471 drivers/media/platform/vivid/vivid-sdr-cap.c 		if (formats[i].pixelformat == f->fmt.sdr.pixelformat) {
sdr               474 drivers/media/platform/vivid/vivid-sdr-cap.c 			f->fmt.sdr.buffersize = formats[i].buffersize;
sdr               480 drivers/media/platform/vivid/vivid-sdr-cap.c 	f->fmt.sdr.pixelformat = formats[0].pixelformat;
sdr               481 drivers/media/platform/vivid/vivid-sdr-cap.c 	f->fmt.sdr.buffersize = formats[0].buffersize;
sdr               489 drivers/media/platform/vivid/vivid-sdr-cap.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr               491 drivers/media/platform/vivid/vivid-sdr-cap.c 		if (formats[i].pixelformat == f->fmt.sdr.pixelformat) {
sdr               492 drivers/media/platform/vivid/vivid-sdr-cap.c 			f->fmt.sdr.buffersize = formats[i].buffersize;
sdr               496 drivers/media/platform/vivid/vivid-sdr-cap.c 	f->fmt.sdr.pixelformat = formats[0].pixelformat;
sdr               497 drivers/media/platform/vivid/vivid-sdr-cap.c 	f->fmt.sdr.buffersize = formats[0].buffersize;
sdr               633 drivers/media/usb/airspy/airspy.c 	f->fmt.sdr.pixelformat = s->pixelformat;
sdr               634 drivers/media/usb/airspy/airspy.c 	f->fmt.sdr.buffersize = s->buffersize;
sdr               635 drivers/media/usb/airspy/airspy.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr               650 drivers/media/usb/airspy/airspy.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr               652 drivers/media/usb/airspy/airspy.c 		if (formats[i].pixelformat == f->fmt.sdr.pixelformat) {
sdr               655 drivers/media/usb/airspy/airspy.c 			f->fmt.sdr.buffersize = formats[i].buffersize;
sdr               662 drivers/media/usb/airspy/airspy.c 	f->fmt.sdr.pixelformat = formats[0].pixelformat;
sdr               663 drivers/media/usb/airspy/airspy.c 	f->fmt.sdr.buffersize = formats[0].buffersize;
sdr               673 drivers/media/usb/airspy/airspy.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr               675 drivers/media/usb/airspy/airspy.c 		if (formats[i].pixelformat == f->fmt.sdr.pixelformat) {
sdr               676 drivers/media/usb/airspy/airspy.c 			f->fmt.sdr.buffersize = formats[i].buffersize;
sdr               681 drivers/media/usb/airspy/airspy.c 	f->fmt.sdr.pixelformat = formats[0].pixelformat;
sdr               682 drivers/media/usb/airspy/airspy.c 	f->fmt.sdr.buffersize = formats[0].buffersize;
sdr               922 drivers/media/usb/hackrf/hackrf.c 			(char *)&f->fmt.sdr.pixelformat);
sdr               932 drivers/media/usb/hackrf/hackrf.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr               934 drivers/media/usb/hackrf/hackrf.c 		if (f->fmt.sdr.pixelformat == formats[i].pixelformat) {
sdr               937 drivers/media/usb/hackrf/hackrf.c 			f->fmt.sdr.buffersize = formats[i].buffersize;
sdr               944 drivers/media/usb/hackrf/hackrf.c 	f->fmt.sdr.pixelformat = formats[0].pixelformat;
sdr               945 drivers/media/usb/hackrf/hackrf.c 	f->fmt.sdr.buffersize = formats[0].buffersize;
sdr               958 drivers/media/usb/hackrf/hackrf.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr               959 drivers/media/usb/hackrf/hackrf.c 	f->fmt.sdr.pixelformat = dev->pixelformat;
sdr               960 drivers/media/usb/hackrf/hackrf.c 	f->fmt.sdr.buffersize = dev->buffersize;
sdr               972 drivers/media/usb/hackrf/hackrf.c 			(char *)&f->fmt.sdr.pixelformat);
sdr               974 drivers/media/usb/hackrf/hackrf.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr               976 drivers/media/usb/hackrf/hackrf.c 		if (formats[i].pixelformat == f->fmt.sdr.pixelformat) {
sdr               977 drivers/media/usb/hackrf/hackrf.c 			f->fmt.sdr.buffersize = formats[i].buffersize;
sdr               982 drivers/media/usb/hackrf/hackrf.c 	f->fmt.sdr.pixelformat = formats[0].pixelformat;
sdr               983 drivers/media/usb/hackrf/hackrf.c 	f->fmt.sdr.buffersize = formats[0].buffersize;
sdr               913 drivers/media/usb/msi2500/msi2500.c 	f->fmt.sdr.pixelformat = dev->pixelformat;
sdr               914 drivers/media/usb/msi2500/msi2500.c 	f->fmt.sdr.buffersize = dev->buffersize;
sdr               915 drivers/media/usb/msi2500/msi2500.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr               928 drivers/media/usb/msi2500/msi2500.c 		(char *)&f->fmt.sdr.pixelformat);
sdr               933 drivers/media/usb/msi2500/msi2500.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr               935 drivers/media/usb/msi2500/msi2500.c 		if (formats[i].pixelformat == f->fmt.sdr.pixelformat) {
sdr               938 drivers/media/usb/msi2500/msi2500.c 			f->fmt.sdr.buffersize = formats[i].buffersize;
sdr               945 drivers/media/usb/msi2500/msi2500.c 	f->fmt.sdr.pixelformat = formats[0].pixelformat;
sdr               946 drivers/media/usb/msi2500/msi2500.c 	f->fmt.sdr.buffersize = formats[0].buffersize;
sdr               958 drivers/media/usb/msi2500/msi2500.c 		(char *)&f->fmt.sdr.pixelformat);
sdr               960 drivers/media/usb/msi2500/msi2500.c 	memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved));
sdr               962 drivers/media/usb/msi2500/msi2500.c 		if (formats[i].pixelformat == f->fmt.sdr.pixelformat) {
sdr               963 drivers/media/usb/msi2500/msi2500.c 			f->fmt.sdr.buffersize = formats[i].buffersize;
sdr               968 drivers/media/usb/msi2500/msi2500.c 	f->fmt.sdr.pixelformat = formats[0].pixelformat;
sdr               969 drivers/media/usb/msi2500/msi2500.c 	f->fmt.sdr.buffersize = formats[0].buffersize;
sdr               235 drivers/media/v4l2-core/v4l2-compat-ioctl32.c 		struct v4l2_sdr_format	sdr;
sdr               324 drivers/media/v4l2-core/v4l2-compat-ioctl32.c 		return copy_in_user(&p64->fmt.sdr, &p32->fmt.sdr,
sdr               325 drivers/media/v4l2-core/v4l2-compat-ioctl32.c 				    sizeof(p64->fmt.sdr)) ? -EFAULT : 0;
sdr               394 drivers/media/v4l2-core/v4l2-compat-ioctl32.c 		return copy_in_user(&p32->fmt.sdr, &p64->fmt.sdr,
sdr               395 drivers/media/v4l2-core/v4l2-compat-ioctl32.c 				    sizeof(p64->fmt.sdr)) ? -EFAULT : 0;
sdr               284 drivers/media/v4l2-core/v4l2-ioctl.c 	const struct v4l2_sdr_format *sdr;
sdr               360 drivers/media/v4l2-core/v4l2-ioctl.c 		sdr = &p->fmt.sdr;
sdr               362 drivers/media/v4l2-core/v4l2-ioctl.c 			(sdr->pixelformat >>  0) & 0xff,
sdr               363 drivers/media/v4l2-core/v4l2-ioctl.c 			(sdr->pixelformat >>  8) & 0xff,
sdr               364 drivers/media/v4l2-core/v4l2-ioctl.c 			(sdr->pixelformat >> 16) & 0xff,
sdr               365 drivers/media/v4l2-core/v4l2-ioctl.c 			(sdr->pixelformat >> 24) & 0xff);
sdr              1649 drivers/media/v4l2-core/v4l2-ioctl.c 		CLEAR_AFTER_FIELD(p, fmt.sdr.buffersize);
sdr              1654 drivers/media/v4l2-core/v4l2-ioctl.c 		CLEAR_AFTER_FIELD(p, fmt.sdr.buffersize);
sdr              1751 drivers/media/v4l2-core/v4l2-ioctl.c 		CLEAR_AFTER_FIELD(p, fmt.sdr.buffersize);
sdr              1756 drivers/media/v4l2-core/v4l2-ioctl.c 		CLEAR_AFTER_FIELD(p, fmt.sdr.buffersize);
sdr               751 drivers/misc/cxl/cxl.h 		__be64 sdr;          /* CAIA 1 */
sdr               746 drivers/misc/cxl/native.c 	ctx->elem->u.sdr = cpu_to_be64(mfspr(SPRN_SDR1));
sdr              1188 drivers/mtd/nand/raw/atmel/nand-controller.c 	if (conf->timings.sdr.tRC_min < 30000)
sdr              1201 drivers/mtd/nand/raw/atmel/nand-controller.c 	ncycles = DIV_ROUND_UP(conf->timings.sdr.tWP_min, mckperiodps);
sdr              1219 drivers/mtd/nand/raw/atmel/nand-controller.c 	timeps = max3(conf->timings.sdr.tCLS_min, conf->timings.sdr.tCS_min,
sdr              1220 drivers/mtd/nand/raw/atmel/nand-controller.c 		      conf->timings.sdr.tALS_min);
sdr              1221 drivers/mtd/nand/raw/atmel/nand-controller.c 	timeps = max(timeps, conf->timings.sdr.tDS_min);
sdr              1236 drivers/mtd/nand/raw/atmel/nand-controller.c 	timeps = max3(conf->timings.sdr.tCLH_min, conf->timings.sdr.tCH_min,
sdr              1237 drivers/mtd/nand/raw/atmel/nand-controller.c 		      conf->timings.sdr.tALH_min);
sdr              1238 drivers/mtd/nand/raw/atmel/nand-controller.c 	timeps = max3(timeps, conf->timings.sdr.tDH_min,
sdr              1239 drivers/mtd/nand/raw/atmel/nand-controller.c 		      conf->timings.sdr.tWH_min);
sdr              1250 drivers/mtd/nand/raw/atmel/nand-controller.c 	ncycles = DIV_ROUND_UP(conf->timings.sdr.tWC_min, mckperiodps);
sdr              1275 drivers/mtd/nand/raw/atmel/nand-controller.c 	timeps = max(conf->timings.sdr.tREH_min, conf->timings.sdr.tRHOH_min);
sdr              1282 drivers/mtd/nand/raw/atmel/nand-controller.c 	ncycles = DIV_ROUND_UP(conf->timings.sdr.tRHZ_max, mckperiodps);
sdr              1304 drivers/mtd/nand/raw/atmel/nand-controller.c 	ncycles = DIV_ROUND_UP(conf->timings.sdr.tRP_min, mckperiodps);
sdr              1320 drivers/mtd/nand/raw/atmel/nand-controller.c 	ncycles = DIV_ROUND_UP(conf->timings.sdr.tRC_min, mckperiodps);
sdr              1340 drivers/mtd/nand/raw/atmel/nand-controller.c 	ncycles = DIV_ROUND_UP(conf->timings.sdr.tCLR_min, mckperiodps);
sdr              1347 drivers/mtd/nand/raw/atmel/nand-controller.c 	ncycles = DIV_ROUND_UP(conf->timings.sdr.tADL_min, mckperiodps);
sdr              1365 drivers/mtd/nand/raw/atmel/nand-controller.c 	ncycles = DIV_ROUND_UP(conf->timings.sdr.tAR_min, mckperiodps);
sdr              1372 drivers/mtd/nand/raw/atmel/nand-controller.c 	ncycles = DIV_ROUND_UP(conf->timings.sdr.tRR_min, mckperiodps);
sdr              1379 drivers/mtd/nand/raw/atmel/nand-controller.c 	ncycles = DIV_ROUND_UP(conf->timings.sdr.tWB_max, mckperiodps);
sdr               641 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 				     const struct nand_sdr_timings *sdr)
sdr               653 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	if (sdr->tRC_min >= 30000) {
sdr               657 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	} else if (sdr->tRC_min >= 25000) {
sdr               670 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	addr_setup_cycles = TO_CYCLES(sdr->tALS_min, period_ps);
sdr               671 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	data_setup_cycles = TO_CYCLES(sdr->tDS_min, period_ps);
sdr               672 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	data_hold_cycles = TO_CYCLES(sdr->tDH_min, period_ps);
sdr               673 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	busy_timeout_cycles = TO_CYCLES(sdr->tWB_max + sdr->tR_max, period_ps);
sdr               696 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	sample_delay_ps = (sdr->tREA_max + 4000 - tRP_ps) * 8;
sdr               741 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	const struct nand_sdr_timings *sdr;
sdr               744 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	sdr = nand_get_sdr_timings(conf);
sdr               745 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	if (IS_ERR(sdr))
sdr               746 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 		return PTR_ERR(sdr);
sdr               749 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	if (sdr->tRC_min <= 25000 && !GPMI_IS_MX6(this))
sdr               757 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	gpmi_nfc_compute_timings(this, sdr);
sdr              1144 drivers/mtd/nand/raw/marvell_nand.c 				  PSEC_TO_MSEC(chip->data_interface.timings.sdr.tPROG_max));
sdr              1603 drivers/mtd/nand/raw/marvell_nand.c 				  PSEC_TO_MSEC(chip->data_interface.timings.sdr.tPROG_max));
sdr              2315 drivers/mtd/nand/raw/marvell_nand.c 	const struct nand_sdr_timings *sdr;
sdr              2319 drivers/mtd/nand/raw/marvell_nand.c 	sdr = nand_get_sdr_timings(conf);
sdr              2320 drivers/mtd/nand/raw/marvell_nand.c 	if (IS_ERR(sdr))
sdr              2321 drivers/mtd/nand/raw/marvell_nand.c 		return PTR_ERR(sdr);
sdr              2334 drivers/mtd/nand/raw/marvell_nand.c 	nfc_tmg.tRP = TO_CYCLES(DIV_ROUND_UP(sdr->tRC_min, 2), period_ns) - 1;
sdr              2336 drivers/mtd/nand/raw/marvell_nand.c 	nfc_tmg.tWP = TO_CYCLES(DIV_ROUND_UP(sdr->tWC_min, 2), period_ns) - 1;
sdr              2338 drivers/mtd/nand/raw/marvell_nand.c 	nfc_tmg.tCS = TO_CYCLES(sdr->tCS_min, period_ns);
sdr              2339 drivers/mtd/nand/raw/marvell_nand.c 	nfc_tmg.tCH = TO_CYCLES(sdr->tCH_min, period_ns) - 1;
sdr              2340 drivers/mtd/nand/raw/marvell_nand.c 	nfc_tmg.tADL = TO_CYCLES(sdr->tADL_min, period_ns);
sdr              2347 drivers/mtd/nand/raw/marvell_nand.c 	read_delay = sdr->tRC_min >= 30000 ?
sdr              2350 drivers/mtd/nand/raw/marvell_nand.c 	nfc_tmg.tAR = TO_CYCLES(sdr->tAR_min, period_ns);
sdr              2356 drivers/mtd/nand/raw/marvell_nand.c 	nfc_tmg.tWHR = TO_CYCLES(max_t(int, sdr->tWHR_min, sdr->tCCS_min),
sdr              2358 drivers/mtd/nand/raw/marvell_nand.c 	nfc_tmg.tRHW = TO_CYCLES(max_t(int, sdr->tRHW_min, sdr->tCCS_min),
sdr              2366 drivers/mtd/nand/raw/marvell_nand.c 		nfc_tmg.tR = TO_CYCLES(sdr->tWB_max, period_ns);
sdr              2368 drivers/mtd/nand/raw/marvell_nand.c 		nfc_tmg.tR = TO_CYCLES64(sdr->tWB_max + sdr->tR_max,
sdr               578 drivers/mtd/nand/raw/meson_nand.c 	const struct nand_sdr_timings *sdr =
sdr               618 drivers/mtd/nand/raw/meson_nand.c 		meson_nfc_queue_rb(nfc, PSEC_TO_MSEC(sdr->tR_max));
sdr               630 drivers/mtd/nand/raw/meson_nand.c 	const struct nand_sdr_timings *sdr =
sdr               664 drivers/mtd/nand/raw/meson_nand.c 	meson_nfc_queue_rb(nfc, PSEC_TO_MSEC(sdr->tPROG_max));
sdr               455 drivers/mtd/nand/raw/mxic_nand.c 	const struct nand_sdr_timings *sdr;
sdr               459 drivers/mtd/nand/raw/mxic_nand.c 	sdr = nand_get_sdr_timings(conf);
sdr               460 drivers/mtd/nand/raw/mxic_nand.c 	if (IS_ERR(sdr))
sdr               461 drivers/mtd/nand/raw/mxic_nand.c 		return PTR_ERR(sdr);
sdr               466 drivers/mtd/nand/raw/mxic_nand.c 	freq = NSEC_PER_SEC / (sdr->tRC_min / 1000);
sdr               472 drivers/mtd/nand/raw/mxic_nand.c 	if (sdr->tRC_min < 30000)
sdr              1017 drivers/mtd/nand/raw/nand_base.c 	const struct nand_sdr_timings *sdr =
sdr              1022 drivers/mtd/nand/raw/nand_base.c 		NAND_OP_ADDR(3, addrs, PSEC_TO_NSEC(sdr->tWB_max)),
sdr              1023 drivers/mtd/nand/raw/nand_base.c 		NAND_OP_WAIT_RDY(PSEC_TO_MSEC(sdr->tR_max),
sdr              1024 drivers/mtd/nand/raw/nand_base.c 				 PSEC_TO_NSEC(sdr->tRR_min)),
sdr              1059 drivers/mtd/nand/raw/nand_base.c 	const struct nand_sdr_timings *sdr =
sdr              1065 drivers/mtd/nand/raw/nand_base.c 		NAND_OP_CMD(NAND_CMD_READSTART, PSEC_TO_NSEC(sdr->tWB_max)),
sdr              1066 drivers/mtd/nand/raw/nand_base.c 		NAND_OP_WAIT_RDY(PSEC_TO_MSEC(sdr->tR_max),
sdr              1067 drivers/mtd/nand/raw/nand_base.c 				 PSEC_TO_NSEC(sdr->tRR_min)),
sdr              1156 drivers/mtd/nand/raw/nand_base.c 		const struct nand_sdr_timings *sdr =
sdr              1160 drivers/mtd/nand/raw/nand_base.c 			NAND_OP_ADDR(1, &page, PSEC_TO_NSEC(sdr->tWB_max)),
sdr              1161 drivers/mtd/nand/raw/nand_base.c 			NAND_OP_WAIT_RDY(PSEC_TO_MSEC(sdr->tR_max),
sdr              1162 drivers/mtd/nand/raw/nand_base.c 					 PSEC_TO_NSEC(sdr->tRR_min)),
sdr              1211 drivers/mtd/nand/raw/nand_base.c 		const struct nand_sdr_timings *sdr =
sdr              1218 drivers/mtd/nand/raw/nand_base.c 				    PSEC_TO_NSEC(sdr->tCCS_min)),
sdr              1287 drivers/mtd/nand/raw/nand_base.c 	const struct nand_sdr_timings *sdr =
sdr              1298 drivers/mtd/nand/raw/nand_base.c 		NAND_OP_ADDR(0, addrs, PSEC_TO_NSEC(sdr->tADL_min)),
sdr              1300 drivers/mtd/nand/raw/nand_base.c 		NAND_OP_CMD(NAND_CMD_PAGEPROG, PSEC_TO_NSEC(sdr->tWB_max)),
sdr              1301 drivers/mtd/nand/raw/nand_base.c 		NAND_OP_WAIT_RDY(PSEC_TO_MSEC(sdr->tPROG_max), 0),
sdr              1410 drivers/mtd/nand/raw/nand_base.c 		const struct nand_sdr_timings *sdr =
sdr              1414 drivers/mtd/nand/raw/nand_base.c 				    PSEC_TO_NSEC(sdr->tWB_max)),
sdr              1415 drivers/mtd/nand/raw/nand_base.c 			NAND_OP_WAIT_RDY(PSEC_TO_MSEC(sdr->tPROG_max), 0),
sdr              1517 drivers/mtd/nand/raw/nand_base.c 		const struct nand_sdr_timings *sdr =
sdr              1522 drivers/mtd/nand/raw/nand_base.c 			NAND_OP_ADDR(2, addrs, PSEC_TO_NSEC(sdr->tCCS_min)),
sdr              1572 drivers/mtd/nand/raw/nand_base.c 		const struct nand_sdr_timings *sdr =
sdr              1576 drivers/mtd/nand/raw/nand_base.c 			NAND_OP_ADDR(1, &addr, PSEC_TO_NSEC(sdr->tADL_min)),
sdr              1611 drivers/mtd/nand/raw/nand_base.c 		const struct nand_sdr_timings *sdr =
sdr              1615 drivers/mtd/nand/raw/nand_base.c 				    PSEC_TO_NSEC(sdr->tADL_min)),
sdr              1680 drivers/mtd/nand/raw/nand_base.c 		const struct nand_sdr_timings *sdr =
sdr              1687 drivers/mtd/nand/raw/nand_base.c 				    PSEC_TO_MSEC(sdr->tWB_max)),
sdr              1688 drivers/mtd/nand/raw/nand_base.c 			NAND_OP_WAIT_RDY(PSEC_TO_MSEC(sdr->tBERS_max), 0),
sdr              1739 drivers/mtd/nand/raw/nand_base.c 		const struct nand_sdr_timings *sdr =
sdr              1743 drivers/mtd/nand/raw/nand_base.c 			NAND_OP_ADDR(1, &feature, PSEC_TO_NSEC(sdr->tADL_min)),
sdr              1745 drivers/mtd/nand/raw/nand_base.c 					      PSEC_TO_NSEC(sdr->tWB_max)),
sdr              1746 drivers/mtd/nand/raw/nand_base.c 			NAND_OP_WAIT_RDY(PSEC_TO_MSEC(sdr->tFEAT_max), 0),
sdr              1786 drivers/mtd/nand/raw/nand_base.c 		const struct nand_sdr_timings *sdr =
sdr              1790 drivers/mtd/nand/raw/nand_base.c 			NAND_OP_ADDR(1, &feature, PSEC_TO_NSEC(sdr->tWB_max)),
sdr              1791 drivers/mtd/nand/raw/nand_base.c 			NAND_OP_WAIT_RDY(PSEC_TO_MSEC(sdr->tFEAT_max),
sdr              1792 drivers/mtd/nand/raw/nand_base.c 					 PSEC_TO_NSEC(sdr->tRR_min)),
sdr              1843 drivers/mtd/nand/raw/nand_base.c 		const struct nand_sdr_timings *sdr =
sdr              1846 drivers/mtd/nand/raw/nand_base.c 			NAND_OP_CMD(NAND_CMD_RESET, PSEC_TO_NSEC(sdr->tWB_max)),
sdr              1847 drivers/mtd/nand/raw/nand_base.c 			NAND_OP_WAIT_RDY(PSEC_TO_MSEC(sdr->tRST_max), 0),
sdr              3136 drivers/mtd/nand/raw/nand_base.c 	const struct nand_sdr_timings *sdr;
sdr              3141 drivers/mtd/nand/raw/nand_base.c 	sdr = nand_get_sdr_timings(&chip->data_interface);
sdr              3142 drivers/mtd/nand/raw/nand_base.c 	WARN_ON(nand_wait_rdy_op(chip, PSEC_TO_MSEC(sdr->tR_max), 0));
sdr               369 drivers/mtd/nand/raw/nand_legacy.c 		ndelay(chip->data_interface.timings.sdr.tCCS_min / 1000);
sdr                19 drivers/mtd/nand/raw/nand_timings.c 		.timings.sdr = {
sdr                61 drivers/mtd/nand/raw/nand_timings.c 		.timings.sdr = {
sdr               103 drivers/mtd/nand/raw/nand_timings.c 		.timings.sdr = {
sdr               145 drivers/mtd/nand/raw/nand_timings.c 		.timings.sdr = {
sdr               187 drivers/mtd/nand/raw/nand_timings.c 		.timings.sdr = {
sdr               229 drivers/mtd/nand/raw/nand_timings.c 		.timings.sdr = {
sdr               296 drivers/mtd/nand/raw/nand_timings.c 		struct nand_sdr_timings *timings = &iface->timings.sdr;
sdr               306 drivers/mtd/nand/raw/nand_timings.c 		struct nand_sdr_timings *timings = &iface->timings.sdr;
sdr               482 drivers/mtd/nand/raw/tango_nand.c 	const struct nand_sdr_timings *sdr = nand_get_sdr_timings(conf);
sdr               488 drivers/mtd/nand/raw/tango_nand.c 	if (IS_ERR(sdr))
sdr               489 drivers/mtd/nand/raw/tango_nand.c 		return PTR_ERR(sdr);
sdr               494 drivers/mtd/nand/raw/tango_nand.c 	Trdy = to_ticks(kHz, sdr->tCEA_max - sdr->tREA_max);
sdr               495 drivers/mtd/nand/raw/tango_nand.c 	Textw = to_ticks(kHz, sdr->tWB_max);
sdr               496 drivers/mtd/nand/raw/tango_nand.c 	Twc = to_ticks(kHz, sdr->tWC_min);
sdr               497 drivers/mtd/nand/raw/tango_nand.c 	Twpw = to_ticks(kHz, sdr->tWC_min - sdr->tWP_min);
sdr               499 drivers/mtd/nand/raw/tango_nand.c 	Tacc = to_ticks(kHz, sdr->tREA_max);
sdr               500 drivers/mtd/nand/raw/tango_nand.c 	Thold = to_ticks(kHz, sdr->tREH_min);
sdr               501 drivers/mtd/nand/raw/tango_nand.c 	Trpw = to_ticks(kHz, sdr->tRC_min - sdr->tREH_min);
sdr               502 drivers/mtd/nand/raw/tango_nand.c 	Textr = to_ticks(kHz, sdr->tRHZ_max);
sdr               500 include/linux/mtd/rawnand.h 		struct nand_sdr_timings sdr;
sdr               514 include/linux/mtd/rawnand.h 	return &conf->timings.sdr;
sdr              2238 include/uapi/linux/videodev2.h 		struct v4l2_sdr_format		sdr;     /* V4L2_BUF_TYPE_SDR_CAPTURE */