Home
last modified time | relevance | path

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

/linux-4.1.27/block/
Dblk-throttle.c55 struct throtl_grp *tg; /* tg this qnode belongs to */ member
190 static inline struct blkcg_gq *tg_to_blkg(struct throtl_grp *tg) in tg_to_blkg() argument
192 return pd_to_blkg(&tg->pd); in tg_to_blkg()
224 struct throtl_grp *tg = sq_to_tg(sq); in sq_to_td() local
226 if (tg) in sq_to_td()
227 return tg->td; in sq_to_td()
293 struct throtl_grp *tg = list_first_entry(&tg_stats_alloc_list, in tg_stats_alloc_fn() local
296 swap(tg->stats_cpu, stats_cpu); in tg_stats_alloc_fn()
297 list_del_init(&tg->stats_alloc_node); in tg_stats_alloc_fn()
306 static void throtl_qnode_init(struct throtl_qnode *qn, struct throtl_grp *tg) in throtl_qnode_init() argument
[all …]
/linux-4.1.27/kernel/sched/
Dauto_group.h13 struct task_group *tg; member
20 extern void autogroup_free(struct task_group *tg);
22 static inline bool task_group_is_autogroup(struct task_group *tg) in task_group_is_autogroup() argument
24 return !!tg->autogroup; in task_group_is_autogroup()
27 extern bool task_wants_autogroup(struct task_struct *p, struct task_group *tg);
30 autogroup_task_group(struct task_struct *p, struct task_group *tg) in autogroup_task_group() argument
34 if (enabled && task_wants_autogroup(p, tg)) in autogroup_task_group()
35 return p->signal->autogroup->tg; in autogroup_task_group()
37 return tg; in autogroup_task_group()
40 extern int autogroup_path(struct task_group *tg, char *buf, int buflen);
[all …]
Dauto_group.c18 autogroup_default.tg = &root_task_group; in autogroup_init()
24 void autogroup_free(struct task_group *tg) in autogroup_free() argument
26 kfree(tg->autogroup); in autogroup_free()
35 ag->tg->rt_se = NULL; in autogroup_destroy()
36 ag->tg->rt_rq = NULL; in autogroup_destroy()
38 sched_offline_group(ag->tg); in autogroup_destroy()
39 sched_destroy_group(ag->tg); in autogroup_destroy()
70 struct task_group *tg; in autogroup_create() local
75 tg = sched_create_group(&root_task_group); in autogroup_create()
77 if (IS_ERR(tg)) in autogroup_create()
[all …]
Drt.c136 void free_rt_sched_group(struct task_group *tg) in free_rt_sched_group() argument
140 if (tg->rt_se) in free_rt_sched_group()
141 destroy_rt_bandwidth(&tg->rt_bandwidth); in free_rt_sched_group()
144 if (tg->rt_rq) in free_rt_sched_group()
145 kfree(tg->rt_rq[i]); in free_rt_sched_group()
146 if (tg->rt_se) in free_rt_sched_group()
147 kfree(tg->rt_se[i]); in free_rt_sched_group()
150 kfree(tg->rt_rq); in free_rt_sched_group()
151 kfree(tg->rt_se); in free_rt_sched_group()
154 void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq, in init_tg_rt_entry() argument
[all …]
Dcore.c781 int tg_nop(struct task_group *tg, void *data) in tg_nop() argument
7461 static void free_sched_group(struct task_group *tg) in free_sched_group() argument
7463 free_fair_sched_group(tg); in free_sched_group()
7464 free_rt_sched_group(tg); in free_sched_group()
7465 autogroup_free(tg); in free_sched_group()
7466 kfree(tg); in free_sched_group()
7472 struct task_group *tg; in sched_create_group() local
7474 tg = kzalloc(sizeof(*tg), GFP_KERNEL); in sched_create_group()
7475 if (!tg) in sched_create_group()
7478 if (!alloc_fair_sched_group(tg, parent)) in sched_create_group()
[all …]
Dfair.c298 if (cfs_rq->tg->parent && in list_add_leaf_cfs_rq()
299 cfs_rq->tg->parent->cfs_rq[cpu_of(rq_of(cfs_rq))]->on_list) { in list_add_leaf_cfs_rq()
1115 static long effective_load(struct task_group *tg, int cpu, long wl, long wg);
2321 static inline long calc_tg_weight(struct task_group *tg, struct cfs_rq *cfs_rq) in calc_tg_weight() argument
2330 tg_weight = atomic_long_read(&tg->load_avg); in calc_tg_weight()
2337 static long calc_cfs_shares(struct cfs_rq *cfs_rq, struct task_group *tg) in calc_cfs_shares() argument
2341 tg_weight = calc_tg_weight(tg, cfs_rq); in calc_cfs_shares()
2344 shares = (tg->shares * load); in calc_cfs_shares()
2350 if (shares > tg->shares) in calc_cfs_shares()
2351 shares = tg->shares; in calc_cfs_shares()
[all …]
Dsched.h297 extern int tg_nop(struct task_group *tg, void *data);
299 extern void free_fair_sched_group(struct task_group *tg);
300 extern int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent);
301 extern void unregister_fair_sched_group(struct task_group *tg, int cpu);
302 extern void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq,
306 extern int sched_group_set_shares(struct task_group *tg, unsigned long shares);
312 extern void free_rt_sched_group(struct task_group *tg);
313 extern int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent);
314 extern void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq,
319 extern void sched_online_group(struct task_group *tg,
[all …]
Ddebug.c62 static void print_cfs_group_stats(struct seq_file *m, int cpu, struct task_group *tg) in print_cfs_group_stats() argument
64 struct sched_entity *se = tg->se[cpu]; in print_cfs_group_stats()
111 static char *task_group_path(struct task_group *tg) in task_group_path() argument
113 if (autogroup_path(tg, group_path, PATH_MAX)) in task_group_path()
116 return cgroup_path(tg->css.cgroup, group_path, PATH_MAX); in task_group_path()
182 SEQ_printf(m, "\ncfs_rq[%d]:%s\n", cpu, task_group_path(cfs_rq->tg)); in print_cfs_rq()
227 atomic_long_read(&cfs_rq->tg->load_avg)); in print_cfs_rq()
229 atomic_read(&cfs_rq->tg->runnable_avg)); in print_cfs_rq()
234 cfs_rq->tg->cfs_bandwidth.timer_active); in print_cfs_rq()
242 print_cfs_group_stats(m, cpu, cfs_rq->tg); in print_cfs_rq()
[all …]
/linux-4.1.27/drivers/gpu/drm/exynos/
Dexynos_hdmi.c165 struct hdmi_tg_regs tg; member
170 struct hdmi_tg_regs tg; member
1418 const struct hdmi_tg_regs *tg = &hdata->mode_conf.conf.v13_conf.tg; in hdmi_v13_mode_apply() local
1450 hdmi_reg_writeb(hdata, HDMI_TG_H_FSZ_L, tg->h_fsz[0]); in hdmi_v13_mode_apply()
1451 hdmi_reg_writeb(hdata, HDMI_TG_H_FSZ_H, tg->h_fsz[1]); in hdmi_v13_mode_apply()
1452 hdmi_reg_writeb(hdata, HDMI_TG_HACT_ST_L, tg->hact_st[0]); in hdmi_v13_mode_apply()
1453 hdmi_reg_writeb(hdata, HDMI_TG_HACT_ST_H, tg->hact_st[1]); in hdmi_v13_mode_apply()
1454 hdmi_reg_writeb(hdata, HDMI_TG_HACT_SZ_L, tg->hact_sz[0]); in hdmi_v13_mode_apply()
1455 hdmi_reg_writeb(hdata, HDMI_TG_HACT_SZ_H, tg->hact_sz[1]); in hdmi_v13_mode_apply()
1456 hdmi_reg_writeb(hdata, HDMI_TG_V_FSZ_L, tg->v_fsz[0]); in hdmi_v13_mode_apply()
[all …]
/linux-4.1.27/drivers/video/fbdev/
Dw100fb.c231 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-4.1.27/drivers/gpu/drm/
Ddrm_crtc.c5556 struct drm_tile_group *tg = container_of(kref, struct drm_tile_group, refcount); in drm_tile_group_free() local
5557 struct drm_device *dev = tg->dev; in drm_tile_group_free()
5559 idr_remove(&dev->mode_config.tile_idr, tg->id); in drm_tile_group_free()
5561 kfree(tg); in drm_tile_group_free()
5572 struct drm_tile_group *tg) in drm_mode_put_tile_group() argument
5574 kref_put(&tg->refcount, drm_tile_group_free); in drm_mode_put_tile_group()
5590 struct drm_tile_group *tg; in drm_mode_get_tile_group() local
5593 idr_for_each_entry(&dev->mode_config.tile_idr, tg, id) { in drm_mode_get_tile_group()
5594 if (!memcmp(tg->group_data, topology, 8)) { in drm_mode_get_tile_group()
5595 if (!kref_get_unless_zero(&tg->refcount)) in drm_mode_get_tile_group()
[all …]
Ddrm_edid.c3964 struct drm_tile_group *tg; in drm_parse_display_id() local
3991 tg = drm_mode_get_tile_group(connector->dev, tile->topology_id); in drm_parse_display_id()
3992 if (!tg) { in drm_parse_display_id()
3993 tg = drm_mode_create_tile_group(connector->dev, tile->topology_id); in drm_parse_display_id()
3995 if (!tg) in drm_parse_display_id()
3998 if (connector->tile_group != tg) { in drm_parse_display_id()
4004 connector->tile_group = tg; in drm_parse_display_id()
4007 drm_mode_put_tile_group(connector->dev, tg); in drm_parse_display_id()
/linux-4.1.27/include/video/
Dw100fb.h120 struct w100_tg_info *tg; member
/linux-4.1.27/net/netfilter/
Dnft_compat.c700 static bool nft_target_cmp(const struct xt_target *tg, in nft_target_cmp() argument
703 return strcmp(tg->name, name) == 0 && tg->revision == rev && in nft_target_cmp()
704 (tg->family == NFPROTO_UNSPEC || tg->family == family); in nft_target_cmp()
/linux-4.1.27/arch/cris/arch-v32/mach-a3/
Dpinmux.c122 hwprot.tg = hwprot.tg_clk = regk_pinmux_yes; in crisv32_pinmux_alloc_fixed()
291 hwprot.tg = hwprot.tg_clk = regk_pinmux_no; in crisv32_pinmux_dealloc_fixed()
/linux-4.1.27/drivers/hwmon/
Dnct6683.c397 nct6683_create_attr_group(struct device *dev, struct sensor_template_group *tg, in nct6683_create_attr_group() argument
411 t = tg->templates; in nct6683_create_attr_group()
433 group->is_visible = tg->is_visible; in nct6683_create_attr_group()
436 t = tg->templates; in nct6683_create_attr_group()
439 (*t)->dev_attr.attr.name, tg->base + i); in nct6683_create_attr_group()
Dnct6775.c957 nct6775_create_attr_group(struct device *dev, struct sensor_template_group *tg, in nct6775_create_attr_group() argument
971 t = tg->templates; in nct6775_create_attr_group()
993 group->is_visible = tg->is_visible; in nct6775_create_attr_group()
996 t = tg->templates; in nct6775_create_attr_group()
999 (*t)->dev_attr.attr.name, tg->base + i); in nct6775_create_attr_group()
/linux-4.1.27/arch/cris/include/arch-v32/mach-a3/mach/hwregs/
Dpinmux_defs.h89 unsigned int tg : 1; member
/linux-4.1.27/net/nfc/
Dcore.c834 struct nfc_target *tg; in nfc_target_lost() local
842 tg = &dev->targets[i]; in nfc_target_lost()
843 if (tg->idx == target_idx) in nfc_target_lost()
/linux-4.1.27/drivers/nfc/
Dpn533.c319 u8 tg; member
1440 static int pn533_target_found(struct pn533 *dev, u8 tg, u8 *tgdata, in pn533_target_found() argument
1449 if (tg != 1) in pn533_target_found()
1539 u8 nbtg, tg, *tgdata; in pn533_start_poll_complete() local
1546 tg = resp->data[1]; in pn533_start_poll_complete()
1551 rc = pn533_target_found(dev, tg, tgdata, tgdata_len); in pn533_start_poll_complete()
/linux-4.1.27/arch/arm/mach-pxa/
Dhx4700.c510 .tg = &w3220_tg_info,
Deseries.c881 .tg = &e800_tg_info,
/linux-4.1.27/include/drm/
Ddrm_crtc.h1453 struct drm_tile_group *tg);