Searched refs:map (Results 51 - 75 of 2546) sorted by relevance

1234567891011>>

/linux-master/tools/perf/util/
H A Dmem2node.h16 int mem2node__init(struct mem2node *map, struct perf_env *env);
17 void mem2node__exit(struct mem2node *map);
18 int mem2node__node(struct mem2node *map, u64 addr);
H A Dmmap.c39 size_t mmap__mmap_len(struct mmap *map) argument
41 return perf_mmap__mmap_len(&map->core);
71 static int perf_mmap__aio_enabled(struct mmap *map) argument
73 return map->aio.nr_cblocks > 0;
77 static int perf_mmap__aio_alloc(struct mmap *map, int idx) argument
79 map->aio.data[idx] = mmap(NULL, mmap__mmap_len(map), PROT_READ|PROT_WRITE,
81 if (map->aio.data[idx] == MAP_FAILED) {
82 map->aio.data[idx] = NULL;
89 static void perf_mmap__aio_free(struct mmap *map, in argument
97 perf_mmap__aio_bind(struct mmap *map, int idx, struct perf_cpu cpu, int affinity) argument
126 perf_mmap__aio_alloc(struct mmap *map, int idx) argument
135 perf_mmap__aio_free(struct mmap *map, int idx) argument
147 perf_mmap__aio_mmap(struct mmap *map, struct mmap_params *mp) argument
201 perf_mmap__aio_munmap(struct mmap *map) argument
229 mmap__munmap(struct mmap *map) argument
263 perf_mmap__setup_affinity_mask(struct mmap *map, struct mmap_params *mp) argument
278 mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, struct perf_cpu cpu) argument
323 perf_mmap__push(struct mmap *md, void *to, int push(struct mmap *map, void *to, void *buf, size_t size)) argument
[all...]
/linux-master/drivers/mtd/maps/
H A Dphysmap-bt1-rom.h2 #include <linux/mtd/map.h>
8 struct map_info *map);
13 struct map_info *map)
11 of_flash_probe_bt1_rom(struct platform_device *pdev, struct device_node *np, struct map_info *map) argument
H A Dphysmap-ixp4xx.h4 #include <linux/mtd/map.h>
9 struct map_info *map);
14 struct map_info *map)
12 of_flash_probe_ixp4xx(struct platform_device *pdev, struct device_node *np, struct map_info *map) argument
H A Dpxa2xx-flash.c15 #include <linux/mtd/map.h>
23 static void pxa2xx_map_inval_cache(struct map_info *map, unsigned long from, argument
26 unsigned long start = (unsigned long)map->cached + from;
39 struct map_info map; member in struct:pxa2xx_flash_info
58 info->map.name = flash->name;
59 info->map.bankwidth = flash->width;
60 info->map.phys = res->start;
61 info->map.size = resource_size(res);
63 info->map.virt = ioremap(info->map
[all...]
H A Dlantiq-flash.c15 #include <linux/mtd/map.h>
29 * map. The workaround involves swapping all addresses whilst probing the chip.
42 struct map_info *map; member in struct:ltq_mtd
48 ltq_read16(struct map_info *map, unsigned long adr) argument
53 if (map->map_priv_1 == LTQ_NOR_PROBING)
56 temp.x[0] = *(u16 *)(map->virt + adr);
62 ltq_write16(struct map_info *map, map_word d, unsigned long adr) argument
66 if (map->map_priv_1 == LTQ_NOR_PROBING)
69 *(u16 *)(map->virt + adr) = d.x[0];
81 ltq_copy_from(struct map_info *map, voi argument
95 ltq_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument
[all...]
H A Desb2rom.c21 #include <linux/mtd/map.h>
108 struct map_info map; member in struct:esb2rom_map_info
120 struct esb2rom_map_info *map, *scratch; local
129 list_for_each_entry_safe(map, scratch, &window->maps, list) {
130 if (map->rsrc.parent)
131 release_resource(&map->rsrc);
132 mtd_device_unregister(map->mtd);
133 map_destroy(map->mtd);
134 list_del(&map->list);
135 kfree(map);
153 struct esb2rom_map_info *map = NULL; local
[all...]
/linux-master/fs/ocfs2/
H A Dheartbeat.h17 /* node map functions - used to keep track of mounted and in-recovery
20 struct ocfs2_node_map *map,
23 struct ocfs2_node_map *map,
26 struct ocfs2_node_map *map,
/linux-master/kernel/bpf/
H A Darraymap.c26 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
249 percpu_array_map_lookup_percpu_elem(struct bpf_map *map, void *key, u32 cpu) argument
263 bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value) argument
291 array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) argument
310 array_map_update_elem(struct bpf_map *map, void *key, void *value, u64 map_flags) argument
349 bpf_percpu_array_update(struct bpf_map *map, void *key, void *value, u64 map_flags) argument
389 array_map_delete_elem(struct bpf_map *map, void *key) argument
399 array_map_free_timers(struct bpf_map *map) argument
413 array_map_free(struct bpf_map *map) argument
444 array_map_seq_show_elem(struct bpf_map *map, void *key, struct seq_file *m) argument
465 percpu_array_map_seq_show_elem(struct bpf_map *map, void *key, struct seq_file *m) argument
488 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
520 array_map_mmap(struct bpf_map *map, struct vm_area_struct *vma) argument
546 struct bpf_map *map; member in struct:bpf_iter_seq_array_map_info
554 struct bpf_map *map = info->map; local
573 struct bpf_map *map = info->map; local
593 struct bpf_map *map = info->map; local
644 struct bpf_map *map = aux->map; local
689 bpf_for_each_array_elem(struct bpf_map *map, bpf_callback_t callback_fn, void *callback_ctx, u64 flags) argument
724 array_map_mem_usage(const struct bpf_map *map) argument
804 fd_array_map_free(struct bpf_map *map) argument
816 fd_array_map_lookup_elem(struct bpf_map *map, void *key) argument
822 bpf_fd_array_map_lookup_elem(struct bpf_map *map, void *key, u32 *value) argument
842 bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file, void *key, void *value, u64 map_flags) argument
874 __fd_array_map_delete_elem(struct bpf_map *map, void *key, bool need_defer) argument
900 fd_array_map_delete_elem(struct bpf_map *map, void *key) argument
905 prog_fd_array_get_ptr(struct bpf_map *map, struct file *map_file, int fd) argument
921 prog_fd_array_put_ptr(struct bpf_map *map, void *ptr, bool need_defer) argument
933 bpf_fd_array_map_clear(struct bpf_map *map, bool need_defer) argument
942 prog_array_map_seq_show_elem(struct bpf_map *map, void *key, struct seq_file *m) argument
970 prog_array_map_poke_track(struct bpf_map *map, struct bpf_prog_aux *prog_aux) argument
1003 prog_array_map_poke_untrack(struct bpf_map *map, struct bpf_prog_aux *prog_aux) argument
1027 prog_array_map_poke_run(struct bpf_map *map, u32 key, struct bpf_prog *old, struct bpf_prog *new) argument
1078 struct bpf_map *map = container_of(work, struct bpf_array_aux, local
1084 prog_array_map_clear(struct bpf_map *map) argument
1095 struct bpf_map *map; local
1117 prog_array_map_free(struct bpf_map *map) argument
1184 perf_event_fd_array_get_ptr(struct bpf_map *map, struct file *map_file, int fd) argument
1210 perf_event_fd_array_put_ptr(struct bpf_map *map, void *ptr, bool need_defer) argument
1216 perf_event_fd_array_release(struct bpf_map *map, struct file *map_file) argument
1235 perf_event_fd_array_map_free(struct bpf_map *map) argument
1259 cgroup_fd_array_get_ptr(struct bpf_map *map, struct file *map_file , int fd) argument
1266 cgroup_fd_array_put_ptr(struct bpf_map *map, void *ptr, bool need_defer) argument
1272 cgroup_fd_array_free(struct bpf_map *map) argument
1296 struct bpf_map *map, *inner_map_meta; local
1313 array_of_map_free(struct bpf_map *map) argument
1323 array_of_map_lookup_elem(struct bpf_map *map, void *key) argument
1333 array_of_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) argument
[all...]
/linux-master/tools/lib/perf/
H A Dmmap.c19 void perf_mmap__init(struct perf_mmap *map, struct perf_mmap *prev, argument
23 map->fd = -1;
24 map->overwrite = overwrite;
25 map->unmap_cb = unmap_cb;
26 refcount_set(&map->refcnt, 0);
28 prev->next = map;
31 size_t perf_mmap__mmap_len(struct perf_mmap *map) argument
33 return map->mask + 1 + page_size;
36 int perf_mmap__mmap(struct perf_mmap *map, struct perf_mmap_param *mp, argument
39 map
53 perf_mmap__munmap(struct perf_mmap *map) argument
70 perf_mmap__get(struct perf_mmap *map) argument
75 perf_mmap__put(struct perf_mmap *map) argument
88 perf_mmap__read_head(struct perf_mmap *map) argument
93 perf_mmap__empty(struct perf_mmap *map) argument
100 perf_mmap__consume(struct perf_mmap *map) argument
181 perf_mmap__read_init(struct perf_mmap *map) argument
198 perf_mmap__read_done(struct perf_mmap *map) argument
210 perf_mmap__read(struct perf_mmap *map, u64 *startp, u64 end) argument
272 perf_mmap__read_event(struct perf_mmap *map) argument
480 perf_mmap__read_self(struct perf_mmap *map, struct perf_counts_values *count) argument
[all...]
/linux-master/sound/usb/
H A Dmixer_maps.c29 const struct usbmix_name_map *map; member in struct:usbmix_ctl_map
239 * so this map removes all unwanted sliders from alsamixer
492 * Control map entries
498 .map = extigy_map,
502 .map = mp3plus_map,
506 .map = audigy2nx_map,
511 .map = live24ext_map,
515 .map = audigy2nx_map,
520 .map = gamecom780_map,
527 .map
[all...]
/linux-master/drivers/mtd/lpddr/
H A Dlpddr2_nvm.c19 #include <linux/mtd/map.h>
120 static inline u_long ow_reg_add(struct map_info *map, u_long offset) argument
123 struct pcm_int_data *pcm_data = map->fldrv_priv;
125 val = map->pfow_base + offset*pcm_data->bus_width;
136 static inline void ow_enable(struct map_info *map) argument
138 struct pcm_int_data *pcm_data = map->fldrv_priv;
151 static inline void ow_disable(struct map_info *map) argument
153 struct pcm_int_data *pcm_data = map->fldrv_priv;
163 static int lpddr2_nvm_do_op(struct map_info *map, u_long cmd_code, argument
171 struct pcm_int_data *pcm_data = map
236 struct map_info *map = mtd->priv; local
263 lpddr2_nvm_pfow_present(struct map_info *map) argument
301 struct map_info *map = mtd->priv; local
319 struct map_info *map = mtd->priv; local
412 struct map_info *map; local
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dhashmap.c49 struct hashmap *map; local
51 map = hashmap__new(hash_fn, equal_fn, NULL);
52 if (!ASSERT_OK_PTR(map, "hashmap__new"))
59 err = hashmap__update(map, k, v, &oldk, &oldv);
65 err = hashmap__add(map, k, v);
67 err = hashmap__set(map, k, v, &oldk, &oldv);
76 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find",
83 if (CHECK(hashmap__size(map) != ELEM_CNT, "hashmap__size",
84 "invalid map size: %zu\n", hashmap__size(map)))
264 struct hashmap *map; local
343 struct hashmap *map; local
415 struct hashmap *map; local
[all...]
/linux-master/tools/testing/selftests/dma/
H A Ddma_map_benchmark.c26 struct map_benchmark map; local
107 memset(&map, 0, sizeof(map));
108 map.seconds = seconds;
109 map.threads = threads;
110 map.node = node;
111 map.dma_bits = bits;
112 map.dma_dir = dir;
113 map.dma_trans_ns = xdelay;
114 map
[all...]
/linux-master/drivers/vhost/
H A Diotlb.c16 #define START(map) ((map)->start)
17 #define LAST(map) ((map)->last)
24 * vhost_iotlb_map_free - remove a map node and free it
26 * @map: the map that want to be remove and freed
29 struct vhost_iotlb_map *map)
31 vhost_iotlb_itree_remove(map, &iotlb->root);
32 list_del(&map
28 vhost_iotlb_map_free(struct vhost_iotlb *iotlb, struct vhost_iotlb_map *map) argument
55 struct vhost_iotlb_map *map; local
120 struct vhost_iotlb_map *map; local
208 vhost_iotlb_itree_next(struct vhost_iotlb_map *map, u64 start, u64 last) argument
[all...]
/linux-master/drivers/net/wireless/ath/wil6210/
H A Dwil_crash_dump.c14 const struct fw_map *map; local
22 map = &fw_mapping[0];
23 host_min = map->host;
24 host_max = map->host + (map->to - map->from);
27 map = &fw_mapping[i];
29 if (!map->crash_dump)
32 if (map->host < host_min)
33 host_min = map
50 const struct fw_map *map; local
[all...]
/linux-master/tools/lib/perf/include/perf/
H A Dthreadmap.h13 LIBPERF_API void perf_thread_map__set_pid(struct perf_thread_map *map, int idx, pid_t pid);
14 LIBPERF_API char *perf_thread_map__comm(struct perf_thread_map *map, int idx);
16 LIBPERF_API pid_t perf_thread_map__pid(struct perf_thread_map *map, int idx);
18 LIBPERF_API struct perf_thread_map *perf_thread_map__get(struct perf_thread_map *map);
19 LIBPERF_API void perf_thread_map__put(struct perf_thread_map *map);
/linux-master/drivers/hwmon/
H A Dltc2947-i2c.c20 struct regmap *map; local
22 map = devm_regmap_init_i2c(i2c, &ltc2947_regmap_config);
23 if (IS_ERR(map))
24 return PTR_ERR(map);
26 return ltc2947_core_probe(map, i2c->name);
/linux-master/drivers/firmware/efi/
H A Dmemmap.c3 * Common EFI memory map functions.
23 * __efi_memmap_init - Common code for mapping the EFI memory map
24 * @data: EFI memory map data
27 * map the EFI memory map in efi.memmap based on how far into the boot
39 struct efi_memory_map map; local
45 map.map = memremap(phys_map, data->size, MEMREMAP_WB);
47 map.map
[all...]
/linux-master/fs/reiserfs/
H A Dobjectid.c10 /* find where objectid map starts */
17 static void check_objectid_map(struct super_block *s, __le32 * map) argument
19 if (le32_to_cpu(map[0]) != 1)
20 reiserfs_panic(s, "vs-15010", "map corrupted: %lx",
21 (long unsigned int)le32_to_cpu(map[0]));
27 static void check_objectid_map(struct super_block *s, __le32 * map) argument
53 __le32 *map = objectid_map(s, rs); local
58 check_objectid_map(s, map);
62 unused_objectid = le32_to_cpu(map[1]);
71 * is to say, the first entry on the objectid map i
102 __le32 *map = objectid_map(s, rs); local
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_test_kern4.c19 struct bpf_map *map = ctx->map; local
23 if (map == (void *)0)
27 if (map->id != map1_id && map->id != map2_id)
31 if (map->id == map1_id) {
36 if (map->id == map2_id) {
/linux-master/drivers/ras/amd/atl/
H A Dmap.c5 * map.c : Functions to read and decode DRAM address maps
17 ctx->map.intlv_mode = FIELD_GET(DF2_INTLV_NUM_CHAN, ctx->map.base);
19 if (ctx->map.intlv_mode == 8)
20 ctx->map.intlv_mode = DF2_2CHAN_HASH;
22 if (ctx->map.intlv_mode != NONE &&
23 ctx->map.intlv_mode != NOHASH_2CHAN &&
24 ctx->map.intlv_mode != DF2_2CHAN_HASH)
32 ctx->map.intlv_mode = FIELD_GET(DF3_INTLV_NUM_CHAN, ctx->map
645 dump_address_map(struct dram_addr_map *map) argument
[all...]
/linux-master/drivers/clk/berlin/
H A Dberlin2-div.c57 struct berlin2_div_map map; member in struct:berlin2_div
68 struct berlin2_div_map *map = &div->map; local
74 reg = readl_relaxed(div->base + map->gate_offs);
75 reg >>= map->gate_shift;
86 struct berlin2_div_map *map = &div->map; local
92 reg = readl_relaxed(div->base + map->gate_offs);
93 reg |= BIT(map->gate_shift);
94 writel_relaxed(reg, div->base + map
105 struct berlin2_div_map *map = &div->map; local
122 struct berlin2_div_map *map = &div->map; local
153 struct berlin2_div_map *map = &div->map; local
180 struct berlin2_div_map *map = &div->map; local
229 berlin2_div_register(const struct berlin2_div_map *map, void __iomem *base, const char *name, u8 div_flags, const char **parent_names, int num_parents, unsigned long flags, spinlock_t *lock) argument
[all...]
/linux-master/include/linux/mtd/
H A Dcfi_endian.h27 #define cpu_to_cfi8(map, x) (x)
28 #define cfi8_to_cpu(map, x) (x)
29 #define cpu_to_cfi16(map, x) _cpu_to_cfi(16, (map)->swap, (x))
30 #define cpu_to_cfi32(map, x) _cpu_to_cfi(32, (map)->swap, (x))
31 #define cpu_to_cfi64(map, x) _cpu_to_cfi(64, (map)->swap, (x))
32 #define cfi16_to_cpu(map, x) _cfi_to_cpu(16, (map)
[all...]
/linux-master/net/rds/
H A Dcong.c76 * We maintain a global counter that is incremented each time a congestion map
95 * - on map changes to inform conns of a new map to send
109 struct rds_cong_map *map; local
115 map = rb_entry(parent, struct rds_cong_map, m_rb_node);
117 diff = rds_addr_cmp(addr, &map->m_addr);
123 return map;
140 struct rds_cong_map *map; local
146 map = kzalloc(sizeof(struct rds_cong_map), GFP_KERNEL);
147 if (!map)
217 rds_cong_queue_updates(struct rds_cong_map *map) argument
253 rds_cong_map_updated(struct rds_cong_map *map, uint64_t portmask) argument
299 rds_cong_set_bit(struct rds_cong_map *map, __be16 port) argument
313 rds_cong_clear_bit(struct rds_cong_map *map, __be16 port) argument
327 rds_cong_test_bit(struct rds_cong_map *map, __be16 port) argument
351 struct rds_cong_map *map; local
368 rds_cong_wait(struct rds_cong_map *map, __be16 port, int nonblock, struct rds_sock *rs) argument
402 struct rds_cong_map *map; local
420 struct rds_cong_map *map = conn->c_lcong; local
[all...]

Completed in 492 milliseconds

1234567891011>>