Home
last modified time | relevance | path

Searched refs:maplen (Results 1 – 4 of 4) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/android/ion/
Dionutils.c50 unsigned long maplen; in ion_export_buffer_fd() local
108 maplen = alloc_data.len; in ion_export_buffer_fd()
110 if (buffer_fd < 0 || maplen <= 0) { in ion_export_buffer_fd()
112 __func__, buffer_fd, maplen); in ion_export_buffer_fd()
117 map_buffer = (unsigned char *)mmap(NULL, maplen, PROT_READ|PROT_WRITE, in ion_export_buffer_fd()
128 ion_info->buflen = maplen; in ion_export_buffer_fd()
132 munmap(map_buffer, maplen); in ion_export_buffer_fd()
/external/libjpeg-turbo/
Drdtarga.c344 unsigned int width, height, maplen; in start_input_tga() local
360 maplen = GET_2B(5); in start_input_tga()
454 if (maplen > 0) { in start_input_tga()
455 if (maplen > 256 || GET_2B(3) != 0) in start_input_tga()
459 ((j_common_ptr)cinfo, JPOOL_IMAGE, (JDIMENSION)maplen, (JDIMENSION)3); in start_input_tga()
460 source->cmap_length = (int)maplen; in start_input_tga()
462 read_colormap(source, (int)maplen, UCH(targaheader[7])); in start_input_tga()
/external/python/cpython2/Objects/
Dunicodeobject.c4133 Py_ssize_t maplen = 0; in PyUnicode_DecodeCharmap() local
4148 maplen = PyUnicode_GET_SIZE(mapping); in PyUnicode_DecodeCharmap()
4153 if (ch < maplen) in PyUnicode_DecodeCharmap()
/external/python/cpython3/Objects/
Dunicodeobject.c7810 Py_ssize_t maplen; in charmap_decode_string() local
7819 maplen = PyUnicode_GET_LENGTH(mapping); in charmap_decode_string()
7825 if (mapkind == PyUnicode_1BYTE_KIND && maplen >= 256) { in charmap_decode_string()
7851 if (mapkind == PyUnicode_2BYTE_KIND && maplen >= 256) { in charmap_decode_string()
7884 if (ch < maplen) in charmap_decode_string()