Home
last modified time | relevance | path

Searched refs:dec (Results 1 – 25 of 67) sorted by relevance

123

/drivers/media/usb/ttusb-dec/
Dttusb_dec.c245 static void ttusb_dec_set_model(struct ttusb_dec *dec,
250 struct ttusb_dec *dec = urb->context; in ttusb_dec_handle_irq() local
251 char *buffer = dec->irq_buffer; in ttusb_dec_handle_irq()
287 input_report_key(dec->rc_input_dev, rc_keys[index - 1], 1); in ttusb_dec_handle_irq()
288 input_sync(dec->rc_input_dev); in ttusb_dec_handle_irq()
289 input_report_key(dec->rc_input_dev, rc_keys[index - 1], 0); in ttusb_dec_handle_irq()
290 input_sync(dec->rc_input_dev); in ttusb_dec_handle_irq()
314 static int ttusb_dec_send_command(struct ttusb_dec *dec, const u8 command, in ttusb_dec_send_command() argument
327 result = mutex_lock_interruptible(&dec->usb_mutex); in ttusb_dec_send_command()
334 b[1] = ++dec->trans_count; in ttusb_dec_send_command()
[all …]
/drivers/misc/habanalabs/common/
Ddecoder.c72 struct hl_dec *dec = container_of(work, struct hl_dec, completion_abnrm_work); in dec_completion_abnrm() local
73 struct hl_device *hdev = dec->hdev; in dec_completion_abnrm()
75 dec_error_intr_work(hdev, dec->base_addr, dec->core_id); in dec_completion_abnrm()
80 kfree(hdev->dec); in hl_dec_fini()
86 struct hl_dec *dec; in hl_dec_init() local
93 hdev->dec = kcalloc(prop->max_dec, sizeof(struct hl_dec), GFP_KERNEL); in hl_dec_init()
94 if (!hdev->dec) in hl_dec_init()
98 dec = hdev->dec + j; in hl_dec_init()
100 dec->hdev = hdev; in hl_dec_init()
101 INIT_WORK(&dec->completion_abnrm_work, dec_completion_abnrm); in hl_dec_init()
[all …]
/drivers/media/i2c/
Dtw9906.c87 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()
163 struct tw9906 *dec; in tw9906_probe() local
174 dec = devm_kzalloc(&client->dev, sizeof(*dec), GFP_KERNEL); in tw9906_probe()
175 if (dec == NULL) in tw9906_probe()
177 sd = &dec->sd; in tw9906_probe()
[all …]
Dtw9903.c116 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()
195 struct tw9903 *dec; in tw9903_probe() local
206 dec = devm_kzalloc(&client->dev, sizeof(*dec), GFP_KERNEL); in tw9903_probe()
207 if (dec == NULL) in tw9903_probe()
209 sd = &dec->sd; in tw9903_probe()
[all …]
Dtw2804.c252 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 …]
/drivers/media/platform/mediatek/vcodec/vdec/
Dvdec_vp8_req_if.c83 struct vdec_vp8_slice_info dec; member
159 inst->vsi->dec.seg_id_buf_dma = (u64)mem->dma_addr; in vdec_vp8_slice_alloc_working_buf()
168 inst->vsi->dec.wrap_y_dma = (u64)mem->dma_addr; in vdec_vp8_slice_alloc_working_buf()
177 inst->vsi->dec.wrap_c_dma = (u64)mem->dma_addr; in vdec_vp8_slice_alloc_working_buf()
186 inst->vsi->dec.vld_wrapper_dma = (u64)mem->dma_addr; in vdec_vp8_slice_alloc_working_buf()
198 inst->vsi->dec.seg_id_buf_dma = 0; in vdec_vp8_slice_free_working_buf()
203 inst->vsi->dec.wrap_y_dma = 0; in vdec_vp8_slice_free_working_buf()
208 inst->vsi->dec.wrap_c_dma = 0; in vdec_vp8_slice_free_working_buf()
213 inst->vsi->dec.vld_wrapper_dma = 0; in vdec_vp8_slice_free_working_buf()
270 inst->vsi->dec.frame_header_type = frame_header->flags >> 1; in vdec_vp8_slice_get_decode_parameters()
[all …]
Dvdec_h264_req_multi_if.c108 struct vdec_h264_slice_info dec; member
491 inst->vsi_core->dec.y_fb_dma = y_fb_dma; in vdec_h264_slice_core_decode()
492 inst->vsi_core->dec.c_fb_dma = c_fb_dma; in vdec_h264_slice_core_decode()
493 inst->vsi_core->dec.vdec_fb_va = vdec_fb_va; in vdec_h264_slice_core_decode()
494 inst->vsi_core->dec.nal_info = share_info->nal_info; in vdec_h264_slice_core_decode()
529 inst->vsi_core->dec.timeout = !!timeout; in vdec_h264_slice_core_decode()
534 inst->vsi_core->dec.crc[0], inst->vsi_core->dec.crc[1], in vdec_h264_slice_core_decode()
535 inst->vsi_core->dec.crc[2], inst->vsi_core->dec.crc[3], in vdec_h264_slice_core_decode()
536 inst->vsi_core->dec.crc[4], inst->vsi_core->dec.crc[5], in vdec_h264_slice_core_decode()
537 inst->vsi_core->dec.crc[6], inst->vsi_core->dec.crc[7]); in vdec_h264_slice_core_decode()
[all …]
Dvdec_h264_req_if.c68 struct vdec_h264_dec_info dec; member
231 inst->vsi_ctx.dec.cap_num_planes = in get_pic_info()
243 inst->vsi_ctx.dec.resolution_changed = true; in get_pic_info()
246 inst->vsi_ctx.dec.realloc_mv_buf = true; in get_pic_info()
249 inst->vsi_ctx.dec.resolution_changed, in get_pic_info()
250 inst->vsi_ctx.dec.realloc_mv_buf, in get_pic_info()
270 *dpb_sz = inst->vsi_ctx.dec.dpb_sz; in get_dpb_size()
295 inst->vsi_ctx.dec.resolution_changed = true; in vdec_h264_slice_init()
296 inst->vsi_ctx.dec.realloc_mv_buf = true; in vdec_h264_slice_init()
364 inst->vsi_ctx.dec.bs_dma = (uint64_t)bs->dma_addr; in vdec_h264_slice_decode()
[all …]
Dvdec_vp8_if.c85 struct vdec_vp8_dec_info dec; member
296 uint64_t prev_y_dma = inst->vsi->dec.prev_y_dma; in vp8_dec_finish()
320 if (inst->vsi->dec.show_frame) { in vp8_dec_finish()
377 inst->vsi->dec.working_buf_dma = (uint64_t)mem->dma_addr; in alloc_working_buf()
388 inst->vsi->dec.working_buf_dma = 0; in free_working_buf()
434 struct vdec_vp8_dec_info *dec = &inst->vsi->dec; in vdec_vp8_decode() local
455 dec->bs_dma = (unsigned long)bs->dma_addr; in vdec_vp8_decode()
456 dec->bs_sz = bs->size; in vdec_vp8_decode()
457 dec->cur_y_fb_dma = y_fb_dma; in vdec_vp8_decode()
458 dec->cur_c_fb_dma = c_fb_dma; in vdec_vp8_decode()
[all …]
Dvdec_h264_if.c112 struct vdec_h264_dec_info dec; member
268 *dpb_sz = inst->vsi->dec.dpb_sz; in get_dpb_size()
381 inst->vsi->dec.bs_dma = (uint64_t)bs->dma_addr; in vdec_h264_decode()
382 inst->vsi->dec.y_fb_dma = y_fb_dma; in vdec_h264_decode()
383 inst->vsi->dec.c_fb_dma = c_fb_dma; in vdec_h264_decode()
384 inst->vsi->dec.vdec_fb_va = vdec_fb_va; in vdec_h264_decode()
398 *res_chg = inst->vsi->dec.resolution_changed; in vdec_h264_decode()
405 if (inst->vsi->dec.realloc_mv_buf) { in vdec_h264_decode()
/drivers/media/platform/st/sti/delta/
Ddelta-v4l2.c31 #define call_dec_op(dec, op, args...)\ argument
32 ((dec && (dec)->op) ? (dec)->op(args) : 0)
136 const struct delta_dec *dec = ctx->dec; in delta_recycle() local
139 call_dec_op(dec, recycle, ctx, frame); in delta_recycle()
283 const struct delta_dec *dec; in delta_find_decoder() local
287 dec = delta->decoders[i]; in delta_find_decoder()
288 if ((dec->pixelformat == pixelformat) && in delta_find_decoder()
289 (dec->streamformat == streamformat)) in delta_find_decoder()
290 return dec; in delta_find_decoder()
346 const struct delta_dec *dec; in delta_open_decoder() local
[all …]
/drivers/media/rc/img-ir/
Dimg-ir-hw.c627 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 …]
/drivers/md/
Ddm-io-rewind.c80 unsigned int dec) in dm_bio_crypt_dun_decrement() argument
84 for (i = 0; dec && i < BLK_CRYPTO_DUN_ARRAY_SIZE; i++) { in dm_bio_crypt_dun_decrement()
87 dun[i] -= dec; in dm_bio_crypt_dun_decrement()
89 dec = 1; in dm_bio_crypt_dun_decrement()
91 dec = 0; in dm_bio_crypt_dun_decrement()
/drivers/media/platform/mediatek/vcodec/
DMakefile3 obj-$(CONFIG_VIDEO_MEDIATEK_VCODEC) += mtk-vcodec-dec.o \
6 mtk-vcodec-dec-hw.o
8 mtk-vcodec-dec-y := vdec/vdec_h264_if.o \
25 mtk-vcodec-dec-hw-y := mtk_vcodec_dec_hw.o
/drivers/media/pci/cx25821/
Dcx25821-medusa-video.c212 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()
/drivers/crypto/
Dsa2ul.c839 ctx->dec.sc_id, &ctx->dec.sc_phys); in sa_cipher_cra_exit()
842 sa_free_ctx_info(&ctx->dec, data); in sa_cipher_cra_exit()
861 ret = sa_init_ctx_info(&ctx->dec, data); in sa_cipher_cra_init()
880 ctx->dec.sc_id, &ctx->dec.sc_phys); in sa_cipher_cra_init()
925 if (sa_init_sc(&ctx->dec, ctx->dev_data->match_data, key, keylen, NULL, 0, in sa_cipher_setkey()
926 ad, 0, &ctx->dec.epib[1])) in sa_cipher_setkey()
930 cmdl_len = sa_format_cmdl_gen(&cfg, (u8 *)ctx->dec.cmdl, in sa_cipher_setkey()
931 &ctx->dec.cmdl_upd_info); in sa_cipher_setkey()
936 ctx->dec.cmdl_size = cmdl_len; in sa_cipher_setkey()
1090 struct sa_ctx_info *sa_ctx = req->enc ? &req->ctx->enc : &req->ctx->dec; in sa_run()
[all …]
/drivers/media/platform/qcom/venus/
DMakefile10 venus-dec-objs += vdec.o vdec_ctrls.o
14 obj-$(CONFIG_VIDEO_QCOM_VENUS) += venus-dec.o
/drivers/iio/imu/
Dadis16475.c262 u16 dec; in adis16475_get_freq() local
277 ret = __adis_read_reg_16(&st->adis, ADIS16475_REG_DEC_RATE, &dec); in adis16475_get_freq()
283 *freq = DIV_ROUND_CLOSEST(sample_rate, dec + 1); in adis16475_get_freq()
293 u16 dec; in adis16475_set_freq() local
348 dec = DIV_ROUND_CLOSEST(sample_rate, freq); in adis16475_set_freq()
350 if (dec) in adis16475_set_freq()
351 dec--; in adis16475_set_freq()
353 if (dec > st->info->max_dec) in adis16475_set_freq()
354 dec = st->info->max_dec; in adis16475_set_freq()
356 ret = __adis_write_reg_16(&st->adis, ADIS16475_REG_DEC_RATE, dec); in adis16475_set_freq()
[all …]
/drivers/mtd/nand/
Decc-mtk.c136 u32 dec, enc; in mtk_ecc_irq() local
138 dec = readw(ecc->regs + ecc->caps->ecc_regs[ECC_DECIRQ_STA]) in mtk_ecc_irq()
140 if (dec) { in mtk_ecc_irq()
141 dec = readw(ecc->regs + ecc->caps->ecc_regs[ECC_DECDONE]); in mtk_ecc_irq()
142 if (dec & ecc->sectors) { in mtk_ecc_irq()
/drivers/gpu/drm/msm/dsi/phy/
Ddsi_phy_10nm.c119 u64 dec, dec_multiple; in dsi_pll_calc_dec_frac() local
129 dec = div_u64_rem(dec_multiple, multiplier, &frac); in dsi_pll_calc_dec_frac()
142 config->decimal_div_start = dec; in dsi_pll_calc_dec_frac()
429 u32 dec; in dsi_pll_10nm_vco_recalc_rate() local
432 dec = dsi_phy_read(base + REG_DSI_10nm_PHY_PLL_DECIMAL_DIV_START_1); in dsi_pll_10nm_vco_recalc_rate()
433 dec &= 0xff; in dsi_pll_10nm_vco_recalc_rate()
446 pll_freq = dec * (ref_clk * 2); in dsi_pll_10nm_vco_recalc_rate()
454 pll_10nm->phy->id, (unsigned long)vco_rate, dec, frac); in dsi_pll_10nm_vco_recalc_rate()
Ddsi_phy_7nm.c107 u64 dec, dec_multiple; in dsi_pll_calc_dec_frac() local
117 dec = div_u64_rem(dec_multiple, multiplier, &frac); in dsi_pll_calc_dec_frac()
130 config->decimal_div_start = dec; in dsi_pll_calc_dec_frac()
443 u32 dec; in dsi_pll_7nm_vco_recalc_rate() local
446 dec = dsi_phy_read(base + REG_DSI_7nm_PHY_PLL_DECIMAL_DIV_START_1); in dsi_pll_7nm_vco_recalc_rate()
447 dec &= 0xff; in dsi_pll_7nm_vco_recalc_rate()
460 pll_freq = dec * (ref_clk * 2); in dsi_pll_7nm_vco_recalc_rate()
468 pll_7nm->phy->id, (unsigned long)vco_rate, dec, frac); in dsi_pll_7nm_vco_recalc_rate()
/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c34 } dec; member
54 } dec; member
827 qat_req->in.rsa.dec.d = ctx->dma_d; in qat_rsa_dec()
828 qat_req->in.rsa.dec.n = ctx->dma_n; in qat_rsa_dec()
854 qat_req->in.rsa.dec.c = dma_map_single(dev, vaddr, ctx->key_sz, in qat_rsa_dec()
856 if (unlikely(dma_mapping_error(dev, qat_req->in.rsa.dec.c))) in qat_rsa_dec()
868 qat_req->out.rsa.dec.m = dma_map_single(dev, vaddr, ctx->key_sz, in qat_rsa_dec()
870 if (unlikely(dma_mapping_error(dev, qat_req->out.rsa.dec.m))) in qat_rsa_dec()
917 if (!dma_mapping_error(dev, qat_req->out.rsa.dec.m)) in qat_rsa_dec()
918 dma_unmap_single(dev, qat_req->out.rsa.dec.m, in qat_rsa_dec()
[all …]
/drivers/scsi/qla2xxx/
Dqla_inline.h467 int c, old, dec; in qla_atomic_dtz() local
471 dec = c - amount; in qla_atomic_dtz()
472 if (unlikely(dec < 0)) in qla_atomic_dtz()
473 dec = 0; in qla_atomic_dtz()
475 old = atomic_cmpxchg((v), c, dec); in qla_atomic_dtz()
/drivers/md/persistent-data/
Ddm-array.c135 if (vt->dec) in dec_ablock_entries()
136 on_entries(info, ab, vt->dec); in dec_ablock_entries()
207 if (vt->dec) in trim_ablock()
208 vt->dec(vt->context, element_at(info, ab, new_nr - 1), delta); in trim_ablock()
648 bvt->dec = block_dec; in dm_array_info_init()
828 if (vt->dec && in array_set_value()
830 vt->dec(vt->context, old_value, 1); in array_set_value()
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dppevvmath.h511 int dec[PRECISION]; in uGetScaledDecimal() local
515 dec[i] = tmp / (1 << SHIFT_AMOUNT); in uGetScaledDecimal()
516 tmp = tmp - ((1 << SHIFT_AMOUNT)*dec[i]); in uGetScaledDecimal()
518 scaledDecimal = scaledDecimal + dec[i]*uPow(10, PRECISION - 1 -i); in uGetScaledDecimal()

123