/linux-2.4.37.9/scripts/lxdialog/ |
D | yesno.c | 28 print_buttons(WINDOW *dialog, int height, int width, int selected) in print_buttons() argument 30 int x = width / 2 - 10; in print_buttons() 44 dialog_yesno (const char *title, const char *prompt, int height, int width) in dialog_yesno() argument 50 x = (COLS - width) / 2; in dialog_yesno() 53 draw_shadow (stdscr, y, x, height, width); in dialog_yesno() 55 dialog = newwin (height, width, y, x); in dialog_yesno() 58 draw_box (dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_yesno() 61 for (i = 0; i < width - 2; i++) in dialog_yesno() 66 if (title != NULL && strlen(title) >= width-2 ) { in dialog_yesno() 68 char * title2 = malloc(width-2+1); in dialog_yesno() [all …]
|
D | textbox.c | 25 static void print_page (WINDOW * win, int height, int width); 26 static void print_line (WINDOW * win, int row, int width); 28 static void print_position (WINDOW * win, int height, int width); 38 dialog_textbox (const char *title, const char *file, int height, int width) in dialog_textbox() argument 82 x = (COLS - width) / 2; in dialog_textbox() 86 draw_shadow (stdscr, y, x, height, width); in dialog_textbox() 88 dialog = newwin (height, width, y, x); in dialog_textbox() 92 text = subwin (dialog, height - 4, width - 2, y + 1, x + 1); in dialog_textbox() 99 draw_box (dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_textbox() 103 for (i = 0; i < width - 2; i++) in dialog_textbox() [all …]
|
D | inputbox.c | 30 print_buttons(WINDOW *dialog, int height, int width, int selected) in print_buttons() argument 32 int x = width / 2 - 11; in print_buttons() 46 dialog_inputbox (const char *title, const char *prompt, int height, int width, in dialog_inputbox() argument 55 x = (COLS - width) / 2; in dialog_inputbox() 59 draw_shadow (stdscr, y, x, height, width); in dialog_inputbox() 61 dialog = newwin (height, width, y, x); in dialog_inputbox() 64 draw_box (dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_inputbox() 67 for (i = 0; i < width - 2; i++) in dialog_inputbox() 72 if (title != NULL && strlen(title) >= width-2 ) { in dialog_inputbox() 74 char * title2 = malloc(width-2+1); in dialog_inputbox() [all …]
|
D | msgbox.c | 29 dialog_msgbox (const char *title, const char *prompt, int height, int width, in dialog_msgbox() argument 36 x = (COLS - width) / 2; in dialog_msgbox() 39 draw_shadow (stdscr, y, x, height, width); in dialog_msgbox() 41 dialog = newwin (height, width, y, x); in dialog_msgbox() 44 draw_box (dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_msgbox() 46 if (title != NULL && strlen(title) >= width-2 ) { in dialog_msgbox() 48 char * title2 = malloc(width-2+1); in dialog_msgbox() 49 memcpy( title2, title, width-2 ); in dialog_msgbox() 50 title2[width-2] = '\0'; in dialog_msgbox() 56 mvwaddch (dialog, 0, (width - strlen(title))/2 - 1, ' '); in dialog_msgbox() [all …]
|
D | dialog.h | 143 void attr_clear (WINDOW * win, int height, int width, chtype attr); 146 void print_autowrap (WINDOW * win, const char *prompt, int width, int y, int x); 148 void draw_box (WINDOW * win, int y, int x, int height, int width, chtype box, 150 void draw_shadow (WINDOW * win, int y, int x, int height, int width); 153 int dialog_yesno (const char *title, const char *prompt, int height, int width); 155 int width, int pause); 156 int dialog_textbox (const char *title, const char *file, int height, int width); 157 int dialog_menu (const char *title, const char *prompt, int height, int width, 161 int width, int list_height, int item_no, 165 int width, const char *init);
|
D | checklist.c | 103 print_buttons( WINDOW *dialog, int height, int width, int selected) in print_buttons() argument 105 int x = width / 2 - 11; in print_buttons() 120 dialog_checklist (const char *title, const char *prompt, int height, int width, in dialog_checklist() argument 148 x = (COLS - width) / 2; in dialog_checklist() 151 draw_shadow (stdscr, y, x, height, width); in dialog_checklist() 153 dialog = newwin (height, width, y, x); in dialog_checklist() 156 draw_box (dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_checklist() 159 for (i = 0; i < width - 2; i++) in dialog_checklist() 164 if (title != NULL && strlen(title) >= width-2 ) { in dialog_checklist() 166 char * title2 = malloc(width-2+1); in dialog_checklist() [all …]
|
D | menubox.c | 149 print_buttons (WINDOW *win, int height, int width, int selected) in print_buttons() argument 151 int x = width / 2 - 16; in print_buttons() 166 dialog_menu (const char *title, const char *prompt, int height, int width, in dialog_menu() argument 179 x = (COLS - width) / 2; in dialog_menu() 182 draw_shadow (stdscr, y, x, height, width); in dialog_menu() 184 dialog = newwin (height, width, y, x); in dialog_menu() 187 draw_box (dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_menu() 190 for (i = 0; i < width - 2; i++) in dialog_menu() 196 if (title != NULL && strlen(title) >= width-2 ) { in dialog_menu() 198 char * title2 = malloc(width-2+1); in dialog_menu() [all …]
|
D | util.c | 112 attr_clear (WINDOW * win, int height, int width, chtype attr) in attr_clear() argument 119 for (j = 0; j < width; j++) in attr_clear() 198 print_autowrap (WINDOW * win, const char *prompt, int width, int y, int x) in print_autowrap() argument 215 if (prompt_len <= width - x * 2) { /* If prompt is short */ in print_autowrap() 216 wmove (win, y, (width - prompt_len) / 2); in print_autowrap() 231 room = width - cur_x; in print_autowrap() 286 draw_box (WINDOW * win, int y, int x, int height, int width, in draw_box() argument 294 for (j = 0; j < width; j++) in draw_box() 299 else if (!i && j == width - 1) in draw_box() 301 else if (i == height - 1 && j == width - 1) in draw_box() [all …]
|
/linux-2.4.37.9/drivers/video/aty/ |
D | mach64_accel.c | 24 int height, int width); 26 int sx, int height, int width); 176 static inline void draw_rect(s16 x, s16 y, u16 width, u16 height, in draw_rect() argument 182 aty_st_le32(DST_HEIGHT_WIDTH, (width << 16) | height, info); in draw_rect() 187 u_int width, u_int height, in aty_rectcopy() argument 193 if (!width || !height) in aty_rectcopy() 203 width *= 3; in aty_rectcopy() 213 dstx += width - 1; in aty_rectcopy() 214 srcx += width - 1; in aty_rectcopy() 221 aty_st_le32(SRC_HEIGHT1_WIDTH1, (width << 16) | height, info); in aty_rectcopy() [all …]
|
/linux-2.4.37.9/drivers/video/sis/ |
D | sis_accel.c | 134 int src_y, int dst_x, int dst_y, int width, int height) in SiS300SubsequentScreenToScreenCopy() argument 151 src_x += width-1; in SiS300SubsequentScreenToScreenCopy() 152 dst_x += width-1; in SiS300SubsequentScreenToScreenCopy() 158 SiS300SetupRect(width, height) in SiS300SubsequentScreenToScreenCopy() 221 int dst_x, int dst_y, int width, int height) in SiS310SubsequentScreenToScreenCopy() argument 257 SiS310SetupRect(width, height) in SiS310SubsequentScreenToScreenCopy() 344 int width, height; in fbcon_sis_fillrect() local 356 if(!rect->width || !rect->height || rect->dx >= vxres || rect->dy >= vyres) { in fbcon_sis_fillrect() 361 width = ((rect->dx + rect->width) > vxres) ? (vxres - rect->dx) : rect->width; in fbcon_sis_fillrect() 376 SiS300SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); in fbcon_sis_fillrect() [all …]
|
/linux-2.4.37.9/drivers/video/ |
D | fbcon-iplan2p2.c | 157 int height, int width) in fbcon_iplan2p2_bmove() argument 171 if (sx == 0 && dx == 0 && width * 2 == p->next_line) { in fbcon_iplan2p2_bmove() 203 --width; in fbcon_iplan2p2_bmove() 205 if (width > 1) { in fbcon_iplan2p2_bmove() 207 fb_memmove(dst, src, (width>>1)*4); in fbcon_iplan2p2_bmove() 212 if (width & 1) { in fbcon_iplan2p2_bmove() 215 memmove_2p_col(dst + (width>>1)*4, src + (width>>1)*4, in fbcon_iplan2p2_bmove() 219 if (!((sx+width-1) & 1)) { in fbcon_iplan2p2_bmove() 220 src = p->screen_base + sy * linesize + ((sx+width-1)>>1)*4; in fbcon_iplan2p2_bmove() 221 dst = p->screen_base + dy * linesize + ((dx+width-1)>>1)*4; in fbcon_iplan2p2_bmove() [all …]
|
D | fbcon-iplan2p4.c | 165 int height, int width) in fbcon_iplan2p4_bmove() argument 179 if (sx == 0 && dx == 0 && width * 4 == p->next_line) { in fbcon_iplan2p4_bmove() 212 --width; in fbcon_iplan2p4_bmove() 214 if (width > 1) { in fbcon_iplan2p4_bmove() 216 fb_memmove(dst, src, (width>>1)*8); in fbcon_iplan2p4_bmove() 221 if (width & 1) { in fbcon_iplan2p4_bmove() 224 memmove_4p_col(dst + (width>>1)*8, src + (width>>1)*8, in fbcon_iplan2p4_bmove() 228 if (!((sx+width-1) & 1)) { in fbcon_iplan2p4_bmove() 229 src = p->screen_base + sy * linesize + ((sx+width-1)>>1)*8; in fbcon_iplan2p4_bmove() 230 dst = p->screen_base + dy * linesize + ((dx+width-1)>>1)*8; in fbcon_iplan2p4_bmove() [all …]
|
D | fbcon-iplan2p8.c | 197 int height, int width) in fbcon_iplan2p8_bmove() argument 211 if (sx == 0 && dx == 0 && width * 8 == p->next_line) { in fbcon_iplan2p8_bmove() 244 --width; in fbcon_iplan2p8_bmove() 246 if (width > 1) { in fbcon_iplan2p8_bmove() 248 fast_memmove (dst, src, (width >> 1) * 16); in fbcon_iplan2p8_bmove() 254 if (width & 1) { in fbcon_iplan2p8_bmove() 257 memmove_8p_col(dst + (width>>1)*16, src + (width>>1)*16, in fbcon_iplan2p8_bmove() 261 if (!((sx+width-1) & 1)) { in fbcon_iplan2p8_bmove() 262 src = p->screen_base + sy * linesize + ((sx+width-1)>>1)*16; in fbcon_iplan2p8_bmove() 263 dst = p->screen_base + dy * linesize + ((dx+width-1)>>1)*16; in fbcon_iplan2p8_bmove() [all …]
|
D | fbcon-hga.c | 53 int height, int width) in fbcon_hga_bmove() argument 59 if (sx == 0 && dx == 0 && width == p->next_line) { in fbcon_hga_bmove() 60 src = p->screen_base+sy*fontheight(p)*width; in fbcon_hga_bmove() 61 dest = p->screen_base+dy*fontheight(p)*width; in fbcon_hga_bmove() 62 fb_memmove(dest, src, height*fontheight(p)*width); in fbcon_hga_bmove() 71 fb_memmove(dest, src, width); in fbcon_hga_bmove() 81 fb_memmove(dest, src, width); in fbcon_hga_bmove() 89 int height, int width) in fbcon_hga_clear() argument 95 DPRINTK("fbcon_hga_clear: sx:%d, sy:%d, height:%d, width:%d\n", sx, sy, height, width); in fbcon_hga_clear() 99 if (sx == 0 && width == p->next_line) { in fbcon_hga_clear() [all …]
|
D | fbcon-mfb.c | 36 int height, int width) in fbcon_mfb_bmove() argument 41 if (sx == 0 && dx == 0 && width == p->next_line) { in fbcon_mfb_bmove() 42 src = p->screen_base+sy*fontheight(p)*width; in fbcon_mfb_bmove() 43 dest = p->screen_base+dy*fontheight(p)*width; in fbcon_mfb_bmove() 44 fb_memmove(dest, src, height*fontheight(p)*width); in fbcon_mfb_bmove() 49 fb_memmove(dest, src, width); in fbcon_mfb_bmove() 57 fb_memmove(dest, src, width); in fbcon_mfb_bmove() 65 int height, int width) in fbcon_mfb_clear() argument 73 if (sx == 0 && width == p->next_line) { in fbcon_mfb_clear() 75 fb_memset255(dest, height*fontheight(p)*width); in fbcon_mfb_clear() [all …]
|
D | fbcon-sti.c | 133 int height, int width) in fbcon_sti_bmove() argument 136 sti_bmove(default_sti /* FIXME */, sy, sx, dy, dx, height, width); in fbcon_sti_bmove() 141 if (sx == 0 && dx == 0 && width == p->next_line) { in fbcon_sti_bmove() 142 src = p->screen_base+sy*fontheight(p)*width; in fbcon_sti_bmove() 143 dest = p->screen_base+dy*fontheight(p)*width; in fbcon_sti_bmove() 144 memcpy_fromhp_tohp(dest, src, height*fontheight(p)*width); in fbcon_sti_bmove() 149 memcpy_fromhp_tohp(dest, src, width); in fbcon_sti_bmove() 157 memcpy_fromhp_tohp(dest, src, width); in fbcon_sti_bmove() 168 int height, int width) in fbcon_sti_clear() argument 176 if (sx == 0 && width == p->next_line) { in fbcon_sti_clear() [all …]
|
D | fbcon-vga.c | 100 int height, int width) in fbcon_vga_bmove() argument 105 if (sx == 0 && dx == 0 && width == p->next_line/2) { in fbcon_vga_bmove() 108 vga_memmovew(dst, src, height*width); in fbcon_vga_bmove() 113 vga_memmovew(dst, src, width); in fbcon_vga_bmove() 121 vga_memmovew(dst, src, width); in fbcon_vga_bmove() 129 int height, int width) in fbcon_vga_clear() argument 134 if (sx == 0 && width*2 == p->next_line) in fbcon_vga_clear() 135 vga_memsetw(dest, conp->vc_video_erase_char, height*width); in fbcon_vga_clear() 138 vga_memsetw(dest, conp->vc_video_erase_char, width); in fbcon_vga_clear()
|
D | fbcon-cfb8.c | 49 int height, int width) in fbcon_cfb8_bmove() argument 54 if (sx == 0 && dx == 0 && width * fontwidth(p) == bytes) { in fbcon_cfb8_bmove() 61 sx <<= fontwidthlog(p); dx <<= fontwidthlog(p); width <<= fontwidthlog(p); in fbcon_cfb8_bmove() 63 sx *= fontwidth(p); dx *= fontwidth(p); width *= fontwidth(p); in fbcon_cfb8_bmove() 69 fb_memmove(dst, src, width); in fbcon_cfb8_bmove() 77 fb_memmove(dst, src, width); in fbcon_cfb8_bmove() 84 static inline void rectfill(u8 *dest, int width, int height, u8 data, in rectfill() argument 88 fb_memset(dest, data, width); in rectfill() 94 int height, int width) in fbcon_cfb8_clear() argument 104 width *= fontwidth(p); in fbcon_cfb8_clear() [all …]
|
D | fbcon-cfb16.c | 44 int height, int width) in fbcon_cfb16_bmove() argument 49 if (sx == 0 && dx == 0 && width * fontwidth(p) * 2 == bytes) { in fbcon_cfb16_bmove() 58 width <<= fontwidthlog(p)+1; in fbcon_cfb16_bmove() 62 width *= fontwidth(p)*2; in fbcon_cfb16_bmove() 68 fb_memmove(dst, src, width); in fbcon_cfb16_bmove() 76 fb_memmove(dst, src, width); in fbcon_cfb16_bmove() 83 static inline void rectfill(u8 *dest, int width, int height, u32 data, in rectfill() argument 92 for (i = 0; i < width/4; i++) { in rectfill() 96 if (width & 2) in rectfill() 98 if (width & 1) in rectfill() [all …]
|
D | fbcon-cfb32.c | 33 int height, int width) in fbcon_cfb32_bmove() argument 38 if (sx == 0 && dx == 0 && width * fontwidth(p) * 4 == bytes) { in fbcon_cfb32_bmove() 47 width <<= fontwidthlog(p)+2; in fbcon_cfb32_bmove() 51 width *= fontwidth(p)*4; in fbcon_cfb32_bmove() 57 fb_memmove(dst, src, width); in fbcon_cfb32_bmove() 65 fb_memmove(dst, src, width); in fbcon_cfb32_bmove() 72 static inline void rectfill(u8 *dest, int width, int height, u32 data, in rectfill() argument 79 for (i = 0; i < width/4; i++) { in rectfill() 85 if (width & 2) { in rectfill() 89 if (width & 1) in rectfill() [all …]
|
/linux-2.4.37.9/scripts/ |
D | header.tk | 93 entry $w.x.x -width 35 -relief sunken -borderwidth 2 \ 101 button $w.f.back -text "OK" -width 20 \ 104 -width 20 -command "destroy $w; focus $oldFocus" 120 message $w.m -width 400 -aspect 300 \ 127 button $w.f.back -text "OK" -width 20 \ 130 -width 20 -command "destroy $w; focus $oldFocus" 148 message $w.m -width 400 -aspect 300 -text \ 158 -width 10 -command "destroy $w; focus $oldFocus" 176 message $w.m -width 400 -aspect 300 -text \ 186 -width 10 -command "destroy $w; focus $oldFocus" [all …]
|
/linux-2.4.37.9/drivers/video/matrox/ |
D | matroxfb_accel.c | 148 … void matrox_cfbX_bmove(struct display* p, int sy, int sx, int dy, int dx, int height, int width) { in matrox_cfbX_bmove() argument 159 width *= fontwidth(p); in matrox_cfbX_bmove() 168 width--; in matrox_cfbX_bmove() 170 end = start+width; in matrox_cfbX_bmove() 176 width--; in matrox_cfbX_bmove() 178 start = end+width; in matrox_cfbX_bmove() 184 mga_outl(M_FXBNDRY, ((dx+width)<<16) | dx); in matrox_cfbX_bmove() 192 … void matrox_cfb4_bmove(struct display* p, int sy, int sx, int dy, int dx, int height, int width) { in matrox_cfb4_bmove() argument 203 if ((sx | dx | width) & fontwidth(p) & 1) { in matrox_cfb4_bmove() 204 fbcon_cfb4_bmove(p, sy, sx, dy, dx, height, width); in matrox_cfb4_bmove() [all …]
|
/linux-2.4.37.9/drivers/mtd/maps/ |
D | scx200_docflash.c | 35 MODULE_PARM(width, "i"); 36 MODULE_PARM_DESC(width, "Data width of the flash mapping (8/16)"); 42 static unsigned width = 8; /* Default to 8 bits wide */ variable 159 width = 16; in init_scx200_docflash() 161 width = 8; in init_scx200_docflash() 178 if (width != 8 && width != 16) { in init_scx200_docflash() 199 if (width == 8) { in init_scx200_docflash() 208 docmem.start, docmem.end, width); in init_scx200_docflash() 211 if (width == 8) in init_scx200_docflash()
|
/linux-2.4.37.9/arch/mips/ddb5xxx/common/ |
D | nile4.c | 25 ddb_calc_pdar(u32 phys, u32 size, int width, in ddb_calc_pdar() argument 76 switch (width) { in ddb_calc_pdar() 90 panic("nile4_set_pdar: unsupported width %d", width); in ddb_calc_pdar() 99 ddb_set_pdar(u32 pdar, u32 phys, u32 size, int width, in ddb_set_pdar() argument 102 u32 temp= ddb_calc_pdar(phys, size, width, on_memory_bus, pci_visible); in ddb_set_pdar()
|
/linux-2.4.37.9/arch/ppc/kernel/ |
D | btext.c | 159 btext_setup_display(int width, int height, int depth, int pitch, in btext_setup_display() argument 166 g_max_loc_X = width / 8; in btext_setup_display() 173 bi->dispDeviceRect[2] = width; in btext_setup_display() 224 btext_update_display(unsigned long phys, int width, int height, in btext_update_display() argument 239 bi->dispDeviceRect[2] = width; in btext_update_display() 250 g_max_loc_X = width / 8; in btext_update_display() 258 unsigned long width = ((bi->dispDeviceRect[2] - bi->dispDeviceRect[0]) * in btext_clearscreen() local 265 for(j=width; j; --j) in btext_clearscreen() 280 unsigned long width = ((bi->dispDeviceRect[2] - bi->dispDeviceRect[0]) * in btext_flushscreen() local 287 for(j=width; j>0; j-=8) { in btext_flushscreen() [all …]
|