Searched refs:width (Results 1 - 25 of 208) sorted by relevance

123456789

/u-boot/include/
H A Dvideo_font_data.h8 #define VIDEO_FONT_BYTE_WIDTH(width) ((width / 8) + (width % 8 > 0))
9 #define VIDEO_FONT_CHAR_PIXEL_BYTES(width, height) (height * VIDEO_FONT_BYTE_WIDTH(width))
10 #define VIDEO_FONT_SIZE(chars, width, height) (chars * VIDEO_FONT_CHAR_PIXEL_BYTES(width, height))
14 int width; member in struct:video_fontdata
24 .width = _font_width, \
H A Dbitfield.h10 * width bitfields within a word. One use of this would be to use data tables
43 static inline uint bitfield_mask(uint shift, uint width) argument
45 return ((1 << width) - 1) << shift;
49 static inline uint bitfield_extract(uint reg_val, uint shift, uint width) argument
51 return (reg_val & bitfield_mask(shift, width)) >> shift;
58 static inline uint bitfield_replace(uint reg_val, uint shift, uint width, argument
61 uint mask = bitfield_mask(shift, width);
H A Ddisplay_options.h45 * @width: data value width. May be 1, 2, or 4.
49 int print_buffer(ulong addr, const void *data, uint width, uint count,
53 * Maximum length of an output line is when width == 1
66 * @width: data value width. May be 1, 2, or 4.
74 int hexdump_line(ulong addr, const void *data, uint width, uint count,
H A Dbus_vcxk.h10 extern int vcxk_init(unsigned long width, unsigned long height);
/u-boot/drivers/clk/meson/
H A Dclk_meson.h30 u8 width; member in struct:parm
33 #define PMASK(width) GENMASK(width - 1, 0)
34 #define SETPMASK(width, shift) GENMASK(shift + width - 1, shift)
35 #define CLRPMASK(width, shift) (~SETPMASK(width, shift))
37 #define PARM_GET(width, shift, reg) \
38 (((reg) & SETPMASK(width, shift)) >> (shift))
39 #define PARM_SET(width, shif
[all...]
/u-boot/lib/
H A Dqsort.c25 size_t width,
31 if ((nel > 1) && (width > 0)) {
32 assert(nel <= ((size_t)(-1)) / width); /* check for overflow */
39 wgap *= width; /* So this can not overflow if wnel doesn't. */
40 nel *= width; /* Convert nel to 'wnel' */
55 k = width;
62 i += width;
64 wgap = (wgap - width)/3;
23 qsort(void *base, size_t nel, size_t width, int (*comp)(const void *, const void *)) argument
H A Ddisplay_options.c150 int hexdump_line(ulong addr, const void *data, uint width, uint count, argument
164 if (linelen * width > MAX_LINE_LENGTH_BYTES)
165 linelen = MAX_LINE_LENGTH_BYTES / width;
167 linelen = DEFAULT_LINE_LENGTH_BYTES / width;
173 if (size < HEXDUMP_MAX_BUF_LENGTH(linelen * width))
185 if (width == 4)
187 else if (MEM_SUPPORT_64BIT_DATA && width == 8)
189 else if (width == 2)
196 out += sprintf(out, " %0*lx", width * 2, x);
197 data += width;
215 print_buffer(ulong addr, const void *data, uint width, uint count, uint linelen) argument
[all...]
H A Dsscanf.c367 size_t width; /* field width, or 0 */ local
402 width = 0;
445 width = width * 10 + c - '0';
553 if (width == 0)
554 width = 1;
559 if (n < width) {
561 width -= n;
566 sum += width;
572 memcpy(va_arg(ap, char *), inp, width); local
[all...]
/u-boot/arch/arm/mach-uniphier/
H 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
[all...]
/u-boot/arch/arm/mach-zynq/
H A Dddrc.c26 u32 width, ecctype; local
28 width = readl(&ddrc_base->ddrc_ctrl);
29 width = (width & ZYNQ_DDRC_CTRLREG_BUSWIDTH_MASK) >>
36 (width == ZYNQ_DDRC_CTRLREG_BUSWIDTH_16BIT)) {
/u-boot/scripts/kconfig/lxdialog/
H A Dyesno.c14 static void print_buttons(WINDOW * dialog, int height, int width, int selected) argument
16 int x = width / 2 - 10;
29 int dialog_yesno(const char *title, const char *prompt, int height, int width) argument
37 if (getmaxx(stdscr) < (width + YESNO_WIDTH_MIN))
41 x = (getmaxx(stdscr) - width) / 2;
44 draw_shadow(stdscr, y, x, height, width);
46 dialog = newwin(height, width, y, x);
49 draw_box(dialog, 0, 0, height, width,
53 for (i = 0; i < width - 2; i++)
58 print_title(dialog, title, width);
[all...]
H A Dinputbox.c16 static void print_buttons(WINDOW * dialog, int height, int width, int selected) argument
18 int x = width / 2 - 11;
31 int dialog_inputbox(const char *title, const char *prompt, int height, int width, argument
48 if (getmaxx(stdscr) <= (width - INPUTBOX_WIDTH_MIN))
52 x = (getmaxx(stdscr) - width) / 2;
55 draw_shadow(stdscr, y, x, height, width);
57 dialog = newwin(height, width, y, x);
60 draw_box(dialog, 0, 0, height, width,
64 for (i = 0; i < width - 2; i++)
69 print_title(dialog, title, width);
[all...]
H A Dtextbox.c12 static void print_page(WINDOW *win, int height, int width, update_text_fn
14 static void print_line(WINDOW *win, int row, int width);
48 int height, width, boxh, boxw; local
69 getmaxyx(stdscr, height, width);
70 if (height < TEXTBOX_HEIGTH_MIN || width < TEXTBOX_WIDTH_MIN)
80 width = initial_width;
82 if (width > 5)
83 width -= 5;
85 width = 0;
88 x = (getmaxx(stdscr) - width) /
299 print_page(WINDOW *win, int height, int width, update_text_fn update_text, void *data) argument
328 print_line(WINDOW * win, int row, int width) argument
[all...]
H 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);
/u-boot/drivers/net/fsl-mc/dpio/
H A Dqbman_private.h56 #define MAKE_MASK32(width) (width == 32 ? 0xffffffff : \
57 (uint32_t)((1 << width) - 1))
59 static inline uint32_t e32_##t(uint32_t lsoffset, uint32_t width, t val) \
61 BUG_ON(width > (sizeof(t) * 8)); \
62 return ((uint32_t)val & MAKE_MASK32(width)) << lsoffset; \
64 static inline t d32_##t(uint32_t lsoffset, uint32_t width, uint32_t val) \
66 BUG_ON(width > (sizeof(t) * 8)); \
67 return (t)((val >> lsoffset) & MAKE_MASK32(width)); \
69 static inline uint32_t i32_##t(uint32_t lsoffset, uint32_t width, \
[all...]
/u-boot/drivers/i2c/muxes/
H A Dpca954x.c36 u32 width; member in struct:chip_desc
41 u32 width; /* I2C mux width - number of busses */ member in struct:pca954x_priv
48 .width = 2,
53 .width = 4,
57 .width = 4,
62 .width = 8,
66 .width = 8,
70 .width = 4,
75 .width
[all...]
/u-boot/drivers/clk/
H A Dclk-divider.c48 unsigned int val, unsigned long flags, u8 width)
55 return val ? val : clk_div_mask(width) + 1;
64 unsigned long flags, unsigned long width)
68 div = _get_div(table, val, flags, width);
91 val &= clk_div_mask(divider->width);
94 divider->flags, divider->width);
130 unsigned int div, unsigned long flags, u8 width)
137 return (div == clk_div_mask(width) + 1) ? 0 : div;
143 const struct clk_div_table *table, u8 width,
153 value = _get_val(table, div, flags, width);
47 _get_div(const struct clk_div_table *table, unsigned int val, unsigned long flags, u8 width) argument
61 divider_recalc_rate(struct clk *hw, unsigned long parent_rate, unsigned int val, const struct clk_div_table *table, unsigned long flags, unsigned long width) argument
129 _get_val(const struct clk_div_table *table, unsigned int div, unsigned long flags, u8 width) argument
142 divider_get_val(unsigned long rate, unsigned long parent_rate, const struct clk_div_table *table, u8 width, unsigned long flags) argument
187 _register_divider(struct device *dev, const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, u8 shift, u8 width, u8 clk_divider_flags, const struct clk_div_table *table) argument
231 clk_register_divider(struct device *dev, const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, u8 shift, u8 width, u8 clk_divider_flags) argument
[all...]
/u-boot/drivers/video/
H A Dvideo_bmp.c130 ulong width, ulong height)
154 fb -= width * bytes_per_pixel +
175 if (x < width) {
176 if (x + runlen > width)
177 cnt = width - x;
194 if (x < width) {
202 if (x + runlen > width)
203 cnt = width - x;
251 *widthp = get_unaligned_le32(&bmp->header.width);
265 unsigned long width, heigh local
126 video_display_rle8_bitmap(struct udevice *dev, struct bmp_image *bmp, uint bpix, struct bmp_color_table_entry *palette, uchar *fb, int x_off, int y_off, ulong width, ulong height) argument
[all...]
H A Dsandbox_osd.c15 uint width; member in struct:sandbox_osd_priv
34 info->width = priv->width;
50 pos = 2 * (row * priv->width + col);
52 if (pos >= 2 * (priv->width * priv->height))
67 priv->width = col;
69 size = priv->width * priv->height;
98 if (col >= priv->width || row >= priv->height)
122 pos = row * priv->width + col;
133 uint memsize = 2 * (priv->width * pri
[all...]
/u-boot/arch/arm/include/asm/ti-common/
H A Dti-aemif.h33 } width; member in struct:aemif_config
/u-boot/drivers/clk/microchip/
H A Dmpfs_clk.h40 * @width: width of the divider bit field.
46 u8 width, unsigned long flags);
/u-boot/board/samsung/common/
H A Dsromc.c31 int width; /* bus width in bytes */ local
38 width = dev_read_s32_default(dev, "width", 2);
40 /* Ethernet needs data bus width of 16 bits */
41 if (width != 2) {
42 log_debug("Unsupported bus width %d\n", width);
43 return log_msg_ret("width", -EINVAL);
/u-boot/board/friendlyarm/nanopi2/
H A Dlcds.c94 .width = 800,
121 .width = 800,
148 .width = 800,
175 .width = 800,
202 .width = 800,
229 .width = 480,
256 .width = 1024,
282 .width = 1024,
309 .width = 1024,
335 .width
546 int width; member in struct:hdmi_config
[all...]
/u-boot/tools/
H A Dbmp_logo.c10 uint16_t width; member in struct:bitmap_s
71 b->width, b->height, n_colors,
110 * read width and height of the image, and the number of colors used;
122 if (fread (&b->width, sizeof (uint16_t), 1, fp) != 1)
123 error ("Couldn't read bitmap width", fp);
136 b->width = le_short(b->width);
139 size = b->width * b->height;
204 for (i = (b->height - 1) * b->width; i >= 0; i -= b->width) {
[all...]
/u-boot/scripts/
H 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 217 milliseconds

123456789