/Zephyr-latest/drivers/spi/ |
D | spi_dw.h | 24 typedef uint32_t (*spi_dw_read_t)(uint8_t size, mm_reg_t addr, uint32_t off); 25 typedef void (*spi_dw_write_t)(uint8_t size, uint32_t data, mm_reg_t addr, uint32_t off); 26 typedef void (*spi_dw_set_bit_t)(uint8_t bit, mm_reg_t addr, uint32_t off); 27 typedef void (*spi_dw_clear_bit_t)(uint8_t bit, mm_reg_t addr, uint32_t off); 28 typedef int (*spi_dw_test_bit_t)(uint8_t bit, mm_reg_t addr, uint32_t off); 67 static uint32_t aux_reg_read(uint8_t size, mm_reg_t addr, uint32_t off) in aux_reg_read() argument 70 return sys_in32(addr + off/4); in aux_reg_read() 73 static void aux_reg_write(uint8_t size, uint32_t data, mm_reg_t addr, uint32_t off) in aux_reg_write() argument 76 sys_out32(data, addr + off/4); in aux_reg_write() 79 static void aux_reg_set_bit(uint8_t bit, mm_reg_t addr, uint32_t off) in aux_reg_set_bit() argument [all …]
|
/Zephyr-latest/subsys/storage/flash_map/ |
D | flash_map.c | 56 int flash_area_read(const struct flash_area *fa, off_t off, void *dst, in flash_area_read() argument 59 if (!is_in_flash_area_bounds(fa, off, len)) { in flash_area_read() 63 return flash_read(fa->fa_dev, fa->fa_off + off, dst, len); in flash_area_read() 66 int flash_area_write(const struct flash_area *fa, off_t off, const void *src, in flash_area_write() argument 69 if (!is_in_flash_area_bounds(fa, off, len)) { in flash_area_write() 73 return flash_write(fa->fa_dev, fa->fa_off + off, (void *)src, len); in flash_area_write() 76 int flash_area_erase(const struct flash_area *fa, off_t off, size_t len) in flash_area_erase() argument 78 if (!is_in_flash_area_bounds(fa, off, len)) { in flash_area_erase() 82 return flash_erase(fa->fa_dev, fa->fa_off + off, len); in flash_area_erase() 85 int flash_area_flatten(const struct flash_area *fa, off_t off, size_t len) in flash_area_flatten() argument [all …]
|
D | flash_map_priv.h | 34 off_t off, size_t len) in is_in_flash_area_bounds() argument 36 return (off >= 0) && ((off + len) <= fa->fa_size); in is_in_flash_area_bounds()
|
/Zephyr-latest/subsys/fs/ext2/ |
D | ext2_bitmap.c | 23 uint32_t off = index % 8; in ext2_bitmap_set() local 30 __ASSERT((bm[idx] & BIT(off)) == 0, "Bit %d set in bitmap", index); in ext2_bitmap_set() 33 bm[idx] |= BIT(off); in ext2_bitmap_set() 44 uint32_t off = index % 8; in ext2_bitmap_unset() local 51 __ASSERT(bm[idx] & BIT(off), "Bit %d not set in bitmap", index); in ext2_bitmap_unset() 54 bm[idx] &= ~BIT(off); in ext2_bitmap_unset() 66 int off = find_lsb_set(~bm[i]) - 1; in ext2_bitmap_find_free() local 68 LOG_DBG("off: %d", off); in ext2_bitmap_find_free() 69 return off + i * 8; in ext2_bitmap_find_free()
|
/Zephyr-latest/subsys/settings/src/ |
D | settings_line.c | 18 int (*read_cb)(void *ctx, off_t off, char *buf, size_t *len); 19 int (*write_cb)(void *ctx, off_t off, char const *buf, size_t len); 180 off_t off; in settings_line_raw_read_until() local 190 off = seek / rbs * rbs; in settings_line_raw_read_until() 195 rc = settings_io_cb.read_cb(cb_arg, off, temp_buf, &read_size); in settings_line_raw_read_until() 200 off = seek - off; in settings_line_raw_read_until() 201 len = read_size - off; in settings_line_raw_read_until() 206 pend = memchr(&temp_buf[off], *until_char, len); in settings_line_raw_read_until() 208 len = pend - &temp_buf[off]; in settings_line_raw_read_until() 213 memcpy(out, &temp_buf[off], len); in settings_line_raw_read_until() [all …]
|
D | settings_priv.h | 27 off_t off, void *cb_arg); 30 off_t off, void *cb_arg); 33 off_t off, void *cb_arg); 37 off_t off; member 78 int settings_line_val_read(off_t val_off, off_t off, char *out, size_t len_req, 102 void settings_line_io_init(int (*read_cb)(void *ctx, off_t off, char *buf, 104 int (*write_cb)(void *ctx, off_t off, char const *buf,
|
D | settings_fcb.c | 138 static int read_entry_len(const struct fcb_entry_ctx *entry_ctx, off_t off) in read_entry_len() argument 140 if (off >= entry_ctx->loc.fe_data_len) { in read_entry_len() 143 return entry_ctx->loc.fe_data_len - off; in read_entry_len() 199 static int read_handler(void *ctx, off_t off, char *buf, size_t *len) in read_handler() argument 203 if (off >= entry_ctx->loc.fe_data_len) { in read_handler() 208 if ((off + *len) > entry_ctx->loc.fe_data_len) { in read_handler() 209 *len = entry_ctx->loc.fe_data_len - off; in read_handler() 213 FCB_ENTRY_FA_DATA_OFF(entry_ctx->loc) + off, buf, in read_handler() 314 static int write_handler(void *ctx, off_t off, char const *buf, size_t len) in write_handler() argument 319 FCB_ENTRY_FA_DATA_OFF(entry_ctx->loc) + off, in write_handler()
|
/Zephyr-latest/samples/boards/nordic/system_off/ |
D | Kconfig | 7 bool "Use state retention in system off using retained_mem driver" 11 bool "Use button to wake up device from system off" 14 Enable system off wakeup from pressing sw0 button. 17 bool "Use GRTC to wake up device from system off" 19 Enable system off wakeup from GRTC. 22 bool "Use COMP to wake up device from system off" 24 Enable system off wakeup from analog comparator.
|
D | README.rst | 18 number of times system off was entered, and total uptime since initial power-on 20 RAM is configured to keep the containing section powered while in system-off mode. 37 nrf52dk system off demo 38 Entering system off; press sw0 to restart
|
/Zephyr-latest/drivers/pwm/ |
D | pwm_mchp_xec.c | 62 uint32_t off; member 110 static uint32_t xec_compute_frequency(uint32_t clk, uint32_t on, uint32_t off) in xec_compute_frequency() argument 112 return ((clk * XEC_PWM_FREQ_PF)/((on + 1) + (off + 1))); in xec_compute_frequency() 135 uint32_t *on, uint32_t *off) in xec_compute_on_off() argument 142 *off = on_off - *on - 2; in xec_compute_on_off() 145 static uint32_t xec_compute_dc(uint32_t on, uint32_t off) in xec_compute_dc() argument 147 int dc = (on + 1) + (off + 1); in xec_compute_dc() 190 uint32_t *on, uint32_t *off) in xec_select_best_div_on_off() argument 199 div, div_comp, on, off); in xec_select_best_div_on_off() 217 hc_params->off); in xec_compare_params() [all …]
|
/Zephyr-latest/soc/mediatek/mt8xxx/ |
D | gen_img.py | 46 off = addr - sram_block 47 assert off < 0x100000 48 return off 69 off = soff 72 off = doff 78 end = off + len(dat) 84 buf[i + off] = dat[i]
|
/Zephyr-latest/subsys/fs/fcb/ |
D | fcb_elem_info.c | 27 uint32_t off; in fcb_elem_crc8() local 50 off = loc->fe_data_off; in fcb_elem_crc8() 52 for (; off < end; off += blk_sz) { in fcb_elem_crc8() 53 blk_sz = end - off; in fcb_elem_crc8() 58 rc = fcb_flash_read(_fcb, loc->fe_sector, off, tmp_str, blk_sz); in fcb_elem_crc8() 125 off_t off; in fcb_elem_info() local 131 off = loc->fe_data_off + fcb_len_in_flash(_fcb, loc->fe_data_len); in fcb_elem_info() 133 rc = fcb_flash_read(_fcb, loc->fe_sector, off, &fl_em, sizeof(fl_em)); in fcb_elem_info()
|
/Zephyr-latest/include/zephyr/arch/arc/asm-compat/ |
D | asm-macro-64-bit-gnu.h | 17 .macro LDR\aa d, s, off=0 18 ldl\aa \d, [\s, \off] 23 .macro STR\aa d, s, off=0 25 .if \off == 0 28 stl\aa \d, [\s, \off] 33 .macro STR d, s, off=0 34 .if \off == 0 37 .if \off > 255 38 STR.as \d, \s, \off / 8 40 stl \d, [\s, \off]
|
D | asm-macro-32-bit-gnu.h | 17 .macro LDR\aa d, s, off=0 18 ld\aa \d, [\s, \off] 23 .macro STR\aa d, s, off=0 25 .if \off == 0 28 st\aa \d, [\s, \off]
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/fs_mgmt/src/ |
D | fs_mgmt.c | 86 size_t off; member 126 fs_mgmt_ctxt.off = 0; in fs_mgmt_cleanup() 174 static bool fs_mgmt_file_rsp(zcbor_state_t *zse, int rc, uint64_t off) in fs_mgmt_file_rsp() argument 184 zcbor_uint64_put(zse, off); in fs_mgmt_file_rsp() 192 if (fs_mgmt_ctxt.len > 0 && fs_mgmt_ctxt.off >= fs_mgmt_ctxt.len) { in fs_mgmt_upload_download_finish_check() 208 uint64_t off = ULLONG_MAX; in fs_mgmt_file_download() local 218 ZCBOR_MAP_DECODE_KEY_DECODER("off", zcbor_uint64_decode, &off), in fs_mgmt_file_download() 236 if (!ok || off == ULLONG_MAX || name.len == 0 || name.len > (sizeof(path) - 1)) { in fs_mgmt_file_download() 279 fs_mgmt_ctxt.off = 0; in fs_mgmt_file_download() 302 if (off != fs_mgmt_ctxt.off) { in fs_mgmt_file_download() [all …]
|
/Zephyr-latest/samples/boards/nxp/mimxrt1060_evk/system_off/ |
D | README.rst | 5 Use soft-off on MIMXRT1060-EVK. 11 soft off on NXP i.MX RT platforms. The functional behavior is: 14 * Turn the system off after enabling wakeup through a button press, and 38 4. Device will turn itself off using deep sleep state 1. Press SW 5 52 mimxrt1060_evkb system off demo 55 RTC Alarm set for 10 seconds to wake from soft-off. 56 Entering system off; press GPIO_5 to restart sooner
|
/Zephyr-latest/boards/intel/socfpga_std/cyclonev_socdk/support/ |
D | appli_debug_cmd.gdb | 7 set confirm off 8 set pagination off 9 set remote interrupt-on-connect off
|
/Zephyr-latest/tests/drivers/flash_simulator/flash_sim_impl/src/ |
D | main.c | 66 off_t off; in test_check_pattern32() local 70 for (off = 0; off < size; off += 4) { in test_check_pattern32() 71 rc = flash_read(flash_dev, start + off, &r_val32, in test_check_pattern32() 78 start + off, r_val32, val32); in test_check_pattern32() 151 off_t off; in test_write_read() local 160 for (off = 0; off < TEST_SIM_FLASH_SIZE; off += 4) { in test_write_read() 162 off, in test_write_read() 166 FLASH_SIMULATOR_BASE_OFFSET + off); in test_write_read() 172 for (off = 0; off < TEST_SIM_FLASH_SIZE; off += 4) { in test_write_read() 174 off, in test_write_read() [all …]
|
/Zephyr-latest/doc/services/resource_management/ |
D | index.rst | 26 An on-off manager supports an arbitrary number of clients of a service 32 * The stable states are off, on, and error. The service always begins 33 in the off state. The service may also be in a transition to a given 40 * The service transitions from off to on when first client request is 42 * The service transitions from on to off when last client release is 45 transition from off to on, from on to off, and optionally from an 46 error state to off. Transitions must be invokable from both thread 51 * Requests to turn on may be queued while a transition to off is in 52 progress: when the service has turned off successfully it will be 71 changes, including when a service begins turning off or enters an error [all …]
|
/Zephyr-latest/subsys/stats/ |
D | stats_shell.c | 10 static int stats_cb(struct stats_hdr *hdr, void *arg, const char *name, uint16_t off) in stats_cb() argument 13 void *addr = (uint8_t *)hdr + off; in stats_cb() 28 shell_print(sh, "\t%s (offset: %u, addr: %p): %" PRIu64, name, off, addr, val); in stats_cb()
|
/Zephyr-latest/subsys/testsuite/coverage/ |
D | coverage.c | 63 static inline void write_u64(void *buffer, size_t *off, uint64_t v) in write_u64() argument 66 memcpy((uint8_t *)buffer + *off, (uint8_t *)&v, sizeof(v)); in write_u64() 71 *off = *off + sizeof(uint64_t); in write_u64() 77 static inline void write_u32(void *buffer, size_t *off, uint32_t v) in write_u32() argument 80 memcpy((uint8_t *)buffer + *off, (uint8_t *)&v, sizeof(v)); in write_u32() 84 *off = *off + sizeof(uint32_t); in write_u32()
|
/Zephyr-latest/samples/drivers/led/pwm/ |
D | README.rst | 21 - Turning off 24 - Blinking on: 0.1 sec, off: 0.1 sec 25 - Blinking on: 1 sec, off: 1 sec 26 - Turning off
|
/Zephyr-latest/include/zephyr/storage/ |
D | flash_map.h | 93 size_t off; /** Start Offset */ member 171 int flash_area_read(const struct flash_area *fa, off_t off, void *dst, 188 int flash_area_write(const struct flash_area *fa, off_t off, const void *src, 204 int flash_area_erase(const struct flash_area *fa, off_t off, size_t len); 227 int flash_area_flatten(const struct flash_area *fa, off_t off, size_t len);
|
/Zephyr-latest/samples/boards/ti/cc13x2_cc26x2/system_off/ |
D | README.rst | 16 * Turn the system off after enabling wakeup through a button press 42 4. Device will turn off the external flash, which is on by default, to 45 6. Device will explicitly turn itself off by going into shutdown mode. 59 cc1352r1_launchxl system off demo 63 Entering system off (SHUTDOWN); press BUTTON1 to restart
|
/Zephyr-latest/samples/drivers/led/pca9633/ |
D | README.rst | 14 2. turn off LEDs 16 4. turn off LEDs 18 6. turn off LEDs
|