/Linux-v4.19/block/ |
D | blk-throttle.c | 70 struct throtl_grp *tg; /* tg this qnode belongs to */ member 238 static inline struct blkcg_gq *tg_to_blkg(struct throtl_grp *tg) in tg_to_blkg() argument 240 return pd_to_blkg(&tg->pd); in tg_to_blkg() 267 struct throtl_grp *tg = sq_to_tg(sq); in sq_to_td() local 269 if (tg) in sq_to_td() 270 return tg->td; in sq_to_td() 293 static uint64_t tg_bps_limit(struct throtl_grp *tg, int rw) in tg_bps_limit() argument 295 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_bps_limit() 302 td = tg->td; in tg_bps_limit() 303 ret = tg->bps[rw][td->limit_index]; in tg_bps_limit() [all …]
|
/Linux-v4.19/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 | 628 crtc_source_select.controller_id = pipe_ctx->stream_res.tg->inst + 1; in bios_parser_crtc_source_select() 703 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dce110_enable_stream() local 728 tg->funcs->set_early_control(tg, early_control); in dce110_enable_stream() 1204 pipe_ctx->stream_res.tg->inst + 1); in build_audio_output() 1216 uint32_t color_value = MAX_TG_COLOR_VALUE * (4 - pipe_ctx->stream_res.tg->inst) / 4; in get_surface_visual_confirm_color() 1271 if (pipe_ctx->stream_res.tg->funcs->set_overscan_blank_color) in program_scaler() 1272 pipe_ctx->stream_res.tg->funcs->set_overscan_blank_color( in program_scaler() 1273 pipe_ctx->stream_res.tg, in program_scaler() 1295 pipe_ctx->stream_res.tg->funcs->set_blank_color( in dce110_enable_stream_timing() 1296 pipe_ctx->stream_res.tg, in dce110_enable_stream_timing() [all …]
|
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | timing_generator.h | 138 bool (*validate_timing)(struct timing_generator *tg, 140 void (*program_timing)(struct timing_generator *tg, 146 bool (*enable_crtc)(struct timing_generator *tg); 147 bool (*disable_crtc)(struct timing_generator *tg); 148 bool (*is_counter_moving)(struct timing_generator *tg); 149 void (*get_position)(struct timing_generator *tg, 152 uint32_t (*get_frame_count)(struct timing_generator *tg); 154 struct timing_generator *tg, 162 void (*set_early_control)(struct timing_generator *tg, 164 void (*wait_for_state)(struct timing_generator *tg, [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/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 | 137 void free_rt_sched_group(struct task_group *tg) in free_rt_sched_group() argument 141 if (tg->rt_se) in free_rt_sched_group() 142 destroy_rt_bandwidth(&tg->rt_bandwidth); in free_rt_sched_group() 145 if (tg->rt_rq) in free_rt_sched_group() 146 kfree(tg->rt_rq[i]); in free_rt_sched_group() 147 if (tg->rt_se) in free_rt_sched_group() 148 kfree(tg->rt_se[i]); in free_rt_sched_group() 151 kfree(tg->rt_rq); in free_rt_sched_group() 152 kfree(tg->rt_se); in free_rt_sched_group() 155 void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq, in init_tg_rt_entry() argument [all …]
|
D | core.c | 687 int tg_nop(struct task_group *tg, void *data) in tg_nop() argument 6240 static void sched_free_group(struct task_group *tg) in sched_free_group() argument 6242 free_fair_sched_group(tg); in sched_free_group() 6243 free_rt_sched_group(tg); in sched_free_group() 6244 autogroup_free(tg); in sched_free_group() 6245 kmem_cache_free(task_group_cache, tg); in sched_free_group() 6251 struct task_group *tg; in sched_create_group() local 6253 tg = kmem_cache_alloc(task_group_cache, GFP_KERNEL | __GFP_ZERO); in sched_create_group() 6254 if (!tg) in sched_create_group() 6257 if (!alloc_fair_sched_group(tg, parent)) in sched_create_group() [all …]
|
D | sched.h | 427 extern int tg_nop(struct task_group *tg, void *data); 429 extern void free_fair_sched_group(struct task_group *tg); 430 extern int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent); 431 extern void online_fair_sched_group(struct task_group *tg); 432 extern void unregister_fair_sched_group(struct task_group *tg); 433 extern void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq, 442 extern void free_rt_sched_group(struct task_group *tg); 443 extern int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent); 444 extern void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq, 447 extern int sched_group_set_rt_runtime(struct task_group *tg, long rt_runtime_us); [all …]
|
D | fair.c | 299 if (cfs_rq->tg->parent && in list_add_leaf_cfs_rq() 300 cfs_rq->tg->parent->cfs_rq[cpu]->on_list) { in list_add_leaf_cfs_rq() 308 &(cfs_rq->tg->parent->cfs_rq[cpu]->leaf_cfs_rq_list)); in list_add_leaf_cfs_rq() 315 } else if (!cfs_rq->tg->parent) { in list_add_leaf_cfs_rq() 2924 struct task_group *tg = cfs_rq->tg; in calc_group_shares() local 2926 tg_shares = READ_ONCE(tg->shares); in calc_group_shares() 2930 tg_weight = atomic_long_read(&tg->load_avg); in calc_group_shares() 3018 runnable = shares = READ_ONCE(gcfs_rq->tg->shares); in update_cfs_group() 3083 if (cfs_rq->tg == &root_task_group) in update_tg_load_avg() 3087 atomic_long_add(delta, &cfs_rq->tg->load_avg); in update_tg_load_avg() [all …]
|
D | debug.c | 388 static void print_cfs_group_stats(struct seq_file *m, int cpu, struct task_group *tg) in print_cfs_group_stats() argument 390 struct sched_entity *se = tg->se[cpu]; in print_cfs_group_stats() 435 static char *task_group_path(struct task_group *tg) in task_group_path() argument 437 if (autogroup_path(tg, group_path, PATH_MAX)) in task_group_path() 440 cgroup_path(tg->css.cgroup, group_path, PATH_MAX); in task_group_path() 506 SEQ_printf(m, "cfs_rq[%d]:%s\n", cpu, task_group_path(cfs_rq->tg)); in print_cfs_rq() 559 atomic_long_read(&cfs_rq->tg->load_avg)); in print_cfs_rq() 570 print_cfs_group_stats(m, cpu, cfs_rq->tg); in print_cfs_rq() 578 SEQ_printf(m, "rt_rq[%d]:%s\n", cpu, task_group_path(rt_rq->tg)); in print_rt_rq()
|
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_hw_sequencer.c | 300 struct timing_generator *tg = pool->timing_generators[i]; in dcn10_log_hw_state() local 303 optc1_read_otg_state(DCN10TG_FROM_TG(tg), &s); in dcn10_log_hw_state() 311 tg->inst, in dcn10_log_hw_state() 334 tg->funcs->clear_optc_underflow(tg); in dcn10_log_hw_state() 598 struct timing_generator *tg) in false_optc_underflow_wa() argument 606 underflow = tg->funcs->is_optc_underflow_occurred(tg); in false_optc_underflow_wa() 617 tg->funcs->set_blank_data_double_buffer(tg, true); in false_optc_underflow_wa() 619 if (tg->funcs->is_optc_underflow_occurred(tg) && !underflow) in false_optc_underflow_wa() 620 tg->funcs->clear_optc_underflow(tg); in false_optc_underflow_wa() 644 pipe_ctx->stream_res.tg->funcs->enable_optc_clock(pipe_ctx->stream_res.tg, true); in dcn10_enable_stream_timing() [all …]
|
/Linux-v4.19/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_khz) 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 113 program_pix_dur(tg, timing->pix_clk_khz); in program_timing() 115 dce110_tg_program_timing(tg, timing, use_vbios); in program_timing() 119 struct timing_generator *tg, in dce80_timing_generator_enable_advanced_request() argument 123 struct dce110_timing_generator *tg110 = DCE110TG_FROM_TG(tg); in dce80_timing_generator_enable_advanced_request() 125 uint32_t value = dm_read_reg(tg->ctx, addr); in dce80_timing_generator_enable_advanced_request() [all …]
|
/Linux-v4.19/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()
|
/Linux-v4.19/drivers/gpu/drm/ |
D | drm_connector.c | 1841 struct drm_tile_group *tg = container_of(kref, struct drm_tile_group, refcount); in drm_tile_group_free() local 1842 struct drm_device *dev = tg->dev; in drm_tile_group_free() 1844 idr_remove(&dev->mode_config.tile_idr, tg->id); in drm_tile_group_free() 1846 kfree(tg); in drm_tile_group_free() 1857 struct drm_tile_group *tg) in drm_mode_put_tile_group() argument 1859 kref_put(&tg->refcount, drm_tile_group_free); in drm_mode_put_tile_group() 1876 struct drm_tile_group *tg; in drm_mode_get_tile_group() local 1879 idr_for_each_entry(&dev->mode_config.tile_idr, tg, id) { in drm_mode_get_tile_group() 1880 if (!memcmp(tg->group_data, topology, 8)) { in drm_mode_get_tile_group() 1881 if (!kref_get_unless_zero(&tg->refcount)) in drm_mode_get_tile_group() [all …]
|
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_stream.c | 282 struct timing_generator *tg = res_ctx->pipe_ctx[i].stream_res.tg; in dc_stream_get_vblank_counter() local 287 return tg->funcs->get_frame_count(tg); in dc_stream_get_vblank_counter() 306 struct timing_generator *tg = res_ctx->pipe_ctx[i].stream_res.tg; in dc_stream_get_scanoutpos() local 311 tg->funcs->get_scanoutpos(tg, in dc_stream_get_scanoutpos()
|
D | dc_hw_sequencer.c | 248 struct timing_generator *tg) in hwss_wait_for_blank_complete() argument 253 if (!tg->funcs->is_blanked) in hwss_wait_for_blank_complete() 256 if (tg->funcs->is_blanked(tg)) in hwss_wait_for_blank_complete()
|
D | dc.c | 257 struct timing_generator *tg; in dc_stream_configure_crc() local 283 tg = pipe->stream_res.tg; in dc_stream_configure_crc() 286 if (tg->funcs->configure_crc) in dc_stream_configure_crc() 287 return tg->funcs->configure_crc(tg, ¶m); in dc_stream_configure_crc() 306 struct timing_generator *tg; in dc_stream_get_crc() local 317 tg = pipe->stream_res.tg; in dc_stream_get_crc() 319 if (tg->funcs->get_crc) in dc_stream_get_crc() 320 return tg->funcs->get_crc(tg, r_cr, g_y, b_cb); in dc_stream_get_crc() 798 …f (pipe_set[j]->stream_res.tg->funcs->is_blanked && !pipe_set[j]->stream_res.tg->funcs->is_blanked… in program_timing_sync() 811 …f (pipe_set[j]->stream_res.tg->funcs->is_blanked && !pipe_set[j]->stream_res.tg->funcs->is_blanked… in program_timing_sync() [all …]
|
/Linux-v4.19/drivers/firmware/efi/libstub/ |
D | arm64-stub.c | 30 u64 tg; in check_platform_features() local 36 tg = (read_cpuid(ID_AA64MMFR0_EL1) >> ID_AA64MMFR0_TGRAN_SHIFT) & 0xf; in check_platform_features() 37 if (tg != ID_AA64MMFR0_TGRAN_SUPPORTED) { in check_platform_features()
|
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/irq/dce110/ |
D | irq_service_dce110.c | 207 struct timing_generator *tg = in dce110_vblank_set() local 208 core_dc->current_state->res_ctx.pipe_ctx[pipe_offset].stream_res.tg; in dce110_vblank_set() 211 if (!tg || !tg->funcs->arm_vert_intr(tg, 2)) { in dce110_vblank_set()
|
/Linux-v4.19/drivers/video/fbdev/ |
D | w100fb.c | 231 struct w100_tg_info *tg = par->mach->tg; in w100fb_blank() local 240 if(tg && tg->suspend) in w100fb_blank() 241 tg->suspend(par); in w100fb_blank() 248 if(tg && tg->resume) in w100fb_blank() 249 tg->resume(par); in w100fb_blank() 409 struct w100_tg_info *tg = par->mach->tg; in w100fb_activate_var() local 425 if (!par->blanked && tg && tg->change) in w100fb_activate_var() 426 tg->change(par); in w100fb_activate_var() 601 struct w100_tg_info *tg = par->mach->tg; in w100fb_suspend() local 604 if(tg && tg->suspend) in w100fb_suspend() [all …]
|
/Linux-v4.19/drivers/media/platform/qcom/camss/ |
D | camss-csid.c | 623 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 …]
|