/Linux-v4.19/drivers/media/platform/mtk-vcodec/venc/ |
D | venc_h264_if.c | 157 static inline u32 h264_read_reg(struct venc_h264_inst *inst, u32 addr) in h264_read_reg() argument 159 return readl(inst->hw_base + addr); in h264_read_reg() 162 static unsigned int h264_get_profile(struct venc_h264_inst *inst, in h264_get_profile() argument 173 mtk_vcodec_err(inst, "unsupported CONSTRAINED_BASELINE"); in h264_get_profile() 176 mtk_vcodec_err(inst, "unsupported EXTENDED"); in h264_get_profile() 179 mtk_vcodec_debug(inst, "unsupported profile %d", profile); in h264_get_profile() 184 static unsigned int h264_get_level(struct venc_h264_inst *inst, in h264_get_level() argument 189 mtk_vcodec_err(inst, "unsupported 1B"); in h264_get_level() 218 mtk_vcodec_debug(inst, "unsupported level %d", level); in h264_get_level() 223 static void h264_enc_free_work_buf(struct venc_h264_inst *inst) in h264_enc_free_work_buf() argument [all …]
|
D | venc_vp8_if.c | 145 static inline u32 vp8_enc_read_reg(struct venc_vp8_inst *inst, u32 addr) in vp8_enc_read_reg() argument 147 return readl(inst->hw_base + addr); in vp8_enc_read_reg() 150 static void vp8_enc_free_work_buf(struct venc_vp8_inst *inst) in vp8_enc_free_work_buf() argument 154 mtk_vcodec_debug_enter(inst); in vp8_enc_free_work_buf() 158 if (inst->work_bufs[i].size == 0) in vp8_enc_free_work_buf() 160 mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]); in vp8_enc_free_work_buf() 163 mtk_vcodec_debug_leave(inst); in vp8_enc_free_work_buf() 166 static int vp8_enc_alloc_work_buf(struct venc_vp8_inst *inst) in vp8_enc_alloc_work_buf() argument 170 struct venc_vp8_vpu_buf *wb = inst->vsi->work_bufs; in vp8_enc_alloc_work_buf() 172 mtk_vcodec_debug_enter(inst); in vp8_enc_alloc_work_buf() [all …]
|
/Linux-v4.19/drivers/media/platform/mtk-vcodec/vdec/ |
D | vdec_vp9_if.c | 210 static bool vp9_is_sf_ref_fb(struct vdec_vp9_inst *inst, struct vdec_fb *fb) in vp9_is_sf_ref_fb() argument 213 struct vdec_vp9_vsi *vsi = inst->vsi; in vp9_is_sf_ref_fb() 223 *inst, void *addr) in vp9_rm_from_fb_use_list() 228 list_for_each_entry(node, &inst->fb_use_list, list) { in vp9_rm_from_fb_use_list() 232 &inst->available_fb_node_list); in vp9_rm_from_fb_use_list() 239 static void vp9_add_to_fb_free_list(struct vdec_vp9_inst *inst, in vp9_add_to_fb_free_list() argument 245 node = list_first_entry_or_null(&inst->available_fb_node_list, in vp9_add_to_fb_free_list() 250 list_move_tail(&node->list, &inst->fb_free_list); in vp9_add_to_fb_free_list() 253 mtk_vcodec_debug(inst, "No free fb node"); in vp9_add_to_fb_free_list() 265 static void vp9_ref_cnt_fb(struct vdec_vp9_inst *inst, int *idx, in vp9_ref_cnt_fb() argument [all …]
|
D | vdec_vp8_if.c | 176 static void get_hw_reg_base(struct vdec_vp8_inst *inst) in get_hw_reg_base() argument 178 inst->reg_base.top = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_TOP); in get_hw_reg_base() 179 inst->reg_base.cm = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_CM); in get_hw_reg_base() 180 inst->reg_base.hwd = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_HWD); in get_hw_reg_base() 181 inst->reg_base.sys = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_SYS); in get_hw_reg_base() 182 inst->reg_base.misc = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_MISC); in get_hw_reg_base() 183 inst->reg_base.ld = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_LD); in get_hw_reg_base() 184 inst->reg_base.hwb = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_HWB); in get_hw_reg_base() 187 static void write_hw_segmentation_data(struct vdec_vp8_inst *inst) in write_hw_segmentation_data() argument 192 void __iomem *cm = inst->reg_base.cm; in write_hw_segmentation_data() [all …]
|
D | vdec_h264_if.c | 145 static int allocate_predication_buf(struct vdec_h264_inst *inst) in allocate_predication_buf() argument 149 inst->pred_buf.size = BUF_PREDICTION_SZ; in allocate_predication_buf() 150 err = mtk_vcodec_mem_alloc(inst->ctx, &inst->pred_buf); in allocate_predication_buf() 152 mtk_vcodec_err(inst, "failed to allocate ppl buf"); in allocate_predication_buf() 156 inst->vsi->pred_buf_dma = inst->pred_buf.dma_addr; in allocate_predication_buf() 160 static void free_predication_buf(struct vdec_h264_inst *inst) in free_predication_buf() argument 164 mtk_vcodec_debug_enter(inst); in free_predication_buf() 166 inst->vsi->pred_buf_dma = 0; in free_predication_buf() 167 mem = &inst->pred_buf; in free_predication_buf() 169 mtk_vcodec_mem_free(inst->ctx, mem); in free_predication_buf() [all …]
|
/Linux-v4.19/arch/arm/vfp/ |
D | vfpinstr.h | 13 #define INST_CPRTDO(inst) (((inst) & 0x0f000000) == 0x0e000000) argument 14 #define INST_CPRT(inst) ((inst) & (1 << 4)) argument 15 #define INST_CPRT_L(inst) ((inst) & (1 << 20)) argument 16 #define INST_CPRT_Rd(inst) (((inst) & (15 << 12)) >> 12) argument 17 #define INST_CPRT_OP(inst) (((inst) >> 21) & 7) argument 18 #define INST_CPNUM(inst) ((inst) & 0xf00) argument 33 #define FOP_TO_IDX(inst) ((inst & 0x00b00000) >> 20 | (inst & (1 << 6)) >> 4) argument 52 #define FEXT_TO_IDX(inst) ((inst & 0x000f0000) >> 15 | (inst & (1 << 7)) >> 7) argument 54 #define vfp_get_sd(inst) ((inst & 0x0000f000) >> 11 | (inst & (1 << 22)) >> 22) argument 55 #define vfp_get_dd(inst) ((inst & 0x0000f000) >> 12 | (inst & (1 << 22)) >> 18) argument [all …]
|
/Linux-v4.19/drivers/media/platform/qcom/venus/ |
D | vdec.c | 89 find_format(struct venus_inst *inst, u32 pixfmt, u32 type) in find_format() argument 104 !venus_helper_check_codec(inst, fmt[i].pixfmt)) in find_format() 111 find_format_by_index(struct venus_inst *inst, unsigned int index, u32 type) in find_format_by_index() argument 126 venus_helper_check_codec(inst, fmt[i].pixfmt); in find_format_by_index() 140 vdec_try_fmt_common(struct venus_inst *inst, struct v4l2_format *f) in vdec_try_fmt_common() argument 149 fmt = find_format(inst, pixmp->pixelformat, f->type); in vdec_try_fmt_common() 157 fmt = find_format(inst, pixmp->pixelformat, f->type); in vdec_try_fmt_common() 160 pixmp->width = clamp(pixmp->width, frame_width_min(inst), in vdec_try_fmt_common() 161 frame_width_max(inst)); in vdec_try_fmt_common() 162 pixmp->height = clamp(pixmp->height, frame_height_min(inst), in vdec_try_fmt_common() [all …]
|
D | hfi.c | 170 static int wait_session_msg(struct venus_inst *inst) in wait_session_msg() argument 174 ret = wait_for_completion_timeout(&inst->done, TIMEOUT); in wait_session_msg() 178 if (inst->error != HFI_ERR_NONE) in wait_session_msg() 184 int hfi_session_create(struct venus_inst *inst, const struct hfi_inst_ops *ops) in hfi_session_create() argument 186 struct venus_core *core = inst->core; in hfi_session_create() 191 inst->state = INST_UNINIT; in hfi_session_create() 192 init_completion(&inst->done); in hfi_session_create() 193 inst->ops = ops; in hfi_session_create() 196 list_add_tail(&inst->list, &core->instances); in hfi_session_create() 204 int hfi_session_init(struct venus_inst *inst, u32 pixfmt) in hfi_session_init() argument [all …]
|
D | venc.c | 71 find_format(struct venus_inst *inst, u32 pixfmt, u32 type) in find_format() argument 86 !venus_helper_check_codec(inst, fmt[i].pixfmt)) in find_format() 93 find_format_by_index(struct venus_inst *inst, unsigned int index, u32 type) in find_format_by_index() argument 108 venus_helper_check_codec(inst, fmt[i].pixfmt); in find_format_by_index() 285 struct venus_inst *inst = to_inst(file); in venc_enum_fmt() local 288 fmt = find_format_by_index(inst, f->index, f->type); in venc_enum_fmt() 301 venc_try_fmt_common(struct venus_inst *inst, struct v4l2_format *f) in venc_try_fmt_common() argument 310 fmt = find_format(inst, pixmp->pixelformat, f->type); in venc_try_fmt_common() 318 fmt = find_format(inst, pixmp->pixelformat, f->type); in venc_try_fmt_common() 321 pixmp->width = clamp(pixmp->width, frame_width_min(inst), in venc_try_fmt_common() [all …]
|
D | helpers.c | 39 bool venus_helper_check_codec(struct venus_inst *inst, u32 v4l2_pixfmt) in venus_helper_check_codec() argument 41 struct venus_core *core = inst->core; in venus_helper_check_codec() 42 u32 session_type = inst->session_type; in venus_helper_check_codec() 91 static int venus_helper_queue_dpb_bufs(struct venus_inst *inst) in venus_helper_queue_dpb_bufs() argument 96 list_for_each_entry(buf, &inst->dpbbufs, list) { in venus_helper_queue_dpb_bufs() 104 ret = hfi_session_process_buf(inst, &fdata); in venus_helper_queue_dpb_bufs() 113 int venus_helper_free_dpb_bufs(struct venus_inst *inst) in venus_helper_free_dpb_bufs() argument 117 list_for_each_entry_safe(buf, n, &inst->dpbbufs, list) { in venus_helper_free_dpb_bufs() 119 dma_free_attrs(inst->core->dev, buf->size, buf->va, buf->da, in venus_helper_free_dpb_bufs() 124 INIT_LIST_HEAD(&inst->dpbbufs); in venus_helper_free_dpb_bufs() [all …]
|
D | hfi_parser.h | 8 u32 hfi_parser(struct venus_core *core, struct venus_inst *inst, 15 static inline u32 get_cap(struct venus_inst *inst, u32 type, u32 which) in get_cap() argument 17 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() 50 static inline u32 cap_min(struct venus_inst *inst, u32 type) in cap_min() argument 52 return get_cap(inst, type, WHICH_CAP_MIN); in cap_min() 55 static inline u32 cap_max(struct venus_inst *inst, u32 type) in cap_max() argument 57 return get_cap(inst, type, WHICH_CAP_MAX); in cap_max() 60 static inline u32 cap_step(struct venus_inst *inst, u32 type) in cap_step() argument 62 return get_cap(inst, type, WHICH_CAP_STEP); in cap_step() [all …]
|
D | hfi.h | 109 void (*buf_done)(struct venus_inst *inst, unsigned int buf_type, 112 void (*event_notify)(struct venus_inst *inst, u32 event, 122 int (*session_init)(struct venus_inst *inst, u32 session_type, 124 int (*session_end)(struct venus_inst *inst); 125 int (*session_abort)(struct venus_inst *inst); 126 int (*session_flush)(struct venus_inst *inst, u32 flush_mode); 127 int (*session_start)(struct venus_inst *inst); 128 int (*session_stop)(struct venus_inst *inst); 129 int (*session_continue)(struct venus_inst *inst); 130 int (*session_etb)(struct venus_inst *inst, struct hfi_frame_data *fd); [all …]
|
D | hfi_msgs.c | 26 static void event_seq_changed(struct venus_core *core, struct venus_inst *inst, in event_seq_changed() argument 42 inst->error = HFI_ERR_NONE; in event_seq_changed() 49 inst->error = HFI_ERR_SESSION_INVALID_PARAMETER; in event_seq_changed() 57 inst->error = HFI_ERR_SESSION_INSUFFICIENT_RESOURCES; in event_seq_changed() 124 inst->ops->event_notify(inst, EVT_SYS_EVENT_CHANGE, &event); in event_seq_changed() 128 struct venus_inst *inst, in event_release_buffer_ref() argument 142 inst->error = HFI_ERR_NONE; in event_release_buffer_ref() 143 inst->ops->event_notify(inst, EVT_SYS_EVENT_CHANGE, &event); in event_release_buffer_ref() 159 event_session_error(struct venus_core *core, struct venus_inst *inst, in event_session_error() argument 167 if (!inst) in event_session_error() [all …]
|
D | helpers.h | 22 bool venus_helper_check_codec(struct venus_inst *inst, u32 v4l2_pixfmt); 23 struct vb2_v4l2_buffer *venus_helper_find_buf(struct venus_inst *inst, 25 void venus_helper_buffers_done(struct venus_inst *inst, 31 int venus_helper_vb2_start_streaming(struct venus_inst *inst); 34 int venus_helper_get_bufreq(struct venus_inst *inst, u32 type, 38 int venus_helper_set_input_resolution(struct venus_inst *inst, 40 int venus_helper_set_output_resolution(struct venus_inst *inst, 43 int venus_helper_set_work_mode(struct venus_inst *inst, u32 mode); 44 int venus_helper_set_core_usage(struct venus_inst *inst, u32 usage); 45 int venus_helper_set_num_bufs(struct venus_inst *inst, unsigned int input_bufs, [all …]
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | disassemble.h | 25 static inline unsigned int get_op(u32 inst) in get_op() argument 27 return inst >> 26; in get_op() 30 static inline unsigned int get_xop(u32 inst) in get_xop() argument 32 return (inst >> 1) & 0x3ff; in get_xop() 35 static inline unsigned int get_sprn(u32 inst) in get_sprn() argument 37 return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); in get_sprn() 40 static inline unsigned int get_dcrn(u32 inst) in get_dcrn() argument 42 return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); in get_dcrn() 45 static inline unsigned int get_tmrn(u32 inst) in get_tmrn() argument 47 return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); in get_tmrn() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
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 …]
|
D | nv34.c | 37 &chan->inst); in nv34_gr_chan_new() 41 nvkm_kmap(chan->inst); in nv34_gr_chan_new() 42 nvkm_wo32(chan->inst, 0x0028, 0x00000001 | (chan->chid << 24)); in nv34_gr_chan_new() 43 nvkm_wo32(chan->inst, 0x040c, 0x01000101); in nv34_gr_chan_new() 44 nvkm_wo32(chan->inst, 0x0420, 0x00000111); in nv34_gr_chan_new() 45 nvkm_wo32(chan->inst, 0x0424, 0x00000060); in nv34_gr_chan_new() 46 nvkm_wo32(chan->inst, 0x0440, 0x00000080); in nv34_gr_chan_new() 47 nvkm_wo32(chan->inst, 0x0444, 0xffff0000); in nv34_gr_chan_new() 48 nvkm_wo32(chan->inst, 0x0448, 0x00000001); in nv34_gr_chan_new() 49 nvkm_wo32(chan->inst, 0x045c, 0x44400000); in nv34_gr_chan_new() [all …]
|
D | nv35.c | 37 &chan->inst); in nv35_gr_chan_new() 41 nvkm_kmap(chan->inst); in nv35_gr_chan_new() 42 nvkm_wo32(chan->inst, 0x0028, 0x00000001 | (chan->chid << 24)); in nv35_gr_chan_new() 43 nvkm_wo32(chan->inst, 0x040c, 0x00000101); in nv35_gr_chan_new() 44 nvkm_wo32(chan->inst, 0x0420, 0x00000111); in nv35_gr_chan_new() 45 nvkm_wo32(chan->inst, 0x0424, 0x00000060); in nv35_gr_chan_new() 46 nvkm_wo32(chan->inst, 0x0440, 0x00000080); in nv35_gr_chan_new() 47 nvkm_wo32(chan->inst, 0x0444, 0xffff0000); in nv35_gr_chan_new() 48 nvkm_wo32(chan->inst, 0x0448, 0x00000001); in nv35_gr_chan_new() 49 nvkm_wo32(chan->inst, 0x045c, 0x44400000); in nv35_gr_chan_new() [all …]
|
D | nv2a.c | 37 &chan->inst); in nv2a_gr_chan_new() 41 nvkm_kmap(chan->inst); in nv2a_gr_chan_new() 42 nvkm_wo32(chan->inst, 0x0000, 0x00000001 | (chan->chid << 24)); in nv2a_gr_chan_new() 43 nvkm_wo32(chan->inst, 0x033c, 0xffff0000); in nv2a_gr_chan_new() 44 nvkm_wo32(chan->inst, 0x03a0, 0x0fff0000); in nv2a_gr_chan_new() 45 nvkm_wo32(chan->inst, 0x03a4, 0x0fff0000); in nv2a_gr_chan_new() 46 nvkm_wo32(chan->inst, 0x047c, 0x00000101); in nv2a_gr_chan_new() 47 nvkm_wo32(chan->inst, 0x0490, 0x00000111); in nv2a_gr_chan_new() 48 nvkm_wo32(chan->inst, 0x04a8, 0x44400000); in nv2a_gr_chan_new() 50 nvkm_wo32(chan->inst, i, 0x00030303); in nv2a_gr_chan_new() [all …]
|
D | nv30.c | 38 &chan->inst); in nv30_gr_chan_new() 42 nvkm_kmap(chan->inst); in nv30_gr_chan_new() 43 nvkm_wo32(chan->inst, 0x0028, 0x00000001 | (chan->chid << 24)); in nv30_gr_chan_new() 44 nvkm_wo32(chan->inst, 0x0410, 0x00000101); in nv30_gr_chan_new() 45 nvkm_wo32(chan->inst, 0x0424, 0x00000111); in nv30_gr_chan_new() 46 nvkm_wo32(chan->inst, 0x0428, 0x00000060); in nv30_gr_chan_new() 47 nvkm_wo32(chan->inst, 0x0444, 0x00000080); in nv30_gr_chan_new() 48 nvkm_wo32(chan->inst, 0x0448, 0xffff0000); in nv30_gr_chan_new() 49 nvkm_wo32(chan->inst, 0x044c, 0x00000001); in nv30_gr_chan_new() 50 nvkm_wo32(chan->inst, 0x0460, 0x44400000); in nv30_gr_chan_new() [all …]
|
/Linux-v4.19/net/netfilter/ |
D | nfnetlink_log.c | 107 struct nfulnl_instance *inst; in __instance_lookup() local 110 hlist_for_each_entry_rcu(inst, head, hlist) { in __instance_lookup() 111 if (inst->group_num == group_num) in __instance_lookup() 112 return inst; in __instance_lookup() 118 instance_get(struct nfulnl_instance *inst) in instance_get() argument 120 refcount_inc(&inst->use); in instance_get() 126 struct nfulnl_instance *inst; in instance_lookup_get() local 129 inst = __instance_lookup(log, group_num); in instance_lookup_get() 130 if (inst && !refcount_inc_not_zero(&inst->use)) in instance_lookup_get() 131 inst = NULL; in instance_lookup_get() [all …]
|
/Linux-v4.19/arch/arm64/kernel/ |
D | kuser32.S | 38 .inst 0xe92d00f0 // push {r4, r5, r6, r7} 39 .inst 0xe1c040d0 // ldrd r4, r5, [r0] 40 .inst 0xe1c160d0 // ldrd r6, r7, [r1] 41 .inst 0xe1b20f9f // 1: ldrexd r0, r1, [r2] 42 .inst 0xe0303004 // eors r3, r0, r4 43 .inst 0x00313005 // eoreqs r3, r1, r5 44 .inst 0x01a23e96 // stlexdeq r3, r6, [r2] 45 .inst 0x03330001 // teqeq r3, #1 46 .inst 0x0afffff9 // beq 1b 47 .inst 0xf57ff05b // dmb ish [all …]
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | kvm.c | 81 static inline void kvm_patch_ins(u32 *inst, u32 new_inst) in kvm_patch_ins() argument 83 *inst = new_inst; in kvm_patch_ins() 84 flush_icache_range((ulong)inst, (ulong)inst + 4); in kvm_patch_ins() 87 static void kvm_patch_ins_ll(u32 *inst, long addr, u32 rt) in kvm_patch_ins_ll() argument 90 kvm_patch_ins(inst, KVM_INST_LD | rt | (addr & 0x0000fffc)); in kvm_patch_ins_ll() 92 kvm_patch_ins(inst, KVM_INST_LWZ | rt | (addr & 0x0000fffc)); in kvm_patch_ins_ll() 96 static void kvm_patch_ins_ld(u32 *inst, long addr, u32 rt) in kvm_patch_ins_ld() argument 99 kvm_patch_ins(inst, KVM_INST_LD | rt | (addr & 0x0000fffc)); in kvm_patch_ins_ld() 101 kvm_patch_ins(inst, KVM_INST_LWZ | rt | ((addr + 4) & 0x0000fffc)); in kvm_patch_ins_ld() 105 static void kvm_patch_ins_lwz(u32 *inst, long addr, u32 rt) in kvm_patch_ins_lwz() argument [all …]
|
/Linux-v4.19/drivers/phy/mediatek/ |
D | phy-mtk-xsphy.c | 117 struct xsphy_instance *inst) in u2_phy_slew_rate_calibrate() argument 119 void __iomem *pbase = inst->port_base; in u2_phy_slew_rate_calibrate() 125 if (inst->eye_src) in u2_phy_slew_rate_calibrate() 176 inst->index, fm_out, calib_val, in u2_phy_slew_rate_calibrate() 192 struct xsphy_instance *inst) in u2_phy_instance_init() argument 194 void __iomem *pbase = inst->port_base; in u2_phy_instance_init() 208 struct xsphy_instance *inst) in u2_phy_instance_power_on() argument 210 void __iomem *pbase = inst->port_base; in u2_phy_instance_power_on() 211 u32 index = inst->index; in u2_phy_instance_power_on() 227 struct xsphy_instance *inst) in u2_phy_instance_power_off() argument [all …]
|
/Linux-v4.19/arch/arm/mach-omap2/ |
D | cm33xx.c | 51 static inline u32 am33xx_cm_read_reg(u16 inst, u16 idx) in am33xx_cm_read_reg() argument 53 return readl_relaxed(cm_base.va + inst + idx); in am33xx_cm_read_reg() 57 static inline void am33xx_cm_write_reg(u32 val, u16 inst, u16 idx) in am33xx_cm_write_reg() argument 59 writel_relaxed(val, cm_base.va + inst + idx); in am33xx_cm_write_reg() 63 static inline u32 am33xx_cm_rmw_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx) in am33xx_cm_rmw_reg_bits() argument 67 v = am33xx_cm_read_reg(inst, idx); in am33xx_cm_rmw_reg_bits() 70 am33xx_cm_write_reg(v, inst, idx); in am33xx_cm_rmw_reg_bits() 75 static inline u32 am33xx_cm_read_reg_bits(u16 inst, s16 idx, u32 mask) in am33xx_cm_read_reg_bits() argument 79 v = am33xx_cm_read_reg(inst, idx); in am33xx_cm_read_reg_bits() 94 static u32 _clkctrl_idlest(u16 inst, u16 clkctrl_offs) in _clkctrl_idlest() argument [all …]
|