Home
last modified time | relevance | path

Searched refs:offset (Results 201 – 225 of 1070) sorted by relevance

12345678910>>...43

/Zephyr-latest/samples/boards/nordic/nrf53_sync_rtc/net/src/
Dmain.c25 int32_t offset = z_nrf_rtc_timer_nrf53net_offset_get(); in sync_callback() local
27 __ASSERT(offset >= 0, "Synchronization should be completed"); in sync_callback()
29 uint32_t timestamp = sys_clock_tick_get_32() + offset; in sync_callback()
/Zephyr-latest/arch/common/
Dsemihost.c32 long offset; member
91 long semihost_seek(long fd, long offset) in semihost_seek() argument
95 .offset = offset in semihost_seek()
/Zephyr-latest/drivers/eeprom/
Deeprom_shell.c19 uint8_t offset; member
27 .offset = 2,
42 addr = strtoul(argv[args_indx.offset], NULL, 0); in cmd_read()
78 off_t offset; in cmd_write() local
83 offset = strtoul(argv[args_indx.offset], NULL, 0); in cmd_write()
109 err = eeprom_write(eeprom, offset, wr_buf, len); in cmd_write()
117 err = eeprom_read(eeprom, offset, rd_buf, len); in cmd_write()
160 initial_offset = strtoul(argv[args_indx.offset], NULL, 0); in cmd_fill()
Deeprom_simulator.c93 static int eeprom_range_is_valid(const struct device *dev, off_t offset, in eeprom_range_is_valid() argument
98 if ((offset + len) <= config->size) { in eeprom_range_is_valid()
105 static int eeprom_sim_read(const struct device *dev, off_t offset, void *data, in eeprom_sim_read() argument
112 if (!eeprom_range_is_valid(dev, offset, len)) { in eeprom_sim_read()
120 memcpy(data, EEPROM(offset), len); in eeprom_sim_read()
134 static int eeprom_sim_write(const struct device *dev, off_t offset, in eeprom_sim_write() argument
149 if (!eeprom_range_is_valid(dev, offset, len)) { in eeprom_sim_write()
178 memcpy(EEPROM(offset), data, len); in eeprom_sim_write()
/Zephyr-latest/drivers/sensor/st/lps25hb/
Dlps25hb.c47 int offset; in lps25hb_sample_fetch() local
51 for (offset = 0; offset < sizeof(out); ++offset) { in lps25hb_sample_fetch()
53 LPS25HB_REG_PRESS_OUT_XL + offset, in lps25hb_sample_fetch()
54 out + offset) < 0) { in lps25hb_sample_fetch()
/Zephyr-latest/include/zephyr/drivers/pcie/endpoint/
Dpcie_ep.h60 int (*conf_read)(const struct device *dev, uint32_t offset,
62 void (*conf_write)(const struct device *dev, uint32_t offset,
92 uint32_t offset, uint32_t *data) in pcie_ep_conf_read() argument
97 return api->conf_read(dev, offset, data); in pcie_ep_conf_read()
111 uint32_t offset, uint32_t data) in pcie_ep_conf_write() argument
116 api->conf_write(dev, offset, data); in pcie_ep_conf_write()
/Zephyr-latest/lib/posix/options/
Ddevice_io.c84 ssize_t pread(int fd, void *buf, size_t count, off_t offset) in pread() argument
86 size_t off = (size_t)offset; in pread()
88 if (offset < 0) { in pread()
102 ssize_t pwrite(int fd, void *buf, size_t count, off_t offset) in pwrite() argument
104 size_t off = (size_t)offset; in pwrite()
106 if (offset < 0) { in pwrite()
/Zephyr-latest/drivers/sensor/bosch/bmi323/
Dbmi323_spi.c11 static int bosch_bmi323_spi_read_words(const void *context, uint8_t offset, uint16_t *words, in bosch_bmi323_spi_read_words() argument
22 address[0] = offset | 0x80; in bosch_bmi323_spi_read_words()
46 static int bosch_bmi323_spi_write_words(const void *context, uint8_t offset, uint16_t *words, in bosch_bmi323_spi_write_words() argument
55 address = offset & 0x7F; in bosch_bmi323_spi_write_words()
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Dblob_io_flash.h29 off_t offset; member
47 uint8_t area_id, off_t offset);
/Zephyr-latest/include/zephyr/debug/
Dsymtab.h27 const uint32_t offset; member
60 const char *symtab_find_symbol_name(uintptr_t addr, uint32_t *offset);
/Zephyr-latest/tests/net/lib/dns_packet/src/
Dmain.c221 uint16_t offset; in eval_response1() local
311 offset = DNS_HEADER_SIZE; in eval_response1()
314 if (offset + qname_len + 2 * INT_SIZE >= resp->res_len) { in eval_response1()
319 if (memcmp(qname, resp->res + offset, qname_len) != 0) { in eval_response1()
324 offset += qname_len; in eval_response1()
326 if (dns_unpack_query_qtype(resp->res + offset) != resp->answer_type) { in eval_response1()
331 if (dns_unpack_query_qclass(resp->res + offset) != DNS_CLASS_IN) { in eval_response1()
337 offset += INT_SIZE + INT_SIZE; in eval_response1()
346 msg.answer_offset = offset; in eval_response1()
353 offset = msg.response_position; in eval_response1()
[all …]
/Zephyr-latest/drivers/gpio/
Dgpio_dw.c38 static inline uint32_t dw_read(uint32_t base_addr, uint32_t offset) in dw_read() argument
40 return sys_in32(base_addr + offset); in dw_read()
43 static inline void dw_write(uint32_t base_addr, uint32_t offset, in dw_write() argument
46 sys_out32(val, base_addr + offset); in dw_write()
49 static void dw_set_bit(uint32_t base_addr, uint32_t offset, in dw_set_bit() argument
53 sys_io_clear_bit(base_addr + offset, bit); in dw_set_bit()
55 sys_io_set_bit(base_addr + offset, bit); in dw_set_bit()
59 static inline uint32_t dw_read(uint32_t base_addr, uint32_t offset) in dw_read() argument
61 return sys_read32(base_addr + offset); in dw_read()
64 static inline void dw_write(uint32_t base_addr, uint32_t offset, in dw_write() argument
[all …]
Dgpio_ambiq.c24 uint32_t offset; member
42 pin += dev_cfg->offset; in ambiq_gpio_pin_configure()
81 pin += (dev_cfg->offset >> 2); in ambiq_gpio_pin_configure()
135 pin += dev_cfg->offset; in ambiq_gpio_get_config()
168 pin += (dev_cfg->offset >> 2); in ambiq_gpio_get_config()
214 uint32_t pin_offset = dev_cfg->offset; in ambiq_gpio_port_get_direction()
240 uint32_t pin_offset = dev_cfg->offset >> 2; in ambiq_gpio_port_get_direction()
276 pin_offset = dev_cfg->offset; in ambiq_gpio_port_get_raw()
278 pin_offset = dev_cfg->offset >> 2; in ambiq_gpio_port_get_raw()
290 uint32_t pin_offset = dev_cfg->offset; in ambiq_gpio_port_set_masked_raw()
[all …]
/Zephyr-latest/subsys/fs/nvs/
Dnvs.c107 off_t offset; in nvs_flash_al_wrt() local
116 offset = fs->offset; in nvs_flash_al_wrt()
117 offset += fs->sector_size * (addr >> ADDR_SECT_SHIFT); in nvs_flash_al_wrt()
118 offset += addr & ADDR_OFFS_MASK; in nvs_flash_al_wrt()
122 rc = flash_write(fs->flash_device, offset, data8, blen); in nvs_flash_al_wrt()
128 offset += blen; in nvs_flash_al_wrt()
136 rc = flash_write(fs->flash_device, offset, buf, in nvs_flash_al_wrt()
149 off_t offset; in nvs_flash_rd() local
151 offset = fs->offset; in nvs_flash_rd()
152 offset += fs->sector_size * (addr >> ADDR_SECT_SHIFT); in nvs_flash_rd()
[all …]
/Zephyr-latest/include/zephyr/drivers/sensor/
Dtmp116.h25 int tmp116_eeprom_read(const struct device *dev, off_t offset, void *data,
28 int tmp116_eeprom_write(const struct device *dev, off_t offset,
/Zephyr-latest/boards/native/nrf_bsim/
Dargparse.c23 static void cmd_testid_found(char *argv, int offset) in cmd_testid_found() argument
28 static void cmd_testlist_found(char *argv, int offset) in cmd_testlist_found() argument
34 static void cmd_autostart_found(char *argv, int offset) in cmd_autostart_found() argument
/Zephyr-latest/include/zephyr/storage/
Dstream_flash.h48 typedef int (*stream_flash_callback_t)(uint8_t *buf, size_t len, size_t offset);
62 size_t offset; /* Offset from base of flash device to write area */ member
93 uint8_t *buf, size_t buf_len, size_t offset, size_t size,
/Zephyr-latest/drivers/flash/
Dflash_mcux_flexspi_nor.c146 static ALWAYS_INLINE bool area_is_subregion(const struct device *dev, off_t offset, size_t size) in area_is_subregion() argument
150 return ((offset >= 0) && (offset < data->size) && in area_is_subregion()
151 ((data->size - offset) >= size)); in area_is_subregion()
226 off_t offset) in flash_flexspi_nor_erase_sector() argument
229 .deviceAddress = offset, in flash_flexspi_nor_erase_sector()
238 LOG_DBG("Erasing sector at 0x%08zx", (ssize_t) offset); in flash_flexspi_nor_erase_sector()
244 off_t offset) in flash_flexspi_nor_erase_block() argument
247 .deviceAddress = offset, in flash_flexspi_nor_erase_block()
256 LOG_DBG("Erasing block at 0x%08zx", (ssize_t) offset); in flash_flexspi_nor_erase_block()
279 off_t offset, const void *buffer, size_t len) in flash_flexspi_nor_page_program() argument
[all …]
Dflash_mcux_flexspi_hyperflash.c374 offset, const void *buffer, size_t len) in flash_flexspi_hyperflash_page_program() argument
379 .deviceAddress = offset, in flash_flexspi_hyperflash_page_program()
388 LOG_DBG("Page programming %d bytes to 0x%08lx", len, offset); in flash_flexspi_hyperflash_page_program()
393 static int flash_flexspi_hyperflash_read(const struct device *dev, off_t offset, in flash_flexspi_hyperflash_read() argument
400 offset); in flash_flexspi_hyperflash_read()
410 static int flash_flexspi_hyperflash_write(const struct device *dev, off_t offset, in flash_flexspi_hyperflash_write() argument
422 offset); in flash_flexspi_hyperflash_write()
445 i = MIN(SPI_HYPERFLASH_PAGE_SIZE - (offset % in flash_flexspi_hyperflash_write()
452 ret = flash_flexspi_hyperflash_write_enable(dev, offset); in flash_flexspi_hyperflash_write()
458 ret = flash_flexspi_hyperflash_page_program(dev, offset, in flash_flexspi_hyperflash_write()
[all …]
/Zephyr-latest/subsys/bluetooth/audio/
Dgmap_server.c34 uint16_t len, uint16_t offset) in read_gmap_role() argument
38 return bt_gatt_attr_read(conn, attr, buf, len, offset, &gmap_role, sizeof(gmap_role)); in read_gmap_role()
43 uint16_t len, uint16_t offset) in read_gmap_ugg_feat() argument
49 return bt_gatt_attr_read(conn, attr, buf, len, offset, &feat, sizeof(feat)); in read_gmap_ugg_feat()
60 uint16_t len, uint16_t offset) in read_gmap_ugt_feat() argument
66 return bt_gatt_attr_read(conn, attr, buf, len, offset, &feat, sizeof(feat)); in read_gmap_ugt_feat()
78 uint16_t len, uint16_t offset) in read_gmap_bgs_feat() argument
84 return bt_gatt_attr_read(conn, attr, buf, len, offset, &feat, sizeof(feat)); in read_gmap_bgs_feat()
95 uint16_t len, uint16_t offset) in read_gmap_bgr_feat() argument
101 return bt_gatt_attr_read(conn, attr, buf, len, offset, &feat, sizeof(feat)); in read_gmap_bgr_feat()
/Zephyr-latest/tests/subsys/ipc/ipc_service/boards/
Dqemu_cortex_a53.overlay8 offset = <10>;
14 offset = <20>;
/Zephyr-latest/boards/native/nrf_bsim/common/
Dphy_sync_ctrl.c100 static void cmd_start_of_found(char *argv, int offset) in cmd_start_of_found() argument
109 static void cmd_no_delay_init_found(char *argv, int offset) in cmd_no_delay_init_found() argument
114 static void cmd_no_sync_preinit_found(char *argv, int offset) in cmd_no_sync_preinit_found() argument
119 static void cmd_no_sync_preboot_found(char *argv, int offset) in cmd_no_sync_preboot_found() argument
126 static void cmd_max_resync_offset_found(char *argv, int offset) in cmd_max_resync_offset_found() argument
/Zephyr-latest/samples/bluetooth/direct_adv/src/
Dmain.c40 void *buf, uint16_t len, uint16_t offset) in read_signed() argument
44 return bt_gatt_attr_read(conn, attr, buf, len, offset, value, in read_signed()
49 const void *buf, uint16_t len, uint16_t offset, in write_signed() argument
54 if (offset + len > sizeof(signed_value)) { in write_signed()
58 memcpy(value + offset, buf, len); in write_signed()
/Zephyr-latest/samples/bluetooth/peripheral_accept_list/src/
Dmain.c37 void *buf, uint16_t len, uint16_t offset) in read_signed() argument
41 return bt_gatt_attr_read(conn, attr, buf, len, offset, value, in read_signed()
46 const void *buf, uint16_t len, uint16_t offset, in write_signed() argument
51 if (offset + len > sizeof(signed_value)) { in write_signed()
55 memcpy(value + offset, buf, len); in write_signed()
/Zephyr-latest/tests/net/lib/lwm2m/interop/src/
Dfirmware_update.c42 size_t total_size, size_t offset) in firmware_block_received_cb() argument
44 if (offset == 0) { in firmware_block_received_cb()
50 offset, data_len, last_block, crc); in firmware_block_received_cb()

12345678910>>...43