/openbmc/linux/drivers/media/platform/qcom/venus/ |
H A D | vdec.c | 380 inst->crop.width = inst->width; in vdec_s_fmt() 381 inst->crop.height = inst->height; in vdec_s_fmt() 1606 inst->width = frame_width_min(inst); in vdec_inst_init() 1610 inst->crop.width = inst->width; in vdec_inst_init() 1611 inst->crop.height = inst->height; in vdec_inst_init() 1613 inst->out_width = frame_width_min(inst); in vdec_inst_init() 1614 inst->out_height = frame_height_min(inst); in vdec_inst_init() 1671 inst = kzalloc(sizeof(*inst), GFP_KERNEL); in vdec_open() 1718 inst->m2m_ctx = v4l2_m2m_ctx_init(inst->m2m_dev, inst, m2m_queue_init); in vdec_open() 1726 inst->fh.ctrl_handler = &inst->ctrl_handler; in vdec_open() [all …]
|
H A D | hfi.c | 187 inst->state = INST_UNINIT; in hfi_session_create() 189 inst->ops = ops; in hfi_session_create() 238 ret = ops->session_init(inst, inst->session_type, inst->hfi_codec); in hfi_session_init() 246 inst->state = INST_INIT; in hfi_session_init() 257 list_del_init(&inst->list); in hfi_session_destroy() 289 inst->state = INST_UNINIT; in hfi_session_deinit() 316 inst->state = INST_START; in hfi_session_start() 343 inst->state = INST_STOP; in hfi_session_stop() 506 if (inst->state < INST_INIT || inst->state >= INST_STOP) in hfi_session_get_property() 519 *hprop = inst->hprop; in hfi_session_get_property() [all …]
|
H A D | venc.c | 547 if (!(inst->streamon_out && inst->streamon_cap)) in venc_encoder_cmd() 1013 ret = venus_helper_set_stride(inst, inst->out_width, in venc_init_session() 1202 if (!inst->num_input_bufs || !inst->num_output_bufs) in venc_verify_conf() 1236 if (!(inst->streamon_out & inst->streamon_cap)) { in venc_start_streaming() 1444 inst = kzalloc(sizeof(*inst), GFP_KERNEL); in venc_open() 1445 if (!inst) in venc_open() 1486 inst->m2m_ctx = v4l2_m2m_ctx_init(inst->m2m_dev, inst, m2m_queue_init); in venc_open() 1494 inst->fh.ctrl_handler = &inst->ctrl_handler; in venc_open() 1496 inst->fh.m2m_ctx = inst->m2m_ctx; in venc_open() 1508 kfree(inst); in venc_open() [all …]
|
/openbmc/qemu/target/riscv/ |
H A D | instmap.h | 307 #define GET_STORE_IMM(inst) ((extract32(inst, 7, 5)) \ argument 315 #define GET_FUNCT3(inst) extract32(inst, 12, 3) argument 316 #define GET_FUNCT7(inst) extract32(inst, 25, 7) argument 317 #define GET_RM(inst) extract32(inst, 12, 3) argument 318 #define GET_RS3(inst) extract32(inst, 27, 5) argument 319 #define GET_RS1(inst) extract32(inst, 15, 5) argument 320 #define GET_RS2(inst) extract32(inst, 20, 5) argument 321 #define GET_RD(inst) extract32(inst, 7, 5) argument 322 #define GET_IMM(inst) sextract64(inst, 20, 12) argument 375 #define GET_C_RD(inst) GET_RD(inst) argument [all …]
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/encoder/venc/ |
H A D | venc_h264_if.c | 305 mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]); in h264_enc_free_work_buf() 308 mtk_vcodec_mem_free(inst->ctx, &inst->pps_buf); in h264_enc_free_work_buf() 394 ret = mtk_vcodec_mem_alloc(inst->ctx, &inst->pps_buf); in h264_enc_alloc_work_buf() 495 ret = h264_encode_pps(inst, &inst->pps_buf, &bs_size_pps); in h264_encode_header() 563 inst->frm_cnt, *bs_size, inst->vpu_inst.is_key_frm); in h264_encode_frame() 590 inst = kzalloc(sizeof(*inst), GFP_KERNEL); in h264_enc_init() 591 if (!inst) in h264_enc_init() 602 inst->vsi_34 = (struct venc_h264_vsi_34 *)inst->vpu_inst.vsi; in h264_enc_init() 604 inst->vsi = (struct venc_h264_vsi *)inst->vpu_inst.vsi; in h264_enc_init() 607 kfree(inst); in h264_enc_init() [all …]
|
H A D | venc_vp8_if.c | 147 mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]); in vp8_enc_free_work_buf() 171 ret = mtk_vcodec_mem_alloc(inst->ctx, &inst->work_bufs[i]); in vp8_enc_alloc_work_buf() 291 mtk_venc_debug(inst->ctx, "->frm_cnt=%d", inst->frm_cnt); in vp8_enc_encode_frame() 308 inst->frm_cnt++; in vp8_enc_encode_frame() 319 inst = kzalloc(sizeof(*inst), GFP_KERNEL); in vp8_enc_init() 320 if (!inst) in vp8_enc_init() 323 inst->ctx = ctx; in vp8_enc_init() 330 inst->vsi = (struct venc_vp8_vsi *)inst->vpu_inst.vsi; in vp8_enc_init() 333 kfree(inst); in vp8_enc_init() 392 inst->vsi->config.ts_mode = inst->ts_mode; in vp8_enc_set_param() [all …]
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_vp9_if.c | 497 if (!vp9_is_sf_ref_fb(inst, inst->cur_fb)) { in vp9_swap_frm_bufs() 499 vp9_add_to_fb_disp_list(inst, inst->cur_fb); in vp9_swap_frm_bufs() 502 if (!vp9_is_sf_ref_fb(inst, inst->cur_fb)) { in vp9_swap_frm_bufs() 562 return inst; in vp9_alloc_inst() 660 inst->vsi->sf_next_ref_fb_idx = vp9_get_sf_ref_fb(inst); in vp9_reset() 666 inst->vsi->mv_buf.va = (unsigned long)inst->mv_buf.va; in vp9_reset() 668 inst->vsi->mv_buf.sz = (unsigned long)inst->mv_buf.size; in vp9_reset() 780 if (!inst) in vdec_vp9_init() 794 inst->vsi = (struct vdec_vp9_vsi *)inst->vpu.vsi; in vdec_vp9_init() 915 if (!vp9_is_sf_ref_fb(inst, inst->cur_fb)) in vdec_vp9_decode() [all …]
|
H A D | vdec_h264_req_multi_if.c | 400 inst = kzalloc(sizeof(*inst), GFP_KERNEL); in vdec_h264_slice_init() 401 if (!inst) in vdec_h264_slice_init() 419 inst->vsi = inst->vpu.vsi; in vdec_h264_slice_init() 432 inst, inst->vpu.codec_type); in vdec_h264_slice_init() 438 kfree(inst); in vdec_h264_slice_init() 448 vdec_msg_queue_deinit(&inst->ctx->msg_queue, inst->ctx); in vdec_h264_slice_deinit() 450 kfree(inst); in vdec_h264_slice_deinit() 578 if (vdec_msg_queue_init(&inst->ctx->msg_queue, inst->ctx, in vdec_h264_slice_lat_decode() 699 inst->vsi->dec.crc[0], inst->vsi->dec.crc[1], inst->vsi->dec.crc[2]); in vdec_h264_slice_lat_decode() 772 memcpy(inst->vpu.vsi, &inst->vsi_ctx, sizeof(inst->vsi_ctx)); in vdec_h264_slice_single_decode() [all …]
|
H A D | vdec_vp8_req_if.c | 279 inst = kzalloc(sizeof(*inst), GFP_KERNEL); in vdec_vp8_slice_init() 280 if (!inst) in vdec_vp8_slice_init() 297 inst->vsi = inst->vpu.vsi; in vdec_vp8_slice_init() 306 inst, inst->vpu.codec_type, inst->vpu.vsi); in vdec_vp8_slice_init() 314 kfree(inst); in vdec_vp8_slice_init() 343 inst->ctx->picinfo.buf_w * inst->ctx->picinfo.buf_h; in vdec_vp8_slice_decode() 387 inst->vsi->dec.crc[0], inst->vsi->dec.crc[1], in vdec_vp8_slice_decode() 388 inst->vsi->dec.crc[2], inst->vsi->dec.crc[3], in vdec_vp8_slice_decode() 389 inst->vsi->dec.crc[4], inst->vsi->dec.crc[5], in vdec_vp8_slice_decode() 390 inst->vsi->dec.crc[6], inst->vsi->dec.crc[7]); in vdec_vp8_slice_decode() [all …]
|
H A D | vdec_vp8_if.c | 393 inst = kzalloc(sizeof(*inst), GFP_KERNEL); in vdec_vp8_init() 394 if (!inst) in vdec_vp8_init() 397 inst->ctx = ctx; in vdec_vp8_init() 400 inst->vpu.ctx = ctx; in vdec_vp8_init() 408 inst->vsi = (struct vdec_vp8_vsi *)inst->vpu.vsi; in vdec_vp8_init() 409 init_list(inst); in vdec_vp8_init() 423 kfree(inst); in vdec_vp8_init() 451 inst->cur_fb = fb; in vdec_vp8_decode() 457 mtk_vdec_debug(inst->ctx, "\n + FRAME[%d] +\n", inst->frm_cnt); in vdec_vp8_decode() 501 inst->frm_cnt++; in vdec_vp8_decode() [all …]
|
H A D | vdec_h264_req_if.c | 162 err = mtk_vcodec_mem_alloc(inst->ctx, &inst->pred_buf); in allocate_predication_buf() 168 inst->vsi_ctx.pred_buf_dma = inst->pred_buf.dma_addr; in allocate_predication_buf() 276 inst = kzalloc(sizeof(*inst), GFP_KERNEL); in vdec_h264_slice_init() 277 if (!inst) in vdec_h264_slice_init() 291 memcpy(&inst->vsi_ctx, inst->vpu.vsi, sizeof(inst->vsi_ctx)); in vdec_h264_slice_init() 314 kfree(inst); in vdec_h264_slice_init() 326 kfree(inst); in vdec_h264_slice_deinit() 349 fb = inst->ctx->dev->vdec_pdata->get_cap_buffer(inst->ctx); in vdec_h264_slice_decode() 384 err = alloc_mv_buf(inst, &inst->ctx->picinfo); in vdec_h264_slice_decode() 392 memcpy(inst->vpu.vsi, &inst->vsi_ctx, sizeof(inst->vsi_ctx)); in vdec_h264_slice_decode() [all …]
|
H A D | vdec_h264_if.c | 144 err = mtk_vcodec_mem_alloc(inst->ctx, &inst->pred_buf); in allocate_predication_buf() 150 inst->vsi->pred_buf_dma = inst->pred_buf.dma_addr; in allocate_predication_buf() 204 list = disp_list ? &inst->vsi->list_disp : &inst->vsi->list_free; in check_list_validity() 273 inst = kzalloc(sizeof(*inst), GFP_KERNEL); in vdec_h264_init() 274 if (!inst) in vdec_h264_init() 277 inst->ctx = ctx; in vdec_h264_init() 288 inst->vsi = (struct vdec_h264_vsi *)inst->vpu.vsi; in vdec_h264_init() 302 kfree(inst); in vdec_h264_init() 314 kfree(inst); in vdec_h264_deinit() 462 vdec_h264_get_fb(inst, &inst->vsi->list_disp, true, out); in vdec_h264_get_param() [all …]
|
/openbmc/linux/arch/arm/vfp/ |
H A D | vfpinstr.h | 11 #define INST_CPRT(inst) ((inst) & (1 << 4)) argument 12 #define INST_CPRT_L(inst) ((inst) & (1 << 20)) argument 14 #define INST_CPRT_OP(inst) (((inst) >> 21) & 7) argument 15 #define INST_CPNUM(inst) ((inst) & 0xf00) argument 30 #define FOP_TO_IDX(inst) ((inst & 0x00b00000) >> 20 | (inst & (1 << 6)) >> 4) argument 49 #define FEXT_TO_IDX(inst) ((inst & 0x000f0000) >> 15 | (inst & (1 << 7)) >> 7) argument 51 #define vfp_get_sd(inst) ((inst & 0x0000f000) >> 11 | (inst & (1 << 22)) >> 22) argument 53 #define vfp_get_sm(inst) ((inst & 0x0000000f) << 1 | (inst & (1 << 5)) >> 5) argument 54 #define vfp_get_dm(inst) ((inst & 0x0000000f) | (inst & (1 << 5)) >> 1) argument 55 #define vfp_get_sn(inst) ((inst & 0x000f0000) >> 15 | (inst & (1 << 7)) >> 7) argument [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | disassemble.h | 16 return inst >> 26; in get_op() 21 return (inst >> 1) & 0x3ff; in get_xop() 26 return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); in get_sprn() 31 return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); in get_dcrn() 36 return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); in get_tmrn() 41 return (inst >> 21) & 0x1f; in get_rt() 61 return inst & 0x1; in get_rc() 71 return inst & 0xffff; in get_d() 81 return (inst) & 0x1; in get_tx_or_sx() 84 #define IS_XFORM(inst) (get_op(inst) == 31) argument [all …]
|
/openbmc/linux/drivers/media/platform/amphion/ |
H A D | vpu_cmds.c | 98 ret = vpu_iface_pack_cmd(inst->core, cmd->pkt, inst->id, id, data); in vpu_alloc_cmd() 147 if (!inst || inst->pending) in vpu_process_cmd_request() 169 if (!inst || !inst->core) in vpu_request_cmd() 172 core = inst->core; in vpu_request_cmd() 193 if (!inst || !inst->pending) in vpu_clear_pending() 221 if (!inst || !inst->core) in vpu_response_cmd() 265 if (!inst || !inst->core) in sync_session_response() 277 dev_err(inst->dev, "[%d] sync session timeout\n", inst->id); in sync_session_response() 308 if (inst->id < 0) in vpu_session_send_cmd() 344 vpu_trace(inst->dev, "[%d]\n", inst->id); in vpu_session_start() [all …]
|
H A D | vpu_v4l2.c | 84 vpu_trace(inst->dev, "[%d]\n", inst->id); in vpu_notify_eos() 98 vpu_trace(inst->dev, "[%d]\n", inst->id); in vpu_notify_source_change() 107 if (!inst || !inst->fh.m2m_ctx) in vpu_set_last_buffer_dequeued() 285 if (!inst || !inst->fh.m2m_ctx) in vpu_process_output_buffer() 311 if (!inst || !inst->fh.m2m_ctx) in vpu_process_capture_buffer() 381 if (!inst || !inst->fh.m2m_ctx) in vpu_find_buf_by_sequence() 408 if (!inst || !inst->fh.m2m_ctx) in vpu_find_buf_by_idx() 434 if (!inst || !inst->fh.m2m_ctx) in vpu_get_num_buffers() 683 vpu_trace(inst->vpu->dev, "%p\n", inst); in vpu_v4l2_release() 710 if (!inst || !inst->ops) in vpu_v4l2_open() [all …]
|
H A D | vdec.c | 302 vpu_trace(inst->dev, "[%d] %s -> %s\n", inst->id, in vdec_update_state() 610 vpu_trace(inst->dev, "[%d]\n", inst->id); in vdec_cmd_stop() 803 dev_dbg(inst->dev, "[%d] frame skip\n", inst->id); in vdec_buf_done() 868 sibling = vpu_helper_find_sibling(inst, inst->cap_format.type, inst->cap_format.pixfmt); in vdec_check_source_change() 880 if (vpu_get_num_buffers(inst, inst->cap_format.type) < inst->min_buffer_cap) in vdec_check_source_change() 908 vpu_try_fmt_common(inst, &f, &inst->cap_format); in vdec_init_fmt() 1217 vpu_trace(inst->dev, "[%d]\n", inst->id); in vdec_event_resolution_change() 1426 vpu_trace(inst->dev, "[%d] state = %s\n", inst->id, vpu_codec_state_name(inst->state)); in vdec_abort() 1478 vpu_trace(inst->dev, "[%d]\n", inst->id); in vdec_release() 1510 vpu_trace(inst->dev, "[%d]\n", inst->id); in vdec_start() [all …]
|
H A D | vpu_msgs.c | 31 vpu_trace(inst->dev, "[%d]\n", inst->id); in vpu_session_handle_start_done() 40 inst->id, in vpu_session_handle_mem_request() 60 vpu_trace(inst->dev, "[%d]\n", inst->id); in vpu_session_handle_stop_done() 107 dev_dbg(inst->dev, "[%d] %d\n", inst->id, info.sequence); in vpu_session_handle_frame_release() 120 dev_dbg(inst->dev, "[%d]\n", inst->id); in vpu_session_handle_input_done() 173 set_bit(inst->id, &inst->core->hang_mask); in vpu_session_handle_firmware_xcpt() 295 dev_err(inst->dev, "[%d:%d]overflow: %d\n", inst->core->id, inst->id, id); in vpu_inst_handle_msg() 296 queue_work(inst->workqueue, &inst->msg_work); in vpu_inst_handle_msg() 315 if (inst) { in vpu_handle_msg() 391 if (!inst) in vpu_msg_delayed_work() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | nv25.c | 37 &chan->inst); in nv25_gr_chan_new() 41 nvkm_kmap(chan->inst); in nv25_gr_chan_new() 43 nvkm_wo32(chan->inst, 0x035c, 0xffff0000); in nv25_gr_chan_new() 54 nvkm_wo32(chan->inst, i, 0x00030303); in nv25_gr_chan_new() 56 nvkm_wo32(chan->inst, i, 0x00080000); in nv25_gr_chan_new() 58 nvkm_wo32(chan->inst, i, 0x01012000); in nv25_gr_chan_new() 60 nvkm_wo32(chan->inst, i, 0x000105b8); in nv25_gr_chan_new() 62 nvkm_wo32(chan->inst, i, 0x00080008); in nv25_gr_chan_new() 64 nvkm_wo32(chan->inst, i, 0x07ff0000); in nv25_gr_chan_new() 94 nvkm_wo32(chan->inst, i, 0x001c527c); in nv25_gr_chan_new() [all …]
|
H A D | nv35.c | 37 &chan->inst); in nv35_gr_chan_new() 41 nvkm_kmap(chan->inst); in nv35_gr_chan_new() 52 nvkm_wo32(chan->inst, i, 0x0fff0000); in nv35_gr_chan_new() 55 nvkm_wo32(chan->inst, i, 0x07ff0000); in nv35_gr_chan_new() 64 nvkm_wo32(chan->inst, i, 0x00010588); in nv35_gr_chan_new() 66 nvkm_wo32(chan->inst, i, 0x00030303); in nv35_gr_chan_new() 68 nvkm_wo32(chan->inst, i, 0x0008aae4); in nv35_gr_chan_new() 70 nvkm_wo32(chan->inst, i, 0x01012000); in nv35_gr_chan_new() 72 nvkm_wo32(chan->inst, i, 0x00080008); in nv35_gr_chan_new() 76 nvkm_wo32(chan->inst, i, 0x00040004); in nv35_gr_chan_new() [all …]
|
H A D | nv34.c | 37 &chan->inst); in nv34_gr_chan_new() 41 nvkm_kmap(chan->inst); in nv34_gr_chan_new() 52 nvkm_wo32(chan->inst, i, 0x0fff0000); in nv34_gr_chan_new() 55 nvkm_wo32(chan->inst, i, 0x07ff0000); in nv34_gr_chan_new() 64 nvkm_wo32(chan->inst, i, 0x00010588); in nv34_gr_chan_new() 66 nvkm_wo32(chan->inst, i, 0x00030303); in nv34_gr_chan_new() 68 nvkm_wo32(chan->inst, i, 0x0008aae4); in nv34_gr_chan_new() 70 nvkm_wo32(chan->inst, i, 0x01012000); in nv34_gr_chan_new() 72 nvkm_wo32(chan->inst, i, 0x00080008); in nv34_gr_chan_new() 76 nvkm_wo32(chan->inst, i, 0x00040004); in nv34_gr_chan_new() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/ |
H A D | dcn32_mpc.h | 34 #define MPC_REG_LIST_DCN3_2(inst) \ argument 35 MPC_REG_LIST_DCN3_0(inst),\ 37 SRII(MPCC_MCM_SHAPER_CONTROL, MPCC_MCM, inst),\ 38 SRII(MPCC_MCM_SHAPER_OFFSET_R, MPCC_MCM, inst),\ 39 SRII(MPCC_MCM_SHAPER_OFFSET_G, MPCC_MCM, inst),\ 40 SRII(MPCC_MCM_SHAPER_OFFSET_B, MPCC_MCM, inst),\ 41 SRII(MPCC_MCM_SHAPER_SCALE_R, MPCC_MCM, inst),\ 44 SRII(MPCC_MCM_SHAPER_LUT_DATA, MPCC_MCM, inst),\ 93 SRII(MPCC_MCM_3DLUT_INDEX, MPCC_MCM, inst),\ 94 SRII(MPCC_MCM_3DLUT_DATA, MPCC_MCM, inst),\ [all …]
|
/openbmc/linux/drivers/soc/mediatek/ |
H A D | mtk-cmdq-helper.c | 174 *cmd_ptr = inst; in cmdq_pkt_append_command() 185 inst.value = value; in cmdq_pkt_write() 202 inst.mask = ~mask; in cmdq_pkt_write_mask() 252 inst.mask = ~mask; in cmdq_pkt_write_s_mask() 257 inst.mask = 0; in cmdq_pkt_write_s_mask() 276 inst.value = value; in cmdq_pkt_write_s_value() 289 inst.mask = ~mask; in cmdq_pkt_write_s_mask_value() 297 inst.value = value; in cmdq_pkt_write_s_mask_value() 313 inst.event = event; in cmdq_pkt_wfe() 328 inst.event = event; in cmdq_pkt_clear_event() [all …]
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | kuser32.S | 31 .inst 0x03330001 // teqeq r3, #1 32 .inst 0x0afffff9 // beq 1b 33 .inst 0xf57ff05b // dmb ish 36 .inst 0xe12fff1e // bx lr 40 .inst 0xf57ff05b // dmb ish 41 .inst 0xe12fff1e // bx lr 48 .inst 0x03330001 // teqeq r3, #1 49 .inst 0x0afffffa // beq 1b 50 .inst 0xf57ff05b // dmb ish 52 .inst 0xe12fff1e // bx lr [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvkm/engine/ |
H A D | gr.h | 17 int nv04_gr_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_gr **); 18 int nv10_gr_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_gr **); 19 int nv15_gr_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_gr **); 20 int nv17_gr_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_gr **); 21 int nv20_gr_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_gr **); 22 int nv25_gr_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_gr **); 23 int nv2a_gr_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_gr **); 24 int nv30_gr_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_gr **); 25 int nv34_gr_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_gr **); 26 int nv35_gr_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_gr **); [all …]
|