Home
last modified time | relevance | path

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

1234

/linux/block/
A Dblk-throttle.c128 if (tg) in sq_to_td()
253 qn->tg = tg; in throtl_qnode_init()
350 tg = kzalloc_node(sizeof(*tg), gfp, q->node); in throtl_pd_alloc()
351 if (!tg) in throtl_pd_alloc()
485 if (!tg->td->limit_valid[tg->td->limit_index]) in throtl_pd_offline()
1717 (tg->latency_target && tg->bio_cnt && in throtl_tg_is_idle()
1718 tg->bad_bio_cnt * 5 < tg->bio_cnt); in throtl_tg_is_idle()
1721 tg->avg_idletime, tg->idletime_threshold, tg->bad_bio_cnt, in throtl_tg_is_idle()
1722 tg->bio_cnt, ret, tg->td->scale); in throtl_tg_is_idle()
1759 if (!tg || !tg_to_blkg(tg)->parent) in throtl_hierarchy_can_upgrade()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dce110/
A Ddce110_timing_generator.h117 #define DCE110TG_FROM_TG(tg)\ argument
128 struct timing_generator *tg,
136 struct timing_generator *tg,
154 struct timing_generator *tg,
170 struct timing_generator *tg,
179 struct timing_generator *tg,
185 struct timing_generator *tg,
202 struct timing_generator *tg,
208 struct timing_generator *tg,
212 struct timing_generator *tg,
[all …]
A Ddce110_timing_generator.c66 struct timing_generator *tg, in dce110_timing_generator_apply_front_porch_workaround() argument
146 result = tg->bp->funcs->enable_crtc(tg->bp, tg110->controller_id, true); in dce110_timing_generator_enable_crtc()
217 tg->funcs->wait_for_vblank(tg);
218 tg->funcs->wait_for_vactive(tg);
238 result = tg->bp->funcs->enable_crtc(tg->bp, tg110->controller_id, false); in dce110_timing_generator_disable_crtc()
271 dm_write_reg(tg->ctx, in program_horz_count_by_2()
342 result = tg->bp->funcs->program_crtc_timing(tg->bp, &bp_params); in dce110_timing_generator_program_timing_generator()
590 tg, &position); in dce110_timing_generator_get_crtc_scanoutpos()
1399 tg->funcs->get_position(tg, &position1); in dce110_timing_generator_is_counter_moving()
1400 tg->funcs->get_position(tg, &position2); in dce110_timing_generator_is_counter_moving()
[all …]
A Ddce110_timing_generator_v.c42 tg->ctx->logger
64 dm_write_reg(tg->ctx, in dce110_timing_generator_v_enable_crtc()
74 dm_write_reg(tg->ctx, in dce110_timing_generator_v_enable_crtc()
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()
140 struct timing_generator *tg) in dce110_timing_generator_v_is_in_vertical_blank() argument
242 struct timing_generator *tg, in dce110_timing_generator_v_program_blanking() argument
384 struct timing_generator *tg, in dce110_timing_generator_v_enable_advanced_request() argument
477 struct timing_generator *tg, in dce110_timing_generator_v_set_overscan_color_black() argument
613 struct timing_generator *tg) in dce110_timing_generator_v_did_triggered_reset_occur() argument
[all …]
A Ddce110_hw_sequencer.c673 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dce110_enable_stream() local
696 tg->funcs->set_early_control(tg, early_control); in dce110_enable_stream()
1482 pipe_ctx->stream_res.tg->funcs->set_blank(pipe_ctx->stream_res.tg, true);
1744 tg->funcs->disable_vga(tg);
2186 pipe_ctx_old->stream_res.tg->funcs->disable_crtc(pipe_ctx_old->stream_res.tg);
2530 if (!tg->funcs->is_counter_moving(tg)) {
2535 if (tg->funcs->did_triggered_reset_occur(tg)) {
2544 tg->funcs->wait_for_state(tg, CRTC_STATE_VACTIVE);
2545 tg->funcs->wait_for_state(tg, CRTC_STATE_VBLANK);
2681 tg->funcs->disable_vga(tg);
[all …]
/linux/drivers/gpu/drm/amd/display/dc/inc/hw/
A Dtiming_generator.h177 bool (*enable_crtc)(struct timing_generator *tg);
186 struct timing_generator *tg,
200 void (*set_blank)(struct timing_generator *tg,
202 bool (*is_blanked)(struct timing_generator *tg);
203 bool (*is_locked)(struct timing_generator *tg);
206 void (*set_colors)(struct timing_generator *tg,
214 void (*unlock)(struct timing_generator *tg);
215 void (*lock)(struct timing_generator *tg);
236 struct timing_generator *tg,
254 void (*tg_init)(struct timing_generator *tg);
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dce120/
A Ddce120_timing_generator.c91 tg->ctx, in dce120_timing_generator_is_in_vertical_blank()
114 tg, in dce120_timing_generator_validate_timing()
174 tg->ctx, in dce120_timing_generator_get_vblank_counter()
190 tg->ctx, in dce120_timing_generator_get_crtc_position()
217 if (!tg->funcs->is_counter_moving(tg)) { in dce120_timing_generator_wait_for_vblank()
224 if (!tg->funcs->is_counter_moving(tg)) { in dce120_timing_generator_wait_for_vblank()
235 if (!tg->funcs->is_counter_moving(tg)) { in dce120_timing_generator_wait_for_vactive()
375 tg->ctx, in dce120_timing_generator_did_triggered_reset_occur()
529 tg->ctx, in dce120_timing_generator_set_overscan_color_black()
676 tg->ctx, in dce120_tg_program_blank_color()
[all …]
/linux/kernel/sched/
A Dautogroup.h11 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()
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()
43 static inline void autogroup_free(struct task_group *tg) { } in autogroup_free() argument
44 static inline bool task_group_is_autogroup(struct task_group *tg) in task_group_is_autogroup() argument
[all …]
A Dautogroup.c22 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_release_group(ag->tg); in autogroup_destroy()
35 sched_destroy_group(ag->tg); in autogroup_destroy()
66 struct task_group *tg; in autogroup_create() local
72 if (IS_ERR(tg)) in autogroup_create()
78 ag->tg = tg; in autogroup_create()
87 free_rt_sched_group(tg); in autogroup_create()
91 tg->autogroup = ag; in autogroup_create()
[all …]
A Drt.c142 if (tg->rt_se) in unregister_rt_sched_group()
152 if (tg->rt_rq) in free_rt_sched_group()
154 if (tg->rt_se) in free_rt_sched_group()
171 rt_rq->tg = tg; in init_tg_rt_entry()
196 if (!tg->rt_rq) in alloc_rt_sched_group()
199 if (!tg->rt_se) in alloc_rt_sched_group()
508 tg = list_entry_rcu(tg->list.next, in next_task_group()
513 tg = NULL; in next_task_group()
515 return tg; in next_task_group()
2701 if (tg == d->tg) { in tg_rt_schedulable()
[all …]
A Dcore.c9714 autogroup_free(tg); in sched_free_group()
9740 if (!tg) in sched_create_group()
9751 return tg; in sched_create_group()
9768 tg->parent = parent; in sched_online_group()
9823 tg = autogroup_task_group(tsk, tg); in sched_change_group()
9893 if (IS_ERR(tg)) in cpu_cgroup_css_alloc()
9896 return &tg->css; in cpu_cgroup_css_alloc()
10413 if (tg == d->tg) { in normalize_cfs_quota()
10434 if (!tg->parent) { in tg_cfs_schedulable_down()
10465 .tg = tg, in __cfs_schedulable()
[all …]
A Dsched.h476 extern int tg_nop(struct task_group *tg, void *data);
492 extern void free_rt_sched_group(struct task_group *tg);
504 extern void sched_online_group(struct task_group *tg,
506 extern void sched_destroy_group(struct task_group *tg);
507 extern void sched_release_group(struct task_group *tg);
672 struct task_group *tg; member
1881 struct task_group *tg = task_group(p); in set_task_rq() local
1886 p->se.cfs_rq = tg->cfs_rq[cpu]; in set_task_rq()
1887 p->se.parent = tg->se[cpu]; in set_task_rq()
1891 p->rt.rt_rq = tg->rt_rq[cpu]; in set_task_rq()
[all …]
A Dfair.c3159 struct task_group *tg = cfs_rq->tg; in calc_group_shares() local
3274 return (prev_cfs_rq->tg->parent == cfs_rq->tg); in child_cfs_rq_on_list()
5217 if (!tg->parent) in sync_throttle()
11120 while (sea->cfs_rq->tg != seb->cfs_rq->tg) { in cfs_prio_less()
11460 if (tg->cfs_rq) in free_fair_sched_group()
11462 if (tg->se) in free_fair_sched_group()
11467 kfree(tg->se); in free_fair_sched_group()
11477 if (!tg->cfs_rq) in alloc_fair_sched_group()
11480 if (!tg->se) in alloc_fair_sched_group()
11562 cfs_rq->tg = tg; in init_tg_cfs_entry()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dce60/
A Ddce60_timing_generator.c91 + 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()
118 program_pix_dur(tg, timing->pix_clk_100hz); in program_timing()
124 struct timing_generator *tg, in dce60_timing_generator_enable_advanced_request() argument
130 uint32_t value = dm_read_reg(tg->ctx, addr); in dce60_timing_generator_enable_advanced_request()
133 uint32_t value2 = dm_read_reg(tg->ctx, addr2); in dce60_timing_generator_enable_advanced_request()
174 dm_write_reg(tg->ctx, addr, value); in dce60_timing_generator_enable_advanced_request()
175 dm_write_reg(tg->ctx, addr2, value2); in dce60_timing_generator_enable_advanced_request()
186 value = dm_read_reg(tg->ctx, addr); in dce60_is_tg_enabled()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dcn10/
A Ddcn10_hw_sequencer.c103 tg = pipe_ctx->stream_res.tg; in dcn10_lock_all_pipes()
111 !tg->funcs->is_tg_enabled(tg)) in dcn10_lock_all_pipes()
1289 tg->funcs->lock(tg); in dcn10_init_pipes()
1291 tg->funcs->lock(tg); in dcn10_init_pipes()
1292 tg->funcs->set_blank(tg, true); in dcn10_init_pipes()
1328 tg->funcs->tg_init(tg); in dcn10_init_pipes()
1338 pipe_ctx->stream_res.tg = tg; in dcn10_init_pipes()
1355 if (tg->funcs->is_tg_enabled(tg)) in dcn10_init_pipes()
1356 tg->funcs->unlock(tg); in dcn10_init_pipes()
1363 tg->funcs->tg_init(tg); in dcn10_init_pipes()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dcn201/
A Ddcn201_hwseq.c177 tg->funcs->get_otg_active_size(tg, in dcn201_init_blank()
182 tg->funcs->get_optc_source(tg, &num_opps, &opp_id_src0, &opp_id_src1); in dcn201_init_blank()
285 if (tg->funcs->is_tg_enabled(tg)) { in dcn201_init_hw()
293 if (tg->funcs->is_tg_enabled(tg)) in dcn201_init_hw()
294 tg->funcs->lock(tg); in dcn201_init_hw()
320 pipe_ctx->stream_res.tg = tg; in dcn201_init_hw()
346 if (tg->funcs->is_tg_enabled(tg)) in dcn201_init_hw()
347 tg->funcs->unlock(tg); in dcn201_init_hw()
362 tg->funcs->tg_init(tg); in dcn201_init_hw()
562 pipe->stream_res.tg->funcs->lock(pipe->stream_res.tg); in dcn201_pipe_control_lock()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dce80/
A Ddce80_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
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/drivers/gpu/drm/amd/display/dc/dcn20/
A Ddcn20_hwseq.c294 tg->funcs->get_otg_active_size(tg, in dcn20_init_blank()
1323 if (old_pipe->stream_res.tg != new_pipe->stream_res.tg) in dcn20_detect_pipe_changes()
2161 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dcn20_setup_vupdate_interrupt() local
2441 tg->funcs->set_early_control(tg, early_control); in dcn20_enable_stream()
2512 if (tg->funcs->is_tg_enabled(tg)) in dcn20_fpga_init_hw()
2519 if (tg->funcs->is_tg_enabled(tg)) in dcn20_fpga_init_hw()
2520 tg->funcs->lock(tg); in dcn20_fpga_init_hw()
2546 pipe_ctx->stream_res.tg = tg; in dcn20_fpga_init_hw()
2574 if (tg->funcs->is_tg_enabled(tg)) in dcn20_fpga_init_hw()
2575 tg->funcs->unlock(tg); in dcn20_fpga_init_hw()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dce/
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/
A Dsgp40.c167 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/arch/powerpc/kernel/
A Dsmp.c812 tg->property = thread_group_array[i]; 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()
850 for (i = 0; i < tg->nr_groups; i++) { in get_cpu_thread_group_start()
856 if (tg->thread_list[idx] == hw_cpu_id) in get_cpu_thread_group_start()
870 struct thread_groups *tg = NULL; in get_thread_groups() local
887 tg = &cpu_tgl->property_tgs[i]; in get_thread_groups()
892 if (!tg) in get_thread_groups()
896 return tg; in get_thread_groups()
925 struct thread_groups *tg = NULL; in init_thread_group_cache_map() local
[all …]
/linux/drivers/gpu/drm/
A Ddrm_connector.c2670 kfree(tg); in drm_tile_group_free()
2707 tg = NULL; in drm_mode_get_tile_group()
2709 return tg; in drm_mode_get_tile_group()
2734 tg = kzalloc(sizeof(*tg), GFP_KERNEL); in drm_mode_create_tile_group()
2735 if (!tg) in drm_mode_create_tile_group()
2738 kref_init(&tg->refcount); in drm_mode_create_tile_group()
2740 tg->dev = dev; in drm_mode_create_tile_group()
2745 tg->id = ret; in drm_mode_create_tile_group()
2747 kfree(tg); in drm_mode_create_tile_group()
2748 tg = NULL; in drm_mode_create_tile_group()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dcn31/
A Ddcn31_hwseq.c530 pipe_ctx->stream_res.tg->funcs->set_dsc_config( in dcn31_reset_back_end_for_pipe()
531 pipe_ctx->stream_res.tg, in dcn31_reset_back_end_for_pipe()
533 pipe_ctx->stream_res.tg->funcs->disable_crtc(pipe_ctx->stream_res.tg); in dcn31_reset_back_end_for_pipe()
535 pipe_ctx->stream_res.tg->funcs->enable_optc_clock(pipe_ctx->stream_res.tg, false); in dcn31_reset_back_end_for_pipe()
536 if (pipe_ctx->stream_res.tg->funcs->set_odm_bypass) in dcn31_reset_back_end_for_pipe()
537 pipe_ctx->stream_res.tg->funcs->set_odm_bypass( in dcn31_reset_back_end_for_pipe()
538 pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing); in dcn31_reset_back_end_for_pipe()
540 if (pipe_ctx->stream_res.tg->funcs->set_drr) in dcn31_reset_back_end_for_pipe()
541 pipe_ctx->stream_res.tg->funcs->set_drr( in dcn31_reset_back_end_for_pipe()
542 pipe_ctx->stream_res.tg, NULL); in dcn31_reset_back_end_for_pipe()
[all …]
/linux/drivers/firmware/efi/libstub/
A Darm64-stub.c20 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/drivers/hwtracing/coresight/
A Dcoresight-cti-platform.c317 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()

Completed in 105 milliseconds

1234