isc               243 arch/m68k/include/asm/traps.h 		    unsigned short isc;      /* instruction stage c */
isc               253 arch/m68k/include/asm/traps.h 		    unsigned short isc;     /* instruction stage c */
isc               904 arch/m68k/kernel/traps.c 			fp->un.fmta.ssw, fp->un.fmta.isc, fp->un.fmta.isb,
isc               910 arch/m68k/kernel/traps.c 			fp->un.fmtb.ssw, fp->un.fmtb.isc, fp->un.fmtb.isb,
isc              2342 arch/mips/cavium-octeon/octeon-irq.c 	union cvmx_ciu3_iscx_ctl isc;
isc              2360 arch/mips/cavium-octeon/octeon-irq.c 	isc.u64 =  cvmx_read_csr(ciu3_info->ciu3_addr + CIU3_ISC_CTL(hwirq));
isc              2361 arch/mips/cavium-octeon/octeon-irq.c 	if (!isc.s.imp)
isc                21 arch/s390/include/asm/airq.h 	u8 isc;				/* Interrupt-subclass */
isc               208 arch/s390/include/asm/ap.h 	unsigned int isc   : 3;	/* irq sub class */
isc                28 arch/s390/include/asm/isc.h void isc_register(unsigned int isc);
isc                29 arch/s390/include/asm/isc.h void isc_unregister(unsigned int isc);
isc               584 arch/s390/include/asm/kvm_host.h #define AIS_MODE_MASK(isc) (0x80 >> isc)
isc               693 arch/s390/include/asm/kvm_host.h 	int isc;
isc                60 arch/s390/include/asm/pci_insn.h 	u32 isc		:  3;	/* Interrupt subclass */
isc               104 arch/s390/include/asm/pci_insn.h 	u32 isc : 3;
isc               137 arch/s390/include/asm/pci_insn.h int __zpci_set_irq_ctrl(u16 ctl, u8 isc, union zpci_sic_iib *iib);
isc               139 arch/s390/include/asm/pci_insn.h static inline int zpci_set_irq_ctrl(u16 ctl, u8 isc)
isc               143 arch/s390/include/asm/pci_insn.h 	return __zpci_set_irq_ctrl(ctl, isc, &iib);
isc                41 arch/s390/include/uapi/asm/kvm.h 	__u8 isc;
isc                50 arch/s390/include/uapi/asm/kvm.h 	__u8 isc;
isc               204 arch/s390/kvm/interrupt.c static uint64_t isc_to_isc_bits(int isc)
isc               206 arch/s390/kvm/interrupt.c 	return (0x80 >> isc) << 24;
isc               209 arch/s390/kvm/interrupt.c static inline u32 isc_to_int_word(u8 isc)
isc               211 arch/s390/kvm/interrupt.c 	return ((u32)isc << 27) | 0x80000000;
isc               342 arch/s390/kvm/interrupt.c static inline int isc_to_irq_type(unsigned long isc)
isc               344 arch/s390/kvm/interrupt.c 	return IRQ_PEND_IO_ISC_0 - isc;
isc              1052 arch/s390/kvm/interrupt.c 	u32 isc;
isc              1058 arch/s390/kvm/interrupt.c 	isc = irq_type_to_isc(irq_type);
isc              1059 arch/s390/kvm/interrupt.c 	isc_list = &fi->lists[isc];
isc              1092 arch/s390/kvm/interrupt.c 	if (gi->origin && gisa_tac_ipm_gisc(gi->origin, isc)) {
isc              1097 arch/s390/kvm/interrupt.c 		VCPU_EVENT(vcpu, 4, "%s isc %u", "deliver: I/O (AI/gisa)", isc);
isc              1099 arch/s390/kvm/interrupt.c 		io.io_int_word = isc_to_int_word(isc);
isc              1575 arch/s390/kvm/interrupt.c 						  int isc, u32 schid)
isc              1578 arch/s390/kvm/interrupt.c 	struct list_head *isc_list = &fi->lists[FIRQ_LIST_IO_ISC_0 + isc];
isc              1592 arch/s390/kvm/interrupt.c 			clear_bit(isc_to_irq_type(isc), &fi->pending_irqs);
isc              1604 arch/s390/kvm/interrupt.c 	int isc;
isc              1606 arch/s390/kvm/interrupt.c 	for (isc = 0; isc <= MAX_ISC && !inti; isc++) {
isc              1607 arch/s390/kvm/interrupt.c 		if (isc_mask & isc_to_isc_bits(isc))
isc              1608 arch/s390/kvm/interrupt.c 			inti = get_io_int(kvm, isc, schid);
isc              1617 arch/s390/kvm/interrupt.c 	int isc;
isc              1626 arch/s390/kvm/interrupt.c 		isc = __fls(active_mask) ^ (BITS_PER_LONG - 1);
isc              1627 arch/s390/kvm/interrupt.c 		if (gisa_tac_ipm_gisc(gi->origin, isc))
isc              1628 arch/s390/kvm/interrupt.c 			return isc;
isc              1629 arch/s390/kvm/interrupt.c 		clear_bit_inv(isc, &active_mask);
isc              1652 arch/s390/kvm/interrupt.c 	int isc;
isc              1656 arch/s390/kvm/interrupt.c 	isc = get_top_gisa_isc(kvm, isc_mask, schid);
isc              1657 arch/s390/kvm/interrupt.c 	if (isc < 0)
isc              1666 arch/s390/kvm/interrupt.c 	if (int_word_to_isc(inti->io.io_int_word) <= isc) {
isc              1668 arch/s390/kvm/interrupt.c 		gisa_set_ipm_gisc(gi->origin, isc);
isc              1675 arch/s390/kvm/interrupt.c 		tmp_inti->io.io_int_word = isc_to_int_word(isc);
isc              1680 arch/s390/kvm/interrupt.c 		gisa_set_ipm_gisc(gi->origin, isc);
isc              1772 arch/s390/kvm/interrupt.c 	int isc;
isc              1775 arch/s390/kvm/interrupt.c 	isc = int_word_to_isc(inti->io.io_int_word);
isc              1778 arch/s390/kvm/interrupt.c 		VM_EVENT(kvm, 4, "%s isc %1u", "inject: I/O (AI/gisa)", isc);
isc              1779 arch/s390/kvm/interrupt.c 		gisa_set_ipm_gisc(gi->origin, isc);
isc              1799 arch/s390/kvm/interrupt.c 	list = &fi->lists[FIRQ_LIST_IO_ISC_0 + isc];
isc              1801 arch/s390/kvm/interrupt.c 	set_bit(isc_to_irq_type(isc), &fi->pending_irqs);
isc              2335 arch/s390/kvm/interrupt.c 	adapter->isc = adapter_info.isc;
isc              2508 arch/s390/kvm/interrupt.c 	if (req.isc > MAX_ISC)
isc              2511 arch/s390/kvm/interrupt.c 	trace_kvm_s390_modify_ais_mode(req.isc,
isc              2512 arch/s390/kvm/interrupt.c 				       (fi->simm & AIS_MODE_MASK(req.isc)) ?
isc              2513 arch/s390/kvm/interrupt.c 				       (fi->nimm & AIS_MODE_MASK(req.isc)) ?
isc              2520 arch/s390/kvm/interrupt.c 		fi->simm &= ~AIS_MODE_MASK(req.isc);
isc              2521 arch/s390/kvm/interrupt.c 		fi->nimm &= ~AIS_MODE_MASK(req.isc);
isc              2524 arch/s390/kvm/interrupt.c 		fi->simm |= AIS_MODE_MASK(req.isc);
isc              2525 arch/s390/kvm/interrupt.c 		fi->nimm &= ~AIS_MODE_MASK(req.isc);
isc              2542 arch/s390/kvm/interrupt.c 		.parm64 = isc_to_int_word(adapter->isc),
isc              2550 arch/s390/kvm/interrupt.c 	if (fi->nimm & AIS_MODE_MASK(adapter->isc)) {
isc              2551 arch/s390/kvm/interrupt.c 		trace_kvm_s390_airq_suppressed(adapter->id, adapter->isc);
isc              2556 arch/s390/kvm/interrupt.c 	if (!ret && (fi->simm & AIS_MODE_MASK(adapter->isc))) {
isc              2557 arch/s390/kvm/interrupt.c 		fi->nimm |= AIS_MODE_MASK(adapter->isc);
isc              2558 arch/s390/kvm/interrupt.c 		trace_kvm_s390_modify_ais_mode(adapter->isc,
isc              3233 arch/s390/kvm/interrupt.c 	gib_alert_irq.isc = nisc;
isc               288 arch/s390/kvm/trace-s390.h 	    TP_PROTO(__u8 isc, __u16 from, __u16 to),
isc               289 arch/s390/kvm/trace-s390.h 	    TP_ARGS(isc, from, to),
isc               292 arch/s390/kvm/trace-s390.h 		    __field(__u8, isc)
isc               298 arch/s390/kvm/trace-s390.h 		    __entry->isc = isc;
isc               304 arch/s390/kvm/trace-s390.h 		      __entry->isc,
isc               319 arch/s390/kvm/trace-s390.h 	    TP_PROTO(__u32 id, __u8 isc),
isc               320 arch/s390/kvm/trace-s390.h 	    TP_ARGS(id, isc),
isc               324 arch/s390/kvm/trace-s390.h 		    __field(__u8, isc)
isc               329 arch/s390/kvm/trace-s390.h 		    __entry->isc = isc;
isc               333 arch/s390/kvm/trace-s390.h 		      __entry->id, __entry->isc)
isc               101 arch/s390/pci/pci_insn.c int __zpci_set_irq_ctrl(u16 ctl, u8 isc, union zpci_sic_iib *iib)
isc               108 arch/s390/pci/pci_insn.c 		: : [ctl] "d" (ctl), [isc] "d" (isc << 27), [iib] "Q" (*iib));
isc                45 arch/s390/pci/pci_irq.c 	fib.fmt0.isc = PCI_ISC;
isc               364 arch/s390/pci/pci_irq.c 	.isc = PCI_ISC,
isc               386 arch/s390/pci/pci_irq.c 	iib.diib.isc = PCI_ISC;
isc               214 drivers/media/platform/atmel/atmel-isc-base.c static inline void isc_update_awb_ctrls(struct isc_device *isc)
isc               216 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_ctrls *ctrls = &isc->ctrls;
isc               218 drivers/media/platform/atmel/atmel-isc-base.c 	regmap_write(isc->regmap, ISC_WB_O_RGR,
isc               221 drivers/media/platform/atmel/atmel-isc-base.c 	regmap_write(isc->regmap, ISC_WB_O_BGB,
isc               224 drivers/media/platform/atmel/atmel-isc-base.c 	regmap_write(isc->regmap, ISC_WB_G_RGR,
isc               227 drivers/media/platform/atmel/atmel-isc-base.c 	regmap_write(isc->regmap, ISC_WB_G_BGB,
isc               232 drivers/media/platform/atmel/atmel-isc-base.c static inline void isc_reset_awb_ctrls(struct isc_device *isc)
isc               238 drivers/media/platform/atmel/atmel-isc-base.c 		isc->ctrls.gain[c] = 1 << 9;
isc               244 drivers/media/platform/atmel/atmel-isc-base.c 		isc->ctrls.offset[c] = ISC_WB_O_ZERO_VAL;
isc               455 drivers/media/platform/atmel/atmel-isc-base.c static int isc_clk_register(struct isc_device *isc, unsigned int id)
isc               457 drivers/media/platform/atmel/atmel-isc-base.c 	struct regmap *regmap = isc->regmap;
isc               458 drivers/media/platform/atmel/atmel-isc-base.c 	struct device_node *np = isc->dev->of_node;
isc               485 drivers/media/platform/atmel/atmel-isc-base.c 	isc_clk = &isc->isc_clks[id];
isc               489 drivers/media/platform/atmel/atmel-isc-base.c 	isc_clk->dev		= isc->dev;
isc               492 drivers/media/platform/atmel/atmel-isc-base.c 	isc_clk->clk = clk_register(isc->dev, &isc_clk->hw);
isc               494 drivers/media/platform/atmel/atmel-isc-base.c 		dev_err(isc->dev, "%s: clock register fail\n", clk_name);
isc               502 drivers/media/platform/atmel/atmel-isc-base.c int isc_clk_init(struct isc_device *isc)
isc               507 drivers/media/platform/atmel/atmel-isc-base.c 	for (i = 0; i < ARRAY_SIZE(isc->isc_clks); i++)
isc               508 drivers/media/platform/atmel/atmel-isc-base.c 		isc->isc_clks[i].clk = ERR_PTR(-EINVAL);
isc               510 drivers/media/platform/atmel/atmel-isc-base.c 	for (i = 0; i < ARRAY_SIZE(isc->isc_clks); i++) {
isc               511 drivers/media/platform/atmel/atmel-isc-base.c 		ret = isc_clk_register(isc, i);
isc               519 drivers/media/platform/atmel/atmel-isc-base.c void isc_clk_cleanup(struct isc_device *isc)
isc               523 drivers/media/platform/atmel/atmel-isc-base.c 	of_clk_del_provider(isc->dev->of_node);
isc               525 drivers/media/platform/atmel/atmel-isc-base.c 	for (i = 0; i < ARRAY_SIZE(isc->isc_clks); i++) {
isc               526 drivers/media/platform/atmel/atmel-isc-base.c 		struct isc_clk *isc_clk = &isc->isc_clks[i];
isc               537 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = vb2_get_drv_priv(vq);
isc               538 drivers/media/platform/atmel/atmel-isc-base.c 	unsigned int size = isc->fmt.fmt.pix.sizeimage;
isc               552 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = vb2_get_drv_priv(vb->vb2_queue);
isc               553 drivers/media/platform/atmel/atmel-isc-base.c 	unsigned long size = isc->fmt.fmt.pix.sizeimage;
isc               556 drivers/media/platform/atmel/atmel-isc-base.c 		v4l2_err(&isc->v4l2_dev, "buffer too small (%lu < %lu)\n",
isc               563 drivers/media/platform/atmel/atmel-isc-base.c 	vbuf->field = isc->fmt.fmt.pix.field;
isc               568 drivers/media/platform/atmel/atmel-isc-base.c static void isc_start_dma(struct isc_device *isc)
isc               570 drivers/media/platform/atmel/atmel-isc-base.c 	struct regmap *regmap = isc->regmap;
isc               571 drivers/media/platform/atmel/atmel-isc-base.c 	u32 sizeimage = isc->fmt.fmt.pix.sizeimage;
isc               576 drivers/media/platform/atmel/atmel-isc-base.c 	h = isc->fmt.fmt.pix.height;
isc               577 drivers/media/platform/atmel/atmel-isc-base.c 	w = isc->fmt.fmt.pix.width;
isc               585 drivers/media/platform/atmel/atmel-isc-base.c 	if (!ISC_IS_FORMAT_RAW(isc->config.sd_format->mbus_code)) {
isc               609 drivers/media/platform/atmel/atmel-isc-base.c 	addr0 = vb2_dma_contig_plane_dma_addr(&isc->cur_frm->vb.vb2_buf, 0);
isc               612 drivers/media/platform/atmel/atmel-isc-base.c 	switch (isc->config.fourcc) {
isc               625 drivers/media/platform/atmel/atmel-isc-base.c 	dctrl_dview = isc->config.dctrl_dview;
isc               628 drivers/media/platform/atmel/atmel-isc-base.c 	spin_lock(&isc->awb_lock);
isc               630 drivers/media/platform/atmel/atmel-isc-base.c 	spin_unlock(&isc->awb_lock);
isc               633 drivers/media/platform/atmel/atmel-isc-base.c static void isc_set_pipeline(struct isc_device *isc, u32 pipeline)
isc               635 drivers/media/platform/atmel/atmel-isc-base.c 	struct regmap *regmap = isc->regmap;
isc               636 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_ctrls *ctrls = &isc->ctrls;
isc               644 drivers/media/platform/atmel/atmel-isc-base.c 		regmap_field_write(isc->pipeline[i], val);
isc               650 drivers/media/platform/atmel/atmel-isc-base.c 	bay_cfg = isc->config.sd_format->cfa_baycfg;
isc               653 drivers/media/platform/atmel/atmel-isc-base.c 		isc_reset_awb_ctrls(isc);
isc               656 drivers/media/platform/atmel/atmel-isc-base.c 	isc_update_awb_ctrls(isc);
isc               677 drivers/media/platform/atmel/atmel-isc-base.c static int isc_update_profile(struct isc_device *isc)
isc               679 drivers/media/platform/atmel/atmel-isc-base.c 	struct regmap *regmap = isc->regmap;
isc               692 drivers/media/platform/atmel/atmel-isc-base.c 		v4l2_warn(&isc->v4l2_dev, "Time out to update profile\n");
isc               699 drivers/media/platform/atmel/atmel-isc-base.c static void isc_set_histogram(struct isc_device *isc, bool enable)
isc               701 drivers/media/platform/atmel/atmel-isc-base.c 	struct regmap *regmap = isc->regmap;
isc               702 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_ctrls *ctrls = &isc->ctrls;
isc               707 drivers/media/platform/atmel/atmel-isc-base.c 			     (isc->config.sd_format->cfa_baycfg
isc               713 drivers/media/platform/atmel/atmel-isc-base.c 		isc_update_profile(isc);
isc               725 drivers/media/platform/atmel/atmel-isc-base.c static int isc_configure(struct isc_device *isc)
isc               727 drivers/media/platform/atmel/atmel-isc-base.c 	struct regmap *regmap = isc->regmap;
isc               729 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_subdev_entity *subdev = isc->current_subdev;
isc               731 drivers/media/platform/atmel/atmel-isc-base.c 	pfe_cfg0 = isc->config.sd_format->pfe_cfg0_bps;
isc               732 drivers/media/platform/atmel/atmel-isc-base.c 	rlp_mode = isc->config.rlp_cfg_mode;
isc               733 drivers/media/platform/atmel/atmel-isc-base.c 	pipeline = isc->config.bits_pipeline;
isc               735 drivers/media/platform/atmel/atmel-isc-base.c 	dcfg = isc->config.dcfg_imode |
isc               752 drivers/media/platform/atmel/atmel-isc-base.c 	isc_set_pipeline(isc, pipeline);
isc               758 drivers/media/platform/atmel/atmel-isc-base.c 	if (isc->ctrls.awb &&
isc               759 drivers/media/platform/atmel/atmel-isc-base.c 	    ISC_IS_FORMAT_RAW(isc->config.sd_format->mbus_code))
isc               760 drivers/media/platform/atmel/atmel-isc-base.c 		isc_set_histogram(isc, true);
isc               762 drivers/media/platform/atmel/atmel-isc-base.c 		isc_set_histogram(isc, false);
isc               765 drivers/media/platform/atmel/atmel-isc-base.c 	return isc_update_profile(isc);
isc               770 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = vb2_get_drv_priv(vq);
isc               771 drivers/media/platform/atmel/atmel-isc-base.c 	struct regmap *regmap = isc->regmap;
isc               777 drivers/media/platform/atmel/atmel-isc-base.c 	ret = v4l2_subdev_call(isc->current_subdev->sd, video, s_stream, 1);
isc               779 drivers/media/platform/atmel/atmel-isc-base.c 		v4l2_err(&isc->v4l2_dev, "stream on failed in subdev %d\n",
isc               784 drivers/media/platform/atmel/atmel-isc-base.c 	pm_runtime_get_sync(isc->dev);
isc               786 drivers/media/platform/atmel/atmel-isc-base.c 	ret = isc_configure(isc);
isc               793 drivers/media/platform/atmel/atmel-isc-base.c 	spin_lock_irqsave(&isc->dma_queue_lock, flags);
isc               795 drivers/media/platform/atmel/atmel-isc-base.c 	isc->sequence = 0;
isc               796 drivers/media/platform/atmel/atmel-isc-base.c 	isc->stop = false;
isc               797 drivers/media/platform/atmel/atmel-isc-base.c 	reinit_completion(&isc->comp);
isc               799 drivers/media/platform/atmel/atmel-isc-base.c 	isc->cur_frm = list_first_entry(&isc->dma_queue,
isc               801 drivers/media/platform/atmel/atmel-isc-base.c 	list_del(&isc->cur_frm->list);
isc               803 drivers/media/platform/atmel/atmel-isc-base.c 	isc_start_dma(isc);
isc               805 drivers/media/platform/atmel/atmel-isc-base.c 	spin_unlock_irqrestore(&isc->dma_queue_lock, flags);
isc               808 drivers/media/platform/atmel/atmel-isc-base.c 	if (ISC_IS_FORMAT_RAW(isc->config.sd_format->mbus_code))
isc               809 drivers/media/platform/atmel/atmel-isc-base.c 		v4l2_ctrl_activate(isc->do_wb_ctrl, true);
isc               814 drivers/media/platform/atmel/atmel-isc-base.c 	pm_runtime_put_sync(isc->dev);
isc               816 drivers/media/platform/atmel/atmel-isc-base.c 	v4l2_subdev_call(isc->current_subdev->sd, video, s_stream, 0);
isc               819 drivers/media/platform/atmel/atmel-isc-base.c 	spin_lock_irqsave(&isc->dma_queue_lock, flags);
isc               820 drivers/media/platform/atmel/atmel-isc-base.c 	list_for_each_entry(buf, &isc->dma_queue, list)
isc               822 drivers/media/platform/atmel/atmel-isc-base.c 	INIT_LIST_HEAD(&isc->dma_queue);
isc               823 drivers/media/platform/atmel/atmel-isc-base.c 	spin_unlock_irqrestore(&isc->dma_queue_lock, flags);
isc               830 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = vb2_get_drv_priv(vq);
isc               835 drivers/media/platform/atmel/atmel-isc-base.c 	v4l2_ctrl_activate(isc->do_wb_ctrl, false);
isc               837 drivers/media/platform/atmel/atmel-isc-base.c 	isc->stop = true;
isc               840 drivers/media/platform/atmel/atmel-isc-base.c 	if (isc->cur_frm && !wait_for_completion_timeout(&isc->comp, 5 * HZ))
isc               841 drivers/media/platform/atmel/atmel-isc-base.c 		v4l2_err(&isc->v4l2_dev,
isc               845 drivers/media/platform/atmel/atmel-isc-base.c 	regmap_write(isc->regmap, ISC_INTDIS, ISC_INT_DDONE);
isc               847 drivers/media/platform/atmel/atmel-isc-base.c 	pm_runtime_put_sync(isc->dev);
isc               850 drivers/media/platform/atmel/atmel-isc-base.c 	ret = v4l2_subdev_call(isc->current_subdev->sd, video, s_stream, 0);
isc               852 drivers/media/platform/atmel/atmel-isc-base.c 		v4l2_err(&isc->v4l2_dev, "stream off failed in subdev\n");
isc               855 drivers/media/platform/atmel/atmel-isc-base.c 	spin_lock_irqsave(&isc->dma_queue_lock, flags);
isc               856 drivers/media/platform/atmel/atmel-isc-base.c 	if (unlikely(isc->cur_frm)) {
isc               857 drivers/media/platform/atmel/atmel-isc-base.c 		vb2_buffer_done(&isc->cur_frm->vb.vb2_buf,
isc               859 drivers/media/platform/atmel/atmel-isc-base.c 		isc->cur_frm = NULL;
isc               861 drivers/media/platform/atmel/atmel-isc-base.c 	list_for_each_entry(buf, &isc->dma_queue, list)
isc               863 drivers/media/platform/atmel/atmel-isc-base.c 	INIT_LIST_HEAD(&isc->dma_queue);
isc               864 drivers/media/platform/atmel/atmel-isc-base.c 	spin_unlock_irqrestore(&isc->dma_queue_lock, flags);
isc               871 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = vb2_get_drv_priv(vb->vb2_queue);
isc               874 drivers/media/platform/atmel/atmel-isc-base.c 	spin_lock_irqsave(&isc->dma_queue_lock, flags);
isc               875 drivers/media/platform/atmel/atmel-isc-base.c 	if (!isc->cur_frm && list_empty(&isc->dma_queue) &&
isc               877 drivers/media/platform/atmel/atmel-isc-base.c 		isc->cur_frm = buf;
isc               878 drivers/media/platform/atmel/atmel-isc-base.c 		isc_start_dma(isc);
isc               880 drivers/media/platform/atmel/atmel-isc-base.c 		list_add_tail(&buf->list, &isc->dma_queue);
isc               881 drivers/media/platform/atmel/atmel-isc-base.c 	spin_unlock_irqrestore(&isc->dma_queue_lock, flags);
isc               884 drivers/media/platform/atmel/atmel-isc-base.c static struct isc_format *find_format_by_fourcc(struct isc_device *isc,
isc               887 drivers/media/platform/atmel/atmel-isc-base.c 	unsigned int num_formats = isc->num_user_formats;
isc               892 drivers/media/platform/atmel/atmel-isc-base.c 		fmt = isc->user_formats[i];
isc               913 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = video_drvdata(file);
isc               918 drivers/media/platform/atmel/atmel-isc-base.c 		 "platform:%s", isc->v4l2_dev.name);
isc               956 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = video_drvdata(file);
isc               958 drivers/media/platform/atmel/atmel-isc-base.c 	*fmt = isc->fmt;
isc               967 drivers/media/platform/atmel/atmel-isc-base.c static int isc_try_validate_formats(struct isc_device *isc)
isc               973 drivers/media/platform/atmel/atmel-isc-base.c 	switch (isc->try_config.fourcc) {
isc              1016 drivers/media/platform/atmel/atmel-isc-base.c 	    !ISC_IS_FORMAT_RAW(isc->try_config.sd_format->mbus_code))
isc              1019 drivers/media/platform/atmel/atmel-isc-base.c 	v4l2_dbg(1, debug, &isc->v4l2_dev,
isc              1031 drivers/media/platform/atmel/atmel-isc-base.c static int isc_try_configure_rlp_dma(struct isc_device *isc, bool direct_dump)
isc              1034 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.rlp_cfg_mode = ISC_RLP_CFG_MODE_DAT8;
isc              1035 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dcfg_imode = ISC_DCFG_IMODE_PACKED8;
isc              1036 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dctrl_dview = ISC_DCTRL_DVIEW_PACKED;
isc              1037 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.bpp = 16;
isc              1041 drivers/media/platform/atmel/atmel-isc-base.c 	switch (isc->try_config.fourcc) {
isc              1046 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.rlp_cfg_mode = ISC_RLP_CFG_MODE_DAT8;
isc              1047 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dcfg_imode = ISC_DCFG_IMODE_PACKED8;
isc              1048 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dctrl_dview = ISC_DCTRL_DVIEW_PACKED;
isc              1049 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.bpp = 8;
isc              1055 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.rlp_cfg_mode = ISC_RLP_CFG_MODE_DAT10;
isc              1056 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dcfg_imode = ISC_DCFG_IMODE_PACKED16;
isc              1057 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dctrl_dview = ISC_DCTRL_DVIEW_PACKED;
isc              1058 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.bpp = 16;
isc              1064 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.rlp_cfg_mode = ISC_RLP_CFG_MODE_DAT12;
isc              1065 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dcfg_imode = ISC_DCFG_IMODE_PACKED16;
isc              1066 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dctrl_dview = ISC_DCTRL_DVIEW_PACKED;
isc              1067 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.bpp = 16;
isc              1070 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.rlp_cfg_mode = ISC_RLP_CFG_MODE_RGB565;
isc              1071 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dcfg_imode = ISC_DCFG_IMODE_PACKED16;
isc              1072 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dctrl_dview = ISC_DCTRL_DVIEW_PACKED;
isc              1073 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.bpp = 16;
isc              1076 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.rlp_cfg_mode = ISC_RLP_CFG_MODE_ARGB444;
isc              1077 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dcfg_imode = ISC_DCFG_IMODE_PACKED16;
isc              1078 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dctrl_dview = ISC_DCTRL_DVIEW_PACKED;
isc              1079 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.bpp = 16;
isc              1082 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.rlp_cfg_mode = ISC_RLP_CFG_MODE_ARGB555;
isc              1083 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dcfg_imode = ISC_DCFG_IMODE_PACKED16;
isc              1084 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dctrl_dview = ISC_DCTRL_DVIEW_PACKED;
isc              1085 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.bpp = 16;
isc              1089 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.rlp_cfg_mode = ISC_RLP_CFG_MODE_ARGB32;
isc              1090 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dcfg_imode = ISC_DCFG_IMODE_PACKED32;
isc              1091 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dctrl_dview = ISC_DCTRL_DVIEW_PACKED;
isc              1092 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.bpp = 32;
isc              1095 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.rlp_cfg_mode = ISC_RLP_CFG_MODE_YYCC;
isc              1096 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dcfg_imode = ISC_DCFG_IMODE_YC420P;
isc              1097 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dctrl_dview = ISC_DCTRL_DVIEW_PLANAR;
isc              1098 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.bpp = 12;
isc              1101 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.rlp_cfg_mode = ISC_RLP_CFG_MODE_YYCC;
isc              1102 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dcfg_imode = ISC_DCFG_IMODE_YC422P;
isc              1103 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dctrl_dview = ISC_DCTRL_DVIEW_PLANAR;
isc              1104 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.bpp = 16;
isc              1107 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.rlp_cfg_mode = ISC_RLP_CFG_MODE_YYCC;
isc              1108 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dcfg_imode = ISC_DCFG_IMODE_PACKED32;
isc              1109 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dctrl_dview = ISC_DCTRL_DVIEW_PACKED;
isc              1110 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.bpp = 16;
isc              1113 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.rlp_cfg_mode = ISC_RLP_CFG_MODE_DATY8;
isc              1114 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dcfg_imode = ISC_DCFG_IMODE_PACKED8;
isc              1115 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.dctrl_dview = ISC_DCTRL_DVIEW_PACKED;
isc              1116 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.bpp = 8;
isc              1128 drivers/media/platform/atmel/atmel-isc-base.c static int isc_try_configure_pipeline(struct isc_device *isc)
isc              1130 drivers/media/platform/atmel/atmel-isc-base.c 	switch (isc->try_config.fourcc) {
isc              1137 drivers/media/platform/atmel/atmel-isc-base.c 		if (ISC_IS_FORMAT_RAW(isc->try_config.sd_format->mbus_code)) {
isc              1138 drivers/media/platform/atmel/atmel-isc-base.c 			isc->try_config.bits_pipeline = CFA_ENABLE |
isc              1141 drivers/media/platform/atmel/atmel-isc-base.c 			isc->try_config.bits_pipeline = 0x0;
isc              1146 drivers/media/platform/atmel/atmel-isc-base.c 		if (ISC_IS_FORMAT_RAW(isc->try_config.sd_format->mbus_code)) {
isc              1147 drivers/media/platform/atmel/atmel-isc-base.c 			isc->try_config.bits_pipeline = CFA_ENABLE |
isc              1151 drivers/media/platform/atmel/atmel-isc-base.c 			isc->try_config.bits_pipeline = 0x0;
isc              1156 drivers/media/platform/atmel/atmel-isc-base.c 		if (ISC_IS_FORMAT_RAW(isc->try_config.sd_format->mbus_code)) {
isc              1157 drivers/media/platform/atmel/atmel-isc-base.c 			isc->try_config.bits_pipeline = CFA_ENABLE |
isc              1161 drivers/media/platform/atmel/atmel-isc-base.c 			isc->try_config.bits_pipeline = 0x0;
isc              1166 drivers/media/platform/atmel/atmel-isc-base.c 		if (ISC_IS_FORMAT_RAW(isc->try_config.sd_format->mbus_code)) {
isc              1167 drivers/media/platform/atmel/atmel-isc-base.c 			isc->try_config.bits_pipeline = CFA_ENABLE |
isc              1171 drivers/media/platform/atmel/atmel-isc-base.c 			isc->try_config.bits_pipeline = 0x0;
isc              1175 drivers/media/platform/atmel/atmel-isc-base.c 		if (ISC_IS_FORMAT_RAW(isc->try_config.sd_format->mbus_code)) {
isc              1177 drivers/media/platform/atmel/atmel-isc-base.c 			isc->try_config.bits_pipeline = CFA_ENABLE |
isc              1181 drivers/media/platform/atmel/atmel-isc-base.c 			isc->try_config.bits_pipeline = 0x0;
isc              1185 drivers/media/platform/atmel/atmel-isc-base.c 		isc->try_config.bits_pipeline = 0x0;
isc              1190 drivers/media/platform/atmel/atmel-isc-base.c static int isc_try_fmt(struct isc_device *isc, struct v4l2_format *f,
isc              1208 drivers/media/platform/atmel/atmel-isc-base.c 	for (i = 0; i < isc->num_user_formats; i++) {
isc              1209 drivers/media/platform/atmel/atmel-isc-base.c 		if (ISC_IS_FORMAT_RAW(isc->user_formats[i]->mbus_code)) {
isc              1210 drivers/media/platform/atmel/atmel-isc-base.c 			sd_fmt = isc->user_formats[i];
isc              1217 drivers/media/platform/atmel/atmel-isc-base.c 	direct_fmt = find_format_by_fourcc(isc, pixfmt->pixelformat);
isc              1240 drivers/media/platform/atmel/atmel-isc-base.c 		sd_fmt = isc->user_formats[isc->num_user_formats - 1];
isc              1241 drivers/media/platform/atmel/atmel-isc-base.c 		v4l2_dbg(1, debug, &isc->v4l2_dev,
isc              1252 drivers/media/platform/atmel/atmel-isc-base.c 	v4l2_dbg(1, debug, &isc->v4l2_dev,
isc              1257 drivers/media/platform/atmel/atmel-isc-base.c 	isc->try_config.sd_format = sd_fmt;
isc              1275 drivers/media/platform/atmel/atmel-isc-base.c 	isc->try_config.fourcc = pixfmt->pixelformat;
isc              1277 drivers/media/platform/atmel/atmel-isc-base.c 	if (isc_try_validate_formats(isc)) {
isc              1278 drivers/media/platform/atmel/atmel-isc-base.c 		pixfmt->pixelformat = isc->try_config.fourcc = sd_fmt->fourcc;
isc              1280 drivers/media/platform/atmel/atmel-isc-base.c 		ret = isc_try_validate_formats(isc);
isc              1285 drivers/media/platform/atmel/atmel-isc-base.c 	ret = isc_try_configure_rlp_dma(isc, rlp_dma_direct_dump);
isc              1289 drivers/media/platform/atmel/atmel-isc-base.c 	ret = isc_try_configure_pipeline(isc);
isc              1294 drivers/media/platform/atmel/atmel-isc-base.c 	ret = v4l2_subdev_call(isc->current_subdev->sd, pad, set_fmt,
isc              1302 drivers/media/platform/atmel/atmel-isc-base.c 	pixfmt->bytesperline = (pixfmt->width * isc->try_config.bpp) >> 3;
isc              1311 drivers/media/platform/atmel/atmel-isc-base.c 	v4l2_err(&isc->v4l2_dev, "Could not find any possible format for a working pipeline\n");
isc              1313 drivers/media/platform/atmel/atmel-isc-base.c 	memset(&isc->try_config, 0, sizeof(isc->try_config));
isc              1318 drivers/media/platform/atmel/atmel-isc-base.c static int isc_set_fmt(struct isc_device *isc, struct v4l2_format *f)
isc              1326 drivers/media/platform/atmel/atmel-isc-base.c 	ret = isc_try_fmt(isc, f, &mbus_code);
isc              1331 drivers/media/platform/atmel/atmel-isc-base.c 	ret = v4l2_subdev_call(isc->current_subdev->sd, pad,
isc              1336 drivers/media/platform/atmel/atmel-isc-base.c 	isc->fmt = *f;
isc              1338 drivers/media/platform/atmel/atmel-isc-base.c 	if (isc->try_config.sd_format && isc->config.sd_format &&
isc              1339 drivers/media/platform/atmel/atmel-isc-base.c 	    isc->try_config.sd_format != isc->config.sd_format) {
isc              1340 drivers/media/platform/atmel/atmel-isc-base.c 		isc->ctrls.hist_stat = HIST_INIT;
isc              1341 drivers/media/platform/atmel/atmel-isc-base.c 		isc_reset_awb_ctrls(isc);
isc              1344 drivers/media/platform/atmel/atmel-isc-base.c 	isc->config = isc->try_config;
isc              1346 drivers/media/platform/atmel/atmel-isc-base.c 	v4l2_dbg(1, debug, &isc->v4l2_dev, "New ISC configuration in place\n");
isc              1354 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = video_drvdata(file);
isc              1356 drivers/media/platform/atmel/atmel-isc-base.c 	if (vb2_is_streaming(&isc->vb2_vidq))
isc              1359 drivers/media/platform/atmel/atmel-isc-base.c 	return isc_set_fmt(isc, f);
isc              1365 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = video_drvdata(file);
isc              1367 drivers/media/platform/atmel/atmel-isc-base.c 	return isc_try_fmt(isc, f, NULL);
isc              1400 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = video_drvdata(file);
isc              1402 drivers/media/platform/atmel/atmel-isc-base.c 	return v4l2_g_parm_cap(video_devdata(file), isc->current_subdev->sd, a);
isc              1407 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = video_drvdata(file);
isc              1409 drivers/media/platform/atmel/atmel-isc-base.c 	return v4l2_s_parm_cap(video_devdata(file), isc->current_subdev->sd, a);
isc              1415 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = video_drvdata(file);
isc              1423 drivers/media/platform/atmel/atmel-isc-base.c 	for (i = 0; i < isc->num_user_formats; i++)
isc              1424 drivers/media/platform/atmel/atmel-isc-base.c 		if (isc->user_formats[i]->fourcc == fsize->pixel_format)
isc              1434 drivers/media/platform/atmel/atmel-isc-base.c 	ret = v4l2_subdev_call(isc->current_subdev->sd, pad, enum_frame_size,
isc              1439 drivers/media/platform/atmel/atmel-isc-base.c 	fse.code = isc->config.sd_format->mbus_code;
isc              1451 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = video_drvdata(file);
isc              1461 drivers/media/platform/atmel/atmel-isc-base.c 	for (i = 0; i < isc->num_user_formats; i++)
isc              1462 drivers/media/platform/atmel/atmel-isc-base.c 		if (isc->user_formats[i]->fourcc == fival->pixel_format)
isc              1472 drivers/media/platform/atmel/atmel-isc-base.c 	ret = v4l2_subdev_call(isc->current_subdev->sd, pad,
isc              1477 drivers/media/platform/atmel/atmel-isc-base.c 	fie.code = isc->config.sd_format->mbus_code;
isc              1517 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = video_drvdata(file);
isc              1518 drivers/media/platform/atmel/atmel-isc-base.c 	struct v4l2_subdev *sd = isc->current_subdev->sd;
isc              1521 drivers/media/platform/atmel/atmel-isc-base.c 	if (mutex_lock_interruptible(&isc->lock))
isc              1537 drivers/media/platform/atmel/atmel-isc-base.c 	ret = isc_set_fmt(isc, &isc->fmt);
isc              1544 drivers/media/platform/atmel/atmel-isc-base.c 	mutex_unlock(&isc->lock);
isc              1550 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = video_drvdata(file);
isc              1551 drivers/media/platform/atmel/atmel-isc-base.c 	struct v4l2_subdev *sd = isc->current_subdev->sd;
isc              1555 drivers/media/platform/atmel/atmel-isc-base.c 	mutex_lock(&isc->lock);
isc              1564 drivers/media/platform/atmel/atmel-isc-base.c 	mutex_unlock(&isc->lock);
isc              1581 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = (struct isc_device *)dev_id;
isc              1582 drivers/media/platform/atmel/atmel-isc-base.c 	struct regmap *regmap = isc->regmap;
isc              1592 drivers/media/platform/atmel/atmel-isc-base.c 		spin_lock(&isc->dma_queue_lock);
isc              1593 drivers/media/platform/atmel/atmel-isc-base.c 		if (isc->cur_frm) {
isc              1594 drivers/media/platform/atmel/atmel-isc-base.c 			struct vb2_v4l2_buffer *vbuf = &isc->cur_frm->vb;
isc              1598 drivers/media/platform/atmel/atmel-isc-base.c 			vbuf->sequence = isc->sequence++;
isc              1600 drivers/media/platform/atmel/atmel-isc-base.c 			isc->cur_frm = NULL;
isc              1603 drivers/media/platform/atmel/atmel-isc-base.c 		if (!list_empty(&isc->dma_queue) && !isc->stop) {
isc              1604 drivers/media/platform/atmel/atmel-isc-base.c 			isc->cur_frm = list_first_entry(&isc->dma_queue,
isc              1606 drivers/media/platform/atmel/atmel-isc-base.c 			list_del(&isc->cur_frm->list);
isc              1608 drivers/media/platform/atmel/atmel-isc-base.c 			isc_start_dma(isc);
isc              1611 drivers/media/platform/atmel/atmel-isc-base.c 		if (isc->stop)
isc              1612 drivers/media/platform/atmel/atmel-isc-base.c 			complete(&isc->comp);
isc              1615 drivers/media/platform/atmel/atmel-isc-base.c 		spin_unlock(&isc->dma_queue_lock);
isc              1619 drivers/media/platform/atmel/atmel-isc-base.c 		schedule_work(&isc->awb_work);
isc              1626 drivers/media/platform/atmel/atmel-isc-base.c static void isc_hist_count(struct isc_device *isc, u32 *min, u32 *max)
isc              1628 drivers/media/platform/atmel/atmel-isc-base.c 	struct regmap *regmap = isc->regmap;
isc              1629 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_ctrls *ctrls = &isc->ctrls;
isc              1731 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc =
isc              1733 drivers/media/platform/atmel/atmel-isc-base.c 	struct regmap *regmap = isc->regmap;
isc              1734 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_ctrls *ctrls = &isc->ctrls;
isc              1741 drivers/media/platform/atmel/atmel-isc-base.c 	if (isc->stop)
isc              1747 drivers/media/platform/atmel/atmel-isc-base.c 	isc_hist_count(isc, &min, &max);
isc              1759 drivers/media/platform/atmel/atmel-isc-base.c 	baysel = isc->config.sd_format->cfa_baycfg << ISC_HIS_CFG_BAYSEL_SHIFT;
isc              1763 drivers/media/platform/atmel/atmel-isc-base.c 		isc_reset_awb_ctrls(isc);
isc              1765 drivers/media/platform/atmel/atmel-isc-base.c 	pm_runtime_get_sync(isc->dev);
isc              1778 drivers/media/platform/atmel/atmel-isc-base.c 		spin_lock_irqsave(&isc->awb_lock, flags);
isc              1779 drivers/media/platform/atmel/atmel-isc-base.c 		isc_update_awb_ctrls(isc);
isc              1780 drivers/media/platform/atmel/atmel-isc-base.c 		spin_unlock_irqrestore(&isc->awb_lock, flags);
isc              1787 drivers/media/platform/atmel/atmel-isc-base.c 			v4l2_info(&isc->v4l2_dev,
isc              1793 drivers/media/platform/atmel/atmel-isc-base.c 	isc_update_profile(isc);
isc              1798 drivers/media/platform/atmel/atmel-isc-base.c 	pm_runtime_put_sync(isc->dev);
isc              1803 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = container_of(ctrl->handler,
isc              1805 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_ctrls *ctrls = &isc->ctrls;
isc              1827 drivers/media/platform/atmel/atmel-isc-base.c 		if (!isc->config.sd_format)
isc              1831 drivers/media/platform/atmel/atmel-isc-base.c 			isc_reset_awb_ctrls(isc);
isc              1833 drivers/media/platform/atmel/atmel-isc-base.c 		if (isc->ctrls.awb == ISC_WB_AUTO &&
isc              1834 drivers/media/platform/atmel/atmel-isc-base.c 		    vb2_is_streaming(&isc->vb2_vidq) &&
isc              1835 drivers/media/platform/atmel/atmel-isc-base.c 		    ISC_IS_FORMAT_RAW(isc->config.sd_format->mbus_code))
isc              1836 drivers/media/platform/atmel/atmel-isc-base.c 			isc_set_histogram(isc, true);
isc              1845 drivers/media/platform/atmel/atmel-isc-base.c 		isc_set_histogram(isc, true);
isc              1846 drivers/media/platform/atmel/atmel-isc-base.c 		v4l2_dbg(1, debug, &isc->v4l2_dev,
isc              1860 drivers/media/platform/atmel/atmel-isc-base.c static int isc_ctrl_init(struct isc_device *isc)
isc              1863 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_ctrls *ctrls = &isc->ctrls;
isc              1868 drivers/media/platform/atmel/atmel-isc-base.c 	isc_reset_awb_ctrls(isc);
isc              1883 drivers/media/platform/atmel/atmel-isc-base.c 	isc->do_wb_ctrl = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_DO_WHITE_BALANCE,
isc              1886 drivers/media/platform/atmel/atmel-isc-base.c 	if (!isc->do_wb_ctrl) {
isc              1892 drivers/media/platform/atmel/atmel-isc-base.c 	v4l2_ctrl_activate(isc->do_wb_ctrl, false);
isc              1903 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = container_of(notifier->v4l2_dev,
isc              1908 drivers/media/platform/atmel/atmel-isc-base.c 	if (video_is_registered(&isc->video_dev)) {
isc              1909 drivers/media/platform/atmel/atmel-isc-base.c 		v4l2_err(&isc->v4l2_dev, "only supports one sub-device.\n");
isc              1922 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = container_of(notifier->v4l2_dev,
isc              1924 drivers/media/platform/atmel/atmel-isc-base.c 	cancel_work_sync(&isc->awb_work);
isc              1925 drivers/media/platform/atmel/atmel-isc-base.c 	video_unregister_device(&isc->video_dev);
isc              1926 drivers/media/platform/atmel/atmel-isc-base.c 	v4l2_ctrl_handler_free(&isc->ctrls.handler);
isc              1946 drivers/media/platform/atmel/atmel-isc-base.c static int isc_formats_init(struct isc_device *isc)
isc              1949 drivers/media/platform/atmel/atmel-isc-base.c 	struct v4l2_subdev *subdev = isc->current_subdev->sd;
isc              1963 drivers/media/platform/atmel/atmel-isc-base.c 			v4l2_warn(&isc->v4l2_dev, "Mbus code %x not supported\n",
isc              1975 drivers/media/platform/atmel/atmel-isc-base.c 	isc->num_user_formats = num_fmts;
isc              1976 drivers/media/platform/atmel/atmel-isc-base.c 	isc->user_formats = devm_kcalloc(isc->dev,
isc              1977 drivers/media/platform/atmel/atmel-isc-base.c 					 num_fmts, sizeof(*isc->user_formats),
isc              1979 drivers/media/platform/atmel/atmel-isc-base.c 	if (!isc->user_formats)
isc              1985 drivers/media/platform/atmel/atmel-isc-base.c 			isc->user_formats[j++] = fmt;
isc              1992 drivers/media/platform/atmel/atmel-isc-base.c static int isc_set_default_fmt(struct isc_device *isc)
isc              2000 drivers/media/platform/atmel/atmel-isc-base.c 			.pixelformat	= isc->user_formats[0]->fourcc,
isc              2005 drivers/media/platform/atmel/atmel-isc-base.c 	ret = isc_try_fmt(isc, &f, NULL);
isc              2009 drivers/media/platform/atmel/atmel-isc-base.c 	isc->fmt = f;
isc              2015 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = container_of(notifier->v4l2_dev,
isc              2017 drivers/media/platform/atmel/atmel-isc-base.c 	struct video_device *vdev = &isc->video_dev;
isc              2018 drivers/media/platform/atmel/atmel-isc-base.c 	struct vb2_queue *q = &isc->vb2_vidq;
isc              2021 drivers/media/platform/atmel/atmel-isc-base.c 	INIT_WORK(&isc->awb_work, isc_awb_work);
isc              2023 drivers/media/platform/atmel/atmel-isc-base.c 	ret = v4l2_device_register_subdev_nodes(&isc->v4l2_dev);
isc              2025 drivers/media/platform/atmel/atmel-isc-base.c 		v4l2_err(&isc->v4l2_dev, "Failed to register subdev nodes\n");
isc              2029 drivers/media/platform/atmel/atmel-isc-base.c 	isc->current_subdev = container_of(notifier,
isc              2031 drivers/media/platform/atmel/atmel-isc-base.c 	mutex_init(&isc->lock);
isc              2032 drivers/media/platform/atmel/atmel-isc-base.c 	init_completion(&isc->comp);
isc              2037 drivers/media/platform/atmel/atmel-isc-base.c 	q->drv_priv		= isc;
isc              2042 drivers/media/platform/atmel/atmel-isc-base.c 	q->lock			= &isc->lock;
isc              2044 drivers/media/platform/atmel/atmel-isc-base.c 	q->dev			= isc->dev;
isc              2048 drivers/media/platform/atmel/atmel-isc-base.c 		v4l2_err(&isc->v4l2_dev,
isc              2054 drivers/media/platform/atmel/atmel-isc-base.c 	INIT_LIST_HEAD(&isc->dma_queue);
isc              2055 drivers/media/platform/atmel/atmel-isc-base.c 	spin_lock_init(&isc->dma_queue_lock);
isc              2056 drivers/media/platform/atmel/atmel-isc-base.c 	spin_lock_init(&isc->awb_lock);
isc              2058 drivers/media/platform/atmel/atmel-isc-base.c 	ret = isc_formats_init(isc);
isc              2060 drivers/media/platform/atmel/atmel-isc-base.c 		v4l2_err(&isc->v4l2_dev,
isc              2065 drivers/media/platform/atmel/atmel-isc-base.c 	ret = isc_set_default_fmt(isc);
isc              2067 drivers/media/platform/atmel/atmel-isc-base.c 		v4l2_err(&isc->v4l2_dev, "Could not set default format\n");
isc              2071 drivers/media/platform/atmel/atmel-isc-base.c 	ret = isc_ctrl_init(isc);
isc              2073 drivers/media/platform/atmel/atmel-isc-base.c 		v4l2_err(&isc->v4l2_dev, "Init isc ctrols failed: %d\n", ret);
isc              2082 drivers/media/platform/atmel/atmel-isc-base.c 	vdev->v4l2_dev		= &isc->v4l2_dev;
isc              2085 drivers/media/platform/atmel/atmel-isc-base.c 	vdev->lock		= &isc->lock;
isc              2086 drivers/media/platform/atmel/atmel-isc-base.c 	vdev->ctrl_handler	= &isc->ctrls.handler;
isc              2088 drivers/media/platform/atmel/atmel-isc-base.c 	video_set_drvdata(vdev, isc);
isc              2092 drivers/media/platform/atmel/atmel-isc-base.c 		v4l2_err(&isc->v4l2_dev,
isc              2100 drivers/media/platform/atmel/atmel-isc-base.c 	mutex_destroy(&isc->lock);
isc              2110 drivers/media/platform/atmel/atmel-isc-base.c void isc_subdev_cleanup(struct isc_device *isc)
isc              2114 drivers/media/platform/atmel/atmel-isc-base.c 	list_for_each_entry(subdev_entity, &isc->subdev_entities, list) {
isc              2119 drivers/media/platform/atmel/atmel-isc-base.c 	INIT_LIST_HEAD(&isc->subdev_entities);
isc              2122 drivers/media/platform/atmel/atmel-isc-base.c int isc_pipeline_init(struct isc_device *isc)
isc              2124 drivers/media/platform/atmel/atmel-isc-base.c 	struct device *dev = isc->dev;
isc              2125 drivers/media/platform/atmel/atmel-isc-base.c 	struct regmap *regmap = isc->regmap;
isc              2149 drivers/media/platform/atmel/atmel-isc-base.c 		isc->pipeline[i] =  regs;
isc               240 drivers/media/platform/atmel/atmel-isc.h int isc_pipeline_init(struct isc_device *isc);
isc               241 drivers/media/platform/atmel/atmel-isc.h int isc_clk_init(struct isc_device *isc);
isc               242 drivers/media/platform/atmel/atmel-isc.h void isc_subdev_cleanup(struct isc_device *isc);
isc               243 drivers/media/platform/atmel/atmel-isc.h void isc_clk_cleanup(struct isc_device *isc);
isc                57 drivers/media/platform/atmel/atmel-sama5d2-isc.c static int isc_parse_dt(struct device *dev, struct isc_device *isc)
isc                65 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	INIT_LIST_HEAD(&isc->subdev_entities);
isc               126 drivers/media/platform/atmel/atmel-sama5d2-isc.c 		list_add_tail(&subdev_entity->list, &isc->subdev_entities);
isc               136 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	struct isc_device *isc;
isc               143 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	isc = devm_kzalloc(dev, sizeof(*isc), GFP_KERNEL);
isc               144 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	if (!isc)
isc               147 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	platform_set_drvdata(pdev, isc);
isc               148 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	isc->dev = dev;
isc               155 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	isc->regmap = devm_regmap_init_mmio(dev, io_base, &isc_regmap_config);
isc               156 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	if (IS_ERR(isc->regmap)) {
isc               157 drivers/media/platform/atmel/atmel-sama5d2-isc.c 		ret = PTR_ERR(isc->regmap);
isc               167 drivers/media/platform/atmel/atmel-sama5d2-isc.c 			       ATMEL_ISC_NAME, isc);
isc               174 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	ret = isc_pipeline_init(isc);
isc               178 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	isc->hclock = devm_clk_get(dev, "hclock");
isc               179 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	if (IS_ERR(isc->hclock)) {
isc               180 drivers/media/platform/atmel/atmel-sama5d2-isc.c 		ret = PTR_ERR(isc->hclock);
isc               185 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	ret = clk_prepare_enable(isc->hclock);
isc               191 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	ret = isc_clk_init(isc);
isc               197 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	isc->ispck = isc->isc_clks[ISC_ISPCK].clk;
isc               199 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	ret = clk_prepare_enable(isc->ispck);
isc               206 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	ret = clk_set_rate(isc->ispck, clk_get_rate(isc->hclock));
isc               212 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	ret = v4l2_device_register(dev, &isc->v4l2_dev);
isc               218 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	ret = isc_parse_dt(dev, isc);
isc               224 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	if (list_empty(&isc->subdev_entities)) {
isc               230 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	list_for_each_entry(subdev_entity, &isc->subdev_entities, list) {
isc               243 drivers/media/platform/atmel/atmel-sama5d2-isc.c 		ret = v4l2_async_notifier_register(&isc->v4l2_dev,
isc               250 drivers/media/platform/atmel/atmel-sama5d2-isc.c 		if (video_is_registered(&isc->video_dev))
isc               261 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	isc_subdev_cleanup(isc);
isc               264 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	v4l2_device_unregister(&isc->v4l2_dev);
isc               267 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	clk_disable_unprepare(isc->ispck);
isc               269 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	clk_disable_unprepare(isc->hclock);
isc               271 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	isc_clk_cleanup(isc);
isc               278 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	struct isc_device *isc = platform_get_drvdata(pdev);
isc               282 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	isc_subdev_cleanup(isc);
isc               284 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	v4l2_device_unregister(&isc->v4l2_dev);
isc               286 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	clk_disable_unprepare(isc->ispck);
isc               287 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	clk_disable_unprepare(isc->hclock);
isc               289 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	isc_clk_cleanup(isc);
isc               296 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	struct isc_device *isc = dev_get_drvdata(dev);
isc               298 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	clk_disable_unprepare(isc->ispck);
isc               299 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	clk_disable_unprepare(isc->hclock);
isc               306 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	struct isc_device *isc = dev_get_drvdata(dev);
isc               309 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	ret = clk_prepare_enable(isc->hclock);
isc               313 drivers/media/platform/atmel/atmel-sama5d2-isc.c 	ret = clk_prepare_enable(isc->ispck);
isc               315 drivers/media/platform/atmel/atmel-sama5d2-isc.c 		clk_disable_unprepare(isc->hclock);
isc                44 drivers/s390/cio/airq.c 	if (!airq->handler || airq->isc > MAX_ISC)
isc                56 drivers/s390/cio/airq.c 	isc_register(airq->isc);
isc                58 drivers/s390/cio/airq.c 	hlist_add_head_rcu(&airq->list, &airq_lists[airq->isc]);
isc                80 drivers/s390/cio/airq.c 	isc_unregister(airq->isc);
isc                98 drivers/s390/cio/airq.c 	head = &airq_lists[tpi_info->isc];
isc               199 drivers/s390/cio/chsc.c 	scssc->isc = QDIO_AIRQ_ISC;
isc                98 drivers/s390/cio/chsc.h 	u32 isc:3;
isc                83 drivers/s390/cio/chsc_sch.c 	sch->isc = CHSC_SCH_ISC;
isc               383 drivers/s390/cio/cio.c 	schib->pmcw.isc = sch->config.isc;
isc               397 drivers/s390/cio/cio.c 		(schib->pmcw.isc == sch->config.isc) &&
isc               488 drivers/s390/cio/cio.c 	sch->config.isc = sch->isc;
isc               672 drivers/s390/cio/cio.c 	sch->config.isc = CONSOLE_ISC;
isc                21 drivers/s390/cio/cio.h 	u32 isc  : 3;		/* interruption sublass */
isc                55 drivers/s390/cio/cio.h 	u32 isc:3;
isc                66 drivers/s390/cio/cio.h 	u32 isc:3;
isc               109 drivers/s390/cio/cio.h 	int isc; /* desired interruption subclass */
isc              1029 drivers/s390/cio/device.c 	sch->isc = cio_is_console(sch->schid) ? CONSOLE_ISC : IO_SCH_ISC;
isc               233 drivers/s390/cio/eadm_sch.c 	sch->isc = EADM_SCH_ISC;
isc                27 drivers/s390/cio/isc.c void isc_register(unsigned int isc)
isc                29 drivers/s390/cio/isc.c 	if (isc > MAX_ISC) {
isc                35 drivers/s390/cio/isc.c 	if (isc_refs[isc] == 0)
isc                36 drivers/s390/cio/isc.c 		ctl_set_bit(6, 31 - isc);
isc                37 drivers/s390/cio/isc.c 	isc_refs[isc]++;
isc                55 drivers/s390/cio/isc.c void isc_unregister(unsigned int isc)
isc                59 drivers/s390/cio/isc.c 	if (isc > MAX_ISC || isc_refs[isc] == 0) {
isc                63 drivers/s390/cio/isc.c 	if (isc_refs[isc] == 1)
isc                64 drivers/s390/cio/isc.c 		ctl_clear_bit(6, 31 - isc);
isc                65 drivers/s390/cio/isc.c 	isc_refs[isc]--;
isc                47 drivers/s390/cio/qdio_thinint.c 	.isc = QDIO_AIRQ_ISC,
isc               162 drivers/s390/cio/trace.h 		__field(u8, isc)
isc               179 drivers/s390/cio/trace.h 		__entry->isc = __entry->tpi_info.isc;
isc               184 drivers/s390/cio/trace.h 		  __entry->adapter_IO, __entry->isc,
isc               321 drivers/s390/cio/trace.h 		__field(u8, isc)
isc               329 drivers/s390/cio/trace.h 		__entry->isc = tpi_info->isc;
isc               334 drivers/s390/cio/trace.h 		  __entry->isc, __entry->type
isc               347 drivers/s390/cio/trace.h 		__field(u8, isc)
isc               351 drivers/s390/cio/trace.h 		__entry->isc = tpi_info->isc;
isc               353 drivers/s390/cio/trace.h 	TP_printk("isc=%d", __entry->isc)
isc               156 drivers/s390/cio/vfio_ccw_drv.c 	sch->isc = VFIO_CCW_ISC;
isc               125 drivers/s390/crypto/ap_bus.c 	.isc = AP_ISC,
isc                36 drivers/s390/crypto/ap_queue.c 	qirqctrl.isc = AP_ISC;
isc               201 drivers/s390/crypto/vfio_ap_ops.c 						 int isc,
isc               226 drivers/s390/crypto/vfio_ap_ops.c 	aqic_gisa.gisc = isc;
isc               227 drivers/s390/crypto/vfio_ap_ops.c 	aqic_gisa.isc = kvm_s390_gisc_register(kvm, isc);
isc               237 drivers/s390/crypto/vfio_ap_ops.c 		q->saved_isc = isc;
isc               242 drivers/s390/crypto/vfio_ap_ops.c 		kvm_s390_gisc_unregister(kvm, isc);
isc               110 drivers/s390/virtio/virtio_ccw.c 	u8 isc;
isc               251 drivers/s390/virtio/virtio_ccw.c 	info->airq.isc = VIRTIO_AIRQ_ISC;
isc               360 drivers/s390/virtio/virtio_ccw.c 		thinint_area->isc = VIRTIO_AIRQ_ISC;
isc               628 drivers/s390/virtio/virtio_ccw.c 	thinint_area->isc = VIRTIO_AIRQ_ISC;
isc               107 drivers/usb/serial/safe_serial.c #define MY_USB_DEVICE(vend, prod, dc, ic, isc) \
isc               116 drivers/usb/serial/safe_serial.c 	.bInterfaceSubClass = (isc),
isc               474 net/sched/sch_hfsc.c sc2isc(struct tc_service_curve *sc, struct internal_sc *isc)
isc               476 net/sched/sch_hfsc.c 	isc->sm1  = m2sm(sc->m1);
isc               477 net/sched/sch_hfsc.c 	isc->ism1 = m2ism(sc->m1);
isc               478 net/sched/sch_hfsc.c 	isc->dx   = d2dx(sc->d);
isc               479 net/sched/sch_hfsc.c 	isc->dy   = seg_x2y(isc->dx, isc->sm1);
isc               480 net/sched/sch_hfsc.c 	isc->sm2  = m2sm(sc->m2);
isc               481 net/sched/sch_hfsc.c 	isc->ism2 = m2ism(sc->m2);
isc               489 net/sched/sch_hfsc.c rtsc_init(struct runtime_sc *rtsc, struct internal_sc *isc, u64 x, u64 y)
isc               493 net/sched/sch_hfsc.c 	rtsc->sm1  = isc->sm1;
isc               494 net/sched/sch_hfsc.c 	rtsc->ism1 = isc->ism1;
isc               495 net/sched/sch_hfsc.c 	rtsc->dx   = isc->dx;
isc               496 net/sched/sch_hfsc.c 	rtsc->dy   = isc->dy;
isc               497 net/sched/sch_hfsc.c 	rtsc->sm2  = isc->sm2;
isc               498 net/sched/sch_hfsc.c 	rtsc->ism2 = isc->ism2;
isc               548 net/sched/sch_hfsc.c rtsc_min(struct runtime_sc *rtsc, struct internal_sc *isc, u64 x, u64 y)
isc               553 net/sched/sch_hfsc.c 	if (isc->sm1 <= isc->sm2) {
isc               576 net/sched/sch_hfsc.c 	y2 = rtsc_x2y(rtsc, x + isc->dx);
isc               577 net/sched/sch_hfsc.c 	if (y2 >= y + isc->dy) {
isc               581 net/sched/sch_hfsc.c 		rtsc->dx = isc->dx;
isc               582 net/sched/sch_hfsc.c 		rtsc->dy = isc->dy;
isc               593 net/sched/sch_hfsc.c 	dsm = isc->sm1 - isc->sm2;
isc               601 net/sched/sch_hfsc.c 	dy = seg_x2y(dx, isc->sm1);
isc                41 tools/arch/s390/include/uapi/asm/kvm.h 	__u8 isc;
isc                50 tools/arch/s390/include/uapi/asm/kvm.h 	__u8 isc;