Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 76) sorted by relevance

1234

/xen/xen/tools/kconfig/lxdialog/
A Dyesno.c16 int x = width / 2 - 10; in print_buttons()
37 if (getmaxx(stdscr) < (width + YESNO_WIDTH_MIN)) in dialog_yesno()
41 x = (getmaxx(stdscr) - width) / 2; in dialog_yesno()
44 draw_shadow(stdscr, y, x, height, width); in dialog_yesno()
46 dialog = newwin(height, width, y, x); in dialog_yesno()
49 draw_box(dialog, 0, 0, height, width, in dialog_yesno()
53 for (i = 0; i < width - 2; i++) in dialog_yesno()
58 print_title(dialog, title, width); in dialog_yesno()
61 print_autowrap(dialog, prompt, width - 2, 1, 3); in dialog_yesno()
63 print_buttons(dialog, height, width, 0); in dialog_yesno()
[all …]
A Dinputbox.c18 int x = width / 2 - 11; in print_buttons()
52 x = (getmaxx(stdscr) - width) / 2; in dialog_inputbox()
55 draw_shadow(stdscr, y, x, height, width); in dialog_inputbox()
57 dialog = newwin(height, width, y, x); in dialog_inputbox()
60 draw_box(dialog, 0, 0, height, width, in dialog_inputbox()
64 for (i = 0; i < width - 2; i++) in dialog_inputbox()
69 print_title(dialog, title, width); in dialog_inputbox()
75 box_width = width - 6; in dialog_inputbox()
78 box_x = (width - box_width) / 2; in dialog_inputbox()
82 print_buttons(dialog, height, width, 0); in dialog_inputbox()
[all …]
A Dtextbox.c48 int height, width, boxh, boxw; in dialog_textbox() local
69 getmaxyx(stdscr, height, width); in dialog_textbox()
80 width = initial_width; in dialog_textbox()
82 if (width > 5) in dialog_textbox()
83 width -= 5; in dialog_textbox()
85 width = 0; in dialog_textbox()
88 x = (getmaxx(stdscr) - width) / 2; in dialog_textbox()
98 boxw = width - 2; in dialog_textbox()
111 for (i = 0; i < width - 2; i++) in dialog_textbox()
316 print_line(win, i, width); in print_page()
[all …]
A Dchecklist.c90 int x = width / 2 - 11; in print_buttons()
105 int width, int list_height) in dialog_checklist() argument
130 x = (getmaxx(stdscr) - width) / 2; in dialog_checklist()
133 draw_shadow(stdscr, y, x, height, width); in dialog_checklist()
135 dialog = newwin(height, width, y, x); in dialog_checklist()
138 draw_box(dialog, 0, 0, height, width, in dialog_checklist()
142 for (i = 0; i < width - 2; i++) in dialog_checklist()
147 print_title(dialog, title, width); in dialog_checklist()
152 list_width = width - 6; in dialog_checklist()
154 box_x = (width - list_width) / 2 - 1; in dialog_checklist()
[all …]
A Dmenubox.c144 int x = width / 2 - 28; in print_buttons()
175 int height, width, menu_height; in dialog_menu() local
182 width = getmaxx(stdscr); in dialog_menu()
187 width -= 5; in dialog_menu()
193 x = (getmaxx(stdscr) - width) / 2; in dialog_menu()
198 dialog = newwin(height, width, y, x); in dialog_menu()
201 draw_box(dialog, 0, 0, height, width, in dialog_menu()
205 for (i = 0; i < width - 2; i++) in dialog_menu()
211 print_title(dialog, title, width); in dialog_menu()
216 menu_width = width - 6; in dialog_menu()
[all …]
A Ddialog.h202 void attr_clear(WINDOW * win, int height, int width, chtype attr);
204 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x);
206 void print_title(WINDOW *dialog, const char *title, int width);
207 void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
209 void draw_shadow(WINDOW * win, int y, int x, int height, int width);
212 int dialog_yesno(const char *title, const char *prompt, int height, int width);
214 int width, int pause);
225 int width, int list_height);
227 int width, const char *init);
A Dutil.c236 for (j = 0; j < width; j++) in attr_clear()
304 int height, width; in init_dialog() local
311 getmaxyx(stdscr, height, width); in init_dialog()
355 int tlen = MIN(width - 2, strlen(title)); in print_title()
380 wmove(win, y, (width - prompt_len) / 2); in print_autowrap()
398 room = width - cur_x; in print_autowrap()
472 for (j = 0; j < width; j++) in draw_box()
477 else if (!i && j == width - 1) in draw_box()
487 else if (j == width - 1) in draw_box()
505 for (i = 0; i < width; i++) in draw_shadow()
[all …]
/xen/xen/drivers/acpi/
A Dosl.c129 if (width <= 8) { in acpi_os_read_port()
131 } else if (width <= 16) { in acpi_os_read_port()
133 } else if (width <= 32) { in acpi_os_read_port()
144 if (width <= 8) { in acpi_os_write_port()
146 } else if (width <= 16) { in acpi_os_write_port()
148 } else if (width <= 32) { in acpi_os_write_port()
161 void __iomem *virt_addr = acpi_os_map_memory(phys_addr, width >> 3); in acpi_os_read_memory()
169 switch (width) { in acpi_os_read_memory()
183 acpi_os_unmap_memory(virt_addr, width >> 3); in acpi_os_read_memory()
196 switch (width) { in acpi_os_write_memory()
[all …]
A Dhwregs.c567 acpi_hw_low_level_read(u32 width, u32 * value, struct acpi_generic_address *reg) in acpi_hw_low_level_read() argument
599 value, width); in acpi_hw_low_level_read()
605 value, width); in acpi_hw_low_level_read()
615 *value, width, in acpi_hw_low_level_read()
637 acpi_hw_low_level_write(u32 width, u32 value, struct acpi_generic_address * reg) in acpi_hw_low_level_write() argument
668 value, width); in acpi_hw_low_level_write()
674 value, width); in acpi_hw_low_level_write()
683 value, width, in acpi_hw_low_level_write()
/xen/xen/drivers/video/
A Dlfb.c40 ((lfb.lfbp.font->width + 7) >> 3)); in lfb_show_line()
41 for ( b = lfb.lfbp.font->width; b--; ) in lfb_show_line()
49 memset(ptr, 0, (lfb.lfbp.width - nr_chars * lfb.lfbp.font->width) * bpp); in lfb_show_line()
50 memcpy(video_line, lfb.lbuf, nr_cells * lfb.lfbp.font->width * bpp); in lfb_show_line()
86 unsigned int width; in lfb_redraw_puts() local
88 for ( width = lfb.lfbp.text_columns; width; --width ) in lfb_redraw_puts()
89 if ( line[width - 1] ) in lfb_redraw_puts()
93 width, max(lfb.line_len[i], width)); in lfb_redraw_puts()
94 lfb.line_len[i] = width; in lfb_redraw_puts()
111 unsigned int bytes = (lfb.lfbp.width * in lfb_scroll_puts()
A Dvesa.c100 lfbp.width = vlfb_info.width; in vesa_init()
103 lfbp.text_columns = vlfb_info.width / font->width; in vesa_init()
116 vlfb_info.width, vlfb_info.height, in vesa_init()
118 font->width, font->height); in vesa_init()
198 vlfb_info.width * bpp); in vesa_endboot()
/xen/tools/xentrace/
A Dxenctx.c352 if ( width == 4 ) in print_special()
720 memcpy(&word, src, width); in read_stack_word()
764 if (width == 2) in print_stack_word()
766 else if (width == 4) in print_stack_word()
801 mem_addr += width; in print_lines()
879 if ( width ) in print_stack()
881 ((xenctx.bytes_per_line + width - 1) / width) * width; in print_stack()
919 print_stack_word(read_stack_word(p, width), width); in print_stack()
934 print_stack_word(read_stack_word(p, width), width); in print_stack()
937 stack += width; in print_stack()
[all …]
/xen/xen/drivers/acpi/apei/
A Dapei-io.c160 u32 width, space_id; in apei_check_gar() local
162 width = reg->bit_width; in apei_check_gar()
173 if ((width != 8) && (width != 16) && (width != 32) && (width != 64)) { in apei_check_gar()
230 static int apei_read_mem(u64 paddr, u64 *val, u32 width) in apei_read_mem() argument
235 addr = __apei_ioremap_fast(paddr, width); in apei_read_mem()
236 switch (width) { in apei_read_mem()
258 static int apei_write_mem(u64 paddr, u64 val, u32 width) in apei_write_mem() argument
263 addr = __apei_ioremap_fast(paddr, width); in apei_write_mem()
264 switch (width) { in apei_write_mem()
/xen/xen/include/asm-arm/
A Datomic.h8 #define build_atomic_read(name, size, width, type) \ argument
12 asm volatile("ldr" size " %" width(0) ",%1" \
18 #define build_atomic_write(name, size, width, type) \ argument
21 asm volatile("str" size " %" width(1) ",%0" \
26 #define build_add_sized(name, size, width, type) \ argument
30 asm volatile("ldr" size " %" width(1) ",%0\n" \
31 "add %" width(1) ",%" width(1) ",%" width(2) "\n" \
32 "str" size " %" width(1) ",%0" \
/xen/xen/include/acpi/
A Dacpiosxf.h69 acpi_status acpi_os_read_port(acpi_io_address address, u32 * value, u32 width);
71 acpi_status acpi_os_write_port(acpi_io_address address, u32 value, u32 width);
77 acpi_os_read_memory(acpi_physical_address address, u32 * value, u32 width);
80 acpi_os_write_memory(acpi_physical_address address, u32 value, u32 width);
A Dachware.h56 acpi_hw_low_level_read(u32 width,
60 acpi_hw_low_level_write(u32 width, u32 value, struct acpi_generic_address *reg);
/xen/tools/ocaml/libs/xl/
A Dgenwrap.py70 if ty.width in [8, 16]:
72 width = None
74 width = ty.width
77 if width:
272 if ty.width in [8, 16]:
274 width = None
276 width = ty.width
279 if width:
371 width = None
373 width = ty.width
[all …]
/xen/tools/libxc/
A Dxc_sr_restore_x86_pv.c9 return xc_pfn_to_mfn(pfn, ctx->x86.pv.p2m, ctx->x86.pv.width); in pfn_to_mfn()
22 unsigned int fpp = PAGE_SIZE / ctx->x86.pv.width; in expand_p2m()
31 p2msz = (max_pfn + 1) * ctx->x86.pv.width; in expand_p2m()
255 ctx->x86.pv.width); in process_vcpu_basic()
631 if ( info->guest_width != ctx->x86.pv.width ) in handle_x86_pv_info()
657 if ( (info->guest_width != ctx->x86.pv.width) || in handle_x86_pv_info()
662 ctx->x86.pv.width, ctx->x86.pv.levels); in handle_x86_pv_info()
822 size_t vcpusz = ctx->x86.pv.width == 8 ? in handle_x86_pv_vcpu_blob()
915 0, ctx->x86.pv.width); in handle_shared_info()
920 0, ctx->x86.pv.width); in handle_shared_info()
[all …]
A Dxc_sr_common_x86_pv.c16 ctx->x86.pv.width) == mfn)); in mfn_in_pseudophysmap()
35 pfn, xc_pfn_to_mfn(pfn, ctx->x86.pv.p2m, ctx->x86.pv.width)); in dump_bad_pseudophysmap_entry()
40 if ( ctx->x86.pv.width == 8 ) in cr3_to_mfn()
56 if ( ctx->x86.pv.width == 8 ) in mfn_to_cr3()
89 ctx->x86.pv.width = guest_width; in x86_pv_domain_info()
A Dxc_sr_save_x86_pv.c40 if ( ctx->x86.pv.width == sizeof(unsigned long) ) in copy_mfns_from_guest()
147 fpp = PAGE_SIZE / ctx->x86.pv.width; in map_p2m_tree()
156 ctx->x86.pv.width); in map_p2m_tree()
285 ctx->x86.pv.width); in get_p2m_generation()
335 ctx->x86.pv.width); in map_p2m_list()
336 fpp = PAGE_SIZE / ctx->x86.pv.width; in map_p2m_list()
340 if ( ctx->x86.pv.width == 8 ) in map_p2m_list()
515 ctx->x86.pv.width); in write_one_vcpu_basic()
540 ctx->x86.pv.width); in write_one_vcpu_basic()
570 if ( ctx->x86.pv.width == 8 ) in write_one_vcpu_basic()
[all …]
/xen/xen/arch/x86/efi/
A Dmkreloc.c86 unsigned int *width) in load() argument
125 *width = 32; in load()
129 *width = 64; in load()
191 int_fast64_t diff, unsigned int width, in diff_sections() argument
219 unsigned int reloc = (width == 4 ? PE_BASE_RELOC_HIGHLOW : in diff_sections()
225 if ( i < disp || i + width - disp > sec->file_size ) in diff_sections()
233 memcpy(&val1, ptr1 + i - disp, width); in diff_sections()
234 memcpy(&val2, ptr2 + i - disp, width); in diff_sections()
235 delta = width == 4 ? val2.u32 - val1.u32 : val2.u64 - val1.u64; in diff_sections()
244 if ( width == 8 && (val1.u64 < base || val1.u64 > end) ) in diff_sections()
[all …]
/xen/tools/firmware/vgabios/
A Dvbetables-gen.c8 int width; member
96 pitch = (pm->width + 7) / 8; in main()
98 pitch = pm->width * ((pm->depth + 7) / 8); in main()
102 pm->mode, pm->width, pm->height, pm->depth); in main()
137 printf("/*Bit16u XResolution*/ %d,\n", pm->width); in main()
/xen/xen/include/public/io/
A Dfbif.h49 int32_t width; /* rect width */ member
62 int32_t width; /* width in pixels */ member
136 int32_t width; /* the width of the framebuffer (in pixels) */ member
A Ddisplif.h503 uint32_t width; member
622 uint32_t width; member
704 uint32_t width; member
/xen/xen/common/
A Dgdbstub.c254 int i, width = int_size * 2; in gdb_write_to_packet_hex() local
278 while ( (i + width) > (sizeof(unsigned long) * 2) ) in gdb_write_to_packet_hex()
281 gdb_write_to_packet(&buf[i], width, ctx); in gdb_write_to_packet_hex()
284 while ( i < width ) in gdb_write_to_packet_hex()
290 gdb_write_to_packet(buf, width, ctx); in gdb_write_to_packet_hex()

Completed in 51 milliseconds

1234