Lines Matching defs:obj

147 #define	LIST_OBJ_TO_EL(list, obj)	\
148 ((void *)((char *)(obj) + (list)->offset))
3989 raid_obj_t *obj;
3991 obj = raid_obj_tab_remove(raid_tab, raid_obj_id);
3992 if (obj != NULL) {
3993 free(obj->data);
3994 free(obj);
4030 raid_obj_t *obj;
4032 obj = raid_obj_tab_find(raid_tab, obj_id);
4033 if (obj == NULL)
4036 if ((obj->obj_type_id < OBJ_TYPE_SYSTEM) ||
4037 (obj->obj_type_id >= OBJ_TYPE_ALL))
4040 return (obj->obj_type_id);
4047 raid_obj_t *obj;
4049 obj = raid_obj_tab_find(raid_tab, obj_id);
4050 if (obj == NULL)
4056 obj->obj_type_id = type;
4063 raid_obj_t *obj;
4065 obj = raid_obj_tab_find(raid_tab, obj_id);
4066 if (obj == NULL)
4069 return (obj->status);
4076 raid_obj_t *obj;
4078 obj = raid_obj_tab_find(raid_tab, obj_id);
4079 if (obj == NULL)
4082 obj->status = obj->status | status;
4091 raid_obj_t *obj;
4093 obj = raid_obj_tab_find(raid_tab, obj_id);
4094 if (obj == NULL)
4097 obj->status = obj->status & ~status;
4105 raid_obj_t *obj;
4107 obj = raid_obj_tab_find(raid_tab, obj_id);
4108 if (obj == NULL)
4111 return (obj->container);
4118 raid_obj_t *obj;
4120 obj = raid_obj_tab_find(raid_tab, obj_id);
4121 if (obj == NULL)
4124 obj->container = container_id;
4131 raid_obj_t *obj;
4133 obj = raid_obj_tab_find(raid_tab, obj_id);
4134 if (obj == NULL)
4137 return (obj->component);
4144 raid_obj_t *obj;
4146 obj = raid_obj_tab_find(raid_tab, obj_id);
4147 if (obj == NULL)
4150 obj->component = comp;
4157 raid_obj_t *obj;
4159 obj = raid_obj_tab_find(raid_tab, obj_id);
4160 if (obj == NULL)
4163 return (obj->sibling);
4170 raid_obj_t *obj;
4172 obj = raid_obj_tab_find(raid_tab, obj_id);
4173 if (obj == NULL)
4176 obj->sibling = sibling;
4184 raid_obj_t *obj;
4186 obj = raid_obj_tab_find(raid_tab, obj_id);
4187 if (obj == NULL)
4190 return (obj->data);
4197 raid_obj_t *obj;
4199 obj = raid_obj_tab_find(raid_tab, obj_id);
4200 if (obj == NULL)
4203 obj->data = data;
4211 raid_obj_t *obj;
4213 obj = raid_obj_tab_find(raid_tab, obj_id);
4214 if (obj == NULL)
4217 return (obj->handle);
4224 raid_obj_t *obj;
4226 obj = raid_obj_tab_find(raid_tab, obj_id);
4227 if (obj == NULL)
4230 obj->handle = handle;
4251 raid_list_next(raid_list_t *list, void *obj)
4253 raid_list_el_t *el = LIST_OBJ_TO_EL(list, obj);
4259 raid_list_insert_tail(raid_list_t *list, void *obj)
4261 raid_list_el_t *el = LIST_OBJ_TO_EL(list, obj), *el1;
4264 list->tail = obj;
4269 list->head = obj;
4273 el1->next = obj;
4278 raid_list_remove(raid_list_t *list, void *obj)
4280 raid_list_el_t *el = LIST_OBJ_TO_EL(list, obj), *el1;
4282 if (list->head == obj)
4285 if (list->tail == obj)
4304 void *obj = list->head;
4306 if (obj != NULL)
4307 raid_list_remove(list, obj);
4309 return (obj);
4315 raid_obj_t *obj;
4317 for (obj = raid_list_head(list); obj != NULL;
4318 obj = raid_list_next(list, obj))
4319 if (obj->obj_id == obj_id)
4322 return (obj);
4350 struct raid_obj_t *obj;
4352 while ((obj = raid_list_remove_head(&tab->table[i])) != NULL)
4353 free(obj);
4367 raid_obj_tab_insert(raid_obj_tab_t *tab, raid_obj_id_t id, void *obj)
4376 raid_list_insert_tail(list, obj);
4385 raid_obj_t *obj;
4389 if ((obj = raid_list_find(list, id)) != NULL)
4390 raid_list_remove(list, obj);
4392 return (obj);
4399 raid_obj_t *obj;
4402 obj = raid_list_find(list, id);
4404 return (obj);