| /linux/drivers/media/usb/ttusb-dec/ |
| H A D | ttusb_dec.c | 246 static void ttusb_dec_set_model(struct ttusb_dec *dec, 251 struct ttusb_dec *dec = urb->context; in ttusb_dec_handle_irq() local 252 char *buffer = dec->irq_buffer; in ttusb_dec_handle_irq() 288 input_report_key(dec->rc_input_dev, rc_keys[index - 1], 1); in ttusb_dec_handle_irq() 289 input_sync(dec->rc_input_dev); in ttusb_dec_handle_irq() 290 input_report_key(dec->rc_input_dev, rc_keys[index - 1], 0); in ttusb_dec_handle_irq() 291 input_sync(dec->rc_input_dev); in ttusb_dec_handle_irq() 315 static int ttusb_dec_send_command(struct ttusb_dec *dec, const u8 command, in ttusb_dec_send_command() argument 328 result = mutex_lock_interruptible(&dec->usb_mutex); in ttusb_dec_send_command() 335 b[1] = ++dec->trans_count; in ttusb_dec_send_command() [all …]
|
| /linux/drivers/accel/habanalabs/common/ |
| H A D | decoder.c | 48 struct hl_dec *dec = container_of(work, struct hl_dec, abnrm_intr_work); in dec_abnrm_intr_work() local 49 struct hl_device *hdev = dec->hdev; in dec_abnrm_intr_work() 53 irq_status = RREG32(dec->base_addr + VCMD_IRQ_STATUS_OFFSET); in dec_abnrm_intr_work() 55 dev_err(hdev->dev, "Decoder abnormal interrupt %#x, core %d\n", irq_status, dec->core_id); in dec_abnrm_intr_work() 60 WREG32(dec->base_addr + VCMD_IRQ_STATUS_OFFSET, irq_status); in dec_abnrm_intr_work() 63 RREG32(dec->base_addr + VCMD_IRQ_STATUS_OFFSET); in dec_abnrm_intr_work() 88 kfree(hdev->dec); in hl_dec_fini() 94 struct hl_dec *dec; in hl_dec_init() local 101 hdev->dec = kcalloc(prop->max_dec, sizeof(struct hl_dec), GFP_KERNEL); in hl_dec_init() 102 if (!hdev->dec) in hl_dec_init() [all …]
|
| /linux/drivers/media/i2c/ |
| H A D | tw9906.c | 87 struct tw9906 *dec = to_state(sd); in tw9906_s_std() local 105 dec->norm = norm; in tw9906_s_std() 111 struct tw9906 *dec = container_of(ctrl->handler, struct tw9906, hdl); in tw9906_s_ctrl() local 112 struct v4l2_subdev *sd = &dec->sd; in tw9906_s_ctrl() 132 struct tw9906 *dec = to_state(sd); in tw9906_log_status() local 133 bool is_60hz = dec->norm & V4L2_STD_525_60; in tw9906_log_status() 162 struct tw9906 *dec; in tw9906_probe() local 173 dec = devm_kzalloc(&client->dev, sizeof(*dec), GFP_KERNEL); in tw9906_probe() 174 if (dec == NULL) in tw9906_probe() 176 sd = &dec->sd; in tw9906_probe() [all …]
|
| H A D | tw9903.c | 116 struct tw9903 *dec = to_state(sd); in tw9903_s_std() local 134 dec->norm = norm; in tw9903_s_std() 141 struct tw9903 *dec = container_of(ctrl->handler, struct tw9903, hdl); in tw9903_s_ctrl() local 142 struct v4l2_subdev *sd = &dec->sd; in tw9903_s_ctrl() 162 struct tw9903 *dec = to_state(sd); in tw9903_log_status() local 163 bool is_60hz = dec->norm & V4L2_STD_525_60; in tw9903_log_status() 194 struct tw9903 *dec; in tw9903_probe() local 205 dec = devm_kzalloc(&client->dev, sizeof(*dec), GFP_KERNEL); in tw9903_probe() 206 if (dec == NULL) in tw9903_probe() 208 sd = &dec->sd; in tw9903_probe() [all …]
|
| H A D | tw2804.c | 252 struct tw2804 *dec = to_state(sd); in tw2804_s_std() local 269 write_regs(client, regs, dec->channel); in tw2804_s_std() 270 dec->norm = norm; in tw2804_s_std() 277 struct tw2804 *dec = to_state(sd); in tw2804_s_video_routing() local 281 if (config && config - 1 != dec->channel) { in tw2804_s_video_routing() 287 dec->channel = config - 1; in tw2804_s_video_routing() 289 dec->channel); in tw2804_s_video_routing() 290 if (dec->channel == 0 && in tw2804_s_video_routing() 296 if (write_regs(client, channel_registers, dec->channel) < 0) { in tw2804_s_video_routing() 299 dec->channel); in tw2804_s_video_routing() [all …]
|
| /linux/scripts/atomic/fallbacks/ |
| H A D | dec_if_positive | 2 ${int} dec, c = raw_${atomic}_read(v); 5 dec = c - 1; 6 if (unlikely(dec < 0)) 8 } while (!raw_${atomic}_try_cmpxchg(v, &c, dec)); 10 return dec;
|
| /linux/kernel/ |
| H A D | ucount.c | 241 long dec = atomic_long_dec_if_positive(&iter->ucount[type]); in dec_ucount() local 242 WARN_ON_ONCE(dec < 0); in dec_ucount() 269 long dec = atomic_long_sub_return(v, &iter->rlimit[type]); in dec_rlimit_ucounts() local 270 WARN_ON_ONCE(dec < 0); in dec_rlimit_ucounts() 272 new = dec; in dec_rlimit_ucounts() 282 long dec = atomic_long_sub_return(1, &iter->rlimit[type]); in do_dec_rlimit_put_ucounts() local 283 WARN_ON_ONCE(dec < 0); in do_dec_rlimit_put_ucounts() 285 if (dec == 0) in do_dec_rlimit_put_ucounts() 301 long dec, ret = 0; in inc_rlimit_get_ucounts() local 322 dec = atomic_long_sub_return(1, &iter->rlimit[type]); in inc_rlimit_get_ucounts() [all …]
|
| /linux/drivers/media/platform/mediatek/vcodec/decoder/ |
| H A D | Makefile | 3 obj-$(CONFIG_VIDEO_MEDIATEK_VCODEC) += mtk-vcodec-dec.o \ 4 mtk-vcodec-dec-hw.o 6 mtk-vcodec-dec-y := vdec/vdec_h264_if.o \ 25 mtk-vcodec-dec-hw-y := mtk_vcodec_dec_hw.o
|
| /linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
| H A D | vdec_vp8_if.c | 84 struct vdec_vp8_dec_info dec; member 293 uint64_t prev_y_dma = inst->vsi->dec.prev_y_dma; in vp8_dec_finish() 317 if (inst->vsi->dec.show_frame) { in vp8_dec_finish() 374 inst->vsi->dec.working_buf_dma = (uint64_t)mem->dma_addr; in alloc_working_buf() 385 inst->vsi->dec.working_buf_dma = 0; in free_working_buf() 431 struct vdec_vp8_dec_info *dec = &inst->vsi->dec; in vdec_vp8_decode() local 452 dec->bs_dma = bs->dma_addr; in vdec_vp8_decode() 453 dec->bs_sz = bs->size; in vdec_vp8_decode() 454 dec->cur_y_fb_dma = y_fb_dma; in vdec_vp8_decode() 455 dec->cur_c_fb_dma = c_fb_dma; in vdec_vp8_decode() [all …]
|
| H A D | vdec_h264_if.c | 111 struct vdec_h264_dec_info dec; member 264 *dpb_sz = inst->vsi->dec.dpb_sz; in get_dpb_size() 375 inst->vsi->dec.bs_dma = (uint64_t)bs->dma_addr; in vdec_h264_decode() 376 inst->vsi->dec.y_fb_dma = y_fb_dma; in vdec_h264_decode() 377 inst->vsi->dec.c_fb_dma = c_fb_dma; in vdec_h264_decode() 378 inst->vsi->dec.vdec_fb_va = vdec_fb_va; in vdec_h264_decode() 391 *res_chg = inst->vsi->dec.resolution_changed; in vdec_h264_decode() 398 if (inst->vsi->dec.realloc_mv_buf) { in vdec_h264_decode()
|
| /linux/drivers/md/ |
| H A D | dm-io-rewind.c | 79 unsigned int dec) in dm_bio_crypt_dun_decrement() argument 83 for (i = 0; dec && i < BLK_CRYPTO_DUN_ARRAY_SIZE; i++) { in dm_bio_crypt_dun_decrement() 86 dun[i] -= dec; in dm_bio_crypt_dun_decrement() 88 dec = 1; in dm_bio_crypt_dun_decrement() 90 dec = 0; in dm_bio_crypt_dun_decrement()
|
| /linux/tools/perf/tests/ |
| H A D | api-io.c | 221 __u64 dec; in do_test_get_dec() local 226 ch = io__get_dec(&io, &dec); in do_test_get_dec() 227 EXPECT_EQUAL64(dec, val1); in do_test_get_dec() 230 ch = io__get_dec(&io, &dec); in do_test_get_dec() 231 EXPECT_EQUAL64(dec, val2); in do_test_get_dec() 234 ch = io__get_dec(&io, &dec); in do_test_get_dec() 235 EXPECT_EQUAL64(dec, val3); in do_test_get_dec()
|
| /linux/drivers/media/rc/img-ir/ |
| H A D | img-ir-hw.c | 627 const struct img_ir_decoder *dec) in img_ir_decoder_compatible() argument 632 ct = dec->control.code_type; in img_ir_decoder_compatible() 651 const struct img_ir_decoder *dec = *decp; in img_ir_allowed_protos() local 652 if (img_ir_decoder_compatible(priv, dec)) in img_ir_allowed_protos() 653 protos |= dec->type; in img_ir_allowed_protos() 673 const struct img_ir_decoder *dec = *decp; in img_ir_change_protocol() local 674 if (!img_ir_decoder_compatible(priv, dec)) in img_ir_change_protocol() 676 if (*ir_type & dec->type) { in img_ir_change_protocol() 677 *ir_type &= dec->type; in img_ir_change_protocol() 678 img_ir_set_decoder(priv, dec, *ir_type); in img_ir_change_protocol() [all …]
|
| /linux/arch/powerpc/kvm/ |
| H A D | emulate.c | 31 pr_debug("mtDEC: %lx\n", vcpu->arch.dec); in kvmppc_emulate_dec() 41 if (vcpu->arch.dec == 0) in kvmppc_emulate_dec() 51 dec_time = vcpu->arch.dec; in kvmppc_emulate_dec() 68 if (vcpu->arch.dec < jd) in kvmppc_get_dec() 72 return vcpu->arch.dec - jd; in kvmppc_get_dec() 94 vcpu->arch.dec = (u32) spr_val; in kvmppc_emulate_mtspr()
|
| H A D | book3s_hv_builtin.c | 588 long int dec = mfspr(SPRN_DEC); in kvmppc_guest_entry_inject_int() local 590 dec = (int) dec; in kvmppc_guest_entry_inject_int() 591 if (dec < 0) in kvmppc_guest_entry_inject_int()
|
| /linux/arch/mips/dec/ |
| H A D | Platform | 5 -I$(srctree)/arch/mips/include/asm/mach-dec 6 libs-$(CONFIG_MACH_DECSTATION) += arch/mips/dec/prom/
|
| /linux/arch/powerpc/kernel/ |
| H A D | time.c | 832 struct clock_event_device *dec = &per_cpu(decrementers, cpu); in register_decrementer_clockevent() local 834 *dec = decrementer_clockevent; in register_decrementer_clockevent() 835 dec->cpumask = cpumask_of(cpu); in register_decrementer_clockevent() 837 clockevents_config_and_register(dec, ppc_tb_freq, 2, decrementer_max); in register_decrementer_clockevent() 840 dec->name, dec->mult, dec->shift, cpu); in register_decrementer_clockevent() 843 decrementer_clockevent.mult = dec->mult; in register_decrementer_clockevent() 844 decrementer_clockevent.shift = dec->shift; in register_decrementer_clockevent()
|
| /linux/drivers/media/platform/mediatek/jpeg/ |
| H A D | Makefile | 4 mtk-jpeg-dec-hw.o 10 mtk-jpeg-dec-hw-y := mtk_jpeg_dec_hw.o
|
| /linux/arch/csky/include/asm/ |
| H A D | atomic.h | 179 int dec, tmp; in arch_atomic_dec_if_positive() local 190 : "=&r" (dec), "=&r" (tmp) in arch_atomic_dec_if_positive() 194 return dec - 1; in arch_atomic_dec_if_positive()
|
| /linux/drivers/media/platform/qcom/venus/ |
| H A D | Makefile | 10 venus-dec-objs += vdec.o vdec_ctrls.o 14 obj-$(CONFIG_VIDEO_QCOM_VENUS) += venus-dec.o
|
| /linux/drivers/media/pci/cx25821/ |
| H A D | cx25821-medusa-video.c | 212 static int medusa_PALCombInit(struct cx25821_dev *dev, int dec) in medusa_PALCombInit() argument 219 COMB_2D_HFS_CFG + (0x200 * dec), 0x20002861); in medusa_PALCombInit() 221 COMB_2D_HFD_CFG + (0x200 * dec), 0x20002861); in medusa_PALCombInit() 223 COMB_2D_LF_CFG + (0x200 * dec), 0x200A1023); in medusa_PALCombInit() 227 COMB_FLAT_THRESH_CTRL + (0x200 * dec), &tmp); in medusa_PALCombInit() 230 COMB_FLAT_THRESH_CTRL + (0x200 * dec), value); in medusa_PALCombInit() 234 COMB_2D_BLEND + (0x200 * dec), 0x210F0F0F); in medusa_PALCombInit() 238 COMB_MISC_CTRL + (0x200 * dec), 0x41120A7F); in medusa_PALCombInit()
|
| /linux/arch/x86/lib/ |
| H A D | checksum_32.S | 61 dec %ecx 100 dec %ecx 109 dec %edx 167 dec %ecx 227 dec %ecx
|
| /linux/net/mpls/ |
| H A D | af_mpls.c | 167 struct mpls_entry_decoded dec; in mpls_multipath_hash() 182 dec = mpls_entry_decode(hdr); in mpls_multipath_hash() 187 if (likely(dec.label >= MPLS_LABEL_FIRST_UNRESERVED)) { in mpls_multipath_hash() 188 hash = jhash_1word(dec.label, hash); in mpls_multipath_hash() 198 } else if (dec.label == MPLS_LABEL_ENTROPY) { in mpls_multipath_hash() 202 if (!dec.bos) in mpls_multipath_hash() 279 struct sk_buff *skb, struct mpls_entry_decoded dec) in mpls_egress() 314 new_ttl = dec.ttl; in mpls_egress() 336 hdr6->hop_limit = dec.ttl; in mpls_egress() 357 struct mpls_entry_decoded dec; in mpls_forward() 159 struct mpls_entry_decoded dec; mpls_multipath_hash() local 271 mpls_egress(struct net * net,struct mpls_route * rt,struct sk_buff * skb,struct mpls_entry_decoded dec) mpls_egress() argument 349 struct mpls_entry_decoded dec; mpls_forward() local 1740 struct mpls_entry_decoded dec; nla_get_labels() local [all...] |
| /linux/drivers/iio/imu/ |
| H A D | adis16550.c | 421 u16 dec = 0; in adis16550_get_freq() local 436 ret = __adis_read_reg_16(&st->adis, ADIS16550_REG_DEC_RATE, &dec); in adis16550_get_freq() 439 *freq = DIV_ROUND_CLOSEST(sample_rate, dec + 1); in adis16550_get_freq() 446 u16 dec; in adis16550_set_freq_hz() local 482 dec = DIV_ROUND_CLOSEST(sample_rate, freq_hz); in adis16550_set_freq_hz() 484 if (dec) in adis16550_set_freq_hz() 485 dec--; in adis16550_set_freq_hz() 487 dec = min(dec, st->info->max_dec); in adis16550_set_freq_hz() 489 return __adis_write_reg_16(&st->adis, ADIS16550_REG_DEC_RATE, dec); in adis16550_set_freq_hz()
|
| /linux/drivers/mtd/nand/ |
| H A D | ecc-mtk.c | 144 u32 dec, enc; in mtk_ecc_irq() local 146 dec = readw(ecc->regs + ecc->caps->ecc_regs[ECC_DECIRQ_STA]) in mtk_ecc_irq() 148 if (dec) { in mtk_ecc_irq() 149 dec = readw(ecc->regs + ecc->caps->ecc_regs[ECC_DECDONE]); in mtk_ecc_irq() 150 if (dec & ecc->sectors) { in mtk_ecc_irq()
|