Lines Matching refs:local_buf
551 char *local_buf; in dcssblk_add_store() local
565 local_buf = kmalloc(count + 1, GFP_KERNEL); in dcssblk_add_store()
566 if (local_buf == NULL) { in dcssblk_add_store()
580 local_buf[j-i] = toupper(buf[j]); in dcssblk_add_store()
582 local_buf[j-i] = '\0'; in dcssblk_add_store()
588 rc = dcssblk_load_segment(local_buf, &seg_info); in dcssblk_add_store()
601 strcpy(dev_info->segment_name, local_buf); in dcssblk_add_store()
618 strlcpy(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()
732 kfree(local_buf); in dcssblk_add_store()
746 char *local_buf; in dcssblk_remove_store() local
751 local_buf = kmalloc(count + 1, GFP_KERNEL); in dcssblk_remove_store()
752 if (local_buf == NULL) { in dcssblk_remove_store()
759 local_buf[i] = toupper(buf[i]); in dcssblk_remove_store()
761 local_buf[i] = '\0'; in dcssblk_remove_store()
768 dev_info = dcssblk_get_device_by_name(local_buf); in dcssblk_remove_store()
772 local_buf); in dcssblk_remove_store()
779 local_buf); in dcssblk_remove_store()
803 kfree(local_buf); in dcssblk_remove_store()