Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 25 of 31) sorted by relevance

12

/Zephyr-latest/subsys/net/ip/
D6lo.c843 static inline uint8_t *uncompress_tfl(uint16_t iphc, uint8_t *cursor, in uncompress_tfl() argument
853 tcl = *cursor; in uncompress_tfl()
854 cursor++; in uncompress_tfl()
858 ipv6->tcflow = ((tcl & 0x0F) << 4) | (*cursor & 0x0F); in uncompress_tfl()
859 cursor++; in uncompress_tfl()
861 memmove(&ipv6->flow, cursor, sizeof(ipv6->flow)); in uncompress_tfl()
862 cursor += sizeof(ipv6->flow); in uncompress_tfl()
867 tcl = ((*cursor & 0xF0) >> 6); in uncompress_tfl()
868 ipv6->tcflow = ((tcl & 0x0F) << 4) | (*cursor & 0x0F); in uncompress_tfl()
869 cursor++; in uncompress_tfl()
[all …]
Dnet_pkt.c1751 pkt->cursor.buf = pkt->buffer;
1752 if (pkt->cursor.buf) {
1753 pkt->cursor.pos = pkt->cursor.buf->data;
1755 pkt->cursor.pos = NULL;
1761 struct net_pkt_cursor *cursor = &pkt->cursor; local
1763 cursor->buf = cursor->buf->frags;
1764 while (cursor->buf) {
1766 write ? net_buf_max_len(cursor->buf) : cursor->buf->len;
1769 cursor->buf = cursor->buf->frags;
1775 if (cursor->buf) {
[all …]
DKconfig.debug37 bool "Reduce r/w fragility by resetting the packet cursor when freed"
41 reset the pkt cursor when it's freed, so any subsequent r/w operations
Dutils.c602 struct net_pkt_cursor *cur = &pkt->cursor; in pkt_calc_chksum()
672 sum = calc_chksum(sum, pkt->cursor.pos, len); in net_calc_chksum()
/Zephyr-latest/samples/drivers/led/led_strip/src/
Dmain.c58 for (size_t cursor = 0; cursor < ARRAY_SIZE(pixels); cursor++) { in main() local
60 memcpy(&pixels[cursor], &colors[color], sizeof(struct led_rgb)); in main()
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_pull_context.c99 char *cursor; in transfer_request() local
129 cursor = COAP2HTTP_PROXY_URI_PATH; in transfer_request()
131 cursor = COAP2COAP_PROXY_URI_PATH; in transfer_request()
138 ret = coap_packet_append_option(&msg->cpkt, COAP_OPTION_URI_PATH, cursor, strlen(cursor)); in transfer_request()
140 LOG_ERR("Error adding URI_PATH '%s'", cursor); in transfer_request()
155 cursor = context.uri + off; in transfer_request()
158 while (len > 0 && (next_slash = strchr(cursor, '/')) != NULL) { in transfer_request()
159 if (next_slash != cursor) { in transfer_request()
160 ret = coap_packet_append_option(&msg->cpkt, COAP_OPTION_URI_PATH, cursor, in transfer_request()
161 next_slash - cursor); in transfer_request()
[all …]
/Zephyr-latest/samples/net/sockets/http_server/src/
Dmain.c179 static size_t cursor; in led_handler() local
184 cursor = 0; in led_handler()
188 if (request_ctx->data_len + cursor > sizeof(post_payload_buf)) { in led_handler()
189 cursor = 0; in led_handler()
197 memcpy(post_payload_buf + cursor, request_ctx->data, request_ctx->data_len); in led_handler()
198 cursor += request_ctx->data_len; in led_handler()
201 parse_led_post(post_payload_buf, cursor); in led_handler()
202 cursor = 0; in led_handler()
/Zephyr-latest/doc/_static/css/
Dgcs.css40 .gsc-results .gsc-cursor-box .gsc-cursor-page,
41 .gsc-results .gsc-cursor-box .gsc-cursor-current-page {
87 cursor: pointer;
/Zephyr-latest/subsys/net/l2/ppp/
Doptions.c30 struct net_pkt_cursor cursor; in ppp_parse_options() local
56 net_pkt_cursor_backup(pkt, &cursor); in ppp_parse_options()
67 net_pkt_cursor_restore(pkt, &cursor); in ppp_parse_options()
180 struct net_pkt_cursor cursor; in ppp_config_info_req() local
183 net_pkt_cursor_backup(pkt, &cursor); in ppp_config_info_req()
196 net_pkt_cursor_restore(pkt, &cursor); in ppp_config_info_req()
209 net_pkt_cursor_restore(pkt, &cursor); in ppp_config_info_req()
/Zephyr-latest/subsys/net/lib/http/
Dhttp_server_http2.c615 char *ptr = client->cursor; in dynamic_post_put_req_v2()
637 client->cursor += data_len; in dynamic_post_put_req_v2()
788 client->cursor += sizeof(HTTP2_PREFACE) - 1; in enter_http2_request()
872 client->header_capture_ctx.cursor = 0; in enter_http_frame_headers_state()
931 ret = parse_http_frame_header(client, client->cursor, client->data_len); in handle_http_frame_header()
936 client->cursor += HTTP2_FRAME_HEADER_SIZE; in handle_http_frame_header()
1083 client->cursor += client->data_len; in handle_http1_to_http2_upgrade()
1101 frame->padding_len = *client->cursor; in parse_http_frame_padded_field()
1102 client->cursor++; in parse_http_frame_padded_field()
1135 client->cursor += HTTP2_HEADERS_FRAME_PRIORITY_LEN; in parse_http_frame_priority_field()
[all …]
Dhttp_server_http1.c305 char *ptr = client->cursor; in dynamic_post_put_req()
563 char *dest = &ctx->buffer[ctx->cursor]; in check_user_request_headers()
564 size_t remaining = sizeof(ctx->buffer) - ctx->cursor; in check_user_request_headers()
588 ctx->cursor += (header_len + 1); in check_user_request_headers()
648 remaining = sizeof(ctx->buffer) - ctx->cursor; in populate_user_request_header()
657 dest = &ctx->buffer[ctx->cursor]; in populate_user_request_header()
659 ctx->cursor += (value_len + 1); in populate_user_request_header()
813 client->cursor, client->data_len); in handle_http1_request()
826 client->cursor += parsed; in handle_http1_request()
847 client->cursor += frag_headers_len; in handle_http1_request()
[all …]
Dhttp_server_core.c429 client->header_capture_ctx.cursor = 0; in handle_http_preface()
433 if (strncmp(client->cursor, HTTP2_PREFACE, sizeof(HTTP2_PREFACE) - 1) != 0) { in handle_http_preface()
462 client->cursor = client->buffer; in handle_http_request()
517 memmove(client->buffer, client->cursor, client->data_len); in handle_http_request()
/Zephyr-latest/tests/net/lib/mdns_responder/src/
Dmain.c368 res = net_buf_data_match(pkt->cursor.buf, pkt->cursor.pos - pkt->cursor.buf->data, in check_service_type_enum_resp()
379 res = net_buf_data_match(pkt->cursor.buf, pkt->cursor.pos - pkt->cursor.buf->data, payload, in check_service_type_enum_resp()
/Zephyr-latest/doc/connectivity/networking/api/
Dnet_pkt.rst182 Data movement into the buffer is made through a cursor maintained
184 cursor. Note as well that read or write functions are strict on their
198 net_pkt is on write mode, and its cursor points to the beginning of
228 point, it will fail because there is nothing to read at the cursor
230 to read what has been already written by resetting the cursor of the
238 This will reset the cursor of the pkt to the beginning of the buffer
239 and then let you read the actual 15 bytes present. The cursor is then
253 and its cursor reset:
276 If you want to place the cursor at a known position use the function
334 At this point, the cursor of the net_pkt points at the beginning of
[all …]
/Zephyr-latest/drivers/auxdisplay/
Dauxdisplay_jhd1313.c67 bool cursor; member
156 if (data->cursor) { in auxdisplay_jhd1313_update_display_state()
177 data->cursor = enabled; in auxdisplay_jhd1313_cursor_set_enabled()
367 .cursor = false, \
Dauxdisplay_pt6314.c57 bool cursor; member
96 inst = (data->power ? PT6314_DO_DISPLAY_ON : 0) | (data->cursor ? PT6314_DO_CURSOR_ON : 0) | in auxdisplay_pt6314_display_on_off()
147 data->cursor = enable; in auxdisplay_pt6314_cursor_set_enabled()
322 .cursor = false, \
Dauxdisplay_serlcd.c73 bool cursor; member
131 if (data->cursor) { in auxdisplay_serlcd_send_display_state()
163 data->cursor = enable; in auxdisplay_serlcd_cursor_set_enabled()
/Zephyr-latest/include/zephyr/net/http/
Dserver.h380 size_t cursor; member
406 unsigned char *cursor; member
/Zephyr-latest/tests/net/dhcpv4/server/src/
Dmain.c410 struct net_pkt_cursor cursor; in verify_no_option() local
412 net_pkt_cursor_backup(pkt, &cursor); in verify_no_option()
432 net_pkt_cursor_restore(pkt, &cursor); in verify_no_option()
438 struct net_pkt_cursor cursor; in verify_option() local
440 net_pkt_cursor_backup(pkt, &cursor); in verify_option()
463 net_pkt_cursor_restore(pkt, &cursor); in verify_option()
/Zephyr-latest/tests/net/net_pkt/src/
Dmain.c95 if (!pkt || !pkt->cursor.buf || !pkt->cursor.pos) { in pkt_print_cursor()
99 pkt->cursor.pos - pkt->cursor.buf->data, in pkt_print_cursor()
100 pkt->cursor.pos, pkt->cursor.buf, in pkt_print_cursor()
101 pkt->cursor.buf->data); in pkt_print_cursor()
/Zephyr-latest/doc/services/shell/
Dindex.rst27 * Support for ANSI escape codes: ``VT100`` and ``ESC[n~`` for cursor control
625 - Moves the cursor to the beginning of the line.
627 - Moves the cursor backward one character.
632 - Deletes the character under the cursor.
634 - Moves the cursor to the end of the line.
636 - Moves the cursor forward one character.
638 - Deletes from the cursor to the end of the line.
649 - Removes the word or part of the word to the left of the cursor. Words
652 - Moves the cursor backward one word.
654 - Moves the cursor forward one word.
[all …]
/Zephyr-latest/include/zephyr/net/
Dnet_pkt.h108 struct net_pkt_cursor cursor; member
2171 backup->buf = pkt->cursor.buf; in net_pkt_cursor_backup()
2172 backup->pos = pkt->cursor.pos; in net_pkt_cursor_backup()
2184 pkt->cursor.buf = backup->buf; in net_pkt_cursor_restore()
2185 pkt->cursor.pos = backup->pos; in net_pkt_cursor_restore()
2197 return pkt->cursor.pos; in net_pkt_cursor_get_pos()
/Zephyr-latest/doc/_doxygen/
Ddoxygen-awesome-sidebar-only.css82 cursor: default;
/Zephyr-latest/tests/net/lib/http_server/core/src/
Dmain.c2251 ctx_client1.cursor = ctx_client1.buffer; in ZTEST()
2254 ctx_client2.cursor = ctx_client2.buffer; in ZTEST()
2258 int parser1 = parse_http_frame_header(&ctx_client1, ctx_client1.cursor, in ZTEST()
2273 int parser2 = parse_http_frame_header(&ctx_client2, ctx_client2.cursor, in ZTEST()
/Zephyr-latest/subsys/shell/
DKconfig174 Enables VT100 commands in shell (e.g. cursor position, clear screen etc.).

12