Lines Matching refs:create
380 struct nvm_ioctl_create *create) in nvm_create_target() argument
382 struct nvm_ioctl_create_simple *s = &create->conf.s; in nvm_create_target()
395 tt = nvm_find_target_type(create->tgttype); in nvm_create_target()
397 pr_err("nvm: target type %s not found\n", create->tgttype); in nvm_create_target()
403 if (!strcmp(create->tgtname, t->disk->disk_name)) { in nvm_create_target()
424 sprintf(tdisk->disk_name, "%s", create->tgtname); in nvm_create_target()
480 static int __nvm_configure_create(struct nvm_ioctl_create *create) in __nvm_configure_create() argument
486 dev = nvm_find_nvm_dev(create->dev); in __nvm_configure_create()
493 if (create->conf.type != NVM_CONFIG_TYPE_SIMPLE) { in __nvm_configure_create()
497 s = &create->conf.s; in __nvm_configure_create()
505 return nvm_create_target(dev, create); in __nvm_configure_create()
581 struct nvm_ioctl_create create; in nvm_configure_create() local
585 ret = sscanf(val, "%c %256s %256s %48s %u:%u", &opcode, create.dev, in nvm_configure_create()
586 create.tgtname, create.tgttype, in nvm_configure_create()
593 create.flags = 0; in nvm_configure_create()
594 create.conf.type = NVM_CONFIG_TYPE_SIMPLE; in nvm_configure_create()
595 create.conf.s.lun_begin = lun_begin; in nvm_configure_create()
596 create.conf.s.lun_end = lun_end; in nvm_configure_create()
598 return __nvm_configure_create(&create); in nvm_configure_create()
751 struct nvm_ioctl_create create; in nvm_ioctl_dev_create() local
756 if (copy_from_user(&create, arg, sizeof(struct nvm_ioctl_create))) in nvm_ioctl_dev_create()
759 create.dev[DISK_NAME_LEN - 1] = '\0'; in nvm_ioctl_dev_create()
760 create.tgttype[NVM_TTYPE_NAME_MAX - 1] = '\0'; in nvm_ioctl_dev_create()
761 create.tgtname[DISK_NAME_LEN - 1] = '\0'; in nvm_ioctl_dev_create()
763 if (create.flags != 0) { in nvm_ioctl_dev_create()
768 return __nvm_configure_create(&create); in nvm_ioctl_dev_create()