Home
last modified time | relevance | path

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

123

/linux/block/
H A Dblk-throttle.c47 static inline struct blkcg_gq *tg_to_blkg(struct throtl_grp *tg) in tg_to_blkg() argument
49 return pd_to_blkg(&tg->pd); in tg_to_blkg()
76 struct throtl_grp *tg = sq_to_tg(sq); in sq_to_td() local
78 if (tg) in sq_to_td()
79 return tg->td; in sq_to_td()
84 static uint64_t tg_bps_limit(struct throtl_grp *tg, int rw) in tg_bps_limit() argument
86 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_bps_limit()
91 return tg->bps[rw]; in tg_bps_limit()
94 static unsigned int tg_iops_limit(struct throtl_grp *tg, int rw) in tg_iops_limit() argument
96 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_iops_limit()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dce110/
H A 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 …]
/linux/kernel/sched/
H A Dautogroup.h16 struct task_group *tg; member
23 extern void autogroup_free(struct task_group *tg);
25 static inline bool task_group_is_autogroup(struct task_group *tg) in task_group_is_autogroup() argument
27 return !!tg->autogroup; in task_group_is_autogroup()
30 extern bool task_wants_autogroup(struct task_struct *p, struct task_group *tg);
33 autogroup_task_group(struct task_struct *p, struct task_group *tg) in autogroup_task_group() argument
38 if (enabled && task_wants_autogroup(p, tg)) in autogroup_task_group()
39 return p->signal->autogroup->tg; in autogroup_task_group()
41 return tg; in autogroup_task_group()
44 extern int autogroup_path(struct task_group *tg, char *buf, int buflen);
[all …]
H A Dautogroup.c37 autogroup_default.tg = &root_task_group; in autogroup_init()
44 void autogroup_free(struct task_group *tg) in autogroup_free() argument
46 kfree(tg->autogroup); in autogroup_free()
55 ag->tg->rt_se = NULL; in autogroup_destroy()
56 ag->tg->rt_rq = NULL; in autogroup_destroy()
58 sched_release_group(ag->tg); in autogroup_destroy()
59 sched_destroy_group(ag->tg); in autogroup_destroy()
90 struct task_group *tg; in autogroup_create() local
95 tg = sched_create_group(&root_task_group); in autogroup_create()
96 if (IS_ERR(tg)) in autogroup_create()
[all …]
H A Dcore.c1499 int tg_nop(struct task_group *tg, void *data) in tg_nop() argument
1954 struct task_group *tg = &root_task_group; in uclamp_update_root_tg() local
1956 uclamp_se_set(&tg->uclamp_req[UCLAMP_MIN], in uclamp_update_root_tg()
1958 uclamp_se_set(&tg->uclamp_req[UCLAMP_MAX], in uclamp_update_root_tg()
4769 struct task_group *tg; in sched_cgroup_fork() local
4770 tg = container_of(kargs->cset->subsys[cpu_cgrp_id], in sched_cgroup_fork()
4772 tg = autogroup_task_group(p, tg); in sched_cgroup_fork()
4773 p->sched_task_group = tg; in sched_cgroup_fork()
9298 static inline void alloc_uclamp_sched_group(struct task_group *tg, in alloc_uclamp_sched_group() argument
9305 uclamp_se_set(&tg->uclamp_req[clamp_id], in alloc_uclamp_sched_group()
[all …]
H A Dsched.h565 extern int tg_nop(struct task_group *tg, void *data);
568 extern void free_fair_sched_group(struct task_group *tg);
569 extern int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent);
570 extern void online_fair_sched_group(struct task_group *tg);
571 extern void unregister_fair_sched_group(struct task_group *tg);
573 static inline void free_fair_sched_group(struct task_group *tg) { } in free_fair_sched_group() argument
574 static inline int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent) in alloc_fair_sched_group() argument
578 static inline void online_fair_sched_group(struct task_group *tg) { } in online_fair_sched_group() argument
579 static inline void unregister_fair_sched_group(struct task_group *tg) { } in unregister_fair_sched_group() argument
582 extern void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq,
[all …]
H A Dfair.c336 if (cfs_rq->tg->parent && in list_add_leaf_cfs_rq()
337 cfs_rq->tg->parent->cfs_rq[cpu]->on_list) { in list_add_leaf_cfs_rq()
345 &(cfs_rq->tg->parent->cfs_rq[cpu]->leaf_cfs_rq_list)); in list_add_leaf_cfs_rq()
355 if (!cfs_rq->tg->parent) { in list_add_leaf_cfs_rq()
462 static int tg_is_idle(struct task_group *tg) in tg_is_idle() argument
464 return tg->idle > 0; in tg_is_idle()
510 static inline int tg_is_idle(struct task_group *tg) in tg_is_idle() argument
4208 struct task_group *tg = cfs_rq->tg; in calc_group_shares() local
4210 tg_shares = READ_ONCE(tg->shares); in calc_group_shares()
4214 tg_weight = atomic_long_read(&tg->load_avg); in calc_group_shares()
[all …]
H A Ddebug.c751 static void print_cfs_group_stats(struct seq_file *m, int cpu, struct task_group *tg) in print_cfs_group_stats() argument
753 struct sched_entity *se = tg->se[cpu]; in print_cfs_group_stats()
801 static void task_group_path(struct task_group *tg, char *path, int plen) in task_group_path() argument
803 if (autogroup_path(tg, path, plen)) in task_group_path()
806 cgroup_path(tg->css.cgroup, path, plen); in task_group_path()
816 #define SEQ_printf_task_group_path(m, tg, fmt...) \ argument
819 task_group_path(tg, group_path, sizeof(group_path)); \
825 task_group_path(tg, buf, bufend - buf); \
916 SEQ_printf_task_group_path(m, cfs_rq->tg, "cfs_rq[%d]:%s\n", cpu); in print_cfs_rq()
979 atomic_long_read(&cfs_rq->tg->load_avg)); in print_cfs_rq()
[all …]
H A Dext.c3482 static struct cgroup *tg_cgrp(struct task_group *tg) in tg_cgrp() argument
3489 if (tg && tg->css.cgroup) in tg_cgrp()
3490 return tg->css.cgroup; in tg_cgrp()
3495 #define SCX_INIT_TASK_ARGS_CGROUP(tg) .cgroup = tg_cgrp(tg), argument
3499 #define SCX_INIT_TASK_ARGS_CGROUP(tg) argument
4274 void scx_tg_init(struct task_group *tg) in scx_tg_init() argument
4276 tg->scx.weight = CGROUP_WEIGHT_DFL; in scx_tg_init()
4277 tg->scx.bw_period_us = default_bw_period_us(); in scx_tg_init()
4278 tg->scx.bw_quota_us = RUNTIME_INF; in scx_tg_init()
4279 tg->scx.idle = false; in scx_tg_init()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dce60/
H A Ddce60_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
119 program_pix_dur(tg, timing->pix_clk_100hz); in program_timing()
121 dce110_tg_program_timing(tg, timing, 0, 0, 0, 0, 0, 0, use_vbios); in program_timing()
125 struct timing_generator *tg, in dce60_timing_generator_enable_advanced_request() argument
129 struct dce110_timing_generator *tg110 = DCE110TG_FROM_TG(tg); in dce60_timing_generator_enable_advanced_request()
131 uint32_t value = dm_read_reg(tg->ctx, addr); in dce60_timing_generator_enable_advanced_request()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn201/
H A Ddcn201_hwseq.c169 struct timing_generator *tg) in dcn201_init_blank() argument
183 tg->funcs->get_otg_active_size(tg, in dcn201_init_blank()
188 tg->funcs->get_optc_source(tg, &num_opps, &opp_id_src0, &opp_id_src1); in dcn201_init_blank()
276 struct timing_generator *tg = res_pool->timing_generators[i]; in dcn201_init_hw() local
278 if (tg->funcs->is_tg_enabled(tg)) { in dcn201_init_hw()
279 dcn201_init_blank(dc, tg); in dcn201_init_hw()
284 struct timing_generator *tg = res_pool->timing_generators[i]; in dcn201_init_hw() local
286 if (tg->funcs->is_tg_enabled(tg)) in dcn201_init_hw()
287 tg->funcs->lock(tg); in dcn201_init_hw()
308 struct timing_generator *tg = res_pool->timing_generators[i]; in dcn201_init_hw() local
[all …]
/linux/drivers/gpu/drm/amd/display/dc/hwss/dce110/
H A Ddce110_hwseq.c731 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dce110_enable_stream() local
749 tg->funcs->set_early_control(tg, early_control); in dce110_enable_stream()
1207 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dce110_disable_stream() local
1235 dto_params.otg_inst = tg->inst; in dce110_disable_stream()
1240 dccg->funcs->set_dpstreamclk(dccg, REFCLK, tg->inst, dp_hpo_inst); in dce110_disable_stream()
1518 pipe_ctx->stream_res.tg->inst + 1); in build_audio_output()
1552 if (pipe_ctx->stream_res.tg->funcs->set_overscan_blank_color) { in program_scaler()
1561 pipe_ctx->stream_res.tg->funcs->set_overscan_blank_color( in program_scaler()
1562 pipe_ctx->stream_res.tg, in program_scaler()
1586 pipe_ctx->stream_res.tg->funcs->set_blank_color( in dce110_enable_stream_timing()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/hwss/dce/
H A 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/drivers/iio/chemical/
H A Dsgp40.c172 struct sgp40_tg_measure tg = {.command = {0x26, 0x0F}}; in sgp40_measure_resistance_raw() local
179 tg.rht_ticks = cpu_to_be16(ticks16); in sgp40_measure_resistance_raw()
180 tg.rht_crc = crc8(sgp40_crc8_table, (u8 *)&tg.rht_ticks, 2, SGP40_CRC8_INIT); in sgp40_measure_resistance_raw()
184 tg.temp_ticks = cpu_to_be16(ticks16); in sgp40_measure_resistance_raw()
185 tg.temp_crc = crc8(sgp40_crc8_table, (u8 *)&tg.temp_ticks, 2, SGP40_CRC8_INIT); in sgp40_measure_resistance_raw()
189 ret = i2c_master_send(client, (const char *)&tg, sizeof(tg)); in sgp40_measure_resistance_raw()
190 if (ret != sizeof(tg)) { in sgp40_measure_resistance_raw()
191 dev_warn(data->dev, "i2c_master_send ret: %d sizeof: %zu\n", ret, sizeof(tg)); in sgp40_measure_resistance_raw()
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn401/
H A Ddcn401_hwseq.c679 dc->res_pool->dccg, pipe_ctx->stream_res.tg->inst, in dcn401_enable_stream_timing()
688 pipe_ctx->stream_res.tg->funcs->set_odm_combine( in dcn401_enable_stream_timing()
689 pipe_ctx->stream_res.tg, in dcn401_enable_stream_timing()
697 …s_pool->dccg->funcs->set_dtbclk_p_src(dc->res_pool->dccg, DPREFCLK, pipe_ctx->stream_res.tg->inst); in dcn401_enable_stream_timing()
704 pipe_ctx->stream_res.tg->funcs->enable_optc_clock(pipe_ctx->stream_res.tg, true); in dcn401_enable_stream_timing()
725 pipe_ctx->stream_res.tg->funcs->program_timing( in dcn401_enable_stream_timing()
726 pipe_ctx->stream_res.tg, in dcn401_enable_stream_timing()
753 if (false == pipe_ctx->stream_res.tg->funcs->enable_crtc(pipe_ctx->stream_res.tg)) { in dcn401_enable_stream_timing()
765 if (pipe_ctx->stream_res.tg->funcs->set_static_screen_control) in dcn401_enable_stream_timing()
766 pipe_ctx->stream_res.tg->funcs->set_static_screen_control( in dcn401_enable_stream_timing()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_hw_sequencer.c296 struct timing_generator *tg) in hwss_wait_for_blank_complete() argument
301 if (!tg->funcs->is_blanked) in hwss_wait_for_blank_complete()
304 if (tg->funcs->is_blanked(tg)) in hwss_wait_for_blank_complete()
701 if (pipe_ctx && pipe_ctx->stream_res.tg && in set_drr_and_clear_adjust_pending()
702 pipe_ctx->stream_res.tg->funcs->set_drr) in set_drr_and_clear_adjust_pending()
703 pipe_ctx->stream_res.tg->funcs->set_drr( in set_drr_and_clear_adjust_pending()
704 pipe_ctx->stream_res.tg, params); in set_drr_and_clear_adjust_pending()
1643 struct timing_generator *tg, int opp_inst[MAX_PIPES], int opp_head_count, in hwss_add_optc_set_odm_combine() argument
1647 seq_state->steps[*seq_state->num_steps].params.set_odm_combine_params.tg = tg; in hwss_add_optc_set_odm_combine()
1661 struct timing_generator *tg, struct dc_crtc_timing *timing) in hwss_add_optc_set_odm_bypass() argument
[all …]
H A Ddc_stream.c537 pipe_ctx->stream_res.tg->funcs->program_manual_trigger) { in dc_stream_program_cursor_position()
538 pipe_ctx->stream_res.tg->funcs->program_manual_trigger( in dc_stream_program_cursor_position()
539 pipe_ctx->stream_res.tg); in dc_stream_program_cursor_position()
728 struct timing_generator *tg = res_ctx->pipe_ctx[i].stream_res.tg; in dc_stream_get_vblank_counter() local
730 if (res_ctx->pipe_ctx[i].stream != stream || !tg) in dc_stream_get_vblank_counter()
733 return tg->funcs->get_frame_count(tg); in dc_stream_get_vblank_counter()
796 struct timing_generator *tg = res_ctx->pipe_ctx[i].stream_res.tg; in dc_stream_get_scanoutpos() local
798 if (res_ctx->pipe_ctx[i].stream != stream || !tg) in dc_stream_get_scanoutpos()
801 tg->funcs->get_scanoutpos(tg, in dc_stream_get_scanoutpos()
H A Ddc_resource.c2206 if (otg_master->stream_res.tg) in resource_get_odm_slice_dst_width()
2208 otg_master->stream_res.tg->funcs->is_two_pixels_per_container(timing) || in resource_get_odm_slice_dst_width()
2370 pipe->stream_res.tg->inst); in resource_log_pipe()
2374 pipe->stream_res.tg->inst, is_phantom_pipe); in resource_log_pipe()
2382 pipe->stream_res.tg->inst); in resource_log_pipe()
2386 pipe->stream_res.tg->inst, is_phantom_pipe); in resource_log_pipe()
2397 pipe->stream_res.tg->inst, is_phantom_pipe); in resource_log_pipe()
2407 pipe->stream_res.tg->inst, is_phantom_pipe); in resource_log_pipe()
2416 pipe->stream_res.tg->inst, is_phantom_pipe); in resource_log_pipe()
2425 pipe->stream_res.tg->inst, is_phantom_pipe); in resource_log_pipe()
[all …]
/linux/arch/powerpc/kernel/
H A Dsmp.c834 struct thread_groups *tg = &tglp->property_tgs[property_idx++]; in parse_thread_groups() local
836 tg->property = thread_group_array[i]; in parse_thread_groups()
837 tg->nr_groups = thread_group_array[i + 1]; in parse_thread_groups()
838 tg->threads_per_group = thread_group_array[i + 2]; in parse_thread_groups()
839 total_threads = tg->nr_groups * tg->threads_per_group; in parse_thread_groups()
844 tg->thread_list[j] = thread_list[j]; in parse_thread_groups()
869 static int get_cpu_thread_group_start(int cpu, struct thread_groups *tg) in get_cpu_thread_group_start() argument
874 for (i = 0; i < tg->nr_groups; i++) { in get_cpu_thread_group_start()
875 int group_start = i * tg->threads_per_group; in get_cpu_thread_group_start()
877 for (j = 0; j < tg->threads_per_group; j++) { in get_cpu_thread_group_start()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn21/
H A Ddcn21_hwseq.c181 uint32_t otg_inst = pipe_ctx->stream_res.tg->inst; in dcn21_set_abm_immediate_disable()
214 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dcn21_set_pipe() local
219 if (!abm || !tg || !panel_cntl) in dcn21_set_pipe()
222 otg_inst = tg->inst; in dcn21_set_pipe()
248 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dcn21_set_backlight_level() local
254 if (!abm || !tg || !panel_cntl) in dcn21_set_backlight_level()
257 otg_inst = tg->inst; in dcn21_set_backlight_level()
/linux/drivers/firmware/efi/libstub/
H A Darm64.c60 u64 tg; in check_platform_features() local
74 tg = (read_cpuid(ID_AA64MMFR0_EL1) >> ID_AA64MMFR0_EL1_TGRAN_SHIFT) & 0xf; in check_platform_features()
75 if (tg < ID_AA64MMFR0_EL1_TGRAN_SUPPORTED_MIN || tg > ID_AA64MMFR0_EL1_TGRAN_SUPPORTED_MAX) { in check_platform_features()
/linux/drivers/hwtracing/coresight/
H A Dcoresight-cti-platform.c317 struct cti_trig_grp *tg = NULL; in cti_plat_process_filter_sigs() local
328 tg = kzalloc_obj(*tg); 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/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api_kunit.c335 .tg = NULL, in vcap_api_set_bit_1_test()
352 .tg = NULL, in vcap_api_set_bit_0_test()
755 const struct vcap_typegroup *tg; in vcap_api_keyfield_typegroup_test() local
757 tg = vcap_keyfield_typegroup(&test_vctrl, VCAP_TYPE_IS2, VCAP_KFS_MAC_ETYPE); in vcap_api_keyfield_typegroup_test()
758 KUNIT_EXPECT_PTR_NE(test, NULL, tg); in vcap_api_keyfield_typegroup_test()
759 KUNIT_EXPECT_EQ(test, 0, tg[0].offset); in vcap_api_keyfield_typegroup_test()
760 KUNIT_EXPECT_EQ(test, 2, tg[0].width); in vcap_api_keyfield_typegroup_test()
761 KUNIT_EXPECT_EQ(test, 2, tg[0].value); in vcap_api_keyfield_typegroup_test()
762 KUNIT_EXPECT_EQ(test, 156, tg[1].offset); in vcap_api_keyfield_typegroup_test()
763 KUNIT_EXPECT_EQ(test, 1, tg[1].width); in vcap_api_keyfield_typegroup_test()
[all …]
H A Dvcap_api_private.h48 const struct vcap_typegroup *tg; /* current typegroup */ member
59 const struct vcap_typegroup *tg, u32 offset);
62 const struct vcap_typegroup *tg, u32 offset);
H A Dvcap_api.c50 const struct vcap_typegroup *tg, u32 offset) in vcap_iter_set() argument
56 itr->tg = tg; in vcap_iter_set()
64 while (itr->tg->width && itr->offset >= itr->tg->offset) { in vcap_iter_skip_tg()
65 itr->offset += itr->tg->width; in vcap_iter_skip_tg()
66 itr->tg++; /* next typegroup */ in vcap_iter_skip_tg()
83 const struct vcap_typegroup *tg, u32 offset) in vcap_iter_init() argument
85 vcap_iter_set(itr, sw_width, tg, offset); in vcap_iter_init()
113 while (itr->tg->width && in vcap_encode_bit()
114 itr->offset >= itr->tg->offset && in vcap_encode_bit()
115 itr->offset < itr->tg->offset + itr->tg->width) { in vcap_encode_bit()
[all …]

123