/Zephyr-latest/drivers/flash/ |
D | soc_flash_cc13xx_cc26xx.c | 79 static bool flash_cc13xx_cc26xx_range_protected(off_t offs, size_t size) in flash_cc13xx_cc26xx_range_protected() argument 83 sector = (offs / FLASH_ERASE_SIZE) * FLASH_ERASE_SIZE; in flash_cc13xx_cc26xx_range_protected() 84 end = offs + size; in flash_cc13xx_cc26xx_range_protected() 105 static int flash_cc13xx_cc26xx_erase(const struct device *dev, off_t offs, in flash_cc13xx_cc26xx_erase() argument 119 if (((offs % FLASH_ERASE_SIZE) != 0) || in flash_cc13xx_cc26xx_erase() 124 if (flash_cc13xx_cc26xx_range_protected(offs, size)) { in flash_cc13xx_cc26xx_erase() 144 for (i = 0; i < cnt; i++, offs += FLASH_ERASE_SIZE) { in flash_cc13xx_cc26xx_erase() 149 rc = FlashSectorErase(offs); in flash_cc13xx_cc26xx_erase() 165 static int flash_cc13xx_cc26xx_buffered_write(off_t offs, const void *data, size_t size) in flash_cc13xx_cc26xx_buffered_write() argument 174 rc = FlashProgram(write_buffer, offs, len); in flash_cc13xx_cc26xx_buffered_write() [all …]
|
D | flash_page_layout.c | 11 static int flash_get_page_info(const struct device *dev, off_t offs, in flash_get_page_info() argument 26 if (offs == 0) { in flash_get_page_info() 29 index_jmp = (offs - info->start_offset) / info->size; in flash_get_page_info() 45 int z_impl_flash_get_page_info_by_offs(const struct device *dev, off_t offs, in z_impl_flash_get_page_info_by_offs() argument 48 return flash_get_page_info(dev, offs, 0U, info); in z_impl_flash_get_page_info_by_offs()
|
D | flash_util.c | 165 for (uint32_t offs = 0, N = size, bytes_read = 0, bytes_left = N; offs < N; in z_impl_flash_copy() local 166 offs += bytes_read, bytes_left -= bytes_read) { in z_impl_flash_copy() 176 ret = flash_read(src_dev, src_offset + offs, buf, bytes_read); in z_impl_flash_copy() 179 (long)(src_offset + offs), ret); in z_impl_flash_copy() 183 ret = flash_write(dst_dev, dst_offset + offs, buf, bytes_read); in z_impl_flash_copy() 186 (long)(src_offset + offs), ret); in z_impl_flash_copy()
|
D | flash_handlers.c | 80 off_t offs, in z_vrfy_flash_get_page_info_by_offs() argument 86 offs, in z_vrfy_flash_get_page_info_by_offs()
|
/Zephyr-latest/samples/drivers/mspi/mspi_flash/src/ |
D | main.c | 108 size_t offs = SPI_FLASH_TEST_REGION_OFFSET; in multi_sector_test() local 110 while (offs < SPI_FLASH_TEST_REGION_OFFSET + 2 * SPI_FLASH_SECTOR_SIZE) { in multi_sector_test() 111 rc = flash_read(flash_dev, offs, buf, len); in multi_sector_test() 118 offs, buf[0]); in multi_sector_test() 121 offs += SPI_FLASH_SECTOR_SIZE; in multi_sector_test() 128 size_t offs = SPI_FLASH_TEST_REGION_OFFSET; in multi_sector_test() local 130 while (offs < SPI_FLASH_TEST_REGION_OFFSET + 2 * SPI_FLASH_SECTOR_SIZE) { in multi_sector_test() 131 printf("Attempting to write %zu bytes at offset 0x%x\n", len, offs); in multi_sector_test() 132 rc = flash_write(flash_dev, offs, expected, len); in multi_sector_test() 139 rc = flash_read(flash_dev, offs, buf, len); in multi_sector_test() [all …]
|
/Zephyr-latest/tests/drivers/mspi/flash/src/ |
D | main.c | 79 size_t offs; in test_multi_sector_rw() local 123 offs = MSPI_FLASH_TEST_REGION_OFFSET; in test_multi_sector_rw() 124 while (offs < MSPI_FLASH_TEST_REGION_OFFSET + 2 * MSPI_FLASH_SECTOR_SIZE) { in test_multi_sector_rw() 125 rc = flash_read(flash_dev, offs, actual, MSPI_FLASH_TEST_SIZE); in test_multi_sector_rw() 131 TC_PRINT("Flash erase failed at offset 0x%x got 0x%x\n", offs, in test_multi_sector_rw() 135 offs += MSPI_FLASH_SECTOR_SIZE; in test_multi_sector_rw() 141 offs = MSPI_FLASH_TEST_REGION_OFFSET; in test_multi_sector_rw() 142 while (offs < MSPI_FLASH_TEST_REGION_OFFSET + 2 * MSPI_FLASH_SECTOR_SIZE) { in test_multi_sector_rw() 144 offs); in test_multi_sector_rw() 145 rc = flash_write(flash_dev, offs, expected, MSPI_FLASH_TEST_SIZE); in test_multi_sector_rw() [all …]
|
/Zephyr-latest/samples/drivers/spi_flash/src/ |
D | main.c | 149 size_t offs = SPI_FLASH_TEST_REGION_OFFSET; in multi_sector_test() local 151 while (offs < SPI_FLASH_TEST_REGION_OFFSET + 2 * SPI_FLASH_SECTOR_SIZE) { in multi_sector_test() 152 rc = flash_read(flash_dev, offs, buf, len); in multi_sector_test() 159 offs, *(uint32_t *)buf); in multi_sector_test() 162 offs += SPI_FLASH_SECTOR_SIZE; in multi_sector_test() 169 size_t offs = SPI_FLASH_TEST_REGION_OFFSET; in multi_sector_test() local 171 while (offs < SPI_FLASH_TEST_REGION_OFFSET + 2 * SPI_FLASH_SECTOR_SIZE) { in multi_sector_test() 172 printf("Attempting to write %zu bytes at offset 0x%x\n", len, offs); in multi_sector_test() 173 rc = flash_write(flash_dev, offs, expected, len); in multi_sector_test() 180 rc = flash_read(flash_dev, offs, buf, len); in multi_sector_test() [all …]
|
/Zephyr-latest/tests/subsys/dfu/mcuboot/src/ |
D | main.c | 30 off_t offs; in ZTEST() local 39 for (offs = 0; offs < fa->fa_size; offs += sizeof(temp)) { in ZTEST() 40 ret = flash_area_read(fa, offs, &temp, sizeof(temp)); in ZTEST() 43 ret = flash_area_write(fa, offs, &temp2, sizeof(temp)); in ZTEST() 51 for (offs = 0; offs < fa->fa_size; offs += sizeof(temp)) { in ZTEST() 52 ret = flash_area_read(fa, offs, &temp, sizeof(temp)); in ZTEST()
|
/Zephyr-latest/drivers/pwm/ |
D | pwm_rcar.c | 65 static uint32_t pwm_rcar_read(const struct pwm_rcar_cfg *config, uint32_t offs) in pwm_rcar_read() argument 67 return sys_read32(config->reg_addr + offs); in pwm_rcar_read() 70 static void pwm_rcar_write(const struct pwm_rcar_cfg *config, uint32_t offs, uint32_t value) in pwm_rcar_write() argument 72 sys_write32(value, config->reg_addr + offs); in pwm_rcar_write() 75 static void pwm_rcar_write_bit(const struct pwm_rcar_cfg *config, uint32_t offs, uint32_t bits, in pwm_rcar_write_bit() argument 78 uint32_t reg_val = pwm_rcar_read(config, offs); in pwm_rcar_write_bit() 86 pwm_rcar_write(config, offs, reg_val); in pwm_rcar_write_bit()
|
/Zephyr-latest/tests/net/lib/dns_sd/src/ |
D | main.c | 92 uint16_t offs = 0; in create_query() local 106 offs += sizeof(struct dns_header); in create_query() 109 create_query_buf[offs++] = label_size; in create_query() 110 memcpy(&create_query_buf[offs], inst->service, label_size); in create_query() 111 offs += label_size; in create_query() 114 create_query_buf[offs++] = label_size; in create_query() 115 memcpy(&create_query_buf[offs], inst->proto, label_size); in create_query() 116 offs += label_size; in create_query() 119 create_query_buf[offs++] = label_size; in create_query() 120 memcpy(&create_query_buf[offs], inst->domain, label_size); in create_query() [all …]
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_rcar.c | 57 static inline uint32_t gpio_rcar_read(const struct device *dev, uint32_t offs) in gpio_rcar_read() argument 59 return sys_read32(DEVICE_MMIO_NAMED_GET(dev, reg_base) + offs); in gpio_rcar_read() 62 static inline void gpio_rcar_write(const struct device *dev, uint32_t offs, uint32_t value) in gpio_rcar_write() argument 64 sys_write32(value, DEVICE_MMIO_NAMED_GET(dev, reg_base) + offs); in gpio_rcar_write() 68 uint32_t offs, int bit, bool value) in gpio_rcar_modify_bit() argument 70 uint32_t tmp = gpio_rcar_read(dev, offs); in gpio_rcar_modify_bit() 78 gpio_rcar_write(dev, offs, tmp); in gpio_rcar_modify_bit()
|
D | gpio_adp5585.c | 20 #define ADP5585_BANK(offs) (offs >> 3) argument 21 #define ADP5585_BIT(offs) (offs & GENMASK(2, 0)) argument
|
/Zephyr-latest/include/zephyr/arch/arm/cortex_a_r/ |
D | timer.h | 42 #define TIMER_REG_GET(offs) (DEVICE_MMIO_TOPLEVEL_GET(timer_regs) + offs) argument
|
/Zephyr-latest/drivers/serial/ |
D | uart_rcar.c | 113 static uint8_t uart_rcar_read_8(const struct device *dev, uint32_t offs) in uart_rcar_read_8() argument 115 return sys_read8(DEVICE_MMIO_GET(dev) + offs); in uart_rcar_read_8() 119 uint32_t offs, uint8_t value) in uart_rcar_write_8() argument 121 sys_write8(value, DEVICE_MMIO_GET(dev) + offs); in uart_rcar_write_8() 125 uint32_t offs) in uart_rcar_read_16() argument 127 return sys_read16(DEVICE_MMIO_GET(dev) + offs); in uart_rcar_read_16() 131 uint32_t offs, uint16_t value) in uart_rcar_write_16() argument 133 sys_write16(value, DEVICE_MMIO_GET(dev) + offs); in uart_rcar_write_16()
|
D | uart_renesas_ra.c | 186 static uint8_t uart_ra_read_8(const struct device *dev, uint32_t offs) in uart_ra_read_8() argument 190 return sys_read8(config->regs + offs); in uart_ra_read_8() 193 static void uart_ra_write_8(const struct device *dev, uint32_t offs, uint8_t value) in uart_ra_write_8() argument 197 sys_write8(value, config->regs + offs); in uart_ra_write_8() 200 static uint16_t uart_ra_read_16(const struct device *dev, uint32_t offs) in uart_ra_read_16() argument 204 return sys_read16(config->regs + offs); in uart_ra_read_16() 207 static void uart_ra_write_16(const struct device *dev, uint32_t offs, uint16_t value) in uart_ra_write_16() argument 211 sys_write16(value, config->regs + offs); in uart_ra_write_16()
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_rcar.c | 79 uint32_t offs) in i2c_rcar_read() argument 81 return sys_read32(config->reg_addr + offs); in i2c_rcar_read() 85 uint32_t offs, uint32_t value) in i2c_rcar_write() argument 87 sys_write32(value, config->reg_addr + offs); in i2c_rcar_write()
|
/Zephyr-latest/drivers/sensor/hp206c/ |
D | hp206c.c | 122 static int hp206c_altitude_offs_set(const struct device *dev, int16_t offs) in hp206c_altitude_offs_set() argument 126 reg_val = offs & 0xff; in hp206c_altitude_offs_set() 132 reg_val = (offs & 0xff00) >> 8; in hp206c_altitude_offs_set()
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ull_adv_sync.c | 107 static void sync_info_offset_fill(struct pdu_adv_sync_info *si, uint32_t offs); 2663 static void sync_info_offset_fill(struct pdu_adv_sync_info *si, uint32_t offs) argument 2667 if (offs >= OFFS_ADJUST_US) { 2668 offs -= OFFS_ADJUST_US; 2672 offs = offs / OFFS_UNIT_30_US; 2673 if (!!(offs >> OFFS_UNIT_BITS)) { 2674 PDU_ADV_SYNC_INFO_OFFS_SET(si, offs / (OFFS_UNIT_300_US / OFFS_UNIT_30_US), 2677 PDU_ADV_SYNC_INFO_OFFS_SET(si, offs, OFFS_UNIT_VALUE_30_US, offs_adjust); 2788 uint32_t offs; local 2790 offs = HAL_TICKER_TICKS_TO_US(ticks_offset) + remainder_us - start_us; [all …]
|
D | ull_adv_aux.c | 2479 uint32_t offs; in ull_adv_aux_ptr_fill() local 2491 offs = offs_us / OFFS_UNIT_30_US; in ull_adv_aux_ptr_fill() 2492 if (!!(offs >> OFFS_UNIT_BITS)) { in ull_adv_aux_ptr_fill() 2493 offs = offs / (OFFS_UNIT_300_US / OFFS_UNIT_30_US); in ull_adv_aux_ptr_fill() 2500 aux_ptr->offs_phy_packed[0] = offs & 0xFF; in ull_adv_aux_ptr_fill() 2501 aux_ptr->offs_phy_packed[1] = ((offs>>8) & 0x1F) + (phy << 5); in ull_adv_aux_ptr_fill() 2779 uint32_t offs; in ull_adv_aux_lll_offset_fill() local 2807 offs = HAL_TICKER_TICKS_TO_US(ticks_offset) + remainder_us - start_us; in ull_adv_aux_lll_offset_fill() 2810 offs = offs / OFFS_UNIT_30_US; in ull_adv_aux_lll_offset_fill() 2811 if (!!(offs >> OFFS_UNIT_BITS)) { in ull_adv_aux_lll_offset_fill() [all …]
|
D | ull_adv_iso.c | 1496 uint32_t offs; in big_info_offset_fill() local 1498 offs = HAL_TICKER_TICKS_TO_US(ticks_offset) - start_us; in big_info_offset_fill() 1499 offs = offs / OFFS_UNIT_30_US; in big_info_offset_fill() 1500 if (!!(offs >> OFFS_UNIT_BITS)) { in big_info_offset_fill() 1501 PDU_BIG_INFO_OFFS_SET(bi, offs / (OFFS_UNIT_300_US / in big_info_offset_fill() 1505 PDU_BIG_INFO_OFFS_SET(bi, offs); in big_info_offset_fill()
|
D | pdu.h | 237 #define PDU_ADV_SYNC_INFO_OFFS_SET(si, offs, offs_units, offs_adjust) \ argument 239 (si)->offs_packed[0] = (offs) & 0xFF; \ 240 (si)->offs_packed[1] = (((offs) >> 8) & 0x1F) + \
|
/Zephyr-latest/drivers/tee/optee/ |
D | optee_msg.h | 130 uint64_t offs; member
|
D | optee.c | 145 mtp->u.rmem.offs = tp->a; in param_to_msg_param() 217 tp->a = mtp->u.rmem.offs; in msg_param_to_param()
|
/Zephyr-latest/drivers/pinctrl/renesas/rcar/ |
D | pfc_rcar.c | 62 static void pfc_rcar_write(uintptr_t pfc_base, uint32_t offs, uint32_t val) in pfc_rcar_write() argument 65 sys_write32(val, pfc_base + offs); in pfc_rcar_write()
|
/Zephyr-latest/drivers/can/ |
D | can_rcar.c | 200 uint32_t offs) in can_rcar_read16() argument 202 return sys_read16(config->reg_addr + offs); in can_rcar_read16() 206 uint32_t offs, uint16_t value) in can_rcar_write16() argument 208 sys_write16(value, config->reg_addr + offs); in can_rcar_write16()
|