/u-boot/arch/arm/mach-uniphier/ |
A D | boards.c | 20 .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 D | clk_meson.h | 30 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/drivers/net/fsl-mc/dpio/ |
A D | qbman_private.h | 57 #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 D | yesno.c | 16 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 D | inputbox.c | 18 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 D | textbox.c | 48 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 D | dialog.h | 202 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 D | checklist.c | 90 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 D | menubox.c | 144 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/drivers/video/ |
A D | video_bmp.c | 88 if (x < width) { in video_display_rle8_bitmap() 90 cnt = width - x; in video_display_rle8_bitmap() 107 if (x < width) { in video_display_rle8_bitmap() 115 if (x + runlen > width) in video_display_rle8_bitmap() 116 cnt = width - x; in video_display_rle8_bitmap() 213 width = get_unaligned_le32(&bmp->header.width); in video_bmp_display() 252 padded_width = (width & 0x3 ? (width & ~0x3) + 4 : width); in video_bmp_display() 259 if ((x + width) > pwidth) in video_bmp_display() 260 width = pwidth - x; in video_bmp_display() 286 y, width, height); in video_bmp_display() [all …]
|
A D | sandbox_osd.c | 15 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/lib/ |
A D | qsort.c | 26 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 D | sscanf.c | 402 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 …]
|
A D | display_options.c | 149 if (linelen*width > MAX_LINE_LENGTH_BYTES) in print_buffer() 150 linelen = MAX_LINE_LENGTH_BYTES / width; in print_buffer() 152 linelen = DEFAULT_LINE_LENGTH_BYTES / width; in print_buffer() 164 if (width == 4) in print_buffer() 166 else if (MEM_SUPPORT_64BIT_DATA && width == 8) in print_buffer() 168 else if (width == 2) in print_buffer() 175 printf(" %0*lx", width * 2, x); in print_buffer() 176 data += width; in print_buffer() 181 for (i=0; i<width*2+1; i++) in print_buffer() 187 for (i = 0; i < thislinelen * width; i++) { in print_buffer() [all …]
|
/u-boot/drivers/clk/ |
A D | clk-divider.c | 50 return val ? val : clk_div_mask(width) + 1; in _get_div() 63 div = _get_div(table, val, flags, width); in divider_recalc_rate() 86 val &= clk_div_mask(divider->width); in clk_divider_recalc_rate() 89 divider->flags, divider->width); in clk_divider_recalc_rate() 148 value = _get_val(table, div, flags, width); in divider_get_val() 161 divider->width, divider->flags); in clk_divider_set_rate() 184 void __iomem *reg, u8 shift, u8 width, in _register_divider() argument 192 if (width + shift > 16) { in _register_divider() 206 div->width = width; in _register_divider() 228 void __iomem *reg, u8 shift, u8 width, in clk_register_divider() argument [all …]
|
/u-boot/drivers/i2c/muxes/ |
A D | pca954x.c | 35 u32 width; member 40 u32 width; /* I2C mux width - number of busses */ member 47 .width = 2, 52 .width = 4, 56 .width = 4, 61 .width = 8, 65 .width = 8, 69 .width = 4, 122 priv->width = chip->width; in pca954x_of_to_plat() 124 if (!priv->width) { in pca954x_of_to_plat() [all …]
|
/u-boot/arch/arm/mach-zynq/ |
A D | ddrc.c | 26 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/drivers/clk/imx/ |
A D | clk.h | 89 void __iomem *reg, u8 shift, u8 width) in imx_clk_divider() argument 92 reg, shift, width, 0); in imx_clk_divider() 100 reg, shift, width, 0); in imx_clk_busy_divider() 104 void __iomem *reg, u8 shift, u8 width) in imx_clk_divider2() argument 108 reg, shift, width, 0); in imx_clk_divider2() 125 width, 0); in imx_clk_mux_flags() 129 void __iomem *reg, u8 shift, u8 width, in imx_clk_mux2_flags() argument 135 reg, shift, width, 0); in imx_clk_mux2_flags() 144 width, 0); in imx_clk_mux() 154 width, 0); in imx_clk_busy_mux() [all …]
|
/u-boot/include/ |
A D | bitfield.h | 43 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/lib/efi_loader/ |
A D | efi_gop.c | 93 efi_uintn_t width, in gop_blt_int() argument 110 linelen = width; in gop_blt_int() 118 if (sx + width > linelen) in gop_blt_int() 123 if (sx + width > gopobj->info.width || in gop_blt_int() 136 if (dx + width > gopobj->info.width || in gop_blt_int() 141 if (dx + width > linelen) in gop_blt_int() 153 swidth = gopobj->info.width; in gop_blt_int() 166 dwidth = gopobj->info.width; in gop_blt_int() 178 for (j = 0; j < width; j++) { in gop_blt_int() 395 sy, dx, dy, width, height, in gop_blt() [all …]
|
/u-boot/board/gateworks/gw_ventana/ |
A D | gw_ventana_spl.c | 156 .width = 16, 170 .width = 16, 184 .width = 16, 198 .width = 16, 494 .dsize = width/32, in spl_dram_init() 525 if (width == 16 && size_mb == 128) { in spl_dram_init() 532 } else if (width == 16 && size_mb == 256) { in spl_dram_init() 540 } else if (width == 16 && size_mb == 512) { in spl_dram_init() 552 } else if (width == 32 && size_mb == 256) { in spl_dram_init() 560 } else if (width == 32 && size_mb == 512) { in spl_dram_init() [all …]
|
/u-boot/arch/arm/dts/ |
A D | ast2600-evb.dts | 63 spi-tx-bus-width = <4>; 64 spi-rx-bus-width = <4>; 71 spi-tx-bus-width = <4>; 72 spi-rx-bus-width = <4>; 79 spi-tx-bus-width = <4>; 80 spi-rx-bus-width = <4>; 96 spi-tx-bus-width = <4>; 97 spi-rx-bus-width = <4>; 112 spi-tx-bus-width = <4>; 113 spi-rx-bus-width = <4>; [all …]
|
/u-boot/common/ |
A D | lcd.c | 448 ulong width, height; in lcd_display_rle8_bitmap() local 453 width = get_unaligned_le32(&bmp->header.width); in lcd_display_rle8_bitmap() 489 if (x < width) { in lcd_display_rle8_bitmap() 491 cnt = width - x; in lcd_display_rle8_bitmap() 508 if (x < width) { in lcd_display_rle8_bitmap() 517 cnt = width - x; in lcd_display_rle8_bitmap() 581 width = get_unaligned_le32(&bmp->header.width); in lcd_display_bitmap() 616 padded_width = (width & 0x3 ? (width & ~0x3) + 4 : width); in lcd_display_bitmap() 623 if ((x + width) > pwidth) in lcd_display_bitmap() 624 width = pwidth - x; in lcd_display_bitmap() [all …]
|
/u-boot/board/friendlyarm/nanopi2/ |
A D | lcds.c | 94 .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/scripts/ |
A D | decodecode | 55 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
|