| /rk3399_rockchip-uboot/arch/arm/mach-uniphier/ |
| H A D | boards.c | 21 .width = 16, 25 .width = 16, 37 .width = 32, 41 .width = 32, 50 .width = 32, 54 .width = 32, 64 .width = 16, 68 .width = 16, 79 .width = 32, 83 .width = 32, [all …]
|
| /rk3399_rockchip-uboot/drivers/video/ |
| H A D | video_bmp.c | 47 ulong width, height; in video_display_rle8_bitmap() local 53 width = get_unaligned_le32(&bmp->header.width); in video_display_rle8_bitmap() 69 fb -= (width * 2 + priv->line_length); in video_display_rle8_bitmap() 89 if (x < width) { in video_display_rle8_bitmap() 90 if (x + runlen > width) in video_display_rle8_bitmap() 91 cnt = width - x; in video_display_rle8_bitmap() 108 if (x < width) { in video_display_rle8_bitmap() 116 if (x + runlen > width) in video_display_rle8_bitmap() 117 cnt = width - x; in video_display_rle8_bitmap() 202 unsigned long width, height, byte_width; in video_bmp_display() local [all …]
|
| H A D | cfb_console.c | 1163 int width, int height) in display_rle8_bitmap() argument 1263 if (x >= width) { in display_rle8_bitmap() 1267 if (x + runlen > width) in display_rle8_bitmap() 1268 cnt = width - x; in display_rle8_bitmap() 1287 if (x >= width) { in display_rle8_bitmap() 1292 if (x + runlen > width) in display_rle8_bitmap() 1293 cnt = width - x; in display_rle8_bitmap() 1318 unsigned long width, height, bpp; in video_display_bitmap() local 1378 width = le32_to_cpu(bmp->header.width); in video_display_bitmap() 1385 width, height, colors); in video_display_bitmap() [all …]
|
| H A D | bus_vcxk.c | 114 int vcxk_init(unsigned long width, unsigned long height) in vcxk_init() argument 127 display_width = width; in vcxk_init() 130 display_bwidth = ((width + 31) / 8) & ~0x3; in vcxk_init() 132 display_bwidth = ((width + 15) / 8) & ~0x1; in vcxk_init() 362 unsigned long width; in vcxk_display_bitmap() local 375 width = le32_to_cpu(bmp->header.width); in vcxk_display_bitmap() 382 if (display_width < (width + x)) in vcxk_display_bitmap() 385 c_width = width; in vcxk_display_bitmap() 391 lw = (((width + 7) / 8) + 3) & ~0x3; in vcxk_display_bitmap()
|
| /rk3399_rockchip-uboot/drivers/net/fsl-mc/dpio/ |
| H A D | qbman_private.h | 57 #define MAKE_MASK32(width) (width == 32 ? 0xffffffff : \ argument 58 (uint32_t)((1 << width) - 1)) 60 static inline uint32_t e32_##t(uint32_t lsoffset, uint32_t width, t val) \ 62 BUG_ON(width > (sizeof(t) * 8)); \ 63 return ((uint32_t)val & MAKE_MASK32(width)) << lsoffset; \ 65 static inline t d32_##t(uint32_t lsoffset, uint32_t width, uint32_t val) \ 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)); \ [all …]
|
| /rk3399_rockchip-uboot/drivers/video/drm/ |
| H A D | bmp_helper.c | 52 int width, int height, int bits, int x_off, in decode_rle8_bitmap() argument 58 int linesize = width * 2; in decode_rle8_bitmap() 103 if (y >= height || x >= width) { in decode_rle8_bitmap() 107 if (x + runlen > width) in decode_rle8_bitmap() 108 cnt = width - x; in decode_rle8_bitmap() 122 if (x < width) { in decode_rle8_bitmap() 130 if (x + runlen > width) in decode_rle8_bitmap() 131 cnt = width - x; in decode_rle8_bitmap() 146 int stride, padded_width, bpp, i, width, height; in bmpdecoder() local 159 width = get_unaligned_le32(&bmp->header.width); in bmpdecoder() [all …]
|
| H A D | libnsbmp.c | 80 int32_t width, height; in bmp_info_header_parse() local 108 width = read_int16(data, 4); in bmp_info_header_parse() 110 if ((width <= 0) || (height == 0)) in bmp_info_header_parse() 123 if ((width > 256) || (height > 512)) { in bmp_info_header_parse() 126 bmp->width = width; in bmp_info_header_parse() 130 bmp->width = width; in bmp_info_header_parse() 185 width = read_int32(data, 4); in bmp_info_header_parse() 187 if ((width <= 0) || (height == 0)) in bmp_info_header_parse() 204 if ((width > 256) || (height > 512)) { in bmp_info_header_parse() 207 bmp->width = width; in bmp_info_header_parse() [all …]
|
| /rk3399_rockchip-uboot/scripts/kconfig/lxdialog/ |
| H A D | yesno.c | 15 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument 17 int x = width / 2 - 10; in print_buttons() 30 int dialog_yesno(const char *title, const char *prompt, int height, int width) in dialog_yesno() argument 38 if (getmaxx(stdscr) < (width + YESNO_WIDTH_MIN)) in dialog_yesno() 42 x = (getmaxx(stdscr) - width) / 2; in dialog_yesno() 45 draw_shadow(stdscr, y, x, height, width); in dialog_yesno() 47 dialog = newwin(height, width, y, x); in dialog_yesno() 50 draw_box(dialog, 0, 0, height, width, in dialog_yesno() 54 for (i = 0; i < width - 2; i++) in dialog_yesno() 59 print_title(dialog, title, width); in dialog_yesno() [all …]
|
| H A D | inputbox.c | 17 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument 19 int x = width / 2 - 11; in print_buttons() 32 int dialog_inputbox(const char *title, const char *prompt, int height, int width, in dialog_inputbox() argument 49 if (getmaxx(stdscr) <= (width - INPUTBOX_WIDTH_MIN)) in dialog_inputbox() 53 x = (getmaxx(stdscr) - width) / 2; in dialog_inputbox() 56 draw_shadow(stdscr, y, x, height, width); in dialog_inputbox() 58 dialog = newwin(height, width, y, x); in dialog_inputbox() 61 draw_box(dialog, 0, 0, height, width, in dialog_inputbox() 65 for (i = 0; i < width - 2; i++) in dialog_inputbox() 70 print_title(dialog, title, width); in dialog_inputbox() [all …]
|
| H A D | textbox.c | 13 static void print_page(WINDOW *win, int height, int width, update_text_fn 15 static void print_line(WINDOW *win, int row, int width); 49 int height, width, boxh, boxw; in dialog_textbox() local 70 getmaxyx(stdscr, height, width); in dialog_textbox() 71 if (height < TEXTBOX_HEIGTH_MIN || width < TEXTBOX_WIDTH_MIN) in dialog_textbox() 81 width = initial_width; in dialog_textbox() 83 if (width > 5) in dialog_textbox() 84 width -= 5; in dialog_textbox() 86 width = 0; in dialog_textbox() 89 x = (getmaxx(stdscr) - width) / 2; in dialog_textbox() [all …]
|
| H A D | checklist.c | 89 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument 91 int x = width / 2 - 11; in print_buttons() 106 int width, int list_height) in dialog_checklist() argument 125 if (getmaxx(stdscr) < (width + CHECKLIST_WIDTH_MIN)) in dialog_checklist() 131 x = (getmaxx(stdscr) - width) / 2; in dialog_checklist() 134 draw_shadow(stdscr, y, x, height, width); in dialog_checklist() 136 dialog = newwin(height, width, y, x); in dialog_checklist() 139 draw_box(dialog, 0, 0, height, width, in dialog_checklist() 143 for (i = 0; i < width - 2; i++) in dialog_checklist() 148 print_title(dialog, title, width); in dialog_checklist() [all …]
|
| H A D | dialog.h | 209 void attr_clear(WINDOW * win, int height, int width, chtype attr); 211 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x); 213 void print_title(WINDOW *dialog, const char *title, int width); 214 void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box, 216 void draw_shadow(WINDOW * win, int y, int x, int height, int width); 219 int dialog_yesno(const char *title, const char *prompt, int height, int width); 221 int width, int pause); 232 int width, int list_height); 234 int width, const char *init);
|
| H A D | menubox.c | 143 static void print_buttons(WINDOW * win, int height, int width, int selected) in print_buttons() argument 145 int x = width / 2 - 28; in print_buttons() 176 int height, width, menu_height; in dialog_menu() local 183 width = getmaxx(stdscr); in dialog_menu() 184 if (height < MENUBOX_HEIGTH_MIN || width < MENUBOX_WIDTH_MIN) in dialog_menu() 188 width -= 5; in dialog_menu() 194 x = (getmaxx(stdscr) - width) / 2; in dialog_menu() 197 draw_shadow(stdscr, y, x, height, width); in dialog_menu() 199 dialog = newwin(height, width, y, x); in dialog_menu() 202 draw_box(dialog, 0, 0, height, width, in dialog_menu() [all …]
|
| /rk3399_rockchip-uboot/lib/ |
| H A D | qsort.c | 24 size_t width, in qsort() argument 30 if ((nel > 1) && (width > 0)) { in qsort() 31 assert(nel <= ((size_t)(-1)) / width); /* check for overflow */ in qsort() 38 wgap *= width; /* So this can not overflow if wnel doesn't. */ in qsort() 39 nel *= width; /* Convert nel to 'wnel' */ in qsort() 54 k = width; in qsort() 61 i += width; in qsort() 63 wgap = (wgap - width)/3; in qsort()
|
| H A D | display_options.c | 135 int print_buffer(ulong addr, const void *data, uint width, uint count, in print_buffer() argument 154 if (linelen*width > MAX_LINE_LENGTH_BYTES) in print_buffer() 155 linelen = MAX_LINE_LENGTH_BYTES / width; in print_buffer() 157 linelen = DEFAULT_LINE_LENGTH_BYTES / width; in print_buffer() 169 if (width == 4) in print_buffer() 172 else if (width == 8) in print_buffer() 175 else if (width == 2) in print_buffer() 180 printf(" %0*llx", width * 2, (long long)x); in print_buffer() 182 printf(" %0*x", width * 2, x); in print_buffer() 184 data += width; in print_buffer() [all …]
|
| /rk3399_rockchip-uboot/arch/arm/mach-zynq/ |
| H A D | ddrc.c | 29 u32 width, ecctype; in zynq_ddrc_init() local 31 width = readl(&ddrc_base->ddrc_ctrl); in zynq_ddrc_init() 32 width = (width & ZYNQ_DDRC_CTRLREG_BUSWIDTH_MASK) >> in zynq_ddrc_init() 39 (width == ZYNQ_DDRC_CTRLREG_BUSWIDTH_16BIT)) { in zynq_ddrc_init()
|
| /rk3399_rockchip-uboot/board/gateworks/gw_ventana/ |
| H A D | gw_ventana_spl.c | 155 .width = 16, 169 .width = 16, 183 .width = 16, 197 .width = 16, 428 static void spl_dram_init(int width, int size_mb, int board_model) in spl_dram_init() argument 434 .dsize = width/32, in spl_dram_init() 465 if (width == 16 && size_mb == 128) { in spl_dram_init() 472 } else if (width == 16 && size_mb == 256) { in spl_dram_init() 480 } else if (width == 16 && size_mb == 512) { in spl_dram_init() 487 } else if (width == 32 && size_mb == 256) { in spl_dram_init() [all …]
|
| /rk3399_rockchip-uboot/include/ |
| H 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()
|
| /rk3399_rockchip-uboot/common/ |
| H A D | lcd.c | 458 ulong width, height; in lcd_display_rle8_bitmap() local 463 width = get_unaligned_le32(&bmp->header.width); in lcd_display_rle8_bitmap() 479 fb -= (width * 2 + lcd_line_length); in lcd_display_rle8_bitmap() 499 if (x < width) { in lcd_display_rle8_bitmap() 500 if (x + runlen > width) in lcd_display_rle8_bitmap() 501 cnt = width - x; in lcd_display_rle8_bitmap() 518 if (x < width) { in lcd_display_rle8_bitmap() 526 if (x + runlen > width) in lcd_display_rle8_bitmap() 527 cnt = width - x; in lcd_display_rle8_bitmap() 577 unsigned long width, height, byte_width; in lcd_display_bitmap() local [all …]
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | bmp_logo.c | 9 uint16_t width; member 69 b->width, b->height, n_colors, in gen_info() 112 if (fread (&b->width, sizeof (uint16_t), 1, fp) != 1) in main() 126 b->width = le_short(b->width); in main() 151 if ((b->data = (uint8_t *)malloc(b->width * b->height)) == NULL) in main() 180 for (i=(b->height-1)*b->width; i>=0; i-=b->width) { in main() 181 for (x = 0; x < b->width; x++) { in main() 187 for (i=0; i<(b->height*b->width); ++i) { in main()
|
| /rk3399_rockchip-uboot/doc/device-tree-bindings/spi/ |
| H A D | spi-stm32-qspi.txt | 14 - spi-tx-bus-width : Bus width (number of lines) for writing (1-4) 15 - spi-rx-bus-width : Bus width (number of lines) for reading (1-4) 34 spi-tx-bus-width = <4>; 35 spi-rx-bus-width = <4>;
|
| /rk3399_rockchip-uboot/drivers/mtd/nand/raw/ |
| H A D | fsl_upm.c | 32 static void fsl_upm_run_pattern(struct fsl_upm *upm, int width, in fsl_upm_run_pattern() argument 37 switch (width) { in fsl_upm_run_pattern() 103 mar = cmd << (32 - fun->width); in fun_cmd_ctrl() 112 fsl_upm_run_pattern(&fun->upm, fun->width, io_addr, mar); in fun_cmd_ctrl() 166 if (fun->width != 8 && fun->width != 16 && fun->width != 32) in fsl_upm_nand_init()
|
| /rk3399_rockchip-uboot/board/barco/platinum/ |
| H A D | spl_picon.c | 91 .width = 16, 117 static void spl_dram_init(int width) in spl_dram_init() argument 122 .dsize = width / 32, in spl_dram_init() 145 mx6sdl_dram_iocfg(width, &mx6sdl_ddr_ioregs, &mx6sdl_grp_ioregs); in spl_dram_init()
|
| H A D | spl_titanium.c | 91 .width = 16, 120 static void spl_dram_init(int width) in spl_dram_init() argument 125 .dsize = width / 32, in spl_dram_init() 148 mx6dq_dram_iocfg(width, &mx6dq_ddr_ioregs, &mx6dq_grp_ioregs); in spl_dram_init()
|
| /rk3399_rockchip-uboot/arch/arm/mach-uniphier/dram/ |
| H A D | umc-pxs2.c | 114 static int ddrphy_get_system_latency(void __iomem *phy_base, int width) in ddrphy_get_system_latency() argument 117 const int nr_dx = width / 8; in ddrphy_get_system_latency() 142 static void ddrphy_init(void __iomem *phy_base, enum dram_freq freq, int width, in ddrphy_init() argument 150 nr_dx = width / 8; in ddrphy_init() 161 if (width >= 32) in ddrphy_init() 464 unsigned long size, int width, int ch) in umc_dc_init() argument 507 if (width >= 32) in umc_dc_init() 511 if (width >= 32) in umc_dc_init() 543 unsigned long size, unsigned int width, int ch) in umc_ch_init() argument 557 ddrphy_init(phy_base, freq, width, ch); in umc_ch_init() [all …]
|