Home
last modified time | relevance | path

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

/linux-4.1.27/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.1.27/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_VAL("wrong refcnt", 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()
61 other_mg = other->mg; in test__thread_mg_share()
64 TEST_ASSERT_VAL("map groups don't match", other_mg == other_leader->mg); in test__thread_mg_share()
68 TEST_ASSERT_VAL("wrong refcnt", mg->refcnt == 3); in test__thread_mg_share()
71 TEST_ASSERT_VAL("wrong refcnt", mg->refcnt == 2); in test__thread_mg_share()
[all …]
DBuild27 perf-y += thread-mg-share.o
Dcode-reading.c171 ret_len = dso__data_read_offset(al.map->dso, thread->mg->machine, in read_object_code()
/linux-4.1.27/drivers/md/
Ddm-cache-target.c336 struct dm_cache_migration *mg; member
361 struct dm_cache_migration *mg; in alloc_migration() local
363 mg = mempool_alloc(cache->migration_pool, GFP_NOWAIT); in alloc_migration()
364 if (mg) { in alloc_migration()
365 mg->cache = cache; in alloc_migration()
366 atomic_inc(&mg->cache->nr_allocated_migrations); in alloc_migration()
369 return mg; in alloc_migration()
372 static void free_migration(struct dm_cache_migration *mg) in free_migration() argument
374 if (atomic_dec_and_test(&mg->cache->nr_allocated_migrations)) in free_migration()
375 wake_up(&mg->cache->migration_wait); in free_migration()
[all …]
/linux-4.1.27/tools/perf/util/
Dmap.h68 void map_groups__delete(struct map_groups *mg);
69 bool map_groups__empty(struct map_groups *mg);
71 static inline struct map_groups *map_groups__get(struct map_groups *mg) in map_groups__get() argument
73 ++mg->refcnt; in map_groups__get()
74 return mg; in map_groups__get()
77 void map_groups__put(struct map_groups *mg);
160 size_t __map_groups__fprintf_maps(struct map_groups *mg, enum map_type type,
167 void map_groups__init(struct map_groups *mg, struct machine *machine);
168 void map_groups__exit(struct map_groups *mg);
169 int map_groups__clone(struct map_groups *mg,
[all …]
Dmap.c416 void map_groups__init(struct map_groups *mg, struct machine *machine) in map_groups__init() argument
420 mg->maps[i] = RB_ROOT; in map_groups__init()
421 INIT_LIST_HEAD(&mg->removed_maps[i]); in map_groups__init()
423 mg->machine = machine; in map_groups__init()
424 mg->refcnt = 1; in map_groups__init()
450 void map_groups__exit(struct map_groups *mg) in map_groups__exit() argument
455 maps__delete(&mg->maps[i]); in map_groups__exit()
456 maps__delete_removed(&mg->removed_maps[i]); in map_groups__exit()
460 bool map_groups__empty(struct map_groups *mg) in map_groups__empty() argument
465 if (maps__first(&mg->maps[i])) in map_groups__empty()
[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()
72 if (thread->mg) { in thread__delete()
73 map_groups__put(thread->mg); in thread__delete()
74 thread->mg = NULL; in thread__delete()
172 map_groups__fprintf(thread->mg, fp); in thread__fprintf()
177 map_groups__fixup_overlappings(thread->mg, map, stderr); in thread__insert_map()
178 map_groups__insert(thread->mg, map); in thread__insert_map()
192 if (map_groups__clone(thread->mg, parent->mg, i) < 0) in thread__clone_map_groups()
Dmachine.c310 if (!leader->mg) in machine__update_thread_pid()
311 leader->mg = map_groups__new(machine); in machine__update_thread_pid()
313 if (!leader->mg) in machine__update_thread_pid()
316 if (th->mg == leader->mg) in machine__update_thread_pid()
319 if (th->mg) { in machine__update_thread_pid()
325 if (!map_groups__empty(th->mg)) in machine__update_thread_pid()
328 map_groups__delete(th->mg); in machine__update_thread_pid()
331 th->mg = map_groups__get(leader->mg); in machine__update_thread_pid()
826 static void map_groups__fixup_end(struct map_groups *mg) in map_groups__fixup_end() argument
830 __map_groups__fixup_end(mg, i); in map_groups__fixup_end()
[all …]
Devent.c796 struct map_groups *mg = thread->mg; in thread__find_addr_map() local
797 struct machine *machine = mg->machine; in thread__find_addr_map()
813 mg = &machine->kmaps; in thread__find_addr_map()
819 mg = &machine->kmaps; in thread__find_addr_map()
839 al->map = map_groups__find(mg, type, al->addr); in thread__find_addr_map()
851 mg != &machine->kmaps && in thread__find_addr_map()
853 mg = &machine->kmaps; in thread__find_addr_map()
875 thread->mg->machine->symbol_filter); in thread__find_addr_location()
Dthread.h19 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.h279 void __map_groups__fixup_end(struct map_groups *mg, enum map_type type);
Dsymbol.c200 void __map_groups__fixup_end(struct map_groups *mg, enum map_type type) in __map_groups__fixup_end() argument
203 struct rb_node *nd, *prevnd = rb_first(&mg->maps[type]); in __map_groups__fixup_end()
1505 struct map *map_groups__find_by_name(struct map_groups *mg, in map_groups__find_by_name() argument
1510 for (nd = rb_first(&mg->maps[type]); nd; nd = rb_next(nd)) { in map_groups__find_by_name()
Dunwind-libunwind.c637 .machine = thread->mg->machine, in unwind__get_entries()
/linux-4.1.27/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()
169 const struct mcs_group *mg; in minstrel_ht_stats_csv_dump() local
178 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.1.27/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.1.27/tools/perf/arch/arm/tests/
Ddwarf-unwind.c27 map = map_groups__find(thread->mg, MAP__VARIABLE, (u64) sp); in sample_ustack()
/linux-4.1.27/tools/perf/arch/x86/tests/
Ddwarf-unwind.c27 map = map_groups__find(thread->mg, MAP__VARIABLE, (u64) sp); in sample_ustack()
/linux-4.1.27/drivers/media/usb/usbvision/
Dusbvision.h192 #define YUV_TO_RGB_BY_THE_BOOK(my, mu, mv, mr, mg, mb) { \ argument
202 mg = LIMIT_RGB(mm_g); \
/linux-4.1.27/arch/mips/include/asm/txx9/
Dtx3927.h87 endian_def_b4(ml, mg, ip, il);
/linux-4.1.27/Documentation/misc-devices/
Dlis3lv02d25 to mg values (1/1000th of earth gravity).
/linux-4.1.27/tools/perf/ui/stdio/
Dhist.c478 __map_groups__fprintf_maps(h->thread->mg, in hists__fprintf()
/linux-4.1.27/arch/mips/include/asm/octeon/
Dcvmx-pci-defs.h528 uint32_t mg:8; member
534 uint32_t mg:8;
/linux-4.1.27/Documentation/filesystems/
Dproc.txt476 mg - mergable advise flag