Home
last modified time | relevance | path

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

12345678910>>...47

/u-boot/arch/arm/mach-uniphier/
A Dboards.c20 .width = 16,
24 .width = 16,
36 .width = 32,
40 .width = 32,
49 .width = 32,
53 .width = 32,
63 .width = 16,
67 .width = 16,
78 .width = 32,
82 .width = 32,
[all …]
/u-boot/drivers/clk/meson/
A Dclk_meson.h30 u8 width; member
33 #define PMASK(width) GENMASK(width - 1, 0) argument
34 #define SETPMASK(width, shift) GENMASK(shift + width - 1, shift) argument
35 #define CLRPMASK(width, shift) (~SETPMASK(width, shift)) argument
37 #define PARM_GET(width, shift, reg) \ argument
38 (((reg) & SETPMASK(width, shift)) >> (shift))
39 #define PARM_SET(width, shift, reg, val) \ argument
40 (((reg) & CLRPMASK(width, shift)) | ((val) << (shift)))
/u-boot/include/
A Dvideo_font_data.h8 #define VIDEO_FONT_BYTE_WIDTH(width) ((width / 8) + (width % 8 > 0)) argument
9 #define VIDEO_FONT_CHAR_PIXEL_BYTES(width, height) (height * VIDEO_FONT_BYTE_WIDTH(width)) argument
10 #define VIDEO_FONT_SIZE(chars, width, height) (chars * VIDEO_FONT_CHAR_PIXEL_BYTES(width, height)) argument
14 int width; member
24 .width = _font_width, \
A Dbitfield.h43 static inline uint bitfield_mask(uint shift, uint width) in bitfield_mask() argument
45 return ((1 << width) - 1) << shift; in bitfield_mask()
49 static inline uint bitfield_extract(uint reg_val, uint shift, uint width) in bitfield_extract() argument
51 return (reg_val & bitfield_mask(shift, width)) >> shift; in bitfield_extract()
58 static inline uint bitfield_replace(uint reg_val, uint shift, uint width, in bitfield_replace() argument
61 uint mask = bitfield_mask(shift, width); in bitfield_replace()
/u-boot/drivers/net/fsl-mc/dpio/
A Dqbman_private.h57 #define MAKE_MASK32(width) (width == 32 ? 0xffffffff : \ argument
58 (uint32_t)((1 << width) - 1))
62 BUG_ON(width > (sizeof(t) * 8)); \
63 return ((uint32_t)val & MAKE_MASK32(width)) << lsoffset; \
67 BUG_ON(width > (sizeof(t) * 8)); \
68 return (t)((val >> lsoffset) & MAKE_MASK32(width)); \
70 static inline uint32_t i32_##t(uint32_t lsoffset, uint32_t width, \
73 BUG_ON(width > (sizeof(t) * 8)); \
74 return e32_##t(lsoffset, width, d32_##t(lsoffset, width, val)); \
79 BUG_ON(width > (sizeof(t) * 8)); \
[all …]
/u-boot/scripts/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 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 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 …]
/u-boot/lib/
A Dqsort.c26 size_t width, in qsort() argument
32 if ((nel > 1) && (width > 0)) { in qsort()
33 assert(nel <= ((size_t)(-1)) / width); /* check for overflow */ in qsort()
40 wgap *= width; /* So this can not overflow if wnel doesn't. */ in qsort()
41 nel *= width; /* Convert nel to 'wnel' */ in qsort()
56 k = width; in qsort()
63 i += width; in qsort()
65 wgap = (wgap - width)/3; in qsort()
A Ddisplay_options.c163 if (linelen * width > MAX_LINE_LENGTH_BYTES) in hexdump_line()
164 linelen = MAX_LINE_LENGTH_BYTES / width; in hexdump_line()
166 linelen = DEFAULT_LINE_LENGTH_BYTES / width; in hexdump_line()
184 if (width == 4) in hexdump_line()
188 else if (width == 2) in hexdump_line()
196 data += width; in hexdump_line()
204 for (i = 0; i < thislinelen * width; i++) { in hexdump_line()
217 if (linelen*width > MAX_LINE_LENGTH_BYTES) in print_buffer()
218 linelen = MAX_LINE_LENGTH_BYTES / width; in print_buffer()
233 data += thislinelen * width; in print_buffer()
[all …]
A Dsscanf.c402 width = 0; in vsscanf()
445 width = width * 10 + c - '0'; in vsscanf()
553 if (width == 0) in vsscanf()
554 width = 1; in vsscanf()
561 width -= n; in vsscanf()
566 sum += width; in vsscanf()
573 inr -= width; in vsscanf()
574 inp += width; in vsscanf()
659 if (width == 0 || width > sizeof(buf) - 1) in vsscanf()
665 width++; in vsscanf()
[all …]
/u-boot/drivers/video/
A Dvideo_bmp.c161 if (x < width) { in video_display_rle8_bitmap()
162 if (x + runlen > width) in video_display_rle8_bitmap()
163 cnt = width - x; in video_display_rle8_bitmap()
180 if (x < width) { in video_display_rle8_bitmap()
188 if (x + runlen > width) in video_display_rle8_bitmap()
189 cnt = width - x; in video_display_rle8_bitmap()
301 padded_width = (width & 0x3 ? (width & ~0x3) + 4 : width); in video_bmp_display()
308 if ((x + width) > pwidth) in video_bmp_display()
309 width = pwidth - x; in video_bmp_display()
329 x, y, width, height); in video_bmp_display()
[all …]
A Dsandbox_osd.c15 uint width; member
34 info->width = priv->width; in sandbox_osd_get_info()
50 pos = 2 * (row * priv->width + col); in sandbox_osd_set_mem()
52 if (pos >= 2 * (priv->width * priv->height)) in sandbox_osd_set_mem()
67 priv->width = col; in _sandbox_osd_set_size()
69 size = priv->width * priv->height; in _sandbox_osd_set_size()
98 if (col >= priv->width || row >= priv->height) in sandbox_osd_print()
122 pos = row * priv->width + col; in sandbox_osd_print()
133 uint memsize = 2 * (priv->width * priv->height); in sandbox_osd_get_mem()
/u-boot/drivers/clk/
A Dclk-divider.c54 return val ? val : clk_div_mask(width) + 1; in _get_div()
67 div = _get_div(table, val, flags, width); in divider_recalc_rate()
90 val &= clk_div_mask(divider->width); in clk_divider_recalc_rate()
93 divider->flags, divider->width); in clk_divider_recalc_rate()
152 value = _get_val(table, div, flags, width); in divider_get_val()
165 divider->width, divider->flags); in clk_divider_set_rate()
188 void __iomem *reg, u8 shift, u8 width, in _register_divider() argument
196 if (width + shift > 16) { in _register_divider()
210 div->width = width; in _register_divider()
232 void __iomem *reg, u8 shift, u8 width, in clk_register_divider() argument
[all …]
/u-boot/drivers/i2c/muxes/
A Dpca954x.c36 u32 width; member
48 .width = 2,
53 .width = 4,
57 .width = 4,
62 .width = 8,
66 .width = 8,
70 .width = 4,
75 .width = 8,
129 priv->width = chip->width; in pca954x_of_to_plat()
131 if (!priv->width) { in pca954x_of_to_plat()
[all …]
/u-boot/arch/arm/mach-zynq/
A Dddrc.c26 u32 width, ecctype; in zynq_ddrc_init() local
28 width = readl(&ddrc_base->ddrc_ctrl); in zynq_ddrc_init()
29 width = (width & ZYNQ_DDRC_CTRLREG_BUSWIDTH_MASK) >> in zynq_ddrc_init()
36 (width == ZYNQ_DDRC_CTRLREG_BUSWIDTH_16BIT)) { in zynq_ddrc_init()
/u-boot/lib/efi_loader/
A Defi_gop.c113 efi_uintn_t width, in gop_blt_int() argument
130 linelen = width; in gop_blt_int()
138 if (sx + width > linelen) in gop_blt_int()
143 if (sx + width > gopobj->info.width || in gop_blt_int()
156 if (dx + width > gopobj->info.width || in gop_blt_int()
161 if (dx + width > linelen) in gop_blt_int()
173 swidth = gopobj->info.width; in gop_blt_int()
186 dwidth = gopobj->info.width; in gop_blt_int()
198 for (j = 0; j < width; j++) { in gop_blt_int()
428 sy, dx, dy, width, height, in gop_blt()
[all …]
/u-boot/drivers/clk/imx/
A Dclk.h113 void __iomem *reg, u8 shift, u8 width) in imx_clk_divider() argument
116 reg, shift, width, 0); in imx_clk_divider()
124 reg, shift, width, 0); in imx_clk_busy_divider()
128 void __iomem *reg, u8 shift, u8 width) in imx_clk_divider2() argument
132 reg, shift, width, 0); in imx_clk_divider2()
149 width, 0); in imx_clk_mux_flags()
153 void __iomem *reg, u8 shift, u8 width, in imx_clk_mux2_flags() argument
159 reg, shift, width, 0); in imx_clk_mux2_flags()
168 width, 0); in imx_clk_mux()
178 width, 0); in imx_clk_busy_mux()
[all …]
/u-boot/board/friendlyarm/nanopi2/
A Dlcds.c94 .width = 800,
121 .width = 800,
148 .width = 800,
175 .width = 800,
202 .width = 800,
229 .width = 480,
361 .width = 640,
440 .width = 480,
466 .width = 480,
546 int width; member
[all …]
/u-boot/arch/arm/dts/
A Dast2500-evb.dts89 spi-tx-bus-width = <2>;
90 spi-rx-bus-width = <2>;
96 spi-tx-bus-width = <2>;
97 spi-rx-bus-width = <2>;
109 spi-tx-bus-width = <2>;
110 spi-rx-bus-width = <2>;
A Dast2600-evb.dts81 spi-tx-bus-width = <4>;
82 spi-rx-bus-width = <4>;
88 spi-tx-bus-width = <4>;
89 spi-rx-bus-width = <4>;
95 spi-tx-bus-width = <4>;
96 spi-rx-bus-width = <4>;
110 spi-tx-bus-width = <4>;
111 spi-rx-bus-width = <4>;
124 spi-tx-bus-width = <4>;
125 spi-rx-bus-width = <4>;
[all …]
/u-boot/scripts/
A Ddecodecode55 width=`expr index "$code" ' '`
56 width=$((($width-1)/2))
57 case $width in
67 if [ $width -eq 2 ]; then
75 if [ $width -eq 4 ]; then

Completed in 795 milliseconds

12345678910>>...47