/kernel/linux/linux-5.10/block/ |
D | blk-throttle.c | 72 struct throtl_grp *tg; /* tg this qnode belongs to */ member 245 static inline struct blkcg_gq *tg_to_blkg(struct throtl_grp *tg) in tg_to_blkg() argument 247 return pd_to_blkg(&tg->pd); in tg_to_blkg() 274 struct throtl_grp *tg = sq_to_tg(sq); in sq_to_td() local 276 if (tg) in sq_to_td() 277 return tg->td; in sq_to_td() 300 static uint64_t tg_bps_limit(struct throtl_grp *tg, int rw) in tg_bps_limit() argument 302 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_bps_limit() 309 td = tg->td; in tg_bps_limit() 310 ret = tg->bps[rw][td->limit_index]; in tg_bps_limit() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_timing_generator.h | 117 #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 …]
|
D | dce110_timing_generator.c | 66 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 …]
|
D | dce110_timing_generator_v.c | 42 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 …]
|
D | dce110_hw_sequencer.c | 665 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dce110_enable_stream() local 688 tg->funcs->set_early_control(tg, early_control); in dce110_enable_stream() 1258 pipe_ctx->stream_res.tg->inst + 1); in build_audio_output() 1270 uint32_t color_value = MAX_TG_COLOR_VALUE * (4 - pipe_ctx->stream_res.tg->inst) / 4; in get_surface_visual_confirm_color() 1325 if (pipe_ctx->stream_res.tg->funcs->set_overscan_blank_color) { in program_scaler() 1334 pipe_ctx->stream_res.tg->funcs->set_overscan_blank_color( in program_scaler() 1335 pipe_ctx->stream_res.tg, in program_scaler() 1358 pipe_ctx->stream_res.tg->funcs->set_blank_color( in dce110_enable_stream_timing() 1359 pipe_ctx->stream_res.tg, in dce110_enable_stream_timing() 1366 pipe_ctx->stream_res.tg->funcs->set_blank(pipe_ctx->stream_res.tg, true); in dce110_enable_stream_timing() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | timing_generator.h | 150 bool (*validate_timing)(struct timing_generator *tg, 152 void (*program_timing)(struct timing_generator *tg, 172 bool (*enable_crtc)(struct timing_generator *tg); 173 bool (*disable_crtc)(struct timing_generator *tg); 174 bool (*is_counter_moving)(struct timing_generator *tg); 175 void (*get_position)(struct timing_generator *tg, 178 uint32_t (*get_frame_count)(struct timing_generator *tg); 180 struct timing_generator *tg, 188 bool (*is_matching_timing)(struct timing_generator *tg, 190 void (*set_early_control)(struct timing_generator *tg, [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce120/ |
D | dce120_timing_generator.c | 86 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 …]
|
/kernel/linux/linux-5.10/kernel/sched/ |
D | autogroup.h | 11 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 …]
|
D | autogroup.c | 14 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 …]
|
D | rt.c | 149 void free_rt_sched_group(struct task_group *tg) in free_rt_sched_group() argument 153 if (tg->rt_se) in free_rt_sched_group() 154 destroy_rt_bandwidth(&tg->rt_bandwidth); in free_rt_sched_group() 157 if (tg->rt_rq) in free_rt_sched_group() 158 kfree(tg->rt_rq[i]); in free_rt_sched_group() 159 if (tg->rt_se) in free_rt_sched_group() 160 kfree(tg->rt_se[i]); in free_rt_sched_group() 163 kfree(tg->rt_rq); in free_rt_sched_group() 164 kfree(tg->rt_se); in free_rt_sched_group() 167 void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq, in init_tg_rt_entry() argument [all …]
|
D | core.c | 844 int tg_nop(struct task_group *tg, void *data) in tg_nop() argument 1391 struct task_group *tg = &root_task_group; in uclamp_update_root_tg() local 1393 uclamp_se_set(&tg->uclamp_req[UCLAMP_MIN], in uclamp_update_root_tg() 1395 uclamp_se_set(&tg->uclamp_req[UCLAMP_MAX], in uclamp_update_root_tg() 3463 struct task_group *tg; in sched_post_fork() local 3468 tg = container_of(kargs->cset->subsys[cpu_cgrp_id], in sched_post_fork() 3470 p->sched_task_group = autogroup_task_group(p, tg); in sched_post_fork() 8002 static inline void alloc_uclamp_sched_group(struct task_group *tg, in alloc_uclamp_sched_group() argument 8009 uclamp_se_set(&tg->uclamp_req[clamp_id], in alloc_uclamp_sched_group() 8011 tg->uclamp[clamp_id] = parent->uclamp[clamp_id]; in alloc_uclamp_sched_group() [all …]
|
D | sched.h | 559 extern int tg_nop(struct task_group *tg, void *data); 561 extern void free_fair_sched_group(struct task_group *tg); 562 extern int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent); 563 extern void online_fair_sched_group(struct task_group *tg); 564 extern void unregister_fair_sched_group(struct task_group *tg); 565 extern void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq, 574 extern void free_rt_sched_group(struct task_group *tg); 575 extern int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent); 576 extern void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq, 579 extern int sched_group_set_rt_runtime(struct task_group *tg, long rt_runtime_us); [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce60/ |
D | dce60_timing_generator.c | 87 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 dce60_timing_generator_enable_advanced_request() argument 128 struct dce110_timing_generator *tg110 = DCE110TG_FROM_TG(tg); in dce60_timing_generator_enable_advanced_request() 130 uint32_t value = dm_read_reg(tg->ctx, addr); in dce60_timing_generator_enable_advanced_request() [all …]
|
D | dce60_hw_sequencer.c | 128 params.inst = pipe_ctx->stream_res.tg->inst; in dce60_enable_fbc() 192 pipe_ctx->stream_res.tg->funcs->set_blank(pipe_ctx->stream_res.tg, blank_target); in dce60_program_surface_visibility() 200 uint32_t color_value = MAX_TG_COLOR_VALUE * (4 - pipe_ctx->stream_res.tg->inst) / 4; in dce60_get_surface_visual_confirm_color() 251 if (pipe_ctx->stream_res.tg->funcs->set_overscan_blank_color) { in dce60_program_scaler() 260 pipe_ctx->stream_res.tg->funcs->set_overscan_blank_color( in dce60_program_scaler() 261 pipe_ctx->stream_res.tg, in dce60_program_scaler()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_hw_sequencer.c | 91 struct timing_generator *tg; in dcn10_lock_all_pipes() local 96 tg = pipe_ctx->stream_res.tg; in dcn10_lock_all_pipes() 104 !tg->funcs->is_tg_enabled(tg)) in dcn10_lock_all_pipes() 343 struct timing_generator *tg = pool->timing_generators[i]; in dcn10_log_hw_state() local 346 optc1_read_otg_state(DCN10TG_FROM_TG(tg), &s); in dcn10_log_hw_state() 358 s.blank_enabled = tg->funcs->is_blanked(tg); in dcn10_log_hw_state() 365 tg->inst, in dcn10_log_hw_state() 389 tg->funcs->clear_optc_underflow(tg); in dcn10_log_hw_state() 468 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dcn10_did_underflow_occur() local 470 if (tg->funcs->is_optc_underflow_occurred(tg)) { in dcn10_did_underflow_occur() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce80/ |
D | dce80_timing_generator.c | 87 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 …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn20/ |
D | dcn20_hwseq.c | 162 if (pipe_ctx->stream_res.tg->funcs->set_gsl != NULL && in dcn20_setup_gsl_group_as_lock() 163 pipe_ctx->stream_res.tg->funcs->set_gsl_source_select != NULL) { in dcn20_setup_gsl_group_as_lock() 164 pipe_ctx->stream_res.tg->funcs->set_gsl( in dcn20_setup_gsl_group_as_lock() 165 pipe_ctx->stream_res.tg, in dcn20_setup_gsl_group_as_lock() 168 pipe_ctx->stream_res.tg->funcs->set_gsl_source_select( in dcn20_setup_gsl_group_as_lock() 169 pipe_ctx->stream_res.tg, group_idx, enable ? 4 : 0); in dcn20_setup_gsl_group_as_lock() 275 struct timing_generator *tg) in dcn20_init_blank() argument 290 tg->funcs->get_otg_active_size(tg, in dcn20_init_blank() 295 tg->funcs->get_optc_source(tg, &num_opps, &opp_id_src0, &opp_id_src1); in dcn20_init_blank() 676 pipe_ctx->stream_res.tg->funcs->set_odm_combine( in dcn20_enable_stream_timing() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_hwseq.c | 56 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()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | smp.c | 788 struct thread_groups *tg, in parse_thread_groups() argument 802 tg->property = thread_group_array[0]; in parse_thread_groups() 803 tg->nr_groups = thread_group_array[1]; in parse_thread_groups() 804 tg->threads_per_group = thread_group_array[2]; in parse_thread_groups() 805 if (tg->property != property || in parse_thread_groups() 806 tg->nr_groups < 1 || in parse_thread_groups() 807 tg->threads_per_group < 1) in parse_thread_groups() 810 total_threads = tg->nr_groups * tg->threads_per_group; in parse_thread_groups() 821 tg->thread_list[i] = thread_list[i]; in parse_thread_groups() 840 static int get_cpu_thread_group_start(int cpu, struct thread_groups *tg) in get_cpu_thread_group_start() argument [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_connector.c | 2474 struct drm_tile_group *tg = container_of(kref, struct drm_tile_group, refcount); in drm_tile_group_free() local 2475 struct drm_device *dev = tg->dev; in drm_tile_group_free() 2478 idr_remove(&dev->mode_config.tile_idr, tg->id); in drm_tile_group_free() 2480 kfree(tg); in drm_tile_group_free() 2491 struct drm_tile_group *tg) in drm_mode_put_tile_group() argument 2493 kref_put(&tg->refcount, drm_tile_group_free); in drm_mode_put_tile_group() 2510 struct drm_tile_group *tg; in drm_mode_get_tile_group() local 2514 idr_for_each_entry(&dev->mode_config.tile_idr, tg, id) { in drm_mode_get_tile_group() 2515 if (!memcmp(tg->group_data, topology, 8)) { in drm_mode_get_tile_group() 2516 if (!kref_get_unless_zero(&tg->refcount)) in drm_mode_get_tile_group() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_hw_sequencer.c | 273 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()
|
D | dc.c | 296 if (pipe->stream == stream && pipe->stream_res.tg) { in dc_stream_adjust_vmin_vmax() 352 struct timing_generator *tg; in dc_stream_configure_crc() local 381 tg = pipe->stream_res.tg; in dc_stream_configure_crc() 384 if (tg->funcs->configure_crc) in dc_stream_configure_crc() 385 return tg->funcs->configure_crc(tg, ¶m); in dc_stream_configure_crc() 404 struct timing_generator *tg; in dc_stream_get_crc() local 415 tg = pipe->stream_res.tg; in dc_stream_get_crc() 417 if (tg->funcs->get_crc) in dc_stream_get_crc() 418 return tg->funcs->get_crc(tg, r_cr, g_y, b_cb); in dc_stream_get_crc() 1090 pipe_set[j]->stream_res.tg->funcs->is_blanked(pipe_set[j]->stream_res.tg); in program_timing_sync() [all …]
|
/kernel/linux/linux-5.10/drivers/hwtracing/coresight/ |
D | coresight-cti-platform.c | 317 struct cti_trig_grp *tg = NULL; in cti_plat_process_filter_sigs() local 328 tg = kzalloc(sizeof(*tg), GFP_KERNEL); in cti_plat_process_filter_sigs() 329 if (!tg) in cti_plat_process_filter_sigs() 332 err = cti_plat_read_trig_group(tg, fwnode, CTI_DT_FILTER_OUT_SIGS); in cti_plat_process_filter_sigs() 334 drvdata->config.trig_out_filter |= tg->used_mask; in cti_plat_process_filter_sigs() 336 kfree(tg); in cti_plat_process_filter_sigs()
|
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/ |
D | arm64-stub.c | 20 u64 tg; in check_platform_features() local 26 tg = (read_cpuid(ID_AA64MMFR0_EL1) >> ID_AA64MMFR0_TGRAN_SHIFT) & 0xf; in check_platform_features() 27 if (tg != ID_AA64MMFR0_TGRAN_SUPPORTED) { in check_platform_features()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/irq/dce110/ |
D | irq_service_dce110.c | 214 struct timing_generator *tg = in dce110_vblank_set() local 215 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()
|