/freebsd/sys/cam/ |
H A D | cam_xpt.h | 90 target_id_t target_id, lun_id_t lun_id); 94 target_id_t target_id, lun_id_t lun_id); 136 lun_id_t lun_id);
|
H A D | cam_xpt_internal.h | 41 lun_id_t lun_id); 100 lun_id_t lun_id; member 204 lun_id_t lun_id);
|
H A D | cam_xpt.c | 256 xpt_find_device(struct cam_et *target, lun_id_t lun_id); 313 lun_id_t lun_id); 693 periph->path->device->lun_id; in xptdoioctl() 835 ccb->ccb_h.path->device->lun_id == CAM_LUN_WILDCARD) in xpt_rescan() 838 ccb->ccb_h.path->device->lun_id == CAM_LUN_WILDCARD) in xpt_rescan() 841 ccb->ccb_h.path->device->lun_id != CAM_LUN_WILDCARD) in xpt_rescan() 1068 (uintmax_t)path->device->lun_id); in xpt_announce_periph_sbuf() 1142 (uintmax_t)path->device->lun_id); in xpt_denounce_periph_sbuf() 1415 pp->target_lun != device->lun_id) in xptdevicematch() 1440 && (cur_pattern->target_lun != device->lun_id)) in xptdevicematch() [all …]
|
H A D | cam_periph.c | 207 lun_id_t lun_id; in cam_periph_alloc() local 247 lun_id = xpt_path_lun_id(path); in cam_periph_alloc() 258 status = xpt_create_path(&path, periph, path_id, target_id, lun_id); in cam_periph_alloc() 275 periph->unit_number = camperiphunit(*p_drv, path_id, target_id, lun_id, in cam_periph_alloc() 2045 lun_id_t lun_id; in cam_periph_error() local 2054 lun_id = CAM_LUN_WILDCARD; in cam_periph_error() 2056 lun_id = xpt_path_lun_id(ccb->ccb_h.path); in cam_periph_error() 2062 lun_id) == CAM_REQ_CMP) { in cam_periph_error()
|
/freebsd/sys/cam/ctl/ |
H A D | ctl_ioctl.h | 95 uint32_t lun_id; member 224 uint32_t lun_id; /* To kernel */ member 403 uint32_t lun_id; member 416 uint32_t lun_id; member
|
H A D | scsi_ctl.c | 189 static int ctlfe_lun_enable(void *arg, int lun_id); 190 static int ctlfe_lun_disable(void *arg, int lun_id); 1735 ctlfe_lun_enable(void *arg, int lun_id) in ctlfe_lun_enable() argument 1745 lun_id = CAM_EXTLUN_BYTE_SWIZZLE(ctl_encode_lun(lun_id)); in ctlfe_lun_enable() 1748 bus_softc->path_id, bus_softc->target_id, lun_id); in ctlfe_lun_enable() 1799 ctlfe_lun_disable(void *arg, int lun_id) in ctlfe_lun_disable() argument 1806 lun_id = CAM_EXTLUN_BYTE_SWIZZLE(ctl_encode_lun(lun_id)); in ctlfe_lun_disable() 1815 && (xpt_path_lun_id(path) == lun_id)) { in ctlfe_lun_disable() [all...] |
H A D | ctl_backend_ramdisk.c | 1060 if (be_lun->cbe_lun.lun_id == params->lun_id) { in ctl_backend_ramdisk_rm() 1072 __func__, params->lun_id); in ctl_backend_ramdisk_rm() 1092 "LUN %d", __func__, retval, params->lun_id); in ctl_backend_ramdisk_rm() 1316 params->req_lun_id = cbe_lun->lun_id; in ctl_backend_ramdisk_create() 1351 if (be_lun->cbe_lun.lun_id == params->lun_id) in ctl_backend_ramdisk_modify() 1358 __func__, params->lun_id); in ctl_backend_ramdisk_modify()
|
H A D | ctl_backend.h | 159 uint32_t lun_id; /* returned from CTL */ member
|
H A D | ctl_frontend.h | 57 typedef int (*lun_func_t)(void *arg, int lun_id);
|
H A D | ctl_backend_block.c | 2799 be_lun->disk_stats = devstat_new_entry("cbb", cbe_lun->lun_id, in ctl_be_block_create() 2811 params->req_lun_id = cbe_lun->lun_id; in ctl_be_block_create() 2844 if (be_lun->cbe_lun.lun_id == params->lun_id) { in ctl_be_block_rm() 2856 params->lun_id); in ctl_be_block_rm() 2876 "LUN %d", retval, params->lun_id); in ctl_be_block_rm() 2921 if (be_lun->cbe_lun.lun_id == params->lun_id) in ctl_be_block_modify() 2928 params->lun_id); in ctl_be_block_modify()
|
/freebsd/sys/dev/nvmf/controller/ |
H A D | ctl_frontend_nvmf.c | 123 nvmft_lun_enable(void *arg, int lun_id) in nvmft_lun_enable() argument 131 if (lun_id >= le32toh(np->cdata.nn)) { in nvmft_lun_enable() 133 np->cdata.subnqn, lun_id, le32toh(np->cdata.nn)); in nvmft_lun_enable() 136 nsid = lun_id + 1; in nvmft_lun_enable() 156 np->cdata.subnqn, lun_id); in nvmft_lun_enable() 177 nvmft_controller_lun_changed(ctrlr, lun_id); in nvmft_lun_enable() 187 nvmft_lun_disable(void *arg, int lun_id) in nvmft_lun_disable() argument 194 if (lun_id >= le32toh(np->cdata.nn)) in nvmft_lun_disable() 196 nsid = lun_id + 1; in nvmft_lun_disable() 205 np->cdata.subnqn, lun_id); in nvmft_lun_disable() [all …]
|
H A D | nvmft_var.h | 124 int lun_id);
|
/freebsd/sys/dev/mps/ |
H A D | mps_sas.h | 36 lun_id_t lun_id; member 165 struct mpssas_target *target, lun_id_t lun_id);
|
H A D | mps_sas.c | 1025 target_id_t target_id, lun_id_t lun_id) in mpssas_announce_reset() argument 1031 ac_code, target_id, (uintmax_t)lun_id); in mpssas_announce_reset() 1034 path_id, target_id, lun_id) != CAM_REQ_CMP) { in mpssas_announce_reset() 1805 if (lun->lun_id == csio->ccb_h.target_lun) { in mpssas_action_scsiio() 3181 if (lun->lun_id == lunid) { in mpssas_async() 3195 lun->lun_id = lunid; in mpssas_async() 3253 struct mpssas_target *target, lun_id_t lun_id) in mpssas_prepare_for_tm() argument 3262 target->tid, lun_id) != CAM_REQ_CMP) { in mpssas_prepare_for_tm()
|
/freebsd/sys/dev/mpr/ |
H A D | mpr_sas.h | 35 lun_id_t lun_id; member 171 struct mprsas_target *target, lun_id_t lun_id);
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_xpt.c | 580 lun_id_t lun_id); 1233 if (path->device->lun_id == 0 && in probedone() 1257 } else if (path->device->lun_id == 0 && in probedone() 2077 lun_id_t lun_id; in scsi_scan_bus() local 2085 lun_id = request_ccb->ccb_h.target_lun; in scsi_scan_bus() 2113 lun_id); in scsi_scan_bus() 2121 lun_id); in scsi_scan_bus() 2135 (uintmax_t)lun_id)); in scsi_scan_bus() 2160 if (lun_id < (CAM_SCSI2_MAXLUN-1) || in scsi_scan_bus() 2166 if (lun_id < (CAM_SCSI2_MAXLUN-1) || in scsi_scan_bus() [all …]
|
H A D | scsi_targetio.h | 63 lun_id_t lun_id; member
|
/freebsd/usr.sbin/ctld/ |
H A D | kernel.c | 112 uint64_t lun_id; member 186 cur_lun->lun_id = strtoull(attr[i+1], NULL, 0); in cctl_start_element() 601 "ignoring", (uintmax_t)lun->lun_id); in conf_new_from_kernel() 609 (uintmax_t)lun->lun_id, lun->ctld_name, in conf_new_from_kernel() 615 (uintmax_t)lun->lun_id, lun->ctld_name); in conf_new_from_kernel() 631 cl->l_ctl_lun = lun->lun_id; in conf_new_from_kernel() 648 key, (uintmax_t)lun->lun_id, in conf_new_from_kernel() 760 req.reqdata.modify.lun_id = lun->l_ctl_lun; in kernel_lun_modify() 816 req.reqdata.rm.lun_id = lun->l_ctl_lun; in kernel_lun_remove()
|
/freebsd/sys/dev/virtio/scsi/ |
H A D | virtio_scsi.c | 1612 vtscsi_get_request_lun(uint8_t lun[], target_id_t *target_id, lun_id_t *lun_id) in vtscsi_get_request_lun() argument 1616 *lun_id = (lun[2] << 8) | lun[3]; in vtscsi_get_request_lun() 1719 target_id_t target_id, lun_id_t lun_id) in vtscsi_announce() argument 1724 if (target_id == CAM_TARGET_WILDCARD && lun_id == CAM_LUN_WILDCARD) { in vtscsi_announce() 1730 target_id, lun_id) != CAM_REQ_CMP) { in vtscsi_announce() 1741 lun_id_t lun_id) in vtscsi_execute_rescan() argument 1753 cam_sim_path(sc->vtscsi_sim), target_id, lun_id); in vtscsi_execute_rescan() 1774 lun_id_t lun_id; in vtscsi_transport_reset_event() local 1776 vtscsi_get_request_lun(event->lun, &target_id, &lun_id); in vtscsi_transport_reset_event() 1781 vtscsi_execute_rescan(sc, target_id, lun_id); in vtscsi_transport_reset_event()
|
/freebsd/tests/sys/cam/ctl/ |
H A D | ctl.subr | 98 lun_id=`awk '/LUN ID:/ {print $NF}' lun-create.txt` 99 ctladm remove -b ramdisk -l $lun_id > /dev/null
|
/freebsd/sys/cam/nvme/ |
H A D | nvme_xpt.c | 147 lun_id_t lun_id); 593 nvme_alloc_device(struct cam_eb *bus, struct cam_et *target, lun_id_t lun_id) in nvme_alloc_device() argument 598 device = xpt_alloc_device(bus, target, lun_id); in nvme_alloc_device() 775 || device->lun_id == CAM_LUN_WILDCARD) in nvme_dev_async()
|
/freebsd/usr.sbin/ctladm/ |
H A D | ctladm.c | 782 delay_info.lun_id = lun; in cctl_delay() 868 err_desc.lun_id = lun; in cctl_error_inject() 2586 uint32_t lun_id = 0; in cctl_rm_lun() local 2602 lun_id = strtoul(optarg, NULL, 0); in cctl_rm_lun() 2644 req.reqdata.rm.lun_id = lun_id; in cctl_rm_lun() 2677 printf("LUN %d removed successfully\n", lun_id); in cctl_rm_lun() 2689 uint32_t lun_id = 0; in cctl_modify_lun() local 2705 lun_id = strtoul(optarg, NULL, 0); in cctl_modify_lun() 2763 req.reqdata.modify.lun_id = lun_id; in cctl_modify_lun() 2797 printf("LUN %d modified successfully\n", lun_id); in cctl_modify_lun() [all …]
|
/freebsd/sys/dev/mpi3mr/ |
H A D | mpi3mr_cam.h | 188 struct mpi3mr_target *target, lun_id_t lun_id);
|
/freebsd/sys/cam/mmc/ |
H A D | mmc_xpt.c | 67 struct cam_et *target, lun_id_t lun_id); 187 mmc_alloc_device(struct cam_eb *bus, struct cam_et *target, lun_id_t lun_id) in mmc_alloc_device() argument 191 device = xpt_alloc_device(bus, target, lun_id); in mmc_alloc_device() 215 || device->lun_id == CAM_LUN_WILDCARD) in mmc_dev_async()
|
/freebsd/sys/cam/ata/ |
H A D | ata_xpt.c | 175 lun_id_t lun_id); 1573 path->device->lun_id); in ata_scan_lun() 1629 ata_alloc_device(struct cam_eb *bus, struct cam_et *target, lun_id_t lun_id) in ata_alloc_device() argument 1634 device = xpt_alloc_device(bus, target, lun_id); in ata_alloc_device() 2029 device->lun_id == CAM_LUN_WILDCARD) in ata_dev_async() 2047 device->lun_id); in ata_dev_async() 2070 device->lun_id); in ata_dev_async()
|