Home
last modified time | relevance | path

Searched refs:data_ptr (Results 1 – 25 of 37) sorted by relevance

12

/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_registry.c486 res_inst->data_ptr = buffer_ptr; in lwm2m_set_res_buf()
543 void *data_ptr = NULL; in lwm2m_engine_set() local
579 data_ptr = res_inst->data_ptr; in lwm2m_engine_set()
584 data_ptr = res->pre_write_cb(obj_inst->obj_inst_id, res->res_id, in lwm2m_engine_set()
588 if (!data_ptr) { in lwm2m_engine_set()
603 if (memcmp(data_ptr, value, len) != 0 || res_inst->data_len != len) { in lwm2m_engine_set()
622 memcpy((uint8_t *)data_ptr, value, len); in lwm2m_engine_set()
628 strncpy(data_ptr, value, len - 1); in lwm2m_engine_set()
629 ((char *)data_ptr)[len - 1] = '\0'; in lwm2m_engine_set()
631 ((char *)data_ptr)[0] = '\0'; in lwm2m_engine_set()
[all …]
Dlwm2m_message_handling.c992 struct lwm2m_message *msg, void *data_ptr, size_t data_len) in lwm2m_write_handler_opaque() argument
1020 write_buf = data_ptr; in lwm2m_write_handler_opaque()
1042 memcpy(data_ptr, write_buf, len); in lwm2m_write_handler_opaque()
1048 obj_inst->obj_inst_id, res->res_id, res_inst->res_inst_id, data_ptr, in lwm2m_write_handler_opaque()
1071 void *data_ptr = NULL; in lwm2m_write_handler() local
1093 data_ptr = res_inst->data_ptr; in lwm2m_write_handler()
1098 data_ptr = res->pre_write_cb(obj_inst->obj_inst_id, res->res_id, in lwm2m_write_handler()
1121 data_ptr = (uint8_t *)data_ptr + offset; in lwm2m_write_handler()
1135 write_buf = data_ptr; in lwm2m_write_handler()
1139 if (data_ptr && data_len > 0) { in lwm2m_write_handler()
[all …]
Dlwm2m_shell.c732 if (ri->data_ptr && ri->data_len > 0 && in print_object_instance()
751 shell_print(sh, "%s : %s", path, (char *)ri->data_ptr); in print_object_instance()
756 shell_print(sh, "%s : %u", path, *(uint8_t *)ri->data_ptr); in print_object_instance()
760 shell_print(sh, "%s : %u", path, *(uint16_t *)ri->data_ptr); in print_object_instance()
764 shell_print(sh, "%s : %u", path, *(uint32_t *)ri->data_ptr); in print_object_instance()
769 *(int64_t *)ri->data_ptr); in print_object_instance()
772 shell_print(sh, "%s : %lf", path, *(double *)ri->data_ptr); in print_object_instance()
Dlwm2m_rw_senml_json.c1219 uint8_t *data_ptr; in get_opaque() local
1231 data_ptr = val_opaque->start; in get_opaque()
1234 base64_url_safe_decode(data_ptr, val_opaque->length); in get_opaque()
1240 ret = store_padded_modulo(&padded_length, padded_buf, data_ptr + original_size, in get_opaque()
1246 if (base64_decode(data_ptr, val_opaque->length, &base64_length, data_ptr, in get_opaque()
1259 memcpy(data_ptr + val_opaque->length, padded_buf, buffer_base64_length); in get_opaque()
1281 memcpy(value, data_ptr, in_len); in get_opaque()
1473 char *data_ptr; in do_write_op_senml_json() local
1485 data_ptr = (char *)coap_packet_get_payload(msg->in.in_cpkt, &in_len); in do_write_op_senml_json()
1488 if (json_arr_separate_object_parse_init(&json_object, data_ptr, in_len)) { in do_write_op_senml_json()
[all …]
/Zephyr-latest/tests/drivers/sensor/ina237/src/
Dina237_emul.h13 int ina237_mock_set_register(void *data_ptr, int reg, uint32_t value);
14 int ina237_mock_get_register(void *data_ptr, int reg, uint32_t *value_ptr);
Dina237_emul.c47 int ina237_mock_set_register(void *data_ptr, int reg, uint32_t value) in ina237_mock_set_register() argument
49 struct ina237_reg *reg_ptr = get_register(data_ptr, reg); in ina237_mock_set_register()
59 int ina237_mock_get_register(void *data_ptr, int reg, uint32_t *value_ptr) in ina237_mock_get_register() argument
61 struct ina237_reg *reg_ptr = get_register(data_ptr, reg); in ina237_mock_get_register()
/Zephyr-latest/tests/drivers/sensor/ina230/src/
Dina230_emul.h14 int ina230_mock_set_register(void *data_ptr, int reg, uint32_t value);
15 int ina230_mock_get_register(void *data_ptr, int reg, uint32_t *value_ptr);
Dina230_emul.c52 int ina230_mock_set_register(void *data_ptr, int reg, uint32_t value) in ina230_mock_set_register() argument
54 struct ina230_reg *reg_ptr = get_register(data_ptr, reg); in ina230_mock_set_register()
70 int ina230_mock_get_register(void *data_ptr, int reg, uint32_t *value_ptr) in ina230_mock_get_register() argument
72 struct ina230_reg *reg_ptr = get_register(data_ptr, reg); in ina230_mock_get_register()
/Zephyr-latest/tests/subsys/canbus/isotp/conformance/src/
Dmain.c234 const uint8_t *data_ptr = data; in receive_test_data() local
244 ret = check_data(data_buf, data_ptr, recv_len); in receive_test_data()
246 data_ptr += recv_len; in receive_test_data()
368 const uint8_t *data_ptr = data; in prepare_cf_frames() local
374 memcpy(&frames[i].data[1], data_ptr, DATA_SIZE_CF); in prepare_cf_frames()
392 data_ptr += DATA_SIZE_CF; in prepare_cf_frames()
560 const uint8_t *data_ptr = random_data; in ZTEST() local
566 memcpy(&ff_frame.data[2], data_ptr, DATA_SIZE_FF); in ZTEST()
568 data_ptr += DATA_SIZE_FF; in ZTEST()
573 prepare_cf_frames(des_frames, ARRAY_SIZE(des_frames), data_ptr, in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/canbus/isotp/implementation/src/
Dmain.c135 const uint8_t *data_ptr = data; in receive_test_data_net() local
146 data_ptr = check_frag(buf, data_ptr); in receive_test_data_net()
180 const uint8_t *data_ptr = data; in receive_test_data() local
189 check_data(data_buf, data_ptr, ret); in receive_test_data()
190 data_ptr += ret; in receive_test_data()
275 const uint8_t *data_ptr; in ZTEST() local
283 data_ptr = random_data; in ZTEST()
292 data_ptr = check_frag(frag, data_ptr); in ZTEST()
/Zephyr-latest/drivers/espi/
Despi_taf_npcx.c79 struct espi_taf_pckt *data_ptr; in espi_taf_get_pckt() local
81 data_ptr = (struct espi_taf_pckt *)event.evt_data; in espi_taf_get_pckt()
83 pckt->taf_type = data_ptr->type; in espi_taf_get_pckt()
84 pckt->length = data_ptr->len; in espi_taf_get_pckt()
85 pckt->taf_tag = data_ptr->tag; in espi_taf_get_pckt()
86 pckt->address = data_ptr->addr; in espi_taf_get_pckt()
87 if ((data_ptr->type == NPCX_ESPI_TAF_REQ_WRITE) || in espi_taf_get_pckt()
89 (data_ptr->type == NPCX_ESPI_TAF_REQ_RPMC_OP1))) { in espi_taf_get_pckt()
90 memcpy(pckt->src, data_ptr->src, sizeof(pckt->src)); in espi_taf_get_pckt()
396 uint8_t *data_ptr = (uint8_t *)(taf_data_ptr->data); in espi_taf_npcx_flash_write() local
[all …]
/Zephyr-latest/subsys/modbus/
Dmodbus_client.c510 uint8_t *data_ptr; in modbus_write_coils() local
536 data_ptr = &ctx->tx_adu.data[5]; in modbus_write_coils()
538 memcpy(data_ptr, coil_tbl, num_bytes); in modbus_write_coils()
554 uint8_t *data_ptr; in modbus_write_holding_regs() local
580 data_ptr = &ctx->tx_adu.data[5]; in modbus_write_holding_regs()
583 sys_put_be16(reg_buf[i], data_ptr); in modbus_write_holding_regs()
584 data_ptr += sizeof(uint16_t); in modbus_write_holding_regs()
602 uint8_t *data_ptr; in modbus_write_holding_regs_fp() local
629 data_ptr = &ctx->tx_adu.data[5]; in modbus_write_holding_regs_fp()
635 sys_put_be32(reg_val, data_ptr); in modbus_write_holding_regs_fp()
[all …]
Dmodbus_serial.c248 uint8_t *data_ptr; in modbus_rtu_rx_adu() local
259 data_ptr = &cfg->uart_buf[2]; in modbus_rtu_rx_adu()
265 memcpy(ctx->rx_adu.data, data_ptr, ctx->rx_adu.length); in modbus_rtu_rx_adu()
284 uint8_t *data_ptr; in rtu_tx_adu() local
289 data_ptr = &cfg->uart_buf[2]; in rtu_tx_adu()
291 memcpy(data_ptr, ctx->tx_adu.data, ctx->tx_adu.length); in rtu_tx_adu()
/Zephyr-latest/drivers/flash/
Dflash_ifx_cat1.c81 const uint8_t *data_ptr = (const uint8_t *)data; in ifx_cat1_flash_write() local
97 (const uint32_t *)data_ptr); in ifx_cat1_flash_write()
104 data_ptr += PAGE_LEN; in ifx_cat1_flash_write()
/Zephyr-latest/include/zephyr/drivers/
Demul.h142 #define EMUL_DT_DEFINE(node_id, init_fn, data_ptr, cfg_ptr, bus_api, _backend_api) \ argument
153 .data = (data_ptr), \
Dsmbus.h505 data_ptr, cfg_ptr, level, prio, \ argument
514 data_ptr, cfg_ptr, level, prio, \
531 data_ptr, cfg_ptr, level, prio, \ argument
534 data_ptr, cfg_ptr, level, prio, \
/Zephyr-latest/include/zephyr/net/
Dtftp.h81 uint8_t *data_ptr; /**< Pointer to binary data. */ member
Dlwm2m.h875 int lwm2m_set_opaque(const struct lwm2m_obj_path *path, const char *data_ptr, uint16_t data_len);
885 int lwm2m_set_string(const struct lwm2m_obj_path *path, const char *data_ptr);
/Zephyr-latest/samples/net/tftp_client/src/
Dtftp-client.c24 LOG_HEXDUMP_INF(evt->param.data.data_ptr, in tftp_event_callback()
/Zephyr-latest/include/zephyr/sensing/
Dsensing_sensor.h371 data_ptr, cfg_ptr, level, prio, \ argument
374 data_ptr, cfg_ptr, level, prio, \
/Zephyr-latest/drivers/bluetooth/hci/
Dhci_spi_st.c561 uint8_t *data_ptr; in bt_spi_send() local
591 data_ptr = buf->data; in bt_spi_send()
608 ret = bt_spi_transceive(data_ptr, size, rx_first, 1); in bt_spi_send()
611 data_ptr += size; in bt_spi_send()
/Zephyr-latest/drivers/ethernet/
Deth_w5500.c248 uint8_t *data_ptr; in w5500_rx() local
251 data_ptr = pkt_buf->data; in w5500_rx()
261 w5500_readbuf(dev, reader, data_ptr, frame_len); in w5500_rx()
/Zephyr-latest/tests/bsim/bluetooth/host/misc/conn_stress/peripheral/src/
Dmain.c222 const char *data_ptr = (const char *)data + NOTIFICATION_DATA_PREFIX_LEN; in rx_notification() local
237 received_counter = strtoul(data_ptr, NULL, 0); in rx_notification()
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_cap.c343 const uint8_t *data_ptr; in btp_cap_unicast_audio_update() local
355 data_ptr = cp->update_data; in btp_cap_unicast_audio_update()
361 (struct btp_cap_unicast_audio_update_data *)data_ptr; in btp_cap_unicast_audio_update()
388 data_ptr = ((uint8_t *)update_data) + stream_param->meta_len + in btp_cap_unicast_audio_update()
/Zephyr-latest/drivers/usb/udc/
Dudc_numaker.c886 uint8_t *data_ptr; in numaker_usbd_msg_handle_setup() local
918 data_ptr = net_buf_tail(buf); in numaker_usbd_msg_handle_setup()
919 numaker_usbd_setup_copy_to_user(dev, data_ptr); in numaker_usbd_msg_handle_setup()
948 uint8_t *data_ptr; in numaker_usbd_msg_handle_out() local
977 data_ptr = net_buf_tail(buf); in numaker_usbd_msg_handle_out()
978 numaker_usbd_ep_copy_to_user(ep_cur, data_ptr, &data_len, &data_rmn); in numaker_usbd_msg_handle_out()

12