/drivers/media/usb/ttusb-dec/ |
D | ttusb_dec.c | 245 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 if ((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/media/i2c/ |
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() 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 …]
|
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() 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 …]
|
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 …]
|
/drivers/media/platform/sti/delta/ |
D | delta-v4l2.c | 31 #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 …]
|
D | Makefile | 7 st-delta-$(CONFIG_VIDEO_STI_DELTA_MJPEG) += delta-mjpeg-dec.o
|
/drivers/media/platform/mtk-vcodec/vdec/ |
D | vdec_vp8_if.c | 85 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 …]
|
D | vdec_h264_if.c | 112 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/rc/img-ir/ |
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 …]
|
/drivers/crypto/qat/qat_common/ |
D | qat_asym_algs.c | 33 } dec; member 53 } dec; member 817 qat_req->in.rsa.dec.d = ctx->dma_d; in qat_rsa_dec() 818 qat_req->in.rsa.dec.n = ctx->dma_n; in qat_rsa_dec() 831 qat_req->in.rsa.dec.c = dma_map_single(dev, sg_virt(req->src), in qat_rsa_dec() 833 if (unlikely(dma_mapping_error(dev, qat_req->in.rsa.dec.c))) in qat_rsa_dec() 840 &qat_req->in.rsa.dec.c, in qat_rsa_dec() 850 qat_req->out.rsa.dec.m = dma_map_single(dev, sg_virt(req->dst), in qat_rsa_dec() 854 if (unlikely(dma_mapping_error(dev, qat_req->out.rsa.dec.m))) in qat_rsa_dec() 859 &qat_req->out.rsa.dec.m, in qat_rsa_dec() [all …]
|
/drivers/media/pci/cx25821/ |
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()
|
/drivers/media/platform/qcom/venus/ |
D | Makefile | 8 venus-dec-objs += vdec.o vdec_ctrls.o 12 obj-$(CONFIG_VIDEO_QCOM_VENUS) += venus-dec.o
|
D | vdec_ctrls.c | 16 struct vdec_controls *ctr = &inst->controls.dec; in vdec_op_s_ctrl() 43 struct vdec_controls *ctr = &inst->controls.dec; in vdec_op_g_volatile_ctrl()
|
/drivers/crypto/ |
D | sa2ul.c | 817 ctx->dec.sc_id, &ctx->dec.sc_phys); in sa_cipher_cra_exit() 820 sa_free_ctx_info(&ctx->dec, data); in sa_cipher_cra_exit() 838 ret = sa_init_ctx_info(&ctx->dec, data); in sa_cipher_cra_init() 854 ctx->dec.sc_id, &ctx->dec.sc_phys); in sa_cipher_cra_init() 900 if (sa_init_sc(&ctx->dec, key, keylen, NULL, 0, ad, 0, in sa_cipher_setkey() 901 &ctx->dec.epib[1])) in sa_cipher_setkey() 905 cmdl_len = sa_format_cmdl_gen(&cfg, (u8 *)ctx->dec.cmdl, in sa_cipher_setkey() 906 &ctx->dec.cmdl_upd_info); in sa_cipher_setkey() 911 ctx->dec.cmdl_size = cmdl_len; in sa_cipher_setkey() 1065 struct sa_ctx_info *sa_ctx = req->enc ? &req->ctx->enc : &req->ctx->dec; in sa_run() [all …]
|
/drivers/media/platform/mtk-vcodec/ |
D | Makefile | 3 obj-$(CONFIG_VIDEO_MEDIATEK_VCODEC) += mtk-vcodec-dec.o \ 7 mtk-vcodec-dec-y := vdec/vdec_h264_if.o \
|
/drivers/iio/imu/ |
D | adis16475.c | 255 u16 dec; in adis16475_get_freq() local 257 ret = adis_read_reg_16(&st->adis, ADIS16475_REG_DEC_RATE, &dec); in adis16475_get_freq() 261 *freq = DIV_ROUND_CLOSEST(st->clk_freq, dec + 1); in adis16475_get_freq() 268 u16 dec; in adis16475_set_freq() local 274 dec = DIV_ROUND_CLOSEST(st->clk_freq, freq); in adis16475_set_freq() 276 if (dec) in adis16475_set_freq() 277 dec--; in adis16475_set_freq() 279 if (dec > st->info->max_dec) in adis16475_set_freq() 280 dec = st->info->max_dec; in adis16475_set_freq() 282 ret = adis_write_reg_16(&st->adis, ADIS16475_REG_DEC_RATE, dec); in adis16475_set_freq() [all …]
|
/drivers/gpu/drm/msm/dsi/pll/ |
D | dsi_pll_10nm.c | 162 u64 dec, dec_multiple; in dsi_pll_calc_dec_frac() local 177 dec = div_u64(dec_multiple, multiplier); in dsi_pll_calc_dec_frac() 191 regs->decimal_div_start = dec; in dsi_pll_calc_dec_frac() 491 u32 dec; in dsi_pll_10nm_vco_recalc_rate() local 494 dec = pll_read(base + REG_DSI_10nm_PHY_PLL_DECIMAL_DIV_START_1); in dsi_pll_10nm_vco_recalc_rate() 495 dec &= 0xff; in dsi_pll_10nm_vco_recalc_rate() 509 pll_freq = dec * (ref_clk * 2); in dsi_pll_10nm_vco_recalc_rate() 516 pll_10nm->id, (unsigned long)vco_rate, dec, frac); in dsi_pll_10nm_vco_recalc_rate()
|
D | dsi_pll_7nm.c | 163 u64 dec, dec_multiple; in dsi_pll_calc_dec_frac() local 178 dec = div_u64(dec_multiple, multiplier); in dsi_pll_calc_dec_frac() 192 regs->decimal_div_start = dec; in dsi_pll_calc_dec_frac() 517 u32 dec; in dsi_pll_7nm_vco_recalc_rate() local 520 dec = pll_read(base + REG_DSI_7nm_PHY_PLL_DECIMAL_DIV_START_1); in dsi_pll_7nm_vco_recalc_rate() 521 dec &= 0xff; in dsi_pll_7nm_vco_recalc_rate() 535 pll_freq = dec * (ref_clk * 2); in dsi_pll_7nm_vco_recalc_rate() 542 pll_7nm->id, (unsigned long)vco_rate, dec, frac); in dsi_pll_7nm_vco_recalc_rate()
|
/drivers/mtd/nand/raw/ |
D | mtk_ecc.c | 137 u32 dec, enc; in mtk_ecc_irq() local 139 dec = readw(ecc->regs + ecc->caps->ecc_regs[ECC_DECIRQ_STA]) in mtk_ecc_irq() 141 if (dec) { in mtk_ecc_irq() 142 dec = readw(ecc->regs + ecc->caps->ecc_regs[ECC_DECDONE]); in mtk_ecc_irq() 143 if (dec & ecc->sectors) { in mtk_ecc_irq()
|
/drivers/md/persistent-data/ |
D | dm-array.c | 137 if (vt->dec) in dec_ablock_entries() 138 on_entries(info, ab, vt->dec); in dec_ablock_entries() 211 if (vt->dec) in trim_ablock() 212 vt->dec(vt->context, element_at(info, ab, i - 1)); in trim_ablock() 644 bvt->dec = block_dec; in dm_array_info_init() 823 if (vt->dec && in array_set_value() 825 vt->dec(vt->context, old_value); in array_set_value()
|
D | dm-btree-remove.c | 545 if (info->value_type.dec) in dm_btree_remove() 546 info->value_type.dec(info->value_type.context, in dm_btree_remove() 655 if (info->value_type.dec) in remove_one() 656 info->value_type.dec(info->value_type.context, in remove_one()
|
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | ppevvmath.h | 511 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()
|
/drivers/media/usb/ |
D | Makefile | 7 obj-y += ttusb-dec/ ttusb-budget/ dvb-usb/ dvb-usb-v2/ siano/ b2c2/
|
/drivers/net/ethernet/dec/ |
D | Kconfig | 19 source "drivers/net/ethernet/dec/tulip/Kconfig"
|
/drivers/iio/adc/ |
D | ad7923.c | 46 #define EXTRACT(val, dec, bits) (((val) >> (dec)) & ((1 << (bits)) - 1)) argument
|