| /OK3568_Linux_fs/kernel/drivers/base/regmap/ |
| H A D | regcache.c | 26 static int regcache_hw_init(struct regmap *map) in regcache_hw_init() argument 34 if (!map->num_reg_defaults_raw) in regcache_hw_init() 38 for (count = 0, i = 0; i < map->num_reg_defaults_raw; i++) in regcache_hw_init() 39 if (regmap_readable(map, i * map->reg_stride) && in regcache_hw_init() 40 !regmap_volatile(map, i * map->reg_stride)) in regcache_hw_init() 45 map->cache_bypass = true; in regcache_hw_init() 49 map->num_reg_defaults = count; in regcache_hw_init() 50 map->reg_defaults = kmalloc_array(count, sizeof(struct reg_default), in regcache_hw_init() 52 if (!map->reg_defaults) in regcache_hw_init() 55 if (!map->reg_defaults_raw) { in regcache_hw_init() [all …]
|
| H A D | regmap.c | 3 // Register map access API 36 static inline bool regmap_should_log(struct regmap *map) in regmap_should_log() argument 38 return (map->dev && strcmp(dev_name(map->dev), LOG_DEVICE) == 0); in regmap_should_log() 41 static inline bool regmap_should_log(struct regmap *map) { return false; } in regmap_should_log() argument 45 static int _regmap_update_bits(struct regmap *map, unsigned int reg, 74 bool regmap_check_range_table(struct regmap *map, unsigned int reg, in regmap_check_range_table() argument 90 bool regmap_writeable(struct regmap *map, unsigned int reg) in regmap_writeable() argument 92 if (map->max_register && reg > map->max_register) in regmap_writeable() 95 if (map->writeable_reg) in regmap_writeable() 96 return map->writeable_reg(map->dev, reg); in regmap_writeable() [all …]
|
| H A D | regmap-debugfs.c | 3 // Register map access API - debugfs 19 struct regmap *map; member 38 struct regmap *map = file->private_data; in regmap_name_read_file() local 47 if (map->dev && map->dev->driver) in regmap_name_read_file() 48 name = map->dev->driver->name; in regmap_name_read_file() 67 static void regmap_debugfs_free_dump_cache(struct regmap *map) in regmap_debugfs_free_dump_cache() argument 71 while (!list_empty(&map->debugfs_off_cache)) { in regmap_debugfs_free_dump_cache() 72 c = list_first_entry(&map->debugfs_off_cache, in regmap_debugfs_free_dump_cache() 80 static bool regmap_printable(struct regmap *map, unsigned int reg) in regmap_printable() argument 82 if (regmap_precious(map, reg)) in regmap_printable() [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/util/ |
| H A D | map.c | 13 #include "map.h" 28 static void __maps__insert(struct maps *maps, struct map *map); 116 void map__init(struct map *map, u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init() argument 118 map->start = start; in map__init() 119 map->end = end; in map__init() 120 map->pgoff = pgoff; in map__init() 121 map->reloc = 0; in map__init() 122 map->dso = dso__get(dso); in map__init() 123 map->map_ip = map__map_ip; in map__init() 124 map->unmap_ip = map__unmap_ip; in map__init() [all …]
|
| H A D | map.h | 18 struct map { struct 32 u64 (*map_ip)(struct map *, u64); argument 34 u64 (*unmap_ip)(struct map *, u64); argument 43 struct kmap *__map__kmap(struct map *map); argument 44 struct kmap *map__kmap(struct map *map); 45 struct maps *map__kmaps(struct map *map); 47 static inline u64 map__map_ip(struct map *map, u64 ip) in map__map_ip() argument 49 return ip - map->start + map->pgoff; in map__map_ip() 52 static inline u64 map__unmap_ip(struct map *map, u64 ip) in map__unmap_ip() argument 54 return ip + map->start - map->pgoff; in map__unmap_ip() [all …]
|
| H A D | hashmap.c | 4 * Generic non-thread safe hash map implementation. 38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init() argument 41 map->hash_fn = hash_fn; in hashmap__init() 42 map->equal_fn = equal_fn; in hashmap__init() 43 map->ctx = ctx; in hashmap__init() 45 map->buckets = NULL; in hashmap__init() 46 map->cap = 0; in hashmap__init() 47 map->cap_bits = 0; in hashmap__init() 48 map->sz = 0; in hashmap__init() 55 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new() local [all …]
|
| H A D | mmap.c | 39 size_t mmap__mmap_len(struct mmap *map) in mmap__mmap_len() argument 41 return perf_mmap__mmap_len(&map->core); in mmap__mmap_len() 71 static int perf_mmap__aio_enabled(struct mmap *map) in perf_mmap__aio_enabled() argument 73 return map->aio.nr_cblocks > 0; in perf_mmap__aio_enabled() 77 static int perf_mmap__aio_alloc(struct mmap *map, int idx) in perf_mmap__aio_alloc() argument 79 map->aio.data[idx] = mmap(NULL, mmap__mmap_len(map), PROT_READ|PROT_WRITE, in perf_mmap__aio_alloc() 81 if (map->aio.data[idx] == MAP_FAILED) { in perf_mmap__aio_alloc() 82 map->aio.data[idx] = NULL; in perf_mmap__aio_alloc() 89 static void perf_mmap__aio_free(struct mmap *map, int idx) in perf_mmap__aio_free() argument 91 if (map->aio.data[idx]) { in perf_mmap__aio_free() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/declarative_ui/ |
| H A D | tst_map_pinch.qml.QTBUG-47970 | 58 Map { 59 id: map 72 map.lastPinchEvent = pinch; 73 map.startPinchPoint1= pinch.point1; 74 map.startPinchPoint2= pinch.point2; 78 gesture.onPinchUpdated: map.lastPinchEvent = pinch; 81 map.lastPinchEvent = pinch; 82 map.endPinchPoint1 = pinch.point1; 83 map.endPinchPoint2 = pinch.point2; 92 SignalSpy {id: centerSpy; target: map; signalName: 'centerChanged'} [all …]
|
| H A D | tst_map_maptype.qml | 40 Map { id: map; anchors.fill: parent } 41 SignalSpy { id: supportedMapTypesSpy; target: map; signalName: "supportedMapTypesChanged" } 42 SignalSpy { id: activeMapTypeChangedSpy; target: map; signalName: "activeMapTypeChanged" } 43 SignalSpy { id: minimumZoomLevelChangedSpy; target: map; signalName: "minimumZoomLevelChanged" } 44 SignalSpy { id: maximumZoomLevelChangedSpy; target: map; signalName: "maximumZoomLevelChanged" } 45 SignalSpy { id: minimumTiltChangedSpy; target: map; signalName: "minimumTiltChanged" } 46 SignalSpy { id: maximumTiltChangedSpy; target: map; signalName: "maximumTiltChanged" } 47 …SignalSpy { id: minimumFieldOfViewChangedSpy; target: map; signalName: "minimumFieldOfViewChanged"… 48 …SignalSpy { id: maximumFieldOfViewChangedSpy; target: map; signalName: "maximumFieldOfViewChanged"… 57 compare(map.supportedMapTypes.length, 0) [all …]
|
| H A D | tst_map.qml | 77 && map.mapReady 84 Map { id: mapZoomOnCompleted; width: 200; height: 200; 92 Map { id: mapZoomDefault; width: 200; height: 200; 95 Map { id: mapZoomUserInit; width: 210; height: 210; 102 Map { id: mapVisibleRegion; width: 800; height: 600; 105 Map {id: map; plugin: testPlugin; center: coordinate1; width: 100; height: 100} 106 SignalSpy {id: mapCenterSpy; target: map; signalName: 'centerChanged'} 108 Map {id: mapPar; plugin: testPlugin; center: coordinate1; width: 512; height: 512} 110 Map {id: coordinateMap; plugin: testPlugin; center: coordinate3; 113 Map {id: mapTiltBearing; plugin: testPlugin; center: coordinate1; [all …]
|
| H A D | tst_map_flick.qml | 50 Map { 51 id: map 67 map.gesture.acceptedGestures = MapGestureArea.NoGesture 69 map.gesture.enabled = false 72 flickStartedLatitude = map.center.latitude 73 flickStartedLatitude = map.center.longitude 75 map.gesture.acceptedGestures = MapGestureArea.NoGesture 77 map.gesture.enabled = false 86 SignalSpy {id: centerSpy; target: map; signalName: 'centerChanged'} 87 SignalSpy {id: panStartedSpy; target: map.gesture; signalName: 'panStarted'} [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/mtd/ |
| H A D | map.h | 22 #define map_bankwidth(map) 1 argument 23 #define map_bankwidth_is_1(map) (map_bankwidth(map) == 1) argument 24 #define map_bankwidth_is_large(map) (0) argument 25 #define map_words(map) (1) argument 28 #define map_bankwidth_is_1(map) (0) argument 34 # define map_bankwidth(map) ((map)->bankwidth) argument 36 # define map_bankwidth(map) 2 argument 37 # define map_bankwidth_is_large(map) (0) argument 38 # define map_words(map) (1) argument 40 #define map_bankwidth_is_2(map) (map_bankwidth(map) == 2) argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/maps/ |
| H A D | pci.c | 7 * Generic PCI memory map driver. We support the following boards: 17 #include <linux/mtd/map.h> 23 int (*init)(struct pci_dev *dev, struct map_pci_info *map); 24 void (*exit)(struct pci_dev *dev, struct map_pci_info *map); 25 unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs); 30 struct map_info map; member 32 void (*exit)(struct pci_dev *dev, struct map_pci_info *map); 33 unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs); 39 struct map_pci_info *map = (struct map_pci_info *)_map; in mtd_pci_read8() local 41 val.x[0]= readb(map->base + map->translate(map, ofs)); in mtd_pci_read8() [all …]
|
| H A D | amd76xrom.c | 15 #include <linux/mtd/map.h> 42 struct map_info map; member 71 struct amd76xrom_map_info *map, *scratch; in amd76xrom_cleanup() local 82 list_for_each_entry_safe(map, scratch, &window->maps, list) { in amd76xrom_cleanup() 83 if (map->rsrc.parent) { in amd76xrom_cleanup() 84 release_resource(&map->rsrc); in amd76xrom_cleanup() 86 mtd_device_unregister(map->mtd); in amd76xrom_cleanup() 87 map_destroy(map->mtd); in amd76xrom_cleanup() 88 list_del(&map->list); in amd76xrom_cleanup() 89 kfree(map); in amd76xrom_cleanup() [all …]
|
| H A D | ichxrom.c | 15 #include <linux/mtd/map.h> 47 struct map_info map; member 59 struct ichxrom_map_info *map, *scratch; in ichxrom_cleanup() local 70 list_for_each_entry_safe(map, scratch, &window->maps, list) { in ichxrom_cleanup() 71 if (map->rsrc.parent) in ichxrom_cleanup() 72 release_resource(&map->rsrc); in ichxrom_cleanup() 73 mtd_device_unregister(map->mtd); in ichxrom_cleanup() 74 map_destroy(map->mtd); in ichxrom_cleanup() 75 list_del(&map->list); in ichxrom_cleanup() 76 kfree(map); in ichxrom_cleanup() [all …]
|
| /OK3568_Linux_fs/kernel/net/sctp/ |
| H A D | tsnmap.c | 29 static void sctp_tsnmap_update(struct sctp_tsnmap *map); 30 static void sctp_tsnmap_find_gap_ack(unsigned long *map, __u16 off, 32 static int sctp_tsnmap_grow(struct sctp_tsnmap *map, u16 size); 35 struct sctp_tsnmap *sctp_tsnmap_init(struct sctp_tsnmap *map, __u16 len, in sctp_tsnmap_init() argument 38 if (!map->tsn_map) { in sctp_tsnmap_init() 39 map->tsn_map = kzalloc(len>>3, gfp); in sctp_tsnmap_init() 40 if (map->tsn_map == NULL) in sctp_tsnmap_init() 43 map->len = len; in sctp_tsnmap_init() 45 bitmap_zero(map->tsn_map, map->len); in sctp_tsnmap_init() 49 map->base_tsn = initial_tsn; in sctp_tsnmap_init() [all …]
|
| /OK3568_Linux_fs/external/xserver/xkb/ |
| H A D | XKBMAlloc.c | 46 XkbClientMapPtr map; in XkbAllocClientMap() local 60 if (xkb->map == NULL) { in XkbAllocClientMap() 61 map = calloc(1, sizeof(XkbClientMapRec)); in XkbAllocClientMap() 62 if (map == NULL) in XkbAllocClientMap() 64 xkb->map = map; in XkbAllocClientMap() 67 map = xkb->map; in XkbAllocClientMap() 70 if (map->types == NULL) { in XkbAllocClientMap() 71 map->types = calloc(nTotalTypes, sizeof(XkbKeyTypeRec)); in XkbAllocClientMap() 72 if (map->types == NULL) in XkbAllocClientMap() 74 map->num_types = 0; in XkbAllocClientMap() [all …]
|
| /OK3568_Linux_fs/kernel/tools/lib/bpf/ |
| H A D | hashmap.c | 4 * Generic non-thread safe hash map implementation. 38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init() argument 41 map->hash_fn = hash_fn; in hashmap__init() 42 map->equal_fn = equal_fn; in hashmap__init() 43 map->ctx = ctx; in hashmap__init() 45 map->buckets = NULL; in hashmap__init() 46 map->cap = 0; in hashmap__init() 47 map->cap_bits = 0; in hashmap__init() 48 map->sz = 0; in hashmap__init() 55 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new() local [all …]
|
| /OK3568_Linux_fs/kernel/tools/lib/perf/ |
| H A D | mmap.c | 16 void perf_mmap__init(struct perf_mmap *map, struct perf_mmap *prev, in perf_mmap__init() argument 19 map->fd = -1; in perf_mmap__init() 20 map->overwrite = overwrite; in perf_mmap__init() 21 map->unmap_cb = unmap_cb; in perf_mmap__init() 22 refcount_set(&map->refcnt, 0); in perf_mmap__init() 24 prev->next = map; in perf_mmap__init() 27 size_t perf_mmap__mmap_len(struct perf_mmap *map) in perf_mmap__mmap_len() argument 29 return map->mask + 1 + page_size; in perf_mmap__mmap_len() 32 int perf_mmap__mmap(struct perf_mmap *map, struct perf_mmap_param *mp, in perf_mmap__mmap() argument 35 map->prev = 0; in perf_mmap__mmap() [all …]
|
| /OK3568_Linux_fs/kernel/tools/bpf/bpftool/Documentation/ |
| H A D | bpftool-map.rst | 2 bpftool-map 13 **bpftool** [*OPTIONS*] **map** *COMMAND* 21 MAP COMMANDS 24 | **bpftool** **map** { **show** | **list** } [*MAP*] 25 | **bpftool** **map create** *FILE* **type** *TYPE* **key** *KEY_SIZE* **value** *VALUE_SIZE* \ 26 | **entries** *MAX_ENTRIES* **name** *NAME* [**flags** *FLAGS*] [**inner_map** *MAP*] \ 28 | **bpftool** **map dump** *MAP* 29 | **bpftool** **map update** *MAP* [**key** *DATA*] [**value** *VALUE*] [*UPDATE_FLAGS*] 30 | **bpftool** **map lookup** *MAP* [**key** *DATA*] 31 | **bpftool** **map getnext** *MAP* [**key** *DATA*] [all …]
|
| /OK3568_Linux_fs/kernel/kernel/bpf/ |
| H A D | local_storage.c | 23 struct bpf_map map; member 30 static struct bpf_cgroup_storage_map *map_to_storage(struct bpf_map *map) in map_to_storage() argument 32 return container_of(map, struct bpf_cgroup_storage_map, map); in map_to_storage() 35 static bool attach_type_isolated(const struct bpf_map *map) in attach_type_isolated() argument 37 return map->key_size == sizeof(struct bpf_cgroup_storage_key); in attach_type_isolated() 40 static int bpf_cgroup_storage_key_cmp(const struct bpf_cgroup_storage_map *map, in bpf_cgroup_storage_key_cmp() argument 43 if (attach_type_isolated(&map->map)) { in bpf_cgroup_storage_key_cmp() 68 cgroup_storage_lookup(struct bpf_cgroup_storage_map *map, in cgroup_storage_lookup() argument 71 struct rb_root *root = &map->root; in cgroup_storage_lookup() 75 spin_lock_bh(&map->lock); in cgroup_storage_lookup() [all …]
|
| H A D | arraymap.c | 25 for (i = 0; i < array->map.max_entries; i++) { in bpf_array_free_percpu() 36 for (i = 0; i < array->map.max_entries; i++) { in bpf_array_alloc_percpu() 138 /* allocate all map elements and zero-initialize them */ in array_map_alloc() 158 array->map.bypass_spec_v1 = bypass_spec_v1; in array_map_alloc() 160 /* copy mandatory map attributes */ in array_map_alloc() 161 bpf_map_init_from_attr(&array->map, attr); in array_map_alloc() 162 bpf_map_charge_move(&array->map.memory, &mem); in array_map_alloc() 166 bpf_map_charge_finish(&array->map.memory); in array_map_alloc() 171 return &array->map; in array_map_alloc() 175 static void *array_map_lookup_elem(struct bpf_map *map, void *key) in array_map_lookup_elem() argument [all …]
|
| /OK3568_Linux_fs/kernel/kernel/trace/ |
| H A D | tracing_map.c | 3 * tracing_map - lock-free map for tracing 7 * tracing_map implementation inspired by lock-free map algorithms 37 * tracing_map_add_sum_field() when the tracing map was set up. 51 * call to tracing_map_add_sum_field() when the tracing map was set 69 * tracing_map_add_var() when the tracing map was set up. 84 * when the tracing map was set up. 98 * call to tracing_map_add_var() when the tracing map was set 116 * tracing_map_add_var() when the tracing map was set up. The reset 202 static int tracing_map_add_field(struct tracing_map *map, in tracing_map_add_field() argument 207 if (map->n_fields < TRACING_MAP_FIELDS_MAX) { in tracing_map_add_field() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/xen/ |
| H A D | gntdev.c | 67 static void unmap_grant_pages(struct gntdev_grant_map *map, 83 struct gntdev_grant_map *map; in gntdev_print_maps() local 86 list_for_each_entry(map, &priv->maps, next) in gntdev_print_maps() 88 map->index, map->count, in gntdev_print_maps() 89 map->index == text_index && text ? text : ""); in gntdev_print_maps() 93 static void gntdev_free_map(struct gntdev_grant_map *map) in gntdev_free_map() argument 95 if (map == NULL) in gntdev_free_map() 99 if (map->dma_vaddr) { in gntdev_free_map() 102 args.dev = map->dma_dev; in gntdev_free_map() 103 args.coherent = !!(map->dma_flags & GNTDEV_DMA_FLAG_COHERENT); in gntdev_free_map() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/lpddr/ |
| H A D | qinfo_probe.c | 16 #include <linux/mtd/map.h> 20 static int lpddr_chip_setup(struct map_info *map, struct lpddr_private *lpddr); 21 struct mtd_info *lpddr_probe(struct map_info *map); 22 static struct lpddr_private *lpddr_probe_chip(struct map_info *map); 23 static int lpddr_pfow_present(struct map_info *map, 44 static long lpddr_get_qinforec_pos(struct map_info *map, char *id_str) in lpddr_get_qinforec_pos() argument 48 int bankwidth = map_bankwidth(map) * 8; in lpddr_get_qinforec_pos() 58 printk(KERN_ERR"%s qinfo id string is wrong! \n", map->name); in lpddr_get_qinforec_pos() 63 static uint16_t lpddr_info_query(struct map_info *map, char *id_str) in lpddr_info_query() argument 66 int bits_per_chip = map_bankwidth(map) * 8; in lpddr_info_query() [all …]
|