Lines Matching refs:avail
59 int index, avail = -1, i = 0, j = 0; in lwm2m_binaryappdata_create() local
71 if (avail < 0 && !inst[index].obj) { in lwm2m_binaryappdata_create()
72 avail = index; in lwm2m_binaryappdata_create()
76 if (avail < 0) { in lwm2m_binaryappdata_create()
81 (void)memset(res[avail], 0, sizeof(res[avail][0]) * ARRAY_SIZE(res[avail])); in lwm2m_binaryappdata_create()
83 init_res_instance(res_inst[avail], ARRAY_SIZE(res_inst[avail])); in lwm2m_binaryappdata_create()
86 INIT_OBJ_RES_OPT(LWM2M_BINARYAPPDATA_DATA_ID, res[avail], i, res_inst[avail], j, in lwm2m_binaryappdata_create()
88 INIT_OBJ_RES_OPTDATA(LWM2M_BINARYAPPDATA_DATA_PRIORITY_ID, res[avail], i, in lwm2m_binaryappdata_create()
89 res_inst[avail], j); in lwm2m_binaryappdata_create()
90 INIT_OBJ_RES_OPTDATA(LWM2M_BINARYAPPDATA_DATA_CREATION_TIME_ID, res[avail], i, in lwm2m_binaryappdata_create()
91 res_inst[avail], j); in lwm2m_binaryappdata_create()
92 INIT_OBJ_RES_OPTDATA(LWM2M_BINARYAPPDATA_DATA_DESCRIPTION_ID, res[avail], i, in lwm2m_binaryappdata_create()
93 res_inst[avail], j); in lwm2m_binaryappdata_create()
94 INIT_OBJ_RES_OPTDATA(LWM2M_BINARYAPPDATA_DATA_FORMAT_ID, res[avail], i, res_inst[avail], j); in lwm2m_binaryappdata_create()
95 INIT_OBJ_RES_OPTDATA(LWM2M_BINARYAPPDATA_APP_ID, res[avail], i, res_inst[avail], j); in lwm2m_binaryappdata_create()
97 inst[avail].resources = res[avail]; in lwm2m_binaryappdata_create()
98 inst[avail].resource_count = i; in lwm2m_binaryappdata_create()
101 return &inst[avail]; in lwm2m_binaryappdata_create()