Home
last modified time | relevance | path

Searched refs:mapping (Results 1 – 5 of 5) sorted by relevance

/system/extras/librank/
Dlibrank.c128 struct mapping_info *mapping; in get_mapping() local
138 2 * library->mappings_size * sizeof(struct mapping*)); in get_mapping()
146 mapping = calloc(1, sizeof(*mapping)); in get_mapping()
147 if (!mapping) { in get_mapping()
151 mapping->proc = proc; in get_mapping()
152 pm_memusage_zero(&mapping->usage); in get_mapping()
154 library->mappings[library->mappings_count++] = mapping; in get_mapping()
156 return mapping; in get_mapping()
/system/core/fastbootd/commands/
Dpartitions.c76 int gpt_mmap(struct GPT_mapping *mapping, uint64_t location, int size, int fd) in gpt_mmap() argument
80 mapping->size = ALIGN(size + location_diff, PAGE_SIZE); in gpt_mmap()
89mapping->map_ptr = mmap64(NULL, mapping->size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, location); in gpt_mmap()
91 if (mapping->map_ptr == MAP_FAILED) { in gpt_mmap()
92 mapping->ptr = MAP_FAILED; in gpt_mmap()
97 mapping->ptr = (void *)((char *) mapping->map_ptr + location_diff); in gpt_mmap()
101 void gpt_unmap(struct GPT_mapping *mapping) { in gpt_unmap() argument
102 munmap(mapping->map_ptr, mapping->size); in gpt_unmap()
166 struct GPT_mapping mapping; in GPT_map() local
169 if (gpt_mmap(&mapping, LBA_ADDR(table, header_lba), table->sector_size, table->fd)) { in GPT_map()
[all …]
Dpartitions.h136 int gpt_mmap(struct GPT_mapping *mapping, uint64_t location, int size, int fd);
138 void gpt_unmap(struct GPT_mapping *mapping);
/system/media/camera/docs/
Dmetadata_helpers.py348 mapping = {
357 return mapping.get(type_name, type_name)
390 mapping = {
399 base_type = mapping[metadata_type]
462 mapping = {
472 return mapping[what]
/system/core/libutils/
DREADME168 Resource ID mapping
174 an overlay package. To translate between the two, a resource ID mapping
177 mapping is stored in /data/resource-cache, with a @idmap file name