Home
last modified time | relevance | path

Searched refs:offset (Results 226 – 250 of 1070) sorted by relevance

12345678910>>...43

/Zephyr-latest/drivers/wifi/esp_at/
Desp_socket.c105 size_t offset, size_t len) in esp_socket_prepare_pkt() argument
121 while (frag && offset >= frag->len) { in esp_socket_prepare_pkt()
122 offset -= frag->len; in esp_socket_prepare_pkt()
128 to_copy = MIN(len, frag->len - offset); in esp_socket_prepare_pkt()
129 if (net_pkt_write(pkt, frag->data + offset, to_copy) != 0) { in esp_socket_prepare_pkt()
139 offset = 0; in esp_socket_prepare_pkt()
154 size_t offset, size_t len) argument
175 pkt = esp_socket_prepare_pkt(sock, buf, offset, len);
/Zephyr-latest/drivers/spi/spi_nxp_lpspi/
Dspi_nxp_lpspi.c31 static inline void lpspi_rx_word_write_bytes(const struct device *dev, size_t offset) in lpspi_rx_word_write_bytes() argument
38 uint8_t *buf = ctx->rx_buf + offset; in lpspi_rx_word_write_bytes()
59 size_t offset = 0; in lpspi_rx_buf_write_words() local
62 lpspi_rx_word_write_bytes(dev, offset); in lpspi_rx_buf_write_words()
63 offset += lpspi_data->word_size_bytes; in lpspi_rx_buf_write_words()
100 static inline uint32_t lpspi_next_tx_word(const struct device *dev, int offset) in lpspi_next_tx_word() argument
105 const uint8_t *byte = ctx->tx_buf + offset; in lpspi_next_tx_word()
122 size_t offset; in lpspi_fill_tx_fifo() local
124 for (offset = 0; offset < bytes_in_xfer; offset += lpspi_data->word_size_bytes) { in lpspi_fill_tx_fifo()
125 LPSPI_WriteData(base, lpspi_next_tx_word(dev, offset)); in lpspi_fill_tx_fifo()
[all …]
/Zephyr-latest/tests/drivers/build_all/display/
Dapp.overlay66 x-offset = <0>;
67 y-offset = <0>;
82 x-offset = <0>;
83 y-offset = <0>;
147 display-offset = <0>;
160 column-offset = <28>;
340 x-offset=<0>;
341 y-offset=<32>;
356 segment-offset = <0>;
357 page-offset = <0>;
[all …]
/Zephyr-latest/lib/mem_blocks/
Dmem_blocks.c18 size_t offset; in alloc_blocks() local
27 r = sys_bitarray_alloc(mem_block->bitmap, num_blocks, &offset); in alloc_blocks()
48 blk = mem_block->buffer + (offset << mem_block->info.blk_sz_shift); in alloc_blocks()
56 size_t offset; in free_blocks() local
66 offset = (blk - mem_block->buffer) >> mem_block->info.blk_sz_shift; in free_blocks()
67 if (offset >= mem_block->info.num_blocks) { in free_blocks()
75 ret = sys_bitarray_free(mem_block->bitmap, num_blocks, offset); in free_blocks()
178 size_t offset; in sys_mem_blocks_is_region_free() local
184 offset = ((uint8_t *)in_block - mem_block->buffer) >> in sys_mem_blocks_is_region_free()
187 __ASSERT_NO_MSG(offset + count <= mem_block->info.num_blocks); in sys_mem_blocks_is_region_free()
[all …]
/Zephyr-latest/drivers/rtc/
Drtc_bq32002.c260 uint8_t offset; in bq32002_set_calibration() local
277 offset = in bq32002_set_calibration()
280 offset = DIV_ROUND_CLOSEST(-freq_ppb, BQ32002_CAL_PPB_PER_LSB_POS) & in bq32002_set_calibration()
283 reg_val |= offset; in bq32002_set_calibration()
290 LOG_DBG("Set calibration: frequency ppb: %d, offset value: %d, sign: %d", freq_ppb, offset, in bq32002_set_calibration()
300 uint8_t offset; in bq32002_get_calibration() local
308 offset = reg_val & BQ32002_CAL_MASK; in bq32002_get_calibration()
311 *freq_ppb = offset * BQ32002_CAL_PPB_PER_LSB_NEG; in bq32002_get_calibration()
313 *freq_ppb = -offset * BQ32002_CAL_PPB_PER_LSB_POS; in bq32002_get_calibration()
316 LOG_DBG("Get calibration: frequency ppb: %d, offset value: %d, sign: %d", *freq_ppb, offset, in bq32002_get_calibration()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/mcumgr_client/src/
Dimg_gr_stub.c41 void img_upload_response(size_t offset, int status) in img_upload_response() argument
59 zcbor_size_put(zse, offset) && zcbor_map_end_encode(zse, 4); in img_upload_response()
63 zcbor_size_put(zse, offset) && zcbor_map_end_encode(zse, 4); in img_upload_response()
227 size_t decoded, length, offset; in img_upload_init_verify() local
232 ZCBOR_MAP_DECODE_KEY_DECODER("off", zcbor_size_decode, &offset), in img_upload_init_verify()
244 offset = SIZE_MAX; in img_upload_init_verify()
248 if (rc || data.len == 0 || offset == SIZE_MAX || image != TEST_IMAGE_NUM) { in img_upload_init_verify()
262 if (offset != test_offset) { in img_upload_init_verify()
263 printf("Offset not exepected %d vs received %d\r\n", test_offset, offset); in img_upload_init_verify()
266 if (offset == 0) { in img_upload_init_verify()
/Zephyr-latest/drivers/retained_mem/
Dretained_mem_zephyr_reg.c71 static int zephyr_retained_mem_reg_read(const struct device *dev, off_t offset, uint8_t *buffer, in zephyr_retained_mem_reg_read() argument
78 memcpy(buffer, (config->address + offset), size); in zephyr_retained_mem_reg_read()
85 static int zephyr_retained_mem_reg_write(const struct device *dev, off_t offset, in zephyr_retained_mem_reg_write() argument
92 memcpy((config->address + offset), buffer, size); in zephyr_retained_mem_reg_write()
Dretained_mem_nrf_gpregret.c70 static int nrf_gpregret_read(const struct device *dev, off_t offset, uint8_t *buffer, size_t size) in nrf_gpregret_read() argument
76 memcpy(buffer, (config->addr + offset), size); in nrf_gpregret_read()
83 static int nrf_gpregret_write(const struct device *dev, off_t offset, const uint8_t *buffer, in nrf_gpregret_write() argument
90 memcpy((config->addr + offset), buffer, size); in nrf_gpregret_write()
Dretained_mem_zephyr_ram.c70 static int zephyr_retained_mem_ram_read(const struct device *dev, off_t offset, uint8_t *buffer, in zephyr_retained_mem_ram_read() argument
77 memcpy(buffer, (config->address + offset), size); in zephyr_retained_mem_ram_read()
84 static int zephyr_retained_mem_ram_write(const struct device *dev, off_t offset, in zephyr_retained_mem_ram_write() argument
91 memcpy((config->address + offset), buffer, size); in zephyr_retained_mem_ram_write()
/Zephyr-latest/tests/bsim/bluetooth/host/adv/encrypted/ead_sample/src/
Dmain.c67 size_t offset; in central_main() local
74 offset = 0; in central_main()
76 offset += bt_data_serialize(&ad[i], &expected_data[offset]); in central_main()
/Zephyr-latest/subsys/input/
Dinput_keymap.c38 uint32_t offset; in keymap_cb() local
62 offset = (data->row * cfg->col_size) + data->col; in keymap_cb()
64 if (offset >= cfg->num_codes || codes[offset] == 0) { in keymap_cb()
71 input_report_key(dev, codes[offset], data->pressed, true, K_FOREVER); in keymap_cb()
/Zephyr-latest/drivers/net/
Dppp.c175 p = evt->data.rx.buf + evt->data.rx.offset; in uart_callback()
470 int offset; in ppp_handle_client() local
486 offset = ppp_send_bytes(ppp, clientserver, in ppp_handle_client()
488 (void)ppp_send_flush(ppp, offset); in ppp_handle_client()
793 static uint16_t ppp_escape_byte(uint8_t byte, int *offset) in ppp_escape_byte() argument
796 *offset = 0; in ppp_escape_byte()
800 *offset = 1; in ppp_escape_byte()
813 int i, offset; in ppp_send() local
850 escaped = htons(ppp_escape_byte(protocol, &offset)); in ppp_send()
851 send_off = ppp_send_bytes(ppp, (uint8_t *)&escaped + offset, in ppp_send()
[all …]
/Zephyr-latest/soc/ti/k3/am6x/
Dpinctrl_soc.h18 uint32_t offset; member
26 .offset = DT_PROP_BY_IDX(node_id, pinmux, 0), \
/Zephyr-latest/scripts/coredump/coredump_parser/
Delf_parser.py163 offset = size_t_size_symbol['st_value'] - seg['p_vaddr'] + seg['p_offset']
164 self.elf.stream.seek(offset)
173offset = num_offsets_symbol['st_value'] - kernel_thread_info_num_offsets_segment['p_vaddr'] + kern…
174 self.elf.stream.seek(offset)
183offset = info_offsets_symbol['st_value'] - kernel_thread_info_offsets_segment['p_vaddr'] + kernel_…
184 self.elf.stream.seek(offset)
/Zephyr-latest/drivers/flash/
Dflash_stm32f4x.c39 bool flash_stm32_valid_range(const struct device *dev, off_t offset, in flash_stm32_valid_range() argument
56 return flash_stm32_range_exists(dev, offset, len); in flash_stm32_valid_range()
83 static int write_value(const struct device *dev, off_t offset, flash_prg_t val) in write_value() argument
120 *((flash_prg_t *)(offset + FLASH_STM32_BASE_ADDRESS)) = val; in write_value()
188 unsigned int offset, in flash_stm32_block_erase_loop() argument
196 rc = flash_get_page_info_by_offs(dev, offset, &info); in flash_stm32_block_erase_loop()
201 rc = flash_get_page_info_by_offs(dev, offset + len - 1, &info); in flash_stm32_block_erase_loop()
217 int flash_stm32_write_range(const struct device *dev, unsigned int offset, in flash_stm32_write_range() argument
225 rc = write_value(dev, offset + i * sizeof(flash_prg_t), value); in flash_stm32_write_range()
/Zephyr-latest/drivers/ethernet/
Deth_w5500.c107 static int w5500_readbuf(const struct device *dev, uint16_t offset, uint8_t *buf, in w5500_readbuf() argument
116 offset %= mem_size; in w5500_readbuf()
117 addr = mem_start + offset; in w5500_readbuf()
119 if (offset + len > mem_size) { in w5500_readbuf()
120 remain = (offset + len) % mem_size; in w5500_readbuf()
121 len = mem_size - offset; in w5500_readbuf()
132 static int w5500_writebuf(const struct device *dev, uint16_t offset, uint8_t *buf, in w5500_writebuf() argument
141 offset %= mem_size; in w5500_writebuf()
142 addr = mem_start + offset; in w5500_writebuf()
144 if (offset + len > mem_size) { in w5500_writebuf()
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Daccess.h27 int bt_mesh_comp_data_get_page_0(struct net_buf_simple *buf, size_t offset);
29 int bt_mesh_metadata_get_page_0(struct net_buf_simple *buf, size_t offset);
71 int bt_mesh_models_metadata_read(struct net_buf_simple *buf, size_t offset);
75 int bt_mesh_comp_data_get_page(struct net_buf_simple *buf, size_t page, size_t offset);
/Zephyr-latest/drivers/spi/
Dspi_oc_simple.h12 #define SPI_OC_SIMPLE_REG(info, offset) \ argument
14 (offset * CONFIG_SPI_OC_SIMPLE_BUS_WIDTH / 8)))
/Zephyr-latest/subsys/bluetooth/audio/
Dvocs_internal.h33 int16_t offset; member
37 int16_t offset; member
102 int bt_vocs_client_state_set(struct bt_vocs_client *inst, int16_t offset);
/Zephyr-latest/boards/shields/seeed_xiao_expansion_board/
Dseeed_xiao_expansion_board.overlay37 segment-offset = <0>;
38 page-offset = <0>;
39 display-offset = <0>;
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dvocs.h81 int16_t offset; member
162 typedef void (*bt_vocs_state_cb)(struct bt_vocs *inst, int err, int16_t offset);
264 int bt_vocs_state_set(struct bt_vocs *inst, int16_t offset);
/Zephyr-latest/scripts/build/
Dgen_isr_tables_parser_carrays.py119 offset = intlist["offset"]
124 self.__log.debug('offset is ' + str(offset))
149 if not 0 <= irq - offset < len(vt):
151 % (irq - offset, offset, len(vt) - 1))
152 vt[irq - offset] = func
160 table_index = self.__config.get_swt_table_index(offset, irq)
164 (table_index, offset, len(swt) - 1))
/Zephyr-latest/drivers/wifi/eswifi/
Deswifi_bus_spi.c109 unsigned int offset = 0U, to_read = SPI_READ_CHUNK_SIZE; in eswifi_spi_request() local
166 to_read = MIN(rlen - offset, to_read); in eswifi_spi_request()
167 memset(rsp + offset, 0, to_read); in eswifi_spi_request()
168 eswifi_spi_read(eswifi, rsp + offset, to_read); in eswifi_spi_request()
169 offset += to_read; in eswifi_spi_request()
184 return offset; in eswifi_spi_request()
/Zephyr-latest/subsys/net/lib/mqtt/
Dmqtt_transport_websocket.c92 uint32_t offset = 0U; in mqtt_client_websocket_write() local
95 while (offset < datalen) { in mqtt_client_websocket_write()
97 data + offset, datalen - offset, in mqtt_client_websocket_write()
104 offset += ret; in mqtt_client_websocket_write()
/Zephyr-latest/subsys/fs/ext2/
Dext2_impl.h155 uint32_t offset; /* (CR, ST, UN) offset of entry in directory */ member
187 ssize_t ext2_inode_read(struct ext2_inode *inode, void *buf, uint32_t offset,
202 uint32_t offset, size_t nbytes);
298 uint32_t offset);

12345678910>>...43