/Zephyr-latest/subsys/net/lib/shell/ |
D | stats.c | 153 int j, total = 0, pos = 0; in get_net_pkt_tc_stats_detail() local 155 pos += snprintk(extra_stats, sizeof(extra_stats), "\t[0"); in get_net_pkt_tc_stats_detail() 197 pos += snprintk(extra_stats + pos, sizeof(extra_stats) - pos, in get_net_pkt_tc_stats_detail() 205 pos += snprintk(extra_stats + pos, sizeof(extra_stats) - pos, in get_net_pkt_tc_stats_detail() 217 int j, total = 0, pos = 0; in get_net_pkt_stats_detail() local 219 pos += snprintk(extra_stats, sizeof(extra_stats), "\t[0"); in get_net_pkt_stats_detail() 259 pos += snprintk(extra_stats + pos, in get_net_pkt_stats_detail() 260 sizeof(extra_stats) - pos, in get_net_pkt_stats_detail() 268 pos += snprintk(extra_stats + pos, sizeof(extra_stats) - pos, in get_net_pkt_stats_detail()
|
D | mem.c | 14 int pos; member 71 info->tx_slabs[info->pos] = slab; in context_info() 88 info->data_pools[info->pos] = pool; in context_info() 91 info->pos++; in context_info()
|
/Zephyr-latest/drivers/sensor/maxim/max31865/ |
D | max31865.h | 98 #define TESTBIT(data, pos) ((0u == (data & BIT(pos))) ? 0u : 1u) argument
|
/Zephyr-latest/drivers/modem/ |
D | modem_cmd_handler.c | 52 uint16_t len = 0U, pos = 0U; in findcrlf() local 54 while (buf && buf->len && !is_crlf(*(buf->data + pos))) { in findcrlf() 55 if (pos + 1 >= buf->len) { in findcrlf() 58 pos = 0U; in findcrlf() 60 pos++; in findcrlf() 64 if (buf && buf->len && is_crlf(*(buf->data + pos))) { in findcrlf() 65 len += pos; in findcrlf() 66 *offset = pos; in findcrlf() 76 int pos = 0; in starts_with() local 79 if (*(buf->data + pos) == *str) { in starts_with() [all …]
|
/Zephyr-latest/drivers/pinctrl/ |
D | pinctrl_gd32_afio.c | 185 uint8_t pos; in configure_remap() local 200 pos = GD32_REMAP_POS_GET(remap); in configure_remap() 203 reg_val &= ~(GD32_REMAP_MSK_GET(remap) << pos); in configure_remap() 204 reg_val |= GD32_REMAP_VAL_GET(remap) << pos; in configure_remap()
|
/Zephyr-latest/subsys/llext/ |
D | fs_loader.c | 46 int llext_fs_seek(struct llext_loader *l, size_t pos) in llext_fs_seek() argument 51 return fs_seek(&fs_l->file, pos, FS_SEEK_SET); in llext_fs_seek()
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/settings/src/ |
D | settings.c | 100 char *pos = strchr(line, '='); in settings_custom_load() local 102 if (pos <= line) { in settings_custom_load() 106 vallen = strlen(line) - (pos - line) - 2; in settings_custom_load() 112 valctx.val = pos + 1; in settings_custom_load()
|
/Zephyr-latest/kernel/ |
D | mmu.c | 575 uint8_t *pos; in k_mem_map_phys_guard() local 629 VIRT_FOREACH(dst, size, pos) { in k_mem_map_phys_guard() 630 arch_mem_map(pos, in k_mem_map_phys_guard() 635 LOG_DBG("memory mapping anon pages %p to %p unpaged", dst, pos-1); in k_mem_map_phys_guard() 641 VIRT_FOREACH(dst, size, pos) { in k_mem_map_phys_guard() 642 ret = map_anon_page(pos, flags); in k_mem_map_phys_guard() 681 uint8_t *pos; in k_mem_unmap_phys_guard() local 693 pos = (uint8_t *)addr - CONFIG_MMU_PAGE_SIZE; in k_mem_unmap_phys_guard() 694 k_mem_assert_virtual_region(pos, size + (CONFIG_MMU_PAGE_SIZE * 2)); in k_mem_unmap_phys_guard() 702 pos = addr; in k_mem_unmap_phys_guard() [all …]
|
/Zephyr-latest/subsys/fs/ |
D | fat_fs.c | 212 off_t pos = f_size((FIL *)zfp->filep); in fatfs_write() local 221 res = f_lseek(zfp->filep, pos); in fatfs_write() 241 off_t pos; in fatfs_seek() local 245 pos = offset; in fatfs_seek() 248 pos = f_tell((FIL *)zfp->filep) + offset; in fatfs_seek() 251 pos = f_size((FIL *)zfp->filep) + offset; in fatfs_seek() 257 if ((pos < 0) || (pos > f_size((FIL *)zfp->filep))) { in fatfs_seek() 261 res = f_lseek(zfp->filep, pos); in fatfs_seek()
|
/Zephyr-latest/subsys/net/ip/ |
D | ipv4_fragment.c | 295 static int shift_packets(struct net_ipv4_reassembly *reass, int pos) in shift_packets() argument 299 for (i = pos + 1; i < CONFIG_NET_IPV4_FRAGMENT_MAX_PKT; i++) { in shift_packets() 301 LOG_DBG("Moving [%d] %p (offset 0x%x) to [%d]", pos, reass->pkt[pos], in shift_packets() 302 net_pkt_ipv4_fragment_offset(reass->pkt[pos]), pos + 1); in shift_packets() 307 memmove(&reass->pkt[pos + 1], &reass->pkt[pos], in shift_packets() 308 sizeof(void *) * (i - pos)); in shift_packets() 311 reass->pkt[pos] = NULL; in shift_packets()
|
D | ipv6_fragment.c | 432 static int shift_packets(struct net_ipv6_reassembly *reass, int pos) in shift_packets() argument 436 for (i = pos + 1; i < CONFIG_NET_IPV6_FRAGMENT_MAX_PKT; i++) { in shift_packets() 439 pos, reass->pkt[pos], in shift_packets() 440 net_pkt_ipv6_fragment_offset(reass->pkt[pos]), in shift_packets() 441 pos + 1); in shift_packets() 446 memmove(&reass->pkt[pos + 1], &reass->pkt[pos], in shift_packets() 447 sizeof(void *) * (i - pos)); in shift_packets() 450 reass->pkt[pos] = NULL; in shift_packets()
|
D | utils.c | 168 int pos = -1; in z_impl_net_addr_ntop() local 199 pos = i; in z_impl_net_addr_ntop() 204 pos = -1; in z_impl_net_addr_ntop() 248 if (i == pos) { in z_impl_net_addr_ntop() 605 if (!cur->buf || !cur->pos) { in pkt_calc_chksum() 609 len = cur->buf->len - (cur->pos - cur->buf->data); in pkt_calc_chksum() 612 sum = calc_chksum(sum, cur->pos, len); in pkt_calc_chksum() 619 cur->pos = cur->buf->data; in pkt_calc_chksum() 622 sum += *cur->pos; in pkt_calc_chksum() 623 if (sum < *cur->pos) { in pkt_calc_chksum() [all …]
|
D | net_pkt.c | 1753 pkt->cursor.pos = pkt->cursor.buf->data; 1755 pkt->cursor.pos = NULL; 1776 cursor->pos = cursor->buf->data; 1778 cursor->pos = NULL; 1792 if ((cursor->pos - cursor->buf->data) == len) { 1808 if (length + (cursor->pos - cursor->buf->data) == len && 1813 cursor->pos += length; 1836 (c_op->pos - c_op->buf->data); 1838 d_len = c_op->buf->len - (c_op->pos - c_op->buf->data); 1852 memcpy(write ? c_op->pos : data, [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | hash_map_api.h | 58 size_t pos; member 70 return it->pos < it->size; in sys_hashmap_iterator_has_next()
|
/Zephyr-latest/include/zephyr/drivers/pinctrl/ |
D | pinctrl_soc_sam_common.h | 105 #define SAM_PINCTRL_FLAG_GET(pincfg, pos) \ argument 106 (((pincfg) >> pos) & SAM_PINCTRL_FLAG_MASK)
|
/Zephyr-latest/tests/subsys/logging/log_switch_format/src/ |
D | mock_backend.c | 85 int pos = remove_timestamp(output_str, 0); in validate_log_type() local 88 output_str = output_str+pos; in validate_log_type()
|
/Zephyr-latest/lib/posix/options/getopt/ |
D | getopt_long.c | 134 int cstart, cyclelen, i, j, ncycle, nnonopts, nopts, pos; in permute_args() local 147 pos = cstart; in permute_args() 149 if (pos >= panonopt_end) { in permute_args() 150 pos -= nnonopts; in permute_args() 152 pos += nopts; in permute_args() 154 swap = nargv[pos]; in permute_args() 156 ((char **) nargv)[pos] = nargv[cstart]; in permute_args()
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_rf2xx_iface.c | 141 uint8_t pos) in rf2xx_iface_bit_read() argument 147 ret >>= pos; in rf2xx_iface_bit_read() 155 uint8_t pos, in rf2xx_iface_bit_write() argument 162 new_value <<= pos; in rf2xx_iface_bit_write()
|
/Zephyr-latest/tests/net/ieee802154/6lo_fragment/src/ |
D | main.c | 193 uint32_t bytes, pos, compare, offset; in compare_data() local 210 pos = 0U; in compare_data() 217 if (memcmp(frag->data + offset, user_data + pos, compare)) { in compare_data() 222 pos += compare; in compare_data() 236 uint32_t bytes, pos; in create_pkt() local 257 pos = 0U; in create_pkt() 275 memcpy(net_buf_add(buf, copy), &user_data[pos], copy); in create_pkt() 277 pos += bytes; in create_pkt()
|
/Zephyr-latest/lib/hash/ |
D | hash_map_cxx.cpp | 25 for (size_t i = 0; i < it->pos; ++i, it2++) in sys_hashmap_cxx_iter_next() 30 ++it->pos; in sys_hashmap_cxx_iter_next() 44 it->pos = 0; in sys_hashmap_cxx_iter()
|
/Zephyr-latest/arch/arm/core/ |
D | gdbstub.c | 141 int pos = packet_pos[i] * 8; in arch_gdb_reg_readall() local 142 int r = bin2hex((const uint8_t *)(c->registers + i), 4, buf + pos, buflen - pos); in arch_gdb_reg_readall() 144 buf[pos + 8] = 'x'; in arch_gdb_reg_readall()
|
/Zephyr-latest/drivers/mfd/ |
D | mfd_tle9104.c | 118 static void tle9104_set_register_bits(uint8_t *destination, uint8_t pos, uint8_t length, in tle9104_set_register_bits() argument 121 *destination &= ~GENMASK(pos + length - 1, pos); in tle9104_set_register_bits() 122 *destination |= FIELD_PREP(GENMASK(pos + length - 1, pos), value); in tle9104_set_register_bits() 125 static uint8_t tle9104_get_register_bits(uint8_t value, uint8_t pos, uint8_t length) in tle9104_get_register_bits() argument 127 return FIELD_GET(GENMASK(pos + length - 1, pos), value); in tle9104_get_register_bits()
|
/Zephyr-latest/subsys/net/l2/ieee802154/ |
D | ieee802154_6lo.h | 22 uint8_t *pos; /* current position in buf */ member
|
/Zephyr-latest/samples/bluetooth/hci_uart/src/ |
D | main.c | 287 uint32_t len = 0U, pos = 0U; in bt_ctlr_assert_handle() local 298 pos = len + 1; in bt_ctlr_assert_handle() 302 file += pos; in bt_ctlr_assert_handle() 303 len -= pos; in bt_ctlr_assert_handle()
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_rw_oma_tlv.c | 156 size_t pos; in oma_tlv_put() local 174 pos = 1; in oma_tlv_put() 183 pos++; in oma_tlv_put() 191 pos++; in oma_tlv_put() 202 pos++; in oma_tlv_put() 215 return pos + tlv->length; in oma_tlv_put() 936 int pos = 0; in lwm2m_multi_resource_tlv_parse() local 948 while (pos < multi_resource_tlv->length && in lwm2m_multi_resource_tlv_parse() 970 pos += len2; in lwm2m_multi_resource_tlv_parse() 1012 int pos = 0; in do_write_op_tlv() local [all …]
|