| /linux/drivers/media/platform/qcom/venus/ |
| H A D | vdec.c | 117 find_format(struct venus_inst *inst, u32 pixfmt, u32 type) in find_format() argument 132 !venus_helper_check_codec(inst, fmt[i].pixfmt)) in find_format() 136 !venus_helper_check_format(inst, fmt[i].pixfmt)) in find_format() 140 !(inst->bit_depth == VIDC_BITDEPTH_10)) in find_format() 147 find_format_by_index(struct venus_inst *inst, unsigned int index, u32 type) in find_format_by_index() argument 163 valid = venus_helper_check_codec(inst, fmt[i].pixfmt); in find_format_by_index() 165 valid = venus_helper_check_format(inst, fmt[i].pixfmt); in find_format_by_index() 168 !(inst->bit_depth == VIDC_BITDEPTH_10)) in find_format_by_index() 185 vdec_try_fmt_common(struct venus_inst *inst, struct v4l2_format *f) in vdec_try_fmt_common() argument 195 fmt = find_format(inst, pixmp->pixelformat, f->type); in vdec_try_fmt_common() [all …]
|
| H A D | venc.c | 68 find_format(struct venus_inst *inst, u32 pixfmt, u32 type) in find_format() argument 83 !venus_helper_check_codec(inst, fmt[i].pixfmt)) in find_format() 90 find_format_by_index(struct venus_inst *inst, unsigned int index, u32 type) in find_format_by_index() argument 105 venus_helper_check_codec(inst, fmt[i].pixfmt); in find_format_by_index() 147 struct venus_inst *inst = to_inst(file); in venc_querycap() local 148 struct venus_core *core = inst->core; in venc_querycap() 160 struct venus_inst *inst = to_inst(file); in venc_enum_fmt() local 163 fmt = find_format_by_index(inst, f->index, f->type); in venc_enum_fmt() 176 venc_try_fmt_common(struct venus_inst *inst, struct v4l2_format *f) in venc_try_fmt_common() argument 186 fmt = find_format(inst, pixmp->pixelformat, f->type); in venc_try_fmt_common() [all …]
|
| H A D | hfi.c | 141 static int wait_session_msg(struct venus_inst *inst) in wait_session_msg() argument 145 ret = wait_for_completion_timeout(&inst->done, TIMEOUT); in wait_session_msg() 149 if (inst->error != HFI_ERR_NONE) in wait_session_msg() 155 int hfi_session_create(struct venus_inst *inst, const struct hfi_inst_ops *ops) in hfi_session_create() argument 157 struct venus_core *core = inst->core; in hfi_session_create() 164 inst->state = INST_UNINIT; in hfi_session_create() 165 init_completion(&inst->done); in hfi_session_create() 166 inst->ops = ops; in hfi_session_create() 170 if (test_bit(0, &inst->core->sys_error)) { in hfi_session_create() 180 list_add_tail(&inst->list, &core->instances); in hfi_session_create() [all …]
|
| /linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
| H A D | vdec_h264_req_multi_if.c | 268 static int vdec_h264_slice_fill_decode_parameters(struct vdec_h264_slice_inst *inst, in vdec_h264_slice_fill_decode_parameters() argument 278 mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_DECODE_PARAMS); in vdec_h264_slice_fill_decode_parameters() 283 mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SCALING_MATRIX); in vdec_h264_slice_fill_decode_parameters() 287 sps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SPS); in vdec_h264_slice_fill_decode_parameters() 291 pps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_PPS); in vdec_h264_slice_fill_decode_parameters() 296 mtk_vdec_err(inst->ctx, "No support for H.264 field decoding."); in vdec_h264_slice_fill_decode_parameters() 297 inst->is_field_bitstream = true; in vdec_h264_slice_fill_decode_parameters() 311 static int get_vdec_sig_decode_parameters(struct vdec_h264_slice_inst *inst) in get_vdec_sig_decode_parameters() argument 317 struct vdec_h264_slice_lat_dec_param *slice_param = &inst->h264_slice_param; in get_vdec_sig_decode_parameters() 327 mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_DECODE_PARAMS); in get_vdec_sig_decode_parameters() [all …]
|
| H A D | vdec_vp8_req_if.c | 117 static void vdec_vp8_slice_get_pic_info(struct vdec_vp8_slice_inst *inst) in vdec_vp8_slice_get_pic_info() argument 119 struct mtk_vcodec_dec_ctx *ctx = inst->ctx; in vdec_vp8_slice_get_pic_info() 125 vpu_dec_get_param(&inst->vpu, data, 3, GET_PARAM_PIC_INFO); in vdec_vp8_slice_get_pic_info() 129 ctx->picinfo.fb_sz[0] = inst->vpu.fb_sz[0]; in vdec_vp8_slice_get_pic_info() 130 ctx->picinfo.fb_sz[1] = inst->vpu.fb_sz[1]; in vdec_vp8_slice_get_pic_info() 132 inst->vsi->pic.pic_w = ctx->picinfo.pic_w; in vdec_vp8_slice_get_pic_info() 133 inst->vsi->pic.pic_h = ctx->picinfo.pic_h; in vdec_vp8_slice_get_pic_info() 134 inst->vsi->pic.buf_w = ctx->picinfo.buf_w; in vdec_vp8_slice_get_pic_info() 135 inst->vsi->pic.buf_h = ctx->picinfo.buf_h; in vdec_vp8_slice_get_pic_info() 136 inst->vsi->pic.fb_sz[0] = ctx->picinfo.fb_sz[0]; in vdec_vp8_slice_get_pic_info() [all …]
|
| H A D | vdec_vp8_if.c | 165 static void get_hw_reg_base(struct vdec_vp8_inst *inst) in get_hw_reg_base() argument 167 void __iomem **reg_base = inst->ctx->dev->reg_base; in get_hw_reg_base() 169 inst->reg_base.top = mtk_vcodec_get_reg_addr(reg_base, VDEC_TOP); in get_hw_reg_base() 170 inst->reg_base.cm = mtk_vcodec_get_reg_addr(reg_base, VDEC_CM); in get_hw_reg_base() 171 inst->reg_base.hwd = mtk_vcodec_get_reg_addr(reg_base, VDEC_HWD); in get_hw_reg_base() 172 inst->reg_base.misc = mtk_vcodec_get_reg_addr(reg_base, VDEC_MISC); in get_hw_reg_base() 173 inst->reg_base.ld = mtk_vcodec_get_reg_addr(reg_base, VDEC_LD); in get_hw_reg_base() 174 inst->reg_base.hwb = mtk_vcodec_get_reg_addr(reg_base, VDEC_HWB); in get_hw_reg_base() 177 static void write_hw_segmentation_data(struct vdec_vp8_inst *inst) in write_hw_segmentation_data() argument 182 void __iomem *cm = inst->reg_base.cm; in write_hw_segmentation_data() [all …]
|
| H A D | vdec_h264_req_if.c | 96 static int get_vdec_decode_parameters(struct vdec_h264_slice_inst *inst) in get_vdec_decode_parameters() argument 102 struct mtk_h264_dec_slice_param *slice_param = &inst->h264_slice_param; in get_vdec_decode_parameters() 112 mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_DECODE_PARAMS); in get_vdec_decode_parameters() 116 sps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SPS); in get_vdec_decode_parameters() 120 pps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_PPS); in get_vdec_decode_parameters() 125 mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SCALING_MATRIX); in get_vdec_decode_parameters() 129 mtk_vdec_h264_update_dpb(dec_params, inst->dpb); in get_vdec_decode_parameters() 135 dec_params, inst->dpb); in get_vdec_decode_parameters() 136 mtk_vdec_h264_fill_dpb_info(inst->ctx, &slice_param->decode_params, in get_vdec_decode_parameters() 141 inst->dpb); in get_vdec_decode_parameters() [all …]
|
| H A D | vdec_h264_if.c | 139 static int allocate_prediction_buf(struct vdec_h264_inst *inst) in allocate_prediction_buf() argument 143 inst->pred_buf.size = BUF_PREDICTION_SZ; in allocate_prediction_buf() 144 err = mtk_vcodec_mem_alloc(inst->ctx, &inst->pred_buf); in allocate_prediction_buf() 146 mtk_vdec_err(inst->ctx, "failed to allocate ppl buf"); in allocate_prediction_buf() 150 inst->vsi->pred_buf_dma = inst->pred_buf.dma_addr; in allocate_prediction_buf() 154 static void free_prediction_buf(struct vdec_h264_inst *inst) in free_prediction_buf() argument 158 inst->vsi->pred_buf_dma = 0; in free_prediction_buf() 159 mem = &inst->pred_buf; in free_prediction_buf() 161 mtk_vcodec_mem_free(inst->ctx, mem); in free_prediction_buf() 164 static int alloc_mv_buf(struct vdec_h264_inst *inst, struct vdec_pic_info *pic) in alloc_mv_buf() argument [all …]
|
| /linux/drivers/media/platform/chips-media/wave5/ |
| H A D | wave5-vpu-dec.c | 108 static int switch_state(struct vpu_instance *inst, enum vpu_instance_state state) in switch_state() argument 114 if (inst->state != VPU_INST_STATE_NONE) in switch_state() 118 if (inst->state != VPU_INST_STATE_OPEN && inst->state != VPU_INST_STATE_STOP) in switch_state() 122 if (inst->state != VPU_INST_STATE_INIT_SEQ) in switch_state() 130 state_to_str(inst->state), state_to_str(state)); in switch_state() 133 dev_dbg(inst->dev->dev, "Switch state from %s to %s.\n", in switch_state() 134 state_to_str(inst->state), state_to_str(state)); in switch_state() 135 inst->state = state; in switch_state() 139 static int set_instance_state(struct vpu_instance *inst, enum vpu_instance_state state) in set_instance_state() argument 144 spin_lock_irqsave(&inst->state_spinlock, flags); in set_instance_state() [all …]
|
| H A D | wave5-vpu-enc.c | 96 static int switch_state(struct vpu_instance *inst, enum vpu_instance_state state) in switch_state() argument 102 if (inst->state != VPU_INST_STATE_NONE) in switch_state() 106 if (inst->state != VPU_INST_STATE_OPEN && inst->state != VPU_INST_STATE_STOP) in switch_state() 110 if (inst->state != VPU_INST_STATE_INIT_SEQ) in switch_state() 117 dev_dbg(inst->dev->dev, "Switch state from %s to %s.\n", in switch_state() 118 state_to_str(inst->state), state_to_str(state)); in switch_state() 119 inst->state = state; in switch_state() 124 state_to_str(inst->state), state_to_str(state)); in switch_state() 128 static int start_encode(struct vpu_instance *inst, u32 *fail_res) in start_encode() argument 130 struct v4l2_m2m_ctx *m2m_ctx = inst->v4l2_fh.m2m_ctx; in start_encode() [all …]
|
| /linux/drivers/media/platform/mediatek/vcodec/encoder/venc/ |
| H A D | venc_h264_if.c | 226 static inline u32 h264_read_reg(struct venc_h264_inst *inst, u32 addr) in h264_read_reg() argument 228 return readl(inst->hw_base + addr); in h264_read_reg() 231 static unsigned int h264_get_profile(struct venc_h264_inst *inst, in h264_get_profile() argument 242 mtk_venc_err(inst->ctx, "unsupported CONSTRAINED_BASELINE"); in h264_get_profile() 245 mtk_venc_err(inst->ctx, "unsupported EXTENDED"); in h264_get_profile() 248 mtk_venc_debug(inst->ctx, "unsupported profile %d", profile); in h264_get_profile() 253 static unsigned int h264_get_level(struct venc_h264_inst *inst, in h264_get_level() argument 258 mtk_venc_err(inst->ctx, "unsupported 1B"); in h264_get_level() 291 mtk_venc_debug(inst->ctx, "unsupported level %d", level); in h264_get_level() 296 static void h264_enc_free_work_buf(struct venc_h264_inst *inst) in h264_enc_free_work_buf() argument [all …]
|
| H A D | venc_vp8_if.c | 134 static inline u32 vp8_enc_read_reg(struct venc_vp8_inst *inst, u32 addr) in vp8_enc_read_reg() argument 136 return readl(inst->hw_base + addr); in vp8_enc_read_reg() 139 static void vp8_enc_free_work_buf(struct venc_vp8_inst *inst) in vp8_enc_free_work_buf() argument 145 if (inst->work_bufs[i].size == 0) in vp8_enc_free_work_buf() 147 mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]); in vp8_enc_free_work_buf() 151 static int vp8_enc_alloc_work_buf(struct venc_vp8_inst *inst) in vp8_enc_alloc_work_buf() argument 155 struct venc_vp8_vpu_buf *wb = inst->vsi->work_bufs; in vp8_enc_alloc_work_buf() 170 inst->work_bufs[i].size = wb[i].size; in vp8_enc_alloc_work_buf() 171 ret = mtk_vcodec_mem_alloc(inst->ctx, &inst->work_bufs[i]); in vp8_enc_alloc_work_buf() 173 mtk_venc_err(inst->ctx, "cannot alloc work_bufs[%d]", i); in vp8_enc_alloc_work_buf() [all …]
|
| /linux/drivers/media/platform/amphion/ |
| H A D | vpu_cmds.c | 80 static struct vpu_cmd_t *vpu_alloc_cmd(struct vpu_inst *inst, u32 id, void *data) in vpu_alloc_cmd() argument 97 ret = vpu_iface_pack_cmd(inst->core, cmd->pkt, inst->id, id, data); in vpu_alloc_cmd() 99 dev_err(inst->dev, "iface pack cmd %s fail\n", vpu_id_name(id)); in vpu_alloc_cmd() 124 static int vpu_session_process_cmd(struct vpu_inst *inst, struct vpu_cmd_t *cmd) in vpu_session_process_cmd() argument 128 dev_dbg(inst->dev, "[%d]send cmd %s\n", inst->id, vpu_id_name(cmd->id)); in vpu_session_process_cmd() 129 vpu_iface_pre_send_cmd(inst); in vpu_session_process_cmd() 130 ret = vpu_cmd_send(inst->core, cmd->pkt); in vpu_session_process_cmd() 132 vpu_iface_post_send_cmd(inst); in vpu_session_process_cmd() 133 vpu_inst_record_flow(inst, cmd->id); in vpu_session_process_cmd() 135 dev_err(inst->dev, "[%d] iface send cmd %s fail\n", inst->id, vpu_id_name(cmd->id)); in vpu_session_process_cmd() [all …]
|
| H A D | vdec.c | 202 struct vpu_inst *inst = ctrl_to_inst(ctrl); in vdec_op_s_ctrl() local 203 struct vdec_t *vdec = inst->priv; in vdec_op_s_ctrl() 226 static int vdec_ctrl_init(struct vpu_inst *inst) in vdec_ctrl_init() argument 231 ret = v4l2_ctrl_handler_init(&inst->ctrl_handler, 20); in vdec_ctrl_init() 235 v4l2_ctrl_new_std(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init() 239 v4l2_ctrl_new_std(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init() 243 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, NULL, in vdec_ctrl_init() 253 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, NULL, in vdec_ctrl_init() 259 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, NULL, in vdec_ctrl_init() 266 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, NULL, in vdec_ctrl_init() [all …]
|
| H A D | vpu_msgs.c | 25 void (*done)(struct vpu_inst *inst, struct vpu_rpc_event *pkt); 29 static void vpu_session_handle_start_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_start_done() argument 31 vpu_trace(inst->dev, "[%d]\n", inst->id); in vpu_session_handle_start_done() 34 static void vpu_session_handle_mem_request(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_mem_request() argument 38 vpu_iface_unpack_msg_data(inst->core, pkt, (void *)&req_data); in vpu_session_handle_mem_request() 39 vpu_trace(inst->dev, "[%d] %d:%d %d:%d %d:%d\n", in vpu_session_handle_mem_request() 40 inst->id, in vpu_session_handle_mem_request() 47 vpu_inst_lock(inst); in vpu_session_handle_mem_request() 48 call_void_vop(inst, mem_request, in vpu_session_handle_mem_request() 55 vpu_inst_unlock(inst); in vpu_session_handle_mem_request() [all …]
|
| /linux/drivers/media/platform/qcom/iris/ |
| H A D | iris_hfi_gen2_command.c | 92 static u32 iris_hfi_gen2_get_port(struct iris_inst *inst, u32 plane) in iris_hfi_gen2_get_port() argument 94 if (inst->domain == DECODER) { in iris_hfi_gen2_get_port() 115 static u32 iris_hfi_gen2_get_port_from_buf_type(struct iris_inst *inst, in iris_hfi_gen2_get_port_from_buf_type() argument 118 if (inst->domain == DECODER) { in iris_hfi_gen2_get_port_from_buf_type() 153 static int iris_hfi_gen2_session_set_property(struct iris_inst *inst, u32 packet_type, u32 flag, in iris_hfi_gen2_session_set_property() argument 157 struct iris_inst_hfi_gen2 *inst_hfi_gen2 = to_iris_inst_hfi_gen2(inst); in iris_hfi_gen2_session_set_property() 159 iris_hfi_gen2_packet_session_property(inst, in iris_hfi_gen2_session_set_property() 167 return iris_hfi_queue_cmd_write(inst->core, inst_hfi_gen2->packet, in iris_hfi_gen2_session_set_property() 171 static int iris_hfi_gen2_set_raw_resolution(struct iris_inst *inst, u32 plane) in iris_hfi_gen2_set_raw_resolution() argument 173 u32 resolution = inst->enc_raw_width << 16 | inst->enc_raw_height; in iris_hfi_gen2_set_raw_resolution() [all …]
|
| H A D | iris_state.c | 10 static bool iris_allow_inst_state_change(struct iris_inst *inst, in iris_allow_inst_state_change() argument 13 switch (inst->state) { in iris_allow_inst_state_change() 47 int iris_inst_change_state(struct iris_inst *inst, in iris_inst_change_state() argument 50 if (inst->state == IRIS_INST_ERROR) in iris_inst_change_state() 53 if (inst->state == request_state) in iris_inst_change_state() 59 if (!iris_allow_inst_state_change(inst, request_state)) in iris_inst_change_state() 63 inst->state = request_state; in iris_inst_change_state() 64 dev_dbg(inst->core->dev, "state changed from %x to %x\n", in iris_inst_change_state() 65 inst->state, request_state); in iris_inst_change_state() 70 int iris_inst_state_change_streamon(struct iris_inst *inst, u32 plane) in iris_inst_state_change_streamon() argument [all …]
|
| H A D | iris_common.c | 30 void iris_set_ts_metadata(struct iris_inst *inst, struct vb2_v4l2_buffer *vbuf) in iris_set_ts_metadata() argument 36 if (inst->metadata_idx >= ARRAY_SIZE(inst->tss)) in iris_set_ts_metadata() 37 inst->metadata_idx = 0; in iris_set_ts_metadata() 41 inst->tss[inst->metadata_idx].flags = vbuf->flags & mask; in iris_set_ts_metadata() 42 inst->tss[inst->metadata_idx].tc = vbuf->timecode; in iris_set_ts_metadata() 43 inst->tss[inst->metadata_idx].ts_us = ts_us; in iris_set_ts_metadata() 44 inst->tss[inst->metadata_idx].ts_ns = vb->timestamp; in iris_set_ts_metadata() 46 inst->metadata_idx++; in iris_set_ts_metadata() 49 int iris_process_streamon_input(struct iris_inst *inst) in iris_process_streamon_input() argument 51 const struct iris_hfi_command_ops *hfi_ops = inst->core->hfi_ops; in iris_process_streamon_input() [all …]
|
| H A D | iris_vdec.c | 19 int iris_vdec_inst_init(struct iris_inst *inst) in iris_vdec_inst_init() argument 21 struct iris_core *core = inst->core; in iris_vdec_inst_init() 24 inst->fmt_src = kzalloc_obj(*inst->fmt_src); in iris_vdec_inst_init() 25 inst->fmt_dst = kzalloc_obj(*inst->fmt_dst); in iris_vdec_inst_init() 27 inst->fw_min_count = MIN_BUFFERS; in iris_vdec_inst_init() 29 f = inst->fmt_src; in iris_vdec_inst_init() 34 inst->codec = f->fmt.pix_mp.pixelformat; in iris_vdec_inst_init() 37 f->fmt.pix_mp.plane_fmt[0].sizeimage = iris_get_buffer_size(inst, BUF_INPUT); in iris_vdec_inst_init() 39 inst->buffers[BUF_INPUT].min_count = iris_vpu_buf_count(inst, BUF_INPUT); in iris_vdec_inst_init() 40 inst->buffers[BUF_INPUT].size = f->fmt.pix_mp.plane_fmt[0].sizeimage; in iris_vdec_inst_init() [all …]
|
| H A D | iris_venc.c | 17 int iris_venc_inst_init(struct iris_inst *inst) in iris_venc_inst_init() argument 19 struct iris_core *core = inst->core; in iris_venc_inst_init() 22 inst->fmt_src = kzalloc_obj(*inst->fmt_src); in iris_venc_inst_init() 23 inst->fmt_dst = kzalloc_obj(*inst->fmt_dst); in iris_venc_inst_init() 24 if (!inst->fmt_src || !inst->fmt_dst) { in iris_venc_inst_init() 25 kfree(inst->fmt_src); in iris_venc_inst_init() 26 kfree(inst->fmt_dst); in iris_venc_inst_init() 30 f = inst->fmt_dst; in iris_venc_inst_init() 35 inst->codec = f->fmt.pix_mp.pixelformat; in iris_venc_inst_init() 38 f->fmt.pix_mp.plane_fmt[0].sizeimage = iris_get_buffer_size(inst, BUF_OUTPUT); in iris_venc_inst_init() [all …]
|
| /linux/arch/arm/vfp/ |
| H A D | vfpinstr.h | 10 #define INST_CPRTDO(inst) (((inst) & 0x0f000000) == 0x0e000000) argument 11 #define INST_CPRT(inst) ((inst) & (1 << 4)) argument 12 #define INST_CPRT_L(inst) ((inst) & (1 << 20)) argument 13 #define INST_CPRT_Rd(inst) (((inst) & (15 << 12)) >> 12) 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 52 #define vfp_get_dd(inst) ((inst & 0x0000f000) >> 12 | (inst & (1 << 22)) >> 18) argument [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/mpc/dcn32/ |
| H A D | dcn32_mpc.h | 34 #define MPC_REG_LIST_DCN3_2(inst) \ argument 35 MPC_REG_LIST_DCN3_0(inst),\ 36 SRII(MPCC_MOVABLE_CM_LOCATION_CONTROL, MPCC, 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),\ 42 SRII(MPCC_MCM_SHAPER_SCALE_G_B, MPCC_MCM, inst),\ 43 SRII(MPCC_MCM_SHAPER_LUT_INDEX, MPCC_MCM, inst),\ [all …]
|
| /linux/net/netfilter/ |
| H A D | nfnetlink_log.c | 109 struct nfulnl_instance *inst; in __instance_lookup() local 112 hlist_for_each_entry_rcu(inst, head, hlist) { in __instance_lookup() 113 if (inst->group_num == group_num) in __instance_lookup() 114 return inst; in __instance_lookup() 120 instance_get(struct nfulnl_instance *inst) in instance_get() argument 122 refcount_inc(&inst->use); in instance_get() 128 struct nfulnl_instance *inst; in instance_lookup_get_rcu() local 130 inst = __instance_lookup(log, group_num); in instance_lookup_get_rcu() 131 if (inst && !refcount_inc_not_zero(&inst in instance_lookup_get_rcu() 140 struct nfulnl_instance *inst; instance_lookup_get() local 151 struct nfulnl_instance *inst = nfulnl_instance_free_rcu() local 160 instance_put(struct nfulnl_instance * inst) instance_put() argument 172 struct nfulnl_instance *inst; instance_create() local 229 __instance_destroy(struct nfulnl_instance * inst) __instance_destroy() argument 251 instance_destroy(struct nfnl_log_net * log,struct nfulnl_instance * inst) instance_destroy() argument 259 nfulnl_set_mode(struct nfulnl_instance * inst,u_int8_t mode,unsigned int range) nfulnl_set_mode() argument 292 nfulnl_set_nlbufsiz(struct nfulnl_instance * inst,u_int32_t nlbufsiz) nfulnl_set_nlbufsiz() argument 311 nfulnl_set_timeout(struct nfulnl_instance * inst,u_int32_t timeout) nfulnl_set_timeout() argument 319 nfulnl_set_qthresh(struct nfulnl_instance * inst,u_int32_t qthresh) nfulnl_set_qthresh() argument 327 nfulnl_set_flags(struct nfulnl_instance * inst,u_int16_t flags) nfulnl_set_flags() argument 361 __nfulnl_send(struct nfulnl_instance * inst) __nfulnl_send() argument 381 __nfulnl_flush(struct nfulnl_instance * inst) __nfulnl_flush() argument 393 struct nfulnl_instance *inst = timer_container_of(inst, t, timer); nfulnl_timer() local 421 nfulnl_put_bridge(struct nfulnl_instance * inst,const struct sk_buff * skb) nfulnl_put_bridge() argument 457 __build_packet_message(struct nfnl_log_net * log,struct nfulnl_instance * inst,const struct sk_buff * skb,unsigned int data_len,u_int8_t pf,unsigned int hooknum,const struct net_device * indev,const struct net_device * outdev,const char * prefix,unsigned int plen,const struct nfnl_ct_hook * nfnl_ct,struct nf_conn * ct,enum ip_conntrack_info ctinfo) __build_packet_message() argument 691 struct nfulnl_instance *inst; nfulnl_log_packet() local 839 struct nfulnl_instance *inst; nfulnl_rcv_nl_event() local 884 struct nfulnl_instance *inst; nfulnl_recv_config() local 1093 const struct nfulnl_instance *inst = v; seq_show() local [all...] |
| /linux/arch/powerpc/include/asm/ |
| H A D | disassemble.h | 14 static inline unsigned int get_op(u32 inst) in get_op() argument 16 return inst >> 26; in get_op() 19 static inline unsigned int get_xop(u32 inst) in get_xop() argument 21 return (inst >> 1) & 0x3ff; in get_xop() 24 static inline unsigned int get_sprn(u32 inst) in get_sprn() argument 26 return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); in get_sprn() 29 static inline unsigned int get_dcrn(u32 inst) in get_dcrn() argument 31 return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); in get_dcrn() 34 static inline unsigned int get_tmrn(u32 inst) in get_tmrn() argument 36 return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); in get_tmrn() [all …]
|
| /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() 42 nvkm_wo32(chan->inst, 0x0028, 0x00000001 | (chan->chid << 24)); in nv25_gr_chan_new() 43 nvkm_wo32(chan->inst, 0x035c, 0xffff0000); in nv25_gr_chan_new() 44 nvkm_wo32(chan->inst, 0x03c0, 0x0fff0000); in nv25_gr_chan_new() 45 nvkm_wo32(chan->inst, 0x03c4, 0x0fff0000); in nv25_gr_chan_new() 46 nvkm_wo32(chan->inst, 0x049c, 0x00000101); in nv25_gr_chan_new() 47 nvkm_wo32(chan->inst, 0x04b0, 0x00000111); in nv25_gr_chan_new() 48 nvkm_wo32(chan->inst, 0x04c8, 0x00000080); in nv25_gr_chan_new() 49 nvkm_wo32(chan->inst, 0x04cc, 0xffff0000); in nv25_gr_chan_new() [all …]
|