Lines Matching defs:obj

149 #define	LIST_OBJ_TO_EL(list, obj)	\
150 ((void *)((char *)(obj) + (list)->offset))
3987 raid_obj_t *obj;
3989 obj = raid_obj_tab_remove(raid_tab, raid_obj_id);
3990 if (obj != NULL) {
3991 free(obj->data);
3992 free(obj);
4028 raid_obj_t *obj;
4030 obj = raid_obj_tab_find(raid_tab, obj_id);
4031 if (obj == NULL)
4034 if ((obj->obj_type_id < OBJ_TYPE_SYSTEM) ||
4035 (obj->obj_type_id >= OBJ_TYPE_ALL))
4038 return (obj->obj_type_id);
4045 raid_obj_t *obj;
4047 obj = raid_obj_tab_find(raid_tab, obj_id);
4048 if (obj == NULL)
4054 obj->obj_type_id = type;
4061 raid_obj_t *obj;
4063 obj = raid_obj_tab_find(raid_tab, obj_id);
4064 if (obj == NULL)
4067 return (obj->status);
4074 raid_obj_t *obj;
4076 obj = raid_obj_tab_find(raid_tab, obj_id);
4077 if (obj == NULL)
4080 obj->status = obj->status | status;
4089 raid_obj_t *obj;
4091 obj = raid_obj_tab_find(raid_tab, obj_id);
4092 if (obj == NULL)
4095 obj->status = obj->status & ~status;
4103 raid_obj_t *obj;
4105 obj = raid_obj_tab_find(raid_tab, obj_id);
4106 if (obj == NULL)
4109 return (obj->container);
4116 raid_obj_t *obj;
4118 obj = raid_obj_tab_find(raid_tab, obj_id);
4119 if (obj == NULL)
4122 obj->container = container_id;
4129 raid_obj_t *obj;
4131 obj = raid_obj_tab_find(raid_tab, obj_id);
4132 if (obj == NULL)
4135 return (obj->component);
4142 raid_obj_t *obj;
4144 obj = raid_obj_tab_find(raid_tab, obj_id);
4145 if (obj == NULL)
4148 obj->component = comp;
4155 raid_obj_t *obj;
4157 obj = raid_obj_tab_find(raid_tab, obj_id);
4158 if (obj == NULL)
4161 return (obj->sibling);
4168 raid_obj_t *obj;
4170 obj = raid_obj_tab_find(raid_tab, obj_id);
4171 if (obj == NULL)
4174 obj->sibling = sibling;
4182 raid_obj_t *obj;
4184 obj = raid_obj_tab_find(raid_tab, obj_id);
4185 if (obj == NULL)
4188 return (obj->data);
4195 raid_obj_t *obj;
4197 obj = raid_obj_tab_find(raid_tab, obj_id);
4198 if (obj == NULL)
4201 obj->data = data;
4209 raid_obj_t *obj;
4211 obj = raid_obj_tab_find(raid_tab, obj_id);
4212 if (obj == NULL)
4215 return (obj->handle);
4222 raid_obj_t *obj;
4224 obj = raid_obj_tab_find(raid_tab, obj_id);
4225 if (obj == NULL)
4228 obj->handle = handle;
4249 raid_list_next(raid_list_t *list, void *obj)
4251 raid_list_el_t *el = LIST_OBJ_TO_EL(list, obj);
4257 raid_list_insert_tail(raid_list_t *list, void *obj)
4259 raid_list_el_t *el = LIST_OBJ_TO_EL(list, obj), *el1;
4262 list->tail = obj;
4267 list->head = obj;
4271 el1->next = obj;
4276 raid_list_remove(raid_list_t *list, void *obj)
4278 raid_list_el_t *el = LIST_OBJ_TO_EL(list, obj), *el1;
4280 if (list->head == obj)
4283 if (list->tail == obj)
4302 void *obj = list->head;
4304 if (obj != NULL)
4305 raid_list_remove(list, obj);
4307 return (obj);
4313 raid_obj_t *obj;
4315 for (obj = raid_list_head(list); obj != NULL;
4316 obj = raid_list_next(list, obj))
4317 if (obj->obj_id == obj_id)
4320 return (obj);
4348 struct raid_obj_t *obj;
4350 while ((obj = raid_list_remove_head(&tab->table[i])) != NULL)
4351 free(obj);
4365 raid_obj_tab_insert(raid_obj_tab_t *tab, raid_obj_id_t id, void *obj)
4374 raid_list_insert_tail(list, obj);
4383 raid_obj_t *obj;
4387 if ((obj = raid_list_find(list, id)) != NULL)
4388 raid_list_remove(list, obj);
4390 return (obj);
4397 raid_obj_t *obj;
4400 obj = raid_list_find(list, id);
4402 return (obj);