size 988 core/conf.c switch (ci[i].size) size 1002 core/conf.c ci[i].last_saved = memhash31((unsigned char*)ci[i].var, ci[i].size); size 1021 core/conf.c switch (ci[i].size) size 1038 core/conf.c if (ci[i].last_saved != memhash31((unsigned char*)ci[i].var, ci[i].size)) size 1060 core/conf.c memcpy(ci[i].var, &(ci[i].i), ci[i].size); size 1063 core/conf.c memset(ci[i].var, 0, ci[i].size); size 1069 core/conf.c memcpy(ci[i].var, ci[i].ptr, ci[i].size); size 1089 core/conf.c unsigned short size; size 1103 core/conf.c int size = 2 * sizeof(int) + i * sizeof(ConfInfoSave); size 1110 core/conf.c size += cfg->saved_size(); size 1114 core/conf.c size += ci[i].size; size 1118 core/conf.c char *buf = umalloc(size); size 1135 core/conf.c ((ConfInfoSave*)p)->size = ci[i].size; size 1144 core/conf.c memcpy(p, ci[i].var, ci[i].size); size 1146 core/conf.c if ((ci[i].size == CONF_STR_LEN) && (strlen(ci[i].var) < CONF_STR_LEN)) size 1148 core/conf.c p += ci[i].size; size 1201 core/conf.c unsigned short id, size; size 1219 core/conf.c size = *((short*)(buf + offs)); size 1224 core/conf.c if (ci[i].id==id && ci[i].size==size) size 1226 core/conf.c if (offs + size <= rcnt) size 1231 core/conf.c size = cfg->load(buf+offs); size 1233 core/conf.c else if (ci[i].size == size) // only restore if size matches size 1235 core/conf.c memcpy(ci[i].var, buf+offs, size); size 1243 core/conf.c offs += size; size 1255 core/conf.c unsigned short id, size; size 1274 core/conf.c size = *((short*)(buf + offs)); size 1294 core/conf.c if (ci[i].id==id && ci[i].size==size) size 1296 core/conf.c if (offs + size <= rcnt) size 1301 core/conf.c size = cfg->load(buf+offs); size 1305 core/conf.c memcpy(ci[i].var, buf+offs, size); size 1314 core/conf.c offs += size; size 1427 core/conf.c switch( ci[i].size ) size 1445 core/conf.c configVal->numb = ci[i].size/sizeof(int); size 1501 core/conf.c switch( ci[i].size ) size 1521 core/conf.c len = ci[i].size; size 127 core/gps.c georegInit (t_georeg* reg, int size, t_regression_xy * buffer1, t_regression_xy * buffer2) { size 128 core/gps.c regressionInit (®->lat_w, size, buffer1); size 129 core/gps.c regressionInit (®->lon_w, size, buffer2); size 272 core/gps_math.c void regressionInit (t_regression *rcb, int size, t_regression_xy buffer[]) { size 273 core/gps_math.c rcb->size = size; size 294 core/gps_math.c for (i=0; i<rcb->size; i++) { size 308 core/gps_math.c if (rcb->n >= rcb->size) { size 323 core/gps_math.c if (rcb->n < rcb->size) { size 335 core/gps_math.c rcb->index = (rcb->index+1) % rcb->size; size 57 core/gps_math.h int size; size 74 core/gps_math.h extern void regressionInit (t_regression *rcb, int size, t_regression_xy buffer[]); size 876 core/gui_draw.c static unsigned char* get_cdata(unsigned int *offset, unsigned int *size, const char ch) size 881 core/gui_draw.c *size = 16 - (f->skips & 0xF); // last line of non-blank data size 882 core/gui_draw.c if (*size == *offset) // special case for blank char (top == 15 && bottom == 1) size 894 core/gui_draw.c unsigned int offset, size; size 895 core/gui_draw.c unsigned char *sym = get_cdata(&offset, &size, ch); size 904 core/gui_draw.c for (j=i; i<size;) size 943 core/gui_draw.c unsigned int offset, size; size 944 core/gui_draw.c unsigned char *sym = get_cdata(&offset, &size, ch); size 963 core/gui_draw.c for (j=i; i<size;) size 1028 core/gui_draw.c unsigned int offset, size; size 1029 core/gui_draw.c unsigned char *sym = get_cdata(&offset, &size, ch); size 1045 core/gui_draw.c for (j=i; i<size;) size 1100 core/gui_draw.c unsigned int offset, size; size 1101 core/gui_draw.c unsigned char *sym = get_cdata(&offset, &size, ch); size 1109 core/gui_draw.c for (j=i=offset; i<size;) size 1160 core/gui_draw.c unsigned int offset, size; size 1161 core/gui_draw.c unsigned char *sym = get_cdata(&offset, &size, ch); size 1171 core/gui_draw.c for (j=i=offset; i<size;) size 12 core/memmgmt.c extern void *suba_init(void *heap, unsigned size, unsigned mincell, char *name); size 13 core/memmgmt.c extern void *suba_alloc(void *heap, unsigned size, unsigned zero); size 23 core/memmgmt.c int size; size 31 core/memmgmt.c h->size = 0; size 35 core/memmgmt.c static void chdk_heap_create(chdk_heap *h, void *mem, int size, int chdk_in_heap, int heap_testing, char *name) size 45 core/memmgmt.c h->size = size - ((camera_info.memisosize+3)&0xFFFFFFFC); size 51 core/memmgmt.c h->size = size; size 54 core/memmgmt.c h->end = h->start + h->size; size 70 core/memmgmt.c h->heap = suba_init(h->start,h->size,8,name); size 76 core/memmgmt.c static void* chdk_malloc(chdk_heap *h, unsigned size) size 79 core/memmgmt.c return suba_alloc(h->heap,size,0); size 102 core/memmgmt.c camera_meminfo->total_size = h->size; size 185 core/memmgmt.c extern void *exmem_alloc_cached(unsigned int pool_id,unsigned int size,int unk,int unk2); size 288 core/memmgmt.c void *malloc(long size) size 290 core/memmgmt.c extern void *canon_malloc(long size); size 292 core/memmgmt.c void *p = chdk_malloc(&aram_heap,size); size 295 core/memmgmt.c p = chdk_malloc(&exmem_heap,size); size 298 core/memmgmt.c p = canon_malloc(size); size 180 core/ptp.c static int recv_ptp_data(ptp_data *data, char *buf, int size) size 183 core/ptp.c if(!recv_ptp_data_init(&rs,size,buf)) { size 187 core/ptp.c while(rs.total_read < size && status) { size 193 core/ptp.c static void flush_recv_ptp_data(ptp_data *data,int size) { size 194 core/ptp.c recv_ptp_data(data,NULL,size); size 199 core/ptp.c int size; size 218 core/ptp.c sb->size=0; size 221 core/ptp.c sb->size=buf_size; size 232 core/ptp.c sb->size=0; size 239 core/ptp.c static int send_ptp_data(ptp_data *data, const char *src, int size) size 241 core/ptp.c if ( data->send_data(data->handle,src,size,size,0,0,0) ) size 253 core/ptp.c static int send_ptp_data_buffered(ptp_data *data, void * (*copy_fn)(void *d, const void *s, long sz), const char *src, int size) size 256 core/ptp.c if(!send_ptp_data_buf_init(&sb,size)) { size 260 core/ptp.c int tmpsize = size; size 262 core/ptp.c while ( size > 0 ) size 264 core/ptp.c if(size > sb.size) { size 265 core/ptp.c send_size = sb.size; size 267 core/ptp.c send_size = size; size 272 core/ptp.c if(src + size < sb.buf + sb.size) { size 274 core/ptp.c send_size = size; size 277 core/ptp.c send_size = sb.size - (src - sb.buf); size 292 core/ptp.c size -= send_size; size 362 core/ptp.c msg->size = datasize; size 368 core/ptp.c memcpy(msg->data,data,msg->size); size 480 core/ptp.c int size=param3; size 482 core/ptp.c if ( size < 1 ) // invalid size? NULL is accepted size 489 core/ptp.c int total_size = size; size 496 core/ptp.c if(send_size > size) { size 497 core/ptp.c send_size = size; size 507 core/ptp.c if(size == send_size) { size 510 core/ptp.c size -= send_size; size 516 core/ptp.c if(data->send_data(data->handle,src,size,total_size,0,0,0) == 0) { size 520 core/ptp.c result = send_ptp_data_buffered(data,memcpy,src,size); size 736 core/ptp.c while ( (r = fread(sb.buf,1,(t<sb.size)?t:sb.size,f)) > 0 ) size 828 core/ptp.c ptp.param4 = msg->size; size 830 core/ptp.c if(msg->size) { size 831 core/ptp.c datasize = msg->size; size 880 core/ptp.c if ( !recv_ptp_data(data,msg->data,msg->size) ) size 33 core/ptp_chdk.h int (*recv_data)(int handle, char *buf, int size, int, int); // (0xFF9F5500) size 48 core/ptp_chdk.h unsigned size; size 399 core/raw.c int make_pixel_list(char * ptr, int size) { size 404 core/raw.c if ( size <=0 ) return 0; size 23 core/raw.h extern int make_pixel_list(char * ptr, int size); size 166 core/remotecap.c int filewrite_get_file_chunk(char **addr,unsigned *size, unsigned n, int *pos); size 292 core/remotecap.c int remotecap_get_data_chunk( int fmt, char **addr, unsigned int *size, int *pos ) size 301 core/remotecap.c *size=raw_chunk.length; size 306 core/remotecap.c fwt_last_status = filewrite_get_file_chunk(addr,size,fwt_curr_chunk,pos); size 320 core/remotecap.c *size=dng_hdr_chunk.length; size 328 core/remotecap.c *size=0; size 28 core/suba.c size_t size; size 41 core/suba.c size_t size; // total size of memory area size 59 core/suba.c #define ACTUALSIZE(size) (size + sizeof(cell_hdr)) size 60 core/suba.c #define ALLOCSIZE(size) (size - sizeof(cell_hdr)) size 64 core/suba.c #define CEND(c) ((cell*)((char*)c + c->h.size)) size 71 core/suba.c if (suba && (c > (cell*)suba) && (c < (cell*)((char*)suba + suba->size))) { size 91 core/suba.c while (c->h.size != 0) size 93 core/suba.c printf("%x %d %x, ", c, c->h.size, c->next); size 96 core/suba.c printf("%x %d %x\n", c, c->h.size, c->next); size 107 core/suba.c while (c->h.size != 0) size 110 core/suba.c free_size += ALLOCSIZE(c->h.size); size 111 core/suba.c if (c->h.size > largest->h.size) largest = c; size 119 core/suba.c if (suba->largest_block->h.size != largest->h.size) size 121 core/suba.c printf("Mismatch - largest %x %d %x %d\n", suba->largest_block, suba->largest_block->h.size, largest->h.size); size 153 core/suba.c sprintf(buf, "%x %d %x %d =>\n", c, suba->mincell, suba->largest_block, suba->largest_block->h.size); size 155 core/suba.c while (c->h.size != 0) size 157 core/suba.c sprintf(buf, "%x %d %x\n", c, c->h.size, c->next); size 161 core/suba.c sprintf(buf, "%x %d %x\n", c, c->h.size, c->next); size 172 core/suba.c while (c->h.size != 0) size 175 core/suba.c free_size += ALLOCSIZE(c->h.size); size 176 core/suba.c if (c->h.size > largest->h.size) largest = c; size 182 core/suba.c if (suba->largest_block->h.size != largest->h.size) size 185 core/suba.c sprintf(buf, "largest %x %d %x %d\n", suba->largest_block, suba->largest_block->h.size, largest, largest->h.size); size 216 core/suba.c while (c->h.size != 0) size 218 core/suba.c if (c->h.size > largest->h.size) largest = c; size 224 core/suba.c *largest_block = ALLOCSIZE(suba->largest_block->h.size); size 245 core/suba.c suba_init(allocator *suba, size_t size, size_t mincell, char *name) size 250 core/suba.c if (suba == NULL || size == 0) { size 256 core/suba.c size = size & ~ALIGNMASK; size 267 core/suba.c suba->size = size; size 275 core/suba.c c1->h.size = size - hdrsiz - sizeof(cell); size 280 core/suba.c c2->h.size = 0; size 286 core/suba.c c1->h.size -= sizeof(cell*); size 294 core/suba.c suba->free_size = ALLOCSIZE(c1->h.size); size 298 core/suba.c suba->head.h.size = sizeof(cell_hdr); size 306 core/suba.c suba_alloc(allocator *suba, size_t size, int zero) size 311 core/suba.c size = ALIGN(size); size 312 core/suba.c size_t cellsize = ACTUALSIZE(size); size 320 core/suba.c while (this_cell->h.size > 0 && this_cell->h.size < cellsize) { size 326 core/suba.c if (this_cell->h.size > 0) { size 330 core/suba.c if (this_cell->h.size > (cellsize + suba->mincell)) { size 332 core/suba.c this_cell->h.size = this_cell->h.size - cellsize; size 334 core/suba.c this_cell->h.size = cellsize; size 340 core/suba.c cellsize = this_cell->h.size; size 381 core/suba.c if (this_cell->h.size > suba->size) { size 390 core/suba.c suba->allocated_size -= ALLOCSIZE(this_cell->h.size); size 404 core/suba.c suba->free_size += this_cell->h.size; size 405 core/suba.c prev_cell->h.size += this_cell->h.size; size 411 core/suba.c suba->free_size += ALLOCSIZE(this_cell->h.size); size 417 core/suba.c this_cell->h.size += next_cell->h.size; size 423 core/suba.c if ((suba->largest_block != NULL) && (this_cell->h.size > suba->largest_block->h.size)) size 62 include/camera_info.h int size[2]; size 95 include/camera_info.h int width, height, size; // Size of bitmap screen in CHDK co-ordinates size 556 include/conf.h unsigned char size; size 28 include/exmem.h extern void *exmem_alloc_uncached(unsigned int type, unsigned int size, exmem_alloc_info *allocinf); size 8 include/fileutil.h typedef int (*callback_process_file)(char* buf, int size); size 11 include/fileutil.h extern char* load_file_to_length(const char* name, int* size, int add0, int length); size 12 include/fileutil.h extern char* load_file(const char* name, int* size, int add0); size 7 include/firmware_crc_types.h unsigned size; size 74 include/lolevel.h extern long _GetParameterData(long id, void *buf, long size); size 75 include/lolevel.h extern long _SetParameterData(long id, void *buf, long size); size 148 include/lolevel.h extern void *_malloc(long size); size 150 include/lolevel.h extern void *_AllocateUncacheableMemory(long size); size 342 include/lolevel.h extern void *_exmem_alloc(unsigned int pool_id,unsigned int size,int unk,int unk2); size 346 include/lolevel.h extern void *_exmem_ualloc(unsigned int type, unsigned int size, void *allocinf); size 14 include/remotecap_core.h int remotecap_get_data_chunk( int fmt, char **addr, unsigned int *size, int *pos ); size 22 include/std/stdlib.h extern void *malloc(long size); size 89 include/std/stdlib.h extern void *umalloc(long size); size 20 include/task.h int task_id_list_get(int *idlist,int size); size 40 lib/armutil/reboot.c int size; size 51 lib/armutil/reboot.c size = lseek(fd,0,SEEK_END); size 53 lib/armutil/reboot.c if(size < 4) { size 56 lib/armutil/reboot.c buf = umalloc(size); size 62 lib/armutil/reboot.c rcnt = read(fd, buf, size); size 64 lib/armutil/reboot.c if(rcnt != size) { size 80 lib/armutil/reboot.c canon_copy_and_restart((void *)0x1900,buf,size,(void *)0x1900); size 119 lib/lang/fileutil.c int size; size 121 lib/lang/fileutil.c char *buf = load_file(filename, &size, add0); size 123 lib/lang/fileutil.c size = callback(buf, size); size 128 lib/lang/fileutil.c return size; size 50 lib/lang/lang.c static char* placelstr(int size) { size 52 lib/lang/lang.c lbpointer += size; size 91 lib/lang/lang.c int lang_parse_from_mem(char *buf, int size) { size 96 lib/lang/lang.c if ( size <= 0 ) size 95 lib/lua/lapi.c LUA_API int lua_checkstack (lua_State *L, int size) { size 98 lib/lua/lapi.c if (size > LUAI_MAXCSTACK || (L->top - L->base + size) > LUAI_MAXCSTACK) size 100 lib/lua/lapi.c else if (size > 0) { size 101 lib/lua/lapi.c luaD_checkstack(L, size); size 102 lib/lua/lapi.c if (L->ci->top < L->top + size) size 103 lib/lua/lapi.c L->ci->top = L->top + size; size 1025 lib/lua/lapi.c LUA_API void *lua_newuserdata (lua_State *L, size_t size) { size 1029 lib/lua/lapi.c u = luaS_newudata(L, size, getcurrenv(L)); size 236 lib/lua/lauxlib.c int size = 0; size 237 lib/lua/lauxlib.c for (; l->name; l++) size++; size 238 lib/lua/lauxlib.c return size; size 245 lib/lua/lauxlib.c int size = libsize(l); size 252 lib/lua/lauxlib.c if (luaL_findtable(L, LUA_GLOBALSINDEX, libname, size) != NULL) size 527 lib/lua/lauxlib.c static const char *getF (lua_State *L, void *ud, size_t *size) { size 532 lib/lua/lauxlib.c *size = 1; size 536 lib/lua/lauxlib.c *size = fread(lf->buff, 1, sizeof(lf->buff), lf->f); size 537 lib/lua/lauxlib.c return (*size > 0) ? lf->buff : NULL; size 545 lib/lua/lauxlib.c static const char *getF (lua_State *L, void *ud, size_t *size) { size 549 lib/lua/lauxlib.c *size = fread(lf->buff, 1, sizeof(lf->buff), lf->f); size 550 lib/lua/lauxlib.c return (*size > 0) ? lf->buff : NULL; size 632 lib/lua/lauxlib.c size_t size; size 636 lib/lua/lauxlib.c static const char *getS (lua_State *L, void *ud, size_t *size) { size 639 lib/lua/lauxlib.c if (ls->size == 0) return NULL; size 640 lib/lua/lauxlib.c *size = ls->size; size 641 lib/lua/lauxlib.c ls->size = 0; size 646 lib/lua/lauxlib.c LUALIB_API int luaL_loadbuffer (lua_State *L, const char *buff, size_t size, size 650 lib/lua/lauxlib.c ls.size = size; size 330 lib/lua/lbaselib.c static const char *generic_reader (lua_State *L, void *ud, size_t *size) { size 336 lib/lua/lbaselib.c *size = 0; size 341 lib/lua/lbaselib.c return lua_tolstring(L, 3, size); size 26 lib/lua/ldump.c #define DumpMem(b,n,size,D) DumpBlock(b,(n)*(size),D) size 29 lib/lua/ldump.c static void DumpBlock(const void* b, size_t size, DumpState* D) size 34 lib/lua/ldump.c D->status=(*D->writer)(D->L,b,size,D->data); size 55 lib/lua/ldump.c static void DumpVector(const void* b, int n, size_t size, DumpState* D) size 58 lib/lua/ldump.c DumpMem(b,n,size,D); size 65 lib/lua/ldump.c size_t size=0; size 66 lib/lua/ldump.c DumpVar(size,D); size 70 lib/lua/ldump.c size_t size=s->tsv.len+1; /* include trailing '\0' */ size 71 lib/lua/ldump.c DumpVar(size,D); size 72 lib/lua/ldump.c DumpBlock(getstr(s),size,D); size 153 lib/lua/lfunc.c int size = (c->c.isC) ? sizeCclosure(c->c.nupvalues) : size 155 lib/lua/lfunc.c luaM_freemem(L, c, size); size 434 lib/lua/lgc.c if (g->strt.nuse < cast(lu_int32, g->strt.size/4) && size 435 lib/lua/lgc.c g->strt.size > MINSTRTABSIZE*2) size 436 lib/lua/lgc.c luaS_resize(L, g->strt.size/2); /* table is too big */ size 488 lib/lua/lgc.c for (i = 0; i < g->strt.size; i++) /* free all string lists */ size 575 lib/lua/lgc.c if (g->sweepstrgc >= g->strt.size) /* nothing more to sweep? */ size 46 lib/lua/lmem.c LUAI_FUNC void *luaM_growaux_ (lua_State *L, void *block, int *size, size_t size_elems, size 50 lib/lua/lmem.c if (*size >= limit/2) { /* cannot double it? */ size 51 lib/lua/lmem.c if (*size >= limit) /* cannot grow even a little? */ size 56 lib/lua/lmem.c newsize = (*size)*2; size 60 lib/lua/lmem.c newblock = luaM_reallocv(L, block, *size, newsize, size_elems); size 61 lib/lua/lmem.c *size = newsize; /* update only when everything else is OK */ size 33 lib/lua/lmem.h #define luaM_growvector(L,v,nelems,size,t,limit,e) \ size 34 lib/lua/lmem.h if ((nelems)+1 > (size)) \ size 35 lib/lua/lmem.h ((v)=cast(t *, luaM_growaux_(L,v,&(size),sizeof(t),limit,e))) size 42 lib/lua/lmem.h size_t size); size 44 lib/lua/lmem.h LUAI_FUNC void *luaM_growaux_ (lua_State *L, void *block, int *size, size 355 lib/lua/lobject.h #define lmod(s,size) \ size 356 lib/lua/lobject.h (check_exp((size&(size-1))==0, (cast(int, (s) & ((size)-1))))) size 111 lib/lua/lstate.c luaM_freearray(L, G(L)->strt.hash, G(L)->strt.size, TString *); size 163 lib/lua/lstate.c g->strt.size = 0; size 41 lib/lua/lstate.h int size; size 32 lib/lua/lstring.c for (i=0; i<tb->size; i++) { size 44 lib/lua/lstring.c luaM_freearray(L, tb->hash, tb->size, TString *); size 45 lib/lua/lstring.c tb->size = newsize; size 65 lib/lua/lstring.c h = lmod(h, tb->size); size 69 lib/lua/lstring.c if (tb->nuse > cast(lu_int32, tb->size) && tb->size <= MAX_INT/2) size 70 lib/lua/lstring.c luaS_resize(L, tb->size*2); /* too crowded */ size 82 lib/lua/lstring.c for (o = G(L)->strt.hash[lmod(h, G(L)->strt.size)]; size 140 lib/lua/lstrlib.c static int writer (lua_State *L, const void* b, size_t size, void* B) { size 142 lib/lua/lstrlib.c luaL_addlstring((luaL_Buffer*) B, (const char *)b, size); size 263 lib/lua/ltable.c static void setarrayvector (lua_State *L, Table *t, int size) { size 265 lib/lua/ltable.c luaM_reallocvector(L, t->array, t->sizearray, size, TValue); size 266 lib/lua/ltable.c for (i=t->sizearray; i<size; i++) size 268 lib/lua/ltable.c t->sizearray = size; size 272 lib/lua/ltable.c static void setnodevector (lua_State *L, Table *t, int size) { size 274 lib/lua/ltable.c if (size == 0) { /* no elements to hash part? */ size 280 lib/lua/ltable.c lsize = ceillog2(size); size 283 lib/lua/ltable.c size = twoto(lsize); size 284 lib/lua/ltable.c t->node = luaM_newvector(L, size, Node); size 285 lib/lua/ltable.c for (i=0; i<size; i++) { size 293 lib/lua/ltable.c t->lastfree = gnode(t, size); /* all positions are free */ size 147 lib/lua/luac.c static int writer(lua_State* L, const void* p, size_t size, void* u) size 150 lib/lua/luac.c return (fwrite(p,size,1,(FILE*)u)!=1) && (size!=0); size 43 lib/lua/lundump.c #define LoadMem(S,b,n,size) LoadBlock(S,b,(n)*(size)) size 46 lib/lua/lundump.c #define LoadVector(S,b,n,size) LoadMem(S,b,n,size) size 48 lib/lua/lundump.c static void LoadBlock(LoadState* S, void* b, size_t size) size 50 lib/lua/lundump.c size_t r=luaZ_read(S->Z,b,size); size 78 lib/lua/lundump.c size_t size; size 79 lib/lua/lundump.c LoadVar(S,size); size 80 lib/lua/lundump.c if (size==0) size 84 lib/lua/lundump.c char* s=luaZ_openspace(S->L,S->b,size); size 85 lib/lua/lundump.c LoadBlock(S,s,size); size 86 lib/lua/lundump.c return luaS_newlstr(S->L,s,size-1); /* remove trailing '\0' */ size 22 lib/lua/lzio.c size_t size; size 27 lib/lua/lzio.c buff = z->reader(L, z->data, &size); size 29 lib/lua/lzio.c if (buff == NULL || size == 0) { size 33 lib/lua/lzio.c z->n = size - 1; size 39 lib/lua/lzio.h #define luaZ_resizebuffer(L, buff, size) \ size 40 lib/lua/lzio.h (luaM_reallocvector(L, (buff)->buffer, (buff)->buffsize, size, char), \ size 41 lib/lua/lzio.h (buff)->buffsize = size) size 62 modules/curves.c unsigned size; size 78 modules/curves.c size = CURVE_BYTES*4; size 81 modules/curves.c size = CURVE_BYTES*2; size 85 modules/curves.c curve_data=malloc(size); size 96 modules/curves.c fread(curve_data, 1, size, fd); size 349 modules/dng.c void add_to_buf(void* var, int size) size 351 modules/dng.c memcpy(dng_header_buf+dng_header_buf_offset,var,size); size 352 modules/dng.c dng_header_buf_offset += size; size 356 modules/dng.c void add_val_to_buf(int val, int size) size 358 modules/dng.c add_to_buf(&val,size); size 1319 modules/dng.c int size = rb_state.reversed - rb_state.written; size 1320 modules/dng.c if(!size) { size 1327 modules/dng.c if(size > DNG_END_CHUNK_SIZE && (rb_state.written + DNG_END_CHUNK_SIZE*DNG_END_NUM_CHUNKS) >= rb_state.end) { size 1328 modules/dng.c size = DNG_END_CHUNK_SIZE; size 1335 modules/dng.c write(fd,ADR_TO_UNCACHED(rb_state.written),size); size 1336 modules/dng.c rb_state.written += size; size 113 modules/file_shelter.c int read_file_f(char *fn, void *buf, int size) size 118 modules/file_shelter.c ret = fread(buf, 1, size, fd); size 120 modules/file_shelter.c if (ret == size) { size 130 modules/file_shelter.c int read_file_o(char *fn, void *buf, int size) size 135 modules/file_shelter.c ret = read(fd, buf, size); size 137 modules/file_shelter.c if (ret == size) { size 147 modules/file_shelter.c int compute_file_crc_f(char *fn, void *buf, int size, int bufsize, unsigned long *crc) size 155 modules/file_shelter.c long chunk = bufsize<size?bufsize:size; size 159 modules/file_shelter.c if (r != size) { size 165 modules/file_shelter.c size -= r; size 166 modules/file_shelter.c if (size <= 0) { size 175 modules/file_shelter.c int compute_file_crc_o(char *fn, void *buf, int size, int bufsize, unsigned long *crc) size 183 modules/file_shelter.c long chunk = bufsize<size?bufsize:size; size 187 modules/file_shelter.c if (r != size) { size 193 modules/file_shelter.c size -= r; size 194 modules/file_shelter.c if (size <= 0) { size 203 modules/file_shelter.c int write_file_f(char *fn, void *buf, int size) size 208 modules/file_shelter.c ret = fwrite(buf, 1, size, fd); size 210 modules/file_shelter.c if (ret == size) { size 220 modules/file_shelter.c int write_file_o(char *fn, void *buf, int size) size 225 modules/file_shelter.c ret = write(fd, buf, size); size 227 modules/file_shelter.c if (ret == size) { size 239 modules/file_shelter.c int read_file(char *fn, void *buf, int size) size 242 modules/file_shelter.c return read_file_o(fn, buf, size); size 244 modules/file_shelter.c return read_file_f(fn, buf, size); size 249 modules/file_shelter.c int write_file(char *fn, void *buf, int size) size 252 modules/file_shelter.c return write_file_o(fn, buf, size); size 254 modules/file_shelter.c return write_file_f(fn, buf, size); size 259 modules/file_shelter.c int compute_file_crc(char *fn, void *buf, int size, int bufsize, unsigned long *crc) size 262 modules/file_shelter.c return compute_file_crc_o(fn, buf, size, bufsize, crc); size 264 modules/file_shelter.c return compute_file_crc_f(fn, buf, size, bufsize, crc); size 302 modules/file_shelter.c unsigned long size; size 323 modules/file_shelter.c de->size = 0; size 352 modules/file_shelter.c de->size = st.st_size; size 457 modules/file_shelter.c unsigned long size; // file size size 527 modules/file_shelter.c p += sizeof(fs_fheader) + wordpad(fh->nlen) + wordpad(fh->size); size 562 modules/file_shelter.c if (!is_valid_stptr(p) || !is_valid_stptr(p+fh->size)) { size 572 modules/file_shelter.c storageneed += wordpad(de->size); size 593 modules/file_shelter.c fh->size = 0; size 609 modules/file_shelter.c fh->size = de->size; size 618 modules/file_shelter.c if ( read_file(name, storptr, fh->size) ) { size 625 modules/file_shelter.c crc32(storptr, fh->size, &fh->crc); // fh->crc is set to zero prior to this size 626 modules/file_shelter.c storptr += wordpad(fh->size); size 739 modules/file_shelter.c crc32(fd, fh->size, &crc); // crc is set to zero prior to this size 752 modules/file_shelter.c if ( write_file(buf, fd, fh->size) ) { size 760 modules/file_shelter.c if ( compute_file_crc(buf, tmpbuf, fh->size, tmpsiz, &crc) ) { size 122 modules/firmware_crc.c if(blocks[b].size != 0) { size 124 modules/firmware_crc.c crc32(blocks[b].start,blocks[b].size,&fw_crc); size 80 modules/games/gui_tetris.c int size; size 290 modules/games/gui_tetris.c tetramino->size = 3; size 300 modules/games/gui_tetris.c tetramino->size = 4; size 307 modules/games/gui_tetris.c tetramino->size = 2; size 375 modules/games/gui_tetris.c game->fallingBlock.x = (BOARD_WIDTH - game->fallingBlock.size) / 2; size 436 modules/games/gui_tetris.c for (i = 0; i < game->fallingBlock.size; ++i) size 438 modules/games/gui_tetris.c for (j = 0; j < game->fallingBlock.size; ++j) size 442 modules/games/gui_tetris.c rotated[game->fallingBlock.size - j - 1][i] = game->fallingBlock.cells[i][j]; size 446 modules/games/gui_tetris.c rotated[j][game->fallingBlock.size - i - 1] = game->fallingBlock.cells[i][j]; size 451 modules/games/gui_tetris.c for (i = 0; i < game->fallingBlock.size; ++i) size 453 modules/games/gui_tetris.c for (j = 0; j < game->fallingBlock.size; ++j) size 491 modules/games/gui_tetris.c for (i = 0; i < game->fallingBlock.size; ++i) size 493 modules/games/gui_tetris.c for (j = 0; j < game->fallingBlock.size; ++j) size 572 modules/games/gui_tetris.c for (i = 0; i < game->fallingBlock.size; ++i) size 574 modules/games/gui_tetris.c for (j = 0; j < game->fallingBlock.size; ++j) size 628 modules/games/gui_tetris.c game->fallingBlock.size = game->nextBlock.size; size 633 modules/games/gui_tetris.c game->fallingBlock.x = (BOARD_WIDTH - game->fallingBlock.size) / 2; size 74 modules/gui_fselect.c unsigned long size; size 184 modules/gui_fselect.c unsigned long size, unsigned long mtime, size 192 modules/gui_fselect.c p->size = size; size 453 modules/gui_fselect.c unsigned long size; size 473 modules/gui_fselect.c de->size = 0; size 502 modules/gui_fselect.c de->size = st.st_size; size 638 modules/gui_fselect.c add_item(&items, de.de->d_name, de.size, de.mtime, 0, de.isdir, de.isparent, de.isvalid); size 820 modules/gui_fselect.c unsigned long n = ptr->size; size 1106 modules/gui_fselect.c add_item(&marked_items, ptr->name, ptr->size, ptr->mtime, 1, ptr->isdir, ptr->isparent, ptr->isvalid); size 1110 modules/gui_fselect.c add_item(&marked_items, selected->name, selected->size, selected->mtime, 1, selected->isdir, selected->isparent, selected->isvalid); size 1277 modules/gui_fselect.c if (ptr->marked && ptr->isvalid && !ptr->isdir && (ptr->size >= camera_sensor.raw_size)) size 1559 modules/gui_fselect.c if (selected->size >= camera_sensor.raw_size) size 1562 modules/gui_fselect.c if ((marked_count > 1) || (selected->size > camera_sensor.raw_size)) size 168 modules/gui_grid.c static int parse_grid_file(char *ptr, int size) size 172 modules/gui_grid.c if (size > 0) size 205 modules/gui_grid.c return size; size 25 modules/gui_osd_edit.c OSD_pos size; size 78 modules/gui_osd_edit.c (osd[curr_item].pos->x+SCL(osd[curr_item].size.x,xscale))+i-1, size 79 modules/gui_osd_edit.c (osd[curr_item].pos->y+SCL(osd[curr_item].size.y,yscale))+i-1, size 155 modules/gui_osd_edit.c if (osd[curr_item].pos->x < camera_screen.width-SCL(osd[curr_item].size.x,0)) size 157 modules/gui_osd_edit.c osd[curr_item].pos->x+=(camera_screen.width-SCL(osd[curr_item].size.x,0)-osd[curr_item].pos->x>step)?step:camera_screen.width-SCL(osd[curr_item].size.x,0)-osd[curr_item].pos->x; size 160 modules/gui_osd_edit.c osd[curr_item].pos->x = camera_screen.width-SCL(osd[curr_item].size.x,0); size 170 modules/gui_osd_edit.c if (osd[curr_item].pos->y < camera_screen.height-osd[curr_item].size.y) size 172 modules/gui_osd_edit.c osd[curr_item].pos->y+=(camera_screen.height-osd[curr_item].size.y-osd[curr_item].pos->y>step)?step:camera_screen.height-osd[curr_item].size.y-osd[curr_item].pos->y; size 175 modules/gui_osd_edit.c osd[curr_item].pos->y = camera_screen.height-osd[curr_item].size.y; size 156 modules/histogram.c long exposition_thresh = camera_screen.size / 500; size 652 modules/luascript.c unsigned size; size 654 modules/luascript.c size = luaL_checknumber( L, 2 ); size 655 modules/luascript.c buf = malloc(size); size 659 modules/luascript.c if(get_property_case(prop_id,buf,size) == 0) { size 660 modules/luascript.c lua_pushlstring( L, buf, size ); size 850 modules/luascript.c unsigned size; size 854 modules/luascript.c size = get_parameter_size(id); size 855 modules/luascript.c if (size == 0) { size 859 modules/luascript.c if (size >= 1 && size <= 4) { size 861 modules/luascript.c get_parameter_data( id, &val, size ); size 862 modules/luascript.c lua_pushlstring( L, (char *)&val, size ); size 868 modules/luascript.c char *buf = malloc(size); size 872 modules/luascript.c get_parameter_data( id, buf, size ); size 873 modules/luascript.c lua_pushlstring( L, buf, size ); size 1717 modules/luascript.c unsigned size = luaL_optnumber(L, 2, 4); size 1718 modules/luascript.c switch(size) { size 1755 modules/luascript.c unsigned size = luaL_optnumber(L, 3, 4); size 1757 modules/luascript.c switch(size) { size 2435 modules/luascript.c lua_pushlstring(Lt,msg->data,msg->size); size 2480 modules/luascript.c lua_pushlstring(L,msg->data,msg->size); size 85 modules/module_load.c static int get_buffer(int size) size 87 modules/module_load.c size = (size + 3) & 0xFFFFFFFC; // round up to 4 byte boundary size 88 modules/module_load.c if (size > buf_size) size 96 modules/module_load.c buf_load = umalloc(size); size 98 modules/module_load.c buf_size = size; size 468 modules/module_load.c static char* load_module_file(int fd, const char* name, int size, int bss_size, flat_hdr** flat_buf) size 470 modules/module_load.c *flat_buf = (flat_hdr*)malloc(size+bss_size); size 478 modules/module_load.c if (b_read(fd, (char*)*flat_buf, size) == size) size 480 modules/module_load.c memset((unsigned char*)(*flat_buf)+size, 0, bss_size); size 135 platform/a540/sub/100b/lib.c long jpegs,size,quality; size 138 platform/a540/sub/100b/lib.c get_property_case(24, (void *)&size, 4); size 139 platform/a540/sub/100b/lib.c if ((size>4) || (quality>2)) return 0; size 140 platform/a540/sub/100b/lib.c return (file_size_table[quality][size]*jpegs)/(file_size_table[quality][size]+(hook_raw_size()>>10)); size 314 platform/g5x/lib.c camera_screen.size = camera_screen.width * camera_screen.height; size 328 platform/g7x/lib.c camera_screen.size = camera_screen.buffer_size = 640*480; size 338 platform/g7x/lib.c camera_screen.size = 720*480; size 345 platform/g7x/lib.c camera_screen.size = camera_screen.buffer_size = 960*540; size 351 platform/g7x/lib.c camera_screen.size = 1024*768; size 279 platform/g7x2/lib.c camera_screen.size = camera_screen.width * camera_screen.height; size 30 platform/generic/filewrite.c int filewrite_get_file_chunk(char **addr,int *size,unsigned n,int *pos) { size 36 platform/generic/filewrite.c *size=0; size 40 platform/generic/filewrite.c *size=file_chunks[n].length; size 58 platform/generic/filewrite.c *size=0; size 63 platform/generic/filewrite.c *size=file_chunks[file_curr_session_chunk].length; size 68 platform/generic/filewrite.c file_bytes_left -= *size; size 69 platform/generic/wrappers.c int task_id_list_get(int *idlist,int size) size 71 platform/generic/wrappers.c return _taskIdListGet(idlist,size); size 116 platform/generic/wrappers.c short size; // param size size 128 platform/generic/wrappers.c short size; // param size size 142 platform/generic/wrappers.c return FlashParamsTable[id]->size; size 1024 platform/generic/wrappers.c void *exmem_alloc_cached(unsigned int pool_id,unsigned int size,int unk,int unk2) size 1026 platform/generic/wrappers.c return _exmem_alloc(pool_id,size,unk,unk2); size 1030 platform/generic/wrappers.c void *exmem_alloc_uncached(unsigned int type, unsigned int size, exmem_alloc_info *allocinf) size 1032 platform/generic/wrappers.c return _exmem_ualloc(type, size, allocinf); size 1039 platform/generic/wrappers.c void *canon_malloc(long size) size 1042 platform/generic/wrappers.c return _malloc(size); size 1047 platform/generic/wrappers.c void *r=_malloc(size); size 1066 platform/generic/wrappers.c void *umalloc(long size) { size 1068 platform/generic/wrappers.c return _AllocateUncacheableMemory(size); size 1073 platform/generic/wrappers.c void *r=_AllocateUncacheableMemory(size); size 230 platform/m10/lib.c camera_screen.size = camera_screen.buffer_size = 640*480; size 240 platform/m10/lib.c camera_screen.size = 720*480; size 248 platform/m10/lib.c camera_screen.size = camera_screen.buffer_size = 960*540; size 255 platform/m10/lib.c camera_screen.size = 720*480; size 262 platform/m10/lib.c camera_screen.size = camera_screen.buffer_size = 1024*768; size 269 platform/m10/lib.c camera_screen.size = 900*600; size 257 platform/m3/lib.c camera_screen.size = camera_screen.buffer_size = 640*480; size 267 platform/m3/lib.c camera_screen.size = 720*480; size 275 platform/m3/lib.c camera_screen.size = camera_screen.buffer_size = 960*540; size 282 platform/m3/lib.c camera_screen.size = 720*480; size 289 platform/m3/lib.c camera_screen.size = camera_screen.buffer_size = 1024*768; size 217 platform/sx280hs/lib.c camera_screen.size = camera_screen.buffer_size = 640*480; size 227 platform/sx280hs/lib.c camera_screen.size = 720*480; size 235 platform/sx280hs/lib.c camera_screen.size = camera_screen.buffer_size = 960*540; size 296 platform/sx60hs/lib.c camera_screen.height, camera_screen.size); size 299 platform/sx60hs/lib.c camera_screen.size = camera_screen.buffer_size = 640*480; size 308 platform/sx60hs/lib.c camera_screen.size = camera_screen.buffer_size = 640*480; size 319 platform/sx60hs/lib.c camera_screen.size = 720*480; size 326 platform/sx60hs/lib.c camera_screen.size = camera_screen.buffer_size = 960*540; size 240 platform/sx700hs/lib.c camera_screen.size = camera_screen.buffer_size = 640*480; size 250 platform/sx700hs/lib.c camera_screen.size = 720*480; size 258 platform/sx700hs/lib.c camera_screen.size = camera_screen.buffer_size = 960*540; size 242 platform/sx710hs/lib.c camera_screen.size = camera_screen.buffer_size = 640*480; size 253 platform/sx710hs/lib.c camera_screen.size = 720*480; size 261 platform/sx710hs/lib.c camera_screen.size = camera_screen.buffer_size = 960*540; size 267 platform/sx710hs/lib.c camera_screen.size = 1024*768; size 274 platform/sx710hs/lib.c camera_screen.size = 900*600; size 236 platform/sx730hs/lib.c camera_screen.size = camera_screen.buffer_size = 640*480; size 247 platform/sx730hs/lib.c camera_screen.size = 720*480; size 255 platform/sx730hs/lib.c camera_screen.size = camera_screen.buffer_size = 960*540; size 261 platform/sx730hs/lib.c camera_screen.size = 1024*768; size 268 platform/sx730hs/lib.c camera_screen.size = 900*600; size 29 tools/capdis.c int size; size 45 tools/capdis.c lst->size = 0; size 113 tools/capdis.c (ls->size)++; size 133 tools/capdis.c (ls->size)--; size 892 tools/capdis.c for(k=0;k<is->insn->size;k++) { size 924 tools/capdis.c if(is->insn->size == 2) { size 926 tools/capdis.c } else if(is->insn->size == 4) { size 144 tools/chdk_dasm.c int size; size 160 tools/chdk_dasm.c lst->size = 0; size 228 tools/chdk_dasm.c (ls->size)++; size 248 tools/chdk_dasm.c (ls->size)--; size 58 tools/dumpchk.c int i,size; size 94 tools/dumpchk.c size=ftell(dumpfile); size 100 tools/dumpchk.c if(size < (int)sizeof(vxworks_start_sig) || size < (int)sizeof(dryos_start_sig)) { size 101 tools/dumpchk.c printf("%s TOO SMALL: 0x%X (%d) bytes\n",dumpname,size,size); size 105 tools/dumpchk.c buf=malloc(size); size 111 tools/dumpchk.c fread(buf, 1, size, dumpfile); size 112 tools/dumpchk.c for(i=0; i<size; i++) { size 113 tools/dumpchk.c if( i+(int)sizeof(vxworks_start_sig) < size) { size 118 tools/dumpchk.c if( i+(int)sizeof(dryos_start_sig) < size) { size 126 tools/dumpchk.c printf("@0x%X (%d) REMAINING 0x%X (%d) bytes\n",i,i,size-i,size-i); size 129 tools/dumpchk.c printf("@Start SIZE 0x%X (%d)\n",size,size); size 134 tools/dumpchk.c if(i==size) { size 135 tools/dumpchk.c printf("%s 0x%X (%d) bytes no sig found\n",dumpname,size,size); size 139 tools/dumpchk.c if(fix && i && i < size) { size 146 tools/dumpchk.c fwrite(buf+i,1,size-i,dumpfile); size 147 tools/dumpchk.c printf(" wrote 0x%X (%d)\n",size-i,size-i); size 178 tools/dumpchk.c printf("%s valid %s 0x%X (%d) bytes\n",dumpname,osname,size,size); size 181 tools/dumpchk.c printf("%s NOT valid %s 0x%X (%d) bytes\n",dumpname,osname,size,size); size 19 tools/dumputil.c if(off >= dump->size) // warn size 27 tools/dumputil.c for(i=*pos; i<dump->size - strlen(string); i++) { size 51 tools/dumputil.c if(off > dump->size) // warn size 125 tools/dumputil.c dump->size=st.st_size; size 126 tools/dumputil.c dump->words = dump->size >> 2; size 9 tools/dumputil.h size_t size; size 43 tools/elf2flt/elf-arm.c if (rela->r_offset > base_sect->size - sizeof(uint32_t)) { size 46 tools/elf2flt/elf-arm.c rela->r_offset, base_sect->size); size 151 tools/elf2flt/elfflt.c if ( base_sect->size <= 0 ) size 246 tools/elf2flt/elfflt.c void dump_section(char* name, unsigned char *ptr, int size ) size 251 tools/elf2flt/elfflt.c for(i=0;i<size;i++) size 302 tools/elf2flt/elfflt.c align4(int size) size 304 tools/elf2flt/elfflt.c if (size%4==0) size 306 tools/elf2flt/elfflt.c return (4-size%4); size 350 tools/elf2flt/elfflt.c rela.r_offset = text.size+8; size 354 tools/elf2flt/elfflt.c offs_div0_from_arm = text.size; size 356 tools/elf2flt/elfflt.c text.size+=sizeof(div0_arm); size 435 tools/elf2flt/elfflt.c text.size = text.relasize = data.size = data.relasize = size 436 tools/elf2flt/elfflt.c rodata.size = rodata.relasize = symtabsize = strtabsize = 0; size 461 tools/elf2flt/elfflt.c text.size = shdr.sh_size; size 469 tools/elf2flt/elfflt.c data.size = shdr.sh_size; size 474 tools/elf2flt/elfflt.c rodata.size = shdr.sh_size; size 492 tools/elf2flt/elfflt.c bss.size = shdr.sh_size; size 508 tools/elf2flt/elfflt.c if(text.size == 0) { size 518 tools/elf2flt/elfflt.c if (bss.size) { size 519 tools/elf2flt/elfflt.c bss.address = (char *)malloc(bss.size); size 522 tools/elf2flt/elfflt.c if (data.size) { size 523 tools/elf2flt/elfflt.c data.address = (char *)malloc(data.size); size 526 tools/elf2flt/elfflt.c if (text.size) { size 527 tools/elf2flt/elfflt.c text.address = (char *)malloc(text.size); size 530 tools/elf2flt/elfflt.c if (rodata.size) { size 531 tools/elf2flt/elfflt.c rodata.address = (char *)malloc(rodata.size); size 540 tools/elf2flt/elfflt.c b_seek_read(text.offset, text.address, text.size); size 541 tools/elf2flt/elfflt.c b_seek_read(data.offset, data.address, data.size); size 542 tools/elf2flt/elfflt.c b_seek_read(rodata.offset, rodata.address, rodata.size); size 545 tools/elf2flt/elfflt.c dump_section( text.name, (unsigned char *)text.address, text.size ); size 546 tools/elf2flt/elfflt.c dump_section( data.name, (unsigned char *)data.address, data.size ); size 547 tools/elf2flt/elfflt.c dump_section( rodata.name, (unsigned char *)rodata.address, rodata.size ); size 562 tools/elf2flt/elfflt.c int flatmainsize = sizeof(flat_hdr)+text.size+div0hack_size+data.size+rodata.size; size 567 tools/elf2flt/elfflt.c flatmainsize += align4(text.size) + align4(data.size) + align4(rodata.size); size 587 tools/elf2flt/elfflt.c memcpy( flat_buf+offset, text.address, text.size ); size 588 tools/elf2flt/elfflt.c DEBUGPRINTF("load .txt to %x (%x->%x)\n",offset,text.size,text.size+align4(text.size)); size 589 tools/elf2flt/elfflt.c offset+=text.size+div0hack_size+align4(text.size); size 592 tools/elf2flt/elfflt.c DEBUGPRINTF("load .rodata to %x (%x->%x)\n",offset,rodata.size,rodata.size+align4(rodata.size)); size 593 tools/elf2flt/elfflt.c memcpy( flat_buf+offset, rodata.address, rodata.size ); size 594 tools/elf2flt/elfflt.c offset+=rodata.size+align4(rodata.size); size 597 tools/elf2flt/elfflt.c DEBUGPRINTF("load .data to %x (%x->%x)\n",offset,data.size,data.size+align4(data.size)); size 598 tools/elf2flt/elfflt.c memcpy( flat_buf+offset, data.address, data.size ); size 599 tools/elf2flt/elfflt.c offset+=data.size+align4(data.size); size 602 tools/elf2flt/elfflt.c DEBUGPRINTF(".bss to %x (%x)\n",offset,bss.size); size 611 tools/elf2flt/elfflt.c flat->bss_size = bss.size; size 34 tools/elf2flt/elfflt.h int size; size 21 tools/elf2flt/fltdump.c void dump_section(char* name, unsigned char *ptr, int size ) size 26 tools/elf2flt/fltdump.c for(i=0;i<size;i++) size 1002 tools/finsig_dryos.c while (j < fw->size) size 4180 tools/finsig_dryos.c if ((idx >= 0) && (idx < fw->size)) size 4225 tools/finsig_dryos.c if ((m >= 0) && (m < fw->size) && (strcmp((char*)(&fw->buf[m]),"Mounter.c") == 0)) size 4233 tools/finsig_dryos.c if ((m >= 0) && (m < fw->size) && (strcmp((char*)(&fw->buf[m]),"Mounter.c") == 0)) size 5080 tools/finsig_dryos.c else if (us==0 && u>fw->base && u<fw->base+fw->size*4-4 && (u&3)==0) size 5897 tools/finsig_dryos.c for (k=0; k<fw->size; k++) size 5937 tools/finsig_dryos.c int found = 0, pos = 0, len = 0, size = 0; size 5938 tools/finsig_dryos.c for (k=0; k<fw->size; k++) size 5946 tools/finsig_dryos.c for (k1 = k + mul; (k1 < fw->size) && (fw->buf[k1] > fw->buf[k1-mul]) && (fw->buf[k1] > fw->sv->min_focus_len) && (fw->buf[k1] < fw->sv->max_focus_len); k1 += mul) ; size 5952 tools/finsig_dryos.c if ((found == 0) || (size < mul) || ((size == mul) && (len < nlen))) size 5957 tools/finsig_dryos.c size = mul; size 5965 tools/finsig_dryos.c if (size == 1) size 5966 tools/finsig_dryos.c bprintf("// each entry contains 1 int value, which is the the zoom focus length.\n",size); size 5968 tools/finsig_dryos.c bprintf("// each entry contains %d int value(s), the first is the zoom focus length.\n",size); size 6170 tools/finsig_dryos.c if ((uint32_t)k < (fw->size*4 - sizeof(ctypes))) size 7451 tools/finsig_dryos.c uint32_t madr = fw->base + (fw->size*4-4); size 7745 tools/finsig_dryos.c if ((k2 > fw->base) && (k2 < (fw->base + fw->size*4 - 1))) size 8182 tools/finsig_dryos.c if (fw->fsize > (fw->size + 256)) size 8185 tools/finsig_dryos.c bprintf("// file size = %.2fMB, should be %.2fMB\n", ((double)fw->size*4.0)/(1024.0*1024.0),((double)fw->fsize*4.0)/(1024.0*1024.0)); size 591 tools/finsig_thumb2.c uint32_t size; size 3419 tools/finsig_thumb2.c blobs[n_blobs].size = bsize; size 3518 tools/finsig_thumb2.c blobs[i].size = bsize; size 6379 tools/finsig_thumb2.c mv->blobs[i].ram_adr+mv->blobs[i].size, size 6381 tools/finsig_thumb2.c mv->blobs[i].size); size 6392 tools/finsig_thumb2.c mv->blobs[i].ram_adr+mv->blobs[i].size, size 6394 tools/finsig_thumb2.c mv->blobs[i].size); size 7140 tools/finsig_thumb2.c int found = 0, pos = 0, len = 0, size = 0; size 7152 tools/finsig_thumb2.c if ((found == 0) || ((size < mul) && (len < ((k1 - k) / mul) + 1))) size 7157 tools/finsig_thumb2.c size = mul; size 7166 tools/finsig_thumb2.c if (size == 1) size 7167 tools/finsig_thumb2.c bprintf("// each entry contains 1 int value, which is the the zoom focus length.\n",size); size 7169 tools/finsig_thumb2.c bprintf("// each entry contains %d int value(s), the first is the zoom focus length.\n",size); size 3162 tools/finsig_vxworks.c if ((idx >= 0) && (idx < fw->size)) size 3207 tools/finsig_vxworks.c if ((m >= 0) && (m < fw->size) && (strcmp((char*)(&fw->buf[m]),"Mounter.c") == 0)) size 3215 tools/finsig_vxworks.c if ((m >= 0) && (m < fw->size) && (strcmp((char*)(&fw->buf[m]),"Mounter.c") == 0)) size 4114 tools/finsig_vxworks.c if (u>fw->base && u<fw->base+fw->size*4-4 && (u&3)==0) size 5233 tools/finsig_vxworks.c if ((uint32_t)k < (fw->size*4 - sizeof(ctypes))) size 5651 tools/finsig_vxworks.c uint32_t madr = fw->base + (fw->size*4-4); size 5835 tools/finsig_vxworks.c if ((k2 > fw->base) && (k2 < (fw->base + fw->size*4 - 1))) size 6248 tools/finsig_vxworks.c if (fw->fsize > (fw->size + 256)) size 6251 tools/finsig_vxworks.c bprintf("// file size = %.2fMB, should be %.2fMB\n", ((double)fw->size*4.0)/(1024.0*1024.0),((double)fw->fsize*4.0)/(1024.0*1024.0)); size 79 tools/firmware_load.c for (i = 0; i < fw->size; i++) size 138 tools/firmware_load.c if ((i >= 0) && (i < fw->size)) size 140 tools/firmware_load.c if ((fw->dryos_ver >= 51) && (fw->alt_base) && (i >= fw->size)) size 143 tools/firmware_load.c if ((i >= 0) && (i < fw->size)) size 152 tools/firmware_load.c if (idx2adr(fw,i)>=fw->base && idx2adr(fw,i)<(fw->base+fw->size*4)) size 225 tools/firmware_load.c if ((i >= 0) && (i < fw->size)) size 227 tools/firmware_load.c if ((fw->dryos_ver >= 51) && (fw->alt_base) && (i >= fw->size)) size 230 tools/firmware_load.c if ((i >= 0) && (i < fw->size)) size 695 tools/firmware_load.c for (k = idx; (k < fw->size) && (k < idx + len); k++) size 721 tools/firmware_load.c for (k = idx; (k < fw->size) && (k < idx + len); k++) size 759 tools/firmware_load.c for (k=0; k<fw->size; k++) size 765 tools/firmware_load.c for (j=0; j<fw->size; j++) size 792 tools/firmware_load.c for (k=0; k<fw->size; k++) size 814 tools/firmware_load.c for (k=ofst+1; k<fw->size; k++) size 944 tools/firmware_load.c fw->size = (ftell(f)+3)/4; size 956 tools/firmware_load.c fw->buf = malloc((fw->size+32)*4); size 957 tools/firmware_load.c k = fread(fw->buf, 4, fw->size, f); size 961 tools/firmware_load.c memset(&fw->buf[fw->size],0xff,32*4); size 43 tools/firmware_load.h int size; // Size of the firmware (as loaded from the dump) size 838 tools/firmware_load_ng.c if(insn->size == 2) { // thumb size 987 tools/firmware_load_ng.c is->size=0; size 997 tools/firmware_load_ng.c is->size=0; size 1003 tools/firmware_load_ng.c is->size=fw->size8 - (p-fw->buf8); size 1025 tools/firmware_load_ng.c return cs_disasm_iter(is->cs_handle, &is->code, &is->size, &is->adr, is->insn); size 1036 tools/firmware_load_ng.c is->code -= is->insn->size; size 1037 tools/firmware_load_ng.c is->adr -= is->insn->size; size 1038 tools/firmware_load_ng.c is->size += is->insn->size; size 1040 tools/firmware_load_ng.c return cs_disasm_iter(is->cs_handle, &is->code, &is->size, &is->adr, is->insn); size 61 tools/firmware_load_ng.h size_t size; // remaining code size size 280 tools/gensig_dryos.c void dump_sig(uint32_t pos, int size, FILE *f) size 288 tools/gensig_dryos.c if (size < 0) size 290 tools/gensig_dryos.c size = -size; size 295 tools/gensig_dryos.c i = fread(buf, 4, size, f); size 297 tools/gensig_dryos.c for (i=0;i<size;++i){ size 309 tools/gensig_dryos.c && (size*100/wcount) > 75){ size 322 tools/gensig_dryos.c printf("\t/* %d/%d */\n",wcount, size); size 331 tools/gensig_dryos.c uint32_t size, lnk_size; size 348 tools/gensig_dryos.c size = strtoul(argv[5], NULL, 0); size 356 tools/gensig_dryos.c dump_sig(pos,size,f); size 360 tools/gensig_dryos.c printf("\t{ -1, %d, -2 },\n",size-1); size 279 tools/gensig_vxworks.c uint32_t size; size 296 tools/gensig_vxworks.c size = strtoul(argv[5], NULL, 0); size 300 tools/gensig_vxworks.c i = fread(buf, 4, size, f); size 305 tools/gensig_vxworks.c for (i=0;i<(int)size;++i){ size 314 tools/gensig_vxworks.c && (size*100/wcount) > 75){ size 327 tools/gensig_vxworks.c printf("\t/* %d/%d */\n",wcount, size); size 97 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int GetParameterData(int id, void *buf, int size); size 98 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int SetParameterData(int id, void *buf, int size); size 169 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void * malloc(int size); size 171 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void * AllocateUncacheableMemory(int size); size 337 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void * exmem_alloc(unsigned int pool_id,unsigned int size,int unk,int unk2); size 340 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void * exmem_ualloc(unsigned int type, unsigned int size, void *allocinf); size 391 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void * wrapped_malloc(int size); size 392 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void * malloc_strictly(int size); size 474 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int cache_flush_range(int is_data, void *addr, unsigned size); // dry <=52 on pre-digic 6 size 475 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void dcache_flush_range(void *addr, unsigned size); // dry >52, or d6/d7 size 476 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void dcache_clean_range(void *addr, unsigned size); // dry >52, or d6/d7 size 477 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void icache_flush_range(void *addr, unsigned size); // dry >52, or d6/d7 size 482 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void *heap_alloc(void *heap, unsigned size); // used by malloc and other heaps size 489 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void zicokick_copy(void *dst, void *src, unsigned size); size 492 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void *umalloc_strictly(unsigned size); size 526 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void *ui_malloc(unsigned size); size 527 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void *ui_malloc_default(unsigned size); size 530 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void *pvm_malloc(void *pool, unsigned size); size 534 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void *pvm_init_pool(void *mem, unsigned size); size 535 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall PTM_RestoreUIProperty_FW(int id, void *buf, int size); // normally calls GetParameterData size 105 tools/ghidra_scripts/datatypes/fw_types.h int (*recv_data)(int handle, char *buf, int size, int, int); // (0xFF9F5500) size 109 tools/makeexport.c int size=cur-cursym; size 111 tools/makeexport.c if ( size>255) {size=255;} size 112 tools/makeexport.c memcpy(symbol,cursym,size); size 113 tools/makeexport.c symbol[size]=0; size 122 tools/makeexport.c for(; size>=0; size--) size 124 tools/makeexport.c if ( symbol[size]>='a' && symbol[size]<='z') size 125 tools/makeexport.c symbol[size]-=0x20; size 231 tools/makeexport.c int f, size; size 237 tools/makeexport.c size = (stat((char*)filename, &st)==0)?st.st_size:0; size 238 tools/makeexport.c if (size) { size 239 tools/makeexport.c buf = (char*)malloc(size+1); size 241 tools/makeexport.c size = read(f, buf, size); size 242 tools/makeexport.c buf[size]=0; size 186 tools/makelang.c int f, size; size 192 tools/makelang.c size = (stat((char*)filename, &st)==0)?st.st_size:0; size 193 tools/makelang.c if (size) { size 194 tools/makelang.c buf = malloc(size+1); size 196 tools/makelang.c size = read(f, buf, size); size 197 tools/makelang.c buf[size]=0; size 85 tools/packfi2/deflate.c local int read_buf OF((z_streamp strm, Bytef *buf, unsigned size)); size 956 tools/packfi2/deflate.c local int read_buf(strm, buf, size) size 959 tools/packfi2/deflate.c unsigned size; size 963 tools/packfi2/deflate.c if (len > size) len = size; size 77 tools/packfi2/zlib.h typedef voidpf (*alloc_func) OF((voidpf opaque, uInt items, uInt size)); size 216 tools/packfi2/zutil.c voidpf zcalloc (voidpf opaque, unsigned items, unsigned size) size 219 tools/packfi2/zutil.c ulg bsize = (ulg)items*size; size 275 tools/packfi2/zutil.c voidpf zcalloc (voidpf opaque, unsigned items, unsigned size) size 278 tools/packfi2/zutil.c return _halloc((long)items, size); size 295 tools/packfi2/zutil.c extern voidp malloc OF((uInt size)); size 296 tools/packfi2/zutil.c extern voidp calloc OF((uInt items, uInt size)); size 300 tools/packfi2/zutil.c voidpf zcalloc (opaque, items, size) size 303 tools/packfi2/zutil.c unsigned size; size 305 tools/packfi2/zutil.c if (opaque) items += size - size; /* make compiler happy */ size 306 tools/packfi2/zutil.c return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) : size 307 tools/packfi2/zutil.c (voidpf)calloc(items, size); size 261 tools/packfi2/zutil.h voidpf zcalloc OF((voidpf opaque, unsigned items, unsigned size)); size 264 tools/packfi2/zutil.h #define ZALLOC(strm, items, size) \ size 265 tools/packfi2/zutil.h (*((strm)->zalloc))((strm)->opaque, (items), (size)) size 164 tools/rawconvert.c void swap_bytes(unsigned char *src, unsigned char *dst, size_t size) size 167 tools/rawconvert.c while(size>1) size 173 tools/rawconvert.c size-=2;