| /Linux-v5.15/block/ |
| D | blk-throttle.c | 71 struct throtl_grp *tg; /* tg this qnode belongs to */ member 244 static inline struct blkcg_gq *tg_to_blkg(struct throtl_grp *tg) in tg_to_blkg() argument 246 return pd_to_blkg(&tg->pd); in tg_to_blkg() 273 struct throtl_grp *tg = sq_to_tg(sq); in sq_to_td() local 275 if (tg) in sq_to_td() 276 return tg->td; in sq_to_td() 299 static uint64_t tg_bps_limit(struct throtl_grp *tg, int rw) in tg_bps_limit() argument 301 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_bps_limit() 308 td = tg->td; in tg_bps_limit() 309 ret = tg->bps[rw][td->limit_index]; in tg_bps_limit() [all …]
|
| /Linux-v5.15/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 64 dm_write_reg(tg->ctx, in dce110_timing_generator_v_enable_crtc() 69 dm_write_reg(tg->ctx, mmCRTCV_MASTER_UPDATE_MODE, value); in dce110_timing_generator_v_enable_crtc() 74 dm_write_reg(tg->ctx, in dce110_timing_generator_v_enable_crtc() 80 static bool dce110_timing_generator_v_disable_crtc(struct timing_generator *tg) in dce110_timing_generator_v_disable_crtc() argument 84 value = dm_read_reg(tg->ctx, in dce110_timing_generator_v_disable_crtc() 90 dm_write_reg(tg->ctx, in dce110_timing_generator_v_disable_crtc() 99 static void dce110_timing_generator_v_blank_crtc(struct timing_generator *tg) in dce110_timing_generator_v_blank_crtc() argument 102 uint32_t value = dm_read_reg(tg->ctx, addr); in dce110_timing_generator_v_blank_crtc() [all …]
|
| D | dce110_hw_sequencer.c | 671 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dce110_enable_stream() local 694 tg->funcs->set_early_control(tg, early_control); in dce110_enable_stream() 1328 pipe_ctx->stream_res.tg->inst + 1); in build_audio_output() 1360 if (pipe_ctx->stream_res.tg->funcs->set_overscan_blank_color) { in program_scaler() 1369 pipe_ctx->stream_res.tg->funcs->set_overscan_blank_color( in program_scaler() 1370 pipe_ctx->stream_res.tg, in program_scaler() 1393 pipe_ctx->stream_res.tg->funcs->set_blank_color( in dce110_enable_stream_timing() 1394 pipe_ctx->stream_res.tg, in dce110_enable_stream_timing() 1401 pipe_ctx->stream_res.tg->funcs->set_blank(pipe_ctx->stream_res.tg, true); in dce110_enable_stream_timing() 1411 pipe_ctx->stream_res.tg->funcs->program_timing( in dce110_enable_stream_timing() [all …]
|
| /Linux-v5.15/drivers/gpu/drm/amd/display/dc/inc/hw/ |
| D | timing_generator.h | 152 bool (*validate_timing)(struct timing_generator *tg, 154 void (*program_timing)(struct timing_generator *tg, 174 bool (*enable_crtc)(struct timing_generator *tg); 175 bool (*disable_crtc)(struct timing_generator *tg); 176 bool (*immediate_disable_crtc)(struct timing_generator *tg); 177 bool (*is_counter_moving)(struct timing_generator *tg); 178 void (*get_position)(struct timing_generator *tg, 181 uint32_t (*get_frame_count)(struct timing_generator *tg); 183 struct timing_generator *tg, 191 bool (*is_matching_timing)(struct timing_generator *tg, [all …]
|
| /Linux-v5.15/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 static 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 static 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.15/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 | 140 void free_rt_sched_group(struct task_group *tg) in free_rt_sched_group() argument 144 if (tg->rt_se) in free_rt_sched_group() 145 destroy_rt_bandwidth(&tg->rt_bandwidth); in free_rt_sched_group() 148 if (tg->rt_rq) in free_rt_sched_group() 149 kfree(tg->rt_rq[i]); in free_rt_sched_group() 150 if (tg->rt_se) in free_rt_sched_group() 151 kfree(tg->rt_se[i]); in free_rt_sched_group() 154 kfree(tg->rt_rq); in free_rt_sched_group() 155 kfree(tg->rt_se); in free_rt_sched_group() 158 void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq, in init_tg_rt_entry() argument [all …]
|
| D | core.c | 1196 int tg_nop(struct task_group *tg, void *data) in tg_nop() argument 1700 struct task_group *tg = &root_task_group; in uclamp_update_root_tg() local 1702 uclamp_se_set(&tg->uclamp_req[UCLAMP_MIN], in uclamp_update_root_tg() 1704 uclamp_se_set(&tg->uclamp_req[UCLAMP_MAX], in uclamp_update_root_tg() 9697 static inline void alloc_uclamp_sched_group(struct task_group *tg, in alloc_uclamp_sched_group() argument 9704 uclamp_se_set(&tg->uclamp_req[clamp_id], in alloc_uclamp_sched_group() 9706 tg->uclamp[clamp_id] = parent->uclamp[clamp_id]; in alloc_uclamp_sched_group() 9711 static void sched_free_group(struct task_group *tg) in sched_free_group() argument 9713 free_fair_sched_group(tg); in sched_free_group() 9714 free_rt_sched_group(tg); in sched_free_group() [all …]
|
| D | sched.h | 474 extern int tg_nop(struct task_group *tg, void *data); 476 extern void free_fair_sched_group(struct task_group *tg); 477 extern int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent); 478 extern void online_fair_sched_group(struct task_group *tg); 479 extern void unregister_fair_sched_group(struct task_group *tg); 480 extern void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq, 489 extern void free_rt_sched_group(struct task_group *tg); 490 extern int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent); 491 extern void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq, 494 extern int sched_group_set_rt_runtime(struct task_group *tg, long rt_runtime_us); [all …]
|
| /Linux-v5.15/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()
|
| /Linux-v5.15/drivers/gpu/drm/amd/display/dc/dcn10/ |
| D | dcn10_hw_sequencer.c | 98 struct timing_generator *tg; in dcn10_lock_all_pipes() local 103 tg = pipe_ctx->stream_res.tg; in dcn10_lock_all_pipes() 111 !tg->funcs->is_tg_enabled(tg)) in dcn10_lock_all_pipes() 350 struct timing_generator *tg = pool->timing_generators[i]; in dcn10_log_hw_state() local 353 optc1_read_otg_state(DCN10TG_FROM_TG(tg), &s); in dcn10_log_hw_state() 365 s.blank_enabled = tg->funcs->is_blanked(tg); in dcn10_log_hw_state() 372 tg->inst, in dcn10_log_hw_state() 396 tg->funcs->clear_optc_underflow(tg); in dcn10_log_hw_state() 475 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dcn10_did_underflow_occur() local 477 if (tg->funcs->is_optc_underflow_occurred(tg)) { in dcn10_did_underflow_occur() [all …]
|
| /Linux-v5.15/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 …]
|
| /Linux-v5.15/drivers/gpu/drm/amd/display/dc/dcn20/ |
| D | dcn20_hwseq.c | 163 if (pipe_ctx->stream_res.tg->funcs->set_gsl != NULL && in dcn20_setup_gsl_group_as_lock() 164 pipe_ctx->stream_res.tg->funcs->set_gsl_source_select != NULL) { in dcn20_setup_gsl_group_as_lock() 165 pipe_ctx->stream_res.tg->funcs->set_gsl( in dcn20_setup_gsl_group_as_lock() 166 pipe_ctx->stream_res.tg, in dcn20_setup_gsl_group_as_lock() 169 pipe_ctx->stream_res.tg->funcs->set_gsl_source_select( in dcn20_setup_gsl_group_as_lock() 170 pipe_ctx->stream_res.tg, group_idx, enable ? 4 : 0); in dcn20_setup_gsl_group_as_lock() 276 struct timing_generator *tg) in dcn20_init_blank() argument 291 tg->funcs->get_otg_active_size(tg, in dcn20_init_blank() 296 tg->funcs->get_optc_source(tg, &num_opps, &opp_id_src0, &opp_id_src1); in dcn20_init_blank() 671 pipe_ctx->stream_res.tg->funcs->set_odm_combine( in dcn20_enable_stream_timing() [all …]
|
| /Linux-v5.15/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-v5.15/drivers/iio/chemical/ |
| D | sgp40.c | 167 struct sgp40_tg_measure tg = {.command = {0x26, 0x0F}}; in sgp40_measure_resistance_raw() local 174 tg.rht_ticks = cpu_to_be16(ticks16); in sgp40_measure_resistance_raw() 175 tg.rht_crc = crc8(sgp40_crc8_table, (u8 *)&tg.rht_ticks, 2, SGP40_CRC8_INIT); in sgp40_measure_resistance_raw() 179 tg.temp_ticks = cpu_to_be16(ticks16); in sgp40_measure_resistance_raw() 180 tg.temp_crc = crc8(sgp40_crc8_table, (u8 *)&tg.temp_ticks, 2, SGP40_CRC8_INIT); in sgp40_measure_resistance_raw() 184 ret = i2c_master_send(client, (const char *)&tg, sizeof(tg)); in sgp40_measure_resistance_raw() 185 if (ret != sizeof(tg)) { in sgp40_measure_resistance_raw() 186 dev_warn(data->dev, "i2c_master_send ret: %d sizeof: %zu\n", ret, sizeof(tg)); in sgp40_measure_resistance_raw()
|
| /Linux-v5.15/arch/powerpc/kernel/ |
| D | smp.c | 810 struct thread_groups *tg = &tglp->property_tgs[property_idx++]; in parse_thread_groups() local 812 tg->property = thread_group_array[i]; in parse_thread_groups() 813 tg->nr_groups = thread_group_array[i + 1]; in parse_thread_groups() 814 tg->threads_per_group = thread_group_array[i + 2]; in parse_thread_groups() 815 total_threads = tg->nr_groups * tg->threads_per_group; in parse_thread_groups() 820 tg->thread_list[j] = thread_list[j]; in parse_thread_groups() 845 static int get_cpu_thread_group_start(int cpu, struct thread_groups *tg) in get_cpu_thread_group_start() argument 850 for (i = 0; i < tg->nr_groups; i++) { in get_cpu_thread_group_start() 851 int group_start = i * tg->threads_per_group; in get_cpu_thread_group_start() 853 for (j = 0; j < tg->threads_per_group; j++) { in get_cpu_thread_group_start() [all …]
|
| /Linux-v5.15/drivers/gpu/drm/amd/display/dc/dcn31/ |
| D | dcn31_hwseq.c | 516 pipe_ctx->stream_res.tg->funcs->set_dsc_config( in dcn31_reset_back_end_for_pipe() 517 pipe_ctx->stream_res.tg, in dcn31_reset_back_end_for_pipe() 519 pipe_ctx->stream_res.tg->funcs->disable_crtc(pipe_ctx->stream_res.tg); in dcn31_reset_back_end_for_pipe() 521 pipe_ctx->stream_res.tg->funcs->enable_optc_clock(pipe_ctx->stream_res.tg, false); in dcn31_reset_back_end_for_pipe() 522 if (pipe_ctx->stream_res.tg->funcs->set_odm_bypass) in dcn31_reset_back_end_for_pipe() 523 pipe_ctx->stream_res.tg->funcs->set_odm_bypass( in dcn31_reset_back_end_for_pipe() 524 pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing); in dcn31_reset_back_end_for_pipe() 526 if (pipe_ctx->stream_res.tg->funcs->set_drr) in dcn31_reset_back_end_for_pipe() 527 pipe_ctx->stream_res.tg->funcs->set_drr( in dcn31_reset_back_end_for_pipe() 528 pipe_ctx->stream_res.tg, NULL); in dcn31_reset_back_end_for_pipe() [all …]
|
| /Linux-v5.15/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_MIN || tg > ID_AA64MMFR0_TGRAN_SUPPORTED_MAX) { in check_platform_features()
|
| /Linux-v5.15/drivers/gpu/drm/ |
| D | drm_connector.c | 2561 struct drm_tile_group *tg = container_of(kref, struct drm_tile_group, refcount); in drm_tile_group_free() local 2562 struct drm_device *dev = tg->dev; in drm_tile_group_free() 2565 idr_remove(&dev->mode_config.tile_idr, tg->id); in drm_tile_group_free() 2567 kfree(tg); in drm_tile_group_free() 2578 struct drm_tile_group *tg) in drm_mode_put_tile_group() argument 2580 kref_put(&tg->refcount, drm_tile_group_free); in drm_mode_put_tile_group() 2597 struct drm_tile_group *tg; in drm_mode_get_tile_group() local 2601 idr_for_each_entry(&dev->mode_config.tile_idr, tg, id) { in drm_mode_get_tile_group() 2602 if (!memcmp(tg->group_data, topology, 8)) { in drm_mode_get_tile_group() 2603 if (!kref_get_unless_zero(&tg->refcount)) in drm_mode_get_tile_group() [all …]
|
| /Linux-v5.15/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()
|
| /Linux-v5.15/drivers/media/platform/qcom/camss/ |
| D | camss-csid-4-1.c | 172 struct csid_testgen_config *tg = &csid->testgen; in csid_configure_stream() local 182 if (tg->enabled) { in csid_configure_stream() 208 val = tg->mode - 1; in csid_configure_stream() 242 if (tg->enabled) { in csid_configure_stream() 247 if (tg->enabled) { in csid_configure_stream()
|