Home
last modified time | relevance | path

Searched refs:tg (Results 1 – 25 of 55) 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()
136 throtl_qnode_init(struct throtl_qnode * qn,struct throtl_grp * tg) throtl_qnode_init() argument
264 struct throtl_grp *tg; throtl_pd_alloc() local
301 struct throtl_grp *tg = pd_to_tg(pd); throtl_pd_init() local
331 tg_update_has_rules(struct throtl_grp * tg) tg_update_has_rules() argument
348 struct throtl_grp *tg = pd_to_tg(pd); throtl_pd_online() local
358 struct throtl_grp *tg = pd_to_tg(pd); throtl_pd_free() local
387 struct throtl_grp *tg; update_min_dispatch_time() local
396 tg_service_queue_add(struct throtl_grp * tg) tg_service_queue_add() argument
422 throtl_enqueue_tg(struct throtl_grp * tg) throtl_enqueue_tg() argument
431 throtl_dequeue_tg(struct throtl_grp * tg) throtl_dequeue_tg() argument
500 throtl_start_new_slice_with_credit(struct throtl_grp * tg,bool rw,unsigned long start) throtl_start_new_slice_with_credit() argument
522 throtl_start_new_slice(struct throtl_grp * tg,bool rw,bool clear) throtl_start_new_slice() argument
538 throtl_set_slice_end(struct throtl_grp * tg,bool rw,unsigned long jiffy_end) throtl_set_slice_end() argument
544 throtl_extend_slice(struct throtl_grp * tg,bool rw,unsigned long jiffy_end) throtl_extend_slice() argument
558 throtl_slice_used(struct throtl_grp * tg,bool rw) throtl_slice_used() argument
606 throtl_trim_bps(struct throtl_grp * tg,bool rw,unsigned long time_elapsed) throtl_trim_bps() argument
627 throtl_trim_iops(struct throtl_grp * tg,bool rw,unsigned long time_elapsed) throtl_trim_iops() argument
649 throtl_trim_slice(struct throtl_grp * tg,bool rw) throtl_trim_slice() argument
703 __tg_update_carryover(struct throtl_grp * tg,bool rw,long long * bytes,int * ios) __tg_update_carryover() argument
746 tg_update_carryover(struct throtl_grp * tg) tg_update_carryover() argument
759 tg_within_iops_limit(struct throtl_grp * tg,struct bio * bio,u32 iops_limit) tg_within_iops_limit() argument
782 tg_within_bps_limit(struct throtl_grp * tg,struct bio * bio,u64 bps_limit) tg_within_bps_limit() argument
819 throtl_charge_bps_bio(struct throtl_grp * tg,struct bio * bio) throtl_charge_bps_bio() argument
831 throtl_charge_iops_bio(struct throtl_grp * tg,struct bio * bio) throtl_charge_iops_bio() argument
843 tg_update_slice(struct throtl_grp * tg,bool rw) tg_update_slice() argument
852 tg_dispatch_bps_time(struct throtl_grp * tg,struct bio * bio) tg_dispatch_bps_time() argument
871 tg_dispatch_iops_time(struct throtl_grp * tg,struct bio * bio) tg_dispatch_iops_time() argument
891 tg_dispatch_time(struct throtl_grp * tg,struct bio * bio) tg_dispatch_time() argument
928 throtl_add_bio_tg(struct bio * bio,struct throtl_qnode * qn,struct throtl_grp * tg) throtl_add_bio_tg() argument
959 tg_update_disptime(struct throtl_grp * tg) tg_update_disptime() argument
996 tg_dispatch_one_bio(struct throtl_grp * tg,bool rw) tg_dispatch_one_bio() argument
1038 throtl_dispatch_tg(struct throtl_grp * tg) throtl_dispatch_tg() argument
1076 struct throtl_grp *tg; throtl_select_dispatch() local
1123 struct throtl_grp *tg = sq_to_tg(sq); throtl_pending_timer_fn() local
1228 struct throtl_grp *tg = pd_to_tg(pd); tg_prfill_conf_u64() local
1239 struct throtl_grp *tg = pd_to_tg(pd); tg_prfill_conf_uint() local
1261 tg_conf_updated(struct throtl_grp * tg,bool global) tg_conf_updated() argument
1348 struct throtl_grp *tg; tg_set_conf() local
1478 struct throtl_grp *tg = pd_to_tg(pd); tg_prfill_limit() local
1532 struct throtl_grp *tg; tg_set_limit() local
1624 tg_flush_bios(struct throtl_grp * tg) tg_flush_bios() argument
1702 tg_within_limit(struct throtl_grp * tg,struct bio * bio,bool rw) tg_within_limit() argument
1735 struct throtl_grp *tg = blkg_to_tg(blkg); __blk_throtl_bio() local
[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.c1518 int tg_nop(struct task_group *tg, void *data) in set_load_weight()
1973 struct task_group *tg = &root_task_group; in uclamp_sync_util_min_rt_default()
1975 uclamp_se_set(&tg->uclamp_req[UCLAMP_MIN], in uclamp_sync_util_min_rt_default()
1977 uclamp_se_set(&tg->uclamp_req[UCLAMP_MAX], in uclamp_sync_util_min_rt_default()
4885 struct task_group *tg; in preempt_notifier_register()
4886 tg = container_of(kargs->cset->subsys[cpu_cgrp_id], in preempt_notifier_register()
4888 tg = autogroup_task_group(p, tg); in preempt_notifier_register()
4889 p->sched_task_group = tg;
9332 static inline void alloc_uclamp_sched_group(struct task_group *tg, in sched_unregister_group()
1499 tg_nop(struct task_group * tg,void * data) tg_nop() argument
1954 struct task_group *tg = &root_task_group; uclamp_update_root_tg() local
4769 struct task_group *tg; sched_cgroup_fork() local
9298 alloc_uclamp_sched_group(struct task_group * tg,struct task_group * parent) alloc_uclamp_sched_group() argument
9312 sched_free_group(struct task_group * tg) sched_free_group() argument
9325 sched_unregister_group(struct task_group * tg) sched_unregister_group() argument
9339 struct task_group *tg; sched_create_group() local
9361 sched_online_group(struct task_group * tg,struct task_group * parent) sched_online_group() argument
9386 sched_destroy_group(struct task_group * tg) sched_destroy_group() argument
9392 sched_release_group(struct task_group * tg) sched_release_group() argument
9417 struct task_group *tg; sched_change_group() local
9475 struct task_group *tg; cpu_cgroup_css_alloc() local
9492 struct task_group *tg = css_tg(css); cpu_cgroup_css_online() local
9515 struct task_group *tg = css_tg(css); cpu_cgroup_css_offline() local
9522 struct task_group *tg = css_tg(css); cpu_cgroup_css_released() local
9529 struct task_group *tg = css_tg(css); cpu_cgroup_css_free() local
9666 struct task_group *tg; cpu_uclamp_write() local
9710 struct task_group *tg; cpu_uclamp_print() local
9744 tg_weight(struct task_group * tg) tg_weight() argument
9779 tg_set_cfs_bandwidth(struct task_group * tg,u64 period_us,u64 quota_us,u64 burst_us) tg_set_cfs_bandwidth() argument
9848 tg_get_cfs_period(struct task_group * tg) tg_get_cfs_period() argument
9858 tg_get_cfs_quota(struct task_group * tg) tg_get_cfs_quota() argument
9871 tg_get_cfs_burst(struct task_group * tg) tg_get_cfs_burst() argument
9882 struct task_group *tg; global() member
9890 normalize_cfs_quota(struct task_group * tg,struct cfs_schedulable_data * d) normalize_cfs_quota() argument
9910 tg_cfs_schedulable_down(struct task_group * tg,void * data) tg_cfs_schedulable_down() argument
9948 __cfs_schedulable(struct task_group * tg,u64 period,u64 quota) __cfs_schedulable() argument
9967 struct task_group *tg = css_tg(seq_css(sf)); cpu_cfs_stat_show() local
9993 throttled_time_self(struct task_group * tg) throttled_time_self() argument
10007 struct task_group *tg = css_tg(seq_css(sf)); cpu_cfs_local_stat_show() local
10021 tg_bandwidth(struct task_group * tg,u64 * period_us_p,u64 * quota_us_p,u64 * burst_us_p) tg_bandwidth() argument
10050 tg_set_bandwidth(struct task_group * tg,u64 period_us,u64 quota_us,u64 burst_us) tg_set_bandwidth() argument
10121 struct task_group *tg = css_tg(css); cpu_period_write_u64() local
10131 struct task_group *tg = css_tg(css); cpu_quota_write_s64() local
10144 struct task_group *tg = css_tg(css); cpu_burst_write_u64() local
10308 struct task_group *tg = css_tg(css); cpu_extra_stat_show() local
10334 struct task_group *tg = css_tg(css); cpu_local_stat_show() local
10444 struct task_group *tg = css_tg(seq_css(sf)); cpu_max_show() local
10455 struct task_group *tg = css_tg(of_css(of)); cpu_max_write() local
[all...]
H A Dsched.h567 extern int tg_nop(struct task_group *tg, void *data);
570 extern void free_fair_sched_group(struct task_group *tg);
571 extern int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent);
572 extern void online_fair_sched_group(struct task_group *tg);
573 extern void unregister_fair_sched_group(struct task_group *tg); in free_fair_sched_group() argument
575 static inline void free_fair_sched_group(struct task_group *tg) { } in alloc_fair_sched_group()
576 static inline int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent) in alloc_fair_sched_group()
580 static inline void online_fair_sched_group(struct task_group *tg) { }
581 static inline void unregister_fair_sched_group(struct task_group *tg) { }
584 extern void init_tg_cfs_entry(struct task_group *tg, struc
574 alloc_fair_sched_group(struct task_group * tg,struct task_group * parent) alloc_fair_sched_group() argument
578 online_fair_sched_group(struct task_group * tg) online_fair_sched_group() argument
579 unregister_fair_sched_group(struct task_group * tg) unregister_fair_sched_group() argument
617 sched_group_set_shares(struct task_group * tg,unsigned long shares) sched_group_set_shares() argument
618 sched_group_set_idle(struct task_group * tg,long idle) sched_group_set_idle() argument
747 struct task_group *tg; /* Group that "owns" this runqueue */ global() member
863 struct task_group *tg; /* this tg has "this" rt_rq on given CPU for runnable entities */ global() member
2274 struct task_group *tg = task_group(p); set_task_rq() local
[all...]
H A Dfair.c116 * Amount of runtime to allocate from global (tg) to local (per-cfs_rq) pool
336 if (cfs_rq->tg->parent && in list_add_leaf_cfs_rq()
337 tg_cfs_rq(cfs_rq->tg->parent, cpu)->on_list) { in list_add_leaf_cfs_rq()
345 &(tg_cfs_rq(cfs_rq->tg->parent, 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
4737 * tg->weight * grq->load.weight in propagate_entity_load_avg()
4751 * tg in migrate_se_pelt_lag()
4208 struct task_group *tg = cfs_rq->tg; calc_group_shares() local
4429 struct task_group *tg; clear_tg_offline_cfs_rqs() local
5911 tg_cfs_bandwidth(struct task_group * tg) tg_cfs_bandwidth() argument
6145 tg_unthrottle_up(struct task_group * tg,void * data) tg_unthrottle_up() argument
6216 tg_throttle_down(struct task_group * tg,void * data) tg_throttle_down() argument
6683 sync_throttle(struct task_group * tg,int cpu) sync_throttle() argument
6879 struct task_group *tg; update_runtime_enabled() local
6898 struct task_group *tg; unthrottle_offline_cfs_rqs() local
6986 sync_throttle(struct task_group * tg,int cpu) sync_throttle() argument
7019 tg_cfs_bandwidth(struct task_group * tg) tg_cfs_bandwidth() argument
13930 free_fair_sched_group(struct task_group * tg) free_fair_sched_group() argument
13945 alloc_fair_sched_group(struct task_group * tg,struct task_group * parent) alloc_fair_sched_group() argument
13986 online_fair_sched_group(struct task_group * tg) online_fair_sched_group() argument
14004 unregister_fair_sched_group(struct task_group * tg) unregister_fair_sched_group() argument
14038 init_tg_cfs_entry(struct task_group * tg,struct cfs_rq * cfs_rq,struct sched_entity * se,int cpu,struct sched_entity * parent) init_tg_cfs_entry() argument
14071 __sched_group_set_shares(struct task_group * tg,unsigned long shares) __sched_group_set_shares() argument
14107 sched_group_set_shares(struct task_group * tg,unsigned long shares) sched_group_set_shares() argument
14121 sched_group_set_idle(struct task_group * tg,long idle) sched_group_set_idle() argument
[all...]
H A Ddebug.c809 static void print_cfs_group_stats(struct seq_file *m, int cpu, struct task_group *tg)
811 struct sched_entity *se = tg_se(tg, cpu);
859 static void task_group_path(struct task_group *tg, char *path, int plen) in print_task()
861 if (autogroup_path(tg, path, plen)) in print_task()
864 cgroup_path(tg->css.cgroup, path, plen); in print_task()
874 #define SEQ_printf_task_group_path(m, tg, fmt...) \ in print_rq()
877 task_group_path(tg, group_path, sizeof(group_path)); \ in print_rq()
883 task_group_path(tg, buf, bufend - buf); \ in print_rq()
974 SEQ_printf_task_group_path(m, cfs_rq->tg, "cfs_rq[%d]:%s\n", cpu); in print_cfs_rq()
1037 atomic_long_read(&cfs_rq->tg in print_dl_rq()
751 print_cfs_group_stats(struct seq_file * m,int cpu,struct task_group * tg) print_cfs_group_stats() argument
801 task_group_path(struct task_group * tg,char * path,int plen) task_group_path() argument
816 SEQ_printf_task_group_path(m,tg,fmt...) global() argument
[all...]
H A Dext.c
/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()
1208 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dce110_disable_stream()
1239 dto_params.otg_inst = tg->inst; in dce110_disable_stream()
1244 dccg->funcs->set_dpstreamclk(dccg, REFCLK, tg->inst, dp_hpo_inst); in dce110_disable_stream()
1332 pipe_ctx->stream_res.tg->inst); in translate_to_dto_source()
1558 pipe_ctx->stream_res.tg in program_scaler()
1207 struct timing_generator *tg = pipe_ctx->stream_res.tg; dce110_disable_stream() local
1851 struct timing_generator *tg; disable_vga_and_power_gate_all_controllers() local
1914 struct timing_generator *tg = NULL; clean_up_dsc_blocks() local
1960 struct timing_generator *tg = NULL; dc_hwss_enable_otg_pwa() local
2235 struct timing_generator *tg = pipe_ctx[i]->stream_res.tg; set_drr() local
2788 wait_for_reset_trigger_to_occur(struct dc_context * dc_ctx,struct timing_generator * tg) wait_for_reset_trigger_to_occur() argument
2954 struct timing_generator *tg = dc->res_pool->timing_generators[i]; dce110_init_hw() local
[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()
[all...]
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn401/
H A Ddcn401_hwseq.c790 if (pipe_ctx->stream_res.tg->funcs->set_h_timing_div_manual_mode) { in get_phyd32clk_src()
831 dc->res_pool->dccg, pipe_ctx->stream_res.tg->inst, in dcn401_enable_stream_calc()
840 pipe_ctx->stream_res.tg->funcs->set_odm_combine(
841 pipe_ctx->stream_res.tg, in dcn401_enable_stream()
849 dc->res_pool->dccg->funcs->set_dtbclk_p_src(dc->res_pool->dccg, DPREFCLK, pipe_ctx->stream_res.tg->inst); in dcn401_enable_stream()
851 dc->res_pool->dccg->funcs->set_dtbclk_p_src(dc->res_pool->dccg, DTBCLK0, pipe_ctx->stream_res.tg->inst); in dcn401_enable_stream()
858 pipe_ctx->stream_res.tg->funcs->enable_optc_clock(pipe_ctx->stream_res.tg, true); in dcn401_enable_stream()
879 pipe_ctx->stream_res.tg->funcs->program_timing( in dcn401_enable_stream()
880 pipe_ctx->stream_res.tg, in dcn401_enable_stream()
844 struct timing_generator *tg = pipe_ctx->stream_res.tg; dcn401_enable_stream() local
1762 struct timing_generator *tg = NULL; dcn401_interdependent_update_lock() local
1964 struct timing_generator *tg = dc->res_pool->timing_generators[i]; dc_hwss_disable_otg_pwa() local
2393 struct timing_generator *tg = dc->current_state->res_ctx.pipe_ctx[i].stream_res.tg; dcn401_program_front_end_for_ctx() local
2551 struct timing_generator *tg = pipe->stream_res.tg; dcn401_post_unlock_program_front_end() local
2620 struct timing_generator *tg = dc->res_pool->timing_generators[0]; dcn401_post_unlock_program_front_end() local
3360 struct timing_generator *tg = is_phantom ? pipe_ctx->stream_res.tg : NULL; dcn401_disable_plane_sequence() local
3831 struct timing_generator *tg = pipe_ctx->stream_res.tg; dcn401_setup_vupdate_interrupt_sequence() local
[all...]
/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_hw_sequencer.c297 struct timing_generator *tg) in hwss_wait_for_blank_complete()
302 if (!tg->funcs->is_blanked) in hwss_wait_for_blank_complete()
305 if (tg->funcs->is_blanked(tg)) in hwss_wait_for_blank_complete()
702 if (pipe_ctx && pipe_ctx->stream_res.tg && 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->funcs->set_drr( in set_drr_and_clear_adjust_pending()
705 pipe_ctx->stream_res.tg, params); in set_drr_and_clear_adjust_pending()
1982 struct timing_generator *tg, int opp_inst[MAX_PIPES], int opp_head_count, in hwss_program_bias_and_scale()
1986 seq_state->steps[*seq_state->num_steps].params.set_odm_combine_params.tg in hwss_program_bias_and_scale()
296 hwss_wait_for_blank_complete(struct timing_generator * tg) hwss_wait_for_blank_complete() argument
1643 hwss_add_optc_set_odm_combine(struct block_sequence_state * seq_state,struct timing_generator * tg,int opp_inst[MAX_PIPES],int opp_head_count,int odm_slice_width,int last_odm_slice_width) hwss_add_optc_set_odm_combine() argument
1661 hwss_add_optc_set_odm_bypass(struct block_sequence_state * seq_state,struct timing_generator * tg,struct dc_crtc_timing * timing) hwss_add_optc_set_odm_bypass() argument
1684 hwss_add_tg_program_global_sync(struct block_sequence_state * seq_state,struct timing_generator * tg,int vready_offset,unsigned int vstartup_lines,unsigned int vupdate_offset_pixels,unsigned int vupdate_vupdate_width_pixels,unsigned int pstate_keepout_start_lines) hwss_add_tg_program_global_sync() argument
1707 hwss_add_tg_wait_for_state(struct block_sequence_state * seq_state,struct timing_generator * tg,enum crtc_state state) hwss_add_tg_wait_for_state() argument
1722 hwss_add_tg_set_vtg_params(struct block_sequence_state * seq_state,struct timing_generator * tg,struct dc_crtc_timing * dc_crtc_timing,bool program_fp2) hwss_add_tg_set_vtg_params() argument
1739 hwss_add_tg_setup_vertical_interrupt2(struct block_sequence_state * seq_state,struct timing_generator * tg,int start_line) hwss_add_tg_setup_vertical_interrupt2() argument
1907 hwss_add_tg_enable_crtc(struct block_sequence_state * seq_state,struct timing_generator * tg) hwss_add_tg_enable_crtc() argument
1937 hwss_add_tg_wait_double_buffer_pending(struct block_sequence_state * seq_state,struct timing_generator * tg,unsigned int timeout_us,unsigned int polling_interval_us) hwss_add_tg_wait_double_buffer_pending() argument
2132 struct timing_generator *tg; hwss_wait_for_odm_update_pending_complete() local
2234 struct timing_generator *tg = params->set_odm_combine_params.tg; hwss_set_odm_combine() local
2247 struct timing_generator *tg = params->set_odm_bypass_params.tg; hwss_set_odm_bypass() local
2304 struct timing_generator *tg = params->tg_set_dsc_config_params.tg; hwss_tg_set_dsc_config() local
2387 struct timing_generator *tg = params->tg_program_global_sync_params.tg; hwss_tg_program_global_sync() local
2402 struct timing_generator *tg = params->tg_wait_for_state_params.tg; hwss_tg_wait_for_state() local
2411 struct timing_generator *tg = params->tg_set_vtg_params_params.tg; hwss_tg_set_vtg_params() local
2421 struct timing_generator *tg = params->tg_setup_vertical_interrupt2_params.tg; hwss_tg_setup_vertical_interrupt2() local
2588 struct timing_generator *tg = params->tg_enable_crtc_params.tg; hwss_tg_enable_crtc() local
2596 struct timing_generator *tg = params->tg_set_gsl_params.tg; hwss_tg_set_gsl() local
2605 struct timing_generator *tg = params->tg_set_gsl_source_select_params.tg; hwss_tg_set_gsl_source_select() local
2627 struct timing_generator *tg = params->tg_wait_double_buffer_pending_params.tg; hwss_tg_wait_double_buffer_pending() local
2669 struct timing_generator *tg = params->tg_get_frame_count_params.tg; hwss_tg_get_frame_count() local
2853 struct timing_generator *tg = params->disable_phantom_crtc_params.tg; hwss_disable_phantom_crtc() local
3241 hwss_add_tg_set_dsc_config(struct block_sequence_state * seq_state,struct timing_generator * tg,struct dsc_optc_config * dsc_optc_cfg,bool enable) hwss_add_tg_set_dsc_config() argument
3529 hwss_add_tg_set_gsl(struct block_sequence_state * seq_state,struct timing_generator * tg,struct gsl_params gsl) hwss_add_tg_set_gsl() argument
3541 hwss_add_tg_set_gsl_source_select(struct block_sequence_state * seq_state,struct timing_generator * tg,int group_idx,uint32_t gsl_ready_signal) hwss_add_tg_set_gsl_source_select() argument
3645 hwss_add_disable_phantom_crtc(struct block_sequence_state * seq_state,struct timing_generator * tg) hwss_add_disable_phantom_crtc() argument
4101 hwss_add_tg_get_frame_count(struct block_sequence_state * seq_state,struct timing_generator * tg,unsigned int * frame_count) hwss_add_tg_get_frame_count() argument
[all...]
H A Ddc.c436 if (pipe->stream == stream && pipe->stream_res.tg) { in set_long_vtotal()
473 if (pipe->stream == stream && pipe->stream_res.tg) { in dc_stream_get_last_used_drr_vtotal()
477 if (pipe->stream_res.tg->funcs->get_last_used_drr_vtotal) { in dc_stream_get_last_used_drr_vtotal()
478 pipe->stream_res.tg->funcs->get_last_used_drr_vtotal(pipe->stream_res.tg, refresh_rate); in dc_stream_get_last_used_drr_vtotal()
547 mux_mapping.otg_output_num = pipe->stream_res.tg->inst; in dc_stream_forward_crc_window()
613 mux_mapping.otg_output_num = pipe->stream_res.tg->inst; in dc_stream_forward_multiple_crc_window()
650 struct timing_generator *tg; in dc_stream_configure_crc()
694 tg = pipe->stream_res.tg; in dc_stream_configure_crc()
648 struct timing_generator *tg; dc_stream_configure_crc() local
721 struct timing_generator *tg; dc_stream_get_crc() local
1343 struct timing_generator *tg; disable_dangling_plane() local
1796 struct timing_generator *tg; dc_validate_boot_timing() local
2167 struct timing_generator *tg = NULL; determine_pipe_unlock_order() local
6652 struct timing_generator *tg = NULL; dc_get_underflow_debug_data_for_otg() local
[all...]
H A Ddc_stream.c578 pipe_ctx->stream_res.tg->funcs->program_manual_trigger) { in dc_stream_add_writeback()
579 pipe_ctx->stream_res.tg->funcs->program_manual_trigger( in dc_stream_add_writeback()
580 pipe_ctx->stream_res.tg); in dc_stream_add_writeback()
769 struct timing_generator *tg = res_ctx->pipe_ctx[i].stream_res.tg; in dc_stream_send_dp_sdp()
771 if (res_ctx->pipe_ctx[i].stream != stream || !tg) in dc_stream_send_dp_sdp()
774 return tg->funcs->get_frame_count(tg); in dc_stream_send_dp_sdp()
837 struct timing_generator *tg = res_ctx->pipe_ctx[i].stream_res.tg; in dc_stream_set_dynamic_metadata()
728 struct timing_generator *tg = res_ctx->pipe_ctx[i].stream_res.tg; dc_stream_get_vblank_counter() local
796 struct timing_generator *tg = res_ctx->pipe_ctx[i].stream_res.tg; dc_stream_get_scanoutpos() local
[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 tg->nr_sigs = nr_filter_sigs; in cti_plat_process_filter_sigs()
333 err = cti_plat_read_trig_group(tg, fwnode, CTI_DT_FILTER_OUT_SIGS); in cti_plat_process_filter_sigs()
335 drvdata->config.trig_out_filter |= tg->used_mask; in cti_plat_process_filter_sigs()
337 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