Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/gpio/
Dgpio-msic.c167 struct msic_gpio *mg = irq_data_get_irq_chip_data(data); in msic_irq_type() local
168 u32 gpio = data->irq - mg->irq_base; in msic_irq_type()
170 if (gpio >= mg->chip.ngpio) in msic_irq_type()
174 mg->trig_change_mask |= (1 << gpio); in msic_irq_type()
175 mg->trig_type = type; in msic_irq_type()
182 struct msic_gpio *mg = container_of(chip, struct msic_gpio, chip); in msic_gpio_to_irq() local
183 return mg->irq_base + offset; in msic_gpio_to_irq()
188 struct msic_gpio *mg = irq_data_get_irq_chip_data(data); in msic_bus_lock() local
189 mutex_lock(&mg->buslock); in msic_bus_lock()
194 struct msic_gpio *mg = irq_data_get_irq_chip_data(data); in msic_bus_sync_unlock() local
[all …]
/linux-4.4.14/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", atomic_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", atomic_read(&mg->refcnt), 3); in test__thread_mg_share()
83 TEST_ASSERT_EQUAL("wrong refcnt", atomic_read(&mg->refcnt), 2); in test__thread_mg_share()
[all …]
DBuild26 perf-y += thread-mg-share.o
Dcode-reading.c213 ret_len = dso__data_read_offset(al.map->dso, thread->mg->machine, in read_object_code()
/linux-4.4.14/tools/perf/util/
Dmap.h74 void map_groups__delete(struct map_groups *mg);
75 bool map_groups__empty(struct map_groups *mg);
77 static inline struct map_groups *map_groups__get(struct map_groups *mg) in map_groups__get() argument
79 if (mg) in map_groups__get()
80 atomic_inc(&mg->refcnt); in map_groups__get()
81 return mg; in map_groups__get()
84 void map_groups__put(struct map_groups *mg);
186 size_t __map_groups__fprintf_maps(struct map_groups *mg, enum map_type type,
195 void map_groups__init(struct map_groups *mg, struct machine *machine);
196 void map_groups__exit(struct map_groups *mg);
[all …]
Dthread.c19 thread->mg = map_groups__new(machine); in thread__init_map_groups()
23 thread->mg = map_groups__get(leader->mg); in thread__init_map_groups()
26 return thread->mg ? 0 : -1; in thread__init_map_groups()
75 if (thread->mg) { in thread__delete()
76 map_groups__put(thread->mg); in thread__delete()
77 thread->mg = NULL; in thread__delete()
176 map_groups__fprintf(thread->mg, fp); in thread__fprintf()
181 map_groups__fixup_overlappings(thread->mg, map, stderr); in thread__insert_map()
182 map_groups__insert(thread->mg, map); in thread__insert_map()
194 if (thread->mg == parent->mg) { in thread__clone_map_groups()
[all …]
Dmap.c466 void map_groups__init(struct map_groups *mg, struct machine *machine) in map_groups__init() argument
470 maps__init(&mg->maps[i]); in map_groups__init()
472 mg->machine = machine; in map_groups__init()
473 atomic_set(&mg->refcnt, 1); in map_groups__init()
497 void map_groups__exit(struct map_groups *mg) in map_groups__exit() argument
502 maps__exit(&mg->maps[i]); in map_groups__exit()
505 bool map_groups__empty(struct map_groups *mg) in map_groups__empty() argument
510 if (maps__first(&mg->maps[i])) in map_groups__empty()
519 struct map_groups *mg = malloc(sizeof(*mg)); in map_groups__new() local
521 if (mg != NULL) in map_groups__new()
[all …]
Dmachine.c329 if (!leader->mg) in machine__update_thread_pid()
330 leader->mg = map_groups__new(machine); in machine__update_thread_pid()
332 if (!leader->mg) in machine__update_thread_pid()
335 if (th->mg == leader->mg) in machine__update_thread_pid()
338 if (th->mg) { in machine__update_thread_pid()
344 if (!map_groups__empty(th->mg)) in machine__update_thread_pid()
347 map_groups__put(th->mg); in machine__update_thread_pid()
350 th->mg = map_groups__get(leader->mg); in machine__update_thread_pid()
900 static void map_groups__fixup_end(struct map_groups *mg) in map_groups__fixup_end() argument
904 __map_groups__fixup_end(mg, i); in map_groups__fixup_end()
[all …]
Devent.c902 struct map_groups *mg = thread->mg; in thread__find_addr_map() local
903 struct machine *machine = mg->machine; in thread__find_addr_map()
919 mg = &machine->kmaps; in thread__find_addr_map()
925 mg = &machine->kmaps; in thread__find_addr_map()
945 al->map = map_groups__find(mg, type, al->addr); in thread__find_addr_map()
957 mg != &machine->kmaps && in thread__find_addr_map()
959 mg = &machine->kmaps; in thread__find_addr_map()
981 thread->mg->machine->symbol_filter); in thread__find_addr_location()
Dthread.h20 struct map_groups *mg; member
Dthread-stack.c140 if (thread->mg && thread->mg->machine) in thread_stack__new()
141 ts->kernel_start = machine__kernel_start(thread->mg->machine); in thread_stack__new()
Dunwind-libdw.c174 .machine = thread->mg->machine, in unwind__get_entries()
Dvdso.c146 map = map_groups__first(thread->mg, MAP__FUNCTION); in machine__thread_dso_type()
Dsymbol.h280 void __map_groups__fixup_end(struct map_groups *mg, enum map_type type);
Dsymbol.c203 void __map_groups__fixup_end(struct map_groups *mg, enum map_type type) in __map_groups__fixup_end() argument
205 struct maps *maps = &mg->maps[type]; in __map_groups__fixup_end()
1553 struct map *map_groups__find_by_name(struct map_groups *mg, in map_groups__find_by_name() argument
1556 struct maps *maps = &mg->maps[type]; in map_groups__find_by_name()
Dunwind-libunwind.c647 .machine = thread->mg->machine, in unwind__get_entries()
/linux-4.4.14/drivers/md/
Ddm-cache-target.c381 struct dm_cache_migration *mg; member
408 struct dm_cache_migration *mg; in alloc_migration() local
410 mg = mempool_alloc(cache->migration_pool, GFP_NOWAIT); in alloc_migration()
411 if (mg) { in alloc_migration()
412 mg->cache = cache; in alloc_migration()
413 atomic_inc(&mg->cache->nr_allocated_migrations); in alloc_migration()
416 return mg; in alloc_migration()
419 static void free_migration(struct dm_cache_migration *mg) in free_migration() argument
421 struct cache *cache = mg->cache; in free_migration()
426 mempool_free(mg, cache->migration_pool); in free_migration()
[all …]
/linux-4.4.14/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()
51 p += sprintf(p, "%d ", mg->streams); in minstrel_ht_stats_dump()
55 p += sprintf(p, "%d ", mg->streams); in minstrel_ht_stats_dump()
69 p += sprintf(p, " MCS%-2u", (mg->streams - 1) * 8 + j); in minstrel_ht_stats_dump()
71 p += sprintf(p, " MCS%-1u/%1u", j, mg->streams); in minstrel_ht_stats_dump()
81 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.c393 struct minstrel_mcs_group_data *mg; in minstrel_ht_set_best_prob_rate() local
402 mg = &mi->groups[index / MCS_GROUP_RATES]; in minstrel_ht_set_best_prob_rate()
403 mrs = &mg->rates[index % MCS_GROUP_RATES]; in minstrel_ht_set_best_prob_rate()
423 max_gpr_group = mg->max_group_prob_rate / MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
424 max_gpr_idx = mg->max_group_prob_rate % MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
430 mg->max_group_prob_rate = index; in minstrel_ht_set_best_prob_rate()
434 if (mrs->prob_ewma > mg->rates[mg->max_group_prob_rate].prob_ewma) in minstrel_ht_set_best_prob_rate()
435 mg->max_group_prob_rate = index; in minstrel_ht_set_best_prob_rate()
480 struct minstrel_mcs_group_data *mg; in minstrel_ht_prob_rate_reduce_streams() local
487 mg = &mi->groups[group]; in minstrel_ht_prob_rate_reduce_streams()
[all …]
/linux-4.4.14/Documentation/input/
Dcma3000_d0x.txt101 2000: 2000 mg or 2G Range
102 8000: 8000 mg or 8G Range
105 X: X * 71mg (8G Range)
106 X: X * 18mg (2G Range)
114 X: (X >> 2) * 18mg (2G Range)
115 X: (X & 0x0F) * 71 mg (8G Range)
/linux-4.4.14/tools/perf/arch/x86/tests/
Ddwarf-unwind.c28 map = map_groups__find(thread->mg, MAP__VARIABLE, (u64) sp); in sample_ustack()
/linux-4.4.14/tools/perf/arch/arm64/tests/
Ddwarf-unwind.c27 map = map_groups__find(thread->mg, MAP__VARIABLE, (u64) sp); in sample_ustack()
/linux-4.4.14/tools/perf/arch/arm/tests/
Ddwarf-unwind.c27 map = map_groups__find(thread->mg, MAP__VARIABLE, (u64) sp); in sample_ustack()
/linux-4.4.14/drivers/media/usb/usbvision/
Dusbvision.h193 #define YUV_TO_RGB_BY_THE_BOOK(my, mu, mv, mr, mg, mb) { \ argument
203 mg = LIMIT_RGB(mm_g); \
/linux-4.4.14/arch/mips/include/asm/txx9/
Dtx3927.h87 endian_def_b4(ml, mg, ip, il);
/linux-4.4.14/Documentation/misc-devices/
Dlis3lv02d25 to mg values (1/1000th of earth gravity).
/linux-4.4.14/tools/perf/ui/stdio/
Dhist.c478 __map_groups__fprintf_maps(h->thread->mg, in hists__fprintf()
/linux-4.4.14/arch/mips/include/asm/octeon/
Dcvmx-pci-defs.h528 uint32_t mg:8; member
534 uint32_t mg:8;
/linux-4.4.14/Documentation/filesystems/
Dproc.txt494 mg - mergable advise flag