Home
last modified time | relevance | path

Searched refs:lun_req (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/cam/ctl/
H A Dctl_backend_ramdisk.c1015 struct ctl_lun_req *lun_req; in ctl_backend_ramdisk_ioctl() local
1021 lun_req = (struct ctl_lun_req *)addr; in ctl_backend_ramdisk_ioctl()
1022 switch (lun_req->reqtype) { in ctl_backend_ramdisk_ioctl()
1024 retval = ctl_backend_ramdisk_create(softc, lun_req); in ctl_backend_ramdisk_ioctl()
1027 retval = ctl_backend_ramdisk_rm(softc, lun_req); in ctl_backend_ramdisk_ioctl()
1030 retval = ctl_backend_ramdisk_modify(softc, lun_req); in ctl_backend_ramdisk_ioctl()
1033 lun_req->status = CTL_LUN_ERROR; in ctl_backend_ramdisk_ioctl()
1034 snprintf(lun_req->error_str, sizeof(lun_req->error_str), in ctl_backend_ramdisk_ioctl()
1036 lun_req->reqtype); in ctl_backend_ramdisk_ioctl()
H A Dctl.c2929 struct ctl_lun_req *lun_req; in ctl_ioctl() local
2935 lun_req = (struct ctl_lun_req *)addr; in ctl_ioctl()
2936 tmp_args_nvl = lun_req->args_nvl; in ctl_ioctl()
2938 backend = ctl_backend_find(lun_req->backend); in ctl_ioctl()
2940 lun_req->status = CTL_LUN_ERROR; in ctl_ioctl()
2941 snprintf(lun_req->error_str, in ctl_ioctl()
2942 sizeof(lun_req->error_str), in ctl_ioctl()
2944 lun_req->backend); in ctl_ioctl()
2948 if (lun_req->args != NULL) { in ctl_ioctl()
2949 if (lun_req->args_len > CTL_MAX_ARGS_LEN) { in ctl_ioctl()
[all …]
H A Dctl_backend_block.c2179 struct ctl_lun_req *lun_req; in ctl_be_block_ioctl() local
2181 lun_req = (struct ctl_lun_req *)addr; in ctl_be_block_ioctl()
2183 switch (lun_req->reqtype) { in ctl_be_block_ioctl()
2185 error = ctl_be_block_create(softc, lun_req); in ctl_be_block_ioctl()
2188 error = ctl_be_block_rm(softc, lun_req); in ctl_be_block_ioctl()
2191 error = ctl_be_block_modify(softc, lun_req); in ctl_be_block_ioctl()
2194 lun_req->status = CTL_LUN_ERROR; in ctl_be_block_ioctl()
2195 snprintf(lun_req->error_str, sizeof(lun_req->error_str), in ctl_be_block_ioctl()
2197 lun_req->reqtype); in ctl_be_block_ioctl()