Lines Matching refs:index

98 	int index, i = 0, j = 0;  in lpwan_create()  local
101 for (index = 0; index < MAX_INSTANCE_COUNT; index++) { in lpwan_create()
102 if ((inst[index].obj != NULL) && (inst[index].obj_inst_id == obj_inst_id)) { in lpwan_create()
108 for (index = 0; index < MAX_INSTANCE_COUNT; index++) { in lpwan_create()
109 if (inst[index].obj == NULL) { in lpwan_create()
114 if (index >= MAX_INSTANCE_COUNT) { in lpwan_create()
120 (void)memset(res[index], 0, sizeof(res[index])); in lpwan_create()
121 mac[index][0] = '\0'; in lpwan_create()
123 init_res_instance(res_inst[index], ARRAY_SIZE(res_inst[index])); in lpwan_create()
126 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_NETWORK_TYPE_RID, res[index], i, res_inst[index], j); in lpwan_create()
127 INIT_OBJ_RES_MULTI_OPTDATA(UCIFI_LPWAN_IPV4_ADDRESS_RID, res[index], i, res_inst[index], j, in lpwan_create()
129 INIT_OBJ_RES_MULTI_OPTDATA(UCIFI_LPWAN_IPV6_ADDRESS_RID, res[index], i, res_inst[index], j, in lpwan_create()
131 INIT_OBJ_RES_MULTI_OPTDATA(UCIFI_LPWAN_NETWORK_ADDRESS_RID, res[index], i, res_inst[index], in lpwan_create()
133 INIT_OBJ_RES_MULTI_OPTDATA(UCIFI_LPWAN_SECONDARY_ADDRESS_RID, res[index], i, in lpwan_create()
134 res_inst[index], j, SECONDARY_NETWORK_ADDRESS_MAX, false); in lpwan_create()
135 INIT_OBJ_RES_DATA_LEN(UCIFI_LPWAN_MAC_ADDRESS_RID, res[index], i, res_inst[index], j, in lpwan_create()
136 mac[index], MAC_ADDRESS_SIZE, 0); in lpwan_create()
137 INIT_OBJ_RES_MULTI_OPTDATA(UCIFI_LPWAN_PEER_ADDRESS_RID, res[index], i, res_inst[index], j, in lpwan_create()
139 INIT_OBJ_RES_MULTI_OPTDATA(UCIFI_LPWAN_MULTICAST_GRP_ADDRESS_RID, res[index], i, in lpwan_create()
140 res_inst[index], j, MULTICAST_GRP_ADDRESS_MAX, false); in lpwan_create()
141 INIT_OBJ_RES_MULTI_OPTDATA(UCIFI_LPWAN_MULTICAST_GRP_KEY_RID, res[index], i, in lpwan_create()
142 res_inst[index], j, MULTICAST_GRP_KEY_MAX, false); in lpwan_create()
143 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_DATA_RATE_RID, res[index], i, res_inst[index], j); in lpwan_create()
144 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_TRANSMIT_POWER_RID, res[index], i, res_inst[index], j); in lpwan_create()
145 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_FREQUENCY_RID, res[index], i, res_inst[index], j); in lpwan_create()
146 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_SESSION_TIME_RID, res[index], i, res_inst[index], j); in lpwan_create()
147 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_SESSION_DURATION_RID, res[index], i, res_inst[index], j); in lpwan_create()
148 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_MESH_NODE_RID, res[index], i, res_inst[index], j); in lpwan_create()
149 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_MAX_REPEAT_TIME_RID, res[index], i, res_inst[index], j); in lpwan_create()
150 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_NUMBER_REPEATS_RID, res[index], i, res_inst[index], j); in lpwan_create()
151 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_SIGNAL_NOISE_RATIO_RID, res[index], i, res_inst[index], j); in lpwan_create()
152 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_COMM_FAILURE_RID, res[index], i, res_inst[index], j); in lpwan_create()
153 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_RSSI_RID, res[index], i, res_inst[index], j); in lpwan_create()
154 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_IMSI_RID, res[index], i, res_inst[index], j); in lpwan_create()
155 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_IMEI_RID, res[index], i, res_inst[index], j); in lpwan_create()
156 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_COMM_OPERATOR_RID, res[index], i, res_inst[index], j); in lpwan_create()
157 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_IC_CARD_IDENTIFIER_RID, res[index], i, res_inst[index], j); in lpwan_create()
159 inst[index].resources = res[index]; in lpwan_create()
160 inst[index].resource_count = i; in lpwan_create()
163 return &inst[index]; in lpwan_create()