dec               150 arch/mips/include/asm/octeon/cvmx-spxx-defs.h 		uint64_t dec:1;
dec               166 arch/mips/include/asm/octeon/cvmx-spxx-defs.h 		uint64_t dec:1;
dec               612 arch/powerpc/include/asm/kvm_host.h 	ulong dec;
dec               228 arch/powerpc/include/uapi/asm/kvm.h 			__u32 dec;	/* KVM_SREGS_E_UPDATE_DEC */
dec               534 arch/powerpc/kernel/asm-offsets.c 	OFFSET(VCPU_DEC, kvm_vcpu, arch.dec);
dec               995 arch/powerpc/kernel/time.c 	struct clock_event_device *dec = &per_cpu(decrementers, cpu);
dec               997 arch/powerpc/kernel/time.c 	*dec = decrementer_clockevent;
dec               998 arch/powerpc/kernel/time.c 	dec->cpumask = cpumask_of(cpu);
dec              1000 arch/powerpc/kernel/time.c 	clockevents_config_and_register(dec, ppc_tb_freq, 2, decrementer_max);
dec              1003 arch/powerpc/kernel/time.c 		    dec->name, dec->mult, dec->shift, cpu);
dec              1006 arch/powerpc/kernel/time.c 	decrementer_clockevent.mult = dec->mult;
dec              1007 arch/powerpc/kernel/time.c 	decrementer_clockevent.shift = dec->shift;
dec              3527 arch/powerpc/kvm/book3s_hv.c 	s64 dec;
dec              3531 arch/powerpc/kvm/book3s_hv.c 	dec = mfspr(SPRN_DEC);
dec              3533 arch/powerpc/kvm/book3s_hv.c 	if (dec < 512)
dec              3535 arch/powerpc/kvm/book3s_hv.c 	local_paca->kvm_hstate.dec_expires = dec + tb;
dec              3634 arch/powerpc/kvm/book3s_hv.c 	dec = mfspr(SPRN_DEC);
dec              3636 arch/powerpc/kvm/book3s_hv.c 		dec = (s32) dec;
dec              3638 arch/powerpc/kvm/book3s_hv.c 	vcpu->arch.dec_expires = dec + tb;
dec               779 arch/powerpc/kvm/book3s_hv_builtin.c 			long int dec = mfspr(SPRN_DEC);
dec               781 arch/powerpc/kvm/book3s_hv_builtin.c 				dec = (int) dec;
dec               782 arch/powerpc/kvm/book3s_hv_builtin.c 			if (dec < 0)
dec              1505 arch/powerpc/kvm/booke.c 	sregs->u.e.dec = kvmppc_get_dec(vcpu, tb);
dec              1525 arch/powerpc/kvm/booke.c 		vcpu->arch.dec = sregs->u.e.dec;
dec              1878 arch/powerpc/kvm/booke.c 		vcpu->arch.dec = vcpu->arch.decar;
dec                31 arch/powerpc/kvm/emulate.c 	pr_debug("mtDEC: %lx\n", vcpu->arch.dec);
dec                41 arch/powerpc/kvm/emulate.c 	if (vcpu->arch.dec == 0)
dec                51 arch/powerpc/kvm/emulate.c 	dec_time = vcpu->arch.dec;
dec                68 arch/powerpc/kvm/emulate.c 	if (vcpu->arch.dec < jd)
dec                72 arch/powerpc/kvm/emulate.c 	return vcpu->arch.dec - jd;
dec                94 arch/powerpc/kvm/emulate.c 		vcpu->arch.dec = (u32) spr_val;
dec                23 arch/x86/crypto/des3_ede_glue.c 	struct des3_ede_ctx dec;
dec                45 arch/x86/crypto/des3_ede_glue.c 	u32 *dec_ctx = ctx->dec.expkey;
dec                61 arch/x86/crypto/des3_ede_glue.c 	u32 *dec_ctx = ctx->dec.expkey;
dec               133 arch/x86/crypto/des3_ede_glue.c 	return ecb_crypt(req, ctx->dec.expkey);
dec               371 arch/x86/crypto/des3_ede_glue.c 		ctx->dec.expkey[j + 0] = ctx->enc.expkey[i + 0];
dec               372 arch/x86/crypto/des3_ede_glue.c 		ctx->dec.expkey[j + 1] = tmp;
dec                34 arch/x86/include/asm/asm.h #define _ASM_DEC	__ASM_SIZE(dec)
dec               222 arch/x86/include/asm/atomic64_32.h 	__alternative_atomic64(dec, dec_return, /* no output */,
dec                62 arch/x86/include/asm/nospec-branch.h 	dec	reg;				\
dec              1013 arch/x86/kvm/emulate.c FASTOP1(dec);
dec              6865 arch/x86/kvm/svm.c static int sev_dbg_crypt(struct kvm *kvm, struct kvm_sev_cmd *argp, bool dec)
dec              6922 arch/x86/kvm/svm.c 		if (dec)
dec              1120 drivers/block/amiflop.c 	register unsigned char *dec = mfmdecode;
dec              1125 drivers/block/amiflop.c 	byte = dec[w2];
dec              1128 drivers/block/amiflop.c 	byte |= dec[w2];
dec                78 drivers/crypto/qat/qat_common/qat_asym_algs.c 		} dec;
dec                98 drivers/crypto/qat/qat_common/qat_asym_algs.c 		} dec;
dec               862 drivers/crypto/qat/qat_common/qat_asym_algs.c 		qat_req->in.rsa.dec.d = ctx->dma_d;
dec               863 drivers/crypto/qat/qat_common/qat_asym_algs.c 		qat_req->in.rsa.dec.n = ctx->dma_n;
dec               876 drivers/crypto/qat/qat_common/qat_asym_algs.c 		qat_req->in.rsa.dec.c = dma_map_single(dev, sg_virt(req->src),
dec               878 drivers/crypto/qat/qat_common/qat_asym_algs.c 		if (unlikely(dma_mapping_error(dev, qat_req->in.rsa.dec.c)))
dec               885 drivers/crypto/qat/qat_common/qat_asym_algs.c 							&qat_req->in.rsa.dec.c,
dec               895 drivers/crypto/qat/qat_common/qat_asym_algs.c 		qat_req->out.rsa.dec.m = dma_map_single(dev, sg_virt(req->dst),
dec               899 drivers/crypto/qat/qat_common/qat_asym_algs.c 		if (unlikely(dma_mapping_error(dev, qat_req->out.rsa.dec.m)))
dec               904 drivers/crypto/qat/qat_common/qat_asym_algs.c 							&qat_req->out.rsa.dec.m,
dec               916 drivers/crypto/qat/qat_common/qat_asym_algs.c 	qat_req->phy_in = dma_map_single(dev, &qat_req->in.rsa.dec.c,
dec               922 drivers/crypto/qat/qat_common/qat_asym_algs.c 	qat_req->phy_out = dma_map_single(dev, &qat_req->out.rsa.dec.m,
dec               956 drivers/crypto/qat/qat_common/qat_asym_algs.c 				  qat_req->out.rsa.dec.m);
dec               958 drivers/crypto/qat/qat_common/qat_asym_algs.c 		if (!dma_mapping_error(dev, qat_req->out.rsa.dec.m))
dec               959 drivers/crypto/qat/qat_common/qat_asym_algs.c 			dma_unmap_single(dev, qat_req->out.rsa.dec.m,
dec               964 drivers/crypto/qat/qat_common/qat_asym_algs.c 				  qat_req->in.rsa.dec.c);
dec               966 drivers/crypto/qat/qat_common/qat_asym_algs.c 		if (!dma_mapping_error(dev, qat_req->in.rsa.dec.c))
dec               967 drivers/crypto/qat/qat_common/qat_asym_algs.c 			dma_unmap_single(dev, qat_req->in.rsa.dec.c,
dec               511 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h 	int dec[PRECISION];
dec               515 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h 		dec[i] = tmp / (1 << SHIFT_AMOUNT);
dec               516 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h 		tmp = tmp - ((1 << SHIFT_AMOUNT)*dec[i]);
dec               518 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h 		scaledDecimal = scaledDecimal + dec[i]*uPow(10, PRECISION - 1 -i);
dec               162 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c 	u64 dec, dec_multiple;
dec               177 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c 	dec = div_u64(dec_multiple, multiplier);
dec               191 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c 	regs->decimal_div_start = dec;
dec               491 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c 	u32 dec;
dec               494 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c 	dec = pll_read(base + REG_DSI_10nm_PHY_PLL_DECIMAL_DIV_START_1);
dec               495 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c 	dec &= 0xff;
dec               509 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c 	pll_freq = dec * (ref_clk * 2);
dec               516 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c 	    pll_10nm->id, (unsigned long)vco_rate, dec, frac);
dec                51 drivers/iio/adc/ad7923.c #define EXTRACT(val, dec, bits)		(((val) >> (dec)) & ((1 << (bits)) - 1))
dec               741 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	u32 rsv, dec;
dec               792 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	ret = of_property_read_u32(np, "qcom,decimation", &dec);
dec               794 drivers/iio/adc/qcom-pm8xxx-xoadc.c 		ret = qcom_vadc_decimation_from_dt(dec);
dec               797 drivers/iio/adc/qcom-pm8xxx-xoadc.c 				name, dec);
dec                53 drivers/iio/adc/ti-ads7950.c #define TI_ADS7950_EXTRACT(val, dec, bits) \
dec                54 drivers/iio/adc/ti-ads7950.c 	(((val) >> (dec)) & ((1 << (bits)) - 1))
dec               296 drivers/md/dm-cache-metadata.c 	vt.dec = NULL;
dec              1623 drivers/md/dm-crypt.c 		goto dec;
dec              1643 drivers/md/dm-crypt.c dec:
dec               404 drivers/md/dm-era-target.c 	vt->dec = ws_dec;
dec               415 drivers/md/dm-era-target.c 	vt.dec = NULL;
dec               461 drivers/md/dm-thin-metadata.c 	pmd->info.value_type.dec = data_block_dec;
dec               472 drivers/md/dm-thin-metadata.c 	pmd->tl_info.value_type.dec = subtree_dec;
dec               480 drivers/md/dm-thin-metadata.c 	pmd->bl_info.value_type.dec = data_block_dec;
dec               488 drivers/md/dm-thin-metadata.c 	pmd->details_info.value_type.dec = NULL;
dec               137 drivers/md/persistent-data/dm-array.c 	if (vt->dec)
dec               138 drivers/md/persistent-data/dm-array.c 		on_entries(info, ab, vt->dec);
dec               211 drivers/md/persistent-data/dm-array.c 		if (vt->dec)
dec               212 drivers/md/persistent-data/dm-array.c 			vt->dec(vt->context, element_at(info, ab, i - 1));
dec               644 drivers/md/persistent-data/dm-array.c 	bvt->dec = block_dec;
dec               823 drivers/md/persistent-data/dm-array.c 	if (vt->dec &&
dec               825 drivers/md/persistent-data/dm-array.c 		vt->dec(vt->context, old_value);
dec                22 drivers/md/persistent-data/dm-bitset.c 	.dec = NULL,
dec               545 drivers/md/persistent-data/dm-btree-remove.c 		if (info->value_type.dec)
dec               546 drivers/md/persistent-data/dm-btree-remove.c 			info->value_type.dec(info->value_type.context,
dec               654 drivers/md/persistent-data/dm-btree-remove.c 		if (info->value_type.dec)
dec               655 drivers/md/persistent-data/dm-btree-remove.c 			info->value_type.dec(info->value_type.context,
dec               278 drivers/md/persistent-data/dm-btree-spine.c 	vt->dec = le64_dec;
dec               321 drivers/md/persistent-data/dm-btree.c 			if (info->value_type.dec) {
dec               325 drivers/md/persistent-data/dm-btree.c 					info->value_type.dec(info->value_type.context,
dec               824 drivers/md/persistent-data/dm-btree.c 		if (info->value_type.dec &&
dec               830 drivers/md/persistent-data/dm-btree.c 			info->value_type.dec(info->value_type.context,
dec                68 drivers/md/persistent-data/dm-btree.h 	void (*dec)(void *context, const void *value);
dec               207 drivers/md/persistent-data/dm-space-map-common.c 	ll->bitmap_info.value_type.dec = NULL;
dec               214 drivers/md/persistent-data/dm-space-map-common.c 	ll->ref_count_info.value_type.dec = NULL;
dec               252 drivers/media/i2c/tw2804.c 	struct tw2804 *dec = to_state(sd);
dec               269 drivers/media/i2c/tw2804.c 	write_regs(client, regs, dec->channel);
dec               270 drivers/media/i2c/tw2804.c 	dec->norm = norm;
dec               277 drivers/media/i2c/tw2804.c 	struct tw2804 *dec = to_state(sd);
dec               281 drivers/media/i2c/tw2804.c 	if (config && config - 1 != dec->channel) {
dec               287 drivers/media/i2c/tw2804.c 		dec->channel = config - 1;
dec               289 drivers/media/i2c/tw2804.c 			dec->channel);
dec               290 drivers/media/i2c/tw2804.c 		if (dec->channel == 0 &&
dec               296 drivers/media/i2c/tw2804.c 		if (write_regs(client, channel_registers, dec->channel) < 0) {
dec               299 drivers/media/i2c/tw2804.c 				dec->channel);
dec               307 drivers/media/i2c/tw2804.c 	if (input == dec->input)
dec               310 drivers/media/i2c/tw2804.c 	reg = read_reg(client, 0x22, dec->channel);
dec               317 drivers/media/i2c/tw2804.c 		reg = write_reg(client, 0x22, reg, dec->channel);
dec               321 drivers/media/i2c/tw2804.c 		dec->input = input;
dec               116 drivers/media/i2c/tw9903.c 	struct tw9903 *dec = to_state(sd);
dec               134 drivers/media/i2c/tw9903.c 	dec->norm = norm;
dec               141 drivers/media/i2c/tw9903.c 	struct tw9903 *dec = container_of(ctrl->handler, struct tw9903, hdl);
dec               142 drivers/media/i2c/tw9903.c 	struct v4l2_subdev *sd = &dec->sd;
dec               162 drivers/media/i2c/tw9903.c 	struct tw9903 *dec = to_state(sd);
dec               163 drivers/media/i2c/tw9903.c 	bool is_60hz = dec->norm & V4L2_STD_525_60;
dec               195 drivers/media/i2c/tw9903.c 	struct tw9903 *dec;
dec               206 drivers/media/i2c/tw9903.c 	dec = devm_kzalloc(&client->dev, sizeof(*dec), GFP_KERNEL);
dec               207 drivers/media/i2c/tw9903.c 	if (dec == NULL)
dec               209 drivers/media/i2c/tw9903.c 	sd = &dec->sd;
dec               211 drivers/media/i2c/tw9903.c 	hdl = &dec->hdl;
dec               228 drivers/media/i2c/tw9903.c 	dec->norm = V4L2_STD_NTSC;
dec                87 drivers/media/i2c/tw9906.c 	struct tw9906 *dec = to_state(sd);
dec               105 drivers/media/i2c/tw9906.c 	dec->norm = norm;
dec               111 drivers/media/i2c/tw9906.c 	struct tw9906 *dec = container_of(ctrl->handler, struct tw9906, hdl);
dec               112 drivers/media/i2c/tw9906.c 	struct v4l2_subdev *sd = &dec->sd;
dec               132 drivers/media/i2c/tw9906.c 	struct tw9906 *dec = to_state(sd);
dec               133 drivers/media/i2c/tw9906.c 	bool is_60hz = dec->norm & V4L2_STD_525_60;
dec               163 drivers/media/i2c/tw9906.c 	struct tw9906 *dec;
dec               174 drivers/media/i2c/tw9906.c 	dec = devm_kzalloc(&client->dev, sizeof(*dec), GFP_KERNEL);
dec               175 drivers/media/i2c/tw9906.c 	if (dec == NULL)
dec               177 drivers/media/i2c/tw9906.c 	sd = &dec->sd;
dec               179 drivers/media/i2c/tw9906.c 	hdl = &dec->hdl;
dec               196 drivers/media/i2c/tw9906.c 	dec->norm = V4L2_STD_NTSC;
dec               212 drivers/media/pci/cx25821/cx25821-medusa-video.c static int medusa_PALCombInit(struct cx25821_dev *dev, int dec)
dec               219 drivers/media/pci/cx25821/cx25821-medusa-video.c 			COMB_2D_HFS_CFG + (0x200 * dec), 0x20002861);
dec               221 drivers/media/pci/cx25821/cx25821-medusa-video.c 			COMB_2D_HFD_CFG + (0x200 * dec), 0x20002861);
dec               223 drivers/media/pci/cx25821/cx25821-medusa-video.c 			COMB_2D_LF_CFG + (0x200 * dec), 0x200A1023);
dec               227 drivers/media/pci/cx25821/cx25821-medusa-video.c 			COMB_FLAT_THRESH_CTRL + (0x200 * dec), &tmp);
dec               230 drivers/media/pci/cx25821/cx25821-medusa-video.c 			COMB_FLAT_THRESH_CTRL + (0x200 * dec), value);
dec               234 drivers/media/pci/cx25821/cx25821-medusa-video.c 			COMB_2D_BLEND + (0x200 * dec), 0x210F0F0F);
dec               238 drivers/media/pci/cx25821/cx25821-medusa-video.c 			COMB_MISC_CTRL + (0x200 * dec), 0x41120A7F);
dec              1589 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *dec)
dec              1594 drivers/media/pci/ivtv/ivtv-ioctl.c 	IVTV_DEBUG_IOCTL("VIDIOC_DECODER_CMD %d\n", dec->cmd);
dec              1595 drivers/media/pci/ivtv/ivtv-ioctl.c 	return ivtv_video_command(itv, id, dec, false);
dec              1598 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_try_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *dec)
dec              1603 drivers/media/pci/ivtv/ivtv-ioctl.c 	IVTV_DEBUG_IOCTL("VIDIOC_TRY_DECODER_CMD %d\n", dec->cmd);
dec              1604 drivers/media/pci/ivtv/ivtv-ioctl.c 	return ivtv_video_command(itv, id, dec, true);
dec               112 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c 	struct vdec_h264_dec_info dec;
dec               268 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c 	*dpb_sz = inst->vsi->dec.dpb_sz;
dec               383 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c 	inst->vsi->dec.bs_dma = (uint64_t)bs->dma_addr;
dec               384 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c 	inst->vsi->dec.y_fb_dma = y_fb_dma;
dec               385 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c 	inst->vsi->dec.c_fb_dma = c_fb_dma;
dec               386 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c 	inst->vsi->dec.vdec_fb_va = vdec_fb_va;
dec               400 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c 	*res_chg = inst->vsi->dec.resolution_changed;
dec               407 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c 		if (inst->vsi->dec.realloc_mv_buf) {
dec                85 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c 	struct vdec_vp8_dec_info dec;
dec               296 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c 	uint64_t prev_y_dma = inst->vsi->dec.prev_y_dma;
dec               320 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c 	if (inst->vsi->dec.show_frame) {
dec               377 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c 	inst->vsi->dec.working_buf_dma = (uint64_t)mem->dma_addr;
dec               388 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c 	inst->vsi->dec.working_buf_dma = 0;
dec               436 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c 	struct vdec_vp8_dec_info *dec = &inst->vsi->dec;
dec               457 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c 	dec->bs_dma = (unsigned long)bs->dma_addr;
dec               458 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c 	dec->bs_sz = bs->size;
dec               459 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c 	dec->cur_y_fb_dma = y_fb_dma;
dec               460 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c 	dec->cur_c_fb_dma = c_fb_dma;
dec               476 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c 		if (dec->wait_key_frame) {
dec               484 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c 	if (dec->resolution_changed) {
dec               506 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c 			 dec->show_frame);
dec               299 drivers/media/platform/qcom/venus/core.h 		struct vdec_controls dec;
dec               549 drivers/media/platform/qcom/venus/vdec.c 	struct vdec_controls *ctr = &inst->controls.dec;
dec                16 drivers/media/platform/qcom/venus/vdec_ctrls.c 	struct vdec_controls *ctr = &inst->controls.dec;
dec                41 drivers/media/platform/qcom/venus/vdec_ctrls.c 	struct vdec_controls *ctr = &inst->controls.dec;
dec                31 drivers/media/platform/sti/delta/delta-v4l2.c #define call_dec_op(dec, op, args...)\
dec                32 drivers/media/platform/sti/delta/delta-v4l2.c 		((dec && (dec)->op) ? (dec)->op(args) : 0)
dec               136 drivers/media/platform/sti/delta/delta-v4l2.c 	const struct delta_dec *dec = ctx->dec;
dec               139 drivers/media/platform/sti/delta/delta-v4l2.c 	call_dec_op(dec, recycle, ctx, frame);
dec               283 drivers/media/platform/sti/delta/delta-v4l2.c 	const struct delta_dec *dec;
dec               287 drivers/media/platform/sti/delta/delta-v4l2.c 		dec = delta->decoders[i];
dec               288 drivers/media/platform/sti/delta/delta-v4l2.c 		if ((dec->pixelformat == pixelformat) &&
dec               289 drivers/media/platform/sti/delta/delta-v4l2.c 		    (dec->streamformat == streamformat))
dec               290 drivers/media/platform/sti/delta/delta-v4l2.c 			return dec;
dec               346 drivers/media/platform/sti/delta/delta-v4l2.c 	const struct delta_dec *dec;
dec               349 drivers/media/platform/sti/delta/delta-v4l2.c 	dec = delta_find_decoder(ctx, streamformat, ctx->frameinfo.pixelformat);
dec               350 drivers/media/platform/sti/delta/delta-v4l2.c 	if (!dec) {
dec               364 drivers/media/platform/sti/delta/delta-v4l2.c 	ret = call_dec_op(dec, open, ctx);
dec               371 drivers/media/platform/sti/delta/delta-v4l2.c 	dev_dbg(delta->dev, "%s %s decoder opened\n", ctx->name, dec->name);
dec               373 drivers/media/platform/sti/delta/delta-v4l2.c 	*pdec = dec;
dec               498 drivers/media/platform/sti/delta/delta-v4l2.c 	const struct delta_dec *dec;
dec               502 drivers/media/platform/sti/delta/delta-v4l2.c 	dec = delta_find_decoder(ctx, streamformat, ctx->frameinfo.pixelformat);
dec               503 drivers/media/platform/sti/delta/delta-v4l2.c 	if (!dec) {
dec               516 drivers/media/platform/sti/delta/delta-v4l2.c 		 dec->max_width ? dec->max_width : DELTA_MAX_WIDTH,
dec               520 drivers/media/platform/sti/delta/delta-v4l2.c 		 dec->max_height ? dec->max_height : DELTA_MAX_HEIGHT,
dec               552 drivers/media/platform/sti/delta/delta-v4l2.c 	const struct delta_dec *dec;
dec               555 drivers/media/platform/sti/delta/delta-v4l2.c 	dec = delta_find_decoder(ctx, ctx->streaminfo.streamformat,
dec               557 drivers/media/platform/sti/delta/delta-v4l2.c 	if (!dec) {
dec               646 drivers/media/platform/sti/delta/delta-v4l2.c 	const struct delta_dec *dec = ctx->dec;
dec               691 drivers/media/platform/sti/delta/delta-v4l2.c 	ret = call_dec_op(dec, set_frameinfo, ctx, &frameinfo);
dec               696 drivers/media/platform/sti/delta/delta-v4l2.c 	ret = call_dec_op(dec, get_frameinfo, ctx, &frameinfo);
dec               808 drivers/media/platform/sti/delta/delta-v4l2.c 	const struct delta_dec *dec = ctx->dec;
dec               819 drivers/media/platform/sti/delta/delta-v4l2.c 	call_dec_op(dec, drain, ctx);
dec               824 drivers/media/platform/sti/delta/delta-v4l2.c 		ret = call_dec_op(dec, get_frame, ctx, &frame);
dec               926 drivers/media/platform/sti/delta/delta-v4l2.c 	const struct delta_dec *dec = ctx->dec;
dec               933 drivers/media/platform/sti/delta/delta-v4l2.c 	if (!dec) {
dec               955 drivers/media/platform/sti/delta/delta-v4l2.c 	if (!dec->pm) {
dec               962 drivers/media/platform/sti/delta/delta-v4l2.c 	ret = call_dec_op(dec, decode, ctx, au);
dec               980 drivers/media/platform/sti/delta/delta-v4l2.c 		if (!dec->pm)
dec               987 drivers/media/platform/sti/delta/delta-v4l2.c 	if (!dec->pm)
dec               996 drivers/media/platform/sti/delta/delta-v4l2.c 		ret = call_dec_op(dec, get_frame, ctx, &frame);
dec              1143 drivers/media/platform/sti/delta/delta-v4l2.c 	const struct delta_dec *dec = ctx->dec;
dec              1170 drivers/media/platform/sti/delta/delta-v4l2.c 	return call_dec_op(dec, setup_frame, ctx, frame);
dec              1309 drivers/media/platform/sti/delta/delta-v4l2.c 	const struct delta_dec *dec = ctx->dec;
dec              1326 drivers/media/platform/sti/delta/delta-v4l2.c 					 ctx->frameinfo.pixelformat, &dec);
dec              1329 drivers/media/platform/sti/delta/delta-v4l2.c 		ctx->dec = dec;
dec              1355 drivers/media/platform/sti/delta/delta-v4l2.c 	ret = call_dec_op(dec, decode, ctx, au);
dec              1362 drivers/media/platform/sti/delta/delta-v4l2.c 	ret = call_dec_op(dec, get_streaminfo, ctx, streaminfo);
dec              1371 drivers/media/platform/sti/delta/delta-v4l2.c 	ret = call_dec_op(dec, get_frameinfo, ctx, frameinfo);
dec              1533 drivers/media/platform/sti/delta/delta-v4l2.c 	const struct delta_dec *dec = ctx->dec;
dec              1538 drivers/media/platform/sti/delta/delta-v4l2.c 	call_dec_op(dec, flush, ctx);
dec              1702 drivers/media/platform/sti/delta/delta-v4l2.c 	const struct delta_dec *dec = ctx->dec;
dec              1707 drivers/media/platform/sti/delta/delta-v4l2.c 	call_dec_op(dec, close, ctx);
dec               437 drivers/media/platform/sti/delta/delta.h 	const struct delta_dec *dec;
dec               627 drivers/media/rc/img-ir/img-ir-hw.c 				      const struct img_ir_decoder *dec)
dec               632 drivers/media/rc/img-ir/img-ir-hw.c 	ct = dec->control.code_type;
dec               651 drivers/media/rc/img-ir/img-ir-hw.c 		const struct img_ir_decoder *dec = *decp;
dec               652 drivers/media/rc/img-ir/img-ir-hw.c 		if (img_ir_decoder_compatible(priv, dec))
dec               653 drivers/media/rc/img-ir/img-ir-hw.c 			protos |= dec->type;
dec               673 drivers/media/rc/img-ir/img-ir-hw.c 		const struct img_ir_decoder *dec = *decp;
dec               674 drivers/media/rc/img-ir/img-ir-hw.c 		if (!img_ir_decoder_compatible(priv, dec))
dec               676 drivers/media/rc/img-ir/img-ir-hw.c 		if (*ir_type & dec->type) {
dec               677 drivers/media/rc/img-ir/img-ir-hw.c 			*ir_type &= dec->type;
dec               678 drivers/media/rc/img-ir/img-ir-hw.c 			img_ir_set_decoder(priv, dec, *ir_type);
dec               818 drivers/media/rc/img-ir/img-ir-hw.c 	const struct img_ir_decoder *dec = hw->decoder;
dec               825 drivers/media/rc/img-ir/img-ir-hw.c 	if (dec->scancode)
dec               826 drivers/media/rc/img-ir/img-ir-hw.c 		ret = dec->scancode(len, raw, hw->enabled_protocols, &request);
dec               853 drivers/media/rc/img-ir/img-ir-hw.c 	if (dec->repeat && !hw->stopping) {
dec               859 drivers/media/rc/img-ir/img-ir-hw.c 		interval = dec->repeat + (dec->repeat >> 3);
dec              1012 drivers/media/rc/img-ir/img-ir-hw.c 		const struct img_ir_decoder *dec = *decp;
dec              1013 drivers/media/rc/img-ir/img-ir-hw.c 		if (img_ir_decoder_compatible(priv, dec)) {
dec              1014 drivers/media/rc/img-ir/img-ir-hw.c 			img_ir_set_protocol(priv, dec->type);
dec              1015 drivers/media/rc/img-ir/img-ir-hw.c 			img_ir_set_decoder(priv, dec, 0);
dec               191 drivers/media/usb/go7007/s2250-board.c 	struct s2250 *dec = i2c_get_clientdata(client);
dec               244 drivers/media/usb/go7007/s2250-board.c 		dec->reg12b_val = val;
dec               245 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_set_model(struct ttusb_dec *dec,
dec               250 drivers/media/usb/ttusb-dec/ttusb_dec.c 	struct ttusb_dec *dec = urb->context;
dec               251 drivers/media/usb/ttusb-dec/ttusb_dec.c 	char *buffer = dec->irq_buffer;
dec               286 drivers/media/usb/ttusb-dec/ttusb_dec.c 			input_report_key(dec->rc_input_dev, rc_keys[buffer[4] - 1], 1);
dec               287 drivers/media/usb/ttusb-dec/ttusb_dec.c 			input_sync(dec->rc_input_dev);
dec               288 drivers/media/usb/ttusb-dec/ttusb_dec.c 			input_report_key(dec->rc_input_dev, rc_keys[buffer[4] - 1], 0);
dec               289 drivers/media/usb/ttusb-dec/ttusb_dec.c 			input_sync(dec->rc_input_dev);
dec               313 drivers/media/usb/ttusb-dec/ttusb_dec.c static int ttusb_dec_send_command(struct ttusb_dec *dec, const u8 command,
dec               326 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if ((result = mutex_lock_interruptible(&dec->usb_mutex))) {
dec               333 drivers/media/usb/ttusb-dec/ttusb_dec.c 	b[1] = ++dec->trans_count;
dec               345 drivers/media/usb/ttusb-dec/ttusb_dec.c 	result = usb_bulk_msg(dec->udev, dec->command_pipe, b,
dec               351 drivers/media/usb/ttusb-dec/ttusb_dec.c 		mutex_unlock(&dec->usb_mutex);
dec               356 drivers/media/usb/ttusb-dec/ttusb_dec.c 	result = usb_bulk_msg(dec->udev, dec->result_pipe, b,
dec               362 drivers/media/usb/ttusb-dec/ttusb_dec.c 		mutex_unlock(&dec->usb_mutex);
dec               376 drivers/media/usb/ttusb-dec/ttusb_dec.c 		mutex_unlock(&dec->usb_mutex);
dec               383 drivers/media/usb/ttusb-dec/ttusb_dec.c static int ttusb_dec_get_stb_state (struct ttusb_dec *dec, unsigned int *mode,
dec               393 drivers/media/usb/ttusb-dec/ttusb_dec.c 	result = ttusb_dec_send_command(dec, 0x08, 0, NULL, &c_length, c);
dec               418 drivers/media/usb/ttusb-dec/ttusb_dec.c 	struct ttusb_dec *dec = priv;
dec               420 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->audio_filter->feed->cb.ts(data, 188, NULL, 0,
dec               421 drivers/media/usb/ttusb-dec/ttusb_dec.c 				       &dec->audio_filter->feed->feed.ts, NULL);
dec               428 drivers/media/usb/ttusb-dec/ttusb_dec.c 	struct ttusb_dec *dec = priv;
dec               430 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->video_filter->feed->cb.ts(data, 188, NULL, 0,
dec               431 drivers/media/usb/ttusb-dec/ttusb_dec.c 				       &dec->video_filter->feed->feed.ts, NULL);
dec               436 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_set_pids(struct ttusb_dec *dec)
dec               442 drivers/media/usb/ttusb-dec/ttusb_dec.c 	__be16 pcr = htons(dec->pid[DMX_PES_PCR]);
dec               443 drivers/media/usb/ttusb-dec/ttusb_dec.c 	__be16 audio = htons(dec->pid[DMX_PES_AUDIO]);
dec               444 drivers/media/usb/ttusb-dec/ttusb_dec.c 	__be16 video = htons(dec->pid[DMX_PES_VIDEO]);
dec               452 drivers/media/usb/ttusb-dec/ttusb_dec.c 	ttusb_dec_send_command(dec, 0x50, sizeof(b), b, NULL, NULL);
dec               454 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dvb_filter_pes2ts_init(&dec->a_pes2ts, dec->pid[DMX_PES_AUDIO],
dec               455 drivers/media/usb/ttusb-dec/ttusb_dec.c 			       ttusb_dec_audio_pes2ts_cb, dec);
dec               456 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dvb_filter_pes2ts_init(&dec->v_pes2ts, dec->pid[DMX_PES_VIDEO],
dec               457 drivers/media/usb/ttusb-dec/ttusb_dec.c 			       ttusb_dec_video_pes2ts_cb, dec);
dec               458 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->v_pes_length = 0;
dec               459 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->v_pes_postbytes = 0;
dec               462 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_process_pva(struct ttusb_dec *dec, u8 *pva, int length)
dec               482 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->video_filter->feed->cb.ts(pva, length, NULL, 0,
dec               483 drivers/media/usb/ttusb-dec/ttusb_dec.c 				&dec->video_filter->feed->feed.ts, NULL);
dec               487 drivers/media/usb/ttusb-dec/ttusb_dec.c 		if (dec->v_pes_postbytes > 0 &&
dec               488 drivers/media/usb/ttusb-dec/ttusb_dec.c 		    dec->v_pes_postbytes == prebytes) {
dec               489 drivers/media/usb/ttusb-dec/ttusb_dec.c 			memcpy(&dec->v_pes[dec->v_pes_length],
dec               492 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dvb_filter_pes2ts(&dec->v_pes2ts, dec->v_pes,
dec               493 drivers/media/usb/ttusb-dec/ttusb_dec.c 					  dec->v_pes_length + prebytes, 1);
dec               497 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->v_pes[7] = 0x80;
dec               498 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->v_pes[8] = 0x05;
dec               500 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->v_pes[9] = 0x21 | ((pva[8] & 0xc0) >> 5);
dec               501 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->v_pes[10] = ((pva[8] & 0x3f) << 2) |
dec               503 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->v_pes[11] = 0x01 |
dec               506 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->v_pes[12] = ((pva[10] & 0x7f) << 1) |
dec               508 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->v_pes[13] = 0x01 | ((pva[11] & 0x7f) << 1);
dec               510 drivers/media/usb/ttusb-dec/ttusb_dec.c 			memcpy(&dec->v_pes[14], &pva[12 + prebytes],
dec               512 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->v_pes_length = 14 + length - 12 - prebytes;
dec               514 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->v_pes[7] = 0x00;
dec               515 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->v_pes[8] = 0x00;
dec               517 drivers/media/usb/ttusb-dec/ttusb_dec.c 			memcpy(&dec->v_pes[9], &pva[8], length - 8);
dec               518 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->v_pes_length = 9 + length - 8;
dec               521 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->v_pes_postbytes = postbytes;
dec               523 drivers/media/usb/ttusb-dec/ttusb_dec.c 		if (dec->v_pes[9 + dec->v_pes[8]] == 0x00 &&
dec               524 drivers/media/usb/ttusb-dec/ttusb_dec.c 		    dec->v_pes[10 + dec->v_pes[8]] == 0x00 &&
dec               525 drivers/media/usb/ttusb-dec/ttusb_dec.c 		    dec->v_pes[11 + dec->v_pes[8]] == 0x01)
dec               526 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->v_pes[6] = 0x84;
dec               528 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->v_pes[6] = 0x80;
dec               530 drivers/media/usb/ttusb-dec/ttusb_dec.c 		v_pes_payload_length = htons(dec->v_pes_length - 6 +
dec               532 drivers/media/usb/ttusb-dec/ttusb_dec.c 		memcpy(&dec->v_pes[4], &v_pes_payload_length, 2);
dec               535 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dvb_filter_pes2ts(&dec->v_pes2ts, dec->v_pes,
dec               536 drivers/media/usb/ttusb-dec/ttusb_dec.c 					  dec->v_pes_length, 1);
dec               543 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->audio_filter->feed->cb.ts(pva, length, NULL, 0,
dec               544 drivers/media/usb/ttusb-dec/ttusb_dec.c 				&dec->audio_filter->feed->feed.ts, NULL);
dec               548 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dvb_filter_pes2ts(&dec->a_pes2ts, &pva[8], length - 8,
dec               559 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_process_filter(struct ttusb_dec *dec, u8 *packet,
dec               569 drivers/media/usb/ttusb-dec/ttusb_dec.c 	spin_lock_irqsave(&dec->filter_info_list_lock, flags);
dec               570 drivers/media/usb/ttusb-dec/ttusb_dec.c 	for (item = dec->filter_info_list.next; item != &dec->filter_info_list;
dec               578 drivers/media/usb/ttusb-dec/ttusb_dec.c 	spin_unlock_irqrestore(&dec->filter_info_list_lock, flags);
dec               585 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_process_packet(struct ttusb_dec *dec)
dec               591 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if (dec->packet_length % 2) {
dec               596 drivers/media/usb/ttusb-dec/ttusb_dec.c 	for (i = 0; i < dec->packet_length; i += 2)
dec               597 drivers/media/usb/ttusb-dec/ttusb_dec.c 		csum ^= ((dec->packet[i] << 8) + dec->packet[i + 1]);
dec               604 drivers/media/usb/ttusb-dec/ttusb_dec.c 	packet_id = dec->packet[dec->packet_length - 4] << 8;
dec               605 drivers/media/usb/ttusb-dec/ttusb_dec.c 	packet_id += dec->packet[dec->packet_length - 3];
dec               607 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if ((packet_id != dec->next_packet_id) && dec->next_packet_id) {
dec               609 drivers/media/usb/ttusb-dec/ttusb_dec.c 		       __func__, dec->next_packet_id - 1, packet_id);
dec               613 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->next_packet_id = 0x8000;
dec               615 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->next_packet_id = packet_id + 1;
dec               617 drivers/media/usb/ttusb-dec/ttusb_dec.c 	switch (dec->packet_type) {
dec               619 drivers/media/usb/ttusb-dec/ttusb_dec.c 		if (dec->pva_stream_count)
dec               620 drivers/media/usb/ttusb-dec/ttusb_dec.c 			ttusb_dec_process_pva(dec, dec->packet,
dec               621 drivers/media/usb/ttusb-dec/ttusb_dec.c 					      dec->packet_payload_length);
dec               625 drivers/media/usb/ttusb-dec/ttusb_dec.c 		if (dec->filter_stream_count)
dec               626 drivers/media/usb/ttusb-dec/ttusb_dec.c 			ttusb_dec_process_filter(dec, dec->packet,
dec               627 drivers/media/usb/ttusb-dec/ttusb_dec.c 						 dec->packet_payload_length);
dec               642 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_process_urb_frame(struct ttusb_dec *dec, u8 *b,
dec               648 drivers/media/usb/ttusb-dec/ttusb_dec.c 		switch (dec->packet_state) {
dec               654 drivers/media/usb/ttusb-dec/ttusb_dec.c 				dec->packet_state++;
dec               656 drivers/media/usb/ttusb-dec/ttusb_dec.c 				dec->packet_state = 0;
dec               663 drivers/media/usb/ttusb-dec/ttusb_dec.c 				dec->packet_state++;
dec               664 drivers/media/usb/ttusb-dec/ttusb_dec.c 				dec->packet_length = 0;
dec               666 drivers/media/usb/ttusb-dec/ttusb_dec.c 				dec->packet_state = 0;
dec               674 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->packet[dec->packet_length++] = *b++;
dec               676 drivers/media/usb/ttusb-dec/ttusb_dec.c 			if (dec->packet_length == 2) {
dec               677 drivers/media/usb/ttusb-dec/ttusb_dec.c 				if (dec->packet[0] == 'A' &&
dec               678 drivers/media/usb/ttusb-dec/ttusb_dec.c 				    dec->packet[1] == 'V') {
dec               679 drivers/media/usb/ttusb-dec/ttusb_dec.c 					dec->packet_type =
dec               681 drivers/media/usb/ttusb-dec/ttusb_dec.c 					dec->packet_state++;
dec               682 drivers/media/usb/ttusb-dec/ttusb_dec.c 				} else if (dec->packet[0] == 'S') {
dec               683 drivers/media/usb/ttusb-dec/ttusb_dec.c 					dec->packet_type =
dec               685 drivers/media/usb/ttusb-dec/ttusb_dec.c 					dec->packet_state++;
dec               686 drivers/media/usb/ttusb-dec/ttusb_dec.c 				} else if (dec->packet[0] == 0x00) {
dec               687 drivers/media/usb/ttusb-dec/ttusb_dec.c 					dec->packet_type =
dec               689 drivers/media/usb/ttusb-dec/ttusb_dec.c 					dec->packet_payload_length = 2;
dec               690 drivers/media/usb/ttusb-dec/ttusb_dec.c 					dec->packet_state = 7;
dec               694 drivers/media/usb/ttusb-dec/ttusb_dec.c 					       dec->packet[0], dec->packet[1]);
dec               695 drivers/media/usb/ttusb-dec/ttusb_dec.c 					dec->packet_state = 0;
dec               703 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->packet[dec->packet_length++] = *b++;
dec               705 drivers/media/usb/ttusb-dec/ttusb_dec.c 			if (dec->packet_type == TTUSB_DEC_PACKET_PVA &&
dec               706 drivers/media/usb/ttusb-dec/ttusb_dec.c 			    dec->packet_length == 8) {
dec               707 drivers/media/usb/ttusb-dec/ttusb_dec.c 				dec->packet_state++;
dec               708 drivers/media/usb/ttusb-dec/ttusb_dec.c 				dec->packet_payload_length = 8 +
dec               709 drivers/media/usb/ttusb-dec/ttusb_dec.c 					(dec->packet[6] << 8) +
dec               710 drivers/media/usb/ttusb-dec/ttusb_dec.c 					dec->packet[7];
dec               711 drivers/media/usb/ttusb-dec/ttusb_dec.c 			} else if (dec->packet_type ==
dec               713 drivers/media/usb/ttusb-dec/ttusb_dec.c 				   dec->packet_length == 5) {
dec               714 drivers/media/usb/ttusb-dec/ttusb_dec.c 				dec->packet_state++;
dec               715 drivers/media/usb/ttusb-dec/ttusb_dec.c 				dec->packet_payload_length = 5 +
dec               716 drivers/media/usb/ttusb-dec/ttusb_dec.c 					((dec->packet[3] & 0x0f) << 8) +
dec               717 drivers/media/usb/ttusb-dec/ttusb_dec.c 					dec->packet[4];
dec               724 drivers/media/usb/ttusb-dec/ttusb_dec.c 			int remainder = dec->packet_payload_length -
dec               725 drivers/media/usb/ttusb-dec/ttusb_dec.c 					dec->packet_length;
dec               728 drivers/media/usb/ttusb-dec/ttusb_dec.c 				memcpy(dec->packet + dec->packet_length,
dec               730 drivers/media/usb/ttusb-dec/ttusb_dec.c 				dec->packet_length += remainder;
dec               733 drivers/media/usb/ttusb-dec/ttusb_dec.c 				dec->packet_state++;
dec               735 drivers/media/usb/ttusb-dec/ttusb_dec.c 				memcpy(&dec->packet[dec->packet_length],
dec               737 drivers/media/usb/ttusb-dec/ttusb_dec.c 				dec->packet_length += length;
dec               747 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->packet[dec->packet_length++] = *b++;
dec               749 drivers/media/usb/ttusb-dec/ttusb_dec.c 			if (dec->packet_type == TTUSB_DEC_PACKET_SECTION &&
dec               750 drivers/media/usb/ttusb-dec/ttusb_dec.c 			    dec->packet_payload_length % 2)
dec               753 drivers/media/usb/ttusb-dec/ttusb_dec.c 			if (dec->packet_length ==
dec               754 drivers/media/usb/ttusb-dec/ttusb_dec.c 			    dec->packet_payload_length + tail) {
dec               755 drivers/media/usb/ttusb-dec/ttusb_dec.c 				ttusb_dec_process_packet(dec);
dec               756 drivers/media/usb/ttusb-dec/ttusb_dec.c 				dec->packet_state = 0;
dec               766 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->packet_state = 0;
dec               773 drivers/media/usb/ttusb-dec/ttusb_dec.c 	struct ttusb_dec *dec = (struct ttusb_dec *)data;
dec               779 drivers/media/usb/ttusb-dec/ttusb_dec.c 		spin_lock_irqsave(&dec->urb_frame_list_lock, flags);
dec               780 drivers/media/usb/ttusb-dec/ttusb_dec.c 		if ((item = dec->urb_frame_list.next) != &dec->urb_frame_list) {
dec               785 drivers/media/usb/ttusb-dec/ttusb_dec.c 			spin_unlock_irqrestore(&dec->urb_frame_list_lock,
dec               789 drivers/media/usb/ttusb-dec/ttusb_dec.c 		spin_unlock_irqrestore(&dec->urb_frame_list_lock, flags);
dec               791 drivers/media/usb/ttusb-dec/ttusb_dec.c 		ttusb_dec_process_urb_frame(dec, frame->data, frame->length);
dec               798 drivers/media/usb/ttusb-dec/ttusb_dec.c 	struct ttusb_dec *dec = urb->context;
dec               820 drivers/media/usb/ttusb-dec/ttusb_dec.c 				spin_lock_irqsave(&dec->urb_frame_list_lock,
dec               823 drivers/media/usb/ttusb-dec/ttusb_dec.c 					      &dec->urb_frame_list);
dec               824 drivers/media/usb/ttusb-dec/ttusb_dec.c 				spin_unlock_irqrestore(&dec->urb_frame_list_lock,
dec               827 drivers/media/usb/ttusb-dec/ttusb_dec.c 				tasklet_schedule(&dec->urb_tasklet);
dec               837 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if (dec->iso_stream_count)
dec               841 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_setup_urbs(struct ttusb_dec *dec)
dec               849 drivers/media/usb/ttusb-dec/ttusb_dec.c 		struct urb *urb = dec->iso_urb[i];
dec               851 drivers/media/usb/ttusb-dec/ttusb_dec.c 		urb->dev = dec->udev;
dec               852 drivers/media/usb/ttusb-dec/ttusb_dec.c 		urb->context = dec;
dec               854 drivers/media/usb/ttusb-dec/ttusb_dec.c 		urb->pipe = dec->in_pipe;
dec               860 drivers/media/usb/ttusb-dec/ttusb_dec.c 		urb->transfer_buffer = dec->iso_buffer + buffer_offset;
dec               871 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_stop_iso_xfer(struct ttusb_dec *dec)
dec               877 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if (mutex_lock_interruptible(&dec->iso_mutex))
dec               880 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->iso_stream_count--;
dec               882 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if (!dec->iso_stream_count) {
dec               884 drivers/media/usb/ttusb-dec/ttusb_dec.c 			usb_kill_urb(dec->iso_urb[i]);
dec               887 drivers/media/usb/ttusb-dec/ttusb_dec.c 	mutex_unlock(&dec->iso_mutex);
dec               894 drivers/media/usb/ttusb-dec/ttusb_dec.c static int ttusb_dec_set_interface(struct ttusb_dec *dec,
dec               900 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if (interface != dec->interface) {
dec               903 drivers/media/usb/ttusb-dec/ttusb_dec.c 			result = usb_set_interface(dec->udev, 0, 0);
dec               906 drivers/media/usb/ttusb-dec/ttusb_dec.c 			result = ttusb_dec_send_command(dec, 0x80, sizeof(b),
dec               910 drivers/media/usb/ttusb-dec/ttusb_dec.c 			result = usb_set_interface(dec->udev, 0, 8);
dec               913 drivers/media/usb/ttusb-dec/ttusb_dec.c 			result = usb_set_interface(dec->udev, 0, 1);
dec               920 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->interface = interface;
dec               926 drivers/media/usb/ttusb-dec/ttusb_dec.c static int ttusb_dec_start_iso_xfer(struct ttusb_dec *dec)
dec               932 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if (mutex_lock_interruptible(&dec->iso_mutex))
dec               935 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if (!dec->iso_stream_count) {
dec               936 drivers/media/usb/ttusb-dec/ttusb_dec.c 		ttusb_dec_setup_urbs(dec);
dec               938 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->packet_state = 0;
dec               939 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->v_pes_postbytes = 0;
dec               940 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->next_packet_id = 0;
dec               943 drivers/media/usb/ttusb-dec/ttusb_dec.c 			if ((result = usb_submit_urb(dec->iso_urb[i],
dec               949 drivers/media/usb/ttusb-dec/ttusb_dec.c 					usb_kill_urb(dec->iso_urb[i - 1]);
dec               953 drivers/media/usb/ttusb-dec/ttusb_dec.c 				mutex_unlock(&dec->iso_mutex);
dec               959 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->iso_stream_count++;
dec               961 drivers/media/usb/ttusb-dec/ttusb_dec.c 	mutex_unlock(&dec->iso_mutex);
dec               969 drivers/media/usb/ttusb-dec/ttusb_dec.c 	struct ttusb_dec *dec = dvbdmx->priv;
dec               992 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->pid[DMX_PES_PCR] = dvbdmxfeed->pid;
dec               993 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->pid[DMX_PES_VIDEO] = dvbdmxfeed->pid;
dec               994 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->video_filter = dvbdmxfeed->filter;
dec               995 drivers/media/usb/ttusb-dec/ttusb_dec.c 		ttusb_dec_set_pids(dec);
dec              1000 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->pid[DMX_PES_AUDIO] = dvbdmxfeed->pid;
dec              1001 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->audio_filter = dvbdmxfeed->filter;
dec              1002 drivers/media/usb/ttusb-dec/ttusb_dec.c 		ttusb_dec_set_pids(dec);
dec              1006 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->pid[DMX_PES_TELETEXT] = dvbdmxfeed->pid;
dec              1012 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->pid[DMX_PES_PCR] = dvbdmxfeed->pid;
dec              1013 drivers/media/usb/ttusb-dec/ttusb_dec.c 		ttusb_dec_set_pids(dec);
dec              1026 drivers/media/usb/ttusb-dec/ttusb_dec.c 	result = ttusb_dec_send_command(dec, 0x80, sizeof(b0), b0, NULL, NULL);
dec              1030 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->pva_stream_count++;
dec              1031 drivers/media/usb/ttusb-dec/ttusb_dec.c 	return ttusb_dec_start_iso_xfer(dec);
dec              1036 drivers/media/usb/ttusb-dec/ttusb_dec.c 	struct ttusb_dec *dec = dvbdmxfeed->demux->priv;
dec              1060 drivers/media/usb/ttusb-dec/ttusb_dec.c 	result = ttusb_dec_send_command(dec, 0x60, sizeof(b0), b0,
dec              1072 drivers/media/usb/ttusb-dec/ttusb_dec.c 			spin_lock_irqsave(&dec->filter_info_list_lock, flags);
dec              1074 drivers/media/usb/ttusb-dec/ttusb_dec.c 				      &dec->filter_info_list);
dec              1075 drivers/media/usb/ttusb-dec/ttusb_dec.c 			spin_unlock_irqrestore(&dec->filter_info_list_lock,
dec              1080 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->filter_stream_count++;
dec              1081 drivers/media/usb/ttusb-dec/ttusb_dec.c 			return ttusb_dec_start_iso_xfer(dec);
dec              1119 drivers/media/usb/ttusb-dec/ttusb_dec.c 	struct ttusb_dec *dec = dvbdmxfeed->demux->priv;
dec              1122 drivers/media/usb/ttusb-dec/ttusb_dec.c 	ttusb_dec_send_command(dec, 0x81, sizeof(b0), b0, NULL, NULL);
dec              1124 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->pva_stream_count--;
dec              1126 drivers/media/usb/ttusb-dec/ttusb_dec.c 	ttusb_dec_stop_iso_xfer(dec);
dec              1133 drivers/media/usb/ttusb-dec/ttusb_dec.c 	struct ttusb_dec *dec = dvbdmxfeed->demux->priv;
dec              1139 drivers/media/usb/ttusb-dec/ttusb_dec.c 	spin_lock_irqsave(&dec->filter_info_list_lock, flags);
dec              1141 drivers/media/usb/ttusb-dec/ttusb_dec.c 	spin_unlock_irqrestore(&dec->filter_info_list_lock, flags);
dec              1143 drivers/media/usb/ttusb-dec/ttusb_dec.c 	ttusb_dec_send_command(dec, 0x62, sizeof(b0), b0, NULL, NULL);
dec              1145 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->filter_stream_count--;
dec              1147 drivers/media/usb/ttusb-dec/ttusb_dec.c 	ttusb_dec_stop_iso_xfer(dec);
dec              1169 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_free_iso_urbs(struct ttusb_dec *dec)
dec              1176 drivers/media/usb/ttusb-dec/ttusb_dec.c 		usb_free_urb(dec->iso_urb[i]);
dec              1177 drivers/media/usb/ttusb-dec/ttusb_dec.c 	kfree(dec->iso_buffer);
dec              1180 drivers/media/usb/ttusb-dec/ttusb_dec.c static int ttusb_dec_alloc_iso_urbs(struct ttusb_dec *dec)
dec              1186 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->iso_buffer = kcalloc(FRAMES_PER_ISO_BUF * ISO_BUF_COUNT,
dec              1188 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if (!dec->iso_buffer)
dec              1195 drivers/media/usb/ttusb-dec/ttusb_dec.c 			ttusb_dec_free_iso_urbs(dec);
dec              1199 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->iso_urb[i] = urb;
dec              1202 drivers/media/usb/ttusb-dec/ttusb_dec.c 	ttusb_dec_setup_urbs(dec);
dec              1207 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_init_tasklet(struct ttusb_dec *dec)
dec              1209 drivers/media/usb/ttusb-dec/ttusb_dec.c 	spin_lock_init(&dec->urb_frame_list_lock);
dec              1210 drivers/media/usb/ttusb-dec/ttusb_dec.c 	INIT_LIST_HEAD(&dec->urb_frame_list);
dec              1211 drivers/media/usb/ttusb-dec/ttusb_dec.c 	tasklet_init(&dec->urb_tasklet, ttusb_dec_process_urb_frame_list,
dec              1212 drivers/media/usb/ttusb-dec/ttusb_dec.c 		     (unsigned long)dec);
dec              1215 drivers/media/usb/ttusb-dec/ttusb_dec.c static int ttusb_init_rc( struct ttusb_dec *dec)
dec              1222 drivers/media/usb/ttusb-dec/ttusb_dec.c 	usb_make_path(dec->udev, dec->rc_phys, sizeof(dec->rc_phys));
dec              1223 drivers/media/usb/ttusb-dec/ttusb_dec.c 	strlcat(dec->rc_phys, "/input0", sizeof(dec->rc_phys));
dec              1230 drivers/media/usb/ttusb-dec/ttusb_dec.c 	input_dev->phys = dec->rc_phys;
dec              1245 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->rc_input_dev = input_dev;
dec              1246 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if (usb_submit_urb(dec->irq_urb, GFP_KERNEL))
dec              1249 drivers/media/usb/ttusb-dec/ttusb_dec.c 	ttusb_dec_send_command(dec,0xb0,sizeof(b),b,NULL,NULL);
dec              1254 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_init_v_pes(struct ttusb_dec *dec)
dec              1258 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->v_pes[0] = 0x00;
dec              1259 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->v_pes[1] = 0x00;
dec              1260 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->v_pes[2] = 0x01;
dec              1261 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->v_pes[3] = 0xe0;
dec              1264 drivers/media/usb/ttusb-dec/ttusb_dec.c static int ttusb_dec_init_usb(struct ttusb_dec *dec)
dec              1270 drivers/media/usb/ttusb-dec/ttusb_dec.c 	mutex_init(&dec->usb_mutex);
dec              1271 drivers/media/usb/ttusb-dec/ttusb_dec.c 	mutex_init(&dec->iso_mutex);
dec              1273 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->command_pipe = usb_sndbulkpipe(dec->udev, COMMAND_PIPE);
dec              1274 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->result_pipe = usb_rcvbulkpipe(dec->udev, RESULT_PIPE);
dec              1275 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->in_pipe = usb_rcvisocpipe(dec->udev, IN_PIPE);
dec              1276 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->out_pipe = usb_sndisocpipe(dec->udev, OUT_PIPE);
dec              1277 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->irq_pipe = usb_rcvintpipe(dec->udev, IRQ_PIPE);
dec              1280 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->irq_urb = usb_alloc_urb(0, GFP_KERNEL);
dec              1281 drivers/media/usb/ttusb-dec/ttusb_dec.c 		if(!dec->irq_urb) {
dec              1284 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->irq_buffer = usb_alloc_coherent(dec->udev,IRQ_PACKET_SIZE,
dec              1285 drivers/media/usb/ttusb-dec/ttusb_dec.c 					GFP_KERNEL, &dec->irq_dma_handle);
dec              1286 drivers/media/usb/ttusb-dec/ttusb_dec.c 		if(!dec->irq_buffer) {
dec              1287 drivers/media/usb/ttusb-dec/ttusb_dec.c 			usb_free_urb(dec->irq_urb);
dec              1290 drivers/media/usb/ttusb-dec/ttusb_dec.c 		usb_fill_int_urb(dec->irq_urb, dec->udev,dec->irq_pipe,
dec              1291 drivers/media/usb/ttusb-dec/ttusb_dec.c 				 dec->irq_buffer, IRQ_PACKET_SIZE,
dec              1292 drivers/media/usb/ttusb-dec/ttusb_dec.c 				 ttusb_dec_handle_irq, dec, 1);
dec              1293 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->irq_urb->transfer_dma = dec->irq_dma_handle;
dec              1294 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->irq_urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
dec              1297 drivers/media/usb/ttusb-dec/ttusb_dec.c 	result = ttusb_dec_alloc_iso_urbs(dec);
dec              1299 drivers/media/usb/ttusb-dec/ttusb_dec.c 		usb_free_urb(dec->irq_urb);
dec              1300 drivers/media/usb/ttusb-dec/ttusb_dec.c 		usb_free_coherent(dec->udev, IRQ_PACKET_SIZE,
dec              1301 drivers/media/usb/ttusb-dec/ttusb_dec.c 				  dec->irq_buffer, dec->irq_dma_handle);
dec              1306 drivers/media/usb/ttusb-dec/ttusb_dec.c static int ttusb_dec_boot_dsp(struct ttusb_dec *dec)
dec              1326 drivers/media/usb/ttusb-dec/ttusb_dec.c 	result = request_firmware(&fw_entry, dec->firmware_name, &dec->udev->dev);
dec              1329 drivers/media/usb/ttusb-dec/ttusb_dec.c 		       __func__, dec->firmware_name);
dec              1365 drivers/media/usb/ttusb-dec/ttusb_dec.c 	result = ttusb_dec_send_command(dec, 0x41, sizeof(b0), b0, NULL, NULL);
dec              1395 drivers/media/usb/ttusb-dec/ttusb_dec.c 			result = usb_bulk_msg(dec->udev, dec->command_pipe, b,
dec              1400 drivers/media/usb/ttusb-dec/ttusb_dec.c 			result = usb_bulk_msg(dec->udev, dec->command_pipe, b,
dec              1406 drivers/media/usb/ttusb-dec/ttusb_dec.c 	result = ttusb_dec_send_command(dec, 0x43, sizeof(b1), b1, NULL, NULL);
dec              1414 drivers/media/usb/ttusb-dec/ttusb_dec.c static int ttusb_dec_init_stb(struct ttusb_dec *dec)
dec              1421 drivers/media/usb/ttusb-dec/ttusb_dec.c 	result = ttusb_dec_get_stb_state(dec, &mode, &model, &version);
dec              1433 drivers/media/usb/ttusb-dec/ttusb_dec.c 		result = ttusb_dec_boot_dsp(dec);
dec              1443 drivers/media/usb/ttusb-dec/ttusb_dec.c 			ttusb_dec_set_model(dec, TTUSB_DEC3000S);
dec              1447 drivers/media/usb/ttusb-dec/ttusb_dec.c 			ttusb_dec_set_model(dec, TTUSB_DEC2000T);
dec              1450 drivers/media/usb/ttusb-dec/ttusb_dec.c 			ttusb_dec_set_model(dec, TTUSB_DEC2540T);
dec              1458 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->can_playback = 1;
dec              1463 drivers/media/usb/ttusb-dec/ttusb_dec.c static int ttusb_dec_init_dvb(struct ttusb_dec *dec)
dec              1469 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if ((result = dvb_register_adapter(&dec->adapter,
dec              1470 drivers/media/usb/ttusb-dec/ttusb_dec.c 					   dec->model_name, THIS_MODULE,
dec              1471 drivers/media/usb/ttusb-dec/ttusb_dec.c 					   &dec->udev->dev,
dec              1479 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->demux.dmx.capabilities = DMX_TS_FILTERING | DMX_SECTION_FILTERING;
dec              1481 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->demux.priv = (void *)dec;
dec              1482 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->demux.filternum = 31;
dec              1483 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->demux.feednum = 31;
dec              1484 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->demux.start_feed = ttusb_dec_start_feed;
dec              1485 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->demux.stop_feed = ttusb_dec_stop_feed;
dec              1486 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->demux.write_to_decoder = NULL;
dec              1488 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if ((result = dvb_dmx_init(&dec->demux)) < 0) {
dec              1492 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dvb_unregister_adapter(&dec->adapter);
dec              1497 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->dmxdev.filternum = 32;
dec              1498 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->dmxdev.demux = &dec->demux.dmx;
dec              1499 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->dmxdev.capabilities = 0;
dec              1501 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if ((result = dvb_dmxdev_init(&dec->dmxdev, &dec->adapter)) < 0) {
dec              1505 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dvb_dmx_release(&dec->demux);
dec              1506 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dvb_unregister_adapter(&dec->adapter);
dec              1511 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->frontend.source = DMX_FRONTEND_0;
dec              1513 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if ((result = dec->demux.dmx.add_frontend(&dec->demux.dmx,
dec              1514 drivers/media/usb/ttusb-dec/ttusb_dec.c 						  &dec->frontend)) < 0) {
dec              1518 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dvb_dmxdev_release(&dec->dmxdev);
dec              1519 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dvb_dmx_release(&dec->demux);
dec              1520 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dvb_unregister_adapter(&dec->adapter);
dec              1525 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if ((result = dec->demux.dmx.connect_frontend(&dec->demux.dmx,
dec              1526 drivers/media/usb/ttusb-dec/ttusb_dec.c 						      &dec->frontend)) < 0) {
dec              1530 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->demux.dmx.remove_frontend(&dec->demux.dmx, &dec->frontend);
dec              1531 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dvb_dmxdev_release(&dec->dmxdev);
dec              1532 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dvb_dmx_release(&dec->demux);
dec              1533 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dvb_unregister_adapter(&dec->adapter);
dec              1538 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dvb_net_init(&dec->adapter, &dec->dvb_net, &dec->demux.dmx);
dec              1543 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_exit_dvb(struct ttusb_dec *dec)
dec              1547 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dvb_net_release(&dec->dvb_net);
dec              1548 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->demux.dmx.close(&dec->demux.dmx);
dec              1549 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->demux.dmx.remove_frontend(&dec->demux.dmx, &dec->frontend);
dec              1550 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dvb_dmxdev_release(&dec->dmxdev);
dec              1551 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dvb_dmx_release(&dec->demux);
dec              1552 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if (dec->fe) {
dec              1553 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dvb_unregister_frontend(dec->fe);
dec              1554 drivers/media/usb/ttusb-dec/ttusb_dec.c 		if (dec->fe->ops.release)
dec              1555 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->fe->ops.release(dec->fe);
dec              1557 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dvb_unregister_adapter(&dec->adapter);
dec              1560 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_exit_rc(struct ttusb_dec *dec)
dec              1564 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if (dec->rc_input_dev) {
dec              1565 drivers/media/usb/ttusb-dec/ttusb_dec.c 		input_unregister_device(dec->rc_input_dev);
dec              1566 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->rc_input_dev = NULL;
dec              1571 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_exit_usb(struct ttusb_dec *dec)
dec              1582 drivers/media/usb/ttusb-dec/ttusb_dec.c 		if (dec->interface == TTUSB_DEC_INTERFACE_IN)
dec              1583 drivers/media/usb/ttusb-dec/ttusb_dec.c 			usb_kill_urb(dec->irq_urb);
dec              1585 drivers/media/usb/ttusb-dec/ttusb_dec.c 		usb_free_urb(dec->irq_urb);
dec              1587 drivers/media/usb/ttusb-dec/ttusb_dec.c 		usb_free_coherent(dec->udev, IRQ_PACKET_SIZE,
dec              1588 drivers/media/usb/ttusb-dec/ttusb_dec.c 				  dec->irq_buffer, dec->irq_dma_handle);
dec              1591 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->iso_stream_count = 0;
dec              1594 drivers/media/usb/ttusb-dec/ttusb_dec.c 		usb_kill_urb(dec->iso_urb[i]);
dec              1596 drivers/media/usb/ttusb-dec/ttusb_dec.c 	ttusb_dec_free_iso_urbs(dec);
dec              1599 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_exit_tasklet(struct ttusb_dec *dec)
dec              1604 drivers/media/usb/ttusb-dec/ttusb_dec.c 	tasklet_kill(&dec->urb_tasklet);
dec              1606 drivers/media/usb/ttusb-dec/ttusb_dec.c 	while ((item = dec->urb_frame_list.next) != &dec->urb_frame_list) {
dec              1613 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_init_filters(struct ttusb_dec *dec)
dec              1615 drivers/media/usb/ttusb-dec/ttusb_dec.c 	INIT_LIST_HEAD(&dec->filter_info_list);
dec              1616 drivers/media/usb/ttusb-dec/ttusb_dec.c 	spin_lock_init(&dec->filter_info_list_lock);
dec              1619 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_exit_filters(struct ttusb_dec *dec)
dec              1624 drivers/media/usb/ttusb-dec/ttusb_dec.c 	while ((item = dec->filter_info_list.next) != &dec->filter_info_list) {
dec              1635 drivers/media/usb/ttusb-dec/ttusb_dec.c 	struct ttusb_dec* dec = fe->dvb->priv;
dec              1636 drivers/media/usb/ttusb-dec/ttusb_dec.c 	return ttusb_dec_send_command(dec, command, param_length, params, result_length, cmd_result);
dec              1647 drivers/media/usb/ttusb-dec/ttusb_dec.c 	struct ttusb_dec *dec;
dec              1654 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if (!(dec = kzalloc(sizeof(struct ttusb_dec), GFP_KERNEL))) {
dec              1659 drivers/media/usb/ttusb-dec/ttusb_dec.c 	usb_set_intfdata(intf, (void *)dec);
dec              1663 drivers/media/usb/ttusb-dec/ttusb_dec.c 		ttusb_dec_set_model(dec, TTUSB_DEC3000S);
dec              1667 drivers/media/usb/ttusb-dec/ttusb_dec.c 		ttusb_dec_set_model(dec, TTUSB_DEC2000T);
dec              1671 drivers/media/usb/ttusb-dec/ttusb_dec.c 		ttusb_dec_set_model(dec, TTUSB_DEC2540T);
dec              1675 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->udev = udev;
dec              1677 drivers/media/usb/ttusb-dec/ttusb_dec.c 	result = ttusb_dec_init_usb(dec);
dec              1680 drivers/media/usb/ttusb-dec/ttusb_dec.c 	result = ttusb_dec_init_stb(dec);
dec              1683 drivers/media/usb/ttusb-dec/ttusb_dec.c 	result = ttusb_dec_init_dvb(dec);
dec              1687 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->adapter.priv = dec;
dec              1690 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->fe = ttusbdecfe_dvbs_attach(&fe_config);
dec              1695 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->fe = ttusbdecfe_dvbt_attach(&fe_config);
dec              1699 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if (dec->fe == NULL) {
dec              1701 drivers/media/usb/ttusb-dec/ttusb_dec.c 		       le16_to_cpu(dec->udev->descriptor.idVendor),
dec              1702 drivers/media/usb/ttusb-dec/ttusb_dec.c 		       le16_to_cpu(dec->udev->descriptor.idProduct));
dec              1704 drivers/media/usb/ttusb-dec/ttusb_dec.c 		if (dvb_register_frontend(&dec->adapter, dec->fe)) {
dec              1706 drivers/media/usb/ttusb-dec/ttusb_dec.c 			if (dec->fe->ops.release)
dec              1707 drivers/media/usb/ttusb-dec/ttusb_dec.c 				dec->fe->ops.release(dec->fe);
dec              1708 drivers/media/usb/ttusb-dec/ttusb_dec.c 			dec->fe = NULL;
dec              1712 drivers/media/usb/ttusb-dec/ttusb_dec.c 	ttusb_dec_init_v_pes(dec);
dec              1713 drivers/media/usb/ttusb-dec/ttusb_dec.c 	ttusb_dec_init_filters(dec);
dec              1714 drivers/media/usb/ttusb-dec/ttusb_dec.c 	ttusb_dec_init_tasklet(dec);
dec              1716 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->active = 1;
dec              1718 drivers/media/usb/ttusb-dec/ttusb_dec.c 	ttusb_dec_set_interface(dec, TTUSB_DEC_INTERFACE_IN);
dec              1721 drivers/media/usb/ttusb-dec/ttusb_dec.c 		ttusb_init_rc(dec);
dec              1725 drivers/media/usb/ttusb-dec/ttusb_dec.c 	ttusb_dec_exit_usb(dec);
dec              1727 drivers/media/usb/ttusb-dec/ttusb_dec.c 	kfree(dec);
dec              1733 drivers/media/usb/ttusb-dec/ttusb_dec.c 	struct ttusb_dec *dec = usb_get_intfdata(intf);
dec              1739 drivers/media/usb/ttusb-dec/ttusb_dec.c 	if (dec->active) {
dec              1740 drivers/media/usb/ttusb-dec/ttusb_dec.c 		ttusb_dec_exit_tasklet(dec);
dec              1741 drivers/media/usb/ttusb-dec/ttusb_dec.c 		ttusb_dec_exit_filters(dec);
dec              1743 drivers/media/usb/ttusb-dec/ttusb_dec.c 			ttusb_dec_exit_rc(dec);
dec              1744 drivers/media/usb/ttusb-dec/ttusb_dec.c 		ttusb_dec_exit_usb(dec);
dec              1745 drivers/media/usb/ttusb-dec/ttusb_dec.c 		ttusb_dec_exit_dvb(dec);
dec              1748 drivers/media/usb/ttusb-dec/ttusb_dec.c 	kfree(dec);
dec              1751 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_set_model(struct ttusb_dec *dec,
dec              1754 drivers/media/usb/ttusb-dec/ttusb_dec.c 	dec->model = model;
dec              1758 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->model_name = "DEC2000-t";
dec              1759 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->firmware_name = "dvb-ttusb-dec-2000t.fw";
dec              1763 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->model_name = "DEC2540-t";
dec              1764 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->firmware_name = "dvb-ttusb-dec-2540t.fw";
dec              1768 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->model_name = "DEC3000-s";
dec              1769 drivers/media/usb/ttusb-dec/ttusb_dec.c 		dec->firmware_name = "dvb-ttusb-dec-3000s.fw";
dec               136 drivers/mtd/nand/raw/mtk_ecc.c 	u32 dec, enc;
dec               138 drivers/mtd/nand/raw/mtk_ecc.c 	dec = readw(ecc->regs + ecc->caps->ecc_regs[ECC_DECIRQ_STA])
dec               140 drivers/mtd/nand/raw/mtk_ecc.c 	if (dec) {
dec               141 drivers/mtd/nand/raw/mtk_ecc.c 		dec = readw(ecc->regs + ecc->caps->ecc_regs[ECC_DECDONE]);
dec               142 drivers/mtd/nand/raw/mtk_ecc.c 		if (dec & ecc->sectors) {
dec               364 drivers/s390/cio/qdio.h #define sub_buf(bufnr, dec) \
dec               365 drivers/s390/cio/qdio.h 	((bufnr - dec) & QDIO_MAX_BUFFERS_MASK)
dec               673 drivers/usb/dwc2/hcd.h static inline u16 dwc2_frame_num_dec(u16 frame, u16 dec)
dec               675 drivers/usb/dwc2/hcd.h 	return (frame + HFNUM_MAX_FRNUM + 1 - dec) & HFNUM_MAX_FRNUM;
dec              2861 fs/btrfs/ctree.c 			int dec = 0;
dec              2863 fs/btrfs/ctree.c 				dec = 1;
dec              2895 fs/btrfs/ctree.c 				if (dec)
dec              3028 fs/btrfs/ctree.c 			int dec = 0;
dec              3030 fs/btrfs/ctree.c 				dec = 1;
dec              3037 fs/btrfs/ctree.c 				if (dec)
dec               601 fs/f2fs/gc.c   		int dec = (node_ofs - 4) / (NIDS_PER_BLOCK + 1);
dec               602 fs/f2fs/gc.c   		bidx = node_ofs - 2 - dec;
dec               604 fs/f2fs/gc.c   		int dec = (node_ofs - indirect_blks - 3) / (NIDS_PER_BLOCK + 1);
dec               605 fs/f2fs/gc.c   		bidx = node_ofs - 5 - dec;
dec                41 fs/unicode/utf8-selftest.c 	unsigned char dec[10];
dec                47 fs/unicode/utf8-selftest.c 		.dec = "aBba",
dec                55 fs/unicode/utf8-selftest.c 	       .dec = {0xc2, 0xbc, 0x00},
dec                61 fs/unicode/utf8-selftest.c 		.dec = {0x61, 0xcc, 0x88, 0x00},
dec                67 fs/unicode/utf8-selftest.c 		.dec = {0xC7, 0x89, 0x00},
dec                72 fs/unicode/utf8-selftest.c 		.dec = {0xC2, 0xB7, 0x00}
dec                79 fs/unicode/utf8-selftest.c 		.dec = {0x41, 0xcc, 0xa8, 0xcc, 0x81, 0x0},
dec                87 fs/unicode/utf8-selftest.c 		.dec = {0x61, 0xCC, 0xA8, 0xcc, 0x88, 0x00},
dec               178 fs/unicode/utf8-selftest.c 		int nlen = strlen(nfdi_test_data[i].dec);
dec               189 fs/unicode/utf8-selftest.c 			test_f((c == nfdi_test_data[i].dec[j]),
dec               191 fs/unicode/utf8-selftest.c 			       c, nfdi_test_data[i].dec[j]);
dec               249 fs/unicode/utf8-selftest.c 		const struct qstr s2 = {.name = nfdi_test_data[i].dec,
dec               250 fs/unicode/utf8-selftest.c 					.len = sizeof(nfdi_test_data[i].dec)};
dec              1168 include/linux/atomic-fallback.h 	int dec, c = atomic_read(v);
dec              1171 include/linux/atomic-fallback.h 		dec = c - 1;
dec              1172 include/linux/atomic-fallback.h 		if (unlikely(dec < 0))
dec              1174 include/linux/atomic-fallback.h 	} while (!atomic_try_cmpxchg(v, &c, dec));
dec              1176 include/linux/atomic-fallback.h 	return dec;
dec              2278 include/linux/atomic-fallback.h 	s64 dec, c = atomic64_read(v);
dec              2281 include/linux/atomic-fallback.h 		dec = c - 1;
dec              2282 include/linux/atomic-fallback.h 		if (unlikely(dec < 0))
dec              2284 include/linux/atomic-fallback.h 	} while (!atomic64_try_cmpxchg(v, &c, dec));
dec              2286 include/linux/atomic-fallback.h 	return dec;
dec              4404 kernel/events/core.c 	bool dec = false;
dec              4410 kernel/events/core.c 		dec = true;
dec              4422 kernel/events/core.c 		dec = true;
dec              4426 kernel/events/core.c 		dec = true;
dec              4428 kernel/events/core.c 		dec = true;
dec              4434 kernel/events/core.c 	if (dec) {
dec               127 kernel/sched/fair.c static inline void update_load_sub(struct load_weight *lw, unsigned long dec)
dec               129 kernel/sched/fair.c 	lw->weight -= dec;
dec               216 kernel/ucount.c 		int dec = atomic_dec_if_positive(&iter->ucount[type]);
dec               217 kernel/ucount.c 		WARN_ON_ONCE(dec < 0);
dec               589 net/caif/cfctrl.c 	static int dec;
dec               594 net/caif/cfctrl.c 		if (!dec) {
dec               599 net/caif/cfctrl.c 		dec = 1;
dec               607 net/caif/cfctrl.c 			dec = 0;
dec               404 net/ipv4/tcp_nv.c 				int dec;
dec               406 net/ipv4/tcp_nv.c 				dec = max(2U, ((tp->snd_cwnd - max_win) *
dec               408 net/ipv4/tcp_nv.c 				tp->snd_cwnd -= dec;
dec               158 net/mpls/af_mpls.c 	struct mpls_entry_decoded dec;
dec               173 net/mpls/af_mpls.c 		dec = mpls_entry_decode(hdr);
dec               178 net/mpls/af_mpls.c 		if (likely(dec.label >= MPLS_LABEL_FIRST_UNRESERVED)) {
dec               179 net/mpls/af_mpls.c 			hash = jhash_1word(dec.label, hash);
dec               189 net/mpls/af_mpls.c 		} else if (dec.label == MPLS_LABEL_ENTROPY) {
dec               193 net/mpls/af_mpls.c 		if (!dec.bos)
dec               270 net/mpls/af_mpls.c 			struct sk_buff *skb, struct mpls_entry_decoded dec)
dec               305 net/mpls/af_mpls.c 			new_ttl = dec.ttl;
dec               327 net/mpls/af_mpls.c 			hdr6->hop_limit = dec.ttl;
dec               348 net/mpls/af_mpls.c 	struct mpls_entry_decoded dec;
dec               382 net/mpls/af_mpls.c 	dec = mpls_entry_decode(hdr);
dec               384 net/mpls/af_mpls.c 	rt = mpls_route_input_rcu(net, dec.label);
dec               406 net/mpls/af_mpls.c 	if (dec.ttl <= 1)
dec               408 net/mpls/af_mpls.c 	dec.ttl -= 1;
dec               432 net/mpls/af_mpls.c 	if (unlikely(!new_header_size && dec.bos)) {
dec               434 net/mpls/af_mpls.c 		if (!mpls_egress(dev_net(out_dev), rt, skb, dec))
dec               443 net/mpls/af_mpls.c 		bos = dec.bos;
dec               446 net/mpls/af_mpls.c 						   dec.ttl, 0, bos);
dec              1732 net/mpls/af_mpls.c 		struct mpls_entry_decoded dec;
dec              1733 net/mpls/af_mpls.c 		dec = mpls_entry_decode(nla_label + i);
dec              1738 net/mpls/af_mpls.c 		if (dec.ttl) {
dec              1744 net/mpls/af_mpls.c 		if (dec.tc) {
dec              1750 net/mpls/af_mpls.c 		if (dec.bos != bos) {
dec              1762 net/mpls/af_mpls.c 		switch (dec.label) {
dec              1773 net/mpls/af_mpls.c 		label[i] = dec.label;
dec               233 scripts/mod/file2alias.c 	unsigned long long c, dec = 0;
dec               247 scripts/mod/file2alias.c 		dec += c;
dec               251 scripts/mod/file2alias.c 	dec += inc;
dec               258 scripts/mod/file2alias.c 		c = (dec / c) % 10;
dec              2733 sound/soc/codecs/wcd9335.c 	char *dec;
dec              2750 sound/soc/codecs/wcd9335.c 	dec = strpbrk(dec_adc_mux_name, "012345678");
dec              2751 sound/soc/codecs/wcd9335.c 	if (!dec) {
dec              2758 sound/soc/codecs/wcd9335.c 	ret = kstrtouint(dec, 10, &decimator);
dec               380 sound/soc/codecs/wcd9335.h #define WCD9335_CDC_TX_PATH_CTL(dec)	WCD9335_REG(0xa, (0x31 + dec * 0x10))
dec               228 tools/arch/powerpc/include/uapi/asm/kvm.h 			__u32 dec;	/* KVM_SREGS_E_UPDATE_DEC */