Home
last modified time | relevance | path

Searched refs:frame (Results 1 – 25 of 211) sorted by relevance

123456789

/Zephyr-latest/arch/xtensa/core/
Dthread.c43 _xtensa_irq_stack_frame_a11_t *frame; in init_stack() local
67 const int bsasz = sizeof(*frame) - 16; in init_stack()
69 frame = (void *)(((char *) stack_top) - bsasz); in init_stack()
71 (void)memset(frame, 0, bsasz); in init_stack()
73 frame->bsa.ps = PS_WOE | PS_UM | PS_CALLINC(1); in init_stack()
88 frame->bsa.pc = (uintptr_t)arch_user_mode_enter; in init_stack()
90 frame->bsa.pc = (uintptr_t)z_thread_entry; in init_stack()
93 frame->bsa.pc = (uintptr_t)z_thread_entry; in init_stack()
98 frame->bsa.threadptr = thread->tls; in init_stack()
100 frame->bsa.threadptr = (uintptr_t)((thread->base.user_options & K_USER) ? thread : NULL); in init_stack()
[all …]
Dxtensa_backtrace.c77 bool xtensa_backtrace_get_next_frame(struct xtensa_backtrace_frame_t *frame) in xtensa_backtrace_get_next_frame() argument
82 if (xtensa_is_outside_stack_bounds((uintptr_t)frame->sp, 0, UINT32_MAX)) { in xtensa_backtrace_get_next_frame()
91 char *base_save = (char *)frame->sp; in xtensa_backtrace_get_next_frame()
93 frame->pc = frame->next_pc; in xtensa_backtrace_get_next_frame()
97 frame->next_pc = *((uint32_t *)(base_save - 16)); in xtensa_backtrace_get_next_frame()
98 frame->sp = *((uint32_t *)(base_save - 12)); in xtensa_backtrace_get_next_frame()
103 return (xtensa_stack_ptr_is_sane(frame->sp) && in xtensa_backtrace_get_next_frame()
105 xtensa_cpu_process_stack_pc(frame->pc))); in xtensa_backtrace_get_next_frame()
115 _xtensa_irq_stack_frame_raw_t *frame = (void *)interrupted_stack; in xtensa_backtrace_print() local
123 if (!xtensa_is_frame_pointer_valid(frame)) { in xtensa_backtrace_print()
[all …]
Dvector_handlers.c105 bool xtensa_is_frame_pointer_valid(_xtensa_irq_stack_frame_raw_t *frame) in xtensa_is_frame_pointer_valid() argument
113 if (xtensa_is_outside_stack_bounds((uintptr_t)frame, sizeof(*frame), UINT32_MAX)) { in xtensa_is_frame_pointer_valid()
120 bsa = frame->ptr_to_bsa; in xtensa_is_frame_pointer_valid()
130 if (xtensa_is_outside_stack_bounds((uintptr_t)frame, sizeof(*frame), bsa->ps)) { in xtensa_is_frame_pointer_valid()
140 _xtensa_irq_stack_frame_raw_t *frame = (void *)stack; in xtensa_dump_stack() local
149 if (!xtensa_is_frame_pointer_valid(frame)) { in xtensa_dump_stack()
153 bsa = frame->ptr_to_bsa; in xtensa_dump_stack()
156 num_high_regs = (uint8_t *)bsa - (uint8_t *)frame + sizeof(void *); in xtensa_dump_stack()
171 (void *)frame->blks[reg_blks_remaining].r0, in xtensa_dump_stack()
172 (void *)frame->blks[reg_blks_remaining].r1, in xtensa_dump_stack()
[all …]
Dcoredump.c133 _xtensa_irq_stack_frame_raw_t *frame = (void *)esf; in arch_coredump_info_dump() local
134 _xtensa_irq_bsa_t *bsa = frame->ptr_to_bsa; in arch_coredump_info_dump()
139 num_high_regs = (uint8_t *)bsa - (uint8_t *)frame + sizeof(void *); in arch_coredump_info_dump()
159 arch_blk.r.a4 = frame->blks[regs_blk_remaining].r0; in arch_coredump_info_dump()
160 arch_blk.r.a5 = frame->blks[regs_blk_remaining].r1; in arch_coredump_info_dump()
161 arch_blk.r.a6 = frame->blks[regs_blk_remaining].r2; in arch_coredump_info_dump()
162 arch_blk.r.a7 = frame->blks[regs_blk_remaining].r3; in arch_coredump_info_dump()
167 arch_blk.r.a8 = frame->blks[regs_blk_remaining].r0; in arch_coredump_info_dump()
168 arch_blk.r.a9 = frame->blks[regs_blk_remaining].r1; in arch_coredump_info_dump()
169 arch_blk.r.a10 = frame->blks[regs_blk_remaining].r2; in arch_coredump_info_dump()
[all …]
/Zephyr-latest/samples/subsys/logging/syst/src/
Dmain.c36 struct test_frame frame = { 0 }; in log_msgs() local
73 frame.rtr = 1U; in log_msgs()
74 frame.id_type = 1U; in log_msgs()
75 frame.std_id = 1234U; in log_msgs()
76 frame.dlc = sizeof(data); in log_msgs()
77 memcpy(frame.data, data, sizeof(data)); in log_msgs()
79 LOG_HEXDUMP_ERR((const uint8_t *)&frame, sizeof(frame), "frame"); in log_msgs()
80 LOG_HEXDUMP_WRN((const uint8_t *)&frame, sizeof(frame), "frame"); in log_msgs()
81 LOG_HEXDUMP_INF((const uint8_t *)&frame, sizeof(frame), "frame"); in log_msgs()
82 LOG_HEXDUMP_DBG((const uint8_t *)&frame, sizeof(frame), "frame"); in log_msgs()
/Zephyr-latest/subsys/net/lib/http/
Dhttp_server_http2.c55 struct http2_frame *frame = &client->current_frame; in print_http_frames() local
58 LOG_DBG("%sReceived %s Frame :%s", bold, get_frame_type_name(frame->type), reset); in print_http_frames()
59 LOG_DBG(" %sLength:%s %u", blue, reset, frame->length); in print_http_frames()
60 LOG_DBG(" %sType:%s %u (%s)", blue, reset, frame->type, get_frame_type_name(frame->type)); in print_http_frames()
61 LOG_DBG(" %sFlags:%s %u", blue, reset, frame->flags); in print_http_frames()
62 LOG_DBG(" %sStream Identifier:%s %u", blue, reset, frame->stream_identifier); in print_http_frames()
319 struct http2_frame *frame) in send_http2_404() argument
323 ret = send_headers_frame(client, HTTP_404_NOT_FOUND, frame->stream_identifier, NULL, 0, in send_http2_404()
331 frame->stream_identifier, in send_http2_404()
341 struct http2_frame *frame) in send_http2_409() argument
[all …]
/Zephyr-latest/samples/drivers/can/babbling/src/
Dmain.c49 struct can_frame frame = {0}; in main() local
99 frame.flags |= CAN_FRAME_IDE; in main()
103 frame.flags |= CAN_FRAME_RTR; in main()
107 frame.flags |= CAN_FRAME_FDF; in main()
110 frame.id = CONFIG_SAMPLE_CAN_BABBLING_CAN_ID; in main()
114 (frame.flags & CAN_FRAME_IDE) != 0 ? "extended" : "standard", in main()
115 (frame.flags & CAN_FRAME_IDE) != 0 ? 29 : 11, in main()
116 (frame.flags & CAN_FRAME_IDE) != 0 ? 8 : 3, frame.id, in main()
117 (frame.flags & CAN_FRAME_RTR) != 0 ? 1 : 0, in main()
118 (frame.flags & CAN_FRAME_FDF) != 0 ? 1 : 0); in main()
[all …]
/Zephyr-latest/drivers/can/
Dcan_loopback.c21 struct can_frame frame; member
49 const struct can_frame *frame, in receive_frame() argument
52 struct can_frame frame_tmp = *frame; in receive_frame()
55 frame->dlc, frame->id, in receive_frame()
56 (frame->flags & CAN_FRAME_IDE) != 0 ? "extended" : "standard", in receive_frame()
57 (frame->flags & CAN_FRAME_RTR) != 0 ? ", RTR frame" : ""); in receive_frame()
66 struct can_loopback_frame frame; in tx_thread() local
74 ret = k_msgq_get(&data->tx_msgq, &frame, K_FOREVER); in tx_thread()
79 frame.cb(dev, 0, frame.cb_arg); in tx_thread()
86 if ((frame.frame.flags & CAN_FRAME_RTR) != 0U) { in tx_thread()
[all …]
Dcan_native_linux.c53 static void dispatch_frame(const struct device *dev, struct can_frame *frame) in dispatch_frame() argument
66 if (!can_frame_matches_filter(frame, &data->filters[filter_id].filter)) { in dispatch_frame()
71 tmp_frame = *frame; in dispatch_frame()
85 struct can_frame frame; in rx_thread() local
110 socketcan_to_can_frame(&sframe, &frame); in rx_thread()
113 if ((frame.flags & CAN_FRAME_RTR) != 0U) { in rx_thread()
119 frame.dlc, frame.id, in rx_thread()
120 (frame.flags & CAN_FRAME_IDE) != 0 ? "extended" : "standard", in rx_thread()
121 (frame.flags & CAN_FRAME_RTR) != 0 ? ", RTR frame" : ""); in rx_thread()
123 dispatch_frame(dev, &frame); in rx_thread()
[all …]
Dcan_sja1000.c274 static void can_sja1000_read_frame(const struct device *dev, struct can_frame *frame) in can_sja1000_read_frame() argument
280 memset(frame, 0, sizeof(*frame)); in can_sja1000_read_frame()
285 frame->flags |= CAN_FRAME_RTR; in can_sja1000_read_frame()
288 frame->dlc = CAN_SJA1000_FRAME_INFO_DLC_GET(info); in can_sja1000_read_frame()
289 if (frame->dlc > CAN_MAX_DLC) { in can_sja1000_read_frame()
290 LOG_ERR("RX frame DLC %u exceeds maximum (%d)", frame->dlc, CAN_MAX_DLC); in can_sja1000_read_frame()
295 frame->flags |= CAN_FRAME_IDE; in can_sja1000_read_frame()
305 frame->id = id; in can_sja1000_read_frame()
307 if ((frame->flags & CAN_FRAME_RTR) == 0U) { in can_sja1000_read_frame()
308 for (i = 0; i < frame->dlc; i++) { in can_sja1000_read_frame()
[all …]
Dcan_nxp_s32_canxl.c550 .frame = CANEXCEL_CLASIC_FRAME, in can_nxp_s32_add_rx_filter()
557 data->rx_cbs[alloc].rx_info.frame, mask); in can_nxp_s32_add_rx_filter()
574 const struct can_frame *frame, in can_nxp_s32_send() argument
579 uint8_t data_length = can_dlc_to_bytes(frame->dlc); in can_nxp_s32_send()
586 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_FDF | CAN_FRAME_BRS)) != 0) { in can_nxp_s32_send()
587 LOG_ERR("unsupported CAN frame flags 0x%02x", frame->flags); in can_nxp_s32_send()
591 if ((frame->flags & CAN_FRAME_FDF) != 0 && in can_nxp_s32_send()
597 if ((frame->flags & CAN_FRAME_BRS) != 0 && in can_nxp_s32_send()
603 if ((frame->flags & ~CAN_FRAME_IDE) != 0) { in can_nxp_s32_send()
604 LOG_ERR("unsupported CAN frame flags 0x%02x", frame->flags); in can_nxp_s32_send()
[all …]
Dcan_shell.c24 struct can_frame frame; member
86 const struct can_frame *frame) in can_shell_print_frame() argument
88 uint8_t nbytes = can_dlc_to_bytes(frame->dlc); in can_shell_print_frame()
98 shell_fprintf_normal(sh, "(%05d) ", frame->timestamp); in can_shell_print_frame()
106 (frame->flags & CAN_FRAME_BRS) == 0 ? '-' : 'B', in can_shell_print_frame()
107 (frame->flags & CAN_FRAME_ESI) == 0 ? '-' : 'P'); in can_shell_print_frame()
112 (frame->flags & CAN_FRAME_IDE) != 0 ? 0 : 5, "", in can_shell_print_frame()
113 (frame->flags & CAN_FRAME_IDE) != 0 ? 8 : 3, in can_shell_print_frame()
114 (frame->flags & CAN_FRAME_IDE) != 0 ? in can_shell_print_frame()
115 frame->id & CAN_EXT_ID_MASK : frame->id & CAN_STD_ID_MASK); in can_shell_print_frame()
[all …]
/Zephyr-latest/subsys/modem/
Dmodem_cmux.c129 static void modem_cmux_log_frame(const struct modem_cmux_frame *frame, in modem_cmux_log_frame() argument
132 LOG_DBG("%s ch:%u cr:%u pf:%u type:%s dlen:%u", action, frame->dlci_address, in modem_cmux_log_frame()
133 frame->cr, frame->pf, modem_cmux_frame_type_to_str(frame->type), frame->data_len); in modem_cmux_log_frame()
134 LOG_HEXDUMP_DBG(frame->data, hexdump_len, "data:"); in modem_cmux_log_frame()
137 static void modem_cmux_log_transmit_frame(const struct modem_cmux_frame *frame) in modem_cmux_log_transmit_frame() argument
139 modem_cmux_log_frame(frame, "tx", frame->data_len); in modem_cmux_log_transmit_frame()
142 static void modem_cmux_log_received_frame(const struct modem_cmux_frame *frame) in modem_cmux_log_received_frame() argument
144 modem_cmux_log_frame(frame, "rcvd", frame->data_len); in modem_cmux_log_received_frame()
267 const struct modem_cmux_frame *frame) in modem_cmux_transmit_frame() argument
276 data_len = MIN(space, frame->data_len); in modem_cmux_transmit_frame()
[all …]
Dmodem_ubx.c34 struct ubx_frame *frame = (struct ubx_frame *) ubx_frame; in modem_ubx_create_frame() local
36 frame->preamble_sync_char_1 = UBX_PREAMBLE_SYNC_CHAR_1; in modem_ubx_create_frame()
37 frame->preamble_sync_char_2 = UBX_PREAMBLE_SYNC_CHAR_2; in modem_ubx_create_frame()
38 frame->message_class = msg_cls; in modem_ubx_create_frame()
39 frame->message_id = msg_id; in modem_ubx_create_frame()
40 frame->payload_size_low = payload_size; in modem_ubx_create_frame()
41 frame->payload_size_high = payload_size >> 8; in modem_ubx_create_frame()
43 memcpy(frame->payload_and_checksum, payload, payload_size); in modem_ubx_create_frame()
55 frame->payload_and_checksum[payload_size] = ckA; in modem_ubx_create_frame()
56 frame->payload_and_checksum[payload_size + 1] = ckB; in modem_ubx_create_frame()
[all …]
/Zephyr-latest/samples/drivers/video/capture/
DKconfig9 int "Height of the video frame"
12 Height of the video frame. If set to 0, the default height is used.
15 int "Width of the video frame"
18 Width of the video frame. If set to 0, the default width is used.
21 string "Pixel format of the video frame"
23 Pixel format of the video frame. If not set, the default pixel format is used.
26 bool "Mirror the video frame horizontally"
28 If set, mirror the video frame horizontally
/Zephyr-latest/tests/drivers/can/api/src/
Dclassic.c27 const struct can_frame *frame = user_data; in tx_std_callback_1() local
32 zassert_equal(frame->id, TEST_CAN_STD_ID_1, "ID does not match"); in tx_std_callback_1()
42 const struct can_frame *frame = user_data; in tx_std_callback_2() local
47 zassert_equal(frame->id, TEST_CAN_STD_ID_2, "ID does not match"); in tx_std_callback_2()
57 const struct can_frame *frame = user_data; in tx_ext_callback_1() local
62 zassert_equal(frame->id, TEST_CAN_EXT_ID_1, "ID does not match"); in tx_ext_callback_1()
72 const struct can_frame *frame = user_data; in tx_ext_callback_2() local
77 zassert_equal(frame->id, TEST_CAN_EXT_ID_2, "ID does not match"); in tx_ext_callback_2()
85 static void rx_std_callback_1(const struct device *dev, struct can_frame *frame, in rx_std_callback_1() argument
90 assert_frame_equal(frame, &test_std_frame_1, 0); in rx_std_callback_1()
[all …]
Dcanfd.c22 const struct can_frame *frame = user_data; in tx_std_callback_1() local
27 zassert_equal(frame->id, TEST_CAN_STD_ID_1, "ID does not match"); in tx_std_callback_1()
32 const struct can_frame *frame = user_data; in tx_std_callback_2() local
37 zassert_equal(frame->id, TEST_CAN_STD_ID_2, "ID does not match"); in tx_std_callback_2()
40 static void rx_std_callback_1(const struct device *dev, struct can_frame *frame, void *user_data) in rx_std_callback_1() argument
44 assert_frame_equal(frame, &test_std_frame_1, 0); in rx_std_callback_1()
51 static void rx_std_callback_2(const struct device *dev, struct can_frame *frame, void *user_data) in rx_std_callback_2() argument
55 assert_frame_equal(frame, &test_std_frame_2, 0); in rx_std_callback_2()
62 static void rx_std_callback_fd_1(const struct device *dev, struct can_frame *frame, in rx_std_callback_fd_1() argument
67 assert_frame_equal(frame, &test_std_fdf_frame_1, 0); in rx_std_callback_fd_1()
[all …]
/Zephyr-latest/subsys/canbus/isotp/
Disotp.c44 static inline void prepare_frame(struct can_frame *frame, struct isotp_msg_id *addr) in prepare_frame() argument
46 frame->id = addr->ext_id; in prepare_frame()
47 frame->flags = ((addr->flags & ISOTP_MSG_IDE) != 0 ? CAN_FRAME_IDE : 0) | in prepare_frame()
137 struct can_frame frame; in receive_send_fc() local
138 uint8_t *data = frame.data; in receive_send_fc()
144 prepare_frame(&frame, &rctx->tx_addr); in receive_send_fc()
153 payload_len = data - frame.data; in receive_send_fc()
157 memset(&frame.data[payload_len], ISOTP_PAD_BYTE, in receive_send_fc()
159 frame.dlc = can_bytes_to_dlc(ISOTP_PADDED_FRAME_DL_MIN); in receive_send_fc()
161 frame.dlc = can_bytes_to_dlc(payload_len); in receive_send_fc()
[all …]
/Zephyr-latest/modules/canopennode/
DCO_driver.c88 static void canopen_rx_callback(const struct device *dev, struct can_frame *frame, void *user_data) in canopen_rx_callback() argument
106 if (((frame->id ^ buffer->ident) & buffer->mask) == 0U) { in canopen_rx_callback()
108 if (buffer->rtr && ((frame->flags & CAN_FRAME_RTR) == 0U)) { in canopen_rx_callback()
112 rxMsg.ident = frame->id; in canopen_rx_callback()
113 rxMsg.DLC = frame->dlc; in canopen_rx_callback()
114 memcpy(rxMsg.data, frame->data, frame->dlc); in canopen_rx_callback()
147 struct can_frame frame; in canopen_tx_retry() local
152 memset(&frame, 0, sizeof(frame)); in canopen_tx_retry()
159 frame.id = buffer->ident; in canopen_tx_retry()
160 frame.dlc = buffer->DLC; in canopen_tx_retry()
[all …]
/Zephyr-latest/drivers/sensor/tsic_xx6/
Dtsic_xx6.c61 ATOMIC_DEFINE(frame, FRAME_FLAGS);
121 (void)atomic_set(data->frame, data->buf); in tsic_xx6_pwm_callback()
139 uint32_t frame) in tsic_xx6_get_data_bits() argument
143 uint8_t data_msb = FIELD_GET(GENMASK(frame_data_bit_high, FRAME_DATA_BIT_8), frame); in tsic_xx6_get_data_bits()
144 uint8_t data_lsb = FIELD_GET(GENMASK(FRAME_DATA_BIT_7, FRAME_DATA_BIT_0), frame); in tsic_xx6_get_data_bits()
145 bool parity_msb = FIELD_GET(BIT(FRAME_PARITIY_BIT_MSB), frame); in tsic_xx6_get_data_bits()
146 bool parity_lsb = BIT(FRAME_PARITIY_BIT_LSB) & frame; in tsic_xx6_get_data_bits()
177 uint32_t frame; in tsic_xx6_sample_fetch() local
185 frame = atomic_and(data->frame, ~BIT(FRAME_READY_BIT)); in tsic_xx6_sample_fetch()
187 if (FIELD_GET(BIT(FRAME_READY_BIT), frame) == 0) { in tsic_xx6_sample_fetch()
[all …]
/Zephyr-latest/samples/drivers/can/counter/src/
Dmain.c70 struct can_frame frame; in rx_thread() local
77 k_msgq_get(&counter_msgq, &frame, K_FOREVER); in rx_thread()
79 if (IS_ENABLED(CONFIG_CAN_ACCEPT_RTR) && (frame.flags & CAN_FRAME_RTR) != 0U) { in rx_thread()
83 if (frame.dlc != 2U) { in rx_thread()
84 printf("Wrong data length: %u\n", frame.dlc); in rx_thread()
89 sys_be16_to_cpu(UNALIGNED_GET((uint16_t *)&frame.data))); in rx_thread()
95 struct can_frame frame; in change_led_work_handler() local
98 while (k_msgq_get(&change_led_msgq, &frame, K_NO_WAIT) == 0) { in change_led_work_handler()
99 if (IS_ENABLED(CONFIG_CAN_ACCEPT_RTR) && (frame.flags & CAN_FRAME_RTR) != 0U) { in change_led_work_handler()
104 printf("LED %s\n", frame.data[0] == SET_LED ? "ON" : "OFF"); in change_led_work_handler()
[all …]
/Zephyr-latest/subsys/net/l2/ieee802154/
Dieee802154_security.c102 static void prepare_cipher_aead_pkt(uint8_t *frame, uint8_t level, uint8_t ll_hdr_len, in prepare_cipher_aead_pkt() argument
115 pkt->in_buf = is_encrypted && payload_len ? frame + ll_hdr_len : NULL; in prepare_cipher_aead_pkt()
122 pkt->out_buf = frame + out_buf_offset; in prepare_cipher_aead_pkt()
125 apkt->ad = is_authenticated ? frame : NULL; in prepare_cipher_aead_pkt()
127 apkt->tag = is_authenticated ? frame + ll_hdr_len + payload_len : NULL; in prepare_cipher_aead_pkt()
131 bool ieee802154_decrypt_auth(struct ieee802154_security_ctx *sec_ctx, uint8_t *frame, in ieee802154_decrypt_auth() argument
152 prepare_cipher_aead_pkt(frame, level, ll_hdr_len, payload_len, authtag_len, &apkt, &pkt); in ieee802154_decrypt_auth()
156 NET_ERR("Cannot decrypt/auth (%i): %p %u/%u - fc %u", ret, frame, ll_hdr_len, in ieee802154_decrypt_auth()
164 bool ieee802154_encrypt_auth(struct ieee802154_security_ctx *sec_ctx, uint8_t *frame, in ieee802154_encrypt_auth() argument
195 prepare_cipher_aead_pkt(frame, level, ll_hdr_len, payload_len, authtag_len, &apkt, &pkt); in ieee802154_encrypt_auth()
[all …]
/Zephyr-latest/doc/services/device_mgmt/
Dsmp_transport.rst38 prefixing each frame with two byte marker and terminating it with newline.
39 Currently MCUmgr imposes a 127 byte limit on frame size, although there
52 frame consists of two byte start marker, body and terminating newline
56 and initial-final; each frame type differs by start marker and/or body
62 Initial frame requires to be followed by optional sequence of partial
63 frames and finally by partial-final frame.
68 Body of initial frame is preceded by two byte total packet length,
71 initial frame is N - 2.
75 frame, here called initial-final; for the description of initial-final
76 frame look below.
[all …]
/Zephyr-latest/drivers/display/
DKconfig.renesas_ra21 RENESAS RA GLCDC frame buffer number config:
22 - 0 frame buffer maintained by application, must write with full screen pixels.
23 - 1 single frame buffer in RENESAS RA GLCDC driver.
24 - 2 double frame buffer in RENESAS RA GLCDC driver.
/Zephyr-latest/samples/drivers/led/led_strip/boards/
Dnucleo_g071rb.overlay16 frame-format = <32768>; /* SPI_FRAME_FORMAT_TI */
20 spi-one-frame = <0x70>;
21 spi-zero-frame = <0x40>;

123456789