Lines Matching refs:attrs
219 struct notification_attrs *attrs, uint16_t srv_obj_inst) in engine_observe_get_attributes() argument
228 attrs->pmin = lwm2m_server_get_pmin(srv_obj_inst); in engine_observe_get_attributes()
229 attrs->pmax = lwm2m_server_get_pmax(srv_obj_inst); in engine_observe_get_attributes()
230 attrs->flags = BIT(LWM2M_ATTR_PMIN) | BIT(LWM2M_ATTR_PMAX); in engine_observe_get_attributes()
239 ret = update_attrs(obj, attrs); in engine_observe_get_attributes()
248 attrs->pmax = 0; in engine_observe_get_attributes()
249 attrs->pmin = 0; in engine_observe_get_attributes()
253 ret = update_attrs(obj_inst, attrs); in engine_observe_get_attributes()
286 ret = update_attrs(&obj_inst->resources[i], attrs); in engine_observe_get_attributes()
303 ret = update_attrs(res_inst, attrs); in engine_observe_get_attributes()
309 attrs->pmax = (attrs->pmax >= attrs->pmin) ? (uint32_t)attrs->pmax : 0UL; in engine_observe_get_attributes()
590 struct notification_attrs attrs; in engine_add_observer() local
631 ret = engine_observe_get_attributes(&msg->path, &attrs, msg->ctx->srv_obj_inst); in engine_add_observer()
641 engine_observe_node_init(obs, token, msg->ctx, tkl, format, attrs.pmax); in engine_add_observer()
672 struct notification_attrs attrs; in engine_add_composite_observer() local
718 ret = engine_observe_attribute_list_get(&lwm2m_path_list, &attrs, msg->ctx->srv_obj_inst); in engine_add_composite_observer()
727 engine_observe_node_init(obs, token, msg->ctx, tkl, format, attrs.pmax); in engine_add_composite_observer()
1034 struct notification_attrs attrs = {0}; in lwm2m_update_observer_min_period() local
1054 ret = engine_observe_get_attributes(path, &attrs, client_ctx->srv_obj_inst); in lwm2m_update_observer_min_period()
1059 if (period_s && attrs.pmax && attrs.pmax < period_s) { in lwm2m_update_observer_min_period()
1060 LOG_DBG("New pmin (%d) > pmax (%d)", period_s, attrs.pmax); in lwm2m_update_observer_min_period()
1073 struct notification_attrs attrs = {0}; in lwm2m_update_observer_max_period() local
1092 ret = engine_observe_get_attributes(path, &attrs, client_ctx->srv_obj_inst); in lwm2m_update_observer_max_period()
1097 if (period_s && attrs.pmin > period_s) { in lwm2m_update_observer_max_period()
1098 LOG_DBG("pmin (%d) > new pmax (%d)", attrs.pmin, period_s); in lwm2m_update_observer_max_period()
1436 struct notification_attrs attrs; in engine_observe_shedule_next_event() local
1440 ret = engine_observe_attribute_list_get(&obs->path_list, &attrs, srv_obj_inst); in engine_observe_shedule_next_event()
1445 if (attrs.pmax) { in engine_observe_shedule_next_event()
1446 t_s = timestamp + MSEC_PER_SEC * attrs.pmax; in engine_observe_shedule_next_event()