Lines Matching refs:local_buf
567 char *local_buf; in dcssblk_add_store() local
581 local_buf = kmalloc(count + 1, GFP_KERNEL); in dcssblk_add_store()
582 if (local_buf == NULL) { in dcssblk_add_store()
596 local_buf[j-i] = toupper(buf[j]); in dcssblk_add_store()
598 local_buf[j-i] = '\0'; in dcssblk_add_store()
604 rc = dcssblk_load_segment(local_buf, &seg_info); in dcssblk_add_store()
617 strcpy(dev_info->segment_name, local_buf); in dcssblk_add_store()
634 strlcpy(local_buf, buf, i + 1); in dcssblk_add_store()
663 "sectors\n", local_buf, seg_byte_size, seg_byte_size >> 9); in dcssblk_add_store()
673 if (dcssblk_get_segment_by_name(local_buf)) { in dcssblk_add_store()
748 kfree(local_buf); in dcssblk_add_store()
762 char *local_buf; in dcssblk_remove_store() local
767 local_buf = kmalloc(count + 1, GFP_KERNEL); in dcssblk_remove_store()
768 if (local_buf == NULL) { in dcssblk_remove_store()
775 local_buf[i] = toupper(buf[i]); in dcssblk_remove_store()
777 local_buf[i] = '\0'; in dcssblk_remove_store()
784 dev_info = dcssblk_get_device_by_name(local_buf); in dcssblk_remove_store()
788 local_buf); in dcssblk_remove_store()
795 local_buf); in dcssblk_remove_store()
819 kfree(local_buf); in dcssblk_remove_store()