/Zephyr-latest/subsys/fb/ |
D | cfb.c | 19 #define LSB_BIT_MASK(x) BIT_MASK(x) argument 20 #define MSB_BIT_MASK(x) (BIT_MASK(x) << (8 - x)) argument 46 /** Resolution of a framebuffer in pixels in X direction */ 52 /** Number of pixels per tile, typically 8 */ 74 (fptr->width * fptr->height / 8U); in get_glyph_ptr() 78 uint8_t x, uint8_t y) in get_glyph_byte() argument 81 return glyph_ptr[x * (fptr->height / 8U) + y]; in get_glyph_byte() 83 return glyph_ptr[y * (fptr->width) + x]; in get_glyph_byte() 92 * a byte is interpreted as 8 pixels ordered vertically among each other. 95 char c, uint16_t x, uint16_t y, in draw_char_vtmono() argument [all …]
|
/Zephyr-latest/tests/misc/print_format/src/ |
D | main.c | 11 printk("d%" PRId8 "\n", INT8_C(8)); in main() 16 printk("i%" PRIi8 "\n", INT8_C(8)); in main() 21 printk("o%" PRIo8 "\n", INT8_C(8)); in main() 26 printk("u%" PRIu8 "\n", UINT8_C(8)); in main() 31 printk("x%" PRIx8 "\n", UINT8_C(8)); in main() 32 printk("x%" PRIx16 "\n", UINT16_C(16)); in main() 33 printk("x%" PRIx32 "\n", UINT32_C(32)); in main() 34 printk("x%" PRIx64 "\n", UINT64_C(64)); in main() 36 printk("X%" PRIX8 "\n", UINT8_C(8)); in main() 37 printk("X%" PRIX16 "\n", UINT16_C(16)); in main() [all …]
|
/Zephyr-latest/tests/subsys/display/cfb/basic/src/ |
D | utils.c | 31 uint32_t display_pixel(int x, int y) in display_pixel() argument 33 const uint8_t *ptr = read_buffer + (display_width * (y / 8) + x); in display_pixel() 39 return !(*ptr & mono_pixel_order(y % 8)); in display_pixel() 42 return !!(*ptr & mono_pixel_order(y % 8)); in display_pixel() 45 uint32_t image_pixel(const uint32_t *img, size_t width, int x, int y) in image_pixel() argument 47 const uint32_t *ptr = img + (width * y + x); in image_pixel() 52 bool verify_pixel(int x, int y, uint32_t color) in verify_pixel() argument 58 .buf_size = display_height * display_width / 8, in verify_pixel() 63 return ((!!display_pixel(x, y)) == (!!color)); in verify_pixel() 72 .buf_size = display_height * display_width / 8, in verify_image() [all …]
|
/Zephyr-latest/drivers/dai/intel/ssp/ |
D | ssp_regs_v1.h | 30 #define SSCR0_DSIZE(x) DAI_INTEL_SSP_SET_BITS(3, 0, (x) - 1) argument 31 #define SSCR0_DSIZE_GET(x) (((x) & DAI_INTEL_SSP_MASK(3, 0)) + 1) argument 39 #define SSCR0_SCR_MASK DAI_INTEL_SSP_MASK(19, 8) 40 #define SSCR0_SCR(x) DAI_INTEL_SSP_SET_BITS(19, 8, x) argument 45 #define SSCR0_FRDC(x) DAI_INTEL_SSP_SET_BITS(26, 24, (x) - 1) argument 46 #define SSCR0_FRDC_GET(x) ((((x) & DAI_INTEL_SSP_MASK(26, 24)) >> 24) + 1) argument 58 #define SSCR1_TFT(x) DAI_INTEL_SSP_SET_BITS(9, 6, (x) - 1) argument 60 #define SSCR1_RFT(x) DAI_INTEL_SSP_SET_BITS(13, 10, (x) - 1) argument 100 #define SSPSP_SCMODE(x) DAI_INTEL_SSP_SET_BITS(1, 0, x) argument 101 #define SSPSP_SFRMP(x) DAI_INTEL_SSP_SET_BIT(2, x) argument [all …]
|
D | ssp_regs_v2.h | 31 #define SSCR0_DSIZE(x) DAI_INTEL_SSP_SET_BITS(3, 0, (x) - 1) argument 32 #define SSCR0_DSIZE_GET(x) (((x) & DAI_INTEL_SSP_MASK(3, 0)) + 1) argument 40 #define SSCR0_SCR_MASK DAI_INTEL_SSP_MASK(19, 8) 41 #define SSCR0_SCR(x) DAI_INTEL_SSP_SET_BITS(19, 8, x) argument 46 #define SSCR0_FRDC(x) DAI_INTEL_SSP_SET_BITS(26, 24, (x) - 1) argument 47 #define SSCR0_FRDC_GET(x) ((((x) & DAI_INTEL_SSP_MASK(26, 24)) >> 24) + 1) argument 59 #define SSCR1_TFT(x) DAI_INTEL_SSP_SET_BITS(9, 6, (x) - 1) argument 61 #define SSCR1_RFT(x) DAI_INTEL_SSP_SET_BITS(13, 10, (x) - 1) argument 101 #define SSPSP_SCMODE(x) DAI_INTEL_SSP_SET_BITS(1, 0, x) argument 102 #define SSPSP_SFRMP(x) DAI_INTEL_SSP_SET_BIT(2, x) argument [all …]
|
D | ssp_regs_v3.h | 24 #define I2SIPCMC 8 32 #define PCMSyCM_OFFSET(x) 0x16 + 0x4*(x) argument 38 #define SSCR0_DSIZE(x) DAI_INTEL_SSP_SET_BITS(3, 0, (x) - 1) argument 39 #define SSCR0_DSIZE_GET(x) (((x) & DAI_INTEL_SSP_MASK(3, 0)) + 1) argument 47 #define SSCR0_SCR_MASK DAI_INTEL_SSP_MASK(19, 8) 48 #define SSCR0_SCR(x) DAI_INTEL_SSP_SET_BITS(19, 8, x) argument 53 #define SSCR0_FRDC(x) DAI_INTEL_SSP_SET_BITS(26, 24, (x) - 1) argument 54 #define SSCR0_FRDC_GET(x) ((((x) & DAI_INTEL_SSP_MASK(26, 24)) >> 24) + 1) argument 96 #define SSPSP_SCMODE(x) DAI_INTEL_SSP_SET_BITS(1, 0, x) argument 97 #define SSPSP_SFRMP(x) DAI_INTEL_SSP_SET_BIT(2, x) argument [all …]
|
/Zephyr-latest/tests/misc/iterable_sections/src/ |
D | main.c | 63 out = (out << 8) | t->i; in ZTEST() 67 zassert_equal(out, RAM_EXPECT, "Check value incorrect (got: 0x%08x)", out); in ZTEST() 70 "ram1.i check bit incorrect (got: 0x%x)", ram1.i); in ZTEST() 72 "ram2.i check bit incorrect (got: 0x%x)", ram2.i); in ZTEST() 74 "ram3.i check bit incorrect (got: 0x%x)", ram3.i); in ZTEST() 76 "ram4.i check bit incorrect (got: 0x%x)", ram4.i); in ZTEST() 80 out = (out << 8) | t->i; in ZTEST() 83 zassert_equal(out, RAM_EXPECT, "Check value incorrect (got: 0x%08x)", out); in ZTEST() 87 out = (out << 8) | t->i; in ZTEST() 90 zassert_equal(out, RAM_EXPECT, "Check value incorrect (got: 0x%x)", out); in ZTEST() [all …]
|
/Zephyr-latest/drivers/sensor/apds9960/ |
D | Kconfig | 46 bool "1x" 49 bool "2x" 52 bool "4x" 55 bool "8x" 64 bool "1x" 67 bool "4x" 70 bool "16x" 73 bool "64x" 85 bool "8us" 116 default 8
|
/Zephyr-latest/modules/lvgl/ |
D | lvgl_display_mono.c | 15 static ALWAYS_INLINE void set_px_at_pos(uint8_t *dst_buf, uint32_t x, uint32_t y, uint32_t width, in set_px_at_pos() argument 22 buf = dst_buf + x + y / 8 * width; in set_px_at_pos() 25 bit = 7 - y % 8; in set_px_at_pos() 27 bit = y % 8; in set_px_at_pos() 30 buf = dst_buf + x / 8 + y * width / 8; in set_px_at_pos() 33 bit = 7 - x % 8; in set_px_at_pos() 35 bit = x % 8; in set_px_at_pos() 54 *px_map += 8; in lvgl_transform_buffer() 60 for (uint32_t x = 0; x < width; x++) { in lvgl_transform_buffer() local 61 uint32_t bit_idx = x + y * stride; in lvgl_transform_buffer() [all …]
|
/Zephyr-latest/samples/subsys/zbus/runtime_obs_registration/ |
D | sample.yaml | 21 - "I: --> Consuming data: Acc x=0, y=0, z=0" 22 - "I: --> Consuming data: Acc x=2, y=2, z=2" 23 - "I: --> Consuming data: Acc x=4, y=4, z=4" 24 - "I: --> Consuming data: Acc x=6, y=6, z=6" 25 - "I: --> Consuming data: Acc x=7, y=7, z=7" 26 - "I: --> Consuming data: Acc x=8, y=8, z=8" 27 - "I: --> Consuming data: Acc x=9, y=9, z=9" 28 - "I: --> Consuming data: Acc x=10, y=10, z=10"
|
/Zephyr-latest/drivers/crypto/ |
D | crypto_intel_sha_priv.h | 26 #define SHA1_ALGORITHM_HASH_SIZEOF (160 / 8) 27 #define SHA224_ALGORITHM_HASH_SIZEOF (224 / 8) 28 #define SHA256_ALGORITHM_HASH_SIZEOF (256 / 8) 29 #define SHA384_ALGORITHM_HASH_SIZEOF (384 / 8) 30 #define SHA512_ALGORITHM_HASH_SIZEOF (512 / 8) 32 #define SHA_MAX_SESSIONS 8 34 #define BYTE_SWAP32(x) \ argument 35 (((x >> 24) & 0x000000FF) | ((x << 24) & 0xFF000000) | ((x >> 8) & 0x0000FF00) | \ 36 ((x << 8) & 0x00FF0000))
|
/Zephyr-latest/drivers/sdhc/ |
D | sdhc_cdns_ll.h | 15 #define CDNS_HRS09_EXT_RD_MODE(x) ((x) << 2) argument 16 #define CDNS_HRS09_EXTENDED_WR(x) ((x) << 3) argument 17 #define CDNS_HRS09_RDCMD_EN(x) ((x) << 15) argument 18 #define CDNS_HRS09_RDDATA_EN(x) ((x) << 16) argument 37 #define CDNS_SRS10_BP BIT(8) 55 #define CDNS_SRS11_SDCLKFS 8 122 #define CP_USE_EXT_LPBK_DQS(x) (x << 22) argument 123 #define CP_USE_LPBK_DQS(x) (x << 21) argument 124 #define CP_USE_PHONY_DQS(x) (x << 20) argument 125 #define CP_USE_PHONY_DQS_CMD(x) (x << 19) argument [all …]
|
/Zephyr-latest/soc/nxp/lpc/lpc11u6x/ |
D | soc.h | 40 #define IOCON_PIO_FUNC(x) (((x) & 0x7)) argument 42 #define IOCON_PIO_MODE(x) (((x) & 0x3) << 3) argument 44 #define IOCON_PIO_HYS(x) (((x) & 0x1) << 5) argument 46 #define IOCON_PIO_INVERT(x) (((x) & 0x1) << 2) argument 48 #define IOCON_PIO_OD(x) (((x) & 0x1) << 10) argument 50 #define IOCON_PIO_SMODE(x) (((x) & 0x3) << 11) argument 52 #define IOCON_PIO_CLKDIV(x) (((x) & 0x7) << 13) argument 64 * [8] input glitch filter. 72 #define IOCON_PIO_ADMODE(x) (((x) & 0x1) << 7) argument 74 #define IOCON_PIO_FILTER(x) (((x) & 0x1) << 8) argument [all …]
|
/Zephyr-latest/subsys/fs/ext2/ |
D | ext2_bitmap.c | 22 uint32_t idx = index / 8; in ext2_bitmap_set() 23 uint32_t off = index % 8; in ext2_bitmap_set() 32 LOG_DBG("Bitmap %d: %x", idx, bm[idx]); in ext2_bitmap_set() 34 LOG_DBG("Bitmap %d: %x", idx, bm[idx]); in ext2_bitmap_set() 43 uint32_t idx = index / 8; in ext2_bitmap_unset() 44 uint32_t off = index % 8; in ext2_bitmap_unset() 53 LOG_DBG("Bitmap %d: %x", idx, bm[idx]); in ext2_bitmap_unset() 55 LOG_DBG("Bitmap %d: %x", idx, bm[idx]); in ext2_bitmap_unset() 63 LOG_DBG("Bitmap %d: %x (%x)", i, bm[i], ~bm[i]); in ext2_bitmap_find_free() 69 return off + i * 8; in ext2_bitmap_find_free() [all …]
|
/Zephyr-latest/drivers/flash/ |
D | flash_cadence_nand_ll.h | 18 #define CNF_GET_INIT_COMP(x) (FIELD_GET(BIT(9), x)) argument 19 #define CNF_GET_INIT_FAIL(x) (FIELD_GET(BIT(10), x)) argument 20 #define CNF_GET_CTRL_BUSY(x) (FIELD_GET(BIT(8), x)) argument 21 #define GET_PAGE_SIZE(x) (FIELD_GET(GENMASK(15, 0), x)) argument 22 #define GET_PAGES_PER_BLOCK(x) (FIELD_GET(GENMASK(15, 0), x)) argument 23 #define GET_SPARE_SIZE(x) (FIELD_GET(GENMASK(31, 16), x)) argument 24 #define ONFI_TIMING_MODE_SDR(x) (FIELD_GET(GENMASK(15, 0), x)) argument 25 #define ONFI_TIMING_MODE_NVDDR(x) (FIELD_GET(GENMASK(31, 15), x)) argument 28 #define CNF_GET_NLUNS(x) (FIELD_GET(GENMASK(7, 0), x)) argument 29 #define CNF_GET_DEV_TYPE(x) (FIELD_GET(GENMASK(31, 30), x)) argument [all …]
|
/Zephyr-latest/tests/kernel/common/src/ |
D | printk.c | 75 "0x1 0x 1 0x 1 0x 1\n" 102 "0x1 0x 1 0x 1 0x 1\n" 118 "0x1 0x 1 0x 1 0x 1\n" 131 "0x1 0x 1 0x 1 0x 1\n" 144 "0x1 0x 1 0x 1 0x 1\n" 209 printk("0x%x 0x%02x 0x%04x 0x%08x 0x%016x\n", 1, 1, 1, 1, 1); in ZTEST() 210 printk("0x%x 0x%2x 0x%4x 0x%8x\n", 1, 1, 1, 1); in ZTEST() 213 printk("%u %2u %4u %8u\n", 42, 42, 42, 42); in ZTEST() 215 printk("%-8u%-6d%-4x %8d\n", 0xFF, 42, 0xABCDEF, 42); in ZTEST() 217 printk("0x%x %p %-2p\n", hex, ptr, (char *)42); in ZTEST() [all …]
|
/Zephyr-latest/tests/unit/crc/ |
D | main.c | 19 uint8_t test2[] = { '1', '2', '3', '4', '5', '6', '7', '8', '9' }; in ZTEST() 46 uint8_t test2[] = { '1', '2', '3', '4', '5', '6', '7', '8', '9' }; in ZTEST() 57 uint8_t test2[] = { '1', '2', '3', '4', '5', '6', '7', '8', '9' }; in ZTEST() 72 uint8_t test[] = { '1', '2', '3', '4', '5', '6', '7', '8', '9' }; in ZTEST() 81 /* CRC-16/DECT-X in ZTEST() 82 * https://reveng.sourceforge.io/crc-catalogue/16.htm#crc.cat.crc-16-dect-x in ZTEST() 90 uint8_t test[] = { '1', '2', '3', '4', '5', '6', '7', '8', '9' }; in ZTEST() 107 uint8_t test2[] = { '1', '2', '3', '4', '5', '6', '7', '8', '9' }; in ZTEST() 118 /* CRC-16/X-25, CRC-16/IBM-SDLC, CRC-16/ISO-HDLC in ZTEST() 130 test3[sizeof(test3)-1] = (uint8_t)(crc >> 8); in ZTEST() [all …]
|
/Zephyr-latest/subsys/fs/zms/ |
D | zms_priv.h | 24 #define SECTOR_NUM(x) FIELD_GET(ADDR_SECT_MASK, x) argument 25 #define SECTOR_OFFSET(x) FIELD_GET(ADDR_OFFS_MASK, x) argument 37 #define ZMS_GET_VERSION(x) FIELD_GET(ZMS_VERSION_MASK, x) argument 40 #define ZMS_MAGIC_NUMBER_MASK GENMASK(15, 8) 41 #define ZMS_GET_MAGIC_NUMBER(x) FIELD_GET(ZMS_MAGIC_NUMBER_MASK, x) argument 45 #define ZMS_DATA_IN_ATE_SIZE 8 53 uint8_t data[8]; /* used to store small size data */
|
/Zephyr-latest/include/zephyr/drivers/clock_control/ |
D | clock_agilex_ll.h | 80 #define CLKMGR_STAT_BUSY(x) (((x) & 0x00000001) >> 0) argument 81 #define CLKMGR_STAT_MAINPLLLOCKED(x) (((x) & 0x00000100) >> 8) argument 82 #define CLKMGR_STAT_PERPLLLOCKED(x) (((x) & 0x00010000) >> 16) argument 93 #define CLKMGR_PERPLL_GPIODIV_GPIODBCLK_SET(x) (((x) << 0) & 0x0000ffff) argument 99 #define CLKMGR_PSRC(x) (((x) & 0x00030000) >> 16) argument 107 #define CLKMGR_PLLM_MDIV(x) ((x) & 0x000003ff) argument 111 #define CLKMGR_PLLGLOB_REFCLKDIV(x) (((x) & 0x00003f00) >> 8) argument 112 #define CLKMGR_PLLGLOB_AREFCLKDIV(x) (((x) & 0x00000f00) >> 8) argument 113 #define CLKMGR_PLLGLOB_DREFCLKDIV(x) (((x) & 0x00003000) >> 12) argument 115 #define CLKMGR_VCOCALIB_HSCNT_SET(x) (((x) << 0) & 0x000003ff) argument [all …]
|
/Zephyr-latest/scripts/build/ |
D | llext_slidlib.py | 34 slid_side: Size of the SLID in bytes (4/8) 36 if slid_size not in (4, 8): 40 m.update(symbol_name.encode("utf-8")) 47 fmt = f"0x{slid:08X}" 48 elif slid_size == 8: 49 fmt = f"0x{slid:016X}" 57 slid64 = generate_slid(sym_name, 8) 59 print(f" 64-bit SLID for '{sym_name}': {format_slid(slid64, 8)}")
|
D | file2hex.py | 29 parser.add_argument("-o", "--offset", type=lambda x: int(x, 0), default=0, 31 parser.add_argument("-l", "--length", type=lambda x: int(x, 0), default=-1, 46 return ", ".join("0x" + str(x) for x in list_or_iterator) 50 hexdata = codecs.encode(chunk, 'hex').decode("utf-8") 68 for chunk in iter(lambda: content.read(8), b''): 74 for chunk in iter(lambda: fp.read(8), b''): 78 for chunk in iter(lambda: fp.read(min(8, remainder)), b''):
|
/Zephyr-latest/samples/drivers/memc/src/ |
D | main.c | 17 #define MEMC_SIZE (DT_PROP(DT_ALIAS(sram_ext), size) / 8) 21 #define MEMC_SIZE (DT_PROP(DT_ALIAS(sram_ext), dev_size) / 8) 26 #define MEMC_SIZE (DT_PROP(DT_ALIAS(psram0), size) / 8) 36 printk("%02x %02x %02x %02x %02x %02x %02x %02x ", in dump_memory() 39 printk("%02x %02x %02x %02x %02x %02x %02x %02x\n", in dump_memory() 40 p[i+8], p[i+9], p[i+10], p[i+11], in dump_memory() 49 printk("%02x ", p[i]); in dump_memory() 68 printk("Writing to memory region with base %p, size 0x%0x\n\n", in main() 83 printk("Error: read data differs in range [0x%x- 0x%x]\n", in main() 95 printk("Error: read data differs at offset 0x%x\n", i); in main()
|
/Zephyr-latest/soc/sifive/sifive_freedom/fe300/ |
D | prci.h | 25 #define ROSC_DIV(x) (((x) & 0x2F) << 0) argument 26 #define ROSC_TRIM(x) (((x) & 0x1F) << 16) argument 27 #define ROSC_EN(x) (((x) & 0x1) << 30) argument 28 #define ROSC_RDY(x) (((x) & 0x1) << 31) argument 30 #define XOSC_EN(x) (((x) & 0x1) << 30) argument 31 #define XOSC_RDY(x) (((x) & 0x1) << 31) argument 33 #define PLL_R(x) (((x) & 0x7) << 0) argument 35 #define PLL_F(x) (((x) & 0x3F) << 4) argument 36 #define PLL_Q(x) (((x) & 0x3) << 10) argument 37 #define PLL_SEL(x) (((x) & 0x1) << 16) argument [all …]
|
/Zephyr-latest/doc/services/portability/posix/aep/ |
D | aep-pse51.svg | 1 <?xml version="1.0" encoding="utf-8"?> 9 <text y="8"> 10 <tspan x="75" dy="-1.2em">System</tspan> 11 <tspan x="75" dy="1.2em">Interfaces</tspan> 13 <text x="25">PSE51</text> 14 <text x="-25">PSE52</text> 15 <text x="-75">PSE53</text>
|
D | aep-pse52.svg | 1 <?xml version="1.0" encoding="utf-8"?> 9 <text y="8"> 10 <tspan x="75" dy="-1.2em">System</tspan> 11 <tspan x="75" dy="1.2em">Interfaces</tspan> 13 <text x="25">PSE51</text> 14 <text x="-25">PSE52</text> 15 <text x="-75">PSE53</text>
|