Lines Matching refs:local_buf
552 char *local_buf; in dcssblk_add_store() local
566 local_buf = kmalloc(count + 1, GFP_KERNEL); in dcssblk_add_store()
567 if (local_buf == NULL) { in dcssblk_add_store()
581 local_buf[j-i] = toupper(buf[j]); in dcssblk_add_store()
583 local_buf[j-i] = '\0'; in dcssblk_add_store()
589 rc = dcssblk_load_segment(local_buf, &seg_info); in dcssblk_add_store()
602 strcpy(dev_info->segment_name, local_buf); in dcssblk_add_store()
619 strlcpy(local_buf, buf, i + 1); in dcssblk_add_store()
649 "sectors\n", local_buf, seg_byte_size, seg_byte_size >> 9); in dcssblk_add_store()
659 if (dcssblk_get_segment_by_name(local_buf)) { in dcssblk_add_store()
733 kfree(local_buf); in dcssblk_add_store()
747 char *local_buf; in dcssblk_remove_store() local
752 local_buf = kmalloc(count + 1, GFP_KERNEL); in dcssblk_remove_store()
753 if (local_buf == NULL) { in dcssblk_remove_store()
760 local_buf[i] = toupper(buf[i]); in dcssblk_remove_store()
762 local_buf[i] = '\0'; in dcssblk_remove_store()
769 dev_info = dcssblk_get_device_by_name(local_buf); in dcssblk_remove_store()
773 local_buf); in dcssblk_remove_store()
780 local_buf); in dcssblk_remove_store()
804 kfree(local_buf); in dcssblk_remove_store()