Home
last modified time | relevance | path

Searched refs:inst (Results 1 – 25 of 948) sorted by relevance

12345678910>>...38

/linux/drivers/media/platform/qcom/venus/
A Dvdec.c330 inst->crop.width = inst->width; in vdec_s_fmt()
331 inst->crop.height = inst->height; in vdec_s_fmt()
1530 inst->width = frame_width_min(inst); in vdec_inst_init()
1534 inst->crop.width = inst->width; in vdec_inst_init()
1535 inst->crop.height = inst->height; in vdec_inst_init()
1537 inst->out_width = frame_width_min(inst); in vdec_inst_init()
1538 inst->out_height = frame_height_min(inst); in vdec_inst_init()
1593 inst = kzalloc(sizeof(*inst), GFP_KERNEL); in vdec_open()
1639 inst->m2m_ctx = v4l2_m2m_ctx_init(inst->m2m_dev, inst, m2m_queue_init); in vdec_open()
1647 inst->fh.ctrl_handler = &inst->ctrl_handler; in vdec_open()
[all …]
A Dvenc.c890 mbs = ALIGN(inst->width, 16) * ALIGN(inst->height, 16); in venc_set_properties()
920 ret = venus_helper_set_stride(inst, inst->out_width, in venc_init_session()
1109 if (!inst->num_input_bufs || !inst->num_output_bufs) in venc_verify_conf()
1143 if (!(inst->streamon_out & inst->streamon_cap)) { in venc_start_streaming()
1332 inst = kzalloc(sizeof(*inst), GFP_KERNEL); in venc_open()
1333 if (!inst) in venc_open()
1370 inst->m2m_ctx = v4l2_m2m_ctx_init(inst->m2m_dev, inst, m2m_queue_init); in venc_open()
1378 inst->fh.ctrl_handler = &inst->ctrl_handler; in venc_open()
1380 inst->fh.m2m_ctx = inst->m2m_ctx; in venc_open()
1392 kfree(inst); in venc_open()
[all …]
A Dhfi.c184 inst->state = INST_UNINIT; in hfi_session_create()
186 inst->ops = ops; in hfi_session_create()
235 ret = ops->session_init(inst, inst->session_type, inst->hfi_codec); in hfi_session_init()
243 inst->state = INST_INIT; in hfi_session_init()
254 list_del_init(&inst->list); in hfi_session_destroy()
286 inst->state = INST_UNINIT; in hfi_session_deinit()
313 inst->state = INST_START; in hfi_session_start()
340 inst->state = INST_STOP; in hfi_session_stop()
503 if (inst->state < INST_INIT || inst->state >= INST_STOP) in hfi_session_get_property()
516 *hprop = inst->hprop; in hfi_session_get_property()
[all …]
A Dhelpers.c161 if (!inst->dpb_fmt) in venus_helper_alloc_dpb_bufs()
330 if (IS_V6(inst->core)) { in venus_helper_intbufs_alloc()
539 caps = venus_caps_by_codec(core, inst->hfi_codec, inst->session_type); in is_dynamic_bufmode()
1139 num_mbs = (ALIGN(inst->height, 16) * ALIGN(inst->width, 16)) / 256; in venus_helper_get_work_mode()
1160 if (!IS_V4(inst->core) && !IS_V6(inst->core)) in venus_helper_set_work_mode()
1341 if (!(inst->streamon_out & inst->streamon_cap)) in delayed_process_buf_func()
1493 !(inst->streamon_out && inst->streamon_cap)) in venus_helper_vb2_buf_queue()
1531 if (inst->streamon_out & inst->streamon_cap) { in venus_helper_vb2_stop_streaming()
1679 v4l2_m2m_job_finish(inst->m2m_dev, inst->m2m_ctx); in venus_helper_m2m_job_abort()
1691 inst->fmt_out->pixfmt : inst->fmt_cap->pixfmt; in venus_helper_session_init()
[all …]
A Dvenc_ctrls.c87 mutex_lock(&inst->lock); in venc_op_s_ctrl()
88 if (inst->streamon_out && inst->streamon_cap) { in venc_op_s_ctrl()
99 mutex_unlock(&inst->lock); in venc_op_s_ctrl()
214 mutex_lock(&inst->lock); in venc_op_s_ctrl()
215 if (inst->streamon_out && inst->streamon_cap) { in venc_op_s_ctrl()
255 mutex_lock(&inst->lock); in venc_op_s_ctrl()
256 if (inst->streamon_out && inst->streamon_cap) { in venc_op_s_ctrl()
286 mutex_lock(&inst->lock); in venc_op_s_ctrl()
287 if (inst->streamon_out && inst->streamon_cap) { in venc_op_s_ctrl()
299 mutex_lock(&inst->lock); in venc_op_s_ctrl()
[all …]
A Dhfi_parser.h17 struct venus_core *core = inst->core; in get_cap()
22 caps = venus_caps_by_codec(core, inst->hfi_codec, inst->session_type); in get_cap()
52 return get_cap(inst, type, WHICH_CAP_MIN); in cap_min()
57 return get_cap(inst, type, WHICH_CAP_MAX); in cap_max()
62 return get_cap(inst, type, WHICH_CAP_STEP); in cap_step()
67 return cap_min(inst, HFI_CAPABILITY_FRAME_WIDTH); in frame_width_min()
72 return cap_max(inst, HFI_CAPABILITY_FRAME_WIDTH); in frame_width_max()
77 return cap_step(inst, HFI_CAPABILITY_FRAME_WIDTH); in frame_width_step()
97 return cap_min(inst, HFI_CAPABILITY_FRAMERATE); in frate_min()
102 return cap_max(inst, HFI_CAPABILITY_FRAMERATE); in frate_max()
[all …]
/linux/drivers/media/platform/mtk-vcodec/venc/
A Dvenc_h264_if.c239 mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]); in h264_enc_free_work_buf()
242 mtk_vcodec_mem_free(inst->ctx, &inst->pps_buf); in h264_enc_free_work_buf()
316 ret = mtk_vcodec_mem_alloc(inst->ctx, &inst->pps_buf); in h264_enc_alloc_work_buf()
348 (inst->frm_cnt % inst->vsi->config.gop_size) == 0) || in h264_frame_type()
447 mtk_vcodec_debug(inst, "frm_cnt = %d\n ", inst->frm_cnt); in h264_encode_frame()
483 inst->frm_cnt, *bs_size, inst->vpu_inst.is_key_frm); in h264_encode_frame()
510 inst = kzalloc(sizeof(*inst), GFP_KERNEL); in h264_enc_init()
511 if (!inst) in h264_enc_init()
523 inst->vsi = (struct venc_h264_vsi *)inst->vpu_inst.vsi; in h264_enc_init()
528 kfree(inst); in h264_enc_init()
[all …]
A Dvenc_vp8_if.c150 mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]); in vp8_enc_free_work_buf()
178 ret = mtk_vcodec_mem_alloc(inst->ctx, &inst->work_bufs[i]); in vp8_enc_alloc_work_buf()
303 mtk_vcodec_debug(inst, "->frm_cnt=%d", inst->frm_cnt); in vp8_enc_encode_frame()
321 inst->frm_cnt++; in vp8_enc_encode_frame()
333 inst = kzalloc(sizeof(*inst), GFP_KERNEL); in vp8_enc_init()
334 if (!inst) in vp8_enc_init()
337 inst->ctx = ctx; in vp8_enc_init()
346 inst->vsi = (struct venc_vp8_vsi *)inst->vpu_inst.vsi; in vp8_enc_init()
351 kfree(inst); in vp8_enc_init()
414 inst->vsi->config.ts_mode = inst->ts_mode; in vp8_enc_set_param()
[all …]
/linux/drivers/media/platform/mtk-vcodec/vdec/
A Dvdec_vp9_if.c500 if (!vp9_is_sf_ref_fb(inst, inst->cur_fb)) { in vp9_swap_frm_bufs()
502 vp9_add_to_fb_disp_list(inst, inst->cur_fb); in vp9_swap_frm_bufs()
505 if (!vp9_is_sf_ref_fb(inst, inst->cur_fb)) { in vp9_swap_frm_bufs()
565 return inst; in vp9_alloc_inst()
665 inst->vsi->sf_next_ref_fb_idx = vp9_get_sf_ref_fb(inst); in vp9_reset()
671 inst->vsi->mv_buf.va = (unsigned long)inst->mv_buf.va; in vp9_reset()
673 inst->vsi->mv_buf.sz = (unsigned long)inst->mv_buf.size; in vp9_reset()
791 if (!inst) in vdec_vp9_init()
805 inst->vsi = (struct vdec_vp9_vsi *)inst->vpu.vsi; in vdec_vp9_init()
926 if (!vp9_is_sf_ref_fb(inst, inst->cur_fb)) in vdec_vp9_decode()
[all …]
A Dvdec_vp8_if.c171 inst->reg_base.cm = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_CM); in get_hw_reg_base()
175 inst->reg_base.ld = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_LD); in get_hw_reg_base()
396 inst = kzalloc(sizeof(*inst), GFP_KERNEL); in vdec_vp8_init()
397 if (!inst) in vdec_vp8_init()
400 inst->ctx = ctx; in vdec_vp8_init()
411 inst->vsi = (struct vdec_vp8_vsi *)inst->vpu.vsi; in vdec_vp8_init()
412 init_list(inst); in vdec_vp8_init()
418 mtk_vcodec_debug(inst, "VP8 Instance >> %p", inst); in vdec_vp8_init()
426 kfree(inst); in vdec_vp8_init()
460 mtk_vcodec_debug(inst, "\n + FRAME[%d] +\n", inst->frm_cnt); in vdec_vp8_decode()
[all …]
A Dvdec_h264_if.c145 err = mtk_vcodec_mem_alloc(inst->ctx, &inst->pred_buf); in allocate_predication_buf()
151 inst->vsi->pred_buf_dma = inst->pred_buf.dma_addr; in allocate_predication_buf()
277 inst = kzalloc(sizeof(*inst), GFP_KERNEL); in vdec_h264_init()
278 if (!inst) in vdec_h264_init()
281 inst->ctx = ctx; in vdec_h264_init()
292 inst->vsi = (struct vdec_h264_vsi *)inst->vpu.vsi; in vdec_h264_init()
297 mtk_vcodec_debug(inst, "H264 Instance >> %p", inst); in vdec_h264_init()
306 kfree(inst); in vdec_h264_init()
320 kfree(inst); in vdec_h264_deinit()
471 vdec_h264_get_fb(inst, &inst->vsi->list_disp, true, out); in vdec_h264_get_param()
[all …]
A Dvdec_h264_req_if.c501 err = mtk_vcodec_mem_alloc(inst->ctx, &inst->pred_buf); in allocate_predication_buf()
507 inst->vsi_ctx.pred_buf_dma = inst->pred_buf.dma_addr; in allocate_predication_buf()
617 inst = kzalloc(sizeof(*inst), GFP_KERNEL); in vdec_h264_slice_init()
618 if (!inst) in vdec_h264_slice_init()
632 memcpy(&inst->vsi_ctx, inst->vpu.vsi, sizeof(inst->vsi_ctx)); in vdec_h264_slice_init()
646 mtk_vcodec_debug(inst, "H264 Instance >> %p", inst); in vdec_h264_slice_init()
655 kfree(inst); in vdec_h264_slice_init()
669 kfree(inst); in vdec_h264_slice_deinit()
714 err = alloc_mv_buf(inst, &inst->ctx->picinfo); in vdec_h264_slice_decode()
722 memcpy(inst->vpu.vsi, &inst->vsi_ctx, sizeof(inst->vsi_ctx)); in vdec_h264_slice_decode()
[all …]
/linux/arch/arm/vfp/
A Dvfpinstr.h11 #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 …]
/linux/net/netfilter/
A Dnfnetlink_log.c131 if (inst && !refcount_inc_not_zero(&inst->use)) in instance_lookup_get()
135 return inst; in instance_lookup_get()
144 kfree(inst); in nfulnl_instance_free_rcu()
151 if (inst && refcount_dec_and_test(&inst->use)) in instance_put()
171 inst = kzalloc(sizeof(*inst), GFP_ATOMIC); in instance_create()
172 if (!inst) { in instance_create()
358 inst->skb->len, skb_tailroom(inst->skb))) { in __nfulnl_send()
363 nfnetlink_unicast(inst->skb, inst->net, inst->peer_portid); in __nfulnl_send()
779 if (inst->skb && size > skb_tailroom(inst->skb)) { in nfulnl_log_packet()
1090 inst->peer_portid, inst->qlen, in seq_show()
[all …]
/linux/arch/powerpc/include/asm/
A Ddisassemble.h16 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 …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
A Dnv25.c37 &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 …]
A Dnv34.c37 &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 …]
A Dnv35.c37 &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 …]
A Dnv2a.c37 &chan->inst); in nv2a_gr_chan_new()
41 nvkm_kmap(chan->inst); in nv2a_gr_chan_new()
43 nvkm_wo32(chan->inst, 0x033c, 0xffff0000); in nv2a_gr_chan_new()
50 nvkm_wo32(chan->inst, i, 0x00030303); in nv2a_gr_chan_new()
52 nvkm_wo32(chan->inst, i, 0x00080000); in nv2a_gr_chan_new()
54 nvkm_wo32(chan->inst, i, 0x01012000); in nv2a_gr_chan_new()
56 nvkm_wo32(chan->inst, i, 0x000105b8); in nv2a_gr_chan_new()
58 nvkm_wo32(chan->inst, i, 0x00080008); in nv2a_gr_chan_new()
60 nvkm_wo32(chan->inst, i, 0x07ff0000); in nv2a_gr_chan_new()
85 nvkm_wo32(chan->inst, i, 0x001c527c); in nv2a_gr_chan_new()
[all …]
/linux/drivers/soc/mediatek/
A Dmtk-cmdq-helper.c172 *cmd_ptr = inst; in cmdq_pkt_append_command()
183 inst.value = value; in cmdq_pkt_write()
200 inst.mask = ~mask; in cmdq_pkt_write_mask()
250 inst.mask = ~mask; in cmdq_pkt_write_s_mask()
255 inst.mask = 0; in cmdq_pkt_write_s_mask()
274 inst.value = value; in cmdq_pkt_write_s_value()
287 inst.mask = ~mask; in cmdq_pkt_write_s_mask_value()
295 inst.value = value; in cmdq_pkt_write_s_mask_value()
311 inst.event = event; in cmdq_pkt_wfe()
326 inst.event = event; in cmdq_pkt_clear_event()
[all …]
/linux/drivers/net/ethernet/microchip/sparx5/
A Dsparx5_ethtool.c243 spx5_inst_rd(inst, in sparx5_get_dev_phy_stats()
246 spx5_inst_rd(inst, in sparx5_get_dev_phy_stats()
272 spx5_inst_rd(inst, in sparx5_get_dev_mac_stats()
275 spx5_inst_rd(inst, in sparx5_get_dev_mac_stats()
278 spx5_inst_rd(inst, in sparx5_get_dev_mac_stats()
510 void __iomem *inst; in sparx5_get_device_stats() local
817 void __iomem *inst; in sparx5_get_eth_phy_stats() local
842 void __iomem *inst; in sparx5_get_eth_mac_stats() local
910 void __iomem *inst; in sparx5_get_eth_mac_ctrl_stats() local
942 void __iomem *inst; in sparx5_get_eth_rmon_stats() local
[all …]
/linux/drivers/gpu/drm/nouveau/include/nvkm/engine/
A Dgr.h17 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 …]
/linux/arch/arm64/kernel/
A Dkuser32.S30 .inst 0x03330001 // teqeq r3, #1
31 .inst 0x0afffff9 // beq 1b
32 .inst 0xf57ff05b // dmb ish
35 .inst 0xe12fff1e // bx lr
39 .inst 0xf57ff05b // dmb ish
40 .inst 0xe12fff1e // bx lr
47 .inst 0x03330001 // teqeq r3, #1
48 .inst 0x0afffffa // beq 1b
49 .inst 0xf57ff05b // dmb ish
51 .inst 0xe12fff1e // bx lr
[all …]
/linux/arch/powerpc/kernel/
A Dkvm.c73 *inst = new_inst; in kvm_patch_ins()
74 flush_icache_range((ulong)inst, (ulong)inst + 4); in kvm_patch_ins()
116 kvm_patch_ins(inst, KVM_INST_NOP); in kvm_patch_ins_nop()
168 next_inst = ((ulong)inst + 4); in kvm_patch_ins_mtmsrd()
221 next_inst = ((ulong)inst + 4); in kvm_patch_ins_mtmsr()
282 next_inst = ((ulong)inst + 4); in kvm_patch_ins_wrtee()
339 next_inst = ((ulong)inst + 4); in kvm_patch_ins_wrteei_0()
380 next_inst = ((ulong)inst + 4); in kvm_patch_ins_mtsrin()
420 u32 _inst = *inst; in kvm_check_ins()
617 kvm_patch_ins_nop(inst); in kvm_check_ins()
[all …]
/linux/drivers/phy/mediatek/
A Dphy-mtk-xsphy.c125 if (inst->eye_src) in u2_phy_slew_rate_calibrate()
285 inst->efuse_intr, inst->eye_src, in phy_parse_property()
286 inst->eye_vrt, inst->eye_term); in phy_parse_property()
296 inst->efuse_intr, inst->efuse_tx_imp, in phy_parse_property()
318 if (inst->eye_src) { in u2_phy_props_set()
325 if (inst->eye_vrt) { in u2_phy_props_set()
459 if (!inst) { in mtk_phy_xlate()
473 return inst->phy; in mtk_phy_xlate()
538 inst = devm_kzalloc(dev, sizeof(*inst), GFP_KERNEL); in mtk_xsphy_probe()
539 if (!inst) { in mtk_xsphy_probe()
[all …]

Completed in 96 milliseconds

12345678910>>...38