Home
last modified time | relevance | path

Searched refs:mg (Results 1 – 25 of 36) sorted by relevance

12

/Linux-v5.4/drivers/gpio/
Dgpio-msic.c153 struct msic_gpio *mg = irq_data_get_irq_chip_data(data); in msic_irq_type() local
154 u32 gpio = data->irq - mg->irq_base; in msic_irq_type()
156 if (gpio >= mg->chip.ngpio) in msic_irq_type()
160 mg->trig_change_mask |= (1 << gpio); in msic_irq_type()
161 mg->trig_type = type; in msic_irq_type()
168 struct msic_gpio *mg = gpiochip_get_data(chip); in msic_gpio_to_irq() local
169 return mg->irq_base + offset; in msic_gpio_to_irq()
174 struct msic_gpio *mg = irq_data_get_irq_chip_data(data); in msic_bus_lock() local
175 mutex_lock(&mg->buslock); in msic_bus_lock()
180 struct msic_gpio *mg = irq_data_get_irq_chip_data(data); in msic_bus_sync_unlock() local
[all …]
/Linux-v5.4/tools/perf/util/
Dunwind-libunwind.c15 static void unwind__register_ops(struct map_groups *mg, in unwind__register_ops() argument
18 mg->unwind_libunwind_ops = ops; in unwind__register_ops()
21 int unwind__prepare_access(struct map_groups *mg, struct map *map, in unwind__prepare_access() argument
32 if (mg->addr_space) { in unwind__prepare_access()
41 if (!mg->machine->env || !mg->machine->env->arch) in unwind__prepare_access()
44 dso_type = dso__type(map->dso, mg->machine); in unwind__prepare_access()
48 arch = perf_env__arch(mg->machine->env); in unwind__prepare_access()
63 unwind__register_ops(mg, ops); in unwind__prepare_access()
65 err = mg->unwind_libunwind_ops->prepare_access(mg); in unwind__prepare_access()
71 void unwind__flush_access(struct map_groups *mg) in unwind__flush_access() argument
[all …]
Dmap_groups.h49 void map_groups__delete(struct map_groups *mg);
50 bool map_groups__empty(struct map_groups *mg);
52 static inline struct map_groups *map_groups__get(struct map_groups *mg) in map_groups__get() argument
54 if (mg) in map_groups__get()
55 refcount_inc(&mg->refcnt); in map_groups__get()
56 return mg; in map_groups__get()
59 void map_groups__put(struct map_groups *mg);
60 void map_groups__init(struct map_groups *mg, struct machine *machine);
61 void map_groups__exit(struct map_groups *mg);
63 size_t map_groups__fprintf(struct map_groups *mg, FILE *fp);
[all …]
Dunwind.h23 int (*prepare_access)(struct map_groups *mg);
24 void (*flush_access)(struct map_groups *mg);
25 void (*finish_access)(struct map_groups *mg);
50 int unwind__prepare_access(struct map_groups *mg, struct map *map,
52 void unwind__flush_access(struct map_groups *mg);
53 void unwind__finish_access(struct map_groups *mg);
55 static inline int unwind__prepare_access(struct map_groups *mg __maybe_unused, in unwind__prepare_access()
62 static inline void unwind__flush_access(struct map_groups *mg __maybe_unused) {} in unwind__flush_access()
63 static inline void unwind__finish_access(struct map_groups *mg __maybe_unused) {} in unwind__finish_access()
76 static inline int unwind__prepare_access(struct map_groups *mg __maybe_unused, in unwind__prepare_access()
[all …]
Dmap.c582 void map_groups__init(struct map_groups *mg, struct machine *machine) in map_groups__init() argument
584 maps__init(&mg->maps); in map_groups__init()
585 mg->machine = machine; in map_groups__init()
586 refcount_set(&mg->refcnt, 1); in map_groups__init()
589 void map_groups__insert(struct map_groups *mg, struct map *map) in map_groups__insert() argument
591 maps__insert(&mg->maps, map); in map_groups__insert()
592 map->groups = mg; in map_groups__insert()
631 void map_groups__exit(struct map_groups *mg) in map_groups__exit() argument
633 maps__exit(&mg->maps); in map_groups__exit()
636 bool map_groups__empty(struct map_groups *mg) in map_groups__empty() argument
[all …]
Dthread.c27 thread->mg = map_groups__new(machine); in thread__init_map_groups()
31 thread->mg = map_groups__get(leader->mg); in thread__init_map_groups()
36 return thread->mg ? 0 : -1; in thread__init_map_groups()
89 if (thread->mg) { in thread__delete()
90 map_groups__put(thread->mg); in thread__delete()
91 thread->mg = NULL; in thread__delete()
254 unwind__flush_access(thread->mg); in ____thread__set_comm()
327 map_groups__fprintf(thread->mg, fp); in thread__fprintf()
334 ret = unwind__prepare_access(thread->mg, map, NULL); in thread__insert_map()
338 map_groups__fixup_overlappings(thread->mg, map, stderr); in thread__insert_map()
[all …]
Dunwind-libunwind-local.c618 static int _unwind__prepare_access(struct map_groups *mg) in _unwind__prepare_access() argument
620 mg->addr_space = unw_create_addr_space(&accessors, 0); in _unwind__prepare_access()
621 if (!mg->addr_space) { in _unwind__prepare_access()
626 unw_set_caching_policy(mg->addr_space, UNW_CACHE_GLOBAL); in _unwind__prepare_access()
630 static void _unwind__flush_access(struct map_groups *mg) in _unwind__flush_access() argument
632 unw_flush_cache(mg->addr_space, 0, 0); in _unwind__flush_access()
635 static void _unwind__finish_access(struct map_groups *mg) in _unwind__finish_access() argument
637 unw_destroy_addr_space(mg->addr_space); in _unwind__finish_access()
662 addr_space = ui->thread->mg->addr_space; in get_entries()
711 .machine = thread->mg->machine, in _unwind__get_entries()
Devent.c460 struct map_groups *mg = thread->mg; in thread__find_map() local
461 struct machine *machine = mg->machine; in thread__find_map()
477 mg = &machine->kmaps; in thread__find_map()
483 mg = &machine->kmaps; in thread__find_map()
503 al->map = map_groups__find(mg, al->addr); in thread__find_map()
526 struct machine *machine = thread->mg->machine; in thread__find_map_fb()
Dmetricgroup.c335 char *mg = strdup(g); in metricgroup__print() local
337 if (!mg) in metricgroup__print()
339 omg = mg; in metricgroup__print()
340 while ((g = strsep(&mg, ";")) != NULL) { in metricgroup__print()
Dmachine.c410 if (!leader->mg) in machine__update_thread_pid()
411 leader->mg = map_groups__new(machine); in machine__update_thread_pid()
413 if (!leader->mg) in machine__update_thread_pid()
416 if (th->mg == leader->mg) in machine__update_thread_pid()
419 if (th->mg) { in machine__update_thread_pid()
425 if (!map_groups__empty(th->mg)) in machine__update_thread_pid()
428 map_groups__put(th->mg); in machine__update_thread_pid()
431 th->mg = map_groups__get(leader->mg); in machine__update_thread_pid()
1289 static int map_groups__set_module_path(struct map_groups *mg, const char *path, in map_groups__set_module_path() argument
1293 struct map *map = map_groups__find_by_name(mg, m->name); in map_groups__set_module_path()
[all …]
Dthread.h28 struct map_groups *mg; member
Dthread-stack.c137 if (thread->mg && thread->mg->machine) { in thread_stack__init()
138 struct machine *machine = thread->mg->machine; in thread_stack__init()
Dsymbol.c242 void map_groups__fixup_end(struct map_groups *mg) in map_groups__fixup_end() argument
244 struct maps *maps = &mg->maps; in map_groups__fixup_end()
1056 struct map *map_groups__first(struct map_groups *mg) in map_groups__first() argument
1058 return maps__first(&mg->maps); in map_groups__first()
1787 struct map *map_groups__find_by_name(struct map_groups *mg, const char *name) in map_groups__find_by_name() argument
1789 struct maps *maps = &mg->maps; in map_groups__find_by_name()
/Linux-v5.4/tools/perf/tests/
Dthread-mg-share.c15 struct map_groups *mg; in test__thread_mg_share() local
45 mg = leader->mg; in test__thread_mg_share()
46 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&mg->refcnt), 4); in test__thread_mg_share()
49 TEST_ASSERT_VAL("map groups don't match", mg == t1->mg); in test__thread_mg_share()
50 TEST_ASSERT_VAL("map groups don't match", mg == t2->mg); in test__thread_mg_share()
51 TEST_ASSERT_VAL("map groups don't match", mg == t3->mg); in test__thread_mg_share()
73 other_mg = other->mg; in test__thread_mg_share()
76 TEST_ASSERT_VAL("map groups don't match", other_mg == other_leader->mg); in test__thread_mg_share()
80 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&mg->refcnt), 3); in test__thread_mg_share()
83 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&mg->refcnt), 2); in test__thread_mg_share()
[all …]
Dmap_groups.c16 static int check_maps(struct map_def *merged, unsigned int size, struct map_groups *mg) in check_maps() argument
21 map = map_groups__first(mg); in check_maps()
39 struct map_groups mg; in test__map_groups__merge_in() local
68 map_groups__init(&mg, NULL); in test__map_groups__merge_in()
78 map_groups__insert(&mg, map); in test__map_groups__merge_in()
103 ret = map_groups__merge_in(&mg, map_kcore1); in test__map_groups__merge_in()
106 ret = check_maps(merged12, ARRAY_SIZE(merged12), &mg); in test__map_groups__merge_in()
109 ret = map_groups__merge_in(&mg, map_kcore2); in test__map_groups__merge_in()
112 ret = check_maps(merged12, ARRAY_SIZE(merged12), &mg); in test__map_groups__merge_in()
115 ret = map_groups__merge_in(&mg, map_kcore3); in test__map_groups__merge_in()
[all …]
/Linux-v5.4/drivers/md/
Ddm-cache-target.c555 struct dm_cache_migration *mg; in alloc_migration() local
557 mg = mempool_alloc(&cache->migration_pool, GFP_NOIO); in alloc_migration()
559 memset(mg, 0, sizeof(*mg)); in alloc_migration()
561 mg->cache = cache; in alloc_migration()
564 return mg; in alloc_migration()
567 static void free_migration(struct dm_cache_migration *mg) in free_migration() argument
569 struct cache *cache = mg->cache; in free_migration()
574 mempool_free(mg, &cache->migration_pool); in free_migration()
1163 static void quiesce(struct dm_cache_migration *mg, in quiesce() argument
1166 init_continuation(&mg->k, continuation); in quiesce()
[all …]
/Linux-v5.4/net/mac80211/
Drc80211_minstrel_ht_debugfs.c34 const struct mcs_group *mg; in minstrel_ht_stats_dump() local
43 mg = &minstrel_mcs_groups[i]; in minstrel_ht_stats_dump()
44 gflags = mg->flags; in minstrel_ht_stats_dump()
65 p += sprintf(p, "%d ", mg->streams); in minstrel_ht_stats_dump()
69 p += sprintf(p, "%d ", mg->streams); in minstrel_ht_stats_dump()
83 p += sprintf(p, " MCS%-2u", (mg->streams - 1) * 8 + j); in minstrel_ht_stats_dump()
85 p += sprintf(p, " MCS%-1u/%1u", j, mg->streams); in minstrel_ht_stats_dump()
95 duration = mg->duration[j]; in minstrel_ht_stats_dump()
96 duration <<= mg->shift; in minstrel_ht_stats_dump()
181 const struct mcs_group *mg; in minstrel_ht_stats_csv_dump() local
[all …]
Drc80211_minstrel_ht.c421 struct minstrel_mcs_group_data *mg; in minstrel_ht_set_best_prob_rate() local
430 mg = &mi->groups[index / MCS_GROUP_RATES]; in minstrel_ht_set_best_prob_rate()
431 mrs = &mg->rates[index % MCS_GROUP_RATES]; in minstrel_ht_set_best_prob_rate()
445 max_gpr_group = mg->max_group_prob_rate / MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
446 max_gpr_idx = mg->max_group_prob_rate % MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
459 mg->max_group_prob_rate = index; in minstrel_ht_set_best_prob_rate()
464 mg->max_group_prob_rate = index; in minstrel_ht_set_best_prob_rate()
509 struct minstrel_mcs_group_data *mg; in minstrel_ht_prob_rate_reduce_streams() local
516 mg = &mi->groups[group]; in minstrel_ht_prob_rate_reduce_streams()
520 tmp_idx = mg->max_group_prob_rate % MCS_GROUP_RATES; in minstrel_ht_prob_rate_reduce_streams()
[all …]
/Linux-v5.4/Documentation/input/devices/
Dcma3000_d0x.rst122 2000: 2000 mg or 2G Range
123 8000: 8000 mg or 8G Range
127 X: X * 71mg (8G Range)
128 X: X * 18mg (2G Range)
138 X: (X >> 2) * 18mg (2G Range)
139 X: (X & 0x0F) * 71 mg (8G Range)
/Linux-v5.4/tools/perf/arch/arm/tests/
Ddwarf-unwind.c29 map = map_groups__find(thread->mg, (u64)sp); in sample_ustack()
/Linux-v5.4/tools/perf/arch/arm64/tests/
Ddwarf-unwind.c29 map = map_groups__find(thread->mg, (u64)sp); in sample_ustack()
/Linux-v5.4/tools/perf/arch/powerpc/tests/
Ddwarf-unwind.c30 map = map_groups__find(thread->mg, (u64)sp); in sample_ustack()
/Linux-v5.4/tools/perf/arch/x86/tests/
Ddwarf-unwind.c30 map = map_groups__find(thread->mg, (u64)sp); in sample_ustack()
/Linux-v5.4/drivers/media/usb/usbvision/
Dusbvision.h179 #define YUV_TO_RGB_BY_THE_BOOK(my, mu, mv, mr, mg, mb) { \ argument
189 mg = LIMIT_RGB(mm_g); \
/Linux-v5.4/arch/mips/include/asm/txx9/
Dtx3927.h87 endian_def_b4(ml, mg, ip, il);

12