Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/gpio/
Dgpio-msic.c166 struct msic_gpio *mg = irq_data_get_irq_chip_data(data); in msic_irq_type() local
167 u32 gpio = data->irq - mg->irq_base; in msic_irq_type()
169 if (gpio >= mg->chip.ngpio) in msic_irq_type()
173 mg->trig_change_mask |= (1 << gpio); in msic_irq_type()
174 mg->trig_type = type; in msic_irq_type()
181 struct msic_gpio *mg = gpiochip_get_data(chip); in msic_gpio_to_irq() local
182 return mg->irq_base + offset; in msic_gpio_to_irq()
187 struct msic_gpio *mg = irq_data_get_irq_chip_data(data); in msic_bus_lock() local
188 mutex_lock(&mg->buslock); in msic_bus_lock()
193 struct msic_gpio *mg = irq_data_get_irq_chip_data(data); in msic_bus_sync_unlock() local
[all …]
/Linux-v4.19/tools/perf/tests/
Dthread-mg-share.c16 struct map_groups *mg; in test__thread_mg_share() local
46 mg = leader->mg; in test__thread_mg_share()
47 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&mg->refcnt), 4); in test__thread_mg_share()
50 TEST_ASSERT_VAL("map groups don't match", mg == t1->mg); in test__thread_mg_share()
51 TEST_ASSERT_VAL("map groups don't match", mg == t2->mg); in test__thread_mg_share()
52 TEST_ASSERT_VAL("map groups don't match", mg == t3->mg); in test__thread_mg_share()
74 other_mg = other->mg; in test__thread_mg_share()
77 TEST_ASSERT_VAL("map groups don't match", other_mg == other_leader->mg); in test__thread_mg_share()
81 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&mg->refcnt), 3); in test__thread_mg_share()
84 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&mg->refcnt), 2); in test__thread_mg_share()
[all …]
DBuild27 perf-y += thread-mg-share.o
/Linux-v4.19/tools/perf/util/
Dmap.h70 void map_groups__delete(struct map_groups *mg);
71 bool map_groups__empty(struct map_groups *mg);
73 static inline struct map_groups *map_groups__get(struct map_groups *mg) in map_groups__get() argument
75 if (mg) in map_groups__get()
76 refcount_inc(&mg->refcnt); in map_groups__get()
77 return mg; in map_groups__get()
80 void map_groups__put(struct map_groups *mg);
190 void map_groups__init(struct map_groups *mg, struct machine *machine);
191 void map_groups__exit(struct map_groups *mg);
194 size_t map_groups__fprintf(struct map_groups *mg, FILE *fp);
[all …]
Dmap.c504 void map_groups__init(struct map_groups *mg, struct machine *machine) in map_groups__init() argument
506 maps__init(&mg->maps); in map_groups__init()
507 mg->machine = machine; in map_groups__init()
508 refcount_set(&mg->refcnt, 1); in map_groups__init()
532 void map_groups__exit(struct map_groups *mg) in map_groups__exit() argument
534 maps__exit(&mg->maps); in map_groups__exit()
537 bool map_groups__empty(struct map_groups *mg) in map_groups__empty() argument
539 return !maps__first(&mg->maps); in map_groups__empty()
544 struct map_groups *mg = malloc(sizeof(*mg)); in map_groups__new() local
546 if (mg != NULL) in map_groups__new()
[all …]
Dthread.c24 thread->mg = map_groups__new(machine); in thread__init_map_groups()
28 thread->mg = map_groups__get(leader->mg); in thread__init_map_groups()
33 return thread->mg ? 0 : -1; in thread__init_map_groups()
85 if (thread->mg) { in thread__delete()
86 map_groups__put(thread->mg); in thread__delete()
87 thread->mg = NULL; in thread__delete()
285 map_groups__fprintf(thread->mg, fp); in thread__fprintf()
296 map_groups__fixup_overlappings(thread->mg, map, stderr); in thread__insert_map()
297 map_groups__insert(thread->mg, map); in thread__insert_map()
306 struct maps *maps = &thread->mg->maps; in __thread__prepare_access()
[all …]
Dunwind-libunwind.c35 if (!thread->mg->machine->env || !thread->mg->machine->env->arch) in unwind__prepare_access()
38 dso_type = dso__type(map->dso, thread->mg->machine); in unwind__prepare_access()
42 arch = perf_env__arch(thread->mg->machine->env); in unwind__prepare_access()
Dmetricgroup.c311 char *mg = strdup(g); in metricgroup__print() local
313 if (!mg) in metricgroup__print()
315 omg = mg; in metricgroup__print()
316 while ((g = strsep(&mg, ";")) != NULL) { in metricgroup__print()
Dmachine.c380 if (!leader->mg) in machine__update_thread_pid()
381 leader->mg = map_groups__new(machine); in machine__update_thread_pid()
383 if (!leader->mg) in machine__update_thread_pid()
386 if (th->mg == leader->mg) in machine__update_thread_pid()
389 if (th->mg) { in machine__update_thread_pid()
395 if (!map_groups__empty(th->mg)) in machine__update_thread_pid()
398 map_groups__put(th->mg); in machine__update_thread_pid()
401 th->mg = map_groups__get(leader->mg); in machine__update_thread_pid()
1195 static int map_groups__set_module_path(struct map_groups *mg, const char *path, in map_groups__set_module_path() argument
1199 struct map *map = map_groups__find_by_name(mg, m->name); in map_groups__set_module_path()
[all …]
Dthread-stack.c106 if (thread->mg && thread->mg->machine) in thread_stack__new()
107 ts->kernel_start = machine__kernel_start(thread->mg->machine); in thread_stack__new()
Dthread.h23 struct map_groups *mg; member
Devent.c1522 struct map_groups *mg = thread->mg; in thread__find_map() local
1523 struct machine *machine = mg->machine; in thread__find_map()
1539 mg = &machine->kmaps; in thread__find_map()
1545 mg = &machine->kmaps; in thread__find_map()
1565 al->map = map_groups__find(mg, al->addr); in thread__find_map()
Dsymbol.c223 void map_groups__fixup_end(struct map_groups *mg) in map_groups__fixup_end() argument
225 struct maps *maps = &mg->maps; in map_groups__fixup_end()
1027 struct map *map_groups__first(struct map_groups *mg) in map_groups__first() argument
1029 return maps__first(&mg->maps); in map_groups__first()
1679 struct map *map_groups__find_by_name(struct map_groups *mg, const char *name) in map_groups__find_by_name() argument
1681 struct maps *maps = &mg->maps; in map_groups__find_by_name()
Dunwind-libdw.c199 .machine = thread->mg->machine, in unwind__get_entries()
Dvdso.c142 struct map *map = map_groups__first(thread->mg); in machine__thread_dso_type()
/Linux-v4.19/drivers/md/
Ddm-cache-target.c554 struct dm_cache_migration *mg; in alloc_migration() local
556 mg = mempool_alloc(&cache->migration_pool, GFP_NOWAIT); in alloc_migration()
557 if (!mg) in alloc_migration()
560 memset(mg, 0, sizeof(*mg)); in alloc_migration()
562 mg->cache = cache; in alloc_migration()
565 return mg; in alloc_migration()
568 static void free_migration(struct dm_cache_migration *mg) in free_migration() argument
570 struct cache *cache = mg->cache; in free_migration()
575 mempool_free(mg, &cache->migration_pool); in free_migration()
1168 static void quiesce(struct dm_cache_migration *mg, in quiesce() argument
[all …]
/Linux-v4.19/net/mac80211/
Drc80211_minstrel_ht_debugfs.c21 const struct mcs_group *mg; in minstrel_ht_stats_dump() local
30 mg = &minstrel_mcs_groups[i]; in minstrel_ht_stats_dump()
31 gflags = mg->flags; in minstrel_ht_stats_dump()
52 p += sprintf(p, "%d ", mg->streams); in minstrel_ht_stats_dump()
56 p += sprintf(p, "%d ", mg->streams); in minstrel_ht_stats_dump()
70 p += sprintf(p, " MCS%-2u", (mg->streams - 1) * 8 + j); in minstrel_ht_stats_dump()
72 p += sprintf(p, " MCS%-1u/%1u", j, mg->streams); in minstrel_ht_stats_dump()
82 tx_time = DIV_ROUND_CLOSEST(mg->duration[j], 1000); in minstrel_ht_stats_dump()
167 const struct mcs_group *mg; in minstrel_ht_stats_csv_dump() local
176 mg = &minstrel_mcs_groups[i]; in minstrel_ht_stats_csv_dump()
[all …]
Drc80211_minstrel_ht.c374 struct minstrel_mcs_group_data *mg; in minstrel_ht_set_best_prob_rate() local
383 mg = &mi->groups[index / MCS_GROUP_RATES]; in minstrel_ht_set_best_prob_rate()
384 mrs = &mg->rates[index % MCS_GROUP_RATES]; in minstrel_ht_set_best_prob_rate()
398 max_gpr_group = mg->max_group_prob_rate / MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
399 max_gpr_idx = mg->max_group_prob_rate % MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
412 mg->max_group_prob_rate = index; in minstrel_ht_set_best_prob_rate()
417 mg->max_group_prob_rate = index; in minstrel_ht_set_best_prob_rate()
462 struct minstrel_mcs_group_data *mg; in minstrel_ht_prob_rate_reduce_streams() local
469 mg = &mi->groups[group]; in minstrel_ht_prob_rate_reduce_streams()
473 tmp_idx = mg->max_group_prob_rate % MCS_GROUP_RATES; in minstrel_ht_prob_rate_reduce_streams()
[all …]
/Linux-v4.19/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-v4.19/tools/perf/arch/arm64/tests/
Ddwarf-unwind.c28 map = map_groups__find(thread->mg, (u64)sp); in sample_ustack()
/Linux-v4.19/tools/perf/arch/powerpc/tests/
Ddwarf-unwind.c29 map = map_groups__find(thread->mg, (u64)sp); in sample_ustack()
/Linux-v4.19/tools/perf/arch/x86/tests/
Ddwarf-unwind.c29 map = map_groups__find(thread->mg, (u64)sp); in sample_ustack()
/Linux-v4.19/tools/perf/arch/arm/tests/
Ddwarf-unwind.c28 map = map_groups__find(thread->mg, (u64)sp); in sample_ustack()
/Linux-v4.19/drivers/media/usb/usbvision/
Dusbvision.h189 #define YUV_TO_RGB_BY_THE_BOOK(my, mu, mv, mr, mg, mb) { \ argument
199 mg = LIMIT_RGB(mm_g); \
/Linux-v4.19/arch/mips/include/asm/txx9/
Dtx3927.h87 endian_def_b4(ml, mg, ip, il);

12