Lines Matching refs:data_ptr
992 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()
1143 ret = lwm2m_write_handler_opaque(obj_inst, res, res_inst, msg, data_ptr, in lwm2m_write_handler()
1282 strncpy(data_ptr, write_buf, data_len); in lwm2m_write_handler()
1284 memcpy(data_ptr, write_buf, len); in lwm2m_write_handler()
1291 res_inst->res_inst_id, data_ptr, len, last_block, in lwm2m_write_handler()
1305 static int lwm2m_read_resource_data(struct lwm2m_message *msg, void *data_ptr, size_t data_len, in lwm2m_read_resource_data() argument
1313 ret = engine_put_opaque(&msg->out, &msg->path, (uint8_t *)data_ptr, data_len); in lwm2m_read_resource_data()
1320 ret = engine_put_string(&msg->out, &msg->path, (uint8_t *)data_ptr, data_len); in lwm2m_read_resource_data()
1324 ret = engine_put_s64(&msg->out, &msg->path, (int64_t) *(uint32_t *)data_ptr); in lwm2m_read_resource_data()
1328 ret = engine_put_s32(&msg->out, &msg->path, (int32_t) *(uint16_t *)data_ptr); in lwm2m_read_resource_data()
1332 ret = engine_put_s16(&msg->out, &msg->path, (int16_t) *(uint8_t *)data_ptr); in lwm2m_read_resource_data()
1336 ret = engine_put_s64(&msg->out, &msg->path, *(int64_t *)data_ptr); in lwm2m_read_resource_data()
1340 ret = engine_put_s32(&msg->out, &msg->path, *(int32_t *)data_ptr); in lwm2m_read_resource_data()
1344 ret = engine_put_s16(&msg->out, &msg->path, *(int16_t *)data_ptr); in lwm2m_read_resource_data()
1348 ret = engine_put_s8(&msg->out, &msg->path, *(int8_t *)data_ptr); in lwm2m_read_resource_data()
1353 ret = engine_put_time(&msg->out, &msg->path, *(time_t *)data_ptr); in lwm2m_read_resource_data()
1356 (time_t) *((uint32_t *)data_ptr)); in lwm2m_read_resource_data()
1365 ret = engine_put_bool(&msg->out, &msg->path, *(bool *)data_ptr); in lwm2m_read_resource_data()
1369 ret = engine_put_float(&msg->out, &msg->path, (double *)data_ptr); in lwm2m_read_resource_data()
1373 ret = engine_put_objlnk(&msg->out, &msg->path, (struct lwm2m_objlnk *)data_ptr); in lwm2m_read_resource_data()
1495 void *data_ptr = NULL; in lwm2m_read_handler() local
1558 data_ptr = res->res_instances[i].data_ptr; in lwm2m_read_handler()
1563 data_ptr = in lwm2m_read_handler()
1568 if (!data_ptr && data_len) { in lwm2m_read_handler()
1582 data_ptr = ""; in lwm2m_read_handler()
1584 ret = lwm2m_read_resource_data(msg, data_ptr, data_len, in lwm2m_read_handler()