w 219 core/console.c int w = MAX_CONSOLE_LINE_LENGTH; w 222 core/console.c coord x = (camera_screen.width - w * FONT_WIDTH) >> 1; w 225 core/console.c draw_rectangle(x-3, y-3, x+w*FONT_WIDTH+3, y+(h+1)*FONT_HEIGHT+2, col, RECT_BORDER1|DRAW_FILLED); // main box w 226 core/console.c draw_rectangle(x-2, y-2, x+w*FONT_WIDTH+2, y+FONT_HEIGHT+1, col, RECT_BORDER1|DRAW_FILLED); //title w 228 core/console.c draw_string_justified(x, y, "Console - press SET to close", col, 0, w*FONT_WIDTH, TEXT_CENTER); //title text w 235 core/console.c draw_string_justified(x-1, y + c * FONT_HEIGHT, console_buf[i], col, 0, w * FONT_WIDTH, TEXT_LEFT|TEXT_FILL); w 239 core/console.c draw_rectangle(x+w*FONT_WIDTH, y+((MAX_CONSOLE_HISTORY-console_scroll-h)*(h*FONT_HEIGHT))/MAX_CONSOLE_HISTORY, w 240 core/console.c x+w*FONT_WIDTH+2, y+((MAX_CONSOLE_HISTORY-console_scroll)*(h*FONT_HEIGHT))/MAX_CONSOLE_HISTORY-1, w 1314 core/gps.c double w=0.0; w 1388 core/gps.c w=(180-m)*3.141592653589793/180; w 1392 core/gps.c w=(540-m)*3.141592653589793/180; w 1395 core/gps.c c_w=cos(w); w 1396 core/gps.c s_w=sin(w); w 1404 core/gps.c old_c_w=cos(w); w 1405 core/gps.c old_s_w=sin(w); w 2684 core/gui.c int w = camera_screen.disp_width; w 2687 core/gui.c w = draw_string_justified(camera_screen.disp_left, camera_screen.height-FONT_HEIGHT, w 2688 core/gui.c buf, MAKE_COLOR(COLOR_RED, COLOR_WHITE), 0, w, TEXT_CENTER) - camera_screen.disp_left; w 2694 core/gui.c draw_string_clipped(camera_screen.disp_left, camera_screen.height-FONT_HEIGHT, script_title, user_color(conf.menu_color), w); w 1554 core/gui_draw.c void draw_button(int x, int y, int w, int str_id, int active) w 1557 core/gui_draw.c w = w * FONT_WIDTH; w 1559 core/gui_draw.c draw_rectangle(x-2, y-2, x+w+2, y+FONT_HEIGHT+2, cl, RECT_BORDER1|DRAW_FILLED|RECT_SHADOW1); // main box w 1560 core/gui_draw.c draw_string(x+((w-(strlen(lang_str(str_id))*FONT_WIDTH))>>1), y, lang_str(str_id), cl); w 132 core/gui_draw.h extern void draw_button(int x, int y, int w, int str_id, int active); w 88 core/gui_mbox.c int w = text_dimensions(mbox_msg, strlen(mbox_title), MAX_WIDTH, &h) + 2; w 90 core/gui_mbox.c if (bw+BUTTON_SEP > w*FONT_WIDTH) w 91 core/gui_mbox.c w = (bw+BUTTON_SEP)/FONT_WIDTH+1; w 93 core/gui_mbox.c coord x = (camera_screen.width - w * FONT_WIDTH) >> 1; w 95 core/gui_mbox.c draw_rectangle(x-4, y-4, x+w*FONT_WIDTH+4, y+(h+2)*FONT_HEIGHT+SPACING_BTN+2+SPACING_TITLE+7, w 97 core/gui_mbox.c draw_rectangle(x-2, y-2, x+w*FONT_WIDTH+2, y+FONT_HEIGHT+2, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE), RECT_BORDER1|DRAW_FILLED); //title w 99 core/gui_mbox.c draw_string_justified(x, y, mbox_title, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE), 0, w*FONT_WIDTH, TEXT_CENTER); //title text w 108 core/gui_mbox.c draw_text_justified(x+FONT_WIDTH, y, mbox_msg, MAKE_COLOR(COLOR_GREY, COLOR_WHITE), w-1, MAX_LINES, justification); // text w 110 core/gui_mbox.c mbox_buttons_x = x+((w*FONT_WIDTH-bw)>>1); w 181 core/gui_mbox.c unsigned int w=240, h=40; w 183 core/gui_mbox.c draw_rectangle(x, y, x+w, y+h, MAKE_COLOR(COLOR_GREY, COLOR_WHITE), RECT_BORDER1|DRAW_FILLED|RECT_SHADOW3); // main box w 184 core/gui_mbox.c draw_string_justified(x, y+2, msg, MAKE_COLOR(COLOR_GREY, COLOR_WHITE), 0, w, TEXT_CENTER); //title text w 185 core/gui_mbox.c draw_rectangle(x+10, y+4+FONT_HEIGHT, x+w-10, y+h-10, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE), RECT_BORDER1|DRAW_FILLED); // progress rect w 186 core/gui_mbox.c draw_rectangle(x+11, y+5+FONT_HEIGHT, x+11+(w-22)*perc/100, y+h-11, MAKE_COLOR(COLOR_RED, COLOR_RED), RECT_BORDER0|DRAW_FILLED); // progress bar w 36 core/gui_menu.c static int w, wplus, num_lines; w 524 core/gui_menu.c if ((tx >= x) && (ty >= y) && (tx < (x + w)) && (ty < (y + h))) w 736 core/gui_menu.c w = camera_screen.disp_width - camera_screen.menu_border_width*2; w 753 core/gui_menu.c draw_rectangle((x+w), y, (x+w)+wplus, y+num_lines*rbf_font_height()-1, MAKE_COLOR(BG_COLOR(user_color(conf.menu_color)), BG_COLOR(user_color(conf.menu_color))), RECT_BORDER0|DRAW_FILLED); w 764 core/gui_menu.c rbf_draw_menu_header(x, y-rbf_font_height(), w+wplus, (conf.menu_symbol_enable)?curr_menu->symbol:0, lang_str(curr_menu->title), user_color(conf.menu_title_color)); w 808 core/gui_menu.c xx += rbf_draw_string_len(xx, yy, w-len_space-len_space-len_br1-len_str-len_br2-len_space-symbol_width, lang_str(curr_menu->menu[imenu].text), cl); w 828 core/gui_menu.c xx += rbf_draw_string_len(xx, yy, w-len_space-len_space-symbol_width, str, cl); w 883 core/gui_menu.c int wid = w-len_space-len_space-len_br1-len_enum-len_br2-len_space-symbol_width-len_br1-len_br2; w 1037 core/gui_menu.c xx += ((w - j) >> 1); w 1050 core/gui_menu.c if (j) xx += rbf_draw_clipped_string(xx, yy, tbuf, cl, 0, w); w 1052 core/gui_menu.c if (xx < (x+w-len_space)) w 1054 core/gui_menu.c draw_rectangle(xx, yy, x+w-len_space-1, yy+rbf_font_height()/2-1, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); w 1055 core/gui_menu.c draw_line(xx, yy+rbf_font_height()/2, x+w-1-len_space, yy+rbf_font_height()/2, FG_COLOR(cl)); w 1056 core/gui_menu.c draw_rectangle(xx, yy+rbf_font_height()/2+1, x+w-len_space-1, yy+rbf_font_height()-1, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); w 1059 core/gui_menu.c rbf_draw_char(x+w-len_space, yy, ' ', cl); w 1064 core/gui_menu.c xx+=rbf_draw_string_len(xx, yy, w-len_space-symbol_width, lang_str(curr_menu->menu[imenu].text), cl); w 1066 core/gui_menu.c draw_rectangle(x+w-1-cl_rect-2-len_space, yy+2, x+w-1-2-len_space, yy+rbf_font_height()-1-2, MAKE_COLOR(mc,mc), RECT_BORDER0|DRAW_FILLED|RECT_ROUND_CORNERS); w 1072 core/gui_menu.c xx+=rbf_draw_string_len(xx, yy, w-len_space-symbol_width, lang_str(curr_menu->menu[imenu].text), cl); w 1074 core/gui_menu.c draw_rectangle(x+w-1-cl_rect-2-len_space, yy+2, x+w-1-2-len_space, yy+rbf_font_height()-1-2, MAKE_COLOR(mc,mc), RECT_BORDER0|DRAW_FILLED|RECT_ROUND_CORNERS); w 1100 core/gui_menu.c draw_rectangle((x+w)+2, y+1, (x+w)+6, y+1+i, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED|RECT_ROUND_CORNERS); w 1101 core/gui_menu.c draw_rectangle((x+w)+2, y+i+j, (x+w)+6, y+num_lines*rbf_font_height()-1-1, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED|RECT_ROUND_CORNERS); w 1102 core/gui_menu.c draw_rectangle((x+w)+2, y+1+i, (x+w)+6, y+i+j, MAKE_COLOR(COLOR_WHITE, COLOR_WHITE), RECT_BORDER0|DRAW_FILLED|RECT_ROUND_CORNERS); w 450 core/gui_osd.c int w = 0; // Extra width from AM/PM indicator and seconds (if displayed) w 462 core/gui_osd.c w = strlen(ampm_ind); w 472 core/gui_osd.c w += 3; w 487 core/gui_osd.c if (conf.clock_pos.x >= 4*FONT_WIDTH) w = 3; w 488 core/gui_osd.c draw_osd_string(conf.clock_pos, w*FONT_WIDTH, 0, osd_buf, cl, conf.clock_scale); w 35 core/gui_space.c static void spacebar_outer(OSD_pos pos, int w, int h) w 45 core/gui_space.c width = w; w 303 core/ptp.c unsigned w; // index of next write value, if w == r, empty TODO "full" currently wastes a slot w 319 core/ptp.c return (script_msg_q_next(q->w) == q->r); w 323 core/ptp.c return (q->w == q->r); w 327 core/ptp.c unsigned w = script_msg_q_next(q->w); w 328 core/ptp.c if(w == q->r) { w 334 core/ptp.c q->q[q->w] = msg; w 335 core/ptp.c q->w = w; w 47 include/stubs_asm.h ldr.w pc, [pc, #0] ;\ w 64 include/stubs_asm.h ldr.w pc, [pc, #0] ;\ w 153 lib/lua/ldump.c LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip) w 157 lib/lua/ldump.c D.writer=w; w 114 lib/lua/lfmathlib.c unsigned int w = (int)a; w 117 lib/lua/lfmathlib.c unsigned int d = (int)((a - w) * m); w 122 lib/lua/lfmathlib.c sprintf(buf, fmt, w, d); w 125 lib/lua/lfmathlib.c sprintf(buf, "%s%d", s, w); w 20 lib/lua/lundump.h LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); w 197 modules/games/gui_4wins.c coord w, x, y; w 199 modules/games/gui_4wins.c w = (strlen(text) + 2) * FONT_WIDTH; w 201 modules/games/gui_4wins.c x = (camera_screen.width - w) >> 1; w 203 modules/games/gui_4wins.c draw_rectangle(x, y, x + w, y + FONT_HEIGHT + 8, cl, RECT_BORDER2 | DRAW_FILLED | RECT_ROUND_CORNERS); w 204 modules/games/gui_4wins.c draw_string_justified(x, y + 4, text, cl, 0, w, TEXT_CENTER); w 158 modules/games/gui_sokoban.c int x=0, y, w=0, h=0; w 193 modules/games/gui_sokoban.c if (x>w) w=x; w 200 modules/games/gui_sokoban.c if (x>w) w=x; w 211 modules/games/gui_sokoban.c for (x=(FIELD_WIDTH-w)/2; x<FIELD_WIDTH && *p && *p!=MARKER_LINE_END; ++x, ++p) { w 133 modules/gui_calendar.c int w, d, i; w 156 modules/gui_calendar.c w = calendar_day_of_week(1, cal_month+1, cal_year); w 161 modules/gui_calendar.c for (x=0; x<w; ++x) { w 29 modules/gui_hexbox.c static int w, h, x, y; w 49 modules/gui_hexbox.c w = ( btl + 4) * FONT_WIDTH; w 51 modules/gui_hexbox.c if (w > camera_screen.width - 4 * FONT_WIDTH) { w 52 modules/gui_hexbox.c w = camera_screen.width - 4 * FONT_WIDTH; w 53 modules/gui_hexbox.c box_title[(w/FONT_WIDTH - 4 < 63)?w/FONT_WIDTH - 4:63] = 0; // shorten the title w 56 modules/gui_hexbox.c x = (camera_screen.width - w) >> 1; w 139 modules/gui_hexbox.c draw_rectangle(x-4, y-4, x+w+4, y+h+4, MAKE_COLOR(COLOR_GREY, COLOR_WHITE), RECT_BORDER3|DRAW_FILLED|RECT_SHADOW3); w 140 modules/gui_hexbox.c draw_rectangle(x-2, y-2, x+w+2, y+FONT_HEIGHT+2, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE), RECT_BORDER1|DRAW_FILLED); w 96 modules/gui_mpopup.c unsigned int w, h; w 98 modules/gui_mpopup.c w = 0; w 101 modules/gui_mpopup.c if (h > w) w=h; w 103 modules/gui_mpopup.c w+=2; w 106 modules/gui_mpopup.c x = (camera_screen.width - w*FONT_WIDTH) / 2; w 108 modules/gui_mpopup.c draw_rectangle(x-4, y-4, x+w*FONT_WIDTH+4, y+h*FONT_HEIGHT+3, w 113 modules/gui_mpopup.c mpopup_actions_w = w; w 146 modules/gui_palette.c unsigned int x, y, xl, xr, w, h; w 198 modules/gui_palette.c w = camera_screen.disp_width / 4; w 204 modules/gui_palette.c draw_rectangle(xl+(x*w), (2*FONT_HEIGHT)+(y*h), xl+(x*w)+w-1, (2*FONT_HEIGHT)+(y*h)+h-FONT_HEIGHT-6, MAKE_COLOR(cols[test_page][c],cols[test_page][c]), RECT_BORDER0|DRAW_FILLED); w 205 modules/gui_palette.c draw_string(xl+(x*w),(2*FONT_HEIGHT)+(y*h)+h-FONT_HEIGHT-3, nams[test_page][c], MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); w 213 modules/gui_palette.c w = camera_screen.disp_width / 2; w 219 modules/gui_palette.c draw_rectangle(xl+(x*w), (2*FONT_HEIGHT)+(y*h), xl+(x*w)+w-1, (2*FONT_HEIGHT)+(y*h)+h-FONT_HEIGHT-6, MAKE_COLOR(cols[test_page][c],cols[test_page][c]), RECT_BORDER0|DRAW_FILLED); w 220 modules/gui_palette.c draw_string(xl+(x*w),(2*FONT_HEIGHT)+(y*h)+h-FONT_HEIGHT-3, nams[test_page][c], MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); w 228 modules/gui_palette.c w = camera_screen.disp_width / 5; w 234 modules/gui_palette.c draw_rectangle(xl+(x*w), (2*FONT_HEIGHT)+(y*h), xl+(x*w)+w-1, (2*FONT_HEIGHT)+(y*h)+h-FONT_HEIGHT-6, w 236 modules/gui_palette.c draw_string(xl+(x*w),(2*FONT_HEIGHT)+(y*h)+h-FONT_HEIGHT-3, nams[test_page][c], MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); w 33 modules/gui_read.c static coord x, y, h, w; w 87 modules/gui_read.c w=camera_screen.disp_width-6-6-8; w 100 modules/gui_read.c draw_rectangle(xx, yy, x+w-1, yy+rbf_font_height()-1, MAKE_COLOR(BG_COLOR(col), BG_COLOR(col)), RECT_BORDER0|DRAW_FILLED); w 107 modules/gui_read.c return (xx+rbf_char_width(ch) < x+w); w 154 modules/gui_read.c draw_rectangle(x, yy, x+w-1, y+h-1, MAKE_COLOR(BG_COLOR(col), BG_COLOR(col)), RECT_BORDER0|DRAW_FILLED); w 204 modules/gui_read.c if (xx+ll>=x+w && ll<w) { w 218 modules/gui_read.c if (xx >= x+w) { w 235 modules/gui_read.c draw_rectangle(x+w+6+2, y+1, x+w+6+6, y+1+i, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED); w 236 modules/gui_read.c draw_rectangle(x+w+6+2, y+i+n, x+w+6+6, y+h-1-1, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED); w 237 modules/gui_read.c draw_rectangle(x+w+6+2, y+1+i, x+w+6+6, y+i+n, MAKE_COLOR(COLOR_WHITE, COLOR_WHITE), RECT_BORDER0|DRAW_FILLED); w 239 modules/gui_read.c draw_rectangle((x+w)*FONT_WIDTH+2, y*FONT_HEIGHT+1, w 240 modules/gui_read.c (x+w)*FONT_WIDTH+6, (y+h)*FONT_HEIGHT-1-1, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED); w 330 modules/histogram.c coord w=HISTO_WIDTH, h=HISTO_HEIGHT; w 351 modules/histogram.c h>>=1; w>>=1; w 352 modules/histogram.c for (i=0; i<w; ++i) { w 362 modules/histogram.c for (i=0; i<w; ++i) { w 373 modules/histogram.c draw_rectangle(x, y, x+1+w, y+h, hc2, RECT_BORDER1); w 375 modules/histogram.c if (conf.histo_show_ev_grid) for (i=1;i<=4;i++) draw_line(x+(1+w)*i/5, y, x+(1+w)*i/5, y+h, FG_COLOR(hc2)); w 302 modules/md5.c #define MD5STEP(f, w, x, y, z, data, s) \ w 303 modules/md5.c ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x ) w 557 modules/sha1.c #define R0(v,w,x,y,z,i) \ w 558 modules/sha1.c z += ((w & (x ^ y)) ^ y) + blk0(i) + 0x5A827999 + rol(v, 5); \ w 559 modules/sha1.c w = rol(w, 30); w 560 modules/sha1.c #define R1(v,w,x,y,z,i) \ w 561 modules/sha1.c z += ((w & (x ^ y)) ^ y) + blk(i) + 0x5A827999 + rol(v, 5); \ w 562 modules/sha1.c w = rol(w, 30); w 563 modules/sha1.c #define R2(v,w,x,y,z,i) \ w 564 modules/sha1.c z += (w ^ x ^ y) + blk(i) + 0x6ED9EBA1 + rol(v, 5); w = rol(w, 30); w 565 modules/sha1.c #define R3(v,w,x,y,z,i) \ w 566 modules/sha1.c z += (((w | x) & y) | (w & x)) + blk(i) + 0x8F1BBCDC + rol(v, 5); \ w 567 modules/sha1.c w = rol(w, 30); w 568 modules/sha1.c #define R4(v,w,x,y,z,i) \ w 569 modules/sha1.c z += (w ^ x ^ y) + blk(i) + 0xCA62C1D6 + rol(v, 5); \ w 570 modules/sha1.c w=rol(w, 30); w 41 modules/user_menu_edit.c static int w, wplus, num_lines; w 311 modules/user_menu_edit.c w = camera_screen.disp_width - camera_screen.menu_border_width; w 423 modules/user_menu_edit.c draw_rectangle((x+w), y, (x+w)+wplus, y+num_lines*rbf_font_height()-1, MAKE_COLOR(BG_COLOR(user_color(conf.menu_color)), BG_COLOR(user_color(conf.menu_color))), RECT_BORDER0|DRAW_FILLED); w 438 modules/user_menu_edit.c rbf_draw_menu_header(x, y-rbf_font_height(), w+wplus, (conf.menu_symbol_enable)?curr_menu->symbol:0, lang_str(curr_menu->title), MAKE_COLOR(COLOR_RED,COLOR_WHITE)); w 468 modules/user_menu_edit.c xx += rbf_draw_string_len(xx, yy, w-len_space*4, lang_str(curr_menu->menu[imenu].text), cl); w 475 modules/user_menu_edit.c xx += rbf_draw_string_len(xx, yy, w-len_space-len_space-symbol_width, str, cl); w 488 modules/user_menu_edit.c int wid = w-len_space-len_space; w 546 modules/user_menu_edit.c xx+=rbf_draw_string_len(xx, yy, w-len_space-symbol_width, lang_str(curr_menu->menu[imenu].text), cl); w 562 modules/user_menu_edit.c draw_rectangle((x+w)+2, y+1, (x+w)+6, y+1+i, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED|RECT_ROUND_CORNERS); w 563 modules/user_menu_edit.c draw_rectangle((x+w)+2, y+i+j, (x+w)+6, y+num_lines*rbf_font_height()-1-1, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED|RECT_ROUND_CORNERS); w 564 modules/user_menu_edit.c draw_rectangle((x+w)+2, y+1+i, (x+w)+6, y+i+j, MAKE_COLOR(COLOR_WHITE, COLOR_WHITE), RECT_BORDER0|DRAW_FILLED|RECT_ROUND_CORNERS); w 268 tools/chdk_dasm.c static void set_patch_old_values(t_address w, char *nm) w 270 tools/chdk_dasm.c patch_old_val = w; w 285 tools/chdk_dasm.c static char * print_ascii_str(firmware *fw, char *op, t_value w) w 287 tools/chdk_dasm.c if (isASCIIstring(fw, w)) w 290 tools/chdk_dasm.c char *p = adr2ptr(fw, w); w 322 tools/chdk_dasm.c static char * xhex8(firmware *fw, char * op, t_value w) w 328 tools/chdk_dasm.c set_patch_old_values(w, 0); w 329 tools/chdk_dasm.c w = patch_new_val; w 334 tools/chdk_dasm.c set_patch_old_values(w, 0); w 340 tools/chdk_dasm.c op += sprintf(op,"=_sub_%08X_my",w); // prepend '_' to prevent sub from appearing in stubs_auto.S w 342 tools/chdk_dasm.c op += sprintf(op,"=sub_%08X_my",w); w 347 tools/chdk_dasm.c patch_ref_address[save_patch_ref] = w; w 353 tools/chdk_dasm.c op += sprintf(op,"=0x%X",w); w 354 tools/chdk_dasm.c op = print_ascii_str(fw, op, w); w 363 tools/chdk_dasm.c static char * ahex8(firmware *fw, char * op, t_value w) w 366 tools/chdk_dasm.c lptr = l_search( dcd_list, w) ; // does this DCD address exist already ? w 368 tools/chdk_dasm.c if ( lptr ) w = lptr->data ; // dereference indirect address (typically pass 3) w 369 tools/chdk_dasm.c else l_insert(dcd_list, w, 0) ; // add node if not found - typically on pass 1 w 371 tools/chdk_dasm.c return xhex8(fw, op, w); w 376 tools/chdk_dasm.c static char * yhex8(firmware *fw, char * op, t_value w) w 380 tools/chdk_dasm.c set_patch_old_values(w, 0); w 381 tools/chdk_dasm.c w = patch_new_val; w 383 tools/chdk_dasm.c op += sprintf(op,"0x%X",w) ; w 384 tools/chdk_dasm.c op = print_ascii_str(fw, op, w); w 390 tools/chdk_dasm.c static char * sub_hex8(firmware *fw, char * op, t_value w) w 393 tools/chdk_dasm.c l_insert(branch_list, w, 0) ; w 398 tools/chdk_dasm.c if (w >= fw->base) w 399 tools/chdk_dasm.c w = followBranch(fw,w,1); w 400 tools/chdk_dasm.c osig *o = find_sig_val_by_type(fw->sv->stubs, w, TYPE_NHSTUB); w 404 tools/chdk_dasm.c set_patch_old_values(w, (o) ? o->nm : 0); w 415 tools/chdk_dasm.c if (( w >= options.start_address )&&( w <= options.end_address )) w 417 tools/chdk_dasm.c op += sprintf(op,"loc_%08X",w); w 422 tools/chdk_dasm.c op += sprintf(op,"_sub_%08X",w); // prevent sub from appearing in stubs_auto.S w 426 tools/chdk_dasm.c t_value v = fwval(fw,adr2idx(fw,w)); w 430 tools/chdk_dasm.c op += sprintf(op,"_sub_%08X",w); w 435 tools/chdk_dasm.c op += sprintf(op,"sub_%08X",w); w 443 tools/chdk_dasm.c set_patch_old_values(w, 0); w 452 tools/chdk_dasm.c patch_ref_address[save_patch_ref] = w; w 459 tools/chdk_dasm.c static char * sub_ahex8(firmware *fw, char * op, t_value w) w 462 tools/chdk_dasm.c lptr = l_search( dcd_list, w) ; // does this DCD address exist already ? w 465 tools/chdk_dasm.c l_insert(dcd_list, w, 0) ; // add node if not found - typically on pass 1 w 467 tools/chdk_dasm.c w = fwval(fw,adr2idx(fw,w)); w 468 tools/chdk_dasm.c return sub_hex8(fw, op, w); w 485 tools/chdk_dasm.c static char * num(char * op, t_value w, t_value decmax) w 493 tools/chdk_dasm.c set_patch_old_values(w, 0); w 494 tools/chdk_dasm.c w = patch_new_val; w 497 tools/chdk_dasm.c if ( w<decmax ) sprintf( tptr, "%d", w) ; w 500 tools/chdk_dasm.c if (w < 16) w 501 tools/chdk_dasm.c sprintf( tptr, "0x%X", w); w 503 tools/chdk_dasm.c sprintf( tptr, "0x%X", w); w 1013 tools/chdk_dasm.c { t_value w = instr&0xFFFF; w 1015 tools/chdk_dasm.c while (w) { w 1017 tools/chdk_dasm.c while (!(w&(1ul<<i))) ++i; w 1018 tools/chdk_dasm.c for (j=i+1; w&(1ul<<j); ++j) ; w 1026 tools/chdk_dasm.c i=j; w=(w>>(j+1))<<(j+1); w 1027 tools/chdk_dasm.c if (w) *op++=','; w 1050 tools/chdk_dasm.c { t_value w = (instr>>20)&15; w 1051 tools/chdk_dasm.c if (w>=10) { *op++='1'; *op++=(char)('0'-10+w); } w 1052 tools/chdk_dasm.c else *op++=(char)(w+'0'); w 1135 tools/chdk_dasm.c t_value w = instr&7; w 1137 tools/chdk_dasm.c if (w<6) *op++=(char)('0'+w); w 1138 tools/chdk_dasm.c else op = append(op, w==6 ? "0.5" : "10"); w 1150 tools/chdk_dasm.c { t_value w = instr&(7<<5); w 1151 tools/chdk_dasm.c if (w) { w 1154 tools/chdk_dasm.c *op++ = (char)('0'+(w>>5)); w 1285 tools/chdk_dasm.c t_value w; w 1302 tools/chdk_dasm.c w = fwval(fw,adr2idx(fw,addr)); w 1303 tools/chdk_dasm.c lptr->data = w ; w 1314 tools/chdk_dasm.c w = fwval(fw,adr2idx(fw,addr)); w 1315 tools/chdk_dasm.c instr_disassemble(fw, w, addr, &options); w 1330 tools/chdk_dasm.c t_value w; w 1340 tools/chdk_dasm.c w = fwval(fw,adr2idx(fw,addr)); w 1342 tools/chdk_dasm.c pInstruction instr = instr_disassemble(fw, w, addr, &options); w 1353 tools/chdk_dasm.c fprintf(outfile,"\"dword_%8.8X DCD 0x%X \\n\"\n", addr , w); w 1374 tools/chdk_dasm.c if (instr->undefined) fprintf(outfile,"[---undefined instr---] 0x%8.8X ", w); w 1375 tools/chdk_dasm.c if (instr->badbits) fprintf(outfile, "[---illegal bits---] 0x%8.8X ", w); w 1376 tools/chdk_dasm.c if (instr->oddbits) fprintf(outfile, "[---unexpected bits---] 0x%8.8X ", w); w 1378 tools/chdk_dasm.c fprintf(outfile, "[---unknown error---] 0x%8.8X ", w); w 1381 tools/chdk_dasm.c fprintf(outfile,"// rom:%.8x 0x%8.8X \n", addr, w); w 1396 tools/chdk_dasm.c fprintf(outfile,"%s%-40s // rom:%.8x 0x%8.8X", indent, instr->text, addr, w); w 1464 tools/chdk_dasm.c void swiname(__attribute__ ((unused))t_value w, __attribute__ ((unused))char * s, __attribute__ ((unused))size_t sz) { return; } w 56 tools/packfi2/crc32.c # define REV(w) (((w)>>24)+(((w)>>8)&0xff00)+ \ w 57 tools/packfi2/crc32.c (((w)&0xff00)<<8)+(((w)&0xff)<<24)) w 180 tools/packfi2/trees.c #define put_short(s, w) { \ w 181 tools/packfi2/trees.c put_byte(s, (uch)((w) & 0xff)); \ w 182 tools/packfi2/trees.c put_byte(s, (uch)((ush)(w) >> 8)); \