/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | global_map_resize.c | 23 struct bpf_map *map; local 37 /* resize map value and verify the new size */ 38 map = skel->maps.bss; 39 err = bpf_map__set_value_size(map, desired_sz); 42 if (!ASSERT_EQ(bpf_map__value_size(map), desired_sz, "resize")) 92 struct bpf_map *map; local 107 /* resize map value and verify the new size */ 108 map = skel->maps.data_custom; 109 err = bpf_map__set_value_size(map, desired_sz); 112 if (!ASSERT_EQ(bpf_map__value_size(map), desired_s 163 struct bpf_map *map; local [all...] |
H A D | pinning.c | 12 struct bpf_map *map; local 17 map = bpf_object__find_map_by_name(obj, name); 18 if (CHECK(!map, "find map", "NULL map")) 21 err = bpf_map_get_info_by_fd(bpf_map__fd(map), 23 CHECK(err, "get map info", "err %d errno %d", err, errno); 39 struct bpf_map *map; local 45 /* check that opening fails with invalid pinning value in map def */ 98 /* check that same map I [all...] |
/linux-master/tools/perf/util/ |
H A D | unwind.h | 46 int unwind__prepare_access(struct maps *maps, struct map *map, bool *initialized); 51 struct map *map __maybe_unused, 73 struct map *map __maybe_unused,
|
H A D | srccode.c | 30 char *map; member in struct:srcfile 40 static int countlines(char *map, int maplen) argument 43 char *end = map + maplen; 44 char *p = map; 58 static void fill_lines(char **lines, int maxline, char *map, int maplen) argument 61 char *end = map + maplen; 62 char *p = map; 67 lines[l++] = map; 82 munmap(sf->map, sf->maplen); 129 h->map [all...] |
/linux-master/tools/perf/tests/ |
H A D | cpumap.c | 21 struct perf_cpu_map *map; local 39 map = cpu_map__new_data(data); 40 TEST_ASSERT_VAL("wrong nr", perf_cpu_map__nr(map) == 20); 42 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 0).cpu == 0); 44 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, i - 1).cpu == i); 46 perf_cpu_map__put(map); 57 struct perf_cpu_map *map; local 67 map = cpu_map__new_data(data); 68 TEST_ASSERT_VAL("wrong nr", perf_cpu_map__nr(map) == 2); 69 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 83 struct perf_cpu_map *map; local 135 struct perf_cpu_map *map = perf_cpu_map__new(str); local [all...] |
/linux-master/tools/perf/arch/x86/tests/ |
H A D | dwarf-unwind.c | 5 #include "map.h" 17 struct map *map; local 29 map = maps__find(thread__maps(thread), (u64)sp); 30 if (!map) { 31 pr_debug("failed to get stack map\n"); 36 stack_size = map__end(map) - sp; 37 map__put(map);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
H A D | vmmgp100.c | 76 u32 ptei, u32 ptes, struct nvkm_vmm_map *map) 82 for (; ptes; ptes--, map->pfn++) { 85 if (!(*map->pfn & NVKM_VMM_PFN_V)) 88 if (!(*map->pfn & NVKM_VMM_PFN_W)) 91 if (!(*map->pfn & NVKM_VMM_PFN_A)) 94 if (!(*map->pfn & NVKM_VMM_PFN_VRAM)) { 95 addr = *map->pfn >> NVKM_VMM_PFN_ADDR_SHIFT; 105 data |= (*map->pfn & NVKM_VMM_PFN_ADDR) >> 4; 116 u32 ptei, u32 ptes, struct nvkm_vmm_map *map, u64 addr) 118 u64 data = (addr >> 4) | map 75 gp100_vmm_pgt_pfn(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, u32 ptei, u32 ptes, struct nvkm_vmm_map *map) argument 115 gp100_vmm_pgt_pte(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, u32 ptei, u32 ptes, struct nvkm_vmm_map *map, u64 addr) argument 129 gp100_vmm_pgt_sgl(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, u32 ptei, u32 ptes, struct nvkm_vmm_map *map) argument 136 gp100_vmm_pgt_dma(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, u32 ptei, u32 ptes, struct nvkm_vmm_map *map) argument 155 gp100_vmm_pgt_mem(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, u32 ptei, u32 ptes, struct nvkm_vmm_map *map) argument 198 gp100_vmm_pd0_pte(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, u32 ptei, u32 ptes, struct nvkm_vmm_map *map, u64 addr) argument 212 gp100_vmm_pd0_mem(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, u32 ptei, u32 ptes, struct nvkm_vmm_map *map) argument 312 gp100_vmm_pd0_pfn(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, u32 ptei, u32 ptes, struct nvkm_vmm_map *map) argument 405 gp100_vmm_valid(struct nvkm_vmm *vmm, void *argv, u32 argc, struct nvkm_vmm_map *map) argument [all...] |
H A D | vmmnv50.c | 33 u32 ptei, u32 ptes, struct nvkm_vmm_map *map, u64 addr) 35 u64 next = addr + map->type, data; 39 map->type += ptes * map->ctag; 49 next += pten * map->next; 59 u32 ptei, u32 ptes, struct nvkm_vmm_map *map) 61 VMM_MAP_ITER_SGL(vmm, pt, ptei, ptes, map, nv50_vmm_pgt_pte); 66 u32 ptei, u32 ptes, struct nvkm_vmm_map *map) 68 if (map->page->shift == PAGE_SHIFT) { 72 const u64 data = *map 32 nv50_vmm_pgt_pte(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, u32 ptei, u32 ptes, struct nvkm_vmm_map *map, u64 addr) argument 58 nv50_vmm_pgt_sgl(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, u32 ptei, u32 ptes, struct nvkm_vmm_map *map) argument 65 nv50_vmm_pgt_dma(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, u32 ptei, u32 ptes, struct nvkm_vmm_map *map) argument 84 nv50_vmm_pgt_mem(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, u32 ptei, u32 ptes, struct nvkm_vmm_map *map) argument 226 nv50_vmm_valid(struct nvkm_vmm *vmm, void *argv, u32 argc, struct nvkm_vmm_map *map) argument [all...] |
/linux-master/kernel/bpf/ |
H A D | syscall.c | 43 #define IS_FD_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PERF_EVENT_ARRAY || \ 44 (map)->map_type == BPF_MAP_TYPE_CGROUP_ARRAY || \ 45 (map)->map_type == BPF_MAP_TYPE_ARRAY_OF_MAPS) 46 #define IS_FD_PROG_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PROG_ARRAY) 47 #define IS_FD_HASH(map) ((map)->map_type == BPF_MAP_TYPE_HASH_OF_MAPS) 48 #define IS_FD_MAP(map) (IS_FD_ARRAY(map) || IS_FD_PROG_ARRA 115 bpf_map_write_active_inc(struct bpf_map *map) argument 120 bpf_map_write_active_dec(struct bpf_map *map) argument 125 bpf_map_write_active(const struct bpf_map *map) argument 130 bpf_map_value_size(const struct bpf_map *map) argument 143 maybe_wait_bpf_programs(struct bpf_map *map) argument 158 bpf_map_update_value(struct bpf_map *map, struct file *map_file, void *key, void *value, __u64 flags) argument 211 bpf_map_copy_value(struct bpf_map *map, void *key, void *value, __u64 flags) argument 339 bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) argument 350 bpf_map_alloc_id(struct bpf_map *map) argument 368 bpf_map_free_id(struct bpf_map *map) argument 389 bpf_map_save_memcg(struct bpf_map *map) argument 400 bpf_map_release_memcg(struct bpf_map *map) argument 406 bpf_map_get_memcg(const struct bpf_map *map) argument 414 bpf_map_kmalloc_node(const struct bpf_map *map, size_t size, gfp_t flags, int node) argument 429 bpf_map_kzalloc(const struct bpf_map *map, size_t size, gfp_t flags) argument 443 bpf_map_kvcalloc(struct bpf_map *map, size_t n, size_t size, gfp_t flags) argument 458 bpf_map_alloc_percpu(const struct bpf_map *map, size_t size, size_t align, gfp_t flags) argument 474 bpf_map_save_memcg(struct bpf_map *map) argument 478 bpf_map_release_memcg(struct bpf_map *map) argument 483 bpf_map_alloc_pages(const struct bpf_map *map, gfp_t gfp, int nid, unsigned long nr_pages, struct page **pages) argument 572 bpf_map_free_record(struct bpf_map *map) argument 727 struct bpf_map *map = container_of(work, struct bpf_map, work); local 751 bpf_map_put_uref(struct bpf_map *map) argument 759 bpf_map_free_in_work(struct bpf_map *map) argument 784 bpf_map_put(struct bpf_map *map) argument 801 bpf_map_put_with_uref(struct bpf_map *map) argument 809 struct bpf_map *map = filp->private_data; local 818 map_get_sys_perms(struct bpf_map *map, struct fd f) argument 832 bpf_map_memory_usage(const struct bpf_map *map) argument 839 struct bpf_map *map = filp->private_data; local 896 struct bpf_map *map = vma->vm_file->private_data; local 905 struct bpf_map *map = vma->vm_file->private_data; local 918 struct bpf_map *map = filp->private_data; local 966 struct bpf_map *map = filp->private_data; local 978 struct bpf_map *map = filp->private_data; local 1001 bpf_map_new_fd(struct bpf_map *map, int flags) argument 1056 map_check_no_btf(const struct bpf_map *map, const struct btf *btf, const struct btf_type *key_type, const struct btf_type *value_type) argument 1064 map_check_btf(struct bpf_map *map, struct bpf_token *token, const struct btf *btf, u32 btf_key_id, u32 btf_value_id) argument 1189 struct bpf_map *map; local 1423 bpf_map_inc(struct bpf_map *map) argument 1429 bpf_map_inc_with_uref(struct bpf_map *map) argument 1439 struct bpf_map *map; local 1455 struct bpf_map *map; local 1470 __bpf_map_inc_not_zero(struct bpf_map *map, bool uref) argument 1483 bpf_map_inc_not_zero(struct bpf_map *map) argument 1493 bpf_stackmap_copy(struct bpf_map *map, void *key, void *value) argument 1528 struct bpf_map *map; local 1603 struct bpf_map *map; local 1660 struct bpf_map *map; local 1717 struct bpf_map *map; local 1776 generic_map_delete_batch(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr) argument 1832 generic_map_update_batch(struct bpf_map *map, struct file *map_file, const union bpf_attr *attr, union bpf_attr __user *uattr) argument 1895 generic_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr) argument 2002 struct bpf_map *map; local 2093 struct bpf_map *map; local 4305 struct bpf_map *map; local 4387 struct bpf_map *map; local 4425 const struct bpf_map *map; local 4452 const struct bpf_map *map; local 4827 bpf_map_get_info_by_fd(struct file *file, struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr) argument 5146 struct bpf_map *map; local 5545 struct bpf_map *map; local [all...] |
H A D | bloom_filter.c | 16 struct bpf_map map; member in struct:bpf_bloom_filter 36 static long bloom_map_peek_elem(struct bpf_map *map, void *value) argument 39 container_of(map, struct bpf_bloom_filter, map); 43 h = hash(bloom, value, map->value_size, i); 51 static long bloom_map_push_elem(struct bpf_map *map, void *value, u64 flags) argument 54 container_of(map, struct bpf_bloom_filter, map); 61 h = hash(bloom, value, map->value_size, i); 68 static long bloom_map_pop_elem(struct bpf_map *map, voi argument 73 bloom_map_delete_elem(struct bpf_map *map, void *value) argument 78 bloom_map_get_next_key(struct bpf_map *map, void *key, void *next_key) argument 162 bloom_map_free(struct bpf_map *map) argument 170 bloom_map_lookup_elem(struct bpf_map *map, void *key) argument 176 bloom_map_update_elem(struct bpf_map *map, void *key, void *value, u64 flags) argument 183 bloom_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 192 bloom_map_mem_usage(const struct bpf_map *map) argument [all...] |
/linux-master/include/linux/ |
H A D | regmap.h | 6 * Register map access API 105 * @map: Regmap to read from 121 #define regmap_read_poll_timeout(map, addr, val, cond, sleep_us, timeout_us) \ 125 sleep_us, timeout_us, false, (map), (addr), &(val)); \ 132 * @map: Regmap to read from 151 #define regmap_read_poll_timeout_atomic(map, addr, val, cond, delay_us, timeout_us) \ 158 __ret = regmap_read((map), (addr), &(val)); \ 165 __ret = regmap_read((map), (addr), &(val)); \ 248 * struct regmap_config - Configuration for the register map of a device. 530 * struct regmap_bus - Description of a hardware bus for the register map 1243 regmap_update_bits(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val) argument 1249 regmap_update_bits_async(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val) argument 1255 regmap_update_bits_check(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val, bool *change) argument 1264 regmap_update_bits_check_async(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val, bool *change) argument 1272 regmap_write_bits(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val) argument 1315 regmap_set_bits(struct regmap *map, unsigned int reg, unsigned int bits) argument 1322 regmap_clear_bits(struct regmap *map, unsigned int reg, unsigned int bits) argument 1693 regmap_write(struct regmap *map, unsigned int reg, unsigned int val) argument 1700 regmap_write_async(struct regmap *map, unsigned int reg, unsigned int val) argument 1707 regmap_raw_write(struct regmap *map, unsigned int reg, const void *val, size_t val_len) argument 1714 regmap_raw_write_async(struct regmap *map, unsigned int reg, const void *val, size_t val_len) argument 1721 regmap_noinc_write(struct regmap *map, unsigned int reg, const void *val, size_t val_len) argument 1728 regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val, size_t val_count) argument 1735 regmap_read(struct regmap *map, unsigned int reg, unsigned int *val) argument 1742 regmap_raw_read(struct regmap *map, unsigned int reg, void *val, size_t val_len) argument 1749 regmap_noinc_read(struct regmap *map, unsigned int reg, void *val, size_t val_len) argument 1756 regmap_bulk_read(struct regmap *map, unsigned int reg, void *val, size_t val_count) argument 1763 regmap_update_bits_base(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val, bool *change, bool async, bool force) argument 1771 regmap_set_bits(struct regmap *map, unsigned int reg, unsigned int bits) argument 1778 regmap_clear_bits(struct regmap *map, unsigned int reg, unsigned int bits) argument 1785 regmap_test_bits(struct regmap *map, unsigned int reg, unsigned int bits) argument 1809 regmap_update_bits(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val) argument 1816 regmap_update_bits_async(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val) argument 1823 regmap_update_bits_check(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val, bool *change) argument 1832 regmap_update_bits_check_async(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val, bool *change) argument 1840 regmap_write_bits(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val) argument 1927 regmap_get_val_bytes(struct regmap *map) argument 1933 regmap_get_max_register(struct regmap *map) argument 1939 regmap_get_reg_stride(struct regmap *map) argument 1945 regmap_might_sleep(struct regmap *map) argument 1951 regcache_sync(struct regmap *map) argument 1957 regcache_sync_region(struct regmap *map, unsigned int min, unsigned int max) argument 1964 regcache_drop_region(struct regmap *map, unsigned int min, unsigned int max) argument 1971 regcache_cache_only(struct regmap *map, bool enable) argument 1976 regcache_cache_bypass(struct regmap *map, bool enable) argument 1981 regcache_mark_dirty(struct regmap *map) argument 1986 regmap_async_complete(struct regmap *map) argument 1991 regmap_register_patch(struct regmap *map, const struct reg_sequence *regs, int num_regs) argument 1999 regmap_parse_val(struct regmap *map, const void *buf, unsigned int *val) argument 2012 regmap_get_device(struct regmap *map) argument [all...] |
/linux-master/drivers/gpu/drm/gma500/ |
H A D | oaktrail_crtc.c | 223 const struct psb_offset *map = &dev_priv->regmap[pipe]; local 237 * and on, we should map those modes to DRM_MODE_DPMS_OFF in the CRTC. 245 temp = REG_READ_WITH_AUX(map->dpll, i); 247 REG_WRITE_WITH_AUX(map->dpll, temp, i); 248 REG_READ_WITH_AUX(map->dpll, i); 251 REG_WRITE_WITH_AUX(map->dpll, 253 REG_READ_WITH_AUX(map->dpll, i); 256 REG_WRITE_WITH_AUX(map->dpll, 258 REG_READ_WITH_AUX(map->dpll, i); 264 temp = REG_READ_WITH_AUX(map 369 const struct psb_offset *map = &dev_priv->regmap[pipe]; local 600 const struct psb_offset *map = &dev_priv->regmap[pipe]; local [all...] |
/linux-master/drivers/video/fbdev/ |
H A D | macmodes.c | 224 const struct mode_map *map; local 226 for (map = mac_modes; map->vmode != -1; map++) 227 if (map->vmode == vmode) { 228 mode = map->mode; 306 const struct mode_map *map; local 321 for (map = mac_modes; map->vmode != -1; map 369 const struct monitor_map *map; local [all...] |
/linux-master/drivers/net/wireless/realtek/rtl818x/rtl8180/ |
H A D | rtl8225.c | 31 reg80 = rtl818x_ioread16(priv, &priv->map->RFPinsOutput) & 0xfff3; 32 reg82 = rtl818x_ioread16(priv, &priv->map->RFPinsEnable); 34 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, reg82 | 0x7); 36 reg84 = rtl818x_ioread16(priv, &priv->map->RFPinsSelect); 37 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84 | 0x7 | 0x400); 38 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); 41 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80 | (1 << 2)); 42 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); 44 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80); 45 rtl818x_ioread8(priv, &priv->map [all...] |
/linux-master/arch/sparc/lib/ |
H A D | bitext.c | 19 * bit_map_string_get - find and set a bit string in bit map. 20 * @t: the bit map. 24 * Returns offset in the map or -1 if out of space. 60 off_new = find_next_zero_bit(t->map, t->size, offset); 81 while (test_bit(offset + i, t->map) == 0) { 84 bitmap_set(t->map, offset, len); 87 (t->map, t->size, 111 if (test_bit(offset + i, t->map) == 0) 113 __clear_bit(offset + i, t->map); 121 void bit_map_init(struct bit_map *t, unsigned long *map, in argument [all...] |
/linux-master/drivers/leds/ |
H A D | leds-max77650.c | 37 struct regmap *map; member in struct:max77650_led 60 return regmap_update_bits(led->map, led->regA, mask, val); 68 struct regmap *map; local 79 map = dev_get_regmap(dev->parent, NULL); 80 if (!map) 97 led->map = map; 113 rv = regmap_write(map, led->regA, MAX77650_LED_A_DEFAULT); 117 rv = regmap_write(map, led->regB, MAX77650_LED_B_DEFAULT); 122 return regmap_write(map, [all...] |
/linux-master/drivers/clk/meson/ |
H A D | clk-phase.c | 43 val = meson_parm_read(clk->map, &phase->ph); 55 meson_parm_write(clk->map, &phase->ph, val); 88 val = meson_parm_read(clk->map, &tph->ph0); 89 meson_parm_write(clk->map, &tph->ph1, val); 90 meson_parm_write(clk->map, &tph->ph2, val); 102 val = meson_parm_read(clk->map, &tph->ph0); 114 meson_parm_write(clk->map, &tph->ph0, val); 115 meson_parm_write(clk->map, &tph->ph1, val); 116 meson_parm_write(clk->map, &tph->ph2, val); 147 val = meson_parm_read(clk->map, [all...] |
/linux-master/drivers/mtd/maps/ |
H A D | plat-ram.c | 8 * Generic platform device based RAM map 21 #include <linux/mtd/map.h> 32 struct map_info map; member in struct:platram_info 124 info->map.virt = devm_platform_get_and_ioremap_resource(pdev, 0, &res); 125 if (IS_ERR(info->map.virt)) { 126 err = PTR_ERR(info->map.virt); 133 /* setup map parameters */ 135 info->map.phys = res->start; 136 info->map.size = resource_size(res); 137 info->map [all...] |
/linux-master/fs/xfs/scrub/ |
H A D | rtbitmap_repair.c | 58 struct xfs_bmbt_irec map; local 71 error = xfs_bmapi_read(sc->ip, off, len - off, &map, &nmaps, 84 if (xfs_bmap_is_written_extent(&map) || 85 map.br_startblock == HOLESTARTBLOCK) { 86 off = map.br_startoff + map.br_blockcount; 94 if (map.br_startblock == DELAYSTARTBLOCK) 98 if (map.br_state != XFS_EXT_UNWRITTEN) { 99 ASSERT(map.br_state == XFS_EXT_UNWRITTEN); 105 error = xfs_bmapi_write(sc->tp, sc->ip, map [all...] |
/linux-master/drivers/mtd/lpddr/ |
H A D | lpddr_cmds.c | 31 static int get_chip(struct map_info *map, struct flchip *chip, int mode); 32 static int chip_ready(struct map_info *map, struct flchip *chip, int mode); 33 static void put_chip(struct map_info *map, struct flchip *chip); 35 struct mtd_info *lpddr_cmdset(struct map_info *map) argument 37 struct lpddr_private *lpddr = map->fldrv_priv; 47 mtd->priv = map; 60 if (map_is_linear(map)) { 125 static int wait_for_ready(struct map_info *map, struct flchip *chip, argument 141 dsr = CMDVAL(map_read(map, map 198 get_chip(struct map_info *map, struct flchip *chip, int mode) argument 294 chip_ready(struct map_info *map, struct flchip *chip, int mode) argument 348 put_chip(struct map_info *map, struct flchip *chip) argument 403 do_write_buffer(struct map_info *map, struct flchip *chip, unsigned long adr, const struct kvec **pvec, unsigned long *pvec_seek, int len) argument 483 struct map_info *map = mtd->priv; local 511 struct map_info *map = mtd->priv; local 535 struct map_info *map = mtd->priv; local 587 struct map_info *map = mtd->priv; local 645 struct map_info *map = mtd->priv; local 693 struct map_info *map = mtd->priv; local 716 struct map_info *map = mtd->priv; local [all...] |
/linux-master/tools/build/ |
H A D | fixdep.c | 47 static void parse_dep_file(void *map, size_t len) argument 49 char *m = map; 125 void *map; local 143 map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); 144 if ((long) map == -1) { 150 parse_dep_file(map, st.st_size); 152 munmap(map, st.st_size);
|
/linux-master/drivers/mtd/chips/ |
H A D | map_absent.c | 6 * This map driver is used to allocate "placeholder" MTD 28 #include <linux/mtd/map.h> 34 static struct mtd_info *map_absent_probe(struct map_info *map); 45 static struct mtd_info *map_absent_probe(struct map_info *map) argument 54 map->fldrv = &map_absent_chipdrv; 55 mtd->priv = map; 56 mtd->name = map->name; 58 mtd->size = map->size;
|
H A D | chipreg.c | 12 #include <linux/mtd/map.h> 55 struct mtd_info *do_map_probe(const char *name, struct map_info *map) argument 68 ret = drv->probe(map); 80 * Destroy an MTD device which was created for a map device. 85 struct map_info *map = mtd->priv; local 87 if (map->fldrv->destroy) 88 map->fldrv->destroy(mtd); 90 module_put(map->fldrv->module);
|
/linux-master/sound/soc/meson/ |
H A D | axg-spdifout.c | 60 struct regmap *map; member in struct:axg_spdifout 65 static void axg_spdifout_enable(struct regmap *map) argument 68 regmap_update_bits(map, SPDIFOUT_CTRL0, 73 regmap_update_bits(map, SPDIFOUT_CTRL0, 75 regmap_update_bits(map, SPDIFOUT_CTRL0, 79 regmap_update_bits(map, SPDIFOUT_CTRL0, SPDIFOUT_CTRL0_EN, 83 static void axg_spdifout_disable(struct regmap *map) argument 85 regmap_update_bits(map, SPDIFOUT_CTRL0, SPDIFOUT_CTRL0_EN, 0); 97 axg_spdifout_enable(priv->map); 103 axg_spdifout_disable(priv->map); [all...] |
/linux-master/drivers/pinctrl/ |
H A D | pinctrl-lantiq.c | 48 struct pinctrl_map *map, unsigned num_maps) 53 if (map[i].type == PIN_MAP_TYPE_CONFIGS_PIN || 54 map[i].type == PIN_MAP_TYPE_CONFIGS_GROUP) 55 kfree(map[i].data.configs.configs); 56 kfree(map); 68 struct pinctrl_map **map) 95 (*map)->type = PIN_MAP_TYPE_MUX_GROUP; 96 (*map)->name = function; 97 (*map)->data.mux.group = group; 98 (*map) 47 ltq_pinctrl_dt_free_map(struct pinctrl_dev *pctldev, struct pinctrl_map *map, unsigned num_maps) argument 66 ltq_pinctrl_dt_subnode_to_map(struct pinctrl_dev *pctldev, struct device_node *np, struct pinctrl_map **map) argument 148 ltq_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev, struct device_node *np_config, struct pinctrl_map **map, unsigned *num_maps) argument [all...] |