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 strscpy(local_buf, buf, i + 1); in dcssblk_add_store()
648 "sectors\n", local_buf, seg_byte_size, seg_byte_size >> 9); in dcssblk_add_store()
658 if (dcssblk_get_segment_by_name(local_buf)) { in dcssblk_add_store()
740 kfree(local_buf); in dcssblk_add_store()
754 char *local_buf; in dcssblk_remove_store() local
759 local_buf = kmalloc(count + 1, GFP_KERNEL); in dcssblk_remove_store()
760 if (local_buf == NULL) { in dcssblk_remove_store()
767 local_buf[i] = toupper(buf[i]); in dcssblk_remove_store()
769 local_buf[i] = '\0'; in dcssblk_remove_store()
776 dev_info = dcssblk_get_device_by_name(local_buf); in dcssblk_remove_store()
780 local_buf); in dcssblk_remove_store()
787 local_buf); in dcssblk_remove_store()
809 kfree(local_buf); in dcssblk_remove_store()