Home
last modified time | relevance | path

Searched refs:tg (Results 1 – 25 of 57) sorted by relevance

123

/Linux-v5.4/block/
Dblk-throttle.c70 struct throtl_grp *tg; /* tg this qnode belongs to */ member
237 static inline struct blkcg_gq *tg_to_blkg(struct throtl_grp *tg) in tg_to_blkg() argument
239 return pd_to_blkg(&tg->pd); in tg_to_blkg()
266 struct throtl_grp *tg = sq_to_tg(sq); in sq_to_td() local
268 if (tg) in sq_to_td()
269 return tg->td; in sq_to_td()
292 static uint64_t tg_bps_limit(struct throtl_grp *tg, int rw) in tg_bps_limit() argument
294 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_bps_limit()
301 td = tg->td; in tg_bps_limit()
302 ret = tg->bps[rw][td->limit_index]; in tg_bps_limit()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_timing_generator.h117 #define DCE110TG_FROM_TG(tg)\ argument
118 container_of(tg, struct dce110_timing_generator, base)
121 struct dce110_timing_generator *tg,
128 struct timing_generator *tg,
136 struct timing_generator *tg,
140 bool dce110_timing_generator_enable_crtc(struct timing_generator *tg);
141 bool dce110_timing_generator_disable_crtc(struct timing_generator *tg);
144 struct timing_generator *tg,
151 struct timing_generator *tg);
154 struct timing_generator *tg,
[all …]
Ddce110_timing_generator.c66 struct timing_generator *tg, in dce110_timing_generator_apply_front_porch_workaround() argument
92 struct timing_generator *tg) in dce110_timing_generator_is_in_vertical_blank() argument
97 struct dce110_timing_generator *tg110 = DCE110TG_FROM_TG(tg); in dce110_timing_generator_is_in_vertical_blank()
100 value = dm_read_reg(tg->ctx, addr); in dce110_timing_generator_is_in_vertical_blank()
106 struct timing_generator *tg, in dce110_timing_generator_set_early_control() argument
110 struct dce110_timing_generator *tg110 = DCE110TG_FROM_TG(tg); in dce110_timing_generator_set_early_control()
113 regval = dm_read_reg(tg->ctx, address); in dce110_timing_generator_set_early_control()
116 dm_write_reg(tg->ctx, address, regval); in dce110_timing_generator_set_early_control()
123 bool dce110_timing_generator_enable_crtc(struct timing_generator *tg) in dce110_timing_generator_enable_crtc() argument
127 struct dce110_timing_generator *tg110 = DCE110TG_FROM_TG(tg); in dce110_timing_generator_enable_crtc()
[all …]
Ddce110_timing_generator_v.c42 tg->ctx->logger
53 static bool dce110_timing_generator_v_enable_crtc(struct timing_generator *tg) in dce110_timing_generator_v_enable_crtc() argument
65 dm_write_reg(tg->ctx, in dce110_timing_generator_v_enable_crtc()
70 dm_write_reg(tg->ctx, mmCRTCV_MASTER_UPDATE_MODE, value); in dce110_timing_generator_v_enable_crtc()
75 dm_write_reg(tg->ctx, in dce110_timing_generator_v_enable_crtc()
81 static bool dce110_timing_generator_v_disable_crtc(struct timing_generator *tg) in dce110_timing_generator_v_disable_crtc() argument
85 value = dm_read_reg(tg->ctx, in dce110_timing_generator_v_disable_crtc()
91 dm_write_reg(tg->ctx, in dce110_timing_generator_v_disable_crtc()
100 static void dce110_timing_generator_v_blank_crtc(struct timing_generator *tg) in dce110_timing_generator_v_blank_crtc() argument
103 uint32_t value = dm_read_reg(tg->ctx, addr); in dce110_timing_generator_v_blank_crtc()
[all …]
Ddce110_hw_sequencer.c661 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dce110_enable_stream() local
684 tg->funcs->set_early_control(tg, early_control); in dce110_enable_stream()
1184 pipe_ctx->stream_res.tg->inst + 1); in build_audio_output()
1196 uint32_t color_value = MAX_TG_COLOR_VALUE * (4 - pipe_ctx->stream_res.tg->inst) / 4; in get_surface_visual_confirm_color()
1251 if (pipe_ctx->stream_res.tg->funcs->set_overscan_blank_color) { in program_scaler()
1260 pipe_ctx->stream_res.tg->funcs->set_overscan_blank_color( in program_scaler()
1261 pipe_ctx->stream_res.tg, in program_scaler()
1284 pipe_ctx->stream_res.tg->funcs->set_blank_color( in dce110_enable_stream_timing()
1285 pipe_ctx->stream_res.tg, in dce110_enable_stream_timing()
1292 pipe_ctx->stream_res.tg->funcs->set_blank(pipe_ctx->stream_res.tg, true); in dce110_enable_stream_timing()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/inc/hw/
Dtiming_generator.h137 bool (*validate_timing)(struct timing_generator *tg,
139 void (*program_timing)(struct timing_generator *tg,
159 bool (*enable_crtc)(struct timing_generator *tg);
160 bool (*disable_crtc)(struct timing_generator *tg);
161 bool (*is_counter_moving)(struct timing_generator *tg);
162 void (*get_position)(struct timing_generator *tg,
165 uint32_t (*get_frame_count)(struct timing_generator *tg);
167 struct timing_generator *tg,
175 bool (*is_matching_timing)(struct timing_generator *tg,
177 void (*set_early_control)(struct timing_generator *tg,
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce120/
Ddce120_timing_generator.c86 struct timing_generator *tg) in dce120_timing_generator_is_in_vertical_blank() argument
89 struct dce110_timing_generator *tg110 = DCE110TG_FROM_TG(tg); in dce120_timing_generator_is_in_vertical_blank()
91 tg->ctx, in dce120_timing_generator_is_in_vertical_blank()
102 struct timing_generator *tg, in dce120_timing_generator_validate_timing() argument
111 struct dce110_timing_generator *tg110 = DCE110TG_FROM_TG(tg); in dce120_timing_generator_validate_timing()
114 tg, in dce120_timing_generator_validate_timing()
128 bool dce120_tg_validate_timing(struct timing_generator *tg, in dce120_tg_validate_timing() argument
131 return dce120_timing_generator_validate_timing(tg, timing, SIGNAL_TYPE_NONE); in dce120_tg_validate_timing()
136 bool dce120_timing_generator_enable_crtc(struct timing_generator *tg) in dce120_timing_generator_enable_crtc() argument
139 struct dce110_timing_generator *tg110 = DCE110TG_FROM_TG(tg); in dce120_timing_generator_enable_crtc()
[all …]
/Linux-v5.4/kernel/sched/
Dautogroup.h11 struct task_group *tg; member
18 extern void autogroup_free(struct task_group *tg);
20 static inline bool task_group_is_autogroup(struct task_group *tg) in task_group_is_autogroup() argument
22 return !!tg->autogroup; in task_group_is_autogroup()
25 extern bool task_wants_autogroup(struct task_struct *p, struct task_group *tg);
28 autogroup_task_group(struct task_struct *p, struct task_group *tg) in autogroup_task_group() argument
32 if (enabled && task_wants_autogroup(p, tg)) in autogroup_task_group()
33 return p->signal->autogroup->tg; in autogroup_task_group()
35 return tg; in autogroup_task_group()
38 extern int autogroup_path(struct task_group *tg, char *buf, int buflen);
[all …]
Dautogroup.c14 autogroup_default.tg = &root_task_group; in autogroup_init()
20 void autogroup_free(struct task_group *tg) in autogroup_free() argument
22 kfree(tg->autogroup); in autogroup_free()
31 ag->tg->rt_se = NULL; in autogroup_destroy()
32 ag->tg->rt_rq = NULL; in autogroup_destroy()
34 sched_offline_group(ag->tg); in autogroup_destroy()
35 sched_destroy_group(ag->tg); in autogroup_destroy()
66 struct task_group *tg; in autogroup_create() local
71 tg = sched_create_group(&root_task_group); in autogroup_create()
72 if (IS_ERR(tg)) in autogroup_create()
[all …]
Drt.c138 void free_rt_sched_group(struct task_group *tg) in free_rt_sched_group() argument
142 if (tg->rt_se) in free_rt_sched_group()
143 destroy_rt_bandwidth(&tg->rt_bandwidth); in free_rt_sched_group()
146 if (tg->rt_rq) in free_rt_sched_group()
147 kfree(tg->rt_rq[i]); in free_rt_sched_group()
148 if (tg->rt_se) in free_rt_sched_group()
149 kfree(tg->rt_se[i]); in free_rt_sched_group()
152 kfree(tg->rt_rq); in free_rt_sched_group()
153 kfree(tg->rt_se); in free_rt_sched_group()
156 void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq, in init_tg_rt_entry() argument
[all …]
Dcore.c741 int tg_nop(struct task_group *tg, void *data) in tg_nop() argument
1098 struct task_group *tg = &root_task_group; in uclamp_update_root_tg() local
1100 uclamp_se_set(&tg->uclamp_req[UCLAMP_MIN], in uclamp_update_root_tg()
1102 uclamp_se_set(&tg->uclamp_req[UCLAMP_MAX], in uclamp_update_root_tg()
6915 static inline void alloc_uclamp_sched_group(struct task_group *tg, in alloc_uclamp_sched_group() argument
6922 uclamp_se_set(&tg->uclamp_req[clamp_id], in alloc_uclamp_sched_group()
6924 tg->uclamp[clamp_id] = parent->uclamp[clamp_id]; in alloc_uclamp_sched_group()
6929 static void sched_free_group(struct task_group *tg) in sched_free_group() argument
6931 free_fair_sched_group(tg); in sched_free_group()
6932 free_rt_sched_group(tg); in sched_free_group()
[all …]
Dsched.h437 extern int tg_nop(struct task_group *tg, void *data);
439 extern void free_fair_sched_group(struct task_group *tg);
440 extern int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent);
441 extern void online_fair_sched_group(struct task_group *tg);
442 extern void unregister_fair_sched_group(struct task_group *tg);
443 extern void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq,
452 extern void free_rt_sched_group(struct task_group *tg);
453 extern int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent);
454 extern void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq,
457 extern int sched_group_set_rt_runtime(struct task_group *tg, long rt_runtime_us);
[all …]
Dfair.c283 if (cfs_rq && task_group_is_autogroup(cfs_rq->tg)) in cfs_rq_tg_path()
284 autogroup_path(cfs_rq->tg, path, len); in cfs_rq_tg_path()
285 else if (cfs_rq && cfs_rq->tg->css.cgroup) in cfs_rq_tg_path()
286 cgroup_path(cfs_rq->tg->css.cgroup, path, len); in cfs_rq_tg_path()
310 if (cfs_rq->tg->parent && in list_add_leaf_cfs_rq()
311 cfs_rq->tg->parent->cfs_rq[cpu]->on_list) { in list_add_leaf_cfs_rq()
319 &(cfs_rq->tg->parent->cfs_rq[cpu]->leaf_cfs_rq_list)); in list_add_leaf_cfs_rq()
329 if (!cfs_rq->tg->parent) { in list_add_leaf_cfs_rq()
2997 struct task_group *tg = cfs_rq->tg; in calc_group_shares() local
2999 tg_shares = READ_ONCE(tg->shares); in calc_group_shares()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_hwseq.c196 struct timing_generator *tg) in dcn20_init_blank() argument
210 tg->funcs->get_otg_active_size(tg, in dcn20_init_blank()
215 tg->funcs->get_optc_source(tg, &num_opps, &opp_id_src0, &opp_id_src1); in dcn20_init_blank()
551 pipe_ctx->stream_res.tg->funcs->set_odm_combine( in dcn20_enable_stream_timing()
552 pipe_ctx->stream_res.tg, in dcn20_enable_stream_timing()
559 pipe_ctx->stream_res.tg->funcs->enable_optc_clock(pipe_ctx->stream_res.tg, true); in dcn20_enable_stream_timing()
569 pipe_ctx->stream_res.tg->funcs->program_timing( in dcn20_enable_stream_timing()
570 pipe_ctx->stream_res.tg, in dcn20_enable_stream_timing()
591 if (false == pipe_ctx->stream_res.tg->funcs->enable_crtc(pipe_ctx->stream_res.tg)) { in dcn20_enable_stream_timing()
602 if (pipe_ctx->stream_res.tg->funcs->set_drr) in dcn20_enable_stream_timing()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_hw_sequencer.c315 struct timing_generator *tg = pool->timing_generators[i]; in dcn10_log_hw_state() local
318 optc1_read_otg_state(DCN10TG_FROM_TG(tg), &s); in dcn10_log_hw_state()
326 tg->inst, in dcn10_log_hw_state()
349 tg->funcs->clear_optc_underflow(tg); in dcn10_log_hw_state()
427 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dcn10_did_underflow_occur() local
429 if (tg->funcs->is_optc_underflow_occurred(tg)) { in dcn10_did_underflow_occur()
430 tg->funcs->clear_optc_underflow(tg); in dcn10_did_underflow_occur()
705 struct timing_generator *tg) in false_optc_underflow_wa() argument
713 underflow = tg->funcs->is_optc_underflow_occurred(tg); in false_optc_underflow_wa()
724 if (tg->funcs->set_blank_data_double_buffer) in false_optc_underflow_wa()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce80/
Ddce80_timing_generator.c87 static void program_pix_dur(struct timing_generator *tg, uint32_t pix_clk_100hz) in program_pix_dur() argument
91 + DCE110TG_FROM_TG(tg)->offsets.dmif; in program_pix_dur()
92 uint32_t value = dm_read_reg(tg->ctx, addr); in program_pix_dur()
105 dm_write_reg(tg->ctx, addr, value); in program_pix_dur()
108 static void program_timing(struct timing_generator *tg, in program_timing() argument
118 program_pix_dur(tg, timing->pix_clk_100hz); in program_timing()
120 dce110_tg_program_timing(tg, timing, 0, 0, 0, 0, 0, use_vbios); in program_timing()
124 struct timing_generator *tg, in dce80_timing_generator_enable_advanced_request() argument
128 struct dce110_timing_generator *tg110 = DCE110TG_FROM_TG(tg); in dce80_timing_generator_enable_advanced_request()
130 uint32_t value = dm_read_reg(tg->ctx, addr); in dce80_timing_generator_enable_advanced_request()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce/
Ddce_hwseq.c56 if (lock && pipe->stream_res.tg->funcs->is_blanked && in dce_pipe_control_lock()
57 pipe->stream_res.tg->funcs->is_blanked(pipe->stream_res.tg)) in dce_pipe_control_lock()
60 val = REG_GET_4(BLND_V_UPDATE_LOCK[pipe->stream_res.tg->inst], in dce_pipe_control_lock()
71 REG_SET_2(BLND_V_UPDATE_LOCK[pipe->stream_res.tg->inst], val, in dce_pipe_control_lock()
76 REG_SET_2(BLND_V_UPDATE_LOCK[pipe->stream_res.tg->inst], val, in dce_pipe_control_lock()
82 uint32_t value = REG_READ(CRTC_H_BLANK_START_END[pipe->stream_res.tg->inst]); in dce_pipe_control_lock()
83 REG_WRITE(CRTC_H_BLANK_START_END[pipe->stream_res.tg->inst], value); in dce_pipe_control_lock()
/Linux-v5.4/arch/powerpc/kernel/
Dsmp.c703 struct thread_groups *tg, in parse_thread_groups() argument
717 tg->property = thread_group_array[0]; in parse_thread_groups()
718 tg->nr_groups = thread_group_array[1]; in parse_thread_groups()
719 tg->threads_per_group = thread_group_array[2]; in parse_thread_groups()
720 if (tg->property != property || in parse_thread_groups()
721 tg->nr_groups < 1 || in parse_thread_groups()
722 tg->threads_per_group < 1) in parse_thread_groups()
725 total_threads = tg->nr_groups * tg->threads_per_group; in parse_thread_groups()
736 tg->thread_list[i] = thread_list[i]; in parse_thread_groups()
755 static int get_cpu_thread_group_start(int cpu, struct thread_groups *tg) in get_cpu_thread_group_start() argument
[all …]
/Linux-v5.4/drivers/gpu/drm/
Ddrm_connector.c2248 struct drm_tile_group *tg = container_of(kref, struct drm_tile_group, refcount); in drm_tile_group_free() local
2249 struct drm_device *dev = tg->dev; in drm_tile_group_free()
2251 idr_remove(&dev->mode_config.tile_idr, tg->id); in drm_tile_group_free()
2253 kfree(tg); in drm_tile_group_free()
2264 struct drm_tile_group *tg) in drm_mode_put_tile_group() argument
2266 kref_put(&tg->refcount, drm_tile_group_free); in drm_mode_put_tile_group()
2283 struct drm_tile_group *tg; in drm_mode_get_tile_group() local
2286 idr_for_each_entry(&dev->mode_config.tile_idr, tg, id) { in drm_mode_get_tile_group()
2287 if (!memcmp(tg->group_data, topology, 8)) { in drm_mode_get_tile_group()
2288 if (!kref_get_unless_zero(&tg->refcount)) in drm_mode_get_tile_group()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/core/
Ddc_hw_sequencer.c273 struct timing_generator *tg) in hwss_wait_for_blank_complete() argument
278 if (!tg->funcs->is_blanked) in hwss_wait_for_blank_complete()
281 if (tg->funcs->is_blanked(tg)) in hwss_wait_for_blank_complete()
Ddc_stream.c493 struct timing_generator *tg = res_ctx->pipe_ctx[i].stream_res.tg; in dc_stream_get_vblank_counter() local
498 return tg->funcs->get_frame_count(tg); in dc_stream_get_vblank_counter()
552 struct timing_generator *tg = res_ctx->pipe_ctx[i].stream_res.tg; in dc_stream_get_scanoutpos() local
557 tg->funcs->get_scanoutpos(tg, in dc_stream_get_scanoutpos()
/Linux-v5.4/drivers/firmware/efi/libstub/
Darm64-stub.c26 u64 tg; in check_platform_features() local
32 tg = (read_cpuid(ID_AA64MMFR0_EL1) >> ID_AA64MMFR0_TGRAN_SHIFT) & 0xf; in check_platform_features()
33 if (tg != ID_AA64MMFR0_TGRAN_SUPPORTED) { in check_platform_features()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/irq/dce110/
Dirq_service_dce110.c214 struct timing_generator *tg = in dce110_vblank_set() local
215 core_dc->current_state->res_ctx.pipe_ctx[pipe_offset].stream_res.tg; in dce110_vblank_set()
218 if (!tg || !tg->funcs->arm_vert_intr(tg, 2)) { in dce110_vblank_set()
/Linux-v5.4/drivers/video/fbdev/
Dw100fb.c236 struct w100_tg_info *tg = par->mach->tg; in w100fb_blank() local
245 if(tg && tg->suspend) in w100fb_blank()
246 tg->suspend(par); in w100fb_blank()
253 if(tg && tg->resume) in w100fb_blank()
254 tg->resume(par); in w100fb_blank()
414 struct w100_tg_info *tg = par->mach->tg; in w100fb_activate_var() local
430 if (!par->blanked && tg && tg->change) in w100fb_activate_var()
431 tg->change(par); in w100fb_activate_var()
606 struct w100_tg_info *tg = par->mach->tg; in w100fb_suspend() local
609 if(tg && tg->suspend) in w100fb_suspend()
[all …]
/Linux-v5.4/drivers/media/platform/qcom/camss/
Dcamss-csid.c623 struct csid_testgen_config *tg = &csid->testgen; in csid_set_stream() local
640 if (!tg->enabled && in csid_set_stream()
644 if (tg->enabled) { in csid_set_stream()
675 val = tg->payload_mode; in csid_set_stream()
736 if (tg->enabled) { in csid_set_stream()
742 if (tg->enabled) { in csid_set_stream()
1021 struct csid_testgen_config *tg = &csid->testgen; in csid_set_test_pattern() local
1027 tg->enabled = !!value; in csid_set_test_pattern()
1031 tg->payload_mode = CSID_PAYLOAD_MODE_INCREMENTING; in csid_set_test_pattern()
1034 tg->payload_mode = CSID_PAYLOAD_MODE_ALTERNATING_55_AA; in csid_set_test_pattern()
[all …]

123