Home
last modified time | relevance | path

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

12345678910>>...17

/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/core/
A Dsnd_misc.c42 unsigned char width; /* bit width */ member
51 .width = 8, .phys = 8, .le = -1, .signd = 1,
55 .width = 8, .phys = 8, .le = -1, .signd = 0,
173 int width; in snd_pcm_format_set_silence() local
180 width = pcm_formats[format].phys; in snd_pcm_format_set_silence()
182 if (!width) in snd_pcm_format_set_silence()
186 unsigned int bytes = samples * width / 8; in snd_pcm_format_set_silence()
191 width /= 8; in snd_pcm_format_set_silence()
195 memcpy(dst, pat, width); in snd_pcm_format_set_silence()
196 dst += width; in snd_pcm_format_set_silence()
[all …]
/bsp/nv32f100x/lib/inc/
A DBME.h153 #define BME_BITFIELD_INSERT(ADDR,bit,width) (*(volatile uint32_t *)(((uint32_t)ADDR) \ argument
155 | ((bit)<<23) | ((width-1))<<19))
176 … #define BME_BITFIELD_EXTRACT(ADDR,bit,width) (*(volatile uint32_t *)(((uint32_t)ADDR) \ argument
178 | ((bit)<<23) | ((width-1))<<19))
203 #define BME_BITFIELD_INSERT(ADDR,bit,width) (*(volatile uint32_t *)(((uint32_t)ADDR) \
212 … #define BME_BITFIELD_EXTRACT(ADDR,bit,width) (*(volatile uint32_t *)(((uint32_t)ADDR) \
345 … #define BME_BITFIELD_INSERT_8b(ADDR,bit,width) (*(volatile uint8_t *)(((uint32_t)ADDR) \ argument
347 | ((bit)<<23) | ((width-1))<<19))
367 | ((bit<<23) | ((width-1))<<19))
537 | ((bit)<<23) | ((width-1))<<19))
[all …]
/bsp/nxp/imx/imxrt/libraries/drivers/vglite/font/mcufont/decoder/
A Dmf_wordwrap.c88 if (current->width + wordlen.word <= width) in append_word()
115 if (current->width + w <= width) in append_char()
119 current->width += w; in append_char()
203 current.width = 0; in mf_wordwrap()
257 *max_pixels_per_row = current.width; in mf_text_draw_area()
261 current.width = 0; in mf_text_draw_area()
272 if ( *max_pixels_per_row < previous.width ) in mf_text_draw_area()
273 *max_pixels_per_row = previous.width; in mf_text_draw_area()
278 if ( *max_pixels_per_row < current.width ) in mf_text_draw_area()
279 *max_pixels_per_row = current.width; in mf_text_draw_area()
[all …]
A Dmf_font.c17 uint8_t width; in mf_render_character() local
18 width = font->render_character(font, x0, y0, character, callback, state); in mf_render_character()
20 if (!width) in mf_render_character()
26 return width; in mf_render_character()
32 uint8_t width; in mf_character_width() local
33 width = font->character_width(font, character); in mf_character_width()
35 if (!width) in mf_character_width()
37 width = font->character_width(font, font->fallback_character); in mf_character_width()
40 return width; in mf_character_width()
74 if (left) *left = font->width; in mf_character_whitespace()
[all …]
/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/component/aw-alsa-lib/
A Dpcm_misc.c155 switch (width) { in snd_pcm_build_linear_format()
157 width = 0; in snd_pcm_build_linear_format()
160 width = 1; in snd_pcm_build_linear_format()
163 width = 2; in snd_pcm_build_linear_format()
168 return linear24_formats[width][!!unsignd][!!big_endian]; in snd_pcm_build_linear_format()
173 switch (width) { in snd_pcm_build_linear_format()
175 width = 0; in snd_pcm_build_linear_format()
178 width = 1; in snd_pcm_build_linear_format()
181 width = 2; in snd_pcm_build_linear_format()
184 width = 3; in snd_pcm_build_linear_format()
[all …]
A Dpcm_linear.c72 int sign, width, pwidth, endian; in snd_pcm_linear_get_index() local
83 switch (width) { in snd_pcm_linear_get_index()
85 width = 0; break; in snd_pcm_linear_get_index()
87 width = 1; break; in snd_pcm_linear_get_index()
90 width = 2; break; in snd_pcm_linear_get_index()
94 width = width / 8 - 1; in snd_pcm_linear_get_index()
112 switch (width) { in snd_pcm_linear_put_index()
114 width = 0; break; in snd_pcm_linear_put_index()
116 width = 1; break; in snd_pcm_linear_put_index()
119 width = 2; break; in snd_pcm_linear_put_index()
[all …]
/bsp/allwinner/libraries/sunxi-hal/hal/source/ccmu/sunxi-ng/
A Dclk-divider.c32 u8 width) in _get_table_maxdiv() argument
63 return clk_div_mask(width); in _get_maxdiv()
67 return 1 << clk_div_mask(width); in _get_maxdiv()
71 return _get_table_maxdiv(table, width); in _get_maxdiv()
73 return clk_div_mask(width) + 1; in _get_maxdiv()
167 div = _get_div(table, val, flags, width); in divider_recalc_rate()
183 val &= clk_div_mask(divider->width); in clk_divider_recalc_rate()
536 return min(value, clk_div_mask(width)); in divider_get_val()
599 if (width + shift > 16) in _register_divider()
627 div->width = width; in _register_divider()
[all …]
A Dccu_nkmp.c125 n &= (1 << nkmp->n.width) - 1; in ccu_nkmp_recalc_rate()
133 k &= (1 << nkmp->k.width) - 1; in ccu_nkmp_recalc_rate()
141 m &= (1 << nkmp->m.width) - 1; in ccu_nkmp_recalc_rate()
149 p &= (1 << nkmp->p.width) - 1; in ccu_nkmp_recalc_rate()
182 _nkmp.max_n = nkmp->n.max ? : 1 << nkmp->n.width; in ccu_nkmp_round_rate()
184 _nkmp.max_k = nkmp->k.max ? : 1 << nkmp->k.width; in ccu_nkmp_round_rate()
186 _nkmp.max_m = nkmp->m.max ? : 1 << nkmp->m.width; in ccu_nkmp_round_rate()
233 if (nkmp->n.width) in ccu_nkmp_set_rate()
236 if (nkmp->k.width) in ccu_nkmp_set_rate()
239 if (nkmp->m.width) in ccu_nkmp_set_rate()
[all …]
/bsp/hpmicro/libraries/hpm_sdk/drivers/src/
A Dhpm_pdma_drv.c493 output.width = width; in pdma_fill_color()
545 plane_src.width = width; in pdma_flip_rotate()
577 output.width = width; in pdma_flip_rotate()
630 plane_src.width = width; in pdma_blit()
636 plane_dst.width = width; in pdma_blit()
657 output.width = width; in pdma_blit()
738 plane_src.width = width; in pdma_scale()
755 plane_dst.width = width; in pdma_scale()
870 plane_src.width = src->width; in pdma_blit_ex()
884 plane_dst.width = dst->width; in pdma_blit_ex()
[all …]
/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/
A Dlcd_qrcode.c43 rt_uint32_t width = 0, high = 0; in show_qrcode_by_point() local
46 for (width = 0; width < size; width++) in show_qrcode_by_point()
48 if (qrcode_getModule(&qrcode, width, high)) in show_qrcode_by_point()
55 …lcd_draw_point(x + enlargement_factor * width + offset_x, y + enlargement_factor * high + offset_y… in show_qrcode_by_point()
65 rt_uint32_t width = 0, high = 0; in show_qrcode_by_line() local
68 for (width = 0; width < qrcode.size; width++) in show_qrcode_by_line()
70 if (qrcode_getModule(&qrcode, width, high)) in show_qrcode_by_line()
78 …qrcode_buf[2 * (enlargement_factor * width + offset_x + offset_y * qrcode.size * enlargement_facto… in show_qrcode_by_line()
79 …qrcode_buf[2 * (enlargement_factor * width + offset_x + offset_y * qrcode.size * enlargement_facto… in show_qrcode_by_line()
91 …qrcode_buf[2 * (enlargement_factor * width + offset_x + offset_y * qrcode.size * enlargement_facto… in show_qrcode_by_line()
[all …]
/bsp/stm32/stm32l475-atk-pandora/board/ports/arduino/
A DST7789_adafruit_gfx_demo.cpp52 for (int16_t x=0; x < tft.width(); x+=6) in testlines()
58 tft.drawLine(0, 0, tft.width()-1, y, color); in testlines()
62 for (int16_t x=0; x < tft.width(); x+=6) in testlines()
72 for (int16_t x=0; x < tft.width(); x+=6) in testlines()
82 for (int16_t x=0; x < tft.width(); x+=6) in testlines()
108 for (int16_t x=0; x < tft.width(); x+=5) in testfastlines()
117 for (int16_t x=0; x < tft.width(); x+=6) in testdrawrects()
126 for (int16_t x=tft.width()-1; x > 6; x-=6) in testfillrects()
160 int w = tft.width()/2; in testtriangles()
163 int z = tft.width(); in testtriangles()
[all …]
/bsp/allwinner/libraries/sunxi-hal/hal/source/tpadc/
A Dcommon_tpadc.h41 #define SETMASK(width, shift) ((width?((-1U) >> (32-width)):0) << (shift)) argument
42 #define CLRMASK(width, shift) (~(SETMASK(width, shift))) argument
43 #define GET_BITS(shift, width, reg) \ argument
44 (((reg) & SETMASK(width, shift)) >> (shift))
45 #define SET_BITS(shift, width, reg, val) \ argument
46 (((reg) & CLRMASK(width, shift)) | (val << (shift)))
/bsp/nxp/imx/imxrt/libraries/drivers/vglite/font/
A Dvg_lite_text.c46 uint16_t width; member
107 if (x < 0 || x + count >= s->width) return; in pixel_callback()
163 width = ((width+15)&(~15)); in alloc_font_buffer()
167 buffer->width = width; in alloc_font_buffer()
172 buffer->stride = width; in alloc_font_buffer()
283 ctx_text.width = attributes->width; in vg_lite_draw_text()
285 ctx_text.width = text_width_in_pixels; in vg_lite_draw_text()
287 if (ctx_text.width & 15) { in vg_lite_draw_text()
288 ctx_text.width += 15; in vg_lite_draw_text()
289 ctx_text.width &= (~15); in vg_lite_draw_text()
[all …]
/bsp/ht32/libraries/HT32_STD_5xxxx_FWLib/library/HT32F5xxxx_Driver/src/
A Dprintf.c57 static void PutNumber(int value, int radix, int width, char fill);
299 static void PutNumber(int value, int radix, int width, char fill) in PutNumber() argument
313 if (width < 0) in PutNumber()
315 width = -width; in PutNumber()
319 if (width < 0 || width > 80) in PutNumber()
321 width = 0; in PutNumber()
359 if (width <= bi) in PutNumber()
365 width -= bi; in PutNumber()
368 PutRepChar(fill, width); in PutNumber()
375 PutRepChar(fill, width); in PutNumber()
/bsp/ht32/libraries/HT32_STD_1xxxx_FWLib/library/HT32F1xxxx_Driver/src/
A Dprintf.c57 static void PutNumber(int value, int radix, int width, char fill);
299 static void PutNumber(int value, int radix, int width, char fill) in PutNumber() argument
313 if (width < 0) in PutNumber()
315 width = -width; in PutNumber()
319 if (width < 0 || width > 80) in PutNumber()
321 width = 0; in PutNumber()
359 if (width <= bi) in PutNumber()
365 width -= bi; in PutNumber()
368 PutRepChar(fill, width); in PutNumber()
375 PutRepChar(fill, width); in PutNumber()
/bsp/allwinner/libraries/sunxi-hal/include/hal/
A Dsunxi_hal_pwm.h66 #define SETMASK(width, shift) ((width?((-1U) >> (32-width)):0) << (shift)) argument
67 #define CLRMASK(width, shift) (~(SETMASK(width, shift))) argument
68 #define GET_BITS(shift, width, reg) \ argument
69 (((reg) & SETMASK(width, shift)) >> (shift))
70 #define SET_BITS(shift, width, reg, val) \ argument
71 (((reg) & CLRMASK(width, shift)) | (val << (shift)))
/bsp/samd21/sam_d2x_asflib/common2/services/gfx_mono/
A Dgfx_mono_text.c97 if (font->width % CONFIG_FONT_PIXELS_PER_BYTE) { in gfx_mono_draw_char_hugemem()
108 uint8_t pixelsToDraw = font->width; in gfx_mono_draw_char_hugemem()
193 uint8_t pixelsToDraw = font->width; in gfx_mono_draw_char_progmem()
278 x += font->width; in gfx_mono_draw_string()
322 x += font->width; in gfx_mono_draw_progmem_string()
341 gfx_coord_t *width, gfx_coord_t *height) in gfx_mono_get_string_bounding_box() argument
343 gfx_coord_t font_width = font->width; in gfx_mono_get_string_bounding_box()
371 *width = max_width; in gfx_mono_get_string_bounding_box()
387 const struct font *font, gfx_coord_t *width, in gfx_mono_get_progmem_string_bounding_box() argument
390 gfx_coord_t font_width = font->width; in gfx_mono_get_progmem_string_bounding_box()
[all …]
A Dgfx_mono_c12832_a1z.h94 #define gfx_mono_draw_rect(x, y, width, height, color) \ argument
95 gfx_mono_generic_draw_rect(x, y, width, height, color)
97 #define gfx_mono_draw_filled_rect(x, y, width, height, color) \ argument
98 gfx_mono_generic_draw_filled_rect(x, y, width, height, \
121 #define gfx_mono_put_page(data, page, column, width) \ argument
122 gfx_mono_st7565r_put_page(data, page, column, width)
124 #define gfx_mono_get_page(data, page, column, width) \ argument
125 gfx_mono_st7565r_get_page(data, page, column, width)
142 gfx_coord_t page_offset, gfx_coord_t width);
145 gfx_coord_t page_offset, gfx_coord_t width);
A Dgfx_mono_ug_2832hsweg04.h94 #define gfx_mono_draw_rect(x, y, width, height, color) \ argument
95 gfx_mono_generic_draw_rect(x, y, width, height, color)
97 #define gfx_mono_draw_filled_rect(x, y, width, height, color) \ argument
98 gfx_mono_generic_draw_filled_rect(x, y, width, height, \
121 #define gfx_mono_put_page(data, page, column, width) \ argument
122 gfx_mono_ssd1306_put_page(data, page, column, width)
124 #define gfx_mono_get_page(data, page, column, width) \ argument
125 gfx_mono_ssd1306_get_page(data, page, column, width)
142 gfx_coord_t page_offset, gfx_coord_t width);
145 gfx_coord_t page_offset, gfx_coord_t width);
/bsp/qemu-vexpress-a9/drivers/
A Ddrv_clcd.c50 int width; member
86 info->width = lcd->width; in drv_clcd_control()
97 info->smem_len = lcd->width * lcd->height * 2; in drv_clcd_control()
100 info->line_length = lcd->width * 2; in drv_clcd_control()
109 info->xres = lcd->width; in drv_clcd_control()
141 _lcd.width = CLCD_WIDTH; in drv_clcd_hw_init()
143 rt_kprintf("try to allocate fb... | w - %d, h - %d | ", _lcd.width, _lcd.height); in drv_clcd_hw_init()
145 _lcd.fb = rt_pages_alloc(rt_page_bits(_lcd.width * _lcd.height * 2)); in drv_clcd_hw_init()
147 _lcd.fb = rt_malloc(_lcd.width * _lcd.height * 2); in drv_clcd_hw_init()
156 memset(_lcd.fb, 0xff, _lcd.width * _lcd.height * 2); in drv_clcd_hw_init()
/bsp/allwinner/libraries/sunxi-hal/hal/test/disp2/
A Ddisp_layer_cfg.c79 if (!width || !height) { in disp_layer_get_resolution()
158 test_cfg->layer_cfg.info.fb.size[1].width = in disp_layer_cfg()
162 test_cfg->layer_cfg.info.fb.size[2].width = in disp_layer_cfg()
195 test_cfg->layer_cfg.info.fb.size[1].width = in disp_layer_cfg()
199 test_cfg->layer_cfg.info.fb.size[2].width = in disp_layer_cfg()
232 test_cfg->layer_cfg.info.fb.size[1].width = in disp_layer_cfg()
236 test_cfg->layer_cfg.info.fb.size[2].width = in disp_layer_cfg()
314 test_cfg->width; in disp_layer_cfg()
321 test_cfg->width) in disp_layer_cfg()
323 test_cfg->width; in disp_layer_cfg()
[all …]
/bsp/stm32/stm32mp157a-st-discovery/board/ports/OpenAMP/libmetal/lib/include/metal/
A Dio.h43 int width);
48 int width);
222 memory_order order, int width) in metal_io_read() argument
228 else if (ptr && sizeof(atomic_uchar) == width) in metal_io_read()
230 else if (ptr && sizeof(atomic_ushort) == width) in metal_io_read()
232 else if (ptr && sizeof(atomic_uint) == width) in metal_io_read()
234 else if (ptr && sizeof(atomic_ulong) == width) in metal_io_read()
237 else if (ptr && sizeof(atomic_ullong) == width) in metal_io_read()
261 else if (ptr && sizeof(atomic_uchar) == width) in metal_io_write()
265 else if (ptr && sizeof(atomic_uint) == width) in metal_io_write()
[all …]
/bsp/stm32/stm32mp157a-st-ev1/board/ports/OpenAMP/libmetal/lib/include/metal/
A Dio.h43 int width);
48 int width);
222 memory_order order, int width) in metal_io_read() argument
228 else if (ptr && sizeof(atomic_uchar) == width) in metal_io_read()
230 else if (ptr && sizeof(atomic_ushort) == width) in metal_io_read()
232 else if (ptr && sizeof(atomic_uint) == width) in metal_io_read()
234 else if (ptr && sizeof(atomic_ulong) == width) in metal_io_read()
237 else if (ptr && sizeof(atomic_ullong) == width) in metal_io_read()
261 else if (ptr && sizeof(atomic_uchar) == width) in metal_io_write()
265 else if (ptr && sizeof(atomic_uint) == width) in metal_io_write()
[all …]
/bsp/hc32/tests/
A Dtest_crypto.c61 static void crc_test(rt_uint32_t width) in crc_test() argument
71 .width = CRC16_WIDTH, in crc_test()
76 if (width == CRC32_WIDTH) in crc_test()
80 cfg.width = CRC32_WIDTH; in crc_test()
85 else if (width == CRC16_WIDTH) in crc_test()
91 rt_kprintf("crc%d not support! \n", width); in crc_test()
104 rt_kprintf("crc%d result: 0x%x \n", width, result); in crc_test()
109 rt_kprintf("crc%d result: 0x%x \n", width, result); in crc_test()
248 rt_uint32_t width = atoi(argv[2]); in crypto_sample() local
249 if (width == CRC16_WIDTH || width == CRC32_WIDTH) in crypto_sample()
[all …]
/bsp/nxp/imx/imxrt/libraries/drivers/vglite/elementary/src/
A Delm_init.c36 static int _initialize_elm(uint32_t width, uint32_t height);
39 static int _initialize_vglite(int32_t width, int32_t height) in _initialize_vglite() argument
43 error = vg_lite_init(width, height); in _initialize_vglite()
49 static int _initialize_elm(uint32_t width, uint32_t height) in _initialize_elm() argument
66 elm_tls->gContext.tessellation_width = width; in _initialize_elm()
123 BOOL ElmInitialize(uint32_t width, uint32_t height) in ElmInitialize() argument
128 result = _initialize_vglite((int32_t)width, (int32_t)height); in ElmInitialize()
133 result = _initialize_elm(width, height); in ElmInitialize()

Completed in 35 milliseconds

12345678910>>...17