Lines Matching +full:max +full:- +full:priority
3 * Copyright (c) 2018-2019 Foundries.io
5 * SPDX-License-Identifier: Apache-2.0
44 #define RESOURCE_INSTANCE_COUNT (SERVER_MAX_ID - 2)
56 static uint8_t priority[MAX_INSTANCE_COUNT]; variable
117 return -ENOENT; in disable_cb()
199 return -ENOENT; in lwm2m_server_get_ssid()
212 return -ENOENT; in lwm2m_server_short_id_to_inst()
222 return -1; in lwm2m_server_inst_id_to_index()
240 return -ENOENT; in lwm2m_server_disable()
266 uint8_t max = 0; in lwm2m_server_select() local
268 /* Find priority boundaries */ in lwm2m_server_select()
271 if (min > priority[i]) { in lwm2m_server_select()
272 min = priority[i]; in lwm2m_server_select()
274 if (max < priority[i]) { in lwm2m_server_select()
275 max = priority[i]; in lwm2m_server_select()
279 min = max = 0; in lwm2m_server_select()
282 for (uint8_t prio = min; prio <= max; prio++) { in lwm2m_server_select()
294 /* Check priority */ in lwm2m_server_select()
296 if (priority[i] > prio) { in lwm2m_server_select()
319 return priority[idx]; in lwm2m_server_get_prio()
332 LOG_ERR("Can not create instance - " in server_create()
345 LOG_ERR("Can not create instance - " in server_create()
398 priority[index] = 0; in server_create()
407 res_inst[index], j, &priority[index], sizeof(uint8_t)); in server_create()