Lines Matching refs:local_buf
550 char *local_buf; in dcssblk_add_store() local
564 local_buf = kmalloc(count + 1, GFP_KERNEL); in dcssblk_add_store()
565 if (local_buf == NULL) { in dcssblk_add_store()
579 local_buf[j-i] = toupper(buf[j]); in dcssblk_add_store()
581 local_buf[j-i] = '\0'; in dcssblk_add_store()
587 rc = dcssblk_load_segment(local_buf, &seg_info); in dcssblk_add_store()
600 strcpy(dev_info->segment_name, local_buf); in dcssblk_add_store()
617 strscpy(local_buf, buf, i + 1); in dcssblk_add_store()
646 "sectors\n", local_buf, seg_byte_size, seg_byte_size >> 9); in dcssblk_add_store()
656 if (dcssblk_get_segment_by_name(local_buf)) { in dcssblk_add_store()
738 kfree(local_buf); in dcssblk_add_store()
752 char *local_buf; in dcssblk_remove_store() local
757 local_buf = kmalloc(count + 1, GFP_KERNEL); in dcssblk_remove_store()
758 if (local_buf == NULL) { in dcssblk_remove_store()
765 local_buf[i] = toupper(buf[i]); in dcssblk_remove_store()
767 local_buf[i] = '\0'; in dcssblk_remove_store()
774 dev_info = dcssblk_get_device_by_name(local_buf); in dcssblk_remove_store()
778 local_buf); in dcssblk_remove_store()
785 local_buf); in dcssblk_remove_store()
807 kfree(local_buf); in dcssblk_remove_store()