/Zephyr-Core-2.7.6/drivers/bluetooth/hci/ |
D | rpmsg.c | 55 static struct net_buf *bt_rpmsg_evt_recv(uint8_t *data, size_t remaining) in bt_rpmsg_evt_recv() argument 61 if (remaining < sizeof(hdr)) { in bt_rpmsg_evt_recv() 70 remaining -= sizeof(hdr); in bt_rpmsg_evt_recv() 72 if (remaining != hdr.len) { in bt_rpmsg_evt_recv() 89 net_buf_add_mem(buf, data, remaining); in bt_rpmsg_evt_recv() 94 static struct net_buf *bt_rpmsg_acl_recv(uint8_t *data, size_t remaining) in bt_rpmsg_acl_recv() argument 99 if (remaining < sizeof(hdr)) { in bt_rpmsg_acl_recv() 108 remaining -= sizeof(hdr); in bt_rpmsg_acl_recv() 116 if (remaining != sys_le16_to_cpu(hdr.len)) { in bt_rpmsg_acl_recv() 122 BT_DBG("len %u", remaining); in bt_rpmsg_acl_recv() [all …]
|
D | h4.c | 45 uint16_t remaining; member 85 rx.remaining = sizeof(rx.evt); in h4_get_type() 86 rx.hdr_len = rx.remaining; in h4_get_type() 89 rx.remaining = sizeof(rx.acl); in h4_get_type() 90 rx.hdr_len = rx.remaining; in h4_get_type() 94 rx.remaining = sizeof(rx.iso); in h4_get_type() 95 rx.hdr_len = rx.remaining; in h4_get_type() 108 int to_read = sizeof(*hdr) - rx.remaining; in get_acl_hdr() 110 rx.remaining -= uart_fifo_read(h4_dev, (uint8_t *)hdr + to_read, in get_acl_hdr() 111 rx.remaining); in get_acl_hdr() [all …]
|
D | hci_esp32.c | 55 static struct net_buf *bt_esp_evt_recv(uint8_t *data, size_t remaining) in bt_esp_evt_recv() argument 61 if (remaining < sizeof(hdr)) { in bt_esp_evt_recv() 70 remaining -= sizeof(hdr); in bt_esp_evt_recv() 72 if (remaining != hdr.len) { in bt_esp_evt_recv() 89 net_buf_add_mem(buf, data, remaining); in bt_esp_evt_recv() 94 static struct net_buf *bt_esp_acl_recv(uint8_t *data, size_t remaining) in bt_esp_acl_recv() argument 99 if (remaining < sizeof(hdr)) { in bt_esp_acl_recv() 108 remaining -= sizeof(hdr); in bt_esp_acl_recv() 116 if (remaining != sys_le16_to_cpu(hdr.len)) { in bt_esp_acl_recv() 122 BT_DBG("len %u", remaining); in bt_esp_acl_recv() [all …]
|
D | h5.c | 414 static int remaining; in bt_uart_isr() local 444 remaining = sizeof(hdr); in bt_uart_isr() 452 remaining = sizeof(hdr); in bt_uart_isr() 461 memcpy(&hdr[sizeof(hdr) - remaining], &byte, 1); in bt_uart_isr() 462 remaining--; in bt_uart_isr() 464 if (remaining) { in bt_uart_isr() 468 remaining = H5_HDR_LEN(hdr); in bt_uart_isr() 516 if (!remaining) { in bt_uart_isr() 539 remaining--; in bt_uart_isr() 540 if (!remaining) { in bt_uart_isr()
|
/Zephyr-Core-2.7.6/samples/bluetooth/hci_rpmsg/src/ |
D | main.c | 48 static struct net_buf *hci_rpmsg_cmd_recv(uint8_t *data, size_t remaining) in hci_rpmsg_cmd_recv() argument 53 if (remaining < sizeof(*hdr)) { in hci_rpmsg_cmd_recv() 61 remaining -= sizeof(*hdr); in hci_rpmsg_cmd_recv() 67 if (remaining != hdr->param_len) { in hci_rpmsg_cmd_recv() 74 net_buf_add_mem(buf, data, remaining); in hci_rpmsg_cmd_recv() 79 static struct net_buf *hci_rpmsg_acl_recv(uint8_t *data, size_t remaining) in hci_rpmsg_acl_recv() argument 84 if (remaining < sizeof(*hdr)) { in hci_rpmsg_acl_recv() 92 remaining -= sizeof(*hdr); in hci_rpmsg_acl_recv() 98 if (remaining != sys_le16_to_cpu(hdr->len)) { in hci_rpmsg_acl_recv() 104 LOG_DBG("len %u", remaining); in hci_rpmsg_acl_recv() [all …]
|
/Zephyr-Core-2.7.6/drivers/disk/ |
D | flashdisk.c | 71 uint32_t remaining; in disk_flash_access_read() local 76 remaining = (sector_count * SECTOR_SIZE); in disk_flash_access_read() 79 num_read = GET_NUM_BLOCK(remaining, CONFIG_DISK_FLASH_MAX_RW_SIZE); in disk_flash_access_read() 82 if (remaining < CONFIG_DISK_FLASH_MAX_RW_SIZE) { in disk_flash_access_read() 83 len = remaining; in disk_flash_access_read() 92 remaining -= len; in disk_flash_access_read() 188 uint32_t remaining; in disk_flash_access_write() local 192 remaining = (sector_count * SECTOR_SIZE); in disk_flash_access_write() 202 if ((fl_addr + remaining) < block_bnd) { in disk_flash_access_write() 204 if (update_flash_block(fl_addr, remaining, buff) != 0) { in disk_flash_access_write() [all …]
|
/Zephyr-Core-2.7.6/subsys/net/lib/coap/ |
D | coap_link_format.c | 219 uint16_t *remaining, size_t *offset, in append_to_coap_pkt() argument 225 if (!*remaining) { in append_to_coap_pkt() 241 if (len > *remaining) { in append_to_coap_pkt() 242 len = *remaining; in append_to_coap_pkt() 247 *remaining -= len; in append_to_coap_pkt() 255 uint16_t *remaining, size_t *offset, in format_uri() argument 267 remaining, offset, current); in format_uri() 272 if (!*remaining) { in format_uri() 280 res = append_to_coap_pkt(response, *p, path_len, remaining, in format_uri() 286 if (!*remaining) { in format_uri() [all …]
|
/Zephyr-Core-2.7.6/tests/net/socket/websocket/src/ |
D | main.c | 63 uint32_t *msg_type, uint64_t *remaining, in test_recv_buf() argument 76 msg_type, remaining, 0); in test_recv_buf() 112 uint64_t remaining = -1; in test_recv() local 130 &ctx, &msg_type, &remaining, in test_recv() 147 &ctx, &msg_type, &remaining, in test_recv() 163 &ctx, &msg_type, &remaining, in test_recv() 175 zassert_equal(remaining, 0, "Msg not empty"); in test_recv() 232 uint64_t remaining = -1; in test_recv_2() local 247 &remaining, recv_buf, sizeof(recv_buf)); in test_recv_2() 253 zassert_equal(remaining, 0, "Msg not empty"); in test_recv_2() [all …]
|
/Zephyr-Core-2.7.6/samples/bluetooth/hci_uart/src/ |
D | main.c | 112 static int remaining; in rx_isr() local 132 remaining = hdr_len(type); in rx_isr() 141 &hdr_buf[hdr_len(type) - remaining], in rx_isr() 142 remaining); in rx_isr() 143 remaining -= read; in rx_isr() 144 if (remaining == 0) { in rx_isr() 158 remaining = get_len(hdr_buf, type); in rx_isr() 161 if (remaining > net_buf_tailroom(buf)) { in rx_isr() 173 remaining); in rx_isr() 175 remaining -= read; in rx_isr() [all …]
|
/Zephyr-Core-2.7.6/subsys/debug/coredump/ |
D | coredump_backend_logging.c | 51 size_t remaining = buflen; in coredump_logging_backend_buffer_output() local 56 remaining = 0; in coredump_logging_backend_buffer_output() 59 while (remaining > 0) { in coredump_logging_backend_buffer_output() 73 remaining--; in coredump_logging_backend_buffer_output() 75 if ((log_ptr >= LOG_BUF_SZ) || (remaining == 0)) { in coredump_logging_backend_buffer_output()
|
D | coredump_backend_flash_partition.c | 159 size_t remaining = len; in data_read() local 168 while (remaining > 0) { in data_read() 169 if (remaining < FLASH_BUF_SIZE) { in data_read() 170 copy_sz = remaining; in data_read() 192 remaining -= copy_sz; in data_read() 418 size_t remaining = buflen; in coredump_flash_backend_buffer_output() local 434 while (remaining > 0) { in coredump_flash_backend_buffer_output() 435 if (remaining < FLASH_BUF_SIZE) { in coredump_flash_backend_buffer_output() 436 copy_sz = remaining; in coredump_flash_backend_buffer_output() 453 remaining -= copy_sz; in coredump_flash_backend_buffer_output() [all …]
|
/Zephyr-Core-2.7.6/samples/net/sockets/websocket_client/src/ |
D | main.c | 190 uint64_t remaining = ULLONG_MAX; in recv_data_wso_api() local 198 while (remaining > 0) { in recv_data_wso_api() 202 &remaining, in recv_data_wso_api() 219 if (remaining != 0 || total_read != amount || in recv_data_wso_api() 223 proto, amount, total_read, remaining); in recv_data_wso_api() 234 int remaining; in recv_data_bsd_api() local 237 remaining = amount; in recv_data_bsd_api() 240 while (remaining > 0) { in recv_data_bsd_api() 254 remaining -= ret; in recv_data_bsd_api() 257 if (remaining != 0 || in recv_data_bsd_api() [all …]
|
/Zephyr-Core-2.7.6/tests/net/ieee802154/fragment/src/ |
D | main.c | 192 int remaining = data->len; in compare_data() local 196 if (net_pkt_get_len(pkt) != (NET_IPV6UDPH_LEN + remaining)) { in compare_data() 198 NET_IPV6UDPH_LEN + remaining, in compare_data() 213 while (remaining > 0 && frag) { in compare_data() 215 compare = remaining > bytes ? bytes : remaining; in compare_data() 223 remaining -= compare; in compare_data() 238 int remaining; in create_pkt() local 258 remaining = data->len; in create_pkt() 260 len = NET_UDPH_LEN + remaining; in create_pkt() 271 while (remaining > 0) { in create_pkt() [all …]
|
/Zephyr-Core-2.7.6/samples/net/zperf/src/ |
D | zperf_tcp_uploader.c | 31 int64_t start_time, last_print_time, end_time, remaining; in zperf_tcp_upload() local 93 remaining = duration - k_uptime_ticks(); in zperf_tcp_upload() 94 } while (remaining > 0); in zperf_tcp_upload()
|
D | zperf_udp_uploader.c | 176 int64_t remaining, print_info; in zperf_udp_upload() local 281 remaining = duration - k_uptime_ticks(); in zperf_udp_upload() 288 if (k_us_to_ticks_floor64(delay) > remaining) { in zperf_udp_upload() 289 delay = k_ticks_to_us_ceil64(remaining); in zperf_udp_upload() 295 } while (remaining > 0); in zperf_udp_upload()
|
/Zephyr-Core-2.7.6/subsys/net/lib/mqtt/ |
D | mqtt_rx.c | 151 uint32_t remaining; in mqtt_read_message_chunk() local 162 remaining = length - (buf->end - buf->cur); in mqtt_read_message_chunk() 165 if ((buf->end + remaining > client->rx_buf + client->rx_buf_size) || in mqtt_read_message_chunk() 166 (buf->end + remaining < client->rx_buf)) { in mqtt_read_message_chunk() 172 len = mqtt_transport_read(client, buf->end, remaining, false); in mqtt_read_message_chunk() 186 if (len < remaining) { in mqtt_read_message_chunk()
|
/Zephyr-Core-2.7.6/subsys/net/l2/ppp/ |
D | options.c | 27 int remaining = length, pkt_remaining; in ppp_parse_options() local 33 if (remaining != pkt_remaining) { in ppp_parse_options() 35 remaining, pkt_remaining); in ppp_parse_options() 39 while (remaining > 0) { in ppp_parse_options() 50 "opt_len", ret, remaining); in ppp_parse_options() 70 remaining -= opt_len; in ppp_parse_options() 73 if (remaining < 0) { in ppp_parse_options()
|
/Zephyr-Core-2.7.6/lib/posix/ |
D | timer.c | 94 int32_t remaining, leftover; in timer_gettime() local 103 remaining = k_timer_remaining_get(&timer->ztimer); in timer_gettime() 104 secs = remaining / MSEC_PER_SEC; in timer_gettime() 105 leftover = remaining - (secs * MSEC_PER_SEC); in timer_gettime()
|
/Zephyr-Core-2.7.6/tests/net/6lo/src/ |
D | main.c | 392 int remaining = data->small ? SIZE_OF_SMALL_DATA : SIZE_OF_LARGE_DATA; in compare_pkt() local 396 (NET_IPV6UDPH_LEN + remaining)) { in compare_pkt() 399 NET_IPV6UDPH_LEN + remaining, in compare_pkt() 406 (NET_IPV6ICMPH_LEN + remaining)) { in compare_pkt() 409 NET_IPV6ICMPH_LEN + remaining, in compare_pkt() 416 (NET_IPV6H_LEN + remaining)) { in compare_pkt() 419 NET_IPV6H_LEN + remaining, in compare_pkt() 461 int remaining; in create_pkt() local 496 remaining = data->small ? SIZE_OF_SMALL_DATA : SIZE_OF_LARGE_DATA; in create_pkt() 499 len = NET_UDPH_LEN + remaining; in create_pkt() [all …]
|
/Zephyr-Core-2.7.6/scripts/coredump/gdbstubs/ |
D | gdbstub.py | 137 remaining = length 141 while remaining > 0: 154 remaining -= 1
|
/Zephyr-Core-2.7.6/subsys/net/l2/ethernet/gptp/ |
D | gptp.c | 726 int32_t remaining; in gptp_update_pdelay_req_interval() local 733 remaining = timer_get_remaining_and_stop(&state_pdelay->pdelay_timer); in gptp_update_pdelay_req_interval() 742 new_itv -= (old_itv-remaining); in gptp_update_pdelay_req_interval() 755 int32_t remaining; in gptp_update_sync_interval() local 760 remaining = in gptp_update_sync_interval() 776 time_spent -= remaining; in gptp_update_sync_interval() 803 int32_t remaining; in gptp_update_announce_interval() local 812 remaining = timer_get_remaining_and_stop( in gptp_update_announce_interval() 822 new_itv -= (old_itv-remaining); in gptp_update_announce_interval()
|
/Zephyr-Core-2.7.6/samples/bluetooth/mesh/src/ |
D | main.c | 108 uint32_t remaining; in onoff_status_send() local 113 remaining = k_ticks_to_ms_floor32( in onoff_status_send() 122 if (remaining) { in onoff_status_send() 125 net_buf_simple_add_u8(&buf, model_time_encode(remaining)); in onoff_status_send()
|
/Zephyr-Core-2.7.6/doc/reference/networking/ |
D | net_timeout.rst | 30 the remaining time for these extended-duration timeouts. 42 additional time remaining. If the latter, reschedule the callback. 56 remaining time.
|
/Zephyr-Core-2.7.6/drivers/sensor/max17262/ |
D | Kconfig | 11 time to full/empty and remaining capacity in mAh.
|
/Zephyr-Core-2.7.6/subsys/net/lib/lwm2m/ |
D | lwm2m_rw_plain_text.c | 324 if (opaque->remaining == 0) { in get_opaque() 342 opaque->remaining = in_len; in get_opaque() 344 opaque->remaining = opaque->len; in get_opaque() 349 opaque->remaining = in_len; in get_opaque()
|