Home
last modified time | relevance | path

Searched refs:data_len (Results 1 – 25 of 136) sorted by relevance

123456

/Zephyr-Core-2.7.6/lib/os/
Dcbprintf_nano.c72 int min_width, precision, data_len; in cbvprintf() local
195 data_len = 3; in cbvprintf()
205 data_len = 3; in cbvprintf()
230 data_len = convert_value(d, 10, 0, buf + sizeof(buf)); in cbvprintf()
231 data = buf + sizeof(buf) - data_len; in cbvprintf()
244 data_len = 5; in cbvprintf()
257 data_len = 3; in cbvprintf()
269 data_len = convert_value(x, 16, ALPHA(*fmt), in cbvprintf()
271 data = buf + sizeof(buf) - data_len; in cbvprintf()
277 data_len = strlen(data); in cbvprintf()
[all …]
/Zephyr-Core-2.7.6/tests/subsys/mgmt/ec_host_cmd/src/
Dmain.c77 i < sizeof(host_to_dut->header) + host_to_dut->header.data_len; in update_host_to_dut_checksum()
87 expected_dut_to_host->header.data_len; in update_dut_to_host_checksum()
121 expected_dut_to_host->header.data_len; in expected_tx_size()
137 expected_dut_to_host->header.data_len = 0; in verify_tx_error()
175 host_to_dut->header.data_len = sizeof(host_to_dut->add); in test_add()
183 expected_dut_to_host->header.data_len = in test_add()
196 host_to_dut->header.data_len = sizeof(host_to_dut->add); in test_add_version_2()
204 expected_dut_to_host->header.data_len = in test_add_version_2()
217 host_to_dut->header.data_len = sizeof(host_to_dut->add); in test_add_invalid_version()
231 host_to_dut->header.data_len = sizeof(host_to_dut->add); in test_add_invalid_version_big()
[all …]
/Zephyr-Core-2.7.6/drivers/usb/device/
Dusb_dc_native_posix.c52 uint32_t data_len; member
326 const uint32_t data_len, uint32_t * const ret_bytes) in usb_dc_ep_write() argument
328 LOG_DBG("ep %x len %u", ep, data_len); in usb_dc_ep_write()
347 if (!usbip_send_common(ep, data_len)) { in usb_dc_ep_write()
351 if (usbip_send(ep, data, data_len) != data_len) { in usb_dc_ep_write()
358 memcpy(ctrl->buf, data, data_len); in usb_dc_ep_write()
359 ctrl->buf_len = data_len; in usb_dc_ep_write()
363 *ret_bytes = data_len; in usb_dc_ep_write()
400 *read_bytes = usbip_ctrl.out_ep_ctrl[ep_idx].data_len; in usb_dc_ep_read_wait()
404 to_copy = MIN(usbip_ctrl.out_ep_ctrl[ep_idx].data_len, max_data_len); in usb_dc_ep_read_wait()
[all …]
Dusb_dc_dw.c42 uint32_t data_len; member
338 uint32_t data_len) in usb_dw_tx() argument
371 if (data_len > avail_space) { in usb_dw_tx()
372 data_len = avail_space; in usb_dw_tx()
375 if (data_len != 0U) { in usb_dw_tx()
394 if (data_len > max_xfer_size) { in usb_dw_tx()
396 data_len, max_xfer_size); in usb_dw_tx()
397 data_len = max_xfer_size; in usb_dw_tx()
407 pkt_cnt = (data_len + ep_mps - 1) / ep_mps; in usb_dw_tx()
412 data_len = pkt_cnt * ep_mps; in usb_dw_tx()
[all …]
Dusb_dc_mcux.c439 const uint32_t data_len, uint32_t *const ret_bytes) in usb_dc_ep_write() argument
451 if (data_len > dev_data.eps[ep_abs_idx].ep_mps) { in usb_dc_ep_write()
454 len_to_send = data_len; in usb_dc_ep_write()
479 uint32_t data_len, uint32_t max_data_len) in update_control_stage() argument
495 if ((data_len >= max_data_len) || in update_control_stage()
496 (data_len < dev_data.eps[0].ep_mps)) { in update_control_stage()
507 uint32_t data_len; in usb_dc_ep_read_wait() local
532 data_len = dev_data.eps[ep_abs_idx].transfer_message.length; in usb_dc_ep_read_wait()
533 if (data_len == USB_UNINITIALIZED_VAL_32) { in usb_dc_ep_read_wait()
545 *read_bytes = data_len; in usb_dc_ep_read_wait()
[all …]
/Zephyr-Core-2.7.6/tests/bluetooth/hci_prop_evt/src/
Dmain.c29 uint8_t data_len; member
298 uint8_t data_len = per->data_len; in prop_cb() local
302 prop_cb_data = k_malloc(data_len); in prop_cb()
306 memcpy(prop_cb_data, data, data_len); in prop_cb()
307 prop_cb_data_len = data_len; in prop_cb()
332 static void send_prop_report(uint8_t *data, uint8_t data_len) in send_prop_report() argument
338 per = prop_evt(buf, sizeof(*per) + data_len); in send_prop_report()
339 per->data_len = data_len; in send_prop_report()
340 memcpy(&per->data[0], data, data_len); in send_prop_report()
360 uint8_t data_len = 10; in test_hci_prop_evt_entry() local
[all …]
/Zephyr-Core-2.7.6/samples/bluetooth/peripheral_iso/src/
Dmain.c65 static void iso_print_data(uint8_t *data, size_t data_len) in iso_print_data() argument
72 str_len = bin2hex(data, MIN(max_octets, data_len), data_str, sizeof(data_str)); in iso_print_data()
73 if (data_len > max_octets) { in iso_print_data()
74 if (data_len > (max_octets * 2)) { in iso_print_data()
81 str_len += bin2hex(data + (data_len - MIN(max_octets, data_len - max_octets)), in iso_print_data()
82 MIN(max_octets, data_len - max_octets), in iso_print_data()
/Zephyr-Core-2.7.6/modules/hal_nordic/nrf_802154/serialization/platform/
Dnrf_802154_spinel_response_notifier.c112 size_t data_len) in nrf_802154_spinel_response_notifier_property_notify() argument
120 assert(data_len <= sizeof(notify_buff.buff.data)); in nrf_802154_spinel_response_notifier_property_notify()
122 memcpy(notify_buff.buff.data, p_data, data_len); in nrf_802154_spinel_response_notifier_property_notify()
123 notify_buff.buff.data_len = data_len; in nrf_802154_spinel_response_notifier_property_notify()
Dnrf_802154_spinel_backend_ipc.c137 size_t data_len) in nrf_802154_spinel_encoded_packet_send() argument
140 return spinel_packet_from_thread_send(p_data, data_len); in nrf_802154_spinel_encoded_packet_send()
143 LOG_DBG("Sending %u bytes directly", data_len); in nrf_802154_spinel_encoded_packet_send()
144 int ret = rpmsg_service_send(endpoint_id, p_data, data_len); in nrf_802154_spinel_encoded_packet_send()
/Zephyr-Core-2.7.6/include/drivers/
Dlora.h71 uint8_t *data, uint32_t data_len);
80 uint8_t *data, uint32_t data_len,
138 uint8_t *data, uint32_t data_len) in lora_send() argument
143 return api->send(dev, data, data_len); in lora_send()
161 uint8_t *data, uint32_t data_len, in lora_send_async() argument
167 return api->send_async(dev, data, data_len, async); in lora_send_async()
/Zephyr-Core-2.7.6/samples/net/civetweb/websocket_server/src/
Dwebsocket_server_handlers.c40 char *data, size_t data_len, void *cbdata);
66 char *data, size_t data_len, void *cbdata) in this_data_handler() argument
87 const size_t resp_data_len = BOARD_REPLY_TOAL_LEN + data_len; in this_data_handler()
104 data, data_len); in this_data_handler()
105 memcpy(resp_data + BOARD_REPLY_PREFIX_LEN + data_len, in this_data_handler()
/Zephyr-Core-2.7.6/samples/net/lwm2m_client/src/
Dlwm2m-client.c101 uint8_t *data, uint16_t data_len, in led_on_off_cb() argument
190 uint16_t res_inst_id, size_t *data_len) in temperature_get_buf() argument
212 *data_len = sizeof(v); in temperature_get_buf()
219 uint16_t res_inst_id, size_t *data_len) in firmware_get_buf() argument
221 *data_len = sizeof(firmware_buf); in firmware_get_buf()
227 uint8_t *data, uint16_t data_len, in firmware_block_received_cb() argument
231 data_len, last_block); in firmware_block_received_cb()
239 uint16_t data_len, bool last_block, in timer_on_off_validate_cb() argument
244 if (data_len != 1) { in timer_on_off_validate_cb()
257 uint8_t *data, uint16_t data_len, in timer_digital_state_cb() argument
/Zephyr-Core-2.7.6/subsys/net/ip/
Dtp.h120 size_t data_len, const char *file, int line);
153 struct tp *json_to_tp(void *data, size_t data_len);
154 enum tp_type json_decode_msg(void *data, size_t data_len);
155 struct tp_new *json_to_tp_new(void *data, size_t data_len);
156 void tp_encode(struct tp *tp, void *data, size_t *data_len);
157 void tp_new_to_json(struct tp_new *tp, void *data, size_t *data_len);
Dtp.c430 size_t data_len, const char *file, int line) in _tp_output() argument
432 struct net_pkt *pkt = tp_output_pkt_alloc(af, iface, data_len, in _tp_output()
446 ret = net_pkt_write(pkt, data, data_len); in _tp_output()
462 struct tp *json_to_tp(void *data, size_t data_len) in json_to_tp() argument
468 if (json_obj_parse(data, data_len, tp_descr, ARRAY_SIZE(tp_descr), in json_to_tp()
515 enum tp_type json_decode_msg(void *data, size_t data_len) in json_decode_msg() argument
522 decoded = json_obj_parse(data, data_len, tp_msg_dsc, in json_decode_msg()
534 struct tp_new *json_to_tp_new(void *data, size_t data_len) in json_to_tp_new() argument
541 if (json_obj_parse(data, data_len, tp_new_dsc, ARRAY_SIZE(tp_new_dsc), in json_to_tp_new()
555 void tp_encode(struct tp *tp, void *data, size_t *data_len) in tp_encode() argument
[all …]
/Zephyr-Core-2.7.6/drivers/lora/
Dsx12xx_common.c157 uint32_t data_len) in sx12xx_lora_send() argument
172 ret = sx12xx_lora_send_async(dev, data, data_len, &done); in sx12xx_lora_send()
183 0, data_len, true); in sx12xx_lora_send()
184 LOG_DBG("Expected air time of %d bytes = %dms", data_len, air_time); in sx12xx_lora_send()
203 uint32_t data_len, struct k_poll_signal *async) in sx12xx_lora_send_async() argument
213 Radio.SetMaxPayloadLength(MODEM_LORA, data_len); in sx12xx_lora_send_async()
215 Radio.Send(data, data_len); in sx12xx_lora_send_async()
Dsx12xx_common.h29 uint32_t data_len);
32 uint32_t data_len, struct k_poll_signal *async);
/Zephyr-Core-2.7.6/subsys/mgmt/ec_host_cmd/
Dec_host_cmd_handler.c41 tx_header->data_len = 0; in send_error_response()
98 rx_header->data_len + RX_HEADER_SIZE; in handle_host_cmds_entry()
145 .input_buf_size = rx_header->data_len, in handle_host_cmds_entry()
183 tx_header->data_len = args.output_buf_size; in handle_host_cmds_entry()
186 tx_header->data_len + TX_HEADER_SIZE; in handle_host_cmds_entry()
/Zephyr-Core-2.7.6/tests/subsys/logging/log_api/src/
Dmock_backend.c62 uint32_t data_len) in mock_log_backend_generic_record() argument
80 if (data_len <= sizeof(exp->data)) { in mock_log_backend_generic_record()
81 memcpy(exp->data, data, data_len); in mock_log_backend_generic_record()
83 exp->data_len = data_len; in mock_log_backend_generic_record()
242 zassert_equal(exp->data_len, 0, NULL); in put()
246 hexdump_cmp(msg, exp->data, exp->data_len, in put()
247 exp->data_len > sizeof(exp->data)); in put()
308 zassert_equal(exp->data_len, len, NULL); in process()
309 if (exp->data_len <= sizeof(exp->data)) { in process()
367 zassert_equal(exp->data_len, 0, NULL); in sync_string()
[all …]
/Zephyr-Core-2.7.6/subsys/net/lib/lwm2m/
Dlwm2m_obj_device.c149 uint16_t res_inst_id, size_t *data_len) in current_time_read_cb() argument
152 *data_len = sizeof(time_temp); in current_time_read_cb()
158 uint16_t res_inst_id, size_t *data_len) in current_time_pre_write_cb() argument
160 *data_len = sizeof(time_temp); in current_time_pre_write_cb()
166 uint8_t *data, uint16_t data_len, in current_time_post_write_cb() argument
169 if (data_len == 4U) { in current_time_post_write_cb()
174 LOG_ERR("unknown size %u", data_len); in current_time_post_write_cb()
Dipso_onoff_switch.c92 uint8_t *data, uint16_t data_len, in state_post_write_cb() argument
124 size_t *data_len) in on_time_read_cb() argument
137 *data_len = sizeof(switch_data[i].on_time_sec); in on_time_read_cb()
143 size_t *data_len) in off_time_read_cb() argument
156 *data_len = sizeof(switch_data[i].off_time_sec); in off_time_read_cb()
162 uint8_t *data, uint16_t data_len, in time_post_write_cb() argument
Dipso_light_control.c71 size_t *data_len) in on_time_read_cb() argument
85 *data_len = sizeof(on_time_value[i]); in on_time_read_cb()
94 uint8_t *data, uint16_t data_len, in on_time_post_write_cb() argument
99 if (data_len != 4U) { in on_time_post_write_cb()
100 LOG_ERR("unknown size %u", data_len); in on_time_post_write_cb()
Dlwm2m_obj_firmware.c194 uint16_t res_inst_id, uint8_t *data, uint16_t data_len, in package_write_cb() argument
207 if (data_len == 0U && state == STATE_DOWNLOADED) { in package_write_cb()
218 data, data_len, in package_write_cb()
243 uint16_t res_inst_id, uint8_t *data, uint16_t data_len, in package_uri_write_cb() argument
254 if (data_len > 0) { in package_uri_write_cb()
257 } else if (state == STATE_DOWNLOADED && data_len == 0U) { in package_uri_write_cb()
/Zephyr-Core-2.7.6/samples/net/cloud/tagoio_http_post/src/
Dmain.c26 LOG_DBG("Partial data received (%zd bytes)", rsp->data_len); in response_cb()
28 LOG_DBG("All the data received (%zd bytes)", rsp->data_len); in response_cb()
/Zephyr-Core-2.7.6/include/logging/
Dlog_msg2.h55 uint32_t data_len:12; member
133 .data_len = _dlen, \
189 #define Z_LOG_MSG2_LEN(pkg_len, data_len) \ argument
190 (sizeof(struct log_msg2_hdr) + pkg_len + (data_len))
192 #define Z_LOG_MSG2_ALIGNED_WLEN(pkg_len, data_len) \ argument
193 ceiling_fraction(ROUND_UP(Z_LOG_MSG2_LEN(pkg_len, data_len), \
504 return Z_LOG_MSG2_ALIGNED_WLEN(desc.package_len, desc.data_len); in log_msg2_get_total_wlen()
580 *len = msg->hdr.desc.data_len; in log_msg2_get_data()
/Zephyr-Core-2.7.6/subsys/debug/
Dgdbstub.c240 size_t data_len, pkt_len; in z_gdb_main_loop() local
262 CHECK_INT(data_len); in z_gdb_main_loop()
277 ret = gdb_mem_read(buf, sizeof(buf), addr, data_len); in z_gdb_main_loop()
289 CHECK_INT(data_len); in z_gdb_main_loop()
298 pkt_len = gdb_mem_write(ptr, addr, data_len); in z_gdb_main_loop()

123456