• Home
  • Raw
  • Download

Lines Matching refs:seg_info

313 dcssblk_load_segment(char *name, struct segment_info **seg_info)  in dcssblk_load_segment()  argument
319 *seg_info = dcssblk_get_segment_by_name(name); in dcssblk_load_segment()
321 if (*seg_info != NULL) in dcssblk_load_segment()
325 *seg_info = kzalloc(sizeof(struct segment_info), GFP_KERNEL); in dcssblk_load_segment()
326 if (*seg_info == NULL) in dcssblk_load_segment()
329 strcpy((*seg_info)->segment_name, name); in dcssblk_load_segment()
333 &(*seg_info)->start, &(*seg_info)->end); in dcssblk_load_segment()
335 segment_warning(rc, (*seg_info)->segment_name); in dcssblk_load_segment()
336 kfree(*seg_info); in dcssblk_load_segment()
338 INIT_LIST_HEAD(&(*seg_info)->lh); in dcssblk_load_segment()
339 (*seg_info)->segment_type = rc; in dcssblk_load_segment()
562 struct segment_info *seg_info, *temp; in dcssblk_add_store() local
567 seg_info = NULL; in dcssblk_add_store()
600 rc = dcssblk_load_segment(local_buf, &seg_info); in dcssblk_add_store()
614 dev_info->segment_type = seg_info->segment_type; in dcssblk_add_store()
617 list_add_tail(&seg_info->lh, &dev_info->seg_list); in dcssblk_add_store()
718 list_for_each_entry(seg_info, &dev_info->seg_list, lh) { in dcssblk_add_store()
719 segment_unload(seg_info->segment_name); in dcssblk_add_store()
732 list_for_each_entry_safe(seg_info, temp, &dev_info->seg_list, lh) { in dcssblk_add_store()
733 list_del(&seg_info->lh); in dcssblk_add_store()
734 segment_unload(seg_info->segment_name); in dcssblk_add_store()
735 kfree(seg_info); in dcssblk_add_store()