len 970 core/conf.c unsigned int memhash31(unsigned char *mem, int len) len 973 core/conf.c for (; len > 0; mem++, len-- ) len 1486 core/conf.c int ret = CONF_EMPTY, len, len2; len 1521 core/conf.c len = ci[i].size; len 1523 core/conf.c if( len2<len ) len = len2; len 1524 core/conf.c memcpy(ci[i].var, configVal.pInt, len); len 1531 core/conf.c len = strlen(configVal.str); len 1532 core/conf.c if (len<CONF_STR_LEN) len 1534 core/conf.c strncpy(ci[i].var, configVal.str ,len+1); len 390 core/gui_draw.c void draw_hline_simple(coord x, coord y, int len, int px) len 393 core/gui_draw.c if (x < 0) { len += x; x = 0; } len 394 core/gui_draw.c if ((x + len) > camera_screen.width) len = camera_screen.width - x; len 399 core/gui_draw.c offset = rotate_base - offset - len; len 407 core/gui_draw.c len--; len 427 core/gui_draw.c len--; len 434 core/gui_draw.c for (; len>0; len-=2, offset+=2) len 440 core/gui_draw.c for (; len>0; len-=2, offset+=2) len 448 core/gui_draw.c if (len == -1) len 776 core/gui_draw.c void draw_hline(coord x, coord y, int len, color cl) len 779 core/gui_draw.c if (x < 0) { len += x; x = 0; } len 780 core/gui_draw.c if ((x + len) > camera_screen.width) len = camera_screen.width - x; len 784 core/gui_draw.c if ((y == camera_screen.height-1) && ((x+len) >= camera_screen.width-1)) { x--; len--; } // Skip guard pixel len 788 core/gui_draw.c if ((y == 0) && (x == 0)) { x++; len--; } // Skip guard pixel len 792 core/gui_draw.c len = ASPECT_XCORRECTION(len); // Scale the line length if needed len 793 core/gui_draw.c for (; len>0; len--, offset++) len 797 core/gui_draw.c void draw_vline(coord x, coord y, int len, color cl) len 800 core/gui_draw.c if (y < 0) { len += y; y = 0; } len 801 core/gui_draw.c if ((y + len) > camera_screen.height) len = camera_screen.height - y; len 802 core/gui_draw.c for (; len>0; len--, y++) len 1114 core/gui_draw.c int len; len 1125 core/gui_draw.c len = 1; len 1130 core/gui_draw.c draw_rectangle(x+(ii-len)*xsize,y+i*ysize,x+ii*xsize-1,y+i*ysize+ysize-1,(last)?clf:clb,RECT_BORDER0|DRAW_FILLED); len 1132 core/gui_draw.c len = 1; len 1136 core/gui_draw.c len++; len 1139 core/gui_draw.c draw_rectangle(x+(ii-len)*xsize,y+i*ysize,x+ii*xsize-1,y+i*ysize+ysize-1,(last)?clf:clb,RECT_BORDER0|DRAW_FILLED); len 1176 core/gui_draw.c int len; len 1201 core/gui_draw.c len = 1; len 1206 core/gui_draw.c draw_rectangle(x+(ii-len)*xsize,y+i*ysize,x+ii*xsize-1,y+i*ysize+ysize-1,(last)?clf:clb,RECT_BORDER0|DRAW_FILLED); len 1208 core/gui_draw.c len = 1; len 1212 core/gui_draw.c len++; len 1215 core/gui_draw.c draw_rectangle(x+(ii-len)*xsize,y+i*ysize,x+ii*xsize-1,y+i*ysize+ysize-1,(last)?clf:clb,RECT_BORDER0|DRAW_FILLED); len 116 core/gui_draw.h extern void draw_hline(coord x, coord y, int len, color cl); len 117 core/gui_draw.h extern void draw_vline(coord x, coord y, int len, color cl); len 1211 core/gui_osd.c int r,i, p, len; len 1234 core/gui_osd.c len = get_parameter_size(p); len 1235 core/gui_osd.c if ((len==1)||(len==2)||(len==4)){ len 1236 core/gui_osd.c get_parameter_data(p, &r, len); len 1237 core/gui_osd.c sprintf(osd_buf, "%3d: %30d :%2d ", p, r,len); len 1240 core/gui_osd.c if (len>=(int)sizeof(s)) count=sizeof(s)-1; else count=len; len 1243 core/gui_osd.c sprintf(osd_buf, "%3d: %30s :%2d ", p, s,len); len 287 core/gui_script.c int len = skip_tochar(ptr, end) - ptr; len 294 core/gui_script.c p->option_buf = malloc(len+1); len 295 core/gui_script.c strncpy(p->option_buf, ptr, len); len 296 core/gui_script.c p->option_buf[len] = 0; len 323 core/gui_script.c ptr += len; len 202 core/lib_thumb.c const int len = strlen(s2); len 206 core/lib_thumb.c if (strncmp(p, s2, len) == 0) len 334 core/memmgmt.c allocinf->len = exmem_alloc_table[type].len; len 17 include/exmem.h unsigned int len; len 38 include/font.h extern int rbf_draw_string_len(int x, int y, int len, const char *str, twoColors cl); len 39 include/font.h extern int rbf_draw_string_right_len(int x, int y, int len, const char *str, twoColors cl); len 40 include/font.h extern int rbf_draw_menu_header(int x, int y, int len, char symbol, const char *str, twoColors cl); len 20 include/std/stdio.h unsigned len; // +4 verfied in Fseek_FileStream len 156 lib/font/rbf_font.c int font_read(int fd, unsigned char *dest, int len) len 164 lib/font/rbf_font.c while (len) len 168 lib/font/rbf_font.c if (to_read > len) to_read = len; len 176 lib/font/rbf_font.c len -= to_read; len 427 lib/font/rbf_font.c int rbf_draw_string_len(int x, int y, int len, const char *str, twoColors cl) { len 429 lib/font/rbf_font.c int l = rbf_draw_clipped_string(x, y, str, cl, 0, len); len 432 lib/font/rbf_font.c if (l < len) len 433 lib/font/rbf_font.c draw_rectangle(x+l, y, x+len-1, y+rbf_font->hdr.height-1, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); len 435 lib/font/rbf_font.c return len; len 439 lib/font/rbf_font.c int rbf_draw_string_right_len(int x, int y, int len, const char *str, twoColors cl) { len 441 lib/font/rbf_font.c int l = len - rbf_str_clipped_width(str, 0, len); len 448 lib/font/rbf_font.c l = rbf_draw_clipped_string(x, y, str, cl, l, len); len 454 lib/font/rbf_font.c int rbf_draw_menu_header(int x, int y, int len, char symbol, const char *str, twoColors cl) { len 464 lib/font/rbf_font.c l = rbf_str_clipped_width(str, l, len); len 468 lib/font/rbf_font.c lr = len-l-ll; len 470 lib/font/rbf_font.c int right = x+len-1, bottom = y+rbf_font_height()-1; len 493 lib/font/rbf_font.c ll = rbf_draw_clipped_string(x, y, str, cl, ll, len); len 53 lib/lang/fileutil.c int len = ssize - lsize; len 54 lib/lang/fileutil.c if (len > 512) len = 512; len 55 lib/lang/fileutil.c rsize += read(fd, ubuf, len); len 56 lib/lang/fileutil.c memcpy(buf+lsize,ubuf,len); len 57 lib/lang/fileutil.c lsize += len; len 343 lib/lua/lapi.c LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) { len 348 lib/lua/lapi.c if (len != NULL) *len = 0; len 356 lib/lua/lapi.c if (len != NULL) *len = tsvalue(o)->len; len 364 lib/lua/lapi.c case LUA_TSTRING: return tsvalue(o)->len; len 365 lib/lua/lapi.c case LUA_TUSERDATA: return uvalue(o)->len; len 370 lib/lua/lapi.c l = (luaV_tostring(L, o) ? tsvalue(o)->len : 0); len 445 lib/lua/lapi.c LUA_API void lua_pushlstring (lua_State *L, const char *s, size_t len) { len 448 lib/lua/lapi.c setsvalue2s(L, L->top, luaS_newlstr(L, s, len)); len 158 lib/lua/lauxlib.c LUALIB_API const char *luaL_checklstring (lua_State *L, int narg, size_t *len) { len 159 lib/lua/lauxlib.c const char *s = lua_tolstring(L, narg, len); len 166 lib/lua/lauxlib.c const char *def, size_t *len) { len 168 lib/lua/lauxlib.c if (len) len 169 lib/lua/lauxlib.c *len = (def ? strlen(def) : 0); len 172 lib/lua/lauxlib.c else return luaL_checklstring(L, narg, len); len 70 lib/lua/ldump.c size_t size=s->tsv.len+1; /* include trailing '\0' */ len 203 lib/lua/lobject.c size_t len = strcspn(source, "\n\r"); /* stop at first newline */ len 205 lib/lua/lobject.c if (len > bufflen) len = bufflen; len 207 lib/lua/lobject.c if (source[len] != '\0') { /* must truncate? */ len 208 lib/lua/lobject.c strncat(out, source, len); len 205 lib/lua/lobject.h size_t len; len 221 lib/lua/lobject.h size_t len; len 377 lib/lua/lobject.h LUAI_FUNC void luaO_chunkid (char *out, const char *source, size_t len); len 60 lib/lua/lparser.c luaX_newstring(ls, getstr(ts), ts->tsv.len); len 57 lib/lua/lstring.c ts->tsv.len = l; len 86 lib/lua/lstring.c if (ts->tsv.len == l && (memcmp(str, getstr(ts), l) == 0)) { len 103 lib/lua/lstring.c u->uv.len = s; len 16 lib/lua/lstring.h #define sizestring(s) (sizeof(union TString)+((s)->len+1)*sizeof(char)) len 18 lib/lua/lstring.h #define sizeudata(u) (sizeof(union Udata)+(u)->len) len 36 lib/lua/lstrlib.c static ptrdiff_t posrelat (ptrdiff_t pos, size_t len) { len 38 lib/lua/lstrlib.c if (pos < 0) pos += (ptrdiff_t)len + 1; len 177 lib/lua/lstrlib.c ptrdiff_t len; len 188 lib/lua/lstrlib.c if (l < 0 || l >= ms->level || ms->capture[l].len == CAP_UNFINISHED) len 197 lib/lua/lstrlib.c if (ms->capture[level].len == CAP_UNFINISHED) return level; len 335 lib/lua/lstrlib.c ms->capture[level].len = what; len 347 lib/lua/lstrlib.c ms->capture[l].len = s - ms->capture[l].init; /* close capture */ len 349 lib/lua/lstrlib.c ms->capture[l].len = CAP_UNFINISHED; /* undo capture */ len 355 lib/lua/lstrlib.c size_t len; len 357 lib/lua/lstrlib.c len = ms->capture[l].len; len 358 lib/lua/lstrlib.c if ((size_t)(ms->src_end-s) >= len && len 359 lib/lua/lstrlib.c memcmp(ms->capture[l].init, s, len) == 0) len 360 lib/lua/lstrlib.c return s+len; len 475 lib/lua/lstrlib.c ptrdiff_t l = ms->capture[i].len; len 149 lib/lua/lua.h LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); len 221 lib/lua/lvm.c size_t ll = ls->tsv.len; len 223 lib/lua/lvm.c size_t lr = rs->tsv.len; len 228 lib/lua/lvm.c size_t len = strlen(l); /* index of first `\0' in both strings */ len 229 lib/lua/lvm.c if (len == lr) /* r is finished? */ len 230 lib/lua/lvm.c return (len == ll) ? 0 : 1; len 231 lib/lua/lvm.c else if (len == ll) /* l is finished? */ len 234 lib/lua/lvm.c len++; len 235 lib/lua/lvm.c l += len; ll -= len; r += len; lr -= len; len 305 lib/lua/lvm.c } else if (tsvalue(top-1)->len == 0) /* second op is empty? */ len 309 lib/lua/lvm.c size_t tl = tsvalue(top-1)->len; len 314 lib/lua/lvm.c size_t l = tsvalue(top-n-1)->len; len 321 lib/lua/lvm.c size_t l = tsvalue(top-i)->len; len 538 lib/lua/lvm.c setnvalue(ra, cast_num(tsvalue(rb)->len)); len 26 lib/lua/print.c size_t i,n=ts->tsv.len; len 442 lib/ubasic/tokenizer.c tokenizer_string(char *dest, int len) len 455 lib/ubasic/tokenizer.c if(len < string_len) { len 456 lib/ubasic/tokenizer.c string_len = len; len 463 lib/ubasic/tokenizer.c tokenizer_label(char *dest, int len) len 478 lib/ubasic/tokenizer.c if(len < string_len) { len 479 lib/ubasic/tokenizer.c string_len = len; len 255 lib/ubasic/tokenizer.h void tokenizer_string(char *dest, int len); len 256 lib/ubasic/tokenizer.h void tokenizer_label(char *dest, int len); len 5 modules/bitvector.c bit_vector_t* bv_create(int len, int nbits) len 11 modules/bitvector.c bm->ptrLen = len * nbits / 8 + 1; len 12 modules/bitvector.c bm->nElem = len; len 12 modules/bitvector.h bit_vector_t* bv_create(int len, int nbits); len 99 modules/exmem_inspector.c unsigned int len; len 127 modules/exmem_inspector.c if (exm_prev[n].addr!=eaitmp.addr || exm_prev[n].len!=eaitmp.len) { len 132 modules/exmem_inspector.c exl[exlpnt].len = eaitmp.len; len 137 modules/exmem_inspector.c exm_prev[n].len=eaitmp.len; len 184 modules/exmem_inspector.c sprintf(txt,"%d,%s,%08x,%08x\n", exl[n].tim, name, (unsigned int)exl[n].adr, exl[n].len); len 327 modules/exmem_inspector.c sprintf(txt,"%02d: %-17s %08x %8x", idx, name, (unsigned int)eai.addr, eai.len); len 330 modules/exmem_inspector.c sprintf(txt,"%02d: %-17s %08x %08x", idx, name, (unsigned int)eai.addr, (unsigned int)eai.addr+eai.len); len 357 modules/exmem_inspector.c sprintf(txt,"%06d: %-17s %08x %8x", exl[idx].tim, name, (unsigned int)exl[idx].adr, exl[idx].len); len 360 modules/exmem_inspector.c sprintf(txt,"%06d: %-17s %08x %08x", exl[idx].tim, name, (unsigned int)exl[idx].adr, (unsigned int)exl[idx].adr+exl[idx].len); len 74 modules/eyefi.c u8 len; len 176 modules/eyefi.c int len = strlen(ascii); len 180 modules/eyefi.c for (i = 0; i < len; i += 2) len 222 modules/eyefi.c key->len = pass_len/2; len 223 modules/eyefi.c memcpy(&key->key[0], hex_pass, key->len); len 228 modules/eyefi.c key->len = WPA_KEY_BYTES; len 31 modules/eyefi.h void md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac); len 32 modules/eyefi.h void hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac); len 648 modules/file_shelter.c if (!ai.len) { len 651 modules/file_shelter.c if (ai.len-cushion < storageneed) { len 655 modules/file_shelter.c sprintf(buf,"%s need %x got %x",exmemtypes[i],storageneed,ai.len); len 162 modules/games/gui_sokoban.c int start,len; len 164 modules/games/gui_sokoban.c len=level_length_list[lvl]; len 172 modules/games/gui_sokoban.c buf=malloc(len+1); len 183 modules/games/gui_sokoban.c fread(buf,1,len,fd); len 184 modules/games/gui_sokoban.c buf[len]=0; len 322 modules/games/gui_sokoban.c unsigned len = p - (buf + level_start_list[num_levels]); len 324 modules/games/gui_sokoban.c if ( len > 255 ) { len 327 modules/games/gui_sokoban.c level_length_list[num_levels] = (unsigned char)len; len 987 modules/luascript.c unsigned len; len 990 modules/luascript.c str = luaL_checklstring( L, 2, &len ); len 991 modules/luascript.c if(str && len > 0) { len 992 modules/luascript.c lua_pushboolean( L, (set_property_case(prop_id,(void *)str,len) == 0)); len 31 modules/md5.c const u8 *addr[], const size_t *len, u8 *mac) len 75 modules/md5.c _len[i + 1] = len[i]; len 121 modules/md5.c unsigned len); len 137 modules/md5.c void md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) len 144 modules/md5.c MD5Update(&ctx, addr[i], len[i]); len 168 modules/md5.c #define byteReverse(buf, len) /* Nothing */ len 204 modules/md5.c void MD5Update(struct MD5Context *ctx, unsigned char const *buf, unsigned len) len 211 modules/md5.c if ((ctx->bits[0] = t + ((u32) len << 3)) < t) len 213 modules/md5.c ctx->bits[1] += len >> 29; len 223 modules/md5.c if (len < t) { len 224 modules/md5.c os_memcpy(p, buf, len); len 231 modules/md5.c len -= t; len 235 modules/md5.c while (len >= 64) { len 240 modules/md5.c len -= 64; len 245 modules/md5.c os_memcpy(ctx->in, buf, len); len 119 modules/module_load.c int b_read(int fd, char* buf, int len) len 123 modules/module_load.c while (now && loaded<len) len 125 modules/module_load.c now = len - loaded; len 97 modules/raw_merge.c int len = fromDNG; len 98 modules/raw_merge.c while (len > 0) len 100 modules/raw_merge.c unsigned l = len; len 104 modules/raw_merge.c len -= l; len 469 modules/raw_merge.c int len = destDNG; len 470 modules/raw_merge.c while (len > 0) len 472 modules/raw_merge.c unsigned l = len; len 476 modules/raw_merge.c len -= l; len 22 modules/sha1.c void sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac); len 36 modules/sha1.c const u8 *addr[], const size_t *len, u8 *mac) len 79 modules/sha1.c _len[i + 1] = len[i]; len 134 modules/sha1.c size_t len[4]; len 137 modules/sha1.c len[0] = label_len; len 139 modules/sha1.c len[1] = 1; len 141 modules/sha1.c len[2] = data_len; len 143 modules/sha1.c len[3] = 1; len 149 modules/sha1.c hmac_sha1_vector(key, key_len, 4, addr, len, len 153 modules/sha1.c hmac_sha1_vector(key, key_len, 4, addr, len, len 186 modules/sha1.c size_t len[5]; len 189 modules/sha1.c len[0] = 0; len 191 modules/sha1.c len[1] = label_len + 1; len 193 modules/sha1.c len[2] = seed_len; len 195 modules/sha1.c len[3] = 2; len 197 modules/sha1.c len[4] = 1; len 205 modules/sha1.c hmac_sha1_vector(key, key_len, 5, addr, len, hash); len 213 modules/sha1.c len[0] = SHA1_MAC_LEN; len 308 modules/sha1.c size_t len[2]; len 312 modules/sha1.c len[0] = ssid_len; len 314 modules/sha1.c len[1] = 4; len 326 modules/sha1.c hmac_sha1_vector((u8 *) passphrase, passphrase_len, 2, addr, len, tmp); len 382 modules/sha1.c static void SHA1Update(struct SHA1Context *context, const void *data, u32 len); len 394 modules/sha1.c void sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, len 402 modules/sha1.c SHA1Update(&ctx, addr[i], len[i]); len 661 modules/sha1.c void SHA1Update(SHA1_CTX* context, const void *_data, u32 len) len 670 modules/sha1.c if ((context->count[0] += len << 3) < (len << 3)) len 672 modules/sha1.c context->count[1] += (len >> 29); len 673 modules/sha1.c if ((j + len) > 63) { len 676 modules/sha1.c for ( ; i + 63 < len; i += 64) { len 682 modules/sha1.c memcpy(&context->buffer[j], &data[i], len - i); len 100 platform/generic/main.c static int my_ncmp(const char *s1, const char *s2, long len) len 103 platform/generic/main.c for (i=0;i<len;i++){ len 210 platform/generic/main.c int (*_tyWriteOrig)(DEV_HDR *hdr, char *buf, int len); len 213 platform/generic/main.c int hook_tyWriteOrig(DEV_HDR *hdr, char *buf, int len) len 218 platform/generic/main.c fwrite(buf, 1, len, fd); len 222 platform/generic/main.c return _tyWriteOrig(hdr, buf, len); len 131 platform/ixus100_sd780/main.c int (*_tyWriteOrig)(DEV_HDR *hdr, char *buf, int len); len 134 platform/ixus100_sd780/main.c int hook_tyWriteOrig(DEV_HDR *hdr, char *buf, int len) len 139 platform/ixus100_sd780/main.c fwrite(buf, 1, len, fd); len 143 platform/ixus100_sd780/main.c return _tyWriteOrig(hdr, buf, len); len 61 platform/ixus130_sd1400/sub/100a/led.c void led_dumpx(long * mem, ulong len, ulong delay) { len 64 platform/ixus130_sd1400/sub/100a/led.c for (i = 0; i < len; ++i) { len 17 platform/ixus130_sd1400/sub/100a/led.h void led_dumpx(long * mem, ulong len, ulong delay); len 36 platform/ixus130_sd1400/sub/100a/led.h #define led_dump(mem, len) led_dumpx(mem, len, DEFAULT_DELAY) len 92 platform/ixus30_sd200/lib.c long _GetPropertyCase(long cse, void *ptr, long len){ len 94 platform/ixus30_sd200/lib.c if (len==sizeof(long)){ len 96 platform/ixus30_sd200/lib.c }else if (len==sizeof(short)){ len 102 platform/ixus30_sd200/lib.c return _GetPropertyCase_orig(cse, ptr, len); len 107 platform/ixus30_sd200/lib.c long _SetPropertyCase(long cse, void *ptr, long len){ len 115 platform/ixus30_sd200/lib.c return _SetPropertyCase_orig(cse, ptr, len); len 90 platform/ixus30_sd200/main.c static int my_ncmp(const char *s1, const char *s2, long len) len 93 platform/ixus30_sd200/main.c for (i=0;i<len;i++) len 234 platform/ixus30_sd200/main.c int (*_tyWriteOrig)(DEV_HDR *hdr, char *buf, int len); len 237 platform/ixus30_sd200/main.c int hook_tyWriteOrig(DEV_HDR *hdr, char *buf, int len) len 242 platform/ixus30_sd200/main.c fwrite(buf, 1, len, fd); len 246 platform/ixus30_sd200/main.c return _tyWriteOrig(hdr, buf, len); len 91 platform/ixus40_sd300/lib.c long _GetPropertyCase(long cse, void *ptr, long len){ len 93 platform/ixus40_sd300/lib.c if (len==sizeof(long)){ len 95 platform/ixus40_sd300/lib.c }else if (len==sizeof(short)){ len 101 platform/ixus40_sd300/lib.c return _GetPropertyCase_orig(cse, ptr, len); len 106 platform/ixus40_sd300/lib.c long _SetPropertyCase(long cse, void *ptr, long len){ len 111 platform/ixus40_sd300/lib.c return _SetPropertyCase_orig(cse, ptr, len); len 92 platform/ixus40_sd300/main.c static int my_ncmp(const char *s1, const char *s2, long len) len 95 platform/ixus40_sd300/main.c for (i=0;i<len;i++) len 234 platform/ixus40_sd300/main.c int (*_tyWriteOrig)(DEV_HDR *hdr, char *buf, int len); len 237 platform/ixus40_sd300/main.c int hook_tyWriteOrig(DEV_HDR *hdr, char *buf, int len) len 242 platform/ixus40_sd300/main.c fwrite(buf, 1, len, fd); len 246 platform/ixus40_sd300/main.c return _tyWriteOrig(hdr, buf, len); len 88 platform/ixus50_sd400/main.c static int my_ncmp(const char *s1, const char *s2, long len) len 91 platform/ixus50_sd400/main.c for (i=0;i<len;i++){ len 88 platform/ixus700_sd500/main.c static int my_ncmp(const char *s1, const char *s2, long len) len 91 platform/ixus700_sd500/main.c for (i=0;i<len;i++){ len 34 platform/ixus80_sd1100/sub/100c/debug.c void write_crash(char* buf, int len) { len 35 platform/ixus80_sd1100/sub/100c/debug.c write(crash_fd, buf, len); len 34 platform/ixus80_sd1100/sub/101a/debug.c void write_crash(char* buf, int len) { len 35 platform/ixus80_sd1100/sub/101a/debug.c write(crash_fd, buf, len); len 128 platform/ixus95_sd1200/main.c int (*_tyWriteOrig)(DEV_HDR *hdr, char *buf, int len); len 131 platform/ixus95_sd1200/main.c int hook_tyWriteOrig(DEV_HDR *hdr, char *buf, int len) len 136 platform/ixus95_sd1200/main.c fwrite(buf, 1, len, fd); len 140 platform/ixus95_sd1200/main.c return _tyWriteOrig(hdr, buf, len); len 89 platform/s2is/main.c static int my_ncmp(const char *s1, const char *s2, long len) len 92 platform/s2is/main.c for (i=0;i<len;i++){ len 103 platform/s80/main.c static int my_ncmp(const char *s1, const char *s2, long len) len 106 platform/s80/main.c for (i=0;i<len;i++){ len 1144 tools/code_gen.c size_t len = st.st_size; len 1155 tools/code_gen.c char *def = malloc(len+1); len 1163 tools/code_gen.c size_t n = fread(def, 1, len, fp); len 70 tools/elf2flt/myio.c int b_seek_read(long offset, char *buf, int len) len 73 tools/elf2flt/myio.c return b_read(buf, len); len 22 tools/elf2flt/myio.h int b_seek_read(long offset, char *buf, int len); len 640 tools/finsig_dryos.c int search_saved_sig(firmware *fw, char *sig, int (*func)(firmware*, int, int), int v, int ofst, int len) len 646 tools/finsig_dryos.c for (k=idx+ofst; k<idx+ofst+len; k++) len 3162 tools/finsig_dryos.c for (p = br->p, j = br->off; j < br->off+br->len-nlen/4; p++, j++) len 3186 tools/finsig_dryos.c for (p = (char*)br->p, j = 0; j < br->len*4-nlen; p++, j++) len 3210 tools/finsig_dryos.c for (p = br->p, j = br->off; j < br->off+br->len; p++, j++) len 4157 tools/finsig_dryos.c for (p = n->p, i = 0; i < n->len; p++, i++) len 5937 tools/finsig_dryos.c int found = 0, pos = 0, len = 0, size = 0; len 5952 tools/finsig_dryos.c if ((found == 0) || (size < mul) || ((size == mul) && (len < nlen))) len 5956 tools/finsig_dryos.c len = nlen; len 5969 tools/finsig_dryos.c bprintf("// there are %d entries in the table - set NUM_FL to %d\n",len,len); len 7140 tools/finsig_thumb2.c int found = 0, pos = 0, len = 0, size = 0; len 7152 tools/finsig_thumb2.c if ((found == 0) || ((size < mul) && (len < ((k1 - k) / mul) + 1))) len 7156 tools/finsig_thumb2.c len = ((k1 - k) / mul) + 1; len 7170 tools/finsig_thumb2.c bprintf("// there are %d entries in the table - set NUM_FL to %d\n",len,len); len 602 tools/finsig_vxworks.c int search_saved_sig(firmware *fw, char *sig, int (*func)(firmware*, int, int), int v, int ofst, int len) len 608 tools/finsig_vxworks.c for (k=idx+ofst; k<idx+ofst+len; k++) len 2075 tools/finsig_vxworks.c for (p = br->p, j = br->off; j < br->off+br->len-nlen/4; p++, j++) len 2099 tools/finsig_vxworks.c for (p = (char*)br->p, j = 0; j < br->len*4-nlen; p++, j++) len 2123 tools/finsig_vxworks.c for (p = br->p, j = br->off; j < br->off+br->len; p++, j++) len 3139 tools/finsig_vxworks.c for (p = n->p, i = 0; i < n->len; p++, i++) len 58 tools/firmware_load.c n->len = l; len 652 tools/firmware_load.c for (p = br->p, j = 0; j < br->len - nlen/4; j++, p++) len 679 tools/firmware_load.c for (k = p->off*4; k < (p->off + p->len)*4; k++) len 692 tools/firmware_load.c int find_inst(firmware *fw, int (*inst)(firmware*,int), int idx, int len) len 695 tools/firmware_load.c for (k = idx; (k < fw->size) && (k < idx + len); k++) len 705 tools/firmware_load.c int find_inst_rev(firmware *fw, int (*inst)(firmware*,int), int idx, int len) len 708 tools/firmware_load.c for (k = idx; (k > 0) && (k > idx - len); k--) len 718 tools/firmware_load.c int find_Nth_inst(firmware *fw, int (*inst)(firmware*,int), int idx, int len, int N) len 721 tools/firmware_load.c for (k = idx; (k < fw->size) && (k < idx + len); k++) len 733 tools/firmware_load.c int find_Nth_inst_rev(firmware *fw, int (*inst)(firmware*,int), int idx, int len, int N) len 736 tools/firmware_load.c for (k = idx; (k > 0) && (k > idx - len); k--) len 881 tools/firmware_load.c int search_fw(firmware *fw, int (*func)(firmware*, int, uint32_t, uint32_t), uint32_t v1, uint32_t v2, int len) len 887 tools/firmware_load.c for (k = p->off; k <= p->off + p->len - len; k++) len 909 tools/firmware_load.c for (k = p->off*4; k < (p->off + p->len)*4; k++) len 26 tools/firmware_load.h int len; len 156 tools/firmware_load.h int find_inst(firmware *fw, int (*inst)(firmware*,int), int idx, int len); len 158 tools/firmware_load.h int find_inst_rev(firmware *fw, int (*inst)(firmware*,int), int idx, int len); len 160 tools/firmware_load.h int find_Nth_inst(firmware *fw, int (*inst)(firmware*,int), int idx, int len, int N); len 162 tools/firmware_load.h int find_Nth_inst_rev(firmware *fw, int (*inst)(firmware*,int), int idx, int len, int N); len 175 tools/firmware_load.h int search_fw(firmware *fw, int (*func)(firmware*, int, uint32_t, uint32_t), uint32_t v1, uint32_t v2, int len); len 18 tools/firmware_load_ng.c n->len = l; len 87 tools/firmware_load_ng.c if(i >= br->off && i < br->off + br->len) { len 109 tools/firmware_load_ng.c for (p = br->p, j = 0; j < br->len - nlen/4; j++, p++) len 132 tools/firmware_load_ng.c uint32_t find_next_bytes_range(firmware *fw, const void *bytes, size_t len, uint32_t start_adr, uint32_t max_adr) len 157 tools/firmware_load_ng.c for (; k < (p->off + p->len)*4; k++) len 159 tools/firmware_load_ng.c if (memcmp(fw->buf8+k,bytes,len) == 0) { len 174 tools/firmware_load_ng.c int find_bytes_all(firmware *fw, const void *bytes, size_t len, uint32_t adr, uint32_t *result, int max) len 177 tools/firmware_load_ng.c for(i=0,adr=find_next_bytes_range(fw,bytes,len,0,0); adr && (i < max); adr=find_next_bytes_range(fw,bytes,len,adr+len,0),i++) { len 1154 tools/firmware_load_ng.c uint32_t *br_end = br->p + br->len; len 2151 tools/firmware_load_ng.c for (k = p->off*4; k < (p->off + p->len)*4; k++) len 2182 tools/firmware_load_ng.c uint32_t len=end-start; len 2183 tools/firmware_load_ng.c if(len > 0xFFFFFFFF - src_start) { len 2184 tools/firmware_load_ng.c fprintf(stderr,"fw_add_adr_range: range too long %d\n",len); len 2187 tools/firmware_load_ng.c if(len > fw->size8 - (start - fw->base)) { len 2188 tools/firmware_load_ng.c fprintf(stderr,"fw_add_adr_range: range outside of dump %d\n",len); len 2195 tools/firmware_load_ng.c r->bytes=len; len 39 tools/firmware_load_ng.h int len; len 180 tools/firmware_load_ng.h uint32_t find_next_bytes_range(firmware *fw, const void *bytes, size_t len, uint32_t start_adr, uint32_t max_adr); len 184 tools/firmware_load_ng.h int find_bytes_all(firmware *fw, const void *bytes, size_t len, uint32_t adr, uint32_t *result, int maxmatch); len 16 tools/gen_conf_lua.c int len = 0; len 21 tools/gen_conf_lua.c len++; len 25 tools/gen_conf_lua.c return (eof == 0) || (len > 0); len 134 tools/ghidra_scripts/datatypes/fw_types.h unsigned len; // +4 verfied in Fseek_FileStream len 57 tools/packfi2/adler32.c uLong ZEXPORT adler32(adler, buf, len) len 60 tools/packfi2/adler32.c uInt len; len 70 tools/packfi2/adler32.c if (len == 1) { len 85 tools/packfi2/adler32.c if (len < 16) { len 86 tools/packfi2/adler32.c while (len--) { len 97 tools/packfi2/adler32.c while (len >= NMAX) { len 98 tools/packfi2/adler32.c len -= NMAX; len 109 tools/packfi2/adler32.c if (len) { /* avoid modulos if none remaining */ len 110 tools/packfi2/adler32.c while (len >= 16) { len 111 tools/packfi2/adler32.c len -= 16; len 115 tools/packfi2/adler32.c while (len--) { len 409 tools/packfi2/aes128.c void aes128_cbc_encrypt( void *buffer, const unsigned char *expkey, const void *iv, int len ) len 416 tools/packfi2/aes128.c while( len > 0 ){ len 421 tools/packfi2/aes128.c len -= 16; len 425 tools/packfi2/aes128.c void aes128_cbc_decrypt( void *buffer, const unsigned char *expkey, const void *iv, int len ) len 433 tools/packfi2/aes128.c while( len > 0 ){ len 439 tools/packfi2/aes128.c len -= 16; len 7 tools/packfi2/aes128.h void aes128_cbc_encrypt( void *buffer, const unsigned char *expkey, const void *iv, int len ); len 8 tools/packfi2/aes128.h void aes128_cbc_decrypt( void *buffer, const unsigned char *expkey, const void *iv, int len ); len 219 tools/packfi2/crc32.c unsigned long ZEXPORT crc32(crc, buf, len) len 222 tools/packfi2/crc32.c unsigned len; len 237 tools/packfi2/crc32.c return crc32_little(crc, buf, len); len 239 tools/packfi2/crc32.c return crc32_big(crc, buf, len); len 243 tools/packfi2/crc32.c while (len >= 8) { len 245 tools/packfi2/crc32.c len -= 8; len 247 tools/packfi2/crc32.c if (len) do { len 249 tools/packfi2/crc32.c } while (--len); len 262 tools/packfi2/crc32.c local unsigned long crc32_little(crc, buf, len) len 265 tools/packfi2/crc32.c unsigned len; len 272 tools/packfi2/crc32.c while (len && ((ptrdiff_t)buf & 3)) { len 274 tools/packfi2/crc32.c len--; len 278 tools/packfi2/crc32.c while (len >= 32) { len 280 tools/packfi2/crc32.c len -= 32; len 282 tools/packfi2/crc32.c while (len >= 4) { len 284 tools/packfi2/crc32.c len -= 4; len 288 tools/packfi2/crc32.c if (len) do { len 290 tools/packfi2/crc32.c } while (--len); len 302 tools/packfi2/crc32.c local unsigned long crc32_big(crc, buf, len) len 305 tools/packfi2/crc32.c unsigned len; len 312 tools/packfi2/crc32.c while (len && ((ptrdiff_t)buf & 3)) { len 314 tools/packfi2/crc32.c len--; len 319 tools/packfi2/crc32.c while (len >= 32) { len 321 tools/packfi2/crc32.c len -= 32; len 323 tools/packfi2/crc32.c while (len >= 4) { len 325 tools/packfi2/crc32.c len -= 4; len 330 tools/packfi2/crc32.c if (len) do { len 332 tools/packfi2/crc32.c } while (--len); len 535 tools/packfi2/deflate.c unsigned len = strm->state->pending; len 537 tools/packfi2/deflate.c if (len > strm->avail_out) len = strm->avail_out; len 538 tools/packfi2/deflate.c if (len == 0) return; len 540 tools/packfi2/deflate.c zmemcpy(strm->next_out, strm->state->pending_out, len); len 541 tools/packfi2/deflate.c strm->next_out += len; len 542 tools/packfi2/deflate.c strm->state->pending_out += len; len 543 tools/packfi2/deflate.c strm->total_out += len; len 544 tools/packfi2/deflate.c strm->avail_out -= len; len 545 tools/packfi2/deflate.c strm->state->pending -= len; len 961 tools/packfi2/deflate.c unsigned len = strm->avail_in; len 963 tools/packfi2/deflate.c if (len > size) len = size; len 964 tools/packfi2/deflate.c if (len == 0) return 0; len 966 tools/packfi2/deflate.c strm->avail_in -= len; len 969 tools/packfi2/deflate.c strm->adler = adler32(strm->adler, strm->next_in, len); len 973 tools/packfi2/deflate.c strm->adler = crc32(strm->adler, strm->next_in, len); len 976 tools/packfi2/deflate.c zmemcpy(buf, strm->next_in, len); len 977 tools/packfi2/deflate.c strm->next_in += len; len 978 tools/packfi2/deflate.c strm->total_in += len; len 980 tools/packfi2/deflate.c return (int)len; len 1034 tools/packfi2/deflate.c register int len; /* length of current match */ len 1116 tools/packfi2/deflate.c len = (MAX_MATCH - 1) - (int)(strend-scan); len 1147 tools/packfi2/deflate.c len = MAX_MATCH - (int)(strend - scan); len 1152 tools/packfi2/deflate.c if (len > best_len) { len 1154 tools/packfi2/deflate.c best_len = len; len 1155 tools/packfi2/deflate.c if (len >= nice_match) break; len 1181 tools/packfi2/deflate.c register int len; /* length of current match */ len 1220 tools/packfi2/deflate.c len = MAX_MATCH - (int)(strend - scan); len 1222 tools/packfi2/deflate.c if (len < MIN_MATCH) return MIN_MATCH - 1; len 1225 tools/packfi2/deflate.c return (uInt)len <= s->lookahead ? (uInt)len : s->lookahead; len 69 tools/packfi2/deflate.h ush len; /* length of bit string */ len 76 tools/packfi2/deflate.h #define Len dl.len len 316 tools/packfi2/deflate.h { uch len = (length); \ len 319 tools/packfi2/deflate.h s->l_buf[s->last_lit++] = len; \ len 321 tools/packfi2/deflate.h s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \ len 29 tools/packfi2/fi2enc.c uint32_t len; // Length of compressed and padded data block len 71 tools/packfi2/fi2enc.c static int get_hexstring( void *dst, const char *str, int len ) len 82 tools/packfi2/fi2enc.c if( strlen( str ) != (size_t)len*2 ){ len 86 tools/packfi2/fi2enc.c for( i = 0; i < len*2; i++ ){ len 187 tools/packfi2/fi2enc.c fi2rec.len = align128( i + 4 ); len 189 tools/packfi2/fi2enc.c aes128_cbc_encrypt( buf, exkey, iv, fi2rec.len ); len 193 tools/packfi2/fi2enc.c for( i = 0; i < fi2rec.len/4; i++) cs += wbuf[i]; // update block checksum len 196 tools/packfi2/fi2enc.c for( i = 0; i < fi2rec.len; i++) cs += buf[i]; // update block checksum len 232 tools/packfi2/fi2enc.c if (fi2rec.len != fwrite( pblk, 1, fi2rec.len, fo ) ){ len 233 tools/packfi2/fi2enc.c printf("\nError writing data block to %s (%d bytes)\n", outfname, fi2rec.len); len 159 tools/packfi2/trees.c local void copy_block OF((deflate_state *s, charf *buf, unsigned len, len 218 tools/packfi2/trees.c { int len = length;\ len 219 tools/packfi2/trees.c if (s->bi_valid > (int)Buf_size - len) {\ len 224 tools/packfi2/trees.c s->bi_valid += len - Buf_size;\ len 227 tools/packfi2/trees.c s->bi_valid += len;\ len 601 tools/packfi2/trees.c int len = tree[n].Len; len 602 tools/packfi2/trees.c if (len == 0) continue; len 604 tools/packfi2/trees.c tree[n].Code = bi_reverse(next_code[len]++, len); len 607 tools/packfi2/trees.c n, (isgraph(n) ? n : ' '), len, tree[n].Code, next_code[len]-1)); len 1146 tools/packfi2/trees.c local unsigned bi_reverse(code, len) len 1148 tools/packfi2/trees.c int len; /* its bit length */ len 1154 tools/packfi2/trees.c } while (--len > 0); len 1197 tools/packfi2/trees.c local void copy_block(s, buf, len, header) len 1200 tools/packfi2/trees.c unsigned len; /* its length */ len 1207 tools/packfi2/trees.c put_short(s, (ush)len); len 1208 tools/packfi2/trees.c put_short(s, (ush)~len); len 1214 tools/packfi2/trees.c s->bits_sent += (ulg)len<<3; len 1216 tools/packfi2/trees.c while (len--) { len 1106 tools/packfi2/zlib.h ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len)); len 1115 tools/packfi2/zlib.h voidpc buf, unsigned len)); len 1142 tools/packfi2/zlib.h ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len)); len 1260 tools/packfi2/zlib.h ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len)); len 1285 tools/packfi2/zlib.h ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len)); len 149 tools/packfi2/zutil.c void zmemcpy(dest, source, len) len 152 tools/packfi2/zutil.c uInt len; len 154 tools/packfi2/zutil.c if (len == 0) return; len 157 tools/packfi2/zutil.c } while (--len != 0); len 160 tools/packfi2/zutil.c int zmemcmp(s1, s2, len) len 163 tools/packfi2/zutil.c uInt len; len 167 tools/packfi2/zutil.c for (j = 0; j < len; j++) { len 173 tools/packfi2/zutil.c void zmemzero(dest, len) len 175 tools/packfi2/zutil.c uInt len; len 177 tools/packfi2/zutil.c if (len == 0) return; len 180 tools/packfi2/zutil.c } while (--len != 0); len 228 tools/packfi2/zutil.h # define zmemzero(dest, len) _fmemset(dest, 0, len) len 232 tools/packfi2/zutil.h # define zmemzero(dest, len) memset(dest, 0, len) len 235 tools/packfi2/zutil.h extern void zmemcpy OF((Bytef* dest, const Bytef* source, uInt len)); len 236 tools/packfi2/zutil.h extern int zmemcmp OF((const Bytef* s1, const Bytef* s2, uInt len)); len 237 tools/packfi2/zutil.h extern void zmemzero OF((Bytef* dest, uInt len)); len 156 tools/pakwif.c int crypt_fwrite(void *buf, int len, FILE *f) len 167 tools/pakwif.c while (len>0){ len 168 tools/pakwif.c if (len>1024) len 171 tools/pakwif.c towr = len; len 186 tools/pakwif.c len -= r; len 192 tools/pakwif.c int crypt_fread(void *buf, int len, FILE *f) len 203 tools/pakwif.c if (len>1024) len 206 tools/pakwif.c towr = len; len 209 tools/pakwif.c while (len>0 && r>0){ len 220 tools/pakwif.c len -= r; len 222 tools/pakwif.c if (len>1024) len 225 tools/pakwif.c towr = len; len 284 tools/pakwif.c uint32_t checksumm_update(uint32_t cs, char *buf, int len) len 288 tools/pakwif.c for (i=0;i<len/2;i++) len 290 tools/pakwif.c if (len&1) len 291 tools/pakwif.c cs+=buf[len-1]; len 375 tools/pakwif.c uint32_t len; len 379 tools/pakwif.c len = ftell(p->f); len 390 tools/pakwif.c crypt_fwrite(&len, 4, p->f); len 38 tools/stubs_load.c int len = 0; len 43 tools/stubs_load.c len++; len 47 tools/stubs_load.c return (eof == 0) || (len > 0);