Searched defs:mem (Results 1 - 25 of 345) sorted by last modified time

1234567891011>>

/external/yaffs2/yaffs2/
H A Dyaffs_guts.c602 __u8 *mem; local
617 mem = (__u8 *)newTnodes;
642 curr = (yaffs_Tnode *) &mem[i * tnodeSize];
643 next = (yaffs_Tnode *) &mem[(i+1) * tnodeSize];
647 curr = (yaffs_Tnode *) &mem[(nTnodes - 1) * tnodeSize];
649 dev->freeTnodes = (yaffs_Tnode *)mem;
/external/zlib/src/examples/
H A Denough.c152 Each element in the array is further indexed by the (mem, rem) doublet,
153 where mem is the amount of inflate table space used so far, and rem is the
156 not. Since the ranges for mem and rem are not known a priori, each bit
158 states. mem and rem are used to calculate a single index in a triangular
159 array. Since the range of mem is expected in the default case to be about
161 memory usage, with eight times the range for mem than for rem. See the
256 has a variable size bit vector indexed by (mem,rem). The bit vector is
257 lengthened if needed to allow setting the (mem,rem) bit. */
258 local int beenhere(int syms, int len, int left, int mem, int rem) argument
266 /* point to vector for (syms,left,len), bit in vector for (mem,re
322 examine(int syms, int len, int left, int mem, int rem) argument
[all...]
/external/zlib/src/test/
H A Dinfcover.c71 local void *mem_alloc(void *mem, unsigned count, unsigned size) argument
75 struct mem_zone *zone = mem;
112 local void mem_free(void *mem, void *ptr) argument
115 struct mem_zone *zone = mem;
/external/wpa_supplicant_8/hostapd/src/wps/
H A Dwps_upnp.c309 char *mem; local
392 mem = (char *) (a + 1);
393 a->domain_and_port = mem;
394 os_memcpy(mem, host, host_len);
395 mem += host_len + 1;
396 a->path = mem;
398 *mem++ = '/';
400 os_memcpy(mem, path, path_len);
/external/wpa_supplicant_8/hs20/client/
H A Dest.c485 BIO *mem = BIO_new(BIO_s_mem()); local
490 if (mem == NULL)
492 if (!PEM_write_bio_X509_REQ(mem, req)) {
493 BIO_free(mem);
497 BIO_get_mem_ptr(mem, &ptr);
505 BIO_free(mem);
516 BIO_free(mem);
522 BIO_free(mem);
/external/wpa_supplicant_8/src/wps/
H A Dwps_upnp.c309 char *mem; local
392 mem = (char *) (a + 1);
393 a->domain_and_port = mem;
394 os_memcpy(mem, host, host_len);
395 mem += host_len + 1;
396 a->path = mem;
398 *mem++ = '/';
400 os_memcpy(mem, path, path_len);
/external/wpa_supplicant_8/wpa_supplicant/src/wps/
H A Dwps_upnp.c309 char *mem; local
392 mem = (char *) (a + 1);
393 a->domain_and_port = mem;
394 os_memcpy(mem, host, host_len);
395 mem += host_len + 1;
396 a->path = mem;
398 *mem++ = '/';
400 os_memcpy(mem, path, path_len);
/external/valgrind/main/none/tests/mips64/
H A Dload_store_multiple.c3 unsigned int mem[] = { variable
44 : "r" (mem), "r" (RTval) \
164 ppMem1(mem, 16);
191 ppMem1(mem, 16);
218 ppMem1(mem, 16);
245 ppMem1(mem, 16);
272 ppMem1(mem, 16);
299 ppMem1(mem, 16);
326 ppMem1(mem, 16);
H A Dunaligned_load_store.c2 unsigned int mem[] = { variable
12 printf("mem[%d]: 0x%x\n", i, mem[i]);
32 : "r" (mem)
37 mem[0] = 0xaabbccdd;
38 mem[1] = 0x11223344;
39 mem[2] = 0x01823194;
40 mem[3] = 0x01823a08;
41 mem[4] = 0x00000000;
42 mem[
[all...]
/external/valgrind/main/perf/
H A Dmany-loss-records.c58 void free_chunks (struct Chunk ** mem) argument
60 if (*mem == 0)
63 free_chunks ((&(*mem)->child));
66 free (*mem);
67 *mem = 0;
70 void release (struct Chunk ** mem) argument
76 *mem = 0; // lose the pointer without free-ing the blocks
78 free_chunks (mem);
/external/webp/include/webp/
H A Dencode.h225 uint8_t* mem; // final buffer (of size 'max_size', larger than 'size'). member in struct:WebPMemoryWriter
235 // The following must be called to deallocate writer->mem memory. The 'writer'
240 // completion, writer.mem and writer.size will hold the coded data.
242 // writer.mem must be freed by calling WebPMemoryWriterClear.
244 // writer.mem must be freed by calling 'free(writer.mem)'.
/external/webp/src/dec/
H A Dframe.c558 uint8_t* mem; local
573 mem = (uint8_t*)dec->mem_;
574 dec->intra_t_ = (uint8_t*)mem;
575 mem += intra_pred_mode_size;
577 dec->yuv_t_ = (VP8TopSamples*)mem;
578 mem += top_size;
580 dec->mb_info_ = ((VP8MB*)mem) + 1;
581 mem += mb_info_size;
583 dec->f_info_ = f_info_size ? (VP8FInfo*)mem : NULL;
584 mem
[all...]
H A Didec.c89 static WEBP_INLINE size_t MemDataSize(const MemBuffer* mem) { argument
90 return (mem->end_ - mem->start_);
111 MemBuffer* const mem = &idec->mem_; local
112 const uint8_t* const new_base = mem->buf_ + mem->start_;
116 idec->io_.data_size = MemDataSize(mem);
129 if (mem->mode_ == MEM_MODE_MAP) {
134 dec->parts_[last_part].buf_end_ = mem->buf_ + mem
163 MemBuffer* const mem = &idec->mem_; local
201 MemBuffer* const mem = &idec->mem_; local
215 InitMemBuffer(MemBuffer* const mem) argument
223 ClearMemBuffer(MemBuffer* const mem) argument
231 CheckMemBufferMode(MemBuffer* const mem, MemBufferMode expected) argument
288 MemBuffer* const mem = &idec->mem_; local
298 MemBuffer* const mem = &idec->mem_; local
364 MemBuffer* const mem = &idec->mem_; local
[all...]
/external/webp/src/demux/
H A Ddemux.c110 static int RemapMemBuffer(MemBuffer* const mem, argument
112 if (size < mem->buf_size_) return 0; // can't remap to a shorter buffer!
114 mem->buf_ = data;
115 mem->end_ = mem->buf_size_ = size;
119 static int InitMemBuffer(MemBuffer* const mem, argument
121 memset(mem, 0, sizeof(*mem));
122 return RemapMemBuffer(mem, data, size);
125 // Return the remaining data size available in 'mem'
126 MemDataSize(const MemBuffer* const mem) argument
131 SizeIsInvalid(const MemBuffer* const mem, size_t size) argument
135 Skip(MemBuffer* const mem, size_t size) argument
139 Rewind(MemBuffer* const mem, size_t size) argument
143 GetBuffer(MemBuffer* const mem) argument
148 ReadByte(MemBuffer* const mem) argument
154 ReadLE16s(MemBuffer* const mem) argument
161 ReadLE24s(MemBuffer* const mem) argument
168 ReadLE32(MemBuffer* const mem) argument
197 StoreFrame(int frame_num, uint32_t min_size, MemBuffer* const mem, Frame* const frame) argument
285 NewFrame(const MemBuffer* const mem, uint32_t min_size, uint32_t actual_size, Frame** frame) argument
304 MemBuffer* const mem = &dmux->mem_; local
349 MemBuffer* const mem = &dmux->mem_; local
394 ReadHeader(MemBuffer* const mem) argument
421 MemBuffer* const mem = &dmux->mem_; local
467 MemBuffer* const mem = &dmux->mem_; local
563 MemBuffer* const mem = &dmux->mem_; local
695 InitDemux(WebPDemuxer* const dmux, const MemBuffer* const mem) argument
711 MemBuffer mem; local
[all...]
/external/webp/src/enc/
H A Dpicture.c98 uint8_t* mem; local
124 mem = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*mem));
125 if (mem == NULL) {
130 picture->memory_ = (void*)mem;
136 picture->y = mem;
137 mem += y_size;
139 picture->u = mem;
140 mem += uv_size;
141 picture->v = mem;
[all...]
H A Dvp8l.c860 uint32_t* mem = (uint32_t*)WebPSafeMalloc(total_size, sizeof(*mem)); local
861 if (mem == NULL) {
865 enc->argb_ = mem;
866 mem += image_size;
867 enc->argb_scratch_ = mem;
868 mem += argb_scratch_size;
869 enc->transform_data_ = mem;
H A Dwebpenc.c155 uint8_t* mem; local
189 mem = (uint8_t*)WebPSafeMalloc(size, sizeof(*mem));
190 if (mem == NULL) {
194 enc = (VP8Encoder*)mem;
195 mem = (uint8_t*)DO_ALIGN(mem + sizeof(*enc));
201 enc->mb_info_ = (VP8MBInfo*)mem;
202 mem += info_size;
203 enc->preds_ = ((uint8_t*)mem)
[all...]
/external/webp/src/utils/
H A Dquant_levels_dec.c219 uint8_t* mem = (uint8_t*)WebPSafeMalloc(1U, total_size); local
221 if (mem == NULL) return 0;
222 p->mem_ = (void*)mem;
224 p->start_ = (uint16_t*)mem;
229 mem += size_scratch_m;
231 p->average_ = (uint16_t*)mem;
232 mem += size_m;
246 p->correction_ = ((int16_t*)mem) + LUT_SIZE;
/external/valgrind/main/coregrind/m_demangle/
H A Dcp-demangle.c2600 struct demangle_component *mem; local
2624 pmem = d_cv_qualifiers (di, &mem, 1);
2631 if (pmem != &mem && (*pmem)->type != DEMANGLE_COMPONENT_FUNCTION_TYPE)
2633 if (! d_add_substitution (di, mem))
2637 return d_make_comp (di, DEMANGLE_COMPONENT_PTRMEM_TYPE, cl, mem);
/external/valgrind/main/coregrind/
H A Dvgdb.c92 void * mem = malloc(size); local
93 if (mem == NULL)
95 return mem;
100 void * mem = realloc(ptr, size); local
101 if (mem == NULL)
103 return mem;
534 sprintf(shared_mem, "%s-shared-mem-vgdb-%d-by-%s-on-%s", vgdb_prefix,
1109 " -D arg tells to show shared mem status and then exit.\n"
/external/valgrind/main/gdbserver_tests/
H A Dclean_after_fork.c8 int mem = 0, pid; local
11 mem = 1;
19 if (mem == 0)
32 mem = status;
34 if (mem == 0)
35 printf("mem is zero\n");
/external/valgrind/main/memcheck/tests/amd64/
H A Dsse_memory.c91 static void showRM ( char* op, RMArgs* rra, UChar* mem, Int nMem, V128* rmask ) argument
97 printf("%02x", (Int)mem[i]);
120 void r_m_##OP ( RMArgs* p, void* mem ) \
127 : "r" (p), "r" (mem) \
/external/valgrind/main/memcheck/tests/
H A Derr_disable_arange1.c13 volatile int* volatile mem local
15 free((void*)mem);
19 mem[123] = 0;
23 VALGRIND_DISABLE_ADDR_ERROR_REPORTING_IN_RANGE(mem, 1000 * sizeof(int));
27 mem[456] = 0;
31 VALGRIND_ENABLE_ADDR_ERROR_REPORTING_IN_RANGE(&mem[789], 1);
35 mem[789] = 0;
H A Dmempool.c23 char *mem; member in struct:_pool
39 p->where = p->mem = (char *)mmap(NULL, SUPERBLOCK_SIZE,
44 p->where = p->mem = (char *)malloc(SUPERBLOCK_SIZE);
91 munmap(p->mem, SUPERBLOCK_SIZE);
94 free(p->mem);
H A Dmempool2.c26 char *mem; member in struct:_pool
42 p->where = p->mem = (char *)mmap(NULL, SUPERBLOCK_SIZE,
47 p->where = p->mem = (char *)malloc(SUPERBLOCK_SIZE);
94 munmap(p->mem, SUPERBLOCK_SIZE);
97 free(p->mem);

Completed in 303 milliseconds

1234567891011>>