Lines Matching refs:obj_index
165 uint32_t obj_index = OTS_OBJ_ID_TO_OBJ_IDX(id); in ots_obj_created() local
167 if (obj_index >= OBJ_POOL_SIZE) { in ots_obj_created()
171 obj = &objects[obj_index]; in ots_obj_created()
196 uint32_t obj_index = OTS_OBJ_ID_TO_OBJ_IDX(id); in ots_obj_deleted() local
201 if (obj_index >= OBJ_POOL_SIZE) { in ots_obj_deleted()
205 obj = &objects[obj_index]; in ots_obj_deleted()
221 uint32_t obj_index = OTS_OBJ_ID_TO_OBJ_IDX(id); in ots_obj_read() local
229 if (obj_index >= OBJ_POOL_SIZE) { in ots_obj_read()
233 *data = &objects[obj_index].data[offset]; in ots_obj_read()
242 uint32_t obj_index = OTS_OBJ_ID_TO_OBJ_IDX(id); in ots_obj_write() local
246 if (obj_index >= OBJ_POOL_SIZE) { in ots_obj_write()
250 (void)memcpy(&objects[obj_index].data[offset], data, len); in ots_obj_write()
264 uint32_t obj_index = OTS_OBJ_ID_TO_OBJ_IDX(id); in ots_obj_cal_checksum() local
266 if (obj_index >= OBJ_POOL_SIZE) { in ots_obj_cal_checksum()
270 *data = &objects[obj_index].data[offset]; in ots_obj_cal_checksum()