/linux-master/tools/perf/tests/ |
H A D | mem2node.c | 15 const char *map; member in struct:node 17 { .node = 0, .map = "0" }, 18 { .node = 1, .map = "1-2" }, 19 { .node = 3, .map = "5-7,9" }, 26 struct perf_cpu_map *map = perf_cpu_map__new(str); local 31 if (map && bm) { 35 perf_cpu_map__for_each_cpu(cpu, i, map) 39 if (map) 40 perf_cpu_map__put(map); 44 return bm && map 49 struct mem2node map; local [all...] |
/linux-master/tools/lib/perf/include/perf/ |
H A D | mmap.h | 10 LIBPERF_API void perf_mmap__consume(struct perf_mmap *map); 11 LIBPERF_API int perf_mmap__read_init(struct perf_mmap *map); 12 LIBPERF_API void perf_mmap__read_done(struct perf_mmap *map); 13 LIBPERF_API union perf_event *perf_mmap__read_event(struct perf_mmap *map);
|
/linux-master/tools/perf/util/ |
H A D | map.c | 12 #include "map.h" 105 void map__init(struct map *map, u64 start, u64 end, u64 pgoff, struct dso *dso) argument 107 map__set_start(map, start); 108 map__set_end(map, end); 109 map__set_pgoff(map, pgoff); 110 map__set_reloc(map, 0); 111 map__set_dso(map, dso__get(dso)); 112 map__set_mapping_type(map, MAPPING_TYPE__DSO); 113 map__set_erange_warned(map, fals 235 __map__is_kernel(const struct map *map) argument 242 __map__is_extra_kernel_map(const struct map *map) argument 249 __map__is_bpf_prog(const struct map *map) argument 266 __map__is_bpf_image(const struct map *map) argument 283 __map__is_ool(const struct map *map) argument 290 map__has_symbols(const struct map *map) argument 295 map__exit(struct map *map) argument 301 map__delete(struct map *map) argument 307 map__put(struct map *map) argument 315 map__fixup_start(struct map *map) argument 328 map__fixup_end(struct map *map) argument 342 map__load(struct map *map) argument 383 map__find_symbol(struct map *map, u64 addr) argument 391 map__find_symbol_by_name_idx(struct map *map, const char *name, size_t *idx) argument 404 map__find_symbol_by_name(struct map *map, const char *name) argument 430 map__fprintf(struct map *map, FILE *fp) argument 445 __map__fprintf_dsoname(struct map *map, bool print_off, FILE *fp) argument 466 map__fprintf_dsoname(struct map *map, FILE *fp) argument 471 map__fprintf_dsoname_dsoff(struct map *map, bool print_off, u64 addr, FILE *fp) argument 487 map__srcline(struct map *map, u64 addr, struct symbol *sym) argument 495 map__fprintf_srcline(struct map *map, u64 addr, const char *prefix, FILE *fp) argument 527 map__rip_2objdump(struct map *map, u64 rip) argument 572 map__objdump_2mem(struct map *map, u64 ip) argument 589 map__objdump_2rip(struct map *map, u64 ip) argument 605 map__contains_symbol(const struct map *map, const struct symbol *sym) argument 612 __map__kmap(struct map *map) argument 621 map__kmap(struct map *map) argument 630 map__kmaps(struct map *map) argument [all...] |
H A D | maps.h | 12 struct map; 30 static inline void __maps__zput(struct maps **map) argument 32 maps__put(*map); 33 *map = NULL; 36 #define maps__zput(map) __maps__zput(&map) 40 /* Iterate over map calling cb for each entry. */ 41 int maps__for_each_map(struct maps *maps, int (*cb)(struct map *map, void *data), void *data); 42 /* Iterate over map removin [all...] |
/linux-master/drivers/base/regmap/ |
H A D | regmap-debugfs.c | 3 // Register map access API - debugfs 19 struct regmap *map; member in struct:regmap_debugfs_node 38 struct regmap *map = file->private_data; local 47 if (map->dev && map->dev->driver) 48 name = map->dev->driver->name; 67 static void regmap_debugfs_free_dump_cache(struct regmap *map) argument 71 while (!list_empty(&map->debugfs_off_cache)) { 72 c = list_first_entry(&map->debugfs_off_cache, 80 static bool regmap_printable(struct regmap *map, unsigne argument 95 regmap_debugfs_get_dump_start(struct regmap *map, unsigned int base, loff_t from, loff_t *pos) argument 181 regmap_calc_tot_len(struct regmap *map, void *buf, size_t count) argument 193 regmap_next_readable_reg(struct regmap *map, int reg) argument 215 regmap_read_debugfs(struct regmap *map, unsigned int from, unsigned int to, char __user *user_buf, size_t count, loff_t *ppos) argument 287 struct regmap *map = file->private_data; local 309 struct regmap *map = file->private_data; local 348 struct regmap *map = range->map; local 364 struct regmap *map = file->private_data; local 436 struct regmap *map = s->private; local 463 struct regmap *map = container_of(file->private_data, local 510 struct regmap *map = container_of(file->private_data, local 546 regmap_debugfs_init(struct regmap *map) argument 666 regmap_debugfs_exit(struct regmap *map) argument [all...] |
H A D | trace.h | 18 TP_PROTO(struct regmap *map, unsigned int reg, 21 TP_ARGS(map, reg, val), 24 __string( name, regmap_name(map) ) 40 TP_PROTO(struct regmap *map, unsigned int reg, 43 TP_ARGS(map, reg, val) 48 TP_PROTO(struct regmap *map, unsigned int reg, 51 TP_ARGS(map, reg, val) 56 TP_PROTO(struct regmap *map, unsigned int reg, 59 TP_ARGS(map, reg, val) 64 TP_PROTO(struct regmap *map, unsigne [all...] |
H A D | internal.h | 3 * Register map access API internal header 36 void (*format_write)(struct regmap *map, 46 struct regmap *map; member in struct:regmap_async 157 /* if set, the HW registers are known to match map->reg_defaults */ 186 int (*init)(struct regmap *map); 187 int (*exit)(struct regmap *map); 189 void (*debugfs_init)(struct regmap *map); 191 int (*read)(struct regmap *map, unsigned int reg, unsigned int *value); 192 int (*write)(struct regmap *map, unsigned int reg, unsigned int value); 193 int (*sync)(struct regmap *map, unsigne 211 struct regmap *map; member in struct:regmap_range_node 240 regmap_debugfs_disable(struct regmap *map) argument 247 regmap_debugfs_init(struct regmap *map) argument 248 regmap_debugfs_exit(struct regmap *map) argument 249 regmap_debugfs_disable(struct regmap *map) argument 267 regcache_get_val_addr(struct regmap *map, const void *base, unsigned int idx) argument 294 regmap_name(const struct regmap *map) argument 302 regmap_get_offset(const struct regmap *map, unsigned int index) argument 311 regcache_get_index_by_order(const struct regmap *map, unsigned int reg) argument [all...] |
/linux-master/include/linux/crush/ |
H A D | mapper.h | 14 extern int crush_find_rule(const struct crush_map *map, int ruleset, int type, int size); 15 int crush_do_rule(const struct crush_map *map, 26 static inline size_t crush_work_size(const struct crush_map *map, argument 29 return map->working_size + result_max * 3 * sizeof(__u32); 32 void crush_init_workspace(const struct crush_map *map, void *v);
|
/linux-master/drivers/md/dm-vdo/ |
H A D | int-map.h | 18 * The map is implemented as hash table, which should provide constant-time insert, query, and 20 * number of entries in the map. The table will grow as needed to hold new entries, but will not 28 void vdo_int_map_free(struct int_map *map); 30 size_t vdo_int_map_size(const struct int_map *map); 32 void *vdo_int_map_get(struct int_map *map, u64 key); 34 int __must_check vdo_int_map_put(struct int_map *map, u64 key, void *new_value, 37 void *vdo_int_map_remove(struct int_map *map, u64 key);
|
/linux-master/drivers/mtd/maps/ |
H A D | ichxrom.c | 15 #include <linux/mtd/map.h> 47 struct map_info map; member in struct:ichxrom_map_info 59 struct ichxrom_map_info *map, *scratch; local 70 list_for_each_entry_safe(map, scratch, &window->maps, list) { 71 if (map->rsrc.parent) 72 release_resource(&map->rsrc); 73 mtd_device_unregister(map->mtd); 74 map_destroy(map->mtd); 75 list_del(&map->list); 76 kfree(map); 95 struct ichxrom_map_info *map = NULL; local [all...] |
H A D | ck804xrom.c | 18 #include <linux/mtd/map.h> 46 struct map_info map; member in struct:ck804xrom_map_info 84 struct ck804xrom_map_info *map, *scratch; local 94 list_for_each_entry_safe(map, scratch, &window->maps, list) { 95 if (map->rsrc.parent) 96 release_resource(&map->rsrc); 98 mtd_device_unregister(map->mtd); 99 map_destroy(map->mtd); 100 list_del(&map->list); 101 kfree(map); 123 struct ck804xrom_map_info *map = NULL; local [all...] |
H A D | amd76xrom.c | 15 #include <linux/mtd/map.h> 42 struct map_info map; member in struct:amd76xrom_map_info 71 struct amd76xrom_map_info *map, *scratch; local 82 list_for_each_entry_safe(map, scratch, &window->maps, list) { 83 if (map->rsrc.parent) { 84 release_resource(&map->rsrc); 86 mtd_device_unregister(map->mtd); 87 map_destroy(map->mtd); 88 list_del(&map->list); 89 kfree(map); 110 struct amd76xrom_map_info *map = NULL; local [all...] |
H A D | map_funcs.c | 3 * Out-of-line map I/O functions for simple maps when CONFIG_COMPLEX_MAPPINGS 10 #include <linux/mtd/map.h> 13 static map_word __xipram simple_map_read(struct map_info *map, unsigned long ofs) argument 15 return inline_map_read(map, ofs); 18 static void __xipram simple_map_write(struct map_info *map, const map_word datum, unsigned long ofs) argument 20 inline_map_write(map, datum, ofs); 23 static void __xipram simple_map_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) argument 25 inline_map_copy_from(map, to, from, len); 28 static void __xipram simple_map_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument 30 inline_map_copy_to(map, t 33 simple_map_init(struct map_info *map) argument [all...] |
H A D | physmap-versatile.h | 3 #include <linux/mtd/map.h> 8 struct map_info *map); 13 struct map_info *map) 11 of_flash_probe_versatile(struct platform_device *pdev, struct device_node *np, struct map_info *map) argument
|
/linux-master/drivers/md/dm-vdo/indexer/ |
H A D | index-page-map.c | 6 #include "index-page-map.h" 20 * The index page map is conceptually a two-dimensional array indexed by chapter number and index 39 struct index_page_map *map; local 41 result = vdo_allocate(1, struct index_page_map, "page map", &map); 45 map->geometry = geometry; 46 map->entries_per_chapter = geometry->index_pages_per_chapter - 1; 48 &map->entries); 50 uds_free_index_page_map(map); 54 *map_ptr = map; 58 uds_free_index_page_map(struct index_page_map *map) argument 66 uds_update_index_page_map(struct index_page_map *map, u64 virtual_chapter_number, u32 chapter_number, u32 index_page_number, u32 delta_list_number) argument 80 uds_find_index_page_number(const struct index_page_map *map, const struct uds_record_name *name, u32 chapter_number) argument 95 uds_get_list_number_bounds(const struct index_page_map *map, u32 chapter_number, u32 index_page_number, u32 *lowest_list, u32 *highest_list) argument 113 uds_write_index_page_map(struct index_page_map *map, struct buffered_writer *writer) argument 139 uds_read_index_page_map(struct index_page_map *map, struct buffered_reader *reader) argument [all...] |
/linux-master/tools/testing/selftests/mm/ |
H A D | soft-dirty.c | 18 char *map; local 20 map = aligned_alloc(pagesize, pagesize); 21 if (!map) 27 if (pagemap_is_softdirty(pagemap_fd, map) == 1) { 34 map[0]++; 36 if (pagemap_is_softdirty(pagemap_fd, map) == 0) { 43 free(map); 50 char *map, *map2; local 52 map = mmap(NULL, pagesize, (PROT_READ | PROT_WRITE), (MAP_PRIVATE | MAP_ANON), -1, 0); 53 if (map 79 char *map; local 132 char *map; local [all...] |
/linux-master/kernel/dma/ |
H A D | map_benchmark.c | 38 struct map_benchmark_data *map = data; local 39 int npages = map->bparam.granule; 58 if (map->dir != DMA_FROM_DEVICE) 62 dma_addr = dma_map_single(map->dev, buf, size, map->dir); 63 if (unlikely(dma_mapping_error(map->dev, dma_addr))) { 65 dev_name(map->dev)); 73 ndelay(map->bparam.dma_trans_ns); 76 dma_unmap_single(map->dev, dma_addr, size, map 99 do_map_benchmark(struct map_benchmark_data *map) argument 183 struct map_benchmark_data *map = file->private_data; local 273 struct map_benchmark_data *map = (struct map_benchmark_data *)data; local 281 struct map_benchmark_data *map; local [all...] |
/linux-master/arch/powerpc/boot/ |
H A D | install.sh | 16 # $3 - kernel map file 32 if [ -f $4/System.map-$1 ]; then 33 mv $4/System.map-$1 $4/System-$1.old 37 cp $3 $4/System.map-$1
|
/linux-master/arch/arm/boot/ |
H A D | install.sh | 17 # $3 - kernel map file 35 # Install system map file 36 if [ -f $4/System.map-$1 ]; then 37 mv $4/System.map-$1 $4/System.map-$1.old 39 cp $3 $4/System.map-$1
|
/linux-master/drivers/gpu/drm/amd/display/dc/link/ |
H A D | link_resource.h | 28 void link_get_cur_res_map(const struct dc *dc, uint32_t *map); 29 void link_restore_res_map(const struct dc *dc, uint32_t *map);
|
/linux-master/drivers/mtd/chips/ |
H A D | map_ram.c | 3 * Common code to handle map devices which are simple RAM 16 #include <linux/mtd/map.h> 23 static struct mtd_info *map_ram_probe(struct map_info *map); 35 static struct mtd_info *map_ram_probe(struct map_info *map) argument 41 map_write8(map, 0x55, 0); 42 if (map_read8(map, 0) != 0x55) 45 map_write8(map, 0xAA, 0); 46 if (map_read8(map, 0) != 0xAA) 50 map_write8(map, 0x55, map 94 struct map_info *map = mtd->priv; local 112 struct map_info *map = mtd->priv; local 121 struct map_info *map = mtd->priv; local 132 struct map_info *map = mtd->priv; local [all...] |
/linux-master/kernel/bpf/ |
H A D | arraymap.c | 26 for (i = 0; i < array->map.max_entries; i++) { 37 for (i = 0; i < array->map.max_entries; i++) { 38 ptr = bpf_map_alloc_percpu(&array->map, array->elem_size, 8, 73 /* avoid overflow on round_up(map->value_size) */ 127 /* allocate all map elements and zero-initialize them */ 143 array->map.bypass_spec_v1 = bypass_spec_v1; 145 /* copy mandatory map attributes */ 146 bpf_map_init_from_attr(&array->map, attr); 154 return &array->map; 163 static void *array_map_lookup_elem(struct bpf_map *map, voi argument 174 array_map_direct_value_addr(const struct bpf_map *map, u64 *imm, u32 off) argument 188 array_map_direct_value_meta(const struct bpf_map *map, u64 imm, u32 *off) argument 205 array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) argument 238 percpu_array_map_lookup_elem(struct bpf_map *map, void *key) argument 250 percpu_array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) argument 281 percpu_array_map_lookup_percpu_elem(struct bpf_map *map, void *key, u32 cpu) argument 295 bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value) argument 323 array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) argument 342 array_map_update_elem(struct bpf_map *map, void *key, void *value, u64 map_flags) argument 381 bpf_percpu_array_update(struct bpf_map *map, void *key, void *value, u64 map_flags) argument 421 array_map_delete_elem(struct bpf_map *map, void *key) argument 431 array_map_free_timers_wq(struct bpf_map *map) argument 450 array_map_free(struct bpf_map *map) argument 481 array_map_seq_show_elem(struct bpf_map *map, void *key, struct seq_file *m) argument 502 percpu_array_map_seq_show_elem(struct bpf_map *map, void *key, struct seq_file *m) argument 525 array_map_check_btf(const struct bpf_map *map, const struct btf *btf, const struct btf_type *key_type, const struct btf_type *value_type) argument 557 array_map_mmap(struct bpf_map *map, struct vm_area_struct *vma) argument 583 struct bpf_map *map; member in struct:bpf_iter_seq_array_map_info 591 struct bpf_map *map = info->map; local 610 struct bpf_map *map = info->map; local 630 struct bpf_map *map = info->map; local 681 struct bpf_map *map = aux->map; local 726 bpf_for_each_array_elem(struct bpf_map *map, bpf_callback_t callback_fn, void *callback_ctx, u64 flags) argument 761 array_map_mem_usage(const struct bpf_map *map) argument 842 fd_array_map_free(struct bpf_map *map) argument 854 fd_array_map_lookup_elem(struct bpf_map *map, void *key) argument 860 bpf_fd_array_map_lookup_elem(struct bpf_map *map, void *key, u32 *value) argument 880 bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file, void *key, void *value, u64 map_flags) argument 912 __fd_array_map_delete_elem(struct bpf_map *map, void *key, bool need_defer) argument 938 fd_array_map_delete_elem(struct bpf_map *map, void *key) argument 943 prog_fd_array_get_ptr(struct bpf_map *map, struct file *map_file, int fd) argument 959 prog_fd_array_put_ptr(struct bpf_map *map, void *ptr, bool need_defer) argument 971 bpf_fd_array_map_clear(struct bpf_map *map, bool need_defer) argument 980 prog_array_map_seq_show_elem(struct bpf_map *map, void *key, struct seq_file *m) argument 1008 prog_array_map_poke_track(struct bpf_map *map, struct bpf_prog_aux *prog_aux) argument 1041 prog_array_map_poke_untrack(struct bpf_map *map, struct bpf_prog_aux *prog_aux) argument 1065 prog_array_map_poke_run(struct bpf_map *map, u32 key, struct bpf_prog *old, struct bpf_prog *new) argument 1116 struct bpf_map *map = container_of(work, struct bpf_array_aux, local 1122 prog_array_map_clear(struct bpf_map *map) argument 1133 struct bpf_map *map; local 1155 prog_array_map_free(struct bpf_map *map) argument 1222 perf_event_fd_array_get_ptr(struct bpf_map *map, struct file *map_file, int fd) argument 1248 perf_event_fd_array_put_ptr(struct bpf_map *map, void *ptr, bool need_defer) argument 1254 perf_event_fd_array_release(struct bpf_map *map, struct file *map_file) argument 1273 perf_event_fd_array_map_free(struct bpf_map *map) argument 1297 cgroup_fd_array_get_ptr(struct bpf_map *map, struct file *map_file , int fd) argument 1304 cgroup_fd_array_put_ptr(struct bpf_map *map, void *ptr, bool need_defer) argument 1310 cgroup_fd_array_free(struct bpf_map *map) argument 1334 struct bpf_map *map, *inner_map_meta; local 1351 array_of_map_free(struct bpf_map *map) argument 1361 array_of_map_lookup_elem(struct bpf_map *map, void *key) argument 1371 array_of_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) argument [all...] |
/linux-master/fs/ntfs3/ |
H A D | bitfunc.c | 36 const u8 *map = (u8 *)lmap + (bit >> 3); local 40 return !nbits || !(*map & fill_mask[pos + nbits] & 43 if (*map++ & zero_mask[pos]) 48 pos = ((size_t)map) & (sizeof(size_t) - 1); 52 for (nbits -= pos * 8; pos; pos--, map++) { 53 if (*map) 59 for (pos = nbits / BITS_IN_SIZE_T; pos; pos--, map += sizeof(size_t)) { 60 if (*((size_t *)map)) 64 for (pos = (nbits % BITS_IN_SIZE_T) >> 3; pos; pos--, map++) { 65 if (*map) 85 const u8 *map = (u8 *)lmap + (bit >> 3); local [all...] |
/linux-master/drivers/staging/media/ipu3/ |
H A D | ipu3-dmamap.h | 11 void *imgu_dmamap_alloc(struct imgu_device *imgu, struct imgu_css_map *map, 13 void imgu_dmamap_free(struct imgu_device *imgu, struct imgu_css_map *map); 16 int nents, struct imgu_css_map *map); 17 void imgu_dmamap_unmap(struct imgu_device *imgu, struct imgu_css_map *map);
|
/linux-master/include/linux/mtd/ |
H A D | pfow.h | 100 static inline void send_pfow_command(struct map_info *map, argument 104 int bits_per_chip = map_bankwidth(map) * 8; 106 map_write(map, CMD(cmd_code), map->pfow_base + PFOW_COMMAND_CODE); 107 map_write(map, CMD(adr & ((1<<bits_per_chip) - 1)), 108 map->pfow_base + PFOW_COMMAND_ADDRESS_L); 109 map_write(map, CMD(adr>>bits_per_chip), 110 map->pfow_base + PFOW_COMMAND_ADDRESS_H); 112 map_write(map, CMD(len & ((1<<bits_per_chip) - 1)), 113 map [all...] |